1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for rrdtool 1.4.2.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 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 # Pre-4.2 versions of Zsh do 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 as_nl='
41 '
42 export as_nl
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83 as_unset=unset
84 else
85 as_unset=false
86 fi
89 # IFS
90 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
94 IFS=" "" $as_nl"
96 # Find who we are. Look in the path if we contain no directory separator.
97 case $0 in
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 for as_dir in $PATH
101 do
102 IFS=$as_save_IFS
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 done
106 IFS=$as_save_IFS
108 ;;
109 esac
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
113 as_myself=$0
114 fi
115 if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
118 fi
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
134 # Required to use basename.
135 if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
137 as_expr=expr
138 else
139 as_expr=false
140 fi
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143 as_basename=basename
144 else
145 as_basename=false
146 fi
149 # Name of the executable.
150 as_me=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154 $as_echo X/"$0" |
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 s//\1/
157 q
158 }
159 /^X\/\(\/\/\)$/{
160 s//\1/
161 q
162 }
163 /^X\/\(\/\).*/{
164 s//\1/
165 q
166 }
167 s/.*/./; q'`
169 # CDPATH.
170 $as_unset CDPATH
173 if test "x$CONFIG_SHELL" = x; then
174 if (eval ":") 2>/dev/null; then
175 as_have_required=yes
176 else
177 as_have_required=no
178 fi
180 if test $as_have_required = yes && (eval ":
181 (as_func_return () {
182 (exit \$1)
183 }
184 as_func_success () {
185 as_func_return 0
186 }
187 as_func_failure () {
188 as_func_return 1
189 }
190 as_func_ret_success () {
191 return 0
192 }
193 as_func_ret_failure () {
194 return 1
195 }
197 exitcode=0
198 if as_func_success; then
199 :
200 else
201 exitcode=1
202 echo as_func_success failed.
203 fi
205 if as_func_failure; then
206 exitcode=1
207 echo as_func_failure succeeded.
208 fi
210 if as_func_ret_success; then
211 :
212 else
213 exitcode=1
214 echo as_func_ret_success failed.
215 fi
217 if as_func_ret_failure; then
218 exitcode=1
219 echo as_func_ret_failure succeeded.
220 fi
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
223 :
224 else
225 exitcode=1
226 echo positional parameters were not saved.
227 fi
229 test \$exitcode = 0) || { (exit 1); exit 1; }
231 (
232 as_lineno_1=\$LINENO
233 as_lineno_2=\$LINENO
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev/null; then
237 :
238 else
239 as_candidate_shells=
240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
242 do
243 IFS=$as_save_IFS
244 test -z "$as_dir" && as_dir=.
245 case $as_dir in
246 /*)
247 for as_base in sh bash ksh sh5; do
248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249 done;;
250 esac
251 done
252 IFS=$as_save_IFS
255 for as_shell in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev/null <<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 emulate sh
261 NULLCMD=:
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
265 setopt NO_GLOB_SUBST
266 else
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
269 esac
271 fi
274 :
275 _ASEOF
276 }; then
277 CONFIG_SHELL=$as_shell
278 as_have_required=yes
279 if { "$as_shell" 2> /dev/null <<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281 emulate sh
282 NULLCMD=:
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
286 setopt NO_GLOB_SUBST
287 else
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
290 esac
292 fi
295 :
296 (as_func_return () {
297 (exit $1)
298 }
299 as_func_success () {
300 as_func_return 0
301 }
302 as_func_failure () {
303 as_func_return 1
304 }
305 as_func_ret_success () {
306 return 0
307 }
308 as_func_ret_failure () {
309 return 1
310 }
312 exitcode=0
313 if as_func_success; then
314 :
315 else
316 exitcode=1
317 echo as_func_success failed.
318 fi
320 if as_func_failure; then
321 exitcode=1
322 echo as_func_failure succeeded.
323 fi
325 if as_func_ret_success; then
326 :
327 else
328 exitcode=1
329 echo as_func_ret_success failed.
330 fi
332 if as_func_ret_failure; then
333 exitcode=1
334 echo as_func_ret_failure succeeded.
335 fi
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
338 :
339 else
340 exitcode=1
341 echo positional parameters were not saved.
342 fi
344 test $exitcode = 0) || { (exit 1); exit 1; }
346 (
347 as_lineno_1=$LINENO
348 as_lineno_2=$LINENO
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
352 _ASEOF
353 }; then
354 break
355 fi
357 fi
359 done
361 if test "x$CONFIG_SHELL" != x; then
362 for as_var in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364 done
365 export CONFIG_SHELL
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
367 fi
370 if test $as_have_required = no; then
371 echo This script requires a shell more modern than all the
372 echo shells that I found on your system. Please install a
373 echo modern shell, or manually run the script under such a
374 echo shell if you do have one.
375 { (exit 1); exit 1; }
376 fi
379 fi
381 fi
385 (eval "as_func_return () {
386 (exit \$1)
387 }
388 as_func_success () {
389 as_func_return 0
390 }
391 as_func_failure () {
392 as_func_return 1
393 }
394 as_func_ret_success () {
395 return 0
396 }
397 as_func_ret_failure () {
398 return 1
399 }
401 exitcode=0
402 if as_func_success; then
403 :
404 else
405 exitcode=1
406 echo as_func_success failed.
407 fi
409 if as_func_failure; then
410 exitcode=1
411 echo as_func_failure succeeded.
412 fi
414 if as_func_ret_success; then
415 :
416 else
417 exitcode=1
418 echo as_func_ret_success failed.
419 fi
421 if as_func_ret_failure; then
422 exitcode=1
423 echo as_func_ret_failure succeeded.
424 fi
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
427 :
428 else
429 exitcode=1
430 echo positional parameters were not saved.
431 fi
433 test \$exitcode = 0") || {
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system,
436 echo including any error possibly output before this message.
437 echo This can help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
439 }
443 as_lineno_1=$LINENO
444 as_lineno_2=$LINENO
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
454 # case at line end.
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
458 sed -n '
459 p
460 /[$]LINENO/=
461 ' <$as_myself |
462 sed '
463 s/[$]LINENO.*/&-/
464 t lineno
465 b
466 :lineno
467 N
468 :loop
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470 t loop
471 s/-\n.*//
472 ' >$as_me.lineno &&
473 chmod +x "$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this).
480 . "./$as_me.lineno"
481 # Exit status is that of the last command.
482 exit
483 }
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487 as_dirname=dirname
488 else
489 as_dirname=false
490 fi
492 ECHO_C= ECHO_N= ECHO_T=
493 case `echo -n x` in
494 -n*)
495 case `echo 'x\c'` in
496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
497 *) ECHO_C='\c';;
498 esac;;
499 *)
500 ECHO_N='-n';;
501 esac
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
504 as_expr=expr
505 else
506 as_expr=false
507 fi
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file
512 else
513 rm -f conf$$.dir
514 mkdir conf$$.dir 2>/dev/null
515 fi
516 if (echo >conf$$.file) 2>/dev/null; then
517 if ln -s conf$$.file conf$$ 2>/dev/null; then
518 as_ln_s='ln -s'
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524 as_ln_s='cp -p'
525 elif ln conf$$.file conf$$ 2>/dev/null; then
526 as_ln_s=ln
527 else
528 as_ln_s='cp -p'
529 fi
530 else
531 as_ln_s='cp -p'
532 fi
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
536 if mkdir -p . 2>/dev/null; then
537 as_mkdir_p=:
538 else
539 test -d ./-p && rmdir ./-p
540 as_mkdir_p=false
541 fi
543 if test -x / >/dev/null 2>&1; then
544 as_test_x='test -x'
545 else
546 if ls -dL / >/dev/null 2>&1; then
547 as_ls_L_option=L
548 else
549 as_ls_L_option=
550 fi
551 as_test_x='
552 eval sh -c '\''
553 if test -d "$1"; then
554 test -d "$1/.";
555 else
556 case $1 in
557 -*)set "./$1";;
558 esac;
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
561 '\'' sh
562 '
563 fi
564 as_executable_p=$as_test_x
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
575 # Check that we are running under the correct shell.
576 SHELL=${CONFIG_SHELL-/bin/sh}
578 case X$lt_ECHO in
579 X*--fallback-echo)
580 # Remove one level of quotation (which was required for Make).
581 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
582 ;;
583 esac
585 ECHO=${lt_ECHO-echo}
586 if test "X$1" = X--no-reexec; then
587 # Discard the --no-reexec flag, and continue.
588 shift
589 elif test "X$1" = X--fallback-echo; then
590 # Avoid inline document here, it may be left over
591 :
592 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
593 # Yippee, $ECHO works!
594 :
595 else
596 # Restart under the correct shell.
597 exec $SHELL "$0" --no-reexec ${1+"$@"}
598 fi
600 if test "X$1" = X--fallback-echo; then
601 # used as fallback echo
602 shift
603 cat <<_LT_EOF
604 $*
605 _LT_EOF
606 exit 0
607 fi
609 # The HP-UX ksh and POSIX shell print the target directory to stdout
610 # if CDPATH is set.
611 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
613 if test -z "$lt_ECHO"; then
614 if test "X${echo_test_string+set}" != Xset; then
615 # find a string as large as possible, as long as the shell can cope with it
616 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
617 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
618 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
619 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
620 then
621 break
622 fi
623 done
624 fi
626 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628 test "X$echo_testing_string" = "X$echo_test_string"; then
629 :
630 else
631 # The Solaris, AIX, and Digital Unix default echo programs unquote
632 # backslashes. This makes it impossible to quote backslashes using
633 # echo "$something" | sed 's/\\/\\\\/g'
634 #
635 # So, first we look for a working echo in the user's PATH.
637 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
638 for dir in $PATH /usr/ucb; do
639 IFS="$lt_save_ifs"
640 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
641 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
642 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
643 test "X$echo_testing_string" = "X$echo_test_string"; then
644 ECHO="$dir/echo"
645 break
646 fi
647 done
648 IFS="$lt_save_ifs"
650 if test "X$ECHO" = Xecho; then
651 # We didn't find a better echo, so look for alternatives.
652 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
653 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
654 test "X$echo_testing_string" = "X$echo_test_string"; then
655 # This shell has a builtin print -r that does the trick.
656 ECHO='print -r'
657 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
658 test "X$CONFIG_SHELL" != X/bin/ksh; then
659 # If we have ksh, try running configure again with it.
660 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
661 export ORIGINAL_CONFIG_SHELL
662 CONFIG_SHELL=/bin/ksh
663 export CONFIG_SHELL
664 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
665 else
666 # Try using printf.
667 ECHO='printf %s\n'
668 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
669 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
670 test "X$echo_testing_string" = "X$echo_test_string"; then
671 # Cool, printf works
672 :
673 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
674 test "X$echo_testing_string" = 'X\t' &&
675 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
676 test "X$echo_testing_string" = "X$echo_test_string"; then
677 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
678 export CONFIG_SHELL
679 SHELL="$CONFIG_SHELL"
680 export SHELL
681 ECHO="$CONFIG_SHELL $0 --fallback-echo"
682 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
683 test "X$echo_testing_string" = 'X\t' &&
684 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
685 test "X$echo_testing_string" = "X$echo_test_string"; then
686 ECHO="$CONFIG_SHELL $0 --fallback-echo"
687 else
688 # maybe with a smaller string...
689 prev=:
691 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
692 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
693 then
694 break
695 fi
696 prev="$cmd"
697 done
699 if test "$prev" != 'sed 50q "$0"'; then
700 echo_test_string=`eval $prev`
701 export echo_test_string
702 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
703 else
704 # Oops. We lost completely, so just stick with echo.
705 ECHO=echo
706 fi
707 fi
708 fi
709 fi
710 fi
711 fi
713 # Copy echo and quote the copy suitably for passing to libtool from
714 # the Makefile, instead of quoting the original, which is used later.
715 lt_ECHO=$ECHO
716 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
717 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
718 fi
723 exec 7<&0 </dev/null 6>&1
725 # Name of the host.
726 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
727 # so uname gets run too.
728 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
730 #
731 # Initializations.
732 #
733 ac_default_prefix=/usr/local
734 ac_clean_files=
735 ac_config_libobj_dir=.
736 LIBOBJS=
737 cross_compiling=no
738 subdirs=
739 MFLAGS=
740 MAKEFLAGS=
741 SHELL=${CONFIG_SHELL-/bin/sh}
743 # Identity of this package.
744 PACKAGE_NAME='rrdtool'
745 PACKAGE_TARNAME='rrdtool'
746 PACKAGE_VERSION='1.4.2'
747 PACKAGE_STRING='rrdtool 1.4.2'
748 PACKAGE_BUGREPORT=''
750 # Factoring default headers for most tests.
751 ac_includes_default="\
752 #include <stdio.h>
753 #ifdef HAVE_SYS_TYPES_H
754 # include <sys/types.h>
755 #endif
756 #ifdef HAVE_SYS_STAT_H
757 # include <sys/stat.h>
758 #endif
759 #ifdef STDC_HEADERS
760 # include <stdlib.h>
761 # include <stddef.h>
762 #else
763 # ifdef HAVE_STDLIB_H
764 # include <stdlib.h>
765 # endif
766 #endif
767 #ifdef HAVE_STRING_H
768 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
769 # include <memory.h>
770 # endif
771 # include <string.h>
772 #endif
773 #ifdef HAVE_STRINGS_H
774 # include <strings.h>
775 #endif
776 #ifdef HAVE_INTTYPES_H
777 # include <inttypes.h>
778 #endif
779 #ifdef HAVE_STDINT_H
780 # include <stdint.h>
781 #endif
782 #ifdef HAVE_UNISTD_H
783 # include <unistd.h>
784 #endif"
786 ac_default_prefix=/opt/rrdtool-$PACKAGE_VERSION
787 ac_subst_vars='am__EXEEXT_FALSE
788 am__EXEEXT_TRUE
789 LTLIBOBJS
790 LIBOBJS
791 RRDDOCDIR
792 TROFF
793 NROFF
794 COMP_PYTHON
795 PYTHON_INCLUDES
796 pkgpyexecdir
797 pyexecdir
798 pkgpythondir
799 pythondir
800 PYTHON_PLATFORM
801 PYTHON_EXEC_PREFIX
802 PYTHON_PREFIX
803 PYTHON_VERSION
804 PYTHON
805 TCL_INCLUDE_SPEC
806 TCL_PACKAGE_DIR
807 TCL_VERSION
808 TCL_STUB_LIB_SPEC
809 TCL_LD_SEARCH_FLAGS
810 TCL_PACKAGE_PATH
811 TCL_SHLIB_SUFFIX
812 TCL_SHLIB_LD
813 TCL_SHLIB_CFLAGS
814 TCL_PREFIX
815 BUILD_TCL_SITE_FALSE
816 BUILD_TCL_SITE_TRUE
817 BUILD_TCL_FALSE
818 BUILD_TCL_TRUE
819 BUILD_LUA_FALSE
820 BUILD_LUA_TRUE
821 LUA50_FALSE
822 LUA50_TRUE
823 LUA_SITE_LINSTALL_FALSE
824 LUA_SITE_LINSTALL_TRUE
825 LUA_SITE_CINSTALL_FALSE
826 LUA_SITE_CINSTALL_TRUE
827 LUA_NEED_OUR_COMPAT51_FALSE
828 LUA_NEED_OUR_COMPAT51_TRUE
829 LUA_DEFINES
830 LUA_LFLAGS
831 LUA_CFLAGS
832 LUA_INSTALL_LMOD
833 LUA_INSTALL_CMOD
834 COMP_LUA
835 LUA
836 COMP_RUBY
837 RUBY_MAKE_OPTIONS
838 RUBY
839 PERL_VERSION
840 COMP_PERL
841 PERL_MAKE_OPTIONS
842 PERL_CC
843 PERLLDFLAGS
844 PERLLD
845 PERLCCFLAGS
846 PERLCC
847 POD2HTML
848 POD2MAN
849 PERL
850 ALL_LIBS
851 CORE_LIBS
852 PKGCONFIG
853 BUILD_RRDCGI_FALSE
854 BUILD_RRDCGI_TRUE
855 BUILD_LIBDBI_FALSE
856 BUILD_LIBDBI_TRUE
857 BUILD_MULTITHREAD_FALSE
858 BUILD_MULTITHREAD_TRUE
859 PTHREAD_CFLAGS
860 PTHREAD_LIBS
861 PTHREAD_CC
862 acx_pthread_config
863 MULTITHREAD_LDFLAGS
864 MULTITHREAD_CFLAGS
865 BUILD_GETOPT_FALSE
866 BUILD_GETOPT_TRUE
867 RRD_GETOPT_LONG
868 POSUB
869 LTLIBINTL
870 LIBINTL
871 INTLLIBS
872 INTL_LIBTOOL_SUFFIX_PREFIX
873 INTLOBJS
874 GENCAT
875 INSTOBJEXT
876 DATADIRNAME
877 CATOBJEXT
878 USE_INCLUDED_LIBINTL
879 BUILD_INCLUDED_LIBINTL
880 INTLBISON
881 LTLIBICONV
882 LIBICONV
883 HAVE_WPRINTF
884 HAVE_SNPRINTF
885 HAVE_ASPRINTF
886 HAVE_POSIX_PRINTF
887 INTL_MACOSX_LIBS
888 GLIBC21
889 ALLOCA
890 GLIBC2
891 MSGMERGE
892 XGETTEXT
893 GMSGFMT
894 MSGFMT
895 USE_NLS
896 MKINSTALLDIRS
897 RRD_DEFAULT_FONT
898 WERROR
899 OTOOL64
900 OTOOL
901 LIPO
902 NMEDIT
903 DSYMUTIL
904 lt_ECHO
905 RANLIB
906 AR
907 OBJDUMP
908 LN_S
909 NM
910 ac_ct_DUMPBIN
911 DUMPBIN
912 LD
913 FGREP
914 SED
915 LIBTOOL
916 STATIC_PROGRAMS_FALSE
917 STATIC_PROGRAMS_TRUE
918 RRDGRAPH_YLEGEND_ANGLE
919 AM_BACKSLASH
920 AM_DEFAULT_VERBOSITY
921 MAINT
922 MAINTAINER_MODE_FALSE
923 MAINTAINER_MODE_TRUE
924 am__fastdepCC_FALSE
925 am__fastdepCC_TRUE
926 CCDEPMODE
927 AMDEPBACKSLASH
928 AMDEP_FALSE
929 AMDEP_TRUE
930 am__quote
931 am__include
932 DEPDIR
933 am__untar
934 am__tar
935 AMTAR
936 am__leading_dot
937 SET_MAKE
938 AWK
939 mkdir_p
940 MKDIR_P
941 INSTALL_STRIP_PROGRAM
942 STRIP
943 install_sh
944 MAKEINFO
945 AUTOHEADER
946 AUTOMAKE
947 AUTOCONF
948 ACLOCAL
949 VERSION
950 PACKAGE
951 CYGPATH_W
952 am__isrc
953 INSTALL_DATA
954 INSTALL_SCRIPT
955 INSTALL_PROGRAM
956 EGREP
957 GREP
958 CPP
959 OBJEXT
960 EXEEXT
961 ac_ct_CC
962 CPPFLAGS
963 LDFLAGS
964 CFLAGS
965 CC
966 target_os
967 target_vendor
968 target_cpu
969 target
970 host_os
971 host_vendor
972 host_cpu
973 host
974 build_os
975 build_vendor
976 build_cpu
977 build
978 LIBVERS
979 NUMVERS
980 target_alias
981 host_alias
982 build_alias
983 LIBS
984 ECHO_T
985 ECHO_N
986 ECHO_C
987 DEFS
988 mandir
989 localedir
990 libdir
991 psdir
992 pdfdir
993 dvidir
994 htmldir
995 infodir
996 docdir
997 oldincludedir
998 includedir
999 localstatedir
1000 sharedstatedir
1001 sysconfdir
1002 datadir
1003 datarootdir
1004 libexecdir
1005 sbindir
1006 bindir
1007 program_transform_name
1008 prefix
1009 exec_prefix
1010 PACKAGE_BUGREPORT
1011 PACKAGE_STRING
1012 PACKAGE_VERSION
1013 PACKAGE_TARNAME
1014 PACKAGE_NAME
1015 PATH_SEPARATOR
1016 SHELL
1017 PERLFLAGS'
1018 ac_subst_files=''
1019 ac_user_opts='
1020 enable_option_checking
1021 enable_dependency_tracking
1022 enable_maintainer_mode
1023 enable_silent_rules
1024 enable_rrdcgi
1025 with_rrd_default_font
1026 enable_mmap
1027 enable_pthread
1028 enable_static_programs
1029 enable_shared
1030 enable_static
1031 with_pic
1032 enable_fast_install
1033 with_gnu_ld
1034 enable_libtool_lock
1035 enable_nls
1036 enable_rpath
1037 with_libiconv_prefix
1038 with_included_gettext
1039 with_libintl_prefix
1040 enable_libdbi
1041 enable_perl
1042 enable_perl_site_install
1043 with_perl_options
1044 enable_ruby
1045 enable_ruby_site_install
1046 with_ruby_options
1047 enable_lua
1048 enable_lua_site_install
1049 enable_tcl
1050 with_tcllib
1051 enable_python
1052 '
1053 ac_precious_vars='build_alias
1054 host_alias
1055 target_alias
1056 CC
1057 CFLAGS
1058 LDFLAGS
1059 LIBS
1060 CPPFLAGS
1061 CPP
1062 RRDGRAPH_YLEGEND_ANGLE
1063 PERLCC
1064 PERLCCFLAGS
1065 PERLLD
1066 PERLLDFLAGS
1067 RRDDOCDIR'
1070 # Initialize some variables set by options.
1071 ac_init_help=
1072 ac_init_version=false
1073 ac_unrecognized_opts=
1074 ac_unrecognized_sep=
1075 # The variables have the same names as the options, with
1076 # dashes changed to underlines.
1077 cache_file=/dev/null
1078 exec_prefix=NONE
1079 no_create=
1080 no_recursion=
1081 prefix=NONE
1082 program_prefix=NONE
1083 program_suffix=NONE
1084 program_transform_name=s,x,x,
1085 silent=
1086 site=
1087 srcdir=
1088 verbose=
1089 x_includes=NONE
1090 x_libraries=NONE
1092 # Installation directory options.
1093 # These are left unexpanded so users can "make install exec_prefix=/foo"
1094 # and all the variables that are supposed to be based on exec_prefix
1095 # by default will actually change.
1096 # Use braces instead of parens because sh, perl, etc. also accept them.
1097 # (The list follows the same order as the GNU Coding Standards.)
1098 bindir='${exec_prefix}/bin'
1099 sbindir='${exec_prefix}/sbin'
1100 libexecdir='${exec_prefix}/libexec'
1101 datarootdir='${prefix}/share'
1102 datadir='${datarootdir}'
1103 sysconfdir='${prefix}/etc'
1104 sharedstatedir='${prefix}/com'
1105 localstatedir='${prefix}/var'
1106 includedir='${prefix}/include'
1107 oldincludedir='/usr/include'
1108 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1109 infodir='${datarootdir}/info'
1110 htmldir='${docdir}'
1111 dvidir='${docdir}'
1112 pdfdir='${docdir}'
1113 psdir='${docdir}'
1114 libdir='${exec_prefix}/lib'
1115 localedir='${datarootdir}/locale'
1116 mandir='${datarootdir}/man'
1118 ac_prev=
1119 ac_dashdash=
1120 for ac_option
1121 do
1122 # If the previous option needs an argument, assign it.
1123 if test -n "$ac_prev"; then
1124 eval $ac_prev=\$ac_option
1125 ac_prev=
1126 continue
1127 fi
1129 case $ac_option in
1130 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1131 *) ac_optarg=yes ;;
1132 esac
1134 # Accept the important Cygnus configure options, so we can diagnose typos.
1136 case $ac_dashdash$ac_option in
1137 --)
1138 ac_dashdash=yes ;;
1140 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1141 ac_prev=bindir ;;
1142 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1143 bindir=$ac_optarg ;;
1145 -build | --build | --buil | --bui | --bu)
1146 ac_prev=build_alias ;;
1147 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1148 build_alias=$ac_optarg ;;
1150 -cache-file | --cache-file | --cache-fil | --cache-fi \
1151 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1152 ac_prev=cache_file ;;
1153 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1154 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1155 cache_file=$ac_optarg ;;
1157 --config-cache | -C)
1158 cache_file=config.cache ;;
1160 -datadir | --datadir | --datadi | --datad)
1161 ac_prev=datadir ;;
1162 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1163 datadir=$ac_optarg ;;
1165 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1166 | --dataroo | --dataro | --datar)
1167 ac_prev=datarootdir ;;
1168 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1169 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1170 datarootdir=$ac_optarg ;;
1172 -disable-* | --disable-*)
1173 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1174 # Reject names that are not valid shell variable names.
1175 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1176 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1177 { (exit 1); exit 1; }; }
1178 ac_useropt_orig=$ac_useropt
1179 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1180 case $ac_user_opts in
1181 *"
1182 "enable_$ac_useropt"
1183 "*) ;;
1184 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1185 ac_unrecognized_sep=', ';;
1186 esac
1187 eval enable_$ac_useropt=no ;;
1189 -docdir | --docdir | --docdi | --doc | --do)
1190 ac_prev=docdir ;;
1191 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1192 docdir=$ac_optarg ;;
1194 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1195 ac_prev=dvidir ;;
1196 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1197 dvidir=$ac_optarg ;;
1199 -enable-* | --enable-*)
1200 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1201 # Reject names that are not valid shell variable names.
1202 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1203 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1204 { (exit 1); exit 1; }; }
1205 ac_useropt_orig=$ac_useropt
1206 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1207 case $ac_user_opts in
1208 *"
1209 "enable_$ac_useropt"
1210 "*) ;;
1211 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1212 ac_unrecognized_sep=', ';;
1213 esac
1214 eval enable_$ac_useropt=\$ac_optarg ;;
1216 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1217 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1218 | --exec | --exe | --ex)
1219 ac_prev=exec_prefix ;;
1220 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1221 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1222 | --exec=* | --exe=* | --ex=*)
1223 exec_prefix=$ac_optarg ;;
1225 -gas | --gas | --ga | --g)
1226 # Obsolete; use --with-gas.
1227 with_gas=yes ;;
1229 -help | --help | --hel | --he | -h)
1230 ac_init_help=long ;;
1231 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1232 ac_init_help=recursive ;;
1233 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1234 ac_init_help=short ;;
1236 -host | --host | --hos | --ho)
1237 ac_prev=host_alias ;;
1238 -host=* | --host=* | --hos=* | --ho=*)
1239 host_alias=$ac_optarg ;;
1241 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1242 ac_prev=htmldir ;;
1243 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1244 | --ht=*)
1245 htmldir=$ac_optarg ;;
1247 -includedir | --includedir | --includedi | --included | --include \
1248 | --includ | --inclu | --incl | --inc)
1249 ac_prev=includedir ;;
1250 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1251 | --includ=* | --inclu=* | --incl=* | --inc=*)
1252 includedir=$ac_optarg ;;
1254 -infodir | --infodir | --infodi | --infod | --info | --inf)
1255 ac_prev=infodir ;;
1256 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1257 infodir=$ac_optarg ;;
1259 -libdir | --libdir | --libdi | --libd)
1260 ac_prev=libdir ;;
1261 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1262 libdir=$ac_optarg ;;
1264 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1265 | --libexe | --libex | --libe)
1266 ac_prev=libexecdir ;;
1267 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1268 | --libexe=* | --libex=* | --libe=*)
1269 libexecdir=$ac_optarg ;;
1271 -localedir | --localedir | --localedi | --localed | --locale)
1272 ac_prev=localedir ;;
1273 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1274 localedir=$ac_optarg ;;
1276 -localstatedir | --localstatedir | --localstatedi | --localstated \
1277 | --localstate | --localstat | --localsta | --localst | --locals)
1278 ac_prev=localstatedir ;;
1279 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1280 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1281 localstatedir=$ac_optarg ;;
1283 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1284 ac_prev=mandir ;;
1285 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1286 mandir=$ac_optarg ;;
1288 -nfp | --nfp | --nf)
1289 # Obsolete; use --without-fp.
1290 with_fp=no ;;
1292 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1293 | --no-cr | --no-c | -n)
1294 no_create=yes ;;
1296 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1297 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1298 no_recursion=yes ;;
1300 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1301 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1302 | --oldin | --oldi | --old | --ol | --o)
1303 ac_prev=oldincludedir ;;
1304 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1305 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1306 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1307 oldincludedir=$ac_optarg ;;
1309 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1310 ac_prev=prefix ;;
1311 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1312 prefix=$ac_optarg ;;
1314 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1315 | --program-pre | --program-pr | --program-p)
1316 ac_prev=program_prefix ;;
1317 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1318 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1319 program_prefix=$ac_optarg ;;
1321 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1322 | --program-suf | --program-su | --program-s)
1323 ac_prev=program_suffix ;;
1324 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1325 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1326 program_suffix=$ac_optarg ;;
1328 -program-transform-name | --program-transform-name \
1329 | --program-transform-nam | --program-transform-na \
1330 | --program-transform-n | --program-transform- \
1331 | --program-transform | --program-transfor \
1332 | --program-transfo | --program-transf \
1333 | --program-trans | --program-tran \
1334 | --progr-tra | --program-tr | --program-t)
1335 ac_prev=program_transform_name ;;
1336 -program-transform-name=* | --program-transform-name=* \
1337 | --program-transform-nam=* | --program-transform-na=* \
1338 | --program-transform-n=* | --program-transform-=* \
1339 | --program-transform=* | --program-transfor=* \
1340 | --program-transfo=* | --program-transf=* \
1341 | --program-trans=* | --program-tran=* \
1342 | --progr-tra=* | --program-tr=* | --program-t=*)
1343 program_transform_name=$ac_optarg ;;
1345 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1346 ac_prev=pdfdir ;;
1347 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1348 pdfdir=$ac_optarg ;;
1350 -psdir | --psdir | --psdi | --psd | --ps)
1351 ac_prev=psdir ;;
1352 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1353 psdir=$ac_optarg ;;
1355 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1356 | -silent | --silent | --silen | --sile | --sil)
1357 silent=yes ;;
1359 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1360 ac_prev=sbindir ;;
1361 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1362 | --sbi=* | --sb=*)
1363 sbindir=$ac_optarg ;;
1365 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1366 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1367 | --sharedst | --shareds | --shared | --share | --shar \
1368 | --sha | --sh)
1369 ac_prev=sharedstatedir ;;
1370 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1371 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1372 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1373 | --sha=* | --sh=*)
1374 sharedstatedir=$ac_optarg ;;
1376 -site | --site | --sit)
1377 ac_prev=site ;;
1378 -site=* | --site=* | --sit=*)
1379 site=$ac_optarg ;;
1381 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1382 ac_prev=srcdir ;;
1383 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1384 srcdir=$ac_optarg ;;
1386 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1387 | --syscon | --sysco | --sysc | --sys | --sy)
1388 ac_prev=sysconfdir ;;
1389 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1390 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1391 sysconfdir=$ac_optarg ;;
1393 -target | --target | --targe | --targ | --tar | --ta | --t)
1394 ac_prev=target_alias ;;
1395 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1396 target_alias=$ac_optarg ;;
1398 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1399 verbose=yes ;;
1401 -version | --version | --versio | --versi | --vers | -V)
1402 ac_init_version=: ;;
1404 -with-* | --with-*)
1405 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1406 # Reject names that are not valid shell variable names.
1407 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1408 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1409 { (exit 1); exit 1; }; }
1410 ac_useropt_orig=$ac_useropt
1411 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1412 case $ac_user_opts in
1413 *"
1414 "with_$ac_useropt"
1415 "*) ;;
1416 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1417 ac_unrecognized_sep=', ';;
1418 esac
1419 eval with_$ac_useropt=\$ac_optarg ;;
1421 -without-* | --without-*)
1422 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1423 # Reject names that are not valid shell variable names.
1424 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1425 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1426 { (exit 1); exit 1; }; }
1427 ac_useropt_orig=$ac_useropt
1428 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1429 case $ac_user_opts in
1430 *"
1431 "with_$ac_useropt"
1432 "*) ;;
1433 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1434 ac_unrecognized_sep=', ';;
1435 esac
1436 eval with_$ac_useropt=no ;;
1438 --x)
1439 # Obsolete; use --with-x.
1440 with_x=yes ;;
1442 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1443 | --x-incl | --x-inc | --x-in | --x-i)
1444 ac_prev=x_includes ;;
1445 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1446 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1447 x_includes=$ac_optarg ;;
1449 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1450 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1451 ac_prev=x_libraries ;;
1452 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1453 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1454 x_libraries=$ac_optarg ;;
1456 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1457 Try \`$0 --help' for more information." >&2
1458 { (exit 1); exit 1; }; }
1459 ;;
1461 *=*)
1462 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1463 # Reject names that are not valid shell variable names.
1464 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1465 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1466 { (exit 1); exit 1; }; }
1467 eval $ac_envvar=\$ac_optarg
1468 export $ac_envvar ;;
1470 *)
1471 # FIXME: should be removed in autoconf 3.0.
1472 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1473 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1474 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1475 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1476 ;;
1478 esac
1479 done
1481 if test -n "$ac_prev"; then
1482 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1483 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1484 { (exit 1); exit 1; }; }
1485 fi
1487 if test -n "$ac_unrecognized_opts"; then
1488 case $enable_option_checking in
1489 no) ;;
1490 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1491 { (exit 1); exit 1; }; } ;;
1492 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1493 esac
1494 fi
1496 # Check all directory arguments for consistency.
1497 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1498 datadir sysconfdir sharedstatedir localstatedir includedir \
1499 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1500 libdir localedir mandir
1501 do
1502 eval ac_val=\$$ac_var
1503 # Remove trailing slashes.
1504 case $ac_val in
1505 */ )
1506 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1507 eval $ac_var=\$ac_val;;
1508 esac
1509 # Be sure to have absolute directory names.
1510 case $ac_val in
1511 [\\/$]* | ?:[\\/]* ) continue;;
1512 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1513 esac
1514 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1515 { (exit 1); exit 1; }; }
1516 done
1518 # There might be people who depend on the old broken behavior: `$host'
1519 # used to hold the argument of --host etc.
1520 # FIXME: To remove some day.
1521 build=$build_alias
1522 host=$host_alias
1523 target=$target_alias
1525 # FIXME: To remove some day.
1526 if test "x$host_alias" != x; then
1527 if test "x$build_alias" = x; then
1528 cross_compiling=maybe
1529 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1530 If a cross compiler is detected then cross compile mode will be used." >&2
1531 elif test "x$build_alias" != "x$host_alias"; then
1532 cross_compiling=yes
1533 fi
1534 fi
1536 ac_tool_prefix=
1537 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1539 test "$silent" = yes && exec 6>/dev/null
1542 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1543 ac_ls_di=`ls -di .` &&
1544 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1545 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1546 { (exit 1); exit 1; }; }
1547 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1548 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1549 { (exit 1); exit 1; }; }
1552 # Find the source files, if location was not specified.
1553 if test -z "$srcdir"; then
1554 ac_srcdir_defaulted=yes
1555 # Try the directory containing this script, then the parent directory.
1556 ac_confdir=`$as_dirname -- "$as_myself" ||
1557 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1558 X"$as_myself" : 'X\(//\)[^/]' \| \
1559 X"$as_myself" : 'X\(//\)$' \| \
1560 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1561 $as_echo X"$as_myself" |
1562 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1563 s//\1/
1564 q
1565 }
1566 /^X\(\/\/\)[^/].*/{
1567 s//\1/
1568 q
1569 }
1570 /^X\(\/\/\)$/{
1571 s//\1/
1572 q
1573 }
1574 /^X\(\/\).*/{
1575 s//\1/
1576 q
1577 }
1578 s/.*/./; q'`
1579 srcdir=$ac_confdir
1580 if test ! -r "$srcdir/$ac_unique_file"; then
1581 srcdir=..
1582 fi
1583 else
1584 ac_srcdir_defaulted=no
1585 fi
1586 if test ! -r "$srcdir/$ac_unique_file"; then
1587 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1588 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1589 { (exit 1); exit 1; }; }
1590 fi
1591 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1592 ac_abs_confdir=`(
1593 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1594 { (exit 1); exit 1; }; }
1595 pwd)`
1596 # When building in place, set srcdir=.
1597 if test "$ac_abs_confdir" = "$ac_pwd"; then
1598 srcdir=.
1599 fi
1600 # Remove unnecessary trailing slashes from srcdir.
1601 # Double slashes in file names in object file debugging info
1602 # mess up M-x gdb in Emacs.
1603 case $srcdir in
1604 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1605 esac
1606 for ac_var in $ac_precious_vars; do
1607 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1608 eval ac_env_${ac_var}_value=\$${ac_var}
1609 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1610 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1611 done
1613 #
1614 # Report the --help message.
1615 #
1616 if test "$ac_init_help" = "long"; then
1617 # Omit some internal or obsolete options to make the list less imposing.
1618 # This message is too long to be a string in the A/UX 3.1 sh.
1619 cat <<_ACEOF
1620 \`configure' configures rrdtool 1.4.2 to adapt to many kinds of systems.
1622 Usage: $0 [OPTION]... [VAR=VALUE]...
1624 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1625 VAR=VALUE. See below for descriptions of some of the useful variables.
1627 Defaults for the options are specified in brackets.
1629 Configuration:
1630 -h, --help display this help and exit
1631 --help=short display options specific to this package
1632 --help=recursive display the short help of all the included packages
1633 -V, --version display version information and exit
1634 -q, --quiet, --silent do not print \`checking...' messages
1635 --cache-file=FILE cache test results in FILE [disabled]
1636 -C, --config-cache alias for \`--cache-file=config.cache'
1637 -n, --no-create do not create output files
1638 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1640 Installation directories:
1641 --prefix=PREFIX install architecture-independent files in PREFIX
1642 [$ac_default_prefix]
1643 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1644 [PREFIX]
1646 By default, \`make install' will install all the files in
1647 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1648 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1649 for instance \`--prefix=\$HOME'.
1651 For better control, use the options below.
1653 Fine tuning of the installation directories:
1654 --bindir=DIR user executables [EPREFIX/bin]
1655 --sbindir=DIR system admin executables [EPREFIX/sbin]
1656 --libexecdir=DIR program executables [EPREFIX/libexec]
1657 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1658 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1659 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1660 --libdir=DIR object code libraries [EPREFIX/lib]
1661 --includedir=DIR C header files [PREFIX/include]
1662 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1663 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1664 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1665 --infodir=DIR info documentation [DATAROOTDIR/info]
1666 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1667 --mandir=DIR man documentation [DATAROOTDIR/man]
1668 --docdir=DIR documentation root [DATAROOTDIR/doc/rrdtool]
1669 --htmldir=DIR html documentation [DOCDIR]
1670 --dvidir=DIR dvi documentation [DOCDIR]
1671 --pdfdir=DIR pdf documentation [DOCDIR]
1672 --psdir=DIR ps documentation [DOCDIR]
1673 _ACEOF
1675 cat <<\_ACEOF
1677 Program names:
1678 --program-prefix=PREFIX prepend PREFIX to installed program names
1679 --program-suffix=SUFFIX append SUFFIX to installed program names
1680 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1682 System types:
1683 --build=BUILD configure for building on BUILD [guessed]
1684 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1685 --target=TARGET configure for building compilers for TARGET [HOST]
1686 _ACEOF
1687 fi
1689 if test -n "$ac_init_help"; then
1690 case $ac_init_help in
1691 short | recursive ) echo "Configuration of rrdtool 1.4.2:";;
1692 esac
1693 cat <<\_ACEOF
1695 Optional Features:
1696 --disable-option-checking ignore unrecognized --enable/--with options
1697 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1698 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1699 --disable-dependency-tracking speeds up one-time build
1700 --enable-dependency-tracking do not reject slow dependency extractors
1701 --enable-maintainer-mode enable make rules and dependencies not useful
1702 (and sometimes confusing) to the casual installer
1703 --enable-silent-rules less verbose build output (undo: `make V=1')
1704 --disable-silent-rules verbose build output (undo: `make V=0')
1705 --disable-rrdcgi disable building of rrdcgi
1706 --disable-mmap disable mmap in rrd_update, use seek+write instead
1707 --disable-pthread disable multithread support
1708 --enable-static-programs
1709 Build static programs
1710 --enable-shared[=PKGS] build shared libraries [default=yes]
1711 --enable-static[=PKGS] build static libraries [default=yes]
1712 --enable-fast-install[=PKGS]
1713 optimize for fast installation [default=yes]
1714 --disable-libtool-lock avoid locking (might break parallel builds)
1715 --disable-nls do not use Native Language Support
1716 --disable-rpath do not hardcode runtime library paths
1717 --disable-libdbi do not build in support for libdbi
1718 --disable-perl do not build the perl modules
1719 --enable-perl-site-install
1720 by default the rrdtool perl modules are installed
1721 together with rrdtool in $prefix/lib/perl. You have
1722 to put a 'use lib qw($prefix/lib/perl)' into your
1723 scripts when you want to use them. When you set this
1724 option the perl modules will get installed wherever
1725 your perl setup thinks it is best.
1726 --disable-ruby do not build the ruby modules
1727 --enable-ruby-site-install
1728 by default the rrdtool ruby modules are installed
1729 together with rrdtool in $prefix/lib/ruby. You have
1730 to add $prefix/lib/ruby/$ruby_version/$sitearch to
1731 your $: variable for ruby to find the RRD.so file.
1732 --disable-lua do not build the lua modules
1733 --enable-lua-site-install
1734 by default the lua module is installed together with
1735 rrdtool in $prefix/lib/lua/$lua_version. You have to
1736 add $prefix/lib/lua/$lua_version/?.so to
1737 package.cpath for lua to find 'rrd.so'. For lua 5.0
1738 you may also need to change LUA_PATH to the same
1739 dir, to require 'compat-5.1'. When you set this
1740 option the lua modules will get installed wherever
1741 your Lua setup thinks it is best. WARNING: if you
1742 set this option, system lua modules compat-5.1.lua
1743 and rrd.so, if any, may be overwritten.
1744 --disable-tcl do not build the tcl modules
1745 --enable-tcl-site install the tcl extension in the tcl tree
1746 --disable-python do not build the python modules
1748 Optional Packages:
1749 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1750 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1751 --with-rrd-default-font=OPTIONS set the full path to your default font.
1752 --with-pic try to use only PIC/non-PIC objects [default=use
1753 both]
1754 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1755 --with-gnu-ld assume the C compiler uses GNU ld default=no
1756 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1757 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1758 --with-included-gettext use the GNU gettext library included here
1759 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1760 --without-libintl-prefix don't search for libintl in includedir and libdir
1761 --with-perl-options=OPTIONS options to pass on command-line when
1762 generating Makefile from Makefile.PL. If you set this
1763 option, interesting things may happen unless you know
1764 what you are doing!
1765 --with-ruby-options=OPTIONS options to pass on command-line when
1766 generating Makefile from extconf.rb. If you set this
1767 option, interesting things may happen unless you know
1768 what you are doing!
1769 --with-tcllib=DIR location of the tclConfig.sh
1771 Some influential environment variables:
1772 CC C compiler command
1773 CFLAGS C compiler flags
1774 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1775 nonstandard directory <lib dir>
1776 LIBS libraries to pass to the linker, e.g. -l<library>
1777 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1778 you have headers in a nonstandard directory <include dir>
1779 CPP C preprocessor
1780 RRDGRAPH_YLEGEND_ANGLE
1781 Vertical label angle: -90.0 (default) or 90.0
1782 PERLCC C compiler for Perl modules
1783 PERLCCFLAGS CC flags for Perl modules
1784 PERLLD Linker for Perl modules
1785 PERLLDFLAGS LD flags for Perl modules
1786 RRDDOCDIR [DATADIR/doc/PACKAGE-VERSION] Documentation directory
1788 Use these variables to override the choices made by `configure' or to help
1789 it to find libraries and programs with nonstandard names/locations.
1791 _ACEOF
1792 ac_status=$?
1793 fi
1795 if test "$ac_init_help" = "recursive"; then
1796 # If there are subdirs, report their specific --help.
1797 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1798 test -d "$ac_dir" ||
1799 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1800 continue
1801 ac_builddir=.
1803 case "$ac_dir" in
1804 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1805 *)
1806 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1807 # A ".." for each directory in $ac_dir_suffix.
1808 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1809 case $ac_top_builddir_sub in
1810 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1811 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1812 esac ;;
1813 esac
1814 ac_abs_top_builddir=$ac_pwd
1815 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1816 # for backward compatibility:
1817 ac_top_builddir=$ac_top_build_prefix
1819 case $srcdir in
1820 .) # We are building in place.
1821 ac_srcdir=.
1822 ac_top_srcdir=$ac_top_builddir_sub
1823 ac_abs_top_srcdir=$ac_pwd ;;
1824 [\\/]* | ?:[\\/]* ) # Absolute name.
1825 ac_srcdir=$srcdir$ac_dir_suffix;
1826 ac_top_srcdir=$srcdir
1827 ac_abs_top_srcdir=$srcdir ;;
1828 *) # Relative name.
1829 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1830 ac_top_srcdir=$ac_top_build_prefix$srcdir
1831 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1832 esac
1833 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1835 cd "$ac_dir" || { ac_status=$?; continue; }
1836 # Check for guested configure.
1837 if test -f "$ac_srcdir/configure.gnu"; then
1838 echo &&
1839 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1840 elif test -f "$ac_srcdir/configure"; then
1841 echo &&
1842 $SHELL "$ac_srcdir/configure" --help=recursive
1843 else
1844 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1845 fi || ac_status=$?
1846 cd "$ac_pwd" || { ac_status=$?; break; }
1847 done
1848 fi
1850 test -n "$ac_init_help" && exit $ac_status
1851 if $ac_init_version; then
1852 cat <<\_ACEOF
1853 rrdtool configure 1.4.2
1854 generated by GNU Autoconf 2.63
1856 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1857 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1858 This configure script is free software; the Free Software Foundation
1859 gives unlimited permission to copy, distribute and modify it.
1860 _ACEOF
1861 exit
1862 fi
1863 cat >config.log <<_ACEOF
1864 This file contains any messages produced by compilers while
1865 running configure, to aid debugging if configure makes a mistake.
1867 It was created by rrdtool $as_me 1.4.2, which was
1868 generated by GNU Autoconf 2.63. Invocation command line was
1870 $ $0 $@
1872 _ACEOF
1873 exec 5>>config.log
1874 {
1875 cat <<_ASUNAME
1876 ## --------- ##
1877 ## Platform. ##
1878 ## --------- ##
1880 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1881 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1882 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1883 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1884 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1886 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1887 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1889 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1890 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1891 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1892 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1893 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1894 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1895 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1897 _ASUNAME
1899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1900 for as_dir in $PATH
1901 do
1902 IFS=$as_save_IFS
1903 test -z "$as_dir" && as_dir=.
1904 $as_echo "PATH: $as_dir"
1905 done
1906 IFS=$as_save_IFS
1908 } >&5
1910 cat >&5 <<_ACEOF
1913 ## ----------- ##
1914 ## Core tests. ##
1915 ## ----------- ##
1917 _ACEOF
1920 # Keep a trace of the command line.
1921 # Strip out --no-create and --no-recursion so they do not pile up.
1922 # Strip out --silent because we don't want to record it for future runs.
1923 # Also quote any args containing shell meta-characters.
1924 # Make two passes to allow for proper duplicate-argument suppression.
1925 ac_configure_args=
1926 ac_configure_args0=
1927 ac_configure_args1=
1928 ac_must_keep_next=false
1929 for ac_pass in 1 2
1930 do
1931 for ac_arg
1932 do
1933 case $ac_arg in
1934 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1935 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1936 | -silent | --silent | --silen | --sile | --sil)
1937 continue ;;
1938 *\'*)
1939 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1940 esac
1941 case $ac_pass in
1942 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1943 2)
1944 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1945 if test $ac_must_keep_next = true; then
1946 ac_must_keep_next=false # Got value, back to normal.
1947 else
1948 case $ac_arg in
1949 *=* | --config-cache | -C | -disable-* | --disable-* \
1950 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1951 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1952 | -with-* | --with-* | -without-* | --without-* | --x)
1953 case "$ac_configure_args0 " in
1954 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1955 esac
1956 ;;
1957 -* ) ac_must_keep_next=true ;;
1958 esac
1959 fi
1960 ac_configure_args="$ac_configure_args '$ac_arg'"
1961 ;;
1962 esac
1963 done
1964 done
1965 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1966 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1968 # When interrupted or exit'd, cleanup temporary files, and complete
1969 # config.log. We remove comments because anyway the quotes in there
1970 # would cause problems or look ugly.
1971 # WARNING: Use '\'' to represent an apostrophe within the trap.
1972 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1973 trap 'exit_status=$?
1974 # Save into config.log some information that might help in debugging.
1975 {
1976 echo
1978 cat <<\_ASBOX
1979 ## ---------------- ##
1980 ## Cache variables. ##
1981 ## ---------------- ##
1982 _ASBOX
1983 echo
1984 # The following way of writing the cache mishandles newlines in values,
1985 (
1986 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1987 eval ac_val=\$$ac_var
1988 case $ac_val in #(
1989 *${as_nl}*)
1990 case $ac_var in #(
1991 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1992 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1993 esac
1994 case $ac_var in #(
1995 _ | IFS | as_nl) ;; #(
1996 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1997 *) $as_unset $ac_var ;;
1998 esac ;;
1999 esac
2000 done
2001 (set) 2>&1 |
2002 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2003 *${as_nl}ac_space=\ *)
2004 sed -n \
2005 "s/'\''/'\''\\\\'\'''\''/g;
2006 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2007 ;; #(
2008 *)
2009 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2010 ;;
2011 esac |
2012 sort
2013 )
2014 echo
2016 cat <<\_ASBOX
2017 ## ----------------- ##
2018 ## Output variables. ##
2019 ## ----------------- ##
2020 _ASBOX
2021 echo
2022 for ac_var in $ac_subst_vars
2023 do
2024 eval ac_val=\$$ac_var
2025 case $ac_val in
2026 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2027 esac
2028 $as_echo "$ac_var='\''$ac_val'\''"
2029 done | sort
2030 echo
2032 if test -n "$ac_subst_files"; then
2033 cat <<\_ASBOX
2034 ## ------------------- ##
2035 ## File substitutions. ##
2036 ## ------------------- ##
2037 _ASBOX
2038 echo
2039 for ac_var in $ac_subst_files
2040 do
2041 eval ac_val=\$$ac_var
2042 case $ac_val in
2043 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2044 esac
2045 $as_echo "$ac_var='\''$ac_val'\''"
2046 done | sort
2047 echo
2048 fi
2050 if test -s confdefs.h; then
2051 cat <<\_ASBOX
2052 ## ----------- ##
2053 ## confdefs.h. ##
2054 ## ----------- ##
2055 _ASBOX
2056 echo
2057 cat confdefs.h
2058 echo
2059 fi
2060 test "$ac_signal" != 0 &&
2061 $as_echo "$as_me: caught signal $ac_signal"
2062 $as_echo "$as_me: exit $exit_status"
2063 } >&5
2064 rm -f core *.core core.conftest.* &&
2065 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2066 exit $exit_status
2067 ' 0
2068 for ac_signal in 1 2 13 15; do
2069 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2070 done
2071 ac_signal=0
2073 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2074 rm -f -r conftest* confdefs.h
2076 # Predefined preprocessor variables.
2078 cat >>confdefs.h <<_ACEOF
2079 #define PACKAGE_NAME "$PACKAGE_NAME"
2080 _ACEOF
2083 cat >>confdefs.h <<_ACEOF
2084 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2085 _ACEOF
2088 cat >>confdefs.h <<_ACEOF
2089 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2090 _ACEOF
2093 cat >>confdefs.h <<_ACEOF
2094 #define PACKAGE_STRING "$PACKAGE_STRING"
2095 _ACEOF
2098 cat >>confdefs.h <<_ACEOF
2099 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2100 _ACEOF
2103 # Let the site file select an alternate cache file if it wants to.
2104 # Prefer an explicitly selected file to automatically selected ones.
2105 ac_site_file1=NONE
2106 ac_site_file2=NONE
2107 if test -n "$CONFIG_SITE"; then
2108 ac_site_file1=$CONFIG_SITE
2109 elif test "x$prefix" != xNONE; then
2110 ac_site_file1=$prefix/share/config.site
2111 ac_site_file2=$prefix/etc/config.site
2112 else
2113 ac_site_file1=$ac_default_prefix/share/config.site
2114 ac_site_file2=$ac_default_prefix/etc/config.site
2115 fi
2116 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2117 do
2118 test "x$ac_site_file" = xNONE && continue
2119 if test -r "$ac_site_file"; then
2120 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2121 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2122 sed 's/^/| /' "$ac_site_file" >&5
2123 . "$ac_site_file"
2124 fi
2125 done
2127 if test -r "$cache_file"; then
2128 # Some versions of bash will fail to source /dev/null (special
2129 # files actually), so we avoid doing that.
2130 if test -f "$cache_file"; then
2131 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2132 $as_echo "$as_me: loading cache $cache_file" >&6;}
2133 case $cache_file in
2134 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2135 *) . "./$cache_file";;
2136 esac
2137 fi
2138 else
2139 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2140 $as_echo "$as_me: creating cache $cache_file" >&6;}
2141 >$cache_file
2142 fi
2144 # Check that the precious variables saved in the cache have kept the same
2145 # value.
2146 ac_cache_corrupted=false
2147 for ac_var in $ac_precious_vars; do
2148 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2149 eval ac_new_set=\$ac_env_${ac_var}_set
2150 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2151 eval ac_new_val=\$ac_env_${ac_var}_value
2152 case $ac_old_set,$ac_new_set in
2153 set,)
2154 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2155 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2156 ac_cache_corrupted=: ;;
2157 ,set)
2158 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2159 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2160 ac_cache_corrupted=: ;;
2161 ,);;
2162 *)
2163 if test "x$ac_old_val" != "x$ac_new_val"; then
2164 # differences in whitespace do not lead to failure.
2165 ac_old_val_w=`echo x $ac_old_val`
2166 ac_new_val_w=`echo x $ac_new_val`
2167 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2168 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2169 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2170 ac_cache_corrupted=:
2171 else
2172 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2173 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2174 eval $ac_var=\$ac_old_val
2175 fi
2176 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2177 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2178 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2179 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2180 fi;;
2181 esac
2182 # Pass precious variables to config.status.
2183 if test "$ac_new_set" = set; then
2184 case $ac_new_val in
2185 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2186 *) ac_arg=$ac_var=$ac_new_val ;;
2187 esac
2188 case " $ac_configure_args " in
2189 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2190 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2191 esac
2192 fi
2193 done
2194 if $ac_cache_corrupted; then
2195 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2196 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2197 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2198 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2199 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2200 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2201 { (exit 1); exit 1; }; }
2202 fi
2228 ac_ext=c
2229 ac_cpp='$CPP $CPPFLAGS'
2230 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2231 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2232 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2236 NUMVERS=1.4002
2239 LIBVERS=5:2:1
2242 ac_aux_dir=
2243 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2244 if test -f "$ac_dir/install-sh"; then
2245 ac_aux_dir=$ac_dir
2246 ac_install_sh="$ac_aux_dir/install-sh -c"
2247 break
2248 elif test -f "$ac_dir/install.sh"; then
2249 ac_aux_dir=$ac_dir
2250 ac_install_sh="$ac_aux_dir/install.sh -c"
2251 break
2252 elif test -f "$ac_dir/shtool"; then
2253 ac_aux_dir=$ac_dir
2254 ac_install_sh="$ac_aux_dir/shtool install -c"
2255 break
2256 fi
2257 done
2258 if test -z "$ac_aux_dir"; then
2259 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2260 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2261 { (exit 1); exit 1; }; }
2262 fi
2264 # These three variables are undocumented and unsupported,
2265 # and are intended to be withdrawn in a future Autoconf release.
2266 # They can cause serious problems if a builder's source tree is in a directory
2267 # whose full name contains unusual characters.
2268 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2269 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2270 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2273 # Make sure we can run config.sub.
2274 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2275 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2276 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2277 { (exit 1); exit 1; }; }
2279 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2280 $as_echo_n "checking build system type... " >&6; }
2281 if test "${ac_cv_build+set}" = set; then
2282 $as_echo_n "(cached) " >&6
2283 else
2284 ac_build_alias=$build_alias
2285 test "x$ac_build_alias" = x &&
2286 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2287 test "x$ac_build_alias" = x &&
2288 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2289 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2290 { (exit 1); exit 1; }; }
2291 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2292 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2293 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2294 { (exit 1); exit 1; }; }
2296 fi
2297 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2298 $as_echo "$ac_cv_build" >&6; }
2299 case $ac_cv_build in
2300 *-*-*) ;;
2301 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2302 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2303 { (exit 1); exit 1; }; };;
2304 esac
2305 build=$ac_cv_build
2306 ac_save_IFS=$IFS; IFS='-'
2307 set x $ac_cv_build
2308 shift
2309 build_cpu=$1
2310 build_vendor=$2
2311 shift; shift
2312 # Remember, the first character of IFS is used to create $*,
2313 # except with old shells:
2314 build_os=$*
2315 IFS=$ac_save_IFS
2316 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2319 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2320 $as_echo_n "checking host system type... " >&6; }
2321 if test "${ac_cv_host+set}" = set; then
2322 $as_echo_n "(cached) " >&6
2323 else
2324 if test "x$host_alias" = x; then
2325 ac_cv_host=$ac_cv_build
2326 else
2327 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2328 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2329 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2330 { (exit 1); exit 1; }; }
2331 fi
2333 fi
2334 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2335 $as_echo "$ac_cv_host" >&6; }
2336 case $ac_cv_host in
2337 *-*-*) ;;
2338 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2339 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2340 { (exit 1); exit 1; }; };;
2341 esac
2342 host=$ac_cv_host
2343 ac_save_IFS=$IFS; IFS='-'
2344 set x $ac_cv_host
2345 shift
2346 host_cpu=$1
2347 host_vendor=$2
2348 shift; shift
2349 # Remember, the first character of IFS is used to create $*,
2350 # except with old shells:
2351 host_os=$*
2352 IFS=$ac_save_IFS
2353 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2356 { $as_echo "$as_me:$LINENO: checking target system type" >&5
2357 $as_echo_n "checking target system type... " >&6; }
2358 if test "${ac_cv_target+set}" = set; then
2359 $as_echo_n "(cached) " >&6
2360 else
2361 if test "x$target_alias" = x; then
2362 ac_cv_target=$ac_cv_host
2363 else
2364 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2365 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2366 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2367 { (exit 1); exit 1; }; }
2368 fi
2370 fi
2371 { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2372 $as_echo "$ac_cv_target" >&6; }
2373 case $ac_cv_target in
2374 *-*-*) ;;
2375 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2376 $as_echo "$as_me: error: invalid value of canonical target" >&2;}
2377 { (exit 1); exit 1; }; };;
2378 esac
2379 target=$ac_cv_target
2380 ac_save_IFS=$IFS; IFS='-'
2381 set x $ac_cv_target
2382 shift
2383 target_cpu=$1
2384 target_vendor=$2
2385 shift; shift
2386 # Remember, the first character of IFS is used to create $*,
2387 # except with old shells:
2388 target_os=$*
2389 IFS=$ac_save_IFS
2390 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2393 # The aliases save the names the user supplied, while $host etc.
2394 # will get canonicalized.
2395 test -n "$target_alias" &&
2396 test "$program_prefix$program_suffix$program_transform_name" = \
2397 NONENONEs,x,x, &&
2398 program_prefix=${target_alias}-
2399 ac_ext=c
2400 ac_cpp='$CPP $CPPFLAGS'
2401 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2402 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2403 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2404 if test -n "$ac_tool_prefix"; then
2405 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2406 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2407 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2408 $as_echo_n "checking for $ac_word... " >&6; }
2409 if test "${ac_cv_prog_CC+set}" = set; then
2410 $as_echo_n "(cached) " >&6
2411 else
2412 if test -n "$CC"; then
2413 ac_cv_prog_CC="$CC" # Let the user override the test.
2414 else
2415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2416 for as_dir in $PATH
2417 do
2418 IFS=$as_save_IFS
2419 test -z "$as_dir" && as_dir=.
2420 for ac_exec_ext in '' $ac_executable_extensions; do
2421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2422 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2423 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2424 break 2
2425 fi
2426 done
2427 done
2428 IFS=$as_save_IFS
2430 fi
2431 fi
2432 CC=$ac_cv_prog_CC
2433 if test -n "$CC"; then
2434 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2435 $as_echo "$CC" >&6; }
2436 else
2437 { $as_echo "$as_me:$LINENO: result: no" >&5
2438 $as_echo "no" >&6; }
2439 fi
2442 fi
2443 if test -z "$ac_cv_prog_CC"; then
2444 ac_ct_CC=$CC
2445 # Extract the first word of "gcc", so it can be a program name with args.
2446 set dummy gcc; ac_word=$2
2447 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2448 $as_echo_n "checking for $ac_word... " >&6; }
2449 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2450 $as_echo_n "(cached) " >&6
2451 else
2452 if test -n "$ac_ct_CC"; then
2453 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2454 else
2455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2456 for as_dir in $PATH
2457 do
2458 IFS=$as_save_IFS
2459 test -z "$as_dir" && as_dir=.
2460 for ac_exec_ext in '' $ac_executable_extensions; do
2461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2462 ac_cv_prog_ac_ct_CC="gcc"
2463 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2464 break 2
2465 fi
2466 done
2467 done
2468 IFS=$as_save_IFS
2470 fi
2471 fi
2472 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2473 if test -n "$ac_ct_CC"; then
2474 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2475 $as_echo "$ac_ct_CC" >&6; }
2476 else
2477 { $as_echo "$as_me:$LINENO: result: no" >&5
2478 $as_echo "no" >&6; }
2479 fi
2481 if test "x$ac_ct_CC" = x; then
2482 CC=""
2483 else
2484 case $cross_compiling:$ac_tool_warned in
2485 yes:)
2486 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2487 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2488 ac_tool_warned=yes ;;
2489 esac
2490 CC=$ac_ct_CC
2491 fi
2492 else
2493 CC="$ac_cv_prog_CC"
2494 fi
2496 if test -z "$CC"; then
2497 if test -n "$ac_tool_prefix"; then
2498 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2499 set dummy ${ac_tool_prefix}cc; ac_word=$2
2500 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2501 $as_echo_n "checking for $ac_word... " >&6; }
2502 if test "${ac_cv_prog_CC+set}" = set; then
2503 $as_echo_n "(cached) " >&6
2504 else
2505 if test -n "$CC"; then
2506 ac_cv_prog_CC="$CC" # Let the user override the test.
2507 else
2508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2509 for as_dir in $PATH
2510 do
2511 IFS=$as_save_IFS
2512 test -z "$as_dir" && as_dir=.
2513 for ac_exec_ext in '' $ac_executable_extensions; do
2514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2515 ac_cv_prog_CC="${ac_tool_prefix}cc"
2516 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2517 break 2
2518 fi
2519 done
2520 done
2521 IFS=$as_save_IFS
2523 fi
2524 fi
2525 CC=$ac_cv_prog_CC
2526 if test -n "$CC"; then
2527 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2528 $as_echo "$CC" >&6; }
2529 else
2530 { $as_echo "$as_me:$LINENO: result: no" >&5
2531 $as_echo "no" >&6; }
2532 fi
2535 fi
2536 fi
2537 if test -z "$CC"; then
2538 # Extract the first word of "cc", so it can be a program name with args.
2539 set dummy cc; ac_word=$2
2540 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2541 $as_echo_n "checking for $ac_word... " >&6; }
2542 if test "${ac_cv_prog_CC+set}" = set; then
2543 $as_echo_n "(cached) " >&6
2544 else
2545 if test -n "$CC"; then
2546 ac_cv_prog_CC="$CC" # Let the user override the test.
2547 else
2548 ac_prog_rejected=no
2549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2550 for as_dir in $PATH
2551 do
2552 IFS=$as_save_IFS
2553 test -z "$as_dir" && as_dir=.
2554 for ac_exec_ext in '' $ac_executable_extensions; do
2555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2556 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2557 ac_prog_rejected=yes
2558 continue
2559 fi
2560 ac_cv_prog_CC="cc"
2561 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2562 break 2
2563 fi
2564 done
2565 done
2566 IFS=$as_save_IFS
2568 if test $ac_prog_rejected = yes; then
2569 # We found a bogon in the path, so make sure we never use it.
2570 set dummy $ac_cv_prog_CC
2571 shift
2572 if test $# != 0; then
2573 # We chose a different compiler from the bogus one.
2574 # However, it has the same basename, so the bogon will be chosen
2575 # first if we set CC to just the basename; use the full file name.
2576 shift
2577 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2578 fi
2579 fi
2580 fi
2581 fi
2582 CC=$ac_cv_prog_CC
2583 if test -n "$CC"; then
2584 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2585 $as_echo "$CC" >&6; }
2586 else
2587 { $as_echo "$as_me:$LINENO: result: no" >&5
2588 $as_echo "no" >&6; }
2589 fi
2592 fi
2593 if test -z "$CC"; then
2594 if test -n "$ac_tool_prefix"; then
2595 for ac_prog in cl.exe
2596 do
2597 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2598 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2599 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2600 $as_echo_n "checking for $ac_word... " >&6; }
2601 if test "${ac_cv_prog_CC+set}" = set; then
2602 $as_echo_n "(cached) " >&6
2603 else
2604 if test -n "$CC"; then
2605 ac_cv_prog_CC="$CC" # Let the user override the test.
2606 else
2607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2608 for as_dir in $PATH
2609 do
2610 IFS=$as_save_IFS
2611 test -z "$as_dir" && as_dir=.
2612 for ac_exec_ext in '' $ac_executable_extensions; do
2613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2614 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2615 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2616 break 2
2617 fi
2618 done
2619 done
2620 IFS=$as_save_IFS
2622 fi
2623 fi
2624 CC=$ac_cv_prog_CC
2625 if test -n "$CC"; then
2626 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2627 $as_echo "$CC" >&6; }
2628 else
2629 { $as_echo "$as_me:$LINENO: result: no" >&5
2630 $as_echo "no" >&6; }
2631 fi
2634 test -n "$CC" && break
2635 done
2636 fi
2637 if test -z "$CC"; then
2638 ac_ct_CC=$CC
2639 for ac_prog in cl.exe
2640 do
2641 # Extract the first word of "$ac_prog", so it can be a program name with args.
2642 set dummy $ac_prog; ac_word=$2
2643 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2644 $as_echo_n "checking for $ac_word... " >&6; }
2645 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2646 $as_echo_n "(cached) " >&6
2647 else
2648 if test -n "$ac_ct_CC"; then
2649 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2650 else
2651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2652 for as_dir in $PATH
2653 do
2654 IFS=$as_save_IFS
2655 test -z "$as_dir" && as_dir=.
2656 for ac_exec_ext in '' $ac_executable_extensions; do
2657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2658 ac_cv_prog_ac_ct_CC="$ac_prog"
2659 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2660 break 2
2661 fi
2662 done
2663 done
2664 IFS=$as_save_IFS
2666 fi
2667 fi
2668 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2669 if test -n "$ac_ct_CC"; then
2670 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2671 $as_echo "$ac_ct_CC" >&6; }
2672 else
2673 { $as_echo "$as_me:$LINENO: result: no" >&5
2674 $as_echo "no" >&6; }
2675 fi
2678 test -n "$ac_ct_CC" && break
2679 done
2681 if test "x$ac_ct_CC" = x; then
2682 CC=""
2683 else
2684 case $cross_compiling:$ac_tool_warned in
2685 yes:)
2686 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2687 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2688 ac_tool_warned=yes ;;
2689 esac
2690 CC=$ac_ct_CC
2691 fi
2692 fi
2694 fi
2697 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2698 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2699 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2700 See \`config.log' for more details." >&5
2701 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2702 See \`config.log' for more details." >&2;}
2703 { (exit 1); exit 1; }; }; }
2705 # Provide some information about the compiler.
2706 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2707 set X $ac_compile
2708 ac_compiler=$2
2709 { (ac_try="$ac_compiler --version >&5"
2710 case "(($ac_try" in
2711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2712 *) ac_try_echo=$ac_try;;
2713 esac
2714 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2715 $as_echo "$ac_try_echo") >&5
2716 (eval "$ac_compiler --version >&5") 2>&5
2717 ac_status=$?
2718 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719 (exit $ac_status); }
2720 { (ac_try="$ac_compiler -v >&5"
2721 case "(($ac_try" in
2722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2723 *) ac_try_echo=$ac_try;;
2724 esac
2725 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2726 $as_echo "$ac_try_echo") >&5
2727 (eval "$ac_compiler -v >&5") 2>&5
2728 ac_status=$?
2729 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2730 (exit $ac_status); }
2731 { (ac_try="$ac_compiler -V >&5"
2732 case "(($ac_try" in
2733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2734 *) ac_try_echo=$ac_try;;
2735 esac
2736 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2737 $as_echo "$ac_try_echo") >&5
2738 (eval "$ac_compiler -V >&5") 2>&5
2739 ac_status=$?
2740 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741 (exit $ac_status); }
2743 cat >conftest.$ac_ext <<_ACEOF
2744 /* confdefs.h. */
2745 _ACEOF
2746 cat confdefs.h >>conftest.$ac_ext
2747 cat >>conftest.$ac_ext <<_ACEOF
2748 /* end confdefs.h. */
2750 int
2751 main ()
2752 {
2754 ;
2755 return 0;
2756 }
2757 _ACEOF
2758 ac_clean_files_save=$ac_clean_files
2759 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2760 # Try to create an executable without -o first, disregard a.out.
2761 # It will help us diagnose broken compilers, and finding out an intuition
2762 # of exeext.
2763 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2764 $as_echo_n "checking for C compiler default output file name... " >&6; }
2765 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2767 # The possible output files:
2768 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2770 ac_rmfiles=
2771 for ac_file in $ac_files
2772 do
2773 case $ac_file in
2774 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2775 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2776 esac
2777 done
2778 rm -f $ac_rmfiles
2780 if { (ac_try="$ac_link_default"
2781 case "(($ac_try" in
2782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2783 *) ac_try_echo=$ac_try;;
2784 esac
2785 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2786 $as_echo "$ac_try_echo") >&5
2787 (eval "$ac_link_default") 2>&5
2788 ac_status=$?
2789 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2790 (exit $ac_status); }; then
2791 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2792 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2793 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2794 # so that the user can short-circuit this test for compilers unknown to
2795 # Autoconf.
2796 for ac_file in $ac_files ''
2797 do
2798 test -f "$ac_file" || continue
2799 case $ac_file in
2800 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2801 ;;
2802 [ab].out )
2803 # We found the default executable, but exeext='' is most
2804 # certainly right.
2805 break;;
2806 *.* )
2807 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2808 then :; else
2809 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2810 fi
2811 # We set ac_cv_exeext here because the later test for it is not
2812 # safe: cross compilers may not add the suffix if given an `-o'
2813 # argument, so we may need to know it at that point already.
2814 # Even if this section looks crufty: it has the advantage of
2815 # actually working.
2816 break;;
2817 * )
2818 break;;
2819 esac
2820 done
2821 test "$ac_cv_exeext" = no && ac_cv_exeext=
2823 else
2824 ac_file=''
2825 fi
2827 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2828 $as_echo "$ac_file" >&6; }
2829 if test -z "$ac_file"; then
2830 $as_echo "$as_me: failed program was:" >&5
2831 sed 's/^/| /' conftest.$ac_ext >&5
2833 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2834 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2835 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2836 See \`config.log' for more details." >&5
2837 $as_echo "$as_me: error: C compiler cannot create executables
2838 See \`config.log' for more details." >&2;}
2839 { (exit 77); exit 77; }; }; }
2840 fi
2842 ac_exeext=$ac_cv_exeext
2844 # Check that the compiler produces executables we can run. If not, either
2845 # the compiler is broken, or we cross compile.
2846 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2847 $as_echo_n "checking whether the C compiler works... " >&6; }
2848 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2849 # If not cross compiling, check that we can run a simple program.
2850 if test "$cross_compiling" != yes; then
2851 if { ac_try='./$ac_file'
2852 { (case "(($ac_try" in
2853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2854 *) ac_try_echo=$ac_try;;
2855 esac
2856 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2857 $as_echo "$ac_try_echo") >&5
2858 (eval "$ac_try") 2>&5
2859 ac_status=$?
2860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2861 (exit $ac_status); }; }; then
2862 cross_compiling=no
2863 else
2864 if test "$cross_compiling" = maybe; then
2865 cross_compiling=yes
2866 else
2867 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2868 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2869 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2870 If you meant to cross compile, use \`--host'.
2871 See \`config.log' for more details." >&5
2872 $as_echo "$as_me: error: cannot run C compiled programs.
2873 If you meant to cross compile, use \`--host'.
2874 See \`config.log' for more details." >&2;}
2875 { (exit 1); exit 1; }; }; }
2876 fi
2877 fi
2878 fi
2879 { $as_echo "$as_me:$LINENO: result: yes" >&5
2880 $as_echo "yes" >&6; }
2882 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2883 ac_clean_files=$ac_clean_files_save
2884 # Check that the compiler produces executables we can run. If not, either
2885 # the compiler is broken, or we cross compile.
2886 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2887 $as_echo_n "checking whether we are cross compiling... " >&6; }
2888 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2889 $as_echo "$cross_compiling" >&6; }
2891 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2892 $as_echo_n "checking for suffix of executables... " >&6; }
2893 if { (ac_try="$ac_link"
2894 case "(($ac_try" in
2895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2896 *) ac_try_echo=$ac_try;;
2897 esac
2898 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2899 $as_echo "$ac_try_echo") >&5
2900 (eval "$ac_link") 2>&5
2901 ac_status=$?
2902 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2903 (exit $ac_status); }; then
2904 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2905 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2906 # work properly (i.e., refer to `conftest.exe'), while it won't with
2907 # `rm'.
2908 for ac_file in conftest.exe conftest conftest.*; do
2909 test -f "$ac_file" || continue
2910 case $ac_file in
2911 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2912 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2913 break;;
2914 * ) break;;
2915 esac
2916 done
2917 else
2918 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2919 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2920 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2921 See \`config.log' for more details." >&5
2922 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2923 See \`config.log' for more details." >&2;}
2924 { (exit 1); exit 1; }; }; }
2925 fi
2927 rm -f conftest$ac_cv_exeext
2928 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2929 $as_echo "$ac_cv_exeext" >&6; }
2931 rm -f conftest.$ac_ext
2932 EXEEXT=$ac_cv_exeext
2933 ac_exeext=$EXEEXT
2934 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2935 $as_echo_n "checking for suffix of object files... " >&6; }
2936 if test "${ac_cv_objext+set}" = set; then
2937 $as_echo_n "(cached) " >&6
2938 else
2939 cat >conftest.$ac_ext <<_ACEOF
2940 /* confdefs.h. */
2941 _ACEOF
2942 cat confdefs.h >>conftest.$ac_ext
2943 cat >>conftest.$ac_ext <<_ACEOF
2944 /* end confdefs.h. */
2946 int
2947 main ()
2948 {
2950 ;
2951 return 0;
2952 }
2953 _ACEOF
2954 rm -f conftest.o conftest.obj
2955 if { (ac_try="$ac_compile"
2956 case "(($ac_try" in
2957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2958 *) ac_try_echo=$ac_try;;
2959 esac
2960 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2961 $as_echo "$ac_try_echo") >&5
2962 (eval "$ac_compile") 2>&5
2963 ac_status=$?
2964 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2965 (exit $ac_status); }; then
2966 for ac_file in conftest.o conftest.obj conftest.*; do
2967 test -f "$ac_file" || continue;
2968 case $ac_file in
2969 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2970 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2971 break;;
2972 esac
2973 done
2974 else
2975 $as_echo "$as_me: failed program was:" >&5
2976 sed 's/^/| /' conftest.$ac_ext >&5
2978 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2979 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2980 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2981 See \`config.log' for more details." >&5
2982 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2983 See \`config.log' for more details." >&2;}
2984 { (exit 1); exit 1; }; }; }
2985 fi
2987 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2988 fi
2989 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2990 $as_echo "$ac_cv_objext" >&6; }
2991 OBJEXT=$ac_cv_objext
2992 ac_objext=$OBJEXT
2993 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2994 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2995 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2996 $as_echo_n "(cached) " >&6
2997 else
2998 cat >conftest.$ac_ext <<_ACEOF
2999 /* confdefs.h. */
3000 _ACEOF
3001 cat confdefs.h >>conftest.$ac_ext
3002 cat >>conftest.$ac_ext <<_ACEOF
3003 /* end confdefs.h. */
3005 int
3006 main ()
3007 {
3008 #ifndef __GNUC__
3009 choke me
3010 #endif
3012 ;
3013 return 0;
3014 }
3015 _ACEOF
3016 rm -f conftest.$ac_objext
3017 if { (ac_try="$ac_compile"
3018 case "(($ac_try" in
3019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3020 *) ac_try_echo=$ac_try;;
3021 esac
3022 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3023 $as_echo "$ac_try_echo") >&5
3024 (eval "$ac_compile") 2>conftest.er1
3025 ac_status=$?
3026 grep -v '^ *+' conftest.er1 >conftest.err
3027 rm -f conftest.er1
3028 cat conftest.err >&5
3029 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030 (exit $ac_status); } && {
3031 test -z "$ac_c_werror_flag" ||
3032 test ! -s conftest.err
3033 } && test -s conftest.$ac_objext; then
3034 ac_compiler_gnu=yes
3035 else
3036 $as_echo "$as_me: failed program was:" >&5
3037 sed 's/^/| /' conftest.$ac_ext >&5
3039 ac_compiler_gnu=no
3040 fi
3042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3043 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3045 fi
3046 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3047 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3048 if test $ac_compiler_gnu = yes; then
3049 GCC=yes
3050 else
3051 GCC=
3052 fi
3053 ac_test_CFLAGS=${CFLAGS+set}
3054 ac_save_CFLAGS=$CFLAGS
3055 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3056 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3057 if test "${ac_cv_prog_cc_g+set}" = set; then
3058 $as_echo_n "(cached) " >&6
3059 else
3060 ac_save_c_werror_flag=$ac_c_werror_flag
3061 ac_c_werror_flag=yes
3062 ac_cv_prog_cc_g=no
3063 CFLAGS="-g"
3064 cat >conftest.$ac_ext <<_ACEOF
3065 /* confdefs.h. */
3066 _ACEOF
3067 cat confdefs.h >>conftest.$ac_ext
3068 cat >>conftest.$ac_ext <<_ACEOF
3069 /* end confdefs.h. */
3071 int
3072 main ()
3073 {
3075 ;
3076 return 0;
3077 }
3078 _ACEOF
3079 rm -f conftest.$ac_objext
3080 if { (ac_try="$ac_compile"
3081 case "(($ac_try" in
3082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3083 *) ac_try_echo=$ac_try;;
3084 esac
3085 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3086 $as_echo "$ac_try_echo") >&5
3087 (eval "$ac_compile") 2>conftest.er1
3088 ac_status=$?
3089 grep -v '^ *+' conftest.er1 >conftest.err
3090 rm -f conftest.er1
3091 cat conftest.err >&5
3092 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093 (exit $ac_status); } && {
3094 test -z "$ac_c_werror_flag" ||
3095 test ! -s conftest.err
3096 } && test -s conftest.$ac_objext; then
3097 ac_cv_prog_cc_g=yes
3098 else
3099 $as_echo "$as_me: failed program was:" >&5
3100 sed 's/^/| /' conftest.$ac_ext >&5
3102 CFLAGS=""
3103 cat >conftest.$ac_ext <<_ACEOF
3104 /* confdefs.h. */
3105 _ACEOF
3106 cat confdefs.h >>conftest.$ac_ext
3107 cat >>conftest.$ac_ext <<_ACEOF
3108 /* end confdefs.h. */
3110 int
3111 main ()
3112 {
3114 ;
3115 return 0;
3116 }
3117 _ACEOF
3118 rm -f conftest.$ac_objext
3119 if { (ac_try="$ac_compile"
3120 case "(($ac_try" in
3121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3122 *) ac_try_echo=$ac_try;;
3123 esac
3124 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3125 $as_echo "$ac_try_echo") >&5
3126 (eval "$ac_compile") 2>conftest.er1
3127 ac_status=$?
3128 grep -v '^ *+' conftest.er1 >conftest.err
3129 rm -f conftest.er1
3130 cat conftest.err >&5
3131 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3132 (exit $ac_status); } && {
3133 test -z "$ac_c_werror_flag" ||
3134 test ! -s conftest.err
3135 } && test -s conftest.$ac_objext; then
3136 :
3137 else
3138 $as_echo "$as_me: failed program was:" >&5
3139 sed 's/^/| /' conftest.$ac_ext >&5
3141 ac_c_werror_flag=$ac_save_c_werror_flag
3142 CFLAGS="-g"
3143 cat >conftest.$ac_ext <<_ACEOF
3144 /* confdefs.h. */
3145 _ACEOF
3146 cat confdefs.h >>conftest.$ac_ext
3147 cat >>conftest.$ac_ext <<_ACEOF
3148 /* end confdefs.h. */
3150 int
3151 main ()
3152 {
3154 ;
3155 return 0;
3156 }
3157 _ACEOF
3158 rm -f conftest.$ac_objext
3159 if { (ac_try="$ac_compile"
3160 case "(($ac_try" in
3161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3162 *) ac_try_echo=$ac_try;;
3163 esac
3164 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3165 $as_echo "$ac_try_echo") >&5
3166 (eval "$ac_compile") 2>conftest.er1
3167 ac_status=$?
3168 grep -v '^ *+' conftest.er1 >conftest.err
3169 rm -f conftest.er1
3170 cat conftest.err >&5
3171 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3172 (exit $ac_status); } && {
3173 test -z "$ac_c_werror_flag" ||
3174 test ! -s conftest.err
3175 } && test -s conftest.$ac_objext; then
3176 ac_cv_prog_cc_g=yes
3177 else
3178 $as_echo "$as_me: failed program was:" >&5
3179 sed 's/^/| /' conftest.$ac_ext >&5
3182 fi
3184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3185 fi
3187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3188 fi
3190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3191 ac_c_werror_flag=$ac_save_c_werror_flag
3192 fi
3193 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3194 $as_echo "$ac_cv_prog_cc_g" >&6; }
3195 if test "$ac_test_CFLAGS" = set; then
3196 CFLAGS=$ac_save_CFLAGS
3197 elif test $ac_cv_prog_cc_g = yes; then
3198 if test "$GCC" = yes; then
3199 CFLAGS="-g -O2"
3200 else
3201 CFLAGS="-g"
3202 fi
3203 else
3204 if test "$GCC" = yes; then
3205 CFLAGS="-O2"
3206 else
3207 CFLAGS=
3208 fi
3209 fi
3210 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3211 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3212 if test "${ac_cv_prog_cc_c89+set}" = set; then
3213 $as_echo_n "(cached) " >&6
3214 else
3215 ac_cv_prog_cc_c89=no
3216 ac_save_CC=$CC
3217 cat >conftest.$ac_ext <<_ACEOF
3218 /* confdefs.h. */
3219 _ACEOF
3220 cat confdefs.h >>conftest.$ac_ext
3221 cat >>conftest.$ac_ext <<_ACEOF
3222 /* end confdefs.h. */
3223 #include <stdarg.h>
3224 #include <stdio.h>
3225 #include <sys/types.h>
3226 #include <sys/stat.h>
3227 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3228 struct buf { int x; };
3229 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3230 static char *e (p, i)
3231 char **p;
3232 int i;
3233 {
3234 return p[i];
3235 }
3236 static char *f (char * (*g) (char **, int), char **p, ...)
3237 {
3238 char *s;
3239 va_list v;
3240 va_start (v,p);
3241 s = g (p, va_arg (v,int));
3242 va_end (v);
3243 return s;
3244 }
3246 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3247 function prototypes and stuff, but not '\xHH' hex character constants.
3248 These don't provoke an error unfortunately, instead are silently treated
3249 as 'x'. The following induces an error, until -std is added to get
3250 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3251 array size at least. It's necessary to write '\x00'==0 to get something
3252 that's true only with -std. */
3253 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3255 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3256 inside strings and character constants. */
3257 #define FOO(x) 'x'
3258 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3260 int test (int i, double x);
3261 struct s1 {int (*f) (int a);};
3262 struct s2 {int (*f) (double a);};
3263 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3264 int argc;
3265 char **argv;
3266 int
3267 main ()
3268 {
3269 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3270 ;
3271 return 0;
3272 }
3273 _ACEOF
3274 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3275 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3276 do
3277 CC="$ac_save_CC $ac_arg"
3278 rm -f conftest.$ac_objext
3279 if { (ac_try="$ac_compile"
3280 case "(($ac_try" in
3281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3282 *) ac_try_echo=$ac_try;;
3283 esac
3284 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3285 $as_echo "$ac_try_echo") >&5
3286 (eval "$ac_compile") 2>conftest.er1
3287 ac_status=$?
3288 grep -v '^ *+' conftest.er1 >conftest.err
3289 rm -f conftest.er1
3290 cat conftest.err >&5
3291 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3292 (exit $ac_status); } && {
3293 test -z "$ac_c_werror_flag" ||
3294 test ! -s conftest.err
3295 } && test -s conftest.$ac_objext; then
3296 ac_cv_prog_cc_c89=$ac_arg
3297 else
3298 $as_echo "$as_me: failed program was:" >&5
3299 sed 's/^/| /' conftest.$ac_ext >&5
3302 fi
3304 rm -f core conftest.err conftest.$ac_objext
3305 test "x$ac_cv_prog_cc_c89" != "xno" && break
3306 done
3307 rm -f conftest.$ac_ext
3308 CC=$ac_save_CC
3310 fi
3311 # AC_CACHE_VAL
3312 case "x$ac_cv_prog_cc_c89" in
3313 x)
3314 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3315 $as_echo "none needed" >&6; } ;;
3316 xno)
3317 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3318 $as_echo "unsupported" >&6; } ;;
3319 *)
3320 CC="$CC $ac_cv_prog_cc_c89"
3321 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3322 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3323 esac
3326 ac_ext=c
3327 ac_cpp='$CPP $CPPFLAGS'
3328 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3329 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3330 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3333 ac_ext=c
3334 ac_cpp='$CPP $CPPFLAGS'
3335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3338 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3339 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3340 # On Suns, sometimes $CPP names a directory.
3341 if test -n "$CPP" && test -d "$CPP"; then
3342 CPP=
3343 fi
3344 if test -z "$CPP"; then
3345 if test "${ac_cv_prog_CPP+set}" = set; then
3346 $as_echo_n "(cached) " >&6
3347 else
3348 # Double quotes because CPP needs to be expanded
3349 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3350 do
3351 ac_preproc_ok=false
3352 for ac_c_preproc_warn_flag in '' yes
3353 do
3354 # Use a header file that comes with gcc, so configuring glibc
3355 # with a fresh cross-compiler works.
3356 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3357 # <limits.h> exists even on freestanding compilers.
3358 # On the NeXT, cc -E runs the code through the compiler's parser,
3359 # not just through cpp. "Syntax error" is here to catch this case.
3360 cat >conftest.$ac_ext <<_ACEOF
3361 /* confdefs.h. */
3362 _ACEOF
3363 cat confdefs.h >>conftest.$ac_ext
3364 cat >>conftest.$ac_ext <<_ACEOF
3365 /* end confdefs.h. */
3366 #ifdef __STDC__
3367 # include <limits.h>
3368 #else
3369 # include <assert.h>
3370 #endif
3371 Syntax error
3372 _ACEOF
3373 if { (ac_try="$ac_cpp conftest.$ac_ext"
3374 case "(($ac_try" in
3375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3376 *) ac_try_echo=$ac_try;;
3377 esac
3378 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3379 $as_echo "$ac_try_echo") >&5
3380 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3381 ac_status=$?
3382 grep -v '^ *+' conftest.er1 >conftest.err
3383 rm -f conftest.er1
3384 cat conftest.err >&5
3385 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3386 (exit $ac_status); } >/dev/null && {
3387 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3388 test ! -s conftest.err
3389 }; then
3390 :
3391 else
3392 $as_echo "$as_me: failed program was:" >&5
3393 sed 's/^/| /' conftest.$ac_ext >&5
3395 # Broken: fails on valid input.
3396 continue
3397 fi
3399 rm -f conftest.err conftest.$ac_ext
3401 # OK, works on sane cases. Now check whether nonexistent headers
3402 # can be detected and how.
3403 cat >conftest.$ac_ext <<_ACEOF
3404 /* confdefs.h. */
3405 _ACEOF
3406 cat confdefs.h >>conftest.$ac_ext
3407 cat >>conftest.$ac_ext <<_ACEOF
3408 /* end confdefs.h. */
3409 #include <ac_nonexistent.h>
3410 _ACEOF
3411 if { (ac_try="$ac_cpp conftest.$ac_ext"
3412 case "(($ac_try" in
3413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3414 *) ac_try_echo=$ac_try;;
3415 esac
3416 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3417 $as_echo "$ac_try_echo") >&5
3418 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3419 ac_status=$?
3420 grep -v '^ *+' conftest.er1 >conftest.err
3421 rm -f conftest.er1
3422 cat conftest.err >&5
3423 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3424 (exit $ac_status); } >/dev/null && {
3425 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3426 test ! -s conftest.err
3427 }; then
3428 # Broken: success on invalid input.
3429 continue
3430 else
3431 $as_echo "$as_me: failed program was:" >&5
3432 sed 's/^/| /' conftest.$ac_ext >&5
3434 # Passes both tests.
3435 ac_preproc_ok=:
3436 break
3437 fi
3439 rm -f conftest.err conftest.$ac_ext
3441 done
3442 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3443 rm -f conftest.err conftest.$ac_ext
3444 if $ac_preproc_ok; then
3445 break
3446 fi
3448 done
3449 ac_cv_prog_CPP=$CPP
3451 fi
3452 CPP=$ac_cv_prog_CPP
3453 else
3454 ac_cv_prog_CPP=$CPP
3455 fi
3456 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3457 $as_echo "$CPP" >&6; }
3458 ac_preproc_ok=false
3459 for ac_c_preproc_warn_flag in '' yes
3460 do
3461 # Use a header file that comes with gcc, so configuring glibc
3462 # with a fresh cross-compiler works.
3463 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3464 # <limits.h> exists even on freestanding compilers.
3465 # On the NeXT, cc -E runs the code through the compiler's parser,
3466 # not just through cpp. "Syntax error" is here to catch this case.
3467 cat >conftest.$ac_ext <<_ACEOF
3468 /* confdefs.h. */
3469 _ACEOF
3470 cat confdefs.h >>conftest.$ac_ext
3471 cat >>conftest.$ac_ext <<_ACEOF
3472 /* end confdefs.h. */
3473 #ifdef __STDC__
3474 # include <limits.h>
3475 #else
3476 # include <assert.h>
3477 #endif
3478 Syntax error
3479 _ACEOF
3480 if { (ac_try="$ac_cpp conftest.$ac_ext"
3481 case "(($ac_try" in
3482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3483 *) ac_try_echo=$ac_try;;
3484 esac
3485 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3486 $as_echo "$ac_try_echo") >&5
3487 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3488 ac_status=$?
3489 grep -v '^ *+' conftest.er1 >conftest.err
3490 rm -f conftest.er1
3491 cat conftest.err >&5
3492 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3493 (exit $ac_status); } >/dev/null && {
3494 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3495 test ! -s conftest.err
3496 }; then
3497 :
3498 else
3499 $as_echo "$as_me: failed program was:" >&5
3500 sed 's/^/| /' conftest.$ac_ext >&5
3502 # Broken: fails on valid input.
3503 continue
3504 fi
3506 rm -f conftest.err conftest.$ac_ext
3508 # OK, works on sane cases. Now check whether nonexistent headers
3509 # can be detected and how.
3510 cat >conftest.$ac_ext <<_ACEOF
3511 /* confdefs.h. */
3512 _ACEOF
3513 cat confdefs.h >>conftest.$ac_ext
3514 cat >>conftest.$ac_ext <<_ACEOF
3515 /* end confdefs.h. */
3516 #include <ac_nonexistent.h>
3517 _ACEOF
3518 if { (ac_try="$ac_cpp conftest.$ac_ext"
3519 case "(($ac_try" in
3520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3521 *) ac_try_echo=$ac_try;;
3522 esac
3523 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3524 $as_echo "$ac_try_echo") >&5
3525 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3526 ac_status=$?
3527 grep -v '^ *+' conftest.er1 >conftest.err
3528 rm -f conftest.er1
3529 cat conftest.err >&5
3530 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3531 (exit $ac_status); } >/dev/null && {
3532 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3533 test ! -s conftest.err
3534 }; then
3535 # Broken: success on invalid input.
3536 continue
3537 else
3538 $as_echo "$as_me: failed program was:" >&5
3539 sed 's/^/| /' conftest.$ac_ext >&5
3541 # Passes both tests.
3542 ac_preproc_ok=:
3543 break
3544 fi
3546 rm -f conftest.err conftest.$ac_ext
3548 done
3549 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3550 rm -f conftest.err conftest.$ac_ext
3551 if $ac_preproc_ok; then
3552 :
3553 else
3554 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3555 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3556 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3557 See \`config.log' for more details." >&5
3558 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3559 See \`config.log' for more details." >&2;}
3560 { (exit 1); exit 1; }; }; }
3561 fi
3563 ac_ext=c
3564 ac_cpp='$CPP $CPPFLAGS'
3565 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3566 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3567 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3570 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3571 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3572 if test "${ac_cv_path_GREP+set}" = set; then
3573 $as_echo_n "(cached) " >&6
3574 else
3575 if test -z "$GREP"; then
3576 ac_path_GREP_found=false
3577 # Loop through the user's path and test for each of PROGNAME-LIST
3578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3579 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3580 do
3581 IFS=$as_save_IFS
3582 test -z "$as_dir" && as_dir=.
3583 for ac_prog in grep ggrep; do
3584 for ac_exec_ext in '' $ac_executable_extensions; do
3585 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3586 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3587 # Check for GNU ac_path_GREP and select it if it is found.
3588 # Check for GNU $ac_path_GREP
3589 case `"$ac_path_GREP" --version 2>&1` in
3590 *GNU*)
3591 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3592 *)
3593 ac_count=0
3594 $as_echo_n 0123456789 >"conftest.in"
3595 while :
3596 do
3597 cat "conftest.in" "conftest.in" >"conftest.tmp"
3598 mv "conftest.tmp" "conftest.in"
3599 cp "conftest.in" "conftest.nl"
3600 $as_echo 'GREP' >> "conftest.nl"
3601 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3602 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3603 ac_count=`expr $ac_count + 1`
3604 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3605 # Best one so far, save it but keep looking for a better one
3606 ac_cv_path_GREP="$ac_path_GREP"
3607 ac_path_GREP_max=$ac_count
3608 fi
3609 # 10*(2^10) chars as input seems more than enough
3610 test $ac_count -gt 10 && break
3611 done
3612 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3613 esac
3615 $ac_path_GREP_found && break 3
3616 done
3617 done
3618 done
3619 IFS=$as_save_IFS
3620 if test -z "$ac_cv_path_GREP"; then
3621 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3622 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3623 { (exit 1); exit 1; }; }
3624 fi
3625 else
3626 ac_cv_path_GREP=$GREP
3627 fi
3629 fi
3630 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3631 $as_echo "$ac_cv_path_GREP" >&6; }
3632 GREP="$ac_cv_path_GREP"
3635 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3636 $as_echo_n "checking for egrep... " >&6; }
3637 if test "${ac_cv_path_EGREP+set}" = set; then
3638 $as_echo_n "(cached) " >&6
3639 else
3640 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3641 then ac_cv_path_EGREP="$GREP -E"
3642 else
3643 if test -z "$EGREP"; then
3644 ac_path_EGREP_found=false
3645 # Loop through the user's path and test for each of PROGNAME-LIST
3646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3647 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3648 do
3649 IFS=$as_save_IFS
3650 test -z "$as_dir" && as_dir=.
3651 for ac_prog in egrep; do
3652 for ac_exec_ext in '' $ac_executable_extensions; do
3653 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3654 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3655 # Check for GNU ac_path_EGREP and select it if it is found.
3656 # Check for GNU $ac_path_EGREP
3657 case `"$ac_path_EGREP" --version 2>&1` in
3658 *GNU*)
3659 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3660 *)
3661 ac_count=0
3662 $as_echo_n 0123456789 >"conftest.in"
3663 while :
3664 do
3665 cat "conftest.in" "conftest.in" >"conftest.tmp"
3666 mv "conftest.tmp" "conftest.in"
3667 cp "conftest.in" "conftest.nl"
3668 $as_echo 'EGREP' >> "conftest.nl"
3669 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3670 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3671 ac_count=`expr $ac_count + 1`
3672 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3673 # Best one so far, save it but keep looking for a better one
3674 ac_cv_path_EGREP="$ac_path_EGREP"
3675 ac_path_EGREP_max=$ac_count
3676 fi
3677 # 10*(2^10) chars as input seems more than enough
3678 test $ac_count -gt 10 && break
3679 done
3680 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3681 esac
3683 $ac_path_EGREP_found && break 3
3684 done
3685 done
3686 done
3687 IFS=$as_save_IFS
3688 if test -z "$ac_cv_path_EGREP"; then
3689 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3690 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3691 { (exit 1); exit 1; }; }
3692 fi
3693 else
3694 ac_cv_path_EGREP=$EGREP
3695 fi
3697 fi
3698 fi
3699 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3700 $as_echo "$ac_cv_path_EGREP" >&6; }
3701 EGREP="$ac_cv_path_EGREP"
3704 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3705 $as_echo_n "checking for ANSI C header files... " >&6; }
3706 if test "${ac_cv_header_stdc+set}" = set; then
3707 $as_echo_n "(cached) " >&6
3708 else
3709 cat >conftest.$ac_ext <<_ACEOF
3710 /* confdefs.h. */
3711 _ACEOF
3712 cat confdefs.h >>conftest.$ac_ext
3713 cat >>conftest.$ac_ext <<_ACEOF
3714 /* end confdefs.h. */
3715 #include <stdlib.h>
3716 #include <stdarg.h>
3717 #include <string.h>
3718 #include <float.h>
3720 int
3721 main ()
3722 {
3724 ;
3725 return 0;
3726 }
3727 _ACEOF
3728 rm -f conftest.$ac_objext
3729 if { (ac_try="$ac_compile"
3730 case "(($ac_try" in
3731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3732 *) ac_try_echo=$ac_try;;
3733 esac
3734 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3735 $as_echo "$ac_try_echo") >&5
3736 (eval "$ac_compile") 2>conftest.er1
3737 ac_status=$?
3738 grep -v '^ *+' conftest.er1 >conftest.err
3739 rm -f conftest.er1
3740 cat conftest.err >&5
3741 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3742 (exit $ac_status); } && {
3743 test -z "$ac_c_werror_flag" ||
3744 test ! -s conftest.err
3745 } && test -s conftest.$ac_objext; then
3746 ac_cv_header_stdc=yes
3747 else
3748 $as_echo "$as_me: failed program was:" >&5
3749 sed 's/^/| /' conftest.$ac_ext >&5
3751 ac_cv_header_stdc=no
3752 fi
3754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3756 if test $ac_cv_header_stdc = yes; then
3757 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3758 cat >conftest.$ac_ext <<_ACEOF
3759 /* confdefs.h. */
3760 _ACEOF
3761 cat confdefs.h >>conftest.$ac_ext
3762 cat >>conftest.$ac_ext <<_ACEOF
3763 /* end confdefs.h. */
3764 #include <string.h>
3766 _ACEOF
3767 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3768 $EGREP "memchr" >/dev/null 2>&1; then
3769 :
3770 else
3771 ac_cv_header_stdc=no
3772 fi
3773 rm -f conftest*
3775 fi
3777 if test $ac_cv_header_stdc = yes; then
3778 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3779 cat >conftest.$ac_ext <<_ACEOF
3780 /* confdefs.h. */
3781 _ACEOF
3782 cat confdefs.h >>conftest.$ac_ext
3783 cat >>conftest.$ac_ext <<_ACEOF
3784 /* end confdefs.h. */
3785 #include <stdlib.h>
3787 _ACEOF
3788 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3789 $EGREP "free" >/dev/null 2>&1; then
3790 :
3791 else
3792 ac_cv_header_stdc=no
3793 fi
3794 rm -f conftest*
3796 fi
3798 if test $ac_cv_header_stdc = yes; then
3799 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3800 if test "$cross_compiling" = yes; then
3801 :
3802 else
3803 cat >conftest.$ac_ext <<_ACEOF
3804 /* confdefs.h. */
3805 _ACEOF
3806 cat confdefs.h >>conftest.$ac_ext
3807 cat >>conftest.$ac_ext <<_ACEOF
3808 /* end confdefs.h. */
3809 #include <ctype.h>
3810 #include <stdlib.h>
3811 #if ((' ' & 0x0FF) == 0x020)
3812 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3813 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3814 #else
3815 # define ISLOWER(c) \
3816 (('a' <= (c) && (c) <= 'i') \
3817 || ('j' <= (c) && (c) <= 'r') \
3818 || ('s' <= (c) && (c) <= 'z'))
3819 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3820 #endif
3822 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3823 int
3824 main ()
3825 {
3826 int i;
3827 for (i = 0; i < 256; i++)
3828 if (XOR (islower (i), ISLOWER (i))
3829 || toupper (i) != TOUPPER (i))
3830 return 2;
3831 return 0;
3832 }
3833 _ACEOF
3834 rm -f conftest$ac_exeext
3835 if { (ac_try="$ac_link"
3836 case "(($ac_try" in
3837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3838 *) ac_try_echo=$ac_try;;
3839 esac
3840 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3841 $as_echo "$ac_try_echo") >&5
3842 (eval "$ac_link") 2>&5
3843 ac_status=$?
3844 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3845 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3846 { (case "(($ac_try" in
3847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3848 *) ac_try_echo=$ac_try;;
3849 esac
3850 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3851 $as_echo "$ac_try_echo") >&5
3852 (eval "$ac_try") 2>&5
3853 ac_status=$?
3854 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3855 (exit $ac_status); }; }; then
3856 :
3857 else
3858 $as_echo "$as_me: program exited with status $ac_status" >&5
3859 $as_echo "$as_me: failed program was:" >&5
3860 sed 's/^/| /' conftest.$ac_ext >&5
3862 ( exit $ac_status )
3863 ac_cv_header_stdc=no
3864 fi
3865 rm -rf conftest.dSYM
3866 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3867 fi
3870 fi
3871 fi
3872 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3873 $as_echo "$ac_cv_header_stdc" >&6; }
3874 if test $ac_cv_header_stdc = yes; then
3876 cat >>confdefs.h <<\_ACEOF
3877 #define STDC_HEADERS 1
3878 _ACEOF
3880 fi
3882 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3892 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3893 inttypes.h stdint.h unistd.h
3894 do
3895 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3896 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
3897 $as_echo_n "checking for $ac_header... " >&6; }
3898 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3899 $as_echo_n "(cached) " >&6
3900 else
3901 cat >conftest.$ac_ext <<_ACEOF
3902 /* confdefs.h. */
3903 _ACEOF
3904 cat confdefs.h >>conftest.$ac_ext
3905 cat >>conftest.$ac_ext <<_ACEOF
3906 /* end confdefs.h. */
3907 $ac_includes_default
3909 #include <$ac_header>
3910 _ACEOF
3911 rm -f conftest.$ac_objext
3912 if { (ac_try="$ac_compile"
3913 case "(($ac_try" in
3914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3915 *) ac_try_echo=$ac_try;;
3916 esac
3917 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3918 $as_echo "$ac_try_echo") >&5
3919 (eval "$ac_compile") 2>conftest.er1
3920 ac_status=$?
3921 grep -v '^ *+' conftest.er1 >conftest.err
3922 rm -f conftest.er1
3923 cat conftest.err >&5
3924 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3925 (exit $ac_status); } && {
3926 test -z "$ac_c_werror_flag" ||
3927 test ! -s conftest.err
3928 } && test -s conftest.$ac_objext; then
3929 eval "$as_ac_Header=yes"
3930 else
3931 $as_echo "$as_me: failed program was:" >&5
3932 sed 's/^/| /' conftest.$ac_ext >&5
3934 eval "$as_ac_Header=no"
3935 fi
3937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3938 fi
3939 ac_res=`eval 'as_val=${'$as_ac_Header'}
3940 $as_echo "$as_val"'`
3941 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
3942 $as_echo "$ac_res" >&6; }
3943 as_val=`eval 'as_val=${'$as_ac_Header'}
3944 $as_echo "$as_val"'`
3945 if test "x$as_val" = x""yes; then
3946 cat >>confdefs.h <<_ACEOF
3947 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3948 _ACEOF
3950 fi
3952 done
3956 if test "${ac_cv_header_minix_config_h+set}" = set; then
3957 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
3958 $as_echo_n "checking for minix/config.h... " >&6; }
3959 if test "${ac_cv_header_minix_config_h+set}" = set; then
3960 $as_echo_n "(cached) " >&6
3961 fi
3962 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3963 $as_echo "$ac_cv_header_minix_config_h" >&6; }
3964 else
3965 # Is the header compilable?
3966 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3967 $as_echo_n "checking minix/config.h usability... " >&6; }
3968 cat >conftest.$ac_ext <<_ACEOF
3969 /* confdefs.h. */
3970 _ACEOF
3971 cat confdefs.h >>conftest.$ac_ext
3972 cat >>conftest.$ac_ext <<_ACEOF
3973 /* end confdefs.h. */
3974 $ac_includes_default
3975 #include <minix/config.h>
3976 _ACEOF
3977 rm -f conftest.$ac_objext
3978 if { (ac_try="$ac_compile"
3979 case "(($ac_try" in
3980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3981 *) ac_try_echo=$ac_try;;
3982 esac
3983 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3984 $as_echo "$ac_try_echo") >&5
3985 (eval "$ac_compile") 2>conftest.er1
3986 ac_status=$?
3987 grep -v '^ *+' conftest.er1 >conftest.err
3988 rm -f conftest.er1
3989 cat conftest.err >&5
3990 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3991 (exit $ac_status); } && {
3992 test -z "$ac_c_werror_flag" ||
3993 test ! -s conftest.err
3994 } && test -s conftest.$ac_objext; then
3995 ac_header_compiler=yes
3996 else
3997 $as_echo "$as_me: failed program was:" >&5
3998 sed 's/^/| /' conftest.$ac_ext >&5
4000 ac_header_compiler=no
4001 fi
4003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4004 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4005 $as_echo "$ac_header_compiler" >&6; }
4007 # Is the header present?
4008 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4009 $as_echo_n "checking minix/config.h presence... " >&6; }
4010 cat >conftest.$ac_ext <<_ACEOF
4011 /* confdefs.h. */
4012 _ACEOF
4013 cat confdefs.h >>conftest.$ac_ext
4014 cat >>conftest.$ac_ext <<_ACEOF
4015 /* end confdefs.h. */
4016 #include <minix/config.h>
4017 _ACEOF
4018 if { (ac_try="$ac_cpp conftest.$ac_ext"
4019 case "(($ac_try" in
4020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4021 *) ac_try_echo=$ac_try;;
4022 esac
4023 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4024 $as_echo "$ac_try_echo") >&5
4025 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4026 ac_status=$?
4027 grep -v '^ *+' conftest.er1 >conftest.err
4028 rm -f conftest.er1
4029 cat conftest.err >&5
4030 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4031 (exit $ac_status); } >/dev/null && {
4032 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4033 test ! -s conftest.err
4034 }; then
4035 ac_header_preproc=yes
4036 else
4037 $as_echo "$as_me: failed program was:" >&5
4038 sed 's/^/| /' conftest.$ac_ext >&5
4040 ac_header_preproc=no
4041 fi
4043 rm -f conftest.err conftest.$ac_ext
4044 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4045 $as_echo "$ac_header_preproc" >&6; }
4047 # So? What about this header?
4048 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4049 yes:no: )
4050 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4051 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4052 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4053 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4054 ac_header_preproc=yes
4055 ;;
4056 no:yes:* )
4057 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4058 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4059 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4060 $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4061 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4062 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4063 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4064 $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4065 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4066 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4067 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4068 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4070 ;;
4071 esac
4072 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4073 $as_echo_n "checking for minix/config.h... " >&6; }
4074 if test "${ac_cv_header_minix_config_h+set}" = set; then
4075 $as_echo_n "(cached) " >&6
4076 else
4077 ac_cv_header_minix_config_h=$ac_header_preproc
4078 fi
4079 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4080 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4082 fi
4083 if test "x$ac_cv_header_minix_config_h" = x""yes; then
4084 MINIX=yes
4085 else
4086 MINIX=
4087 fi
4090 if test "$MINIX" = yes; then
4092 cat >>confdefs.h <<\_ACEOF
4093 #define _POSIX_SOURCE 1
4094 _ACEOF
4097 cat >>confdefs.h <<\_ACEOF
4098 #define _POSIX_1_SOURCE 2
4099 _ACEOF
4102 cat >>confdefs.h <<\_ACEOF
4103 #define _MINIX 1
4104 _ACEOF
4106 fi
4110 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4111 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4112 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4113 $as_echo_n "(cached) " >&6
4114 else
4115 cat >conftest.$ac_ext <<_ACEOF
4116 /* confdefs.h. */
4117 _ACEOF
4118 cat confdefs.h >>conftest.$ac_ext
4119 cat >>conftest.$ac_ext <<_ACEOF
4120 /* end confdefs.h. */
4122 # define __EXTENSIONS__ 1
4123 $ac_includes_default
4124 int
4125 main ()
4126 {
4128 ;
4129 return 0;
4130 }
4131 _ACEOF
4132 rm -f conftest.$ac_objext
4133 if { (ac_try="$ac_compile"
4134 case "(($ac_try" in
4135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4136 *) ac_try_echo=$ac_try;;
4137 esac
4138 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4139 $as_echo "$ac_try_echo") >&5
4140 (eval "$ac_compile") 2>conftest.er1
4141 ac_status=$?
4142 grep -v '^ *+' conftest.er1 >conftest.err
4143 rm -f conftest.er1
4144 cat conftest.err >&5
4145 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4146 (exit $ac_status); } && {
4147 test -z "$ac_c_werror_flag" ||
4148 test ! -s conftest.err
4149 } && test -s conftest.$ac_objext; then
4150 ac_cv_safe_to_define___extensions__=yes
4151 else
4152 $as_echo "$as_me: failed program was:" >&5
4153 sed 's/^/| /' conftest.$ac_ext >&5
4155 ac_cv_safe_to_define___extensions__=no
4156 fi
4158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4159 fi
4160 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4161 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4162 test $ac_cv_safe_to_define___extensions__ = yes &&
4163 cat >>confdefs.h <<\_ACEOF
4164 #define __EXTENSIONS__ 1
4165 _ACEOF
4167 cat >>confdefs.h <<\_ACEOF
4168 #define _ALL_SOURCE 1
4169 _ACEOF
4171 cat >>confdefs.h <<\_ACEOF
4172 #define _GNU_SOURCE 1
4173 _ACEOF
4175 cat >>confdefs.h <<\_ACEOF
4176 #define _POSIX_PTHREAD_SEMANTICS 1
4177 _ACEOF
4179 cat >>confdefs.h <<\_ACEOF
4180 #define _TANDEM_SOURCE 1
4181 _ACEOF
4184 am__api_version='1.11'
4186 # Find a good install program. We prefer a C program (faster),
4187 # so one script is as good as another. But avoid the broken or
4188 # incompatible versions:
4189 # SysV /etc/install, /usr/sbin/install
4190 # SunOS /usr/etc/install
4191 # IRIX /sbin/install
4192 # AIX /bin/install
4193 # AmigaOS /C/install, which installs bootblocks on floppy discs
4194 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4195 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4196 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4197 # OS/2's system install, which has a completely different semantic
4198 # ./install, which can be erroneously created by make from ./install.sh.
4199 # Reject install programs that cannot install multiple files.
4200 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4201 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4202 if test -z "$INSTALL"; then
4203 if test "${ac_cv_path_install+set}" = set; then
4204 $as_echo_n "(cached) " >&6
4205 else
4206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4207 for as_dir in $PATH
4208 do
4209 IFS=$as_save_IFS
4210 test -z "$as_dir" && as_dir=.
4211 # Account for people who put trailing slashes in PATH elements.
4212 case $as_dir/ in
4213 ./ | .// | /cC/* | \
4214 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4215 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4216 /usr/ucb/* ) ;;
4217 *)
4218 # OSF1 and SCO ODT 3.0 have their own names for install.
4219 # Don't use installbsd from OSF since it installs stuff as root
4220 # by default.
4221 for ac_prog in ginstall scoinst install; do
4222 for ac_exec_ext in '' $ac_executable_extensions; do
4223 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4224 if test $ac_prog = install &&
4225 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4226 # AIX install. It has an incompatible calling convention.
4227 :
4228 elif test $ac_prog = install &&
4229 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4230 # program-specific install script used by HP pwplus--don't use.
4231 :
4232 else
4233 rm -rf conftest.one conftest.two conftest.dir
4234 echo one > conftest.one
4235 echo two > conftest.two
4236 mkdir conftest.dir
4237 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4238 test -s conftest.one && test -s conftest.two &&
4239 test -s conftest.dir/conftest.one &&
4240 test -s conftest.dir/conftest.two
4241 then
4242 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4243 break 3
4244 fi
4245 fi
4246 fi
4247 done
4248 done
4249 ;;
4250 esac
4252 done
4253 IFS=$as_save_IFS
4255 rm -rf conftest.one conftest.two conftest.dir
4257 fi
4258 if test "${ac_cv_path_install+set}" = set; then
4259 INSTALL=$ac_cv_path_install
4260 else
4261 # As a last resort, use the slow shell script. Don't cache a
4262 # value for INSTALL within a source directory, because that will
4263 # break other packages using the cache if that directory is
4264 # removed, or if the value is a relative name.
4265 INSTALL=$ac_install_sh
4266 fi
4267 fi
4268 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
4269 $as_echo "$INSTALL" >&6; }
4271 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4272 # It thinks the first close brace ends the variable substitution.
4273 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4275 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4277 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4279 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
4280 $as_echo_n "checking whether build environment is sane... " >&6; }
4281 # Just in case
4282 sleep 1
4283 echo timestamp > conftest.file
4284 # Reject unsafe characters in $srcdir or the absolute working directory
4285 # name. Accept space and tab only in the latter.
4286 am_lf='
4287 '
4288 case `pwd` in
4289 *[\\\"\#\$\&\'\`$am_lf]*)
4290 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
4291 $as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
4292 { (exit 1); exit 1; }; };;
4293 esac
4294 case $srcdir in
4295 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4296 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
4297 $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
4298 { (exit 1); exit 1; }; };;
4299 esac
4301 # Do `set' in a subshell so we don't clobber the current shell's
4302 # arguments. Must try -L first in case configure is actually a
4303 # symlink; some systems play weird games with the mod time of symlinks
4304 # (eg FreeBSD returns the mod time of the symlink's containing
4305 # directory).
4306 if (
4307 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4308 if test "$*" = "X"; then
4309 # -L didn't work.
4310 set X `ls -t "$srcdir/configure" conftest.file`
4311 fi
4312 rm -f conftest.file
4313 if test "$*" != "X $srcdir/configure conftest.file" \
4314 && test "$*" != "X conftest.file $srcdir/configure"; then
4316 # If neither matched, then we have a broken ls. This can happen
4317 # if, for instance, CONFIG_SHELL is bash and it inherits a
4318 # broken ls alias from the environment. This has actually
4319 # happened. Such a system could not be considered "sane".
4320 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
4321 alias in your environment" >&5
4322 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
4323 alias in your environment" >&2;}
4324 { (exit 1); exit 1; }; }
4325 fi
4327 test "$2" = conftest.file
4328 )
4329 then
4330 # Ok.
4331 :
4332 else
4333 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
4334 Check your system clock" >&5
4335 $as_echo "$as_me: error: newly created file is older than distributed files!
4336 Check your system clock" >&2;}
4337 { (exit 1); exit 1; }; }
4338 fi
4339 { $as_echo "$as_me:$LINENO: result: yes" >&5
4340 $as_echo "yes" >&6; }
4341 test "$program_prefix" != NONE &&
4342 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4343 # Use a double $ so make ignores it.
4344 test "$program_suffix" != NONE &&
4345 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4346 # Double any \ or $.
4347 # By default was `s,x,x', remove it if useless.
4348 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4349 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4351 # expand $ac_aux_dir to an absolute path
4352 am_aux_dir=`cd $ac_aux_dir && pwd`
4354 if test x"${MISSING+set}" != xset; then
4355 case $am_aux_dir in
4356 *\ * | *\ *)
4357 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4358 *)
4359 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4360 esac
4361 fi
4362 # Use eval to expand $SHELL
4363 if eval "$MISSING --run true"; then
4364 am_missing_run="$MISSING --run "
4365 else
4366 am_missing_run=
4367 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
4368 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4369 fi
4371 if test x"${install_sh}" != xset; then
4372 case $am_aux_dir in
4373 *\ * | *\ *)
4374 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4375 *)
4376 install_sh="\${SHELL} $am_aux_dir/install-sh"
4377 esac
4378 fi
4380 # Installed binaries are usually stripped using `strip' when the user
4381 # run `make install-strip'. However `strip' might not be the right
4382 # tool to use in cross-compilation environments, therefore Automake
4383 # will honor the `STRIP' environment variable to overrule this program.
4384 if test "$cross_compiling" != no; then
4385 if test -n "$ac_tool_prefix"; then
4386 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4387 set dummy ${ac_tool_prefix}strip; ac_word=$2
4388 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4389 $as_echo_n "checking for $ac_word... " >&6; }
4390 if test "${ac_cv_prog_STRIP+set}" = set; then
4391 $as_echo_n "(cached) " >&6
4392 else
4393 if test -n "$STRIP"; then
4394 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4395 else
4396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4397 for as_dir in $PATH
4398 do
4399 IFS=$as_save_IFS
4400 test -z "$as_dir" && as_dir=.
4401 for ac_exec_ext in '' $ac_executable_extensions; do
4402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4403 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4404 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4405 break 2
4406 fi
4407 done
4408 done
4409 IFS=$as_save_IFS
4411 fi
4412 fi
4413 STRIP=$ac_cv_prog_STRIP
4414 if test -n "$STRIP"; then
4415 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
4416 $as_echo "$STRIP" >&6; }
4417 else
4418 { $as_echo "$as_me:$LINENO: result: no" >&5
4419 $as_echo "no" >&6; }
4420 fi
4423 fi
4424 if test -z "$ac_cv_prog_STRIP"; then
4425 ac_ct_STRIP=$STRIP
4426 # Extract the first word of "strip", so it can be a program name with args.
4427 set dummy strip; ac_word=$2
4428 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4429 $as_echo_n "checking for $ac_word... " >&6; }
4430 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4431 $as_echo_n "(cached) " >&6
4432 else
4433 if test -n "$ac_ct_STRIP"; then
4434 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4435 else
4436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4437 for as_dir in $PATH
4438 do
4439 IFS=$as_save_IFS
4440 test -z "$as_dir" && as_dir=.
4441 for ac_exec_ext in '' $ac_executable_extensions; do
4442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4443 ac_cv_prog_ac_ct_STRIP="strip"
4444 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4445 break 2
4446 fi
4447 done
4448 done
4449 IFS=$as_save_IFS
4451 fi
4452 fi
4453 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4454 if test -n "$ac_ct_STRIP"; then
4455 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4456 $as_echo "$ac_ct_STRIP" >&6; }
4457 else
4458 { $as_echo "$as_me:$LINENO: result: no" >&5
4459 $as_echo "no" >&6; }
4460 fi
4462 if test "x$ac_ct_STRIP" = x; then
4463 STRIP=":"
4464 else
4465 case $cross_compiling:$ac_tool_warned in
4466 yes:)
4467 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4468 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4469 ac_tool_warned=yes ;;
4470 esac
4471 STRIP=$ac_ct_STRIP
4472 fi
4473 else
4474 STRIP="$ac_cv_prog_STRIP"
4475 fi
4477 fi
4478 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4480 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
4481 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4482 if test -z "$MKDIR_P"; then
4483 if test "${ac_cv_path_mkdir+set}" = set; then
4484 $as_echo_n "(cached) " >&6
4485 else
4486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4487 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4488 do
4489 IFS=$as_save_IFS
4490 test -z "$as_dir" && as_dir=.
4491 for ac_prog in mkdir gmkdir; do
4492 for ac_exec_ext in '' $ac_executable_extensions; do
4493 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4494 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4495 'mkdir (GNU coreutils) '* | \
4496 'mkdir (coreutils) '* | \
4497 'mkdir (fileutils) '4.1*)
4498 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4499 break 3;;
4500 esac
4501 done
4502 done
4503 done
4504 IFS=$as_save_IFS
4506 fi
4508 if test "${ac_cv_path_mkdir+set}" = set; then
4509 MKDIR_P="$ac_cv_path_mkdir -p"
4510 else
4511 # As a last resort, use the slow shell script. Don't cache a
4512 # value for MKDIR_P within a source directory, because that will
4513 # break other packages using the cache if that directory is
4514 # removed, or if the value is a relative name.
4515 test -d ./--version && rmdir ./--version
4516 MKDIR_P="$ac_install_sh -d"
4517 fi
4518 fi
4519 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
4520 $as_echo "$MKDIR_P" >&6; }
4522 mkdir_p="$MKDIR_P"
4523 case $mkdir_p in
4524 [\\/$]* | ?:[\\/]*) ;;
4525 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
4526 esac
4528 for ac_prog in gawk mawk nawk awk
4529 do
4530 # Extract the first word of "$ac_prog", so it can be a program name with args.
4531 set dummy $ac_prog; ac_word=$2
4532 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4533 $as_echo_n "checking for $ac_word... " >&6; }
4534 if test "${ac_cv_prog_AWK+set}" = set; then
4535 $as_echo_n "(cached) " >&6
4536 else
4537 if test -n "$AWK"; then
4538 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4539 else
4540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4541 for as_dir in $PATH
4542 do
4543 IFS=$as_save_IFS
4544 test -z "$as_dir" && as_dir=.
4545 for ac_exec_ext in '' $ac_executable_extensions; do
4546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4547 ac_cv_prog_AWK="$ac_prog"
4548 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4549 break 2
4550 fi
4551 done
4552 done
4553 IFS=$as_save_IFS
4555 fi
4556 fi
4557 AWK=$ac_cv_prog_AWK
4558 if test -n "$AWK"; then
4559 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
4560 $as_echo "$AWK" >&6; }
4561 else
4562 { $as_echo "$as_me:$LINENO: result: no" >&5
4563 $as_echo "no" >&6; }
4564 fi
4567 test -n "$AWK" && break
4568 done
4570 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4571 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4572 set x ${MAKE-make}
4573 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4574 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
4575 $as_echo_n "(cached) " >&6
4576 else
4577 cat >conftest.make <<\_ACEOF
4578 SHELL = /bin/sh
4579 all:
4580 @echo '@@@%%%=$(MAKE)=@@@%%%'
4581 _ACEOF
4582 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4583 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4584 *@@@%%%=?*=@@@%%%*)
4585 eval ac_cv_prog_make_${ac_make}_set=yes;;
4586 *)
4587 eval ac_cv_prog_make_${ac_make}_set=no;;
4588 esac
4589 rm -f conftest.make
4590 fi
4591 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4592 { $as_echo "$as_me:$LINENO: result: yes" >&5
4593 $as_echo "yes" >&6; }
4594 SET_MAKE=
4595 else
4596 { $as_echo "$as_me:$LINENO: result: no" >&5
4597 $as_echo "no" >&6; }
4598 SET_MAKE="MAKE=${MAKE-make}"
4599 fi
4601 rm -rf .tst 2>/dev/null
4602 mkdir .tst 2>/dev/null
4603 if test -d .tst; then
4604 am__leading_dot=.
4605 else
4606 am__leading_dot=_
4607 fi
4608 rmdir .tst 2>/dev/null
4610 DEPDIR="${am__leading_dot}deps"
4612 ac_config_commands="$ac_config_commands depfiles"
4615 am_make=${MAKE-make}
4616 cat > confinc << 'END'
4617 am__doit:
4618 @echo this is the am__doit target
4619 .PHONY: am__doit
4620 END
4621 # If we don't find an include directive, just comment out the code.
4622 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4623 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4624 am__include="#"
4625 am__quote=
4626 _am_result=none
4627 # First try GNU make style include.
4628 echo "include confinc" > confmf
4629 # Ignore all kinds of additional output from `make'.
4630 case `$am_make -s -f confmf 2> /dev/null` in #(
4631 *the\ am__doit\ target*)
4632 am__include=include
4633 am__quote=
4634 _am_result=GNU
4635 ;;
4636 esac
4637 # Now try BSD make style include.
4638 if test "$am__include" = "#"; then
4639 echo '.include "confinc"' > confmf
4640 case `$am_make -s -f confmf 2> /dev/null` in #(
4641 *the\ am__doit\ target*)
4642 am__include=.include
4643 am__quote="\""
4644 _am_result=BSD
4645 ;;
4646 esac
4647 fi
4650 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
4651 $as_echo "$_am_result" >&6; }
4652 rm -f confinc confmf
4654 # Check whether --enable-dependency-tracking was given.
4655 if test "${enable_dependency_tracking+set}" = set; then
4656 enableval=$enable_dependency_tracking;
4657 fi
4659 if test "x$enable_dependency_tracking" != xno; then
4660 am_depcomp="$ac_aux_dir/depcomp"
4661 AMDEPBACKSLASH='\'
4662 fi
4663 if test "x$enable_dependency_tracking" != xno; then
4664 AMDEP_TRUE=
4665 AMDEP_FALSE='#'
4666 else
4667 AMDEP_TRUE='#'
4668 AMDEP_FALSE=
4669 fi
4672 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4673 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4674 # is not polluted with repeated "-I."
4675 am__isrc=' -I$(srcdir)'
4676 # test to see if srcdir already configured
4677 if test -f $srcdir/config.status; then
4678 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
4679 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
4680 { (exit 1); exit 1; }; }
4681 fi
4682 fi
4684 # test whether we have cygpath
4685 if test -z "$CYGPATH_W"; then
4686 if (cygpath --version) >/dev/null 2>/dev/null; then
4687 CYGPATH_W='cygpath -w'
4688 else
4689 CYGPATH_W=echo
4690 fi
4691 fi
4694 # Define the identity of the package.
4695 PACKAGE='rrdtool'
4696 VERSION='1.4.2'
4699 cat >>confdefs.h <<_ACEOF
4700 #define PACKAGE "$PACKAGE"
4701 _ACEOF
4704 cat >>confdefs.h <<_ACEOF
4705 #define VERSION "$VERSION"
4706 _ACEOF
4708 # Some tools Automake needs.
4710 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4713 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4716 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4719 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4722 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4724 # We need awk for the "check" target. The system "awk" is bad on
4725 # some platforms.
4726 # Always define AMTAR for backward compatibility.
4728 AMTAR=${AMTAR-"${am_missing_run}tar"}
4730 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4735 depcc="$CC" am_compiler_list=
4737 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4738 $as_echo_n "checking dependency style of $depcc... " >&6; }
4739 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4740 $as_echo_n "(cached) " >&6
4741 else
4742 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4743 # We make a subdir and do the tests there. Otherwise we can end up
4744 # making bogus files that we don't know about and never remove. For
4745 # instance it was reported that on HP-UX the gcc test will end up
4746 # making a dummy file named `D' -- because `-MD' means `put the output
4747 # in D'.
4748 mkdir conftest.dir
4749 # Copy depcomp to subdir because otherwise we won't find it if we're
4750 # using a relative directory.
4751 cp "$am_depcomp" conftest.dir
4752 cd conftest.dir
4753 # We will build objects and dependencies in a subdirectory because
4754 # it helps to detect inapplicable dependency modes. For instance
4755 # both Tru64's cc and ICC support -MD to output dependencies as a
4756 # side effect of compilation, but ICC will put the dependencies in
4757 # the current directory while Tru64 will put them in the object
4758 # directory.
4759 mkdir sub
4761 am_cv_CC_dependencies_compiler_type=none
4762 if test "$am_compiler_list" = ""; then
4763 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4764 fi
4765 am__universal=false
4766 case " $depcc " in #(
4767 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4768 esac
4770 for depmode in $am_compiler_list; do
4771 # Setup a source with many dependencies, because some compilers
4772 # like to wrap large dependency lists on column 80 (with \), and
4773 # we should not choose a depcomp mode which is confused by this.
4774 #
4775 # We need to recreate these files for each test, as the compiler may
4776 # overwrite some of them when testing with obscure command lines.
4777 # This happens at least with the AIX C compiler.
4778 : > sub/conftest.c
4779 for i in 1 2 3 4 5 6; do
4780 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4781 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4782 # Solaris 8's {/usr,}/bin/sh.
4783 touch sub/conftst$i.h
4784 done
4785 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4787 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4788 # mode. It turns out that the SunPro C++ compiler does not properly
4789 # handle `-M -o', and we need to detect this. Also, some Intel
4790 # versions had trouble with output in subdirs
4791 am__obj=sub/conftest.${OBJEXT-o}
4792 am__minus_obj="-o $am__obj"
4793 case $depmode in
4794 gcc)
4795 # This depmode causes a compiler race in universal mode.
4796 test "$am__universal" = false || continue
4797 ;;
4798 nosideeffect)
4799 # after this tag, mechanisms are not by side-effect, so they'll
4800 # only be used when explicitly requested
4801 if test "x$enable_dependency_tracking" = xyes; then
4802 continue
4803 else
4804 break
4805 fi
4806 ;;
4807 msvisualcpp | msvcmsys)
4808 # This compiler won't grok `-c -o', but also, the minuso test has
4809 # not run yet. These depmodes are late enough in the game, and
4810 # so weak that their functioning should not be impacted.
4811 am__obj=conftest.${OBJEXT-o}
4812 am__minus_obj=
4813 ;;
4814 none) break ;;
4815 esac
4816 if depmode=$depmode \
4817 source=sub/conftest.c object=$am__obj \
4818 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4819 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4820 >/dev/null 2>conftest.err &&
4821 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4822 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4823 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4824 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4825 # icc doesn't choke on unknown options, it will just issue warnings
4826 # or remarks (even with -Werror). So we grep stderr for any message
4827 # that says an option was ignored or not supported.
4828 # When given -MP, icc 7.0 and 7.1 complain thusly:
4829 # icc: Command line warning: ignoring option '-M'; no argument required
4830 # The diagnosis changed in icc 8.0:
4831 # icc: Command line remark: option '-MP' not supported
4832 if (grep 'ignoring option' conftest.err ||
4833 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4834 am_cv_CC_dependencies_compiler_type=$depmode
4835 break
4836 fi
4837 fi
4838 done
4840 cd ..
4841 rm -rf conftest.dir
4842 else
4843 am_cv_CC_dependencies_compiler_type=none
4844 fi
4846 fi
4847 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4848 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4849 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4851 if
4852 test "x$enable_dependency_tracking" != xno \
4853 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4854 am__fastdepCC_TRUE=
4855 am__fastdepCC_FALSE='#'
4856 else
4857 am__fastdepCC_TRUE='#'
4858 am__fastdepCC_FALSE=
4859 fi
4864 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4865 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4866 # Check whether --enable-maintainer-mode was given.
4867 if test "${enable_maintainer_mode+set}" = set; then
4868 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4869 else
4870 USE_MAINTAINER_MODE=no
4871 fi
4873 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4874 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4875 if test $USE_MAINTAINER_MODE = yes; then
4876 MAINTAINER_MODE_TRUE=
4877 MAINTAINER_MODE_FALSE='#'
4878 else
4879 MAINTAINER_MODE_TRUE='#'
4880 MAINTAINER_MODE_FALSE=
4881 fi
4883 MAINT=$MAINTAINER_MODE_TRUE
4886 # Enable silent build rules by default, requires at least
4887 # Automake-1.11. Disable by either passing --disable-silent-rules to
4888 # configure or passing V=1 to make
4889 # Check whether --enable-silent-rules was given.
4890 if test "${enable_silent_rules+set}" = set; then
4891 enableval=$enable_silent_rules;
4892 fi
4894 case $enable_silent_rules in
4895 yes) AM_DEFAULT_VERBOSITY=0;;
4896 no) AM_DEFAULT_VERBOSITY=1;;
4897 *) AM_DEFAULT_VERBOSITY=0;;
4898 esac
4899 AM_BACKSLASH='\'
4901 ac_config_headers="$ac_config_headers rrd_config.h"
4922 cat >>confdefs.h <<_ACEOF
4923 #define RRDGRAPH_YLEGEND_ANGLE ${RRDGRAPH_YLEGEND_ANGLE:-90.0}
4924 _ACEOF
4927 # Check whether --enable-rrdcgi was given.
4928 if test "${enable_rrdcgi+set}" = set; then
4929 enableval=$enable_rrdcgi;
4930 else
4931 enable_rrdcgi=yes
4932 fi
4936 # Check whether --with-rrd-default-font was given.
4937 if test "${with_rrd_default_font+set}" = set; then
4938 withval=$with_rrd_default_font; RRD_DEFAULT_FONT=$withval
4939 else
4941 if test -d ${WINDIR:-nodir}/cour.ttf ; then
4942 RRD_DEFAULT_FONT=`cd $WINDIR;pwd`/cour.ttf
4943 else
4944 RRD_DEFAULT_FONT='"DejaVu Sans Mono,Bitstream Vera Sans Mono,monospace,Courier"'
4945 fi
4947 fi
4950 # Check whether --enable-mmap was given.
4951 if test "${enable_mmap+set}" = set; then
4952 enableval=$enable_mmap;
4953 else
4954 enable_mmap=yes
4955 fi
4958 # Check whether --enable-pthread was given.
4959 if test "${enable_pthread+set}" = set; then
4960 enableval=$enable_pthread;
4961 else
4962 enable_pthread=yes
4963 fi
4966 # Check whether --enable-static-programs was given.
4967 if test "${enable_static_programs+set}" = set; then
4968 enableval=$enable_static_programs; case "${enableval}" in
4969 yes) staticprogs=yes ;;
4970 no) staticprogs=no ;;
4971 *) { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-static-programs" >&5
4972 $as_echo "$as_me: error: bad value ${enableval} for --enable-static-programs" >&2;}
4973 { (exit 1); exit 1; }; } ;;
4974 esac
4975 else
4976 staticprogs=no
4977 fi
4979 if test "x$staticprogs" = "xyes"; then
4980 STATIC_PROGRAMS_TRUE=
4981 STATIC_PROGRAMS_FALSE='#'
4982 else
4983 STATIC_PROGRAMS_TRUE='#'
4984 STATIC_PROGRAMS_FALSE=
4985 fi
4990 case $TERM in
4991 # for the most important terminal types we directly know the sequences
4992 xterm|xterm*|vt220|vt220*)
4993 T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
4994 T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
4995 ;;
4996 vt100|vt100*|cygwin)
4997 T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
4998 T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
4999 ;;
5000 *)
5001 T_MD=''
5002 T_ME=''
5003 ;;
5004 esac
5005 { $as_echo "$as_me:$LINENO: result: " >&5
5006 $as_echo "" >&6; }
5007 { $as_echo "$as_me:$LINENO: result: ${T_MD}Audit Compilation Environment${T_ME}" >&5
5008 $as_echo "${T_MD}Audit Compilation Environment${T_ME}" >&6; }
5012 ac_ext=c
5013 ac_cpp='$CPP $CPPFLAGS'
5014 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5015 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5016 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5017 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5018 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5019 # On Suns, sometimes $CPP names a directory.
5020 if test -n "$CPP" && test -d "$CPP"; then
5021 CPP=
5022 fi
5023 if test -z "$CPP"; then
5024 if test "${ac_cv_prog_CPP+set}" = set; then
5025 $as_echo_n "(cached) " >&6
5026 else
5027 # Double quotes because CPP needs to be expanded
5028 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5029 do
5030 ac_preproc_ok=false
5031 for ac_c_preproc_warn_flag in '' yes
5032 do
5033 # Use a header file that comes with gcc, so configuring glibc
5034 # with a fresh cross-compiler works.
5035 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5036 # <limits.h> exists even on freestanding compilers.
5037 # On the NeXT, cc -E runs the code through the compiler's parser,
5038 # not just through cpp. "Syntax error" is here to catch this case.
5039 cat >conftest.$ac_ext <<_ACEOF
5040 /* confdefs.h. */
5041 _ACEOF
5042 cat confdefs.h >>conftest.$ac_ext
5043 cat >>conftest.$ac_ext <<_ACEOF
5044 /* end confdefs.h. */
5045 #ifdef __STDC__
5046 # include <limits.h>
5047 #else
5048 # include <assert.h>
5049 #endif
5050 Syntax error
5051 _ACEOF
5052 if { (ac_try="$ac_cpp conftest.$ac_ext"
5053 case "(($ac_try" in
5054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5055 *) ac_try_echo=$ac_try;;
5056 esac
5057 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5058 $as_echo "$ac_try_echo") >&5
5059 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5060 ac_status=$?
5061 grep -v '^ *+' conftest.er1 >conftest.err
5062 rm -f conftest.er1
5063 cat conftest.err >&5
5064 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5065 (exit $ac_status); } >/dev/null && {
5066 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5067 test ! -s conftest.err
5068 }; then
5069 :
5070 else
5071 $as_echo "$as_me: failed program was:" >&5
5072 sed 's/^/| /' conftest.$ac_ext >&5
5074 # Broken: fails on valid input.
5075 continue
5076 fi
5078 rm -f conftest.err conftest.$ac_ext
5080 # OK, works on sane cases. Now check whether nonexistent headers
5081 # can be detected and how.
5082 cat >conftest.$ac_ext <<_ACEOF
5083 /* confdefs.h. */
5084 _ACEOF
5085 cat confdefs.h >>conftest.$ac_ext
5086 cat >>conftest.$ac_ext <<_ACEOF
5087 /* end confdefs.h. */
5088 #include <ac_nonexistent.h>
5089 _ACEOF
5090 if { (ac_try="$ac_cpp conftest.$ac_ext"
5091 case "(($ac_try" in
5092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5093 *) ac_try_echo=$ac_try;;
5094 esac
5095 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5096 $as_echo "$ac_try_echo") >&5
5097 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5098 ac_status=$?
5099 grep -v '^ *+' conftest.er1 >conftest.err
5100 rm -f conftest.er1
5101 cat conftest.err >&5
5102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5103 (exit $ac_status); } >/dev/null && {
5104 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5105 test ! -s conftest.err
5106 }; then
5107 # Broken: success on invalid input.
5108 continue
5109 else
5110 $as_echo "$as_me: failed program was:" >&5
5111 sed 's/^/| /' conftest.$ac_ext >&5
5113 # Passes both tests.
5114 ac_preproc_ok=:
5115 break
5116 fi
5118 rm -f conftest.err conftest.$ac_ext
5120 done
5121 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5122 rm -f conftest.err conftest.$ac_ext
5123 if $ac_preproc_ok; then
5124 break
5125 fi
5127 done
5128 ac_cv_prog_CPP=$CPP
5130 fi
5131 CPP=$ac_cv_prog_CPP
5132 else
5133 ac_cv_prog_CPP=$CPP
5134 fi
5135 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
5136 $as_echo "$CPP" >&6; }
5137 ac_preproc_ok=false
5138 for ac_c_preproc_warn_flag in '' yes
5139 do
5140 # Use a header file that comes with gcc, so configuring glibc
5141 # with a fresh cross-compiler works.
5142 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5143 # <limits.h> exists even on freestanding compilers.
5144 # On the NeXT, cc -E runs the code through the compiler's parser,
5145 # not just through cpp. "Syntax error" is here to catch this case.
5146 cat >conftest.$ac_ext <<_ACEOF
5147 /* confdefs.h. */
5148 _ACEOF
5149 cat confdefs.h >>conftest.$ac_ext
5150 cat >>conftest.$ac_ext <<_ACEOF
5151 /* end confdefs.h. */
5152 #ifdef __STDC__
5153 # include <limits.h>
5154 #else
5155 # include <assert.h>
5156 #endif
5157 Syntax error
5158 _ACEOF
5159 if { (ac_try="$ac_cpp conftest.$ac_ext"
5160 case "(($ac_try" in
5161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5162 *) ac_try_echo=$ac_try;;
5163 esac
5164 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5165 $as_echo "$ac_try_echo") >&5
5166 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5167 ac_status=$?
5168 grep -v '^ *+' conftest.er1 >conftest.err
5169 rm -f conftest.er1
5170 cat conftest.err >&5
5171 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5172 (exit $ac_status); } >/dev/null && {
5173 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5174 test ! -s conftest.err
5175 }; then
5176 :
5177 else
5178 $as_echo "$as_me: failed program was:" >&5
5179 sed 's/^/| /' conftest.$ac_ext >&5
5181 # Broken: fails on valid input.
5182 continue
5183 fi
5185 rm -f conftest.err conftest.$ac_ext
5187 # OK, works on sane cases. Now check whether nonexistent headers
5188 # can be detected and how.
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 #include <ac_nonexistent.h>
5196 _ACEOF
5197 if { (ac_try="$ac_cpp conftest.$ac_ext"
5198 case "(($ac_try" in
5199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5200 *) ac_try_echo=$ac_try;;
5201 esac
5202 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5203 $as_echo "$ac_try_echo") >&5
5204 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5205 ac_status=$?
5206 grep -v '^ *+' conftest.er1 >conftest.err
5207 rm -f conftest.er1
5208 cat conftest.err >&5
5209 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5210 (exit $ac_status); } >/dev/null && {
5211 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5212 test ! -s conftest.err
5213 }; then
5214 # Broken: success on invalid input.
5215 continue
5216 else
5217 $as_echo "$as_me: failed program was:" >&5
5218 sed 's/^/| /' conftest.$ac_ext >&5
5220 # Passes both tests.
5221 ac_preproc_ok=:
5222 break
5223 fi
5225 rm -f conftest.err conftest.$ac_ext
5227 done
5228 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5229 rm -f conftest.err conftest.$ac_ext
5230 if $ac_preproc_ok; then
5231 :
5232 else
5233 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5234 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5235 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5236 See \`config.log' for more details." >&5
5237 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5238 See \`config.log' for more details." >&2;}
5239 { (exit 1); exit 1; }; }; }
5240 fi
5242 ac_ext=c
5243 ac_cpp='$CPP $CPPFLAGS'
5244 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5245 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5246 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5248 ac_ext=c
5249 ac_cpp='$CPP $CPPFLAGS'
5250 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5251 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5252 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5253 if test -n "$ac_tool_prefix"; then
5254 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5255 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5256 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5257 $as_echo_n "checking for $ac_word... " >&6; }
5258 if test "${ac_cv_prog_CC+set}" = set; then
5259 $as_echo_n "(cached) " >&6
5260 else
5261 if test -n "$CC"; then
5262 ac_cv_prog_CC="$CC" # Let the user override the test.
5263 else
5264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5265 for as_dir in $PATH
5266 do
5267 IFS=$as_save_IFS
5268 test -z "$as_dir" && as_dir=.
5269 for ac_exec_ext in '' $ac_executable_extensions; do
5270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5271 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5272 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5273 break 2
5274 fi
5275 done
5276 done
5277 IFS=$as_save_IFS
5279 fi
5280 fi
5281 CC=$ac_cv_prog_CC
5282 if test -n "$CC"; then
5283 { $as_echo "$as_me:$LINENO: result: $CC" >&5
5284 $as_echo "$CC" >&6; }
5285 else
5286 { $as_echo "$as_me:$LINENO: result: no" >&5
5287 $as_echo "no" >&6; }
5288 fi
5291 fi
5292 if test -z "$ac_cv_prog_CC"; then
5293 ac_ct_CC=$CC
5294 # Extract the first word of "gcc", so it can be a program name with args.
5295 set dummy gcc; ac_word=$2
5296 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5297 $as_echo_n "checking for $ac_word... " >&6; }
5298 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5299 $as_echo_n "(cached) " >&6
5300 else
5301 if test -n "$ac_ct_CC"; then
5302 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5303 else
5304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5305 for as_dir in $PATH
5306 do
5307 IFS=$as_save_IFS
5308 test -z "$as_dir" && as_dir=.
5309 for ac_exec_ext in '' $ac_executable_extensions; do
5310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5311 ac_cv_prog_ac_ct_CC="gcc"
5312 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5313 break 2
5314 fi
5315 done
5316 done
5317 IFS=$as_save_IFS
5319 fi
5320 fi
5321 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5322 if test -n "$ac_ct_CC"; then
5323 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5324 $as_echo "$ac_ct_CC" >&6; }
5325 else
5326 { $as_echo "$as_me:$LINENO: result: no" >&5
5327 $as_echo "no" >&6; }
5328 fi
5330 if test "x$ac_ct_CC" = x; then
5331 CC=""
5332 else
5333 case $cross_compiling:$ac_tool_warned in
5334 yes:)
5335 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5336 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5337 ac_tool_warned=yes ;;
5338 esac
5339 CC=$ac_ct_CC
5340 fi
5341 else
5342 CC="$ac_cv_prog_CC"
5343 fi
5345 if test -z "$CC"; then
5346 if test -n "$ac_tool_prefix"; then
5347 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5348 set dummy ${ac_tool_prefix}cc; ac_word=$2
5349 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5350 $as_echo_n "checking for $ac_word... " >&6; }
5351 if test "${ac_cv_prog_CC+set}" = set; then
5352 $as_echo_n "(cached) " >&6
5353 else
5354 if test -n "$CC"; then
5355 ac_cv_prog_CC="$CC" # Let the user override the test.
5356 else
5357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5358 for as_dir in $PATH
5359 do
5360 IFS=$as_save_IFS
5361 test -z "$as_dir" && as_dir=.
5362 for ac_exec_ext in '' $ac_executable_extensions; do
5363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5364 ac_cv_prog_CC="${ac_tool_prefix}cc"
5365 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5366 break 2
5367 fi
5368 done
5369 done
5370 IFS=$as_save_IFS
5372 fi
5373 fi
5374 CC=$ac_cv_prog_CC
5375 if test -n "$CC"; then
5376 { $as_echo "$as_me:$LINENO: result: $CC" >&5
5377 $as_echo "$CC" >&6; }
5378 else
5379 { $as_echo "$as_me:$LINENO: result: no" >&5
5380 $as_echo "no" >&6; }
5381 fi
5384 fi
5385 fi
5386 if test -z "$CC"; then
5387 # Extract the first word of "cc", so it can be a program name with args.
5388 set dummy cc; ac_word=$2
5389 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5390 $as_echo_n "checking for $ac_word... " >&6; }
5391 if test "${ac_cv_prog_CC+set}" = set; then
5392 $as_echo_n "(cached) " >&6
5393 else
5394 if test -n "$CC"; then
5395 ac_cv_prog_CC="$CC" # Let the user override the test.
5396 else
5397 ac_prog_rejected=no
5398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5399 for as_dir in $PATH
5400 do
5401 IFS=$as_save_IFS
5402 test -z "$as_dir" && as_dir=.
5403 for ac_exec_ext in '' $ac_executable_extensions; do
5404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5405 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5406 ac_prog_rejected=yes
5407 continue
5408 fi
5409 ac_cv_prog_CC="cc"
5410 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5411 break 2
5412 fi
5413 done
5414 done
5415 IFS=$as_save_IFS
5417 if test $ac_prog_rejected = yes; then
5418 # We found a bogon in the path, so make sure we never use it.
5419 set dummy $ac_cv_prog_CC
5420 shift
5421 if test $# != 0; then
5422 # We chose a different compiler from the bogus one.
5423 # However, it has the same basename, so the bogon will be chosen
5424 # first if we set CC to just the basename; use the full file name.
5425 shift
5426 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5427 fi
5428 fi
5429 fi
5430 fi
5431 CC=$ac_cv_prog_CC
5432 if test -n "$CC"; then
5433 { $as_echo "$as_me:$LINENO: result: $CC" >&5
5434 $as_echo "$CC" >&6; }
5435 else
5436 { $as_echo "$as_me:$LINENO: result: no" >&5
5437 $as_echo "no" >&6; }
5438 fi
5441 fi
5442 if test -z "$CC"; then
5443 if test -n "$ac_tool_prefix"; then
5444 for ac_prog in cl.exe
5445 do
5446 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5447 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5448 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5449 $as_echo_n "checking for $ac_word... " >&6; }
5450 if test "${ac_cv_prog_CC+set}" = set; then
5451 $as_echo_n "(cached) " >&6
5452 else
5453 if test -n "$CC"; then
5454 ac_cv_prog_CC="$CC" # Let the user override the test.
5455 else
5456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5457 for as_dir in $PATH
5458 do
5459 IFS=$as_save_IFS
5460 test -z "$as_dir" && as_dir=.
5461 for ac_exec_ext in '' $ac_executable_extensions; do
5462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5463 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5464 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5465 break 2
5466 fi
5467 done
5468 done
5469 IFS=$as_save_IFS
5471 fi
5472 fi
5473 CC=$ac_cv_prog_CC
5474 if test -n "$CC"; then
5475 { $as_echo "$as_me:$LINENO: result: $CC" >&5
5476 $as_echo "$CC" >&6; }
5477 else
5478 { $as_echo "$as_me:$LINENO: result: no" >&5
5479 $as_echo "no" >&6; }
5480 fi
5483 test -n "$CC" && break
5484 done
5485 fi
5486 if test -z "$CC"; then
5487 ac_ct_CC=$CC
5488 for ac_prog in cl.exe
5489 do
5490 # Extract the first word of "$ac_prog", so it can be a program name with args.
5491 set dummy $ac_prog; ac_word=$2
5492 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5493 $as_echo_n "checking for $ac_word... " >&6; }
5494 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5495 $as_echo_n "(cached) " >&6
5496 else
5497 if test -n "$ac_ct_CC"; then
5498 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5499 else
5500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5501 for as_dir in $PATH
5502 do
5503 IFS=$as_save_IFS
5504 test -z "$as_dir" && as_dir=.
5505 for ac_exec_ext in '' $ac_executable_extensions; do
5506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5507 ac_cv_prog_ac_ct_CC="$ac_prog"
5508 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5509 break 2
5510 fi
5511 done
5512 done
5513 IFS=$as_save_IFS
5515 fi
5516 fi
5517 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5518 if test -n "$ac_ct_CC"; then
5519 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5520 $as_echo "$ac_ct_CC" >&6; }
5521 else
5522 { $as_echo "$as_me:$LINENO: result: no" >&5
5523 $as_echo "no" >&6; }
5524 fi
5527 test -n "$ac_ct_CC" && break
5528 done
5530 if test "x$ac_ct_CC" = x; then
5531 CC=""
5532 else
5533 case $cross_compiling:$ac_tool_warned in
5534 yes:)
5535 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5536 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5537 ac_tool_warned=yes ;;
5538 esac
5539 CC=$ac_ct_CC
5540 fi
5541 fi
5543 fi
5546 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5547 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5548 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5549 See \`config.log' for more details." >&5
5550 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
5551 See \`config.log' for more details." >&2;}
5552 { (exit 1); exit 1; }; }; }
5554 # Provide some information about the compiler.
5555 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
5556 set X $ac_compile
5557 ac_compiler=$2
5558 { (ac_try="$ac_compiler --version >&5"
5559 case "(($ac_try" in
5560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5561 *) ac_try_echo=$ac_try;;
5562 esac
5563 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5564 $as_echo "$ac_try_echo") >&5
5565 (eval "$ac_compiler --version >&5") 2>&5
5566 ac_status=$?
5567 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5568 (exit $ac_status); }
5569 { (ac_try="$ac_compiler -v >&5"
5570 case "(($ac_try" in
5571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5572 *) ac_try_echo=$ac_try;;
5573 esac
5574 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5575 $as_echo "$ac_try_echo") >&5
5576 (eval "$ac_compiler -v >&5") 2>&5
5577 ac_status=$?
5578 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5579 (exit $ac_status); }
5580 { (ac_try="$ac_compiler -V >&5"
5581 case "(($ac_try" in
5582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5583 *) ac_try_echo=$ac_try;;
5584 esac
5585 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5586 $as_echo "$ac_try_echo") >&5
5587 (eval "$ac_compiler -V >&5") 2>&5
5588 ac_status=$?
5589 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5590 (exit $ac_status); }
5592 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5593 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5594 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5595 $as_echo_n "(cached) " >&6
5596 else
5597 cat >conftest.$ac_ext <<_ACEOF
5598 /* confdefs.h. */
5599 _ACEOF
5600 cat confdefs.h >>conftest.$ac_ext
5601 cat >>conftest.$ac_ext <<_ACEOF
5602 /* end confdefs.h. */
5604 int
5605 main ()
5606 {
5607 #ifndef __GNUC__
5608 choke me
5609 #endif
5611 ;
5612 return 0;
5613 }
5614 _ACEOF
5615 rm -f conftest.$ac_objext
5616 if { (ac_try="$ac_compile"
5617 case "(($ac_try" in
5618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5619 *) ac_try_echo=$ac_try;;
5620 esac
5621 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5622 $as_echo "$ac_try_echo") >&5
5623 (eval "$ac_compile") 2>conftest.er1
5624 ac_status=$?
5625 grep -v '^ *+' conftest.er1 >conftest.err
5626 rm -f conftest.er1
5627 cat conftest.err >&5
5628 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5629 (exit $ac_status); } && {
5630 test -z "$ac_c_werror_flag" ||
5631 test ! -s conftest.err
5632 } && test -s conftest.$ac_objext; then
5633 ac_compiler_gnu=yes
5634 else
5635 $as_echo "$as_me: failed program was:" >&5
5636 sed 's/^/| /' conftest.$ac_ext >&5
5638 ac_compiler_gnu=no
5639 fi
5641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5642 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5644 fi
5645 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5646 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5647 if test $ac_compiler_gnu = yes; then
5648 GCC=yes
5649 else
5650 GCC=
5651 fi
5652 ac_test_CFLAGS=${CFLAGS+set}
5653 ac_save_CFLAGS=$CFLAGS
5654 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5655 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5656 if test "${ac_cv_prog_cc_g+set}" = set; then
5657 $as_echo_n "(cached) " >&6
5658 else
5659 ac_save_c_werror_flag=$ac_c_werror_flag
5660 ac_c_werror_flag=yes
5661 ac_cv_prog_cc_g=no
5662 CFLAGS="-g"
5663 cat >conftest.$ac_ext <<_ACEOF
5664 /* confdefs.h. */
5665 _ACEOF
5666 cat confdefs.h >>conftest.$ac_ext
5667 cat >>conftest.$ac_ext <<_ACEOF
5668 /* end confdefs.h. */
5670 int
5671 main ()
5672 {
5674 ;
5675 return 0;
5676 }
5677 _ACEOF
5678 rm -f conftest.$ac_objext
5679 if { (ac_try="$ac_compile"
5680 case "(($ac_try" in
5681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5682 *) ac_try_echo=$ac_try;;
5683 esac
5684 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5685 $as_echo "$ac_try_echo") >&5
5686 (eval "$ac_compile") 2>conftest.er1
5687 ac_status=$?
5688 grep -v '^ *+' conftest.er1 >conftest.err
5689 rm -f conftest.er1
5690 cat conftest.err >&5
5691 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5692 (exit $ac_status); } && {
5693 test -z "$ac_c_werror_flag" ||
5694 test ! -s conftest.err
5695 } && test -s conftest.$ac_objext; then
5696 ac_cv_prog_cc_g=yes
5697 else
5698 $as_echo "$as_me: failed program was:" >&5
5699 sed 's/^/| /' conftest.$ac_ext >&5
5701 CFLAGS=""
5702 cat >conftest.$ac_ext <<_ACEOF
5703 /* confdefs.h. */
5704 _ACEOF
5705 cat confdefs.h >>conftest.$ac_ext
5706 cat >>conftest.$ac_ext <<_ACEOF
5707 /* end confdefs.h. */
5709 int
5710 main ()
5711 {
5713 ;
5714 return 0;
5715 }
5716 _ACEOF
5717 rm -f conftest.$ac_objext
5718 if { (ac_try="$ac_compile"
5719 case "(($ac_try" in
5720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5721 *) ac_try_echo=$ac_try;;
5722 esac
5723 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5724 $as_echo "$ac_try_echo") >&5
5725 (eval "$ac_compile") 2>conftest.er1
5726 ac_status=$?
5727 grep -v '^ *+' conftest.er1 >conftest.err
5728 rm -f conftest.er1
5729 cat conftest.err >&5
5730 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5731 (exit $ac_status); } && {
5732 test -z "$ac_c_werror_flag" ||
5733 test ! -s conftest.err
5734 } && test -s conftest.$ac_objext; then
5735 :
5736 else
5737 $as_echo "$as_me: failed program was:" >&5
5738 sed 's/^/| /' conftest.$ac_ext >&5
5740 ac_c_werror_flag=$ac_save_c_werror_flag
5741 CFLAGS="-g"
5742 cat >conftest.$ac_ext <<_ACEOF
5743 /* confdefs.h. */
5744 _ACEOF
5745 cat confdefs.h >>conftest.$ac_ext
5746 cat >>conftest.$ac_ext <<_ACEOF
5747 /* end confdefs.h. */
5749 int
5750 main ()
5751 {
5753 ;
5754 return 0;
5755 }
5756 _ACEOF
5757 rm -f conftest.$ac_objext
5758 if { (ac_try="$ac_compile"
5759 case "(($ac_try" in
5760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5761 *) ac_try_echo=$ac_try;;
5762 esac
5763 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5764 $as_echo "$ac_try_echo") >&5
5765 (eval "$ac_compile") 2>conftest.er1
5766 ac_status=$?
5767 grep -v '^ *+' conftest.er1 >conftest.err
5768 rm -f conftest.er1
5769 cat conftest.err >&5
5770 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5771 (exit $ac_status); } && {
5772 test -z "$ac_c_werror_flag" ||
5773 test ! -s conftest.err
5774 } && test -s conftest.$ac_objext; then
5775 ac_cv_prog_cc_g=yes
5776 else
5777 $as_echo "$as_me: failed program was:" >&5
5778 sed 's/^/| /' conftest.$ac_ext >&5
5781 fi
5783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5784 fi
5786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5787 fi
5789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5790 ac_c_werror_flag=$ac_save_c_werror_flag
5791 fi
5792 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5793 $as_echo "$ac_cv_prog_cc_g" >&6; }
5794 if test "$ac_test_CFLAGS" = set; then
5795 CFLAGS=$ac_save_CFLAGS
5796 elif test $ac_cv_prog_cc_g = yes; then
5797 if test "$GCC" = yes; then
5798 CFLAGS="-g -O2"
5799 else
5800 CFLAGS="-g"
5801 fi
5802 else
5803 if test "$GCC" = yes; then
5804 CFLAGS="-O2"
5805 else
5806 CFLAGS=
5807 fi
5808 fi
5809 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5810 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5811 if test "${ac_cv_prog_cc_c89+set}" = set; then
5812 $as_echo_n "(cached) " >&6
5813 else
5814 ac_cv_prog_cc_c89=no
5815 ac_save_CC=$CC
5816 cat >conftest.$ac_ext <<_ACEOF
5817 /* confdefs.h. */
5818 _ACEOF
5819 cat confdefs.h >>conftest.$ac_ext
5820 cat >>conftest.$ac_ext <<_ACEOF
5821 /* end confdefs.h. */
5822 #include <stdarg.h>
5823 #include <stdio.h>
5824 #include <sys/types.h>
5825 #include <sys/stat.h>
5826 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5827 struct buf { int x; };
5828 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5829 static char *e (p, i)
5830 char **p;
5831 int i;
5832 {
5833 return p[i];
5834 }
5835 static char *f (char * (*g) (char **, int), char **p, ...)
5836 {
5837 char *s;
5838 va_list v;
5839 va_start (v,p);
5840 s = g (p, va_arg (v,int));
5841 va_end (v);
5842 return s;
5843 }
5845 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5846 function prototypes and stuff, but not '\xHH' hex character constants.
5847 These don't provoke an error unfortunately, instead are silently treated
5848 as 'x'. The following induces an error, until -std is added to get
5849 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5850 array size at least. It's necessary to write '\x00'==0 to get something
5851 that's true only with -std. */
5852 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5854 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5855 inside strings and character constants. */
5856 #define FOO(x) 'x'
5857 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5859 int test (int i, double x);
5860 struct s1 {int (*f) (int a);};
5861 struct s2 {int (*f) (double a);};
5862 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5863 int argc;
5864 char **argv;
5865 int
5866 main ()
5867 {
5868 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5869 ;
5870 return 0;
5871 }
5872 _ACEOF
5873 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5874 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5875 do
5876 CC="$ac_save_CC $ac_arg"
5877 rm -f conftest.$ac_objext
5878 if { (ac_try="$ac_compile"
5879 case "(($ac_try" in
5880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5881 *) ac_try_echo=$ac_try;;
5882 esac
5883 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5884 $as_echo "$ac_try_echo") >&5
5885 (eval "$ac_compile") 2>conftest.er1
5886 ac_status=$?
5887 grep -v '^ *+' conftest.er1 >conftest.err
5888 rm -f conftest.er1
5889 cat conftest.err >&5
5890 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5891 (exit $ac_status); } && {
5892 test -z "$ac_c_werror_flag" ||
5893 test ! -s conftest.err
5894 } && test -s conftest.$ac_objext; then
5895 ac_cv_prog_cc_c89=$ac_arg
5896 else
5897 $as_echo "$as_me: failed program was:" >&5
5898 sed 's/^/| /' conftest.$ac_ext >&5
5901 fi
5903 rm -f core conftest.err conftest.$ac_objext
5904 test "x$ac_cv_prog_cc_c89" != "xno" && break
5905 done
5906 rm -f conftest.$ac_ext
5907 CC=$ac_save_CC
5909 fi
5910 # AC_CACHE_VAL
5911 case "x$ac_cv_prog_cc_c89" in
5912 x)
5913 { $as_echo "$as_me:$LINENO: result: none needed" >&5
5914 $as_echo "none needed" >&6; } ;;
5915 xno)
5916 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
5917 $as_echo "unsupported" >&6; } ;;
5918 *)
5919 CC="$CC $ac_cv_prog_cc_c89"
5920 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5921 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5922 esac
5925 ac_ext=c
5926 ac_cpp='$CPP $CPPFLAGS'
5927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5931 if test "x$CC" != xcc; then
5932 { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
5933 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5934 else
5935 { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
5936 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5937 fi
5938 set dummy $CC; ac_cc=`$as_echo "$2" |
5939 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5940 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
5941 $as_echo_n "(cached) " >&6
5942 else
5943 cat >conftest.$ac_ext <<_ACEOF
5944 /* confdefs.h. */
5945 _ACEOF
5946 cat confdefs.h >>conftest.$ac_ext
5947 cat >>conftest.$ac_ext <<_ACEOF
5948 /* end confdefs.h. */
5950 int
5951 main ()
5952 {
5954 ;
5955 return 0;
5956 }
5957 _ACEOF
5958 # Make sure it works both with $CC and with simple cc.
5959 # We do the test twice because some compilers refuse to overwrite an
5960 # existing .o file with -o, though they will create one.
5961 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5962 rm -f conftest2.*
5963 if { (case "(($ac_try" in
5964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5965 *) ac_try_echo=$ac_try;;
5966 esac
5967 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5968 $as_echo "$ac_try_echo") >&5
5969 (eval "$ac_try") 2>&5
5970 ac_status=$?
5971 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5972 (exit $ac_status); } &&
5973 test -f conftest2.$ac_objext && { (case "(($ac_try" in
5974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5975 *) ac_try_echo=$ac_try;;
5976 esac
5977 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5978 $as_echo "$ac_try_echo") >&5
5979 (eval "$ac_try") 2>&5
5980 ac_status=$?
5981 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5982 (exit $ac_status); };
5983 then
5984 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5985 if test "x$CC" != xcc; then
5986 # Test first that cc exists at all.
5987 if { ac_try='cc -c conftest.$ac_ext >&5'
5988 { (case "(($ac_try" in
5989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5990 *) ac_try_echo=$ac_try;;
5991 esac
5992 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5993 $as_echo "$ac_try_echo") >&5
5994 (eval "$ac_try") 2>&5
5995 ac_status=$?
5996 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5997 (exit $ac_status); }; }; then
5998 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5999 rm -f conftest2.*
6000 if { (case "(($ac_try" in
6001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6002 *) ac_try_echo=$ac_try;;
6003 esac
6004 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6005 $as_echo "$ac_try_echo") >&5
6006 (eval "$ac_try") 2>&5
6007 ac_status=$?
6008 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6009 (exit $ac_status); } &&
6010 test -f conftest2.$ac_objext && { (case "(($ac_try" in
6011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6012 *) ac_try_echo=$ac_try;;
6013 esac
6014 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6015 $as_echo "$ac_try_echo") >&5
6016 (eval "$ac_try") 2>&5
6017 ac_status=$?
6018 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6019 (exit $ac_status); };
6020 then
6021 # cc works too.
6022 :
6023 else
6024 # cc exists but doesn't like -o.
6025 eval ac_cv_prog_cc_${ac_cc}_c_o=no
6026 fi
6027 fi
6028 fi
6029 else
6030 eval ac_cv_prog_cc_${ac_cc}_c_o=no
6031 fi
6032 rm -f core conftest*
6034 fi
6035 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
6036 { $as_echo "$as_me:$LINENO: result: yes" >&5
6037 $as_echo "yes" >&6; }
6038 else
6039 { $as_echo "$as_me:$LINENO: result: no" >&5
6040 $as_echo "no" >&6; }
6042 cat >>confdefs.h <<\_ACEOF
6043 #define NO_MINUS_C_MINUS_O 1
6044 _ACEOF
6046 fi
6048 # FIXME: we rely on the cache variable name because
6049 # there is no other way.
6050 set dummy $CC
6051 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6052 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
6053 if test "$am_t" != yes; then
6054 # Losing compiler, so override with the script.
6055 # FIXME: It is wrong to rewrite CC.
6056 # But if we don't then we get into trouble of one sort or another.
6057 # A longer-term fix would be to have automake use am__CC in this case,
6058 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6059 CC="$am_aux_dir/compile $CC"
6060 fi
6063 case `pwd` in
6064 *\ * | *\ *)
6065 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6066 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6067 esac
6071 macro_version='2.2.6'
6072 macro_revision='1.3012'
6086 ltmain="$ac_aux_dir/ltmain.sh"
6088 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6089 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6090 if test "${ac_cv_path_SED+set}" = set; then
6091 $as_echo_n "(cached) " >&6
6092 else
6093 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6094 for ac_i in 1 2 3 4 5 6 7; do
6095 ac_script="$ac_script$as_nl$ac_script"
6096 done
6097 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6098 $as_unset ac_script || ac_script=
6099 if test -z "$SED"; then
6100 ac_path_SED_found=false
6101 # Loop through the user's path and test for each of PROGNAME-LIST
6102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6103 for as_dir in $PATH
6104 do
6105 IFS=$as_save_IFS
6106 test -z "$as_dir" && as_dir=.
6107 for ac_prog in sed gsed; do
6108 for ac_exec_ext in '' $ac_executable_extensions; do
6109 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6110 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6111 # Check for GNU ac_path_SED and select it if it is found.
6112 # Check for GNU $ac_path_SED
6113 case `"$ac_path_SED" --version 2>&1` in
6114 *GNU*)
6115 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6116 *)
6117 ac_count=0
6118 $as_echo_n 0123456789 >"conftest.in"
6119 while :
6120 do
6121 cat "conftest.in" "conftest.in" >"conftest.tmp"
6122 mv "conftest.tmp" "conftest.in"
6123 cp "conftest.in" "conftest.nl"
6124 $as_echo '' >> "conftest.nl"
6125 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6126 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6127 ac_count=`expr $ac_count + 1`
6128 if test $ac_count -gt ${ac_path_SED_max-0}; then
6129 # Best one so far, save it but keep looking for a better one
6130 ac_cv_path_SED="$ac_path_SED"
6131 ac_path_SED_max=$ac_count
6132 fi
6133 # 10*(2^10) chars as input seems more than enough
6134 test $ac_count -gt 10 && break
6135 done
6136 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6137 esac
6139 $ac_path_SED_found && break 3
6140 done
6141 done
6142 done
6143 IFS=$as_save_IFS
6144 if test -z "$ac_cv_path_SED"; then
6145 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
6146 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
6147 { (exit 1); exit 1; }; }
6148 fi
6149 else
6150 ac_cv_path_SED=$SED
6151 fi
6153 fi
6154 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
6155 $as_echo "$ac_cv_path_SED" >&6; }
6156 SED="$ac_cv_path_SED"
6157 rm -f conftest.sed
6159 test -z "$SED" && SED=sed
6160 Xsed="$SED -e 1s/^X//"
6172 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
6173 $as_echo_n "checking for fgrep... " >&6; }
6174 if test "${ac_cv_path_FGREP+set}" = set; then
6175 $as_echo_n "(cached) " >&6
6176 else
6177 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6178 then ac_cv_path_FGREP="$GREP -F"
6179 else
6180 if test -z "$FGREP"; then
6181 ac_path_FGREP_found=false
6182 # Loop through the user's path and test for each of PROGNAME-LIST
6183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6184 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6185 do
6186 IFS=$as_save_IFS
6187 test -z "$as_dir" && as_dir=.
6188 for ac_prog in fgrep; do
6189 for ac_exec_ext in '' $ac_executable_extensions; do
6190 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6191 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6192 # Check for GNU ac_path_FGREP and select it if it is found.
6193 # Check for GNU $ac_path_FGREP
6194 case `"$ac_path_FGREP" --version 2>&1` in
6195 *GNU*)
6196 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6197 *)
6198 ac_count=0
6199 $as_echo_n 0123456789 >"conftest.in"
6200 while :
6201 do
6202 cat "conftest.in" "conftest.in" >"conftest.tmp"
6203 mv "conftest.tmp" "conftest.in"
6204 cp "conftest.in" "conftest.nl"
6205 $as_echo 'FGREP' >> "conftest.nl"
6206 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6207 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6208 ac_count=`expr $ac_count + 1`
6209 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6210 # Best one so far, save it but keep looking for a better one
6211 ac_cv_path_FGREP="$ac_path_FGREP"
6212 ac_path_FGREP_max=$ac_count
6213 fi
6214 # 10*(2^10) chars as input seems more than enough
6215 test $ac_count -gt 10 && break
6216 done
6217 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6218 esac
6220 $ac_path_FGREP_found && break 3
6221 done
6222 done
6223 done
6224 IFS=$as_save_IFS
6225 if test -z "$ac_cv_path_FGREP"; then
6226 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6227 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6228 { (exit 1); exit 1; }; }
6229 fi
6230 else
6231 ac_cv_path_FGREP=$FGREP
6232 fi
6234 fi
6235 fi
6236 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
6237 $as_echo "$ac_cv_path_FGREP" >&6; }
6238 FGREP="$ac_cv_path_FGREP"
6241 test -z "$GREP" && GREP=grep
6261 # Check whether --with-gnu-ld was given.
6262 if test "${with_gnu_ld+set}" = set; then
6263 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6264 else
6265 with_gnu_ld=no
6266 fi
6268 ac_prog=ld
6269 if test "$GCC" = yes; then
6270 # Check if gcc -print-prog-name=ld gives a path.
6271 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6272 $as_echo_n "checking for ld used by $CC... " >&6; }
6273 case $host in
6274 *-*-mingw*)
6275 # gcc leaves a trailing carriage return which upsets mingw
6276 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6277 *)
6278 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6279 esac
6280 case $ac_prog in
6281 # Accept absolute paths.
6282 [\\/]* | ?:[\\/]*)
6283 re_direlt='/[^/][^/]*/\.\./'
6284 # Canonicalize the pathname of ld
6285 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6286 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6287 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6288 done
6289 test -z "$LD" && LD="$ac_prog"
6290 ;;
6291 "")
6292 # If it fails, then pretend we aren't using GCC.
6293 ac_prog=ld
6294 ;;
6295 *)
6296 # If it is relative, then search for the first ld in PATH.
6297 with_gnu_ld=unknown
6298 ;;
6299 esac
6300 elif test "$with_gnu_ld" = yes; then
6301 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
6302 $as_echo_n "checking for GNU ld... " >&6; }
6303 else
6304 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6305 $as_echo_n "checking for non-GNU ld... " >&6; }
6306 fi
6307 if test "${lt_cv_path_LD+set}" = set; then
6308 $as_echo_n "(cached) " >&6
6309 else
6310 if test -z "$LD"; then
6311 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6312 for ac_dir in $PATH; do
6313 IFS="$lt_save_ifs"
6314 test -z "$ac_dir" && ac_dir=.
6315 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6316 lt_cv_path_LD="$ac_dir/$ac_prog"
6317 # Check to see if the program is GNU ld. I'd rather use --version,
6318 # but apparently some variants of GNU ld only accept -v.
6319 # Break only if it was the GNU/non-GNU ld that we prefer.
6320 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6321 *GNU* | *'with BFD'*)
6322 test "$with_gnu_ld" != no && break
6323 ;;
6324 *)
6325 test "$with_gnu_ld" != yes && break
6326 ;;
6327 esac
6328 fi
6329 done
6330 IFS="$lt_save_ifs"
6331 else
6332 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6333 fi
6334 fi
6336 LD="$lt_cv_path_LD"
6337 if test -n "$LD"; then
6338 { $as_echo "$as_me:$LINENO: result: $LD" >&5
6339 $as_echo "$LD" >&6; }
6340 else
6341 { $as_echo "$as_me:$LINENO: result: no" >&5
6342 $as_echo "no" >&6; }
6343 fi
6344 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6345 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6346 { (exit 1); exit 1; }; }
6347 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6348 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6349 if test "${lt_cv_prog_gnu_ld+set}" = set; then
6350 $as_echo_n "(cached) " >&6
6351 else
6352 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6353 case `$LD -v 2>&1 </dev/null` in
6354 *GNU* | *'with BFD'*)
6355 lt_cv_prog_gnu_ld=yes
6356 ;;
6357 *)
6358 lt_cv_prog_gnu_ld=no
6359 ;;
6360 esac
6361 fi
6362 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6363 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6364 with_gnu_ld=$lt_cv_prog_gnu_ld
6374 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
6375 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6376 if test "${lt_cv_path_NM+set}" = set; then
6377 $as_echo_n "(cached) " >&6
6378 else
6379 if test -n "$NM"; then
6380 # Let the user override the test.
6381 lt_cv_path_NM="$NM"
6382 else
6383 lt_nm_to_check="${ac_tool_prefix}nm"
6384 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6385 lt_nm_to_check="$lt_nm_to_check nm"
6386 fi
6387 for lt_tmp_nm in $lt_nm_to_check; do
6388 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6389 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6390 IFS="$lt_save_ifs"
6391 test -z "$ac_dir" && ac_dir=.
6392 tmp_nm="$ac_dir/$lt_tmp_nm"
6393 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6394 # Check to see if the nm accepts a BSD-compat flag.
6395 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6396 # nm: unknown option "B" ignored
6397 # Tru64's nm complains that /dev/null is an invalid object file
6398 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6399 */dev/null* | *'Invalid file or object type'*)
6400 lt_cv_path_NM="$tmp_nm -B"
6401 break
6402 ;;
6403 *)
6404 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6405 */dev/null*)
6406 lt_cv_path_NM="$tmp_nm -p"
6407 break
6408 ;;
6409 *)
6410 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6411 continue # so that we can try to find one that supports BSD flags
6412 ;;
6413 esac
6414 ;;
6415 esac
6416 fi
6417 done
6418 IFS="$lt_save_ifs"
6419 done
6420 : ${lt_cv_path_NM=no}
6421 fi
6422 fi
6423 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6424 $as_echo "$lt_cv_path_NM" >&6; }
6425 if test "$lt_cv_path_NM" != "no"; then
6426 NM="$lt_cv_path_NM"
6427 else
6428 # Didn't find any BSD compatible name lister, look for dumpbin.
6429 if test -n "$ac_tool_prefix"; then
6430 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6431 do
6432 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6433 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6434 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6435 $as_echo_n "checking for $ac_word... " >&6; }
6436 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
6437 $as_echo_n "(cached) " >&6
6438 else
6439 if test -n "$DUMPBIN"; then
6440 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6441 else
6442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6443 for as_dir in $PATH
6444 do
6445 IFS=$as_save_IFS
6446 test -z "$as_dir" && as_dir=.
6447 for ac_exec_ext in '' $ac_executable_extensions; do
6448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6449 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6450 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6451 break 2
6452 fi
6453 done
6454 done
6455 IFS=$as_save_IFS
6457 fi
6458 fi
6459 DUMPBIN=$ac_cv_prog_DUMPBIN
6460 if test -n "$DUMPBIN"; then
6461 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
6462 $as_echo "$DUMPBIN" >&6; }
6463 else
6464 { $as_echo "$as_me:$LINENO: result: no" >&5
6465 $as_echo "no" >&6; }
6466 fi
6469 test -n "$DUMPBIN" && break
6470 done
6471 fi
6472 if test -z "$DUMPBIN"; then
6473 ac_ct_DUMPBIN=$DUMPBIN
6474 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6475 do
6476 # Extract the first word of "$ac_prog", so it can be a program name with args.
6477 set dummy $ac_prog; ac_word=$2
6478 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6479 $as_echo_n "checking for $ac_word... " >&6; }
6480 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
6481 $as_echo_n "(cached) " >&6
6482 else
6483 if test -n "$ac_ct_DUMPBIN"; then
6484 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6485 else
6486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6487 for as_dir in $PATH
6488 do
6489 IFS=$as_save_IFS
6490 test -z "$as_dir" && as_dir=.
6491 for ac_exec_ext in '' $ac_executable_extensions; do
6492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6493 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6494 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6495 break 2
6496 fi
6497 done
6498 done
6499 IFS=$as_save_IFS
6501 fi
6502 fi
6503 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6504 if test -n "$ac_ct_DUMPBIN"; then
6505 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
6506 $as_echo "$ac_ct_DUMPBIN" >&6; }
6507 else
6508 { $as_echo "$as_me:$LINENO: result: no" >&5
6509 $as_echo "no" >&6; }
6510 fi
6513 test -n "$ac_ct_DUMPBIN" && break
6514 done
6516 if test "x$ac_ct_DUMPBIN" = x; then
6517 DUMPBIN=":"
6518 else
6519 case $cross_compiling:$ac_tool_warned in
6520 yes:)
6521 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6522 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6523 ac_tool_warned=yes ;;
6524 esac
6525 DUMPBIN=$ac_ct_DUMPBIN
6526 fi
6527 fi
6530 if test "$DUMPBIN" != ":"; then
6531 NM="$DUMPBIN"
6532 fi
6533 fi
6534 test -z "$NM" && NM=nm
6541 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
6542 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6543 if test "${lt_cv_nm_interface+set}" = set; then
6544 $as_echo_n "(cached) " >&6
6545 else
6546 lt_cv_nm_interface="BSD nm"
6547 echo "int some_variable = 0;" > conftest.$ac_ext
6548 (eval echo "\"\$as_me:6548: $ac_compile\"" >&5)
6549 (eval "$ac_compile" 2>conftest.err)
6550 cat conftest.err >&5
6551 (eval echo "\"\$as_me:6551: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6552 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6553 cat conftest.err >&5
6554 (eval echo "\"\$as_me:6554: output\"" >&5)
6555 cat conftest.out >&5
6556 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6557 lt_cv_nm_interface="MS dumpbin"
6558 fi
6559 rm -f conftest*
6560 fi
6561 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
6562 $as_echo "$lt_cv_nm_interface" >&6; }
6564 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
6565 $as_echo_n "checking whether ln -s works... " >&6; }
6566 LN_S=$as_ln_s
6567 if test "$LN_S" = "ln -s"; then
6568 { $as_echo "$as_me:$LINENO: result: yes" >&5
6569 $as_echo "yes" >&6; }
6570 else
6571 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6572 $as_echo "no, using $LN_S" >&6; }
6573 fi
6575 # find the maximum length of command line arguments
6576 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6577 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6578 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6579 $as_echo_n "(cached) " >&6
6580 else
6581 i=0
6582 teststring="ABCD"
6584 case $build_os in
6585 msdosdjgpp*)
6586 # On DJGPP, this test can blow up pretty badly due to problems in libc
6587 # (any single argument exceeding 2000 bytes causes a buffer overrun
6588 # during glob expansion). Even if it were fixed, the result of this
6589 # check would be larger than it should be.
6590 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6591 ;;
6593 gnu*)
6594 # Under GNU Hurd, this test is not required because there is
6595 # no limit to the length of command line arguments.
6596 # Libtool will interpret -1 as no limit whatsoever
6597 lt_cv_sys_max_cmd_len=-1;
6598 ;;
6600 cygwin* | mingw* | cegcc*)
6601 # On Win9x/ME, this test blows up -- it succeeds, but takes
6602 # about 5 minutes as the teststring grows exponentially.
6603 # Worse, since 9x/ME are not pre-emptively multitasking,
6604 # you end up with a "frozen" computer, even though with patience
6605 # the test eventually succeeds (with a max line length of 256k).
6606 # Instead, let's just punt: use the minimum linelength reported by
6607 # all of the supported platforms: 8192 (on NT/2K/XP).
6608 lt_cv_sys_max_cmd_len=8192;
6609 ;;
6611 amigaos*)
6612 # On AmigaOS with pdksh, this test takes hours, literally.
6613 # So we just punt and use a minimum line length of 8192.
6614 lt_cv_sys_max_cmd_len=8192;
6615 ;;
6617 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6618 # This has been around since 386BSD, at least. Likely further.
6619 if test -x /sbin/sysctl; then
6620 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6621 elif test -x /usr/sbin/sysctl; then
6622 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6623 else
6624 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6625 fi
6626 # And add a safety zone
6627 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6628 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6629 ;;
6631 interix*)
6632 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6633 lt_cv_sys_max_cmd_len=196608
6634 ;;
6636 osf*)
6637 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6638 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6639 # nice to cause kernel panics so lets avoid the loop below.
6640 # First set a reasonable default.
6641 lt_cv_sys_max_cmd_len=16384
6642 #
6643 if test -x /sbin/sysconfig; then
6644 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6645 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6646 esac
6647 fi
6648 ;;
6649 sco3.2v5*)
6650 lt_cv_sys_max_cmd_len=102400
6651 ;;
6652 sysv5* | sco5v6* | sysv4.2uw2*)
6653 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6654 if test -n "$kargmax"; then
6655 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6656 else
6657 lt_cv_sys_max_cmd_len=32768
6658 fi
6659 ;;
6660 *)
6661 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6662 if test -n "$lt_cv_sys_max_cmd_len"; then
6663 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6664 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6665 else
6666 # Make teststring a little bigger before we do anything with it.
6667 # a 1K string should be a reasonable start.
6668 for i in 1 2 3 4 5 6 7 8 ; do
6669 teststring=$teststring$teststring
6670 done
6671 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6672 # If test is not a shell built-in, we'll probably end up computing a
6673 # maximum length that is only half of the actual maximum length, but
6674 # we can't tell.
6675 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6676 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6677 test $i != 17 # 1/2 MB should be enough
6678 do
6679 i=`expr $i + 1`
6680 teststring=$teststring$teststring
6681 done
6682 # Only check the string length outside the loop.
6683 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6684 teststring=
6685 # Add a significant safety factor because C++ compilers can tack on
6686 # massive amounts of additional arguments before passing them to the
6687 # linker. It appears as though 1/2 is a usable value.
6688 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6689 fi
6690 ;;
6691 esac
6693 fi
6695 if test -n $lt_cv_sys_max_cmd_len ; then
6696 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6697 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6698 else
6699 { $as_echo "$as_me:$LINENO: result: none" >&5
6700 $as_echo "none" >&6; }
6701 fi
6702 max_cmd_len=$lt_cv_sys_max_cmd_len
6709 : ${CP="cp -f"}
6710 : ${MV="mv -f"}
6711 : ${RM="rm -f"}
6713 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
6714 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6715 # Try some XSI features
6716 xsi_shell=no
6717 ( _lt_dummy="a/b/c"
6718 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6719 = c,a/b,, \
6720 && eval 'test $(( 1 + 1 )) -eq 2 \
6721 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6722 && xsi_shell=yes
6723 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
6724 $as_echo "$xsi_shell" >&6; }
6727 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
6728 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6729 lt_shell_append=no
6730 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6731 >/dev/null 2>&1 \
6732 && lt_shell_append=yes
6733 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
6734 $as_echo "$lt_shell_append" >&6; }
6737 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6738 lt_unset=unset
6739 else
6740 lt_unset=false
6741 fi
6747 # test EBCDIC or ASCII
6748 case `echo X|tr X '\101'` in
6749 A) # ASCII based system
6750 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6751 lt_SP2NL='tr \040 \012'
6752 lt_NL2SP='tr \015\012 \040\040'
6753 ;;
6754 *) # EBCDIC based system
6755 lt_SP2NL='tr \100 \n'
6756 lt_NL2SP='tr \r\n \100\100'
6757 ;;
6758 esac
6768 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6769 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6770 if test "${lt_cv_ld_reload_flag+set}" = set; then
6771 $as_echo_n "(cached) " >&6
6772 else
6773 lt_cv_ld_reload_flag='-r'
6774 fi
6775 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6776 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6777 reload_flag=$lt_cv_ld_reload_flag
6778 case $reload_flag in
6779 "" | " "*) ;;
6780 *) reload_flag=" $reload_flag" ;;
6781 esac
6782 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6783 case $host_os in
6784 darwin*)
6785 if test "$GCC" = yes; then
6786 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6787 else
6788 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6789 fi
6790 ;;
6791 esac
6801 if test -n "$ac_tool_prefix"; then
6802 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6803 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6804 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6805 $as_echo_n "checking for $ac_word... " >&6; }
6806 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6807 $as_echo_n "(cached) " >&6
6808 else
6809 if test -n "$OBJDUMP"; then
6810 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6811 else
6812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6813 for as_dir in $PATH
6814 do
6815 IFS=$as_save_IFS
6816 test -z "$as_dir" && as_dir=.
6817 for ac_exec_ext in '' $ac_executable_extensions; do
6818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6819 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6820 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6821 break 2
6822 fi
6823 done
6824 done
6825 IFS=$as_save_IFS
6827 fi
6828 fi
6829 OBJDUMP=$ac_cv_prog_OBJDUMP
6830 if test -n "$OBJDUMP"; then
6831 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6832 $as_echo "$OBJDUMP" >&6; }
6833 else
6834 { $as_echo "$as_me:$LINENO: result: no" >&5
6835 $as_echo "no" >&6; }
6836 fi
6839 fi
6840 if test -z "$ac_cv_prog_OBJDUMP"; then
6841 ac_ct_OBJDUMP=$OBJDUMP
6842 # Extract the first word of "objdump", so it can be a program name with args.
6843 set dummy objdump; ac_word=$2
6844 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6845 $as_echo_n "checking for $ac_word... " >&6; }
6846 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6847 $as_echo_n "(cached) " >&6
6848 else
6849 if test -n "$ac_ct_OBJDUMP"; then
6850 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6851 else
6852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6853 for as_dir in $PATH
6854 do
6855 IFS=$as_save_IFS
6856 test -z "$as_dir" && as_dir=.
6857 for ac_exec_ext in '' $ac_executable_extensions; do
6858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6859 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6860 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6861 break 2
6862 fi
6863 done
6864 done
6865 IFS=$as_save_IFS
6867 fi
6868 fi
6869 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6870 if test -n "$ac_ct_OBJDUMP"; then
6871 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6872 $as_echo "$ac_ct_OBJDUMP" >&6; }
6873 else
6874 { $as_echo "$as_me:$LINENO: result: no" >&5
6875 $as_echo "no" >&6; }
6876 fi
6878 if test "x$ac_ct_OBJDUMP" = x; then
6879 OBJDUMP="false"
6880 else
6881 case $cross_compiling:$ac_tool_warned in
6882 yes:)
6883 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6884 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6885 ac_tool_warned=yes ;;
6886 esac
6887 OBJDUMP=$ac_ct_OBJDUMP
6888 fi
6889 else
6890 OBJDUMP="$ac_cv_prog_OBJDUMP"
6891 fi
6893 test -z "$OBJDUMP" && OBJDUMP=objdump
6903 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6904 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6905 if test "${lt_cv_deplibs_check_method+set}" = set; then
6906 $as_echo_n "(cached) " >&6
6907 else
6908 lt_cv_file_magic_cmd='$MAGIC_CMD'
6909 lt_cv_file_magic_test_file=
6910 lt_cv_deplibs_check_method='unknown'
6911 # Need to set the preceding variable on all platforms that support
6912 # interlibrary dependencies.
6913 # 'none' -- dependencies not supported.
6914 # `unknown' -- same as none, but documents that we really don't know.
6915 # 'pass_all' -- all dependencies passed with no checks.
6916 # 'test_compile' -- check by making test program.
6917 # 'file_magic [[regex]]' -- check by looking for files in library path
6918 # which responds to the $file_magic_cmd with a given extended regex.
6919 # If you have `file' or equivalent on your system and you're not sure
6920 # whether `pass_all' will *always* work, you probably want this one.
6922 case $host_os in
6923 aix[4-9]*)
6924 lt_cv_deplibs_check_method=pass_all
6925 ;;
6927 beos*)
6928 lt_cv_deplibs_check_method=pass_all
6929 ;;
6931 bsdi[45]*)
6932 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6933 lt_cv_file_magic_cmd='/usr/bin/file -L'
6934 lt_cv_file_magic_test_file=/shlib/libc.so
6935 ;;
6937 cygwin*)
6938 # func_win32_libid is a shell function defined in ltmain.sh
6939 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6940 lt_cv_file_magic_cmd='func_win32_libid'
6941 ;;
6943 mingw* | pw32*)
6944 # Base MSYS/MinGW do not provide the 'file' command needed by
6945 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6946 # unless we find 'file', for example because we are cross-compiling.
6947 if ( file / ) >/dev/null 2>&1; then
6948 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6949 lt_cv_file_magic_cmd='func_win32_libid'
6950 else
6951 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6952 lt_cv_file_magic_cmd='$OBJDUMP -f'
6953 fi
6954 ;;
6956 cegcc)
6957 # use the weaker test based on 'objdump'. See mingw*.
6958 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6959 lt_cv_file_magic_cmd='$OBJDUMP -f'
6960 ;;
6962 darwin* | rhapsody*)
6963 lt_cv_deplibs_check_method=pass_all
6964 ;;
6966 freebsd* | dragonfly*)
6967 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6968 case $host_cpu in
6969 i*86 )
6970 # Not sure whether the presence of OpenBSD here was a mistake.
6971 # Let's accept both of them until this is cleared up.
6972 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6973 lt_cv_file_magic_cmd=/usr/bin/file
6974 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6975 ;;
6976 esac
6977 else
6978 lt_cv_deplibs_check_method=pass_all
6979 fi
6980 ;;
6982 gnu*)
6983 lt_cv_deplibs_check_method=pass_all
6984 ;;
6986 hpux10.20* | hpux11*)
6987 lt_cv_file_magic_cmd=/usr/bin/file
6988 case $host_cpu in
6989 ia64*)
6990 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6991 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6992 ;;
6993 hppa*64*)
6994 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]'
6995 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6996 ;;
6997 *)
6998 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6999 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7000 ;;
7001 esac
7002 ;;
7004 interix[3-9]*)
7005 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7006 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7007 ;;
7009 irix5* | irix6* | nonstopux*)
7010 case $LD in
7011 *-32|*"-32 ") libmagic=32-bit;;
7012 *-n32|*"-n32 ") libmagic=N32;;
7013 *-64|*"-64 ") libmagic=64-bit;;
7014 *) libmagic=never-match;;
7015 esac
7016 lt_cv_deplibs_check_method=pass_all
7017 ;;
7019 # This must be Linux ELF.
7020 linux* | k*bsd*-gnu)
7021 lt_cv_deplibs_check_method=pass_all
7022 ;;
7024 netbsd*)
7025 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7026 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7027 else
7028 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7029 fi
7030 ;;
7032 newos6*)
7033 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7034 lt_cv_file_magic_cmd=/usr/bin/file
7035 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7036 ;;
7038 *nto* | *qnx*)
7039 lt_cv_deplibs_check_method=pass_all
7040 ;;
7042 openbsd*)
7043 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7044 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7045 else
7046 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7047 fi
7048 ;;
7050 osf3* | osf4* | osf5*)
7051 lt_cv_deplibs_check_method=pass_all
7052 ;;
7054 rdos*)
7055 lt_cv_deplibs_check_method=pass_all
7056 ;;
7058 solaris*)
7059 lt_cv_deplibs_check_method=pass_all
7060 ;;
7062 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7063 lt_cv_deplibs_check_method=pass_all
7064 ;;
7066 sysv4 | sysv4.3*)
7067 case $host_vendor in
7068 motorola)
7069 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]'
7070 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7071 ;;
7072 ncr)
7073 lt_cv_deplibs_check_method=pass_all
7074 ;;
7075 sequent)
7076 lt_cv_file_magic_cmd='/bin/file'
7077 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7078 ;;
7079 sni)
7080 lt_cv_file_magic_cmd='/bin/file'
7081 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7082 lt_cv_file_magic_test_file=/lib/libc.so
7083 ;;
7084 siemens)
7085 lt_cv_deplibs_check_method=pass_all
7086 ;;
7087 pc)
7088 lt_cv_deplibs_check_method=pass_all
7089 ;;
7090 esac
7091 ;;
7093 tpf*)
7094 lt_cv_deplibs_check_method=pass_all
7095 ;;
7096 esac
7098 fi
7099 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
7100 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7101 file_magic_cmd=$lt_cv_file_magic_cmd
7102 deplibs_check_method=$lt_cv_deplibs_check_method
7103 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7116 if test -n "$ac_tool_prefix"; then
7117 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7118 set dummy ${ac_tool_prefix}ar; ac_word=$2
7119 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7120 $as_echo_n "checking for $ac_word... " >&6; }
7121 if test "${ac_cv_prog_AR+set}" = set; then
7122 $as_echo_n "(cached) " >&6
7123 else
7124 if test -n "$AR"; then
7125 ac_cv_prog_AR="$AR" # Let the user override the test.
7126 else
7127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7128 for as_dir in $PATH
7129 do
7130 IFS=$as_save_IFS
7131 test -z "$as_dir" && as_dir=.
7132 for ac_exec_ext in '' $ac_executable_extensions; do
7133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7134 ac_cv_prog_AR="${ac_tool_prefix}ar"
7135 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7136 break 2
7137 fi
7138 done
7139 done
7140 IFS=$as_save_IFS
7142 fi
7143 fi
7144 AR=$ac_cv_prog_AR
7145 if test -n "$AR"; then
7146 { $as_echo "$as_me:$LINENO: result: $AR" >&5
7147 $as_echo "$AR" >&6; }
7148 else
7149 { $as_echo "$as_me:$LINENO: result: no" >&5
7150 $as_echo "no" >&6; }
7151 fi
7154 fi
7155 if test -z "$ac_cv_prog_AR"; then
7156 ac_ct_AR=$AR
7157 # Extract the first word of "ar", so it can be a program name with args.
7158 set dummy ar; ac_word=$2
7159 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7160 $as_echo_n "checking for $ac_word... " >&6; }
7161 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7162 $as_echo_n "(cached) " >&6
7163 else
7164 if test -n "$ac_ct_AR"; then
7165 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7166 else
7167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7168 for as_dir in $PATH
7169 do
7170 IFS=$as_save_IFS
7171 test -z "$as_dir" && as_dir=.
7172 for ac_exec_ext in '' $ac_executable_extensions; do
7173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7174 ac_cv_prog_ac_ct_AR="ar"
7175 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7176 break 2
7177 fi
7178 done
7179 done
7180 IFS=$as_save_IFS
7182 fi
7183 fi
7184 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7185 if test -n "$ac_ct_AR"; then
7186 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7187 $as_echo "$ac_ct_AR" >&6; }
7188 else
7189 { $as_echo "$as_me:$LINENO: result: no" >&5
7190 $as_echo "no" >&6; }
7191 fi
7193 if test "x$ac_ct_AR" = x; then
7194 AR="false"
7195 else
7196 case $cross_compiling:$ac_tool_warned in
7197 yes:)
7198 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7199 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7200 ac_tool_warned=yes ;;
7201 esac
7202 AR=$ac_ct_AR
7203 fi
7204 else
7205 AR="$ac_cv_prog_AR"
7206 fi
7208 test -z "$AR" && AR=ar
7209 test -z "$AR_FLAGS" && AR_FLAGS=cru
7221 if test -n "$ac_tool_prefix"; then
7222 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7223 set dummy ${ac_tool_prefix}strip; ac_word=$2
7224 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7225 $as_echo_n "checking for $ac_word... " >&6; }
7226 if test "${ac_cv_prog_STRIP+set}" = set; then
7227 $as_echo_n "(cached) " >&6
7228 else
7229 if test -n "$STRIP"; then
7230 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7231 else
7232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7233 for as_dir in $PATH
7234 do
7235 IFS=$as_save_IFS
7236 test -z "$as_dir" && as_dir=.
7237 for ac_exec_ext in '' $ac_executable_extensions; do
7238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7239 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7240 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7241 break 2
7242 fi
7243 done
7244 done
7245 IFS=$as_save_IFS
7247 fi
7248 fi
7249 STRIP=$ac_cv_prog_STRIP
7250 if test -n "$STRIP"; then
7251 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
7252 $as_echo "$STRIP" >&6; }
7253 else
7254 { $as_echo "$as_me:$LINENO: result: no" >&5
7255 $as_echo "no" >&6; }
7256 fi
7259 fi
7260 if test -z "$ac_cv_prog_STRIP"; then
7261 ac_ct_STRIP=$STRIP
7262 # Extract the first word of "strip", so it can be a program name with args.
7263 set dummy strip; ac_word=$2
7264 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7265 $as_echo_n "checking for $ac_word... " >&6; }
7266 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7267 $as_echo_n "(cached) " >&6
7268 else
7269 if test -n "$ac_ct_STRIP"; then
7270 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7271 else
7272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7273 for as_dir in $PATH
7274 do
7275 IFS=$as_save_IFS
7276 test -z "$as_dir" && as_dir=.
7277 for ac_exec_ext in '' $ac_executable_extensions; do
7278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7279 ac_cv_prog_ac_ct_STRIP="strip"
7280 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7281 break 2
7282 fi
7283 done
7284 done
7285 IFS=$as_save_IFS
7287 fi
7288 fi
7289 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7290 if test -n "$ac_ct_STRIP"; then
7291 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7292 $as_echo "$ac_ct_STRIP" >&6; }
7293 else
7294 { $as_echo "$as_me:$LINENO: result: no" >&5
7295 $as_echo "no" >&6; }
7296 fi
7298 if test "x$ac_ct_STRIP" = x; then
7299 STRIP=":"
7300 else
7301 case $cross_compiling:$ac_tool_warned in
7302 yes:)
7303 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7304 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7305 ac_tool_warned=yes ;;
7306 esac
7307 STRIP=$ac_ct_STRIP
7308 fi
7309 else
7310 STRIP="$ac_cv_prog_STRIP"
7311 fi
7313 test -z "$STRIP" && STRIP=:
7320 if test -n "$ac_tool_prefix"; then
7321 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7322 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7323 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7324 $as_echo_n "checking for $ac_word... " >&6; }
7325 if test "${ac_cv_prog_RANLIB+set}" = set; then
7326 $as_echo_n "(cached) " >&6
7327 else
7328 if test -n "$RANLIB"; then
7329 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7330 else
7331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7332 for as_dir in $PATH
7333 do
7334 IFS=$as_save_IFS
7335 test -z "$as_dir" && as_dir=.
7336 for ac_exec_ext in '' $ac_executable_extensions; do
7337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7338 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7339 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7340 break 2
7341 fi
7342 done
7343 done
7344 IFS=$as_save_IFS
7346 fi
7347 fi
7348 RANLIB=$ac_cv_prog_RANLIB
7349 if test -n "$RANLIB"; then
7350 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
7351 $as_echo "$RANLIB" >&6; }
7352 else
7353 { $as_echo "$as_me:$LINENO: result: no" >&5
7354 $as_echo "no" >&6; }
7355 fi
7358 fi
7359 if test -z "$ac_cv_prog_RANLIB"; then
7360 ac_ct_RANLIB=$RANLIB
7361 # Extract the first word of "ranlib", so it can be a program name with args.
7362 set dummy ranlib; ac_word=$2
7363 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7364 $as_echo_n "checking for $ac_word... " >&6; }
7365 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7366 $as_echo_n "(cached) " >&6
7367 else
7368 if test -n "$ac_ct_RANLIB"; then
7369 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7370 else
7371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7372 for as_dir in $PATH
7373 do
7374 IFS=$as_save_IFS
7375 test -z "$as_dir" && as_dir=.
7376 for ac_exec_ext in '' $ac_executable_extensions; do
7377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7378 ac_cv_prog_ac_ct_RANLIB="ranlib"
7379 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7380 break 2
7381 fi
7382 done
7383 done
7384 IFS=$as_save_IFS
7386 fi
7387 fi
7388 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7389 if test -n "$ac_ct_RANLIB"; then
7390 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7391 $as_echo "$ac_ct_RANLIB" >&6; }
7392 else
7393 { $as_echo "$as_me:$LINENO: result: no" >&5
7394 $as_echo "no" >&6; }
7395 fi
7397 if test "x$ac_ct_RANLIB" = x; then
7398 RANLIB=":"
7399 else
7400 case $cross_compiling:$ac_tool_warned in
7401 yes:)
7402 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7403 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7404 ac_tool_warned=yes ;;
7405 esac
7406 RANLIB=$ac_ct_RANLIB
7407 fi
7408 else
7409 RANLIB="$ac_cv_prog_RANLIB"
7410 fi
7412 test -z "$RANLIB" && RANLIB=:
7419 # Determine commands to create old-style static archives.
7420 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7421 old_postinstall_cmds='chmod 644 $oldlib'
7422 old_postuninstall_cmds=
7424 if test -n "$RANLIB"; then
7425 case $host_os in
7426 openbsd*)
7427 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7428 ;;
7429 *)
7430 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7431 ;;
7432 esac
7433 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7434 fi
7469 # If no C compiler was specified, use CC.
7470 LTCC=${LTCC-"$CC"}
7472 # If no C compiler flags were specified, use CFLAGS.
7473 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7475 # Allow CC to be a program name with arguments.
7476 compiler=$CC
7479 # Check for command to grab the raw symbol name followed by C symbol from nm.
7480 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7481 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7482 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7483 $as_echo_n "(cached) " >&6
7484 else
7486 # These are sane defaults that work on at least a few old systems.
7487 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7489 # Character class describing NM global symbol codes.
7490 symcode='[BCDEGRST]'
7492 # Regexp to match symbols that can be accessed directly from C.
7493 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7495 # Define system-specific variables.
7496 case $host_os in
7497 aix*)
7498 symcode='[BCDT]'
7499 ;;
7500 cygwin* | mingw* | pw32* | cegcc*)
7501 symcode='[ABCDGISTW]'
7502 ;;
7503 hpux*)
7504 if test "$host_cpu" = ia64; then
7505 symcode='[ABCDEGRST]'
7506 fi
7507 ;;
7508 irix* | nonstopux*)
7509 symcode='[BCDEGRST]'
7510 ;;
7511 osf*)
7512 symcode='[BCDEGQRST]'
7513 ;;
7514 solaris*)
7515 symcode='[BDRT]'
7516 ;;
7517 sco3.2v5*)
7518 symcode='[DT]'
7519 ;;
7520 sysv4.2uw2*)
7521 symcode='[DT]'
7522 ;;
7523 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7524 symcode='[ABDT]'
7525 ;;
7526 sysv4)
7527 symcode='[DFNSTU]'
7528 ;;
7529 esac
7531 # If we're using GNU nm, then use its standard symbol codes.
7532 case `$NM -V 2>&1` in
7533 *GNU* | *'with BFD'*)
7534 symcode='[ABCDGIRSTW]' ;;
7535 esac
7537 # Transform an extracted symbol line into a proper C declaration.
7538 # Some systems (esp. on ia64) link data and code symbols differently,
7539 # so use this general approach.
7540 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7542 # Transform an extracted symbol line into symbol name and symbol address
7543 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7544 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
7546 # Handle CRLF in mingw tool chain
7547 opt_cr=
7548 case $build_os in
7549 mingw*)
7550 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7551 ;;
7552 esac
7554 # Try without a prefix underscore, then with it.
7555 for ac_symprfx in "" "_"; do
7557 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7558 symxfrm="\\1 $ac_symprfx\\2 \\2"
7560 # Write the raw and C identifiers.
7561 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7562 # Fake it for dumpbin and say T for any non-static function
7563 # and D for any global variable.
7564 # Also find C++ and __fastcall symbols from MSVC++,
7565 # which start with @ or ?.
7566 lt_cv_sys_global_symbol_pipe="$AWK '"\
7567 " {last_section=section; section=\$ 3};"\
7568 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7569 " \$ 0!~/External *\|/{next};"\
7570 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7571 " {if(hide[section]) next};"\
7572 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7573 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7574 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7575 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7576 " ' prfx=^$ac_symprfx"
7577 else
7578 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7579 fi
7581 # Check to see that the pipe works correctly.
7582 pipe_works=no
7584 rm -f conftest*
7585 cat > conftest.$ac_ext <<_LT_EOF
7586 #ifdef __cplusplus
7587 extern "C" {
7588 #endif
7589 char nm_test_var;
7590 void nm_test_func(void);
7591 void nm_test_func(void){}
7592 #ifdef __cplusplus
7593 }
7594 #endif
7595 int main(){nm_test_var='a';nm_test_func();return(0);}
7596 _LT_EOF
7598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7599 (eval $ac_compile) 2>&5
7600 ac_status=$?
7601 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7602 (exit $ac_status); }; then
7603 # Now try to grab the symbols.
7604 nlist=conftest.nm
7605 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7606 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7607 ac_status=$?
7608 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7609 (exit $ac_status); } && test -s "$nlist"; then
7610 # Try sorting and uniquifying the output.
7611 if sort "$nlist" | uniq > "$nlist"T; then
7612 mv -f "$nlist"T "$nlist"
7613 else
7614 rm -f "$nlist"T
7615 fi
7617 # Make sure that we snagged all the symbols we need.
7618 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7619 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7620 cat <<_LT_EOF > conftest.$ac_ext
7621 #ifdef __cplusplus
7622 extern "C" {
7623 #endif
7625 _LT_EOF
7626 # Now generate the symbol file.
7627 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7629 cat <<_LT_EOF >> conftest.$ac_ext
7631 /* The mapping between symbol names and symbols. */
7632 const struct {
7633 const char *name;
7634 void *address;
7635 }
7636 lt__PROGRAM__LTX_preloaded_symbols[] =
7637 {
7638 { "@PROGRAM@", (void *) 0 },
7639 _LT_EOF
7640 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7641 cat <<\_LT_EOF >> conftest.$ac_ext
7642 {0, (void *) 0}
7643 };
7645 /* This works around a problem in FreeBSD linker */
7646 #ifdef FREEBSD_WORKAROUND
7647 static const void *lt_preloaded_setup() {
7648 return lt__PROGRAM__LTX_preloaded_symbols;
7649 }
7650 #endif
7652 #ifdef __cplusplus
7653 }
7654 #endif
7655 _LT_EOF
7656 # Now try linking the two files.
7657 mv conftest.$ac_objext conftstm.$ac_objext
7658 lt_save_LIBS="$LIBS"
7659 lt_save_CFLAGS="$CFLAGS"
7660 LIBS="conftstm.$ac_objext"
7661 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7663 (eval $ac_link) 2>&5
7664 ac_status=$?
7665 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7666 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7667 pipe_works=yes
7668 fi
7669 LIBS="$lt_save_LIBS"
7670 CFLAGS="$lt_save_CFLAGS"
7671 else
7672 echo "cannot find nm_test_func in $nlist" >&5
7673 fi
7674 else
7675 echo "cannot find nm_test_var in $nlist" >&5
7676 fi
7677 else
7678 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7679 fi
7680 else
7681 echo "$progname: failed program was:" >&5
7682 cat conftest.$ac_ext >&5
7683 fi
7684 rm -rf conftest* conftst*
7686 # Do not use the global_symbol_pipe unless it works.
7687 if test "$pipe_works" = yes; then
7688 break
7689 else
7690 lt_cv_sys_global_symbol_pipe=
7691 fi
7692 done
7694 fi
7696 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7697 lt_cv_sys_global_symbol_to_cdecl=
7698 fi
7699 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7700 { $as_echo "$as_me:$LINENO: result: failed" >&5
7701 $as_echo "failed" >&6; }
7702 else
7703 { $as_echo "$as_me:$LINENO: result: ok" >&5
7704 $as_echo "ok" >&6; }
7705 fi
7728 # Check whether --enable-libtool-lock was given.
7729 if test "${enable_libtool_lock+set}" = set; then
7730 enableval=$enable_libtool_lock;
7731 fi
7733 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7735 # Some flags need to be propagated to the compiler or linker for good
7736 # libtool support.
7737 case $host in
7738 ia64-*-hpux*)
7739 # Find out which ABI we are using.
7740 echo 'int i;' > conftest.$ac_ext
7741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7742 (eval $ac_compile) 2>&5
7743 ac_status=$?
7744 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7745 (exit $ac_status); }; then
7746 case `/usr/bin/file conftest.$ac_objext` in
7747 *ELF-32*)
7748 HPUX_IA64_MODE="32"
7749 ;;
7750 *ELF-64*)
7751 HPUX_IA64_MODE="64"
7752 ;;
7753 esac
7754 fi
7755 rm -rf conftest*
7756 ;;
7757 *-*-irix6*)
7758 # Find out which ABI we are using.
7759 echo '#line 7759 "configure"' > conftest.$ac_ext
7760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7761 (eval $ac_compile) 2>&5
7762 ac_status=$?
7763 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7764 (exit $ac_status); }; then
7765 if test "$lt_cv_prog_gnu_ld" = yes; then
7766 case `/usr/bin/file conftest.$ac_objext` in
7767 *32-bit*)
7768 LD="${LD-ld} -melf32bsmip"
7769 ;;
7770 *N32*)
7771 LD="${LD-ld} -melf32bmipn32"
7772 ;;
7773 *64-bit*)
7774 LD="${LD-ld} -melf64bmip"
7775 ;;
7776 esac
7777 else
7778 case `/usr/bin/file conftest.$ac_objext` in
7779 *32-bit*)
7780 LD="${LD-ld} -32"
7781 ;;
7782 *N32*)
7783 LD="${LD-ld} -n32"
7784 ;;
7785 *64-bit*)
7786 LD="${LD-ld} -64"
7787 ;;
7788 esac
7789 fi
7790 fi
7791 rm -rf conftest*
7792 ;;
7794 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7795 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7796 # Find out which ABI we are using.
7797 echo 'int i;' > conftest.$ac_ext
7798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7799 (eval $ac_compile) 2>&5
7800 ac_status=$?
7801 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7802 (exit $ac_status); }; then
7803 case `/usr/bin/file conftest.o` in
7804 *32-bit*)
7805 case $host in
7806 x86_64-*kfreebsd*-gnu)
7807 LD="${LD-ld} -m elf_i386_fbsd"
7808 ;;
7809 x86_64-*linux*)
7810 LD="${LD-ld} -m elf_i386"
7811 ;;
7812 ppc64-*linux*|powerpc64-*linux*)
7813 LD="${LD-ld} -m elf32ppclinux"
7814 ;;
7815 s390x-*linux*)
7816 LD="${LD-ld} -m elf_s390"
7817 ;;
7818 sparc64-*linux*)
7819 LD="${LD-ld} -m elf32_sparc"
7820 ;;
7821 esac
7822 ;;
7823 *64-bit*)
7824 case $host in
7825 x86_64-*kfreebsd*-gnu)
7826 LD="${LD-ld} -m elf_x86_64_fbsd"
7827 ;;
7828 x86_64-*linux*)
7829 LD="${LD-ld} -m elf_x86_64"
7830 ;;
7831 ppc*-*linux*|powerpc*-*linux*)
7832 LD="${LD-ld} -m elf64ppc"
7833 ;;
7834 s390*-*linux*|s390*-*tpf*)
7835 LD="${LD-ld} -m elf64_s390"
7836 ;;
7837 sparc*-*linux*)
7838 LD="${LD-ld} -m elf64_sparc"
7839 ;;
7840 esac
7841 ;;
7842 esac
7843 fi
7844 rm -rf conftest*
7845 ;;
7847 *-*-sco3.2v5*)
7848 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7849 SAVE_CFLAGS="$CFLAGS"
7850 CFLAGS="$CFLAGS -belf"
7851 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7852 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7853 if test "${lt_cv_cc_needs_belf+set}" = set; then
7854 $as_echo_n "(cached) " >&6
7855 else
7856 ac_ext=c
7857 ac_cpp='$CPP $CPPFLAGS'
7858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7862 cat >conftest.$ac_ext <<_ACEOF
7863 /* confdefs.h. */
7864 _ACEOF
7865 cat confdefs.h >>conftest.$ac_ext
7866 cat >>conftest.$ac_ext <<_ACEOF
7867 /* end confdefs.h. */
7869 int
7870 main ()
7871 {
7873 ;
7874 return 0;
7875 }
7876 _ACEOF
7877 rm -f conftest.$ac_objext conftest$ac_exeext
7878 if { (ac_try="$ac_link"
7879 case "(($ac_try" in
7880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7881 *) ac_try_echo=$ac_try;;
7882 esac
7883 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7884 $as_echo "$ac_try_echo") >&5
7885 (eval "$ac_link") 2>conftest.er1
7886 ac_status=$?
7887 grep -v '^ *+' conftest.er1 >conftest.err
7888 rm -f conftest.er1
7889 cat conftest.err >&5
7890 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7891 (exit $ac_status); } && {
7892 test -z "$ac_c_werror_flag" ||
7893 test ! -s conftest.err
7894 } && test -s conftest$ac_exeext && {
7895 test "$cross_compiling" = yes ||
7896 $as_test_x conftest$ac_exeext
7897 }; then
7898 lt_cv_cc_needs_belf=yes
7899 else
7900 $as_echo "$as_me: failed program was:" >&5
7901 sed 's/^/| /' conftest.$ac_ext >&5
7903 lt_cv_cc_needs_belf=no
7904 fi
7906 rm -rf conftest.dSYM
7907 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7908 conftest$ac_exeext conftest.$ac_ext
7909 ac_ext=c
7910 ac_cpp='$CPP $CPPFLAGS'
7911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7915 fi
7916 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7917 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7918 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7919 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7920 CFLAGS="$SAVE_CFLAGS"
7921 fi
7922 ;;
7923 sparc*-*solaris*)
7924 # Find out which ABI we are using.
7925 echo 'int i;' > conftest.$ac_ext
7926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7927 (eval $ac_compile) 2>&5
7928 ac_status=$?
7929 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7930 (exit $ac_status); }; then
7931 case `/usr/bin/file conftest.o` in
7932 *64-bit*)
7933 case $lt_cv_prog_gnu_ld in
7934 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7935 *)
7936 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7937 LD="${LD-ld} -64"
7938 fi
7939 ;;
7940 esac
7941 ;;
7942 esac
7943 fi
7944 rm -rf conftest*
7945 ;;
7946 esac
7948 need_locks="$enable_libtool_lock"
7951 case $host_os in
7952 rhapsody* | darwin*)
7953 if test -n "$ac_tool_prefix"; then
7954 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7955 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7956 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7957 $as_echo_n "checking for $ac_word... " >&6; }
7958 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7959 $as_echo_n "(cached) " >&6
7960 else
7961 if test -n "$DSYMUTIL"; then
7962 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7963 else
7964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7965 for as_dir in $PATH
7966 do
7967 IFS=$as_save_IFS
7968 test -z "$as_dir" && as_dir=.
7969 for ac_exec_ext in '' $ac_executable_extensions; do
7970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7971 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7972 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7973 break 2
7974 fi
7975 done
7976 done
7977 IFS=$as_save_IFS
7979 fi
7980 fi
7981 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7982 if test -n "$DSYMUTIL"; then
7983 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7984 $as_echo "$DSYMUTIL" >&6; }
7985 else
7986 { $as_echo "$as_me:$LINENO: result: no" >&5
7987 $as_echo "no" >&6; }
7988 fi
7991 fi
7992 if test -z "$ac_cv_prog_DSYMUTIL"; then
7993 ac_ct_DSYMUTIL=$DSYMUTIL
7994 # Extract the first word of "dsymutil", so it can be a program name with args.
7995 set dummy dsymutil; ac_word=$2
7996 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7997 $as_echo_n "checking for $ac_word... " >&6; }
7998 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7999 $as_echo_n "(cached) " >&6
8000 else
8001 if test -n "$ac_ct_DSYMUTIL"; then
8002 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8003 else
8004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8005 for as_dir in $PATH
8006 do
8007 IFS=$as_save_IFS
8008 test -z "$as_dir" && as_dir=.
8009 for ac_exec_ext in '' $ac_executable_extensions; do
8010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8011 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8012 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8013 break 2
8014 fi
8015 done
8016 done
8017 IFS=$as_save_IFS
8019 fi
8020 fi
8021 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8022 if test -n "$ac_ct_DSYMUTIL"; then
8023 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
8024 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8025 else
8026 { $as_echo "$as_me:$LINENO: result: no" >&5
8027 $as_echo "no" >&6; }
8028 fi
8030 if test "x$ac_ct_DSYMUTIL" = x; then
8031 DSYMUTIL=":"
8032 else
8033 case $cross_compiling:$ac_tool_warned in
8034 yes:)
8035 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8036 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8037 ac_tool_warned=yes ;;
8038 esac
8039 DSYMUTIL=$ac_ct_DSYMUTIL
8040 fi
8041 else
8042 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8043 fi
8045 if test -n "$ac_tool_prefix"; then
8046 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8047 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8048 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8049 $as_echo_n "checking for $ac_word... " >&6; }
8050 if test "${ac_cv_prog_NMEDIT+set}" = set; then
8051 $as_echo_n "(cached) " >&6
8052 else
8053 if test -n "$NMEDIT"; then
8054 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8055 else
8056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8057 for as_dir in $PATH
8058 do
8059 IFS=$as_save_IFS
8060 test -z "$as_dir" && as_dir=.
8061 for ac_exec_ext in '' $ac_executable_extensions; do
8062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8063 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8064 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8065 break 2
8066 fi
8067 done
8068 done
8069 IFS=$as_save_IFS
8071 fi
8072 fi
8073 NMEDIT=$ac_cv_prog_NMEDIT
8074 if test -n "$NMEDIT"; then
8075 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
8076 $as_echo "$NMEDIT" >&6; }
8077 else
8078 { $as_echo "$as_me:$LINENO: result: no" >&5
8079 $as_echo "no" >&6; }
8080 fi
8083 fi
8084 if test -z "$ac_cv_prog_NMEDIT"; then
8085 ac_ct_NMEDIT=$NMEDIT
8086 # Extract the first word of "nmedit", so it can be a program name with args.
8087 set dummy nmedit; ac_word=$2
8088 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8089 $as_echo_n "checking for $ac_word... " >&6; }
8090 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
8091 $as_echo_n "(cached) " >&6
8092 else
8093 if test -n "$ac_ct_NMEDIT"; then
8094 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8095 else
8096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8097 for as_dir in $PATH
8098 do
8099 IFS=$as_save_IFS
8100 test -z "$as_dir" && as_dir=.
8101 for ac_exec_ext in '' $ac_executable_extensions; do
8102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8103 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8104 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8105 break 2
8106 fi
8107 done
8108 done
8109 IFS=$as_save_IFS
8111 fi
8112 fi
8113 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8114 if test -n "$ac_ct_NMEDIT"; then
8115 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
8116 $as_echo "$ac_ct_NMEDIT" >&6; }
8117 else
8118 { $as_echo "$as_me:$LINENO: result: no" >&5
8119 $as_echo "no" >&6; }
8120 fi
8122 if test "x$ac_ct_NMEDIT" = x; then
8123 NMEDIT=":"
8124 else
8125 case $cross_compiling:$ac_tool_warned in
8126 yes:)
8127 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8128 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8129 ac_tool_warned=yes ;;
8130 esac
8131 NMEDIT=$ac_ct_NMEDIT
8132 fi
8133 else
8134 NMEDIT="$ac_cv_prog_NMEDIT"
8135 fi
8137 if test -n "$ac_tool_prefix"; then
8138 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8139 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8140 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8141 $as_echo_n "checking for $ac_word... " >&6; }
8142 if test "${ac_cv_prog_LIPO+set}" = set; then
8143 $as_echo_n "(cached) " >&6
8144 else
8145 if test -n "$LIPO"; then
8146 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8147 else
8148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8149 for as_dir in $PATH
8150 do
8151 IFS=$as_save_IFS
8152 test -z "$as_dir" && as_dir=.
8153 for ac_exec_ext in '' $ac_executable_extensions; do
8154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8155 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8156 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8157 break 2
8158 fi
8159 done
8160 done
8161 IFS=$as_save_IFS
8163 fi
8164 fi
8165 LIPO=$ac_cv_prog_LIPO
8166 if test -n "$LIPO"; then
8167 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
8168 $as_echo "$LIPO" >&6; }
8169 else
8170 { $as_echo "$as_me:$LINENO: result: no" >&5
8171 $as_echo "no" >&6; }
8172 fi
8175 fi
8176 if test -z "$ac_cv_prog_LIPO"; then
8177 ac_ct_LIPO=$LIPO
8178 # Extract the first word of "lipo", so it can be a program name with args.
8179 set dummy lipo; ac_word=$2
8180 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8181 $as_echo_n "checking for $ac_word... " >&6; }
8182 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
8183 $as_echo_n "(cached) " >&6
8184 else
8185 if test -n "$ac_ct_LIPO"; then
8186 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8187 else
8188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8189 for as_dir in $PATH
8190 do
8191 IFS=$as_save_IFS
8192 test -z "$as_dir" && as_dir=.
8193 for ac_exec_ext in '' $ac_executable_extensions; do
8194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8195 ac_cv_prog_ac_ct_LIPO="lipo"
8196 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8197 break 2
8198 fi
8199 done
8200 done
8201 IFS=$as_save_IFS
8203 fi
8204 fi
8205 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8206 if test -n "$ac_ct_LIPO"; then
8207 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
8208 $as_echo "$ac_ct_LIPO" >&6; }
8209 else
8210 { $as_echo "$as_me:$LINENO: result: no" >&5
8211 $as_echo "no" >&6; }
8212 fi
8214 if test "x$ac_ct_LIPO" = x; then
8215 LIPO=":"
8216 else
8217 case $cross_compiling:$ac_tool_warned in
8218 yes:)
8219 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8220 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8221 ac_tool_warned=yes ;;
8222 esac
8223 LIPO=$ac_ct_LIPO
8224 fi
8225 else
8226 LIPO="$ac_cv_prog_LIPO"
8227 fi
8229 if test -n "$ac_tool_prefix"; then
8230 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8231 set dummy ${ac_tool_prefix}otool; ac_word=$2
8232 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8233 $as_echo_n "checking for $ac_word... " >&6; }
8234 if test "${ac_cv_prog_OTOOL+set}" = set; then
8235 $as_echo_n "(cached) " >&6
8236 else
8237 if test -n "$OTOOL"; then
8238 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8239 else
8240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8241 for as_dir in $PATH
8242 do
8243 IFS=$as_save_IFS
8244 test -z "$as_dir" && as_dir=.
8245 for ac_exec_ext in '' $ac_executable_extensions; do
8246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8247 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8248 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8249 break 2
8250 fi
8251 done
8252 done
8253 IFS=$as_save_IFS
8255 fi
8256 fi
8257 OTOOL=$ac_cv_prog_OTOOL
8258 if test -n "$OTOOL"; then
8259 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
8260 $as_echo "$OTOOL" >&6; }
8261 else
8262 { $as_echo "$as_me:$LINENO: result: no" >&5
8263 $as_echo "no" >&6; }
8264 fi
8267 fi
8268 if test -z "$ac_cv_prog_OTOOL"; then
8269 ac_ct_OTOOL=$OTOOL
8270 # Extract the first word of "otool", so it can be a program name with args.
8271 set dummy otool; ac_word=$2
8272 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8273 $as_echo_n "checking for $ac_word... " >&6; }
8274 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
8275 $as_echo_n "(cached) " >&6
8276 else
8277 if test -n "$ac_ct_OTOOL"; then
8278 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8279 else
8280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8281 for as_dir in $PATH
8282 do
8283 IFS=$as_save_IFS
8284 test -z "$as_dir" && as_dir=.
8285 for ac_exec_ext in '' $ac_executable_extensions; do
8286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8287 ac_cv_prog_ac_ct_OTOOL="otool"
8288 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8289 break 2
8290 fi
8291 done
8292 done
8293 IFS=$as_save_IFS
8295 fi
8296 fi
8297 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8298 if test -n "$ac_ct_OTOOL"; then
8299 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
8300 $as_echo "$ac_ct_OTOOL" >&6; }
8301 else
8302 { $as_echo "$as_me:$LINENO: result: no" >&5
8303 $as_echo "no" >&6; }
8304 fi
8306 if test "x$ac_ct_OTOOL" = x; then
8307 OTOOL=":"
8308 else
8309 case $cross_compiling:$ac_tool_warned in
8310 yes:)
8311 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8312 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8313 ac_tool_warned=yes ;;
8314 esac
8315 OTOOL=$ac_ct_OTOOL
8316 fi
8317 else
8318 OTOOL="$ac_cv_prog_OTOOL"
8319 fi
8321 if test -n "$ac_tool_prefix"; then
8322 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8323 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8324 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8325 $as_echo_n "checking for $ac_word... " >&6; }
8326 if test "${ac_cv_prog_OTOOL64+set}" = set; then
8327 $as_echo_n "(cached) " >&6
8328 else
8329 if test -n "$OTOOL64"; then
8330 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8331 else
8332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8333 for as_dir in $PATH
8334 do
8335 IFS=$as_save_IFS
8336 test -z "$as_dir" && as_dir=.
8337 for ac_exec_ext in '' $ac_executable_extensions; do
8338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8339 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8340 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8341 break 2
8342 fi
8343 done
8344 done
8345 IFS=$as_save_IFS
8347 fi
8348 fi
8349 OTOOL64=$ac_cv_prog_OTOOL64
8350 if test -n "$OTOOL64"; then
8351 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
8352 $as_echo "$OTOOL64" >&6; }
8353 else
8354 { $as_echo "$as_me:$LINENO: result: no" >&5
8355 $as_echo "no" >&6; }
8356 fi
8359 fi
8360 if test -z "$ac_cv_prog_OTOOL64"; then
8361 ac_ct_OTOOL64=$OTOOL64
8362 # Extract the first word of "otool64", so it can be a program name with args.
8363 set dummy otool64; ac_word=$2
8364 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8365 $as_echo_n "checking for $ac_word... " >&6; }
8366 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
8367 $as_echo_n "(cached) " >&6
8368 else
8369 if test -n "$ac_ct_OTOOL64"; then
8370 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8371 else
8372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8373 for as_dir in $PATH
8374 do
8375 IFS=$as_save_IFS
8376 test -z "$as_dir" && as_dir=.
8377 for ac_exec_ext in '' $ac_executable_extensions; do
8378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8379 ac_cv_prog_ac_ct_OTOOL64="otool64"
8380 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8381 break 2
8382 fi
8383 done
8384 done
8385 IFS=$as_save_IFS
8387 fi
8388 fi
8389 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8390 if test -n "$ac_ct_OTOOL64"; then
8391 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
8392 $as_echo "$ac_ct_OTOOL64" >&6; }
8393 else
8394 { $as_echo "$as_me:$LINENO: result: no" >&5
8395 $as_echo "no" >&6; }
8396 fi
8398 if test "x$ac_ct_OTOOL64" = x; then
8399 OTOOL64=":"
8400 else
8401 case $cross_compiling:$ac_tool_warned in
8402 yes:)
8403 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8404 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8405 ac_tool_warned=yes ;;
8406 esac
8407 OTOOL64=$ac_ct_OTOOL64
8408 fi
8409 else
8410 OTOOL64="$ac_cv_prog_OTOOL64"
8411 fi
8439 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
8440 $as_echo_n "checking for -single_module linker flag... " >&6; }
8441 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
8442 $as_echo_n "(cached) " >&6
8443 else
8444 lt_cv_apple_cc_single_mod=no
8445 if test -z "${LT_MULTI_MODULE}"; then
8446 # By default we will add the -single_module flag. You can override
8447 # by either setting the environment variable LT_MULTI_MODULE
8448 # non-empty at configure time, or by adding -multi_module to the
8449 # link flags.
8450 rm -rf libconftest.dylib*
8451 echo "int foo(void){return 1;}" > conftest.c
8452 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8453 -dynamiclib -Wl,-single_module conftest.c" >&5
8454 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8455 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8456 _lt_result=$?
8457 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8458 lt_cv_apple_cc_single_mod=yes
8459 else
8460 cat conftest.err >&5
8461 fi
8462 rm -rf libconftest.dylib*
8463 rm -f conftest.*
8464 fi
8465 fi
8466 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
8467 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8468 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
8469 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8470 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
8471 $as_echo_n "(cached) " >&6
8472 else
8473 lt_cv_ld_exported_symbols_list=no
8474 save_LDFLAGS=$LDFLAGS
8475 echo "_main" > conftest.sym
8476 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8477 cat >conftest.$ac_ext <<_ACEOF
8478 /* confdefs.h. */
8479 _ACEOF
8480 cat confdefs.h >>conftest.$ac_ext
8481 cat >>conftest.$ac_ext <<_ACEOF
8482 /* end confdefs.h. */
8484 int
8485 main ()
8486 {
8488 ;
8489 return 0;
8490 }
8491 _ACEOF
8492 rm -f conftest.$ac_objext conftest$ac_exeext
8493 if { (ac_try="$ac_link"
8494 case "(($ac_try" in
8495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8496 *) ac_try_echo=$ac_try;;
8497 esac
8498 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8499 $as_echo "$ac_try_echo") >&5
8500 (eval "$ac_link") 2>conftest.er1
8501 ac_status=$?
8502 grep -v '^ *+' conftest.er1 >conftest.err
8503 rm -f conftest.er1
8504 cat conftest.err >&5
8505 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8506 (exit $ac_status); } && {
8507 test -z "$ac_c_werror_flag" ||
8508 test ! -s conftest.err
8509 } && test -s conftest$ac_exeext && {
8510 test "$cross_compiling" = yes ||
8511 $as_test_x conftest$ac_exeext
8512 }; then
8513 lt_cv_ld_exported_symbols_list=yes
8514 else
8515 $as_echo "$as_me: failed program was:" >&5
8516 sed 's/^/| /' conftest.$ac_ext >&5
8518 lt_cv_ld_exported_symbols_list=no
8519 fi
8521 rm -rf conftest.dSYM
8522 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8523 conftest$ac_exeext conftest.$ac_ext
8524 LDFLAGS="$save_LDFLAGS"
8526 fi
8527 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
8528 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8529 case $host_os in
8530 rhapsody* | darwin1.[012])
8531 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8532 darwin1.*)
8533 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8534 darwin*) # darwin 5.x on
8535 # if running on 10.5 or later, the deployment target defaults
8536 # to the OS version, if on x86, and 10.4, the deployment
8537 # target defaults to 10.4. Don't you love it?
8538 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8539 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8540 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8541 10.[012]*)
8542 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8543 10.*)
8544 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8545 esac
8546 ;;
8547 esac
8548 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8549 _lt_dar_single_mod='$single_module'
8550 fi
8551 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8552 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8553 else
8554 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8555 fi
8556 if test "$DSYMUTIL" != ":"; then
8557 _lt_dsymutil='~$DSYMUTIL $lib || :'
8558 else
8559 _lt_dsymutil=
8560 fi
8561 ;;
8562 esac
8565 for ac_header in dlfcn.h
8566 do
8567 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8568 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8569 $as_echo_n "checking for $ac_header... " >&6; }
8570 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8571 $as_echo_n "(cached) " >&6
8572 else
8573 cat >conftest.$ac_ext <<_ACEOF
8574 /* confdefs.h. */
8575 _ACEOF
8576 cat confdefs.h >>conftest.$ac_ext
8577 cat >>conftest.$ac_ext <<_ACEOF
8578 /* end confdefs.h. */
8579 $ac_includes_default
8581 #include <$ac_header>
8582 _ACEOF
8583 rm -f conftest.$ac_objext
8584 if { (ac_try="$ac_compile"
8585 case "(($ac_try" in
8586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8587 *) ac_try_echo=$ac_try;;
8588 esac
8589 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8590 $as_echo "$ac_try_echo") >&5
8591 (eval "$ac_compile") 2>conftest.er1
8592 ac_status=$?
8593 grep -v '^ *+' conftest.er1 >conftest.err
8594 rm -f conftest.er1
8595 cat conftest.err >&5
8596 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8597 (exit $ac_status); } && {
8598 test -z "$ac_c_werror_flag" ||
8599 test ! -s conftest.err
8600 } && test -s conftest.$ac_objext; then
8601 eval "$as_ac_Header=yes"
8602 else
8603 $as_echo "$as_me: failed program was:" >&5
8604 sed 's/^/| /' conftest.$ac_ext >&5
8606 eval "$as_ac_Header=no"
8607 fi
8609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8610 fi
8611 ac_res=`eval 'as_val=${'$as_ac_Header'}
8612 $as_echo "$as_val"'`
8613 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8614 $as_echo "$ac_res" >&6; }
8615 as_val=`eval 'as_val=${'$as_ac_Header'}
8616 $as_echo "$as_val"'`
8617 if test "x$as_val" = x""yes; then
8618 cat >>confdefs.h <<_ACEOF
8619 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8620 _ACEOF
8622 fi
8624 done
8628 # Set options
8632 enable_dlopen=no
8635 enable_win32_dll=no
8638 # Check whether --enable-shared was given.
8639 if test "${enable_shared+set}" = set; then
8640 enableval=$enable_shared; p=${PACKAGE-default}
8641 case $enableval in
8642 yes) enable_shared=yes ;;
8643 no) enable_shared=no ;;
8644 *)
8645 enable_shared=no
8646 # Look at the argument we got. We use all the common list separators.
8647 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8648 for pkg in $enableval; do
8649 IFS="$lt_save_ifs"
8650 if test "X$pkg" = "X$p"; then
8651 enable_shared=yes
8652 fi
8653 done
8654 IFS="$lt_save_ifs"
8655 ;;
8656 esac
8657 else
8658 enable_shared=yes
8659 fi
8669 # Check whether --enable-static was given.
8670 if test "${enable_static+set}" = set; then
8671 enableval=$enable_static; p=${PACKAGE-default}
8672 case $enableval in
8673 yes) enable_static=yes ;;
8674 no) enable_static=no ;;
8675 *)
8676 enable_static=no
8677 # Look at the argument we got. We use all the common list separators.
8678 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8679 for pkg in $enableval; do
8680 IFS="$lt_save_ifs"
8681 if test "X$pkg" = "X$p"; then
8682 enable_static=yes
8683 fi
8684 done
8685 IFS="$lt_save_ifs"
8686 ;;
8687 esac
8688 else
8689 enable_static=yes
8690 fi
8701 # Check whether --with-pic was given.
8702 if test "${with_pic+set}" = set; then
8703 withval=$with_pic; pic_mode="$withval"
8704 else
8705 pic_mode=default
8706 fi
8709 test -z "$pic_mode" && pic_mode=default
8717 # Check whether --enable-fast-install was given.
8718 if test "${enable_fast_install+set}" = set; then
8719 enableval=$enable_fast_install; p=${PACKAGE-default}
8720 case $enableval in
8721 yes) enable_fast_install=yes ;;
8722 no) enable_fast_install=no ;;
8723 *)
8724 enable_fast_install=no
8725 # Look at the argument we got. We use all the common list separators.
8726 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8727 for pkg in $enableval; do
8728 IFS="$lt_save_ifs"
8729 if test "X$pkg" = "X$p"; then
8730 enable_fast_install=yes
8731 fi
8732 done
8733 IFS="$lt_save_ifs"
8734 ;;
8735 esac
8736 else
8737 enable_fast_install=yes
8738 fi
8750 # This can be used to rebuild libtool when needed
8751 LIBTOOL_DEPS="$ltmain"
8753 # Always use our own libtool.
8754 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8780 test -z "$LN_S" && LN_S="ln -s"
8795 if test -n "${ZSH_VERSION+set}" ; then
8796 setopt NO_GLOB_SUBST
8797 fi
8799 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
8800 $as_echo_n "checking for objdir... " >&6; }
8801 if test "${lt_cv_objdir+set}" = set; then
8802 $as_echo_n "(cached) " >&6
8803 else
8804 rm -f .libs 2>/dev/null
8805 mkdir .libs 2>/dev/null
8806 if test -d .libs; then
8807 lt_cv_objdir=.libs
8808 else
8809 # MS-DOS does not allow filenames that begin with a dot.
8810 lt_cv_objdir=_libs
8811 fi
8812 rmdir .libs 2>/dev/null
8813 fi
8814 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8815 $as_echo "$lt_cv_objdir" >&6; }
8816 objdir=$lt_cv_objdir
8822 cat >>confdefs.h <<_ACEOF
8823 #define LT_OBJDIR "$lt_cv_objdir/"
8824 _ACEOF
8842 case $host_os in
8843 aix3*)
8844 # AIX sometimes has problems with the GCC collect2 program. For some
8845 # reason, if we set the COLLECT_NAMES environment variable, the problems
8846 # vanish in a puff of smoke.
8847 if test "X${COLLECT_NAMES+set}" != Xset; then
8848 COLLECT_NAMES=
8849 export COLLECT_NAMES
8850 fi
8851 ;;
8852 esac
8854 # Sed substitution that helps us do robust quoting. It backslashifies
8855 # metacharacters that are still active within double-quoted strings.
8856 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8858 # Same as above, but do not quote variable references.
8859 double_quote_subst='s/\(["`\\]\)/\\\1/g'
8861 # Sed substitution to delay expansion of an escaped shell variable in a
8862 # double_quote_subst'ed string.
8863 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8865 # Sed substitution to delay expansion of an escaped single quote.
8866 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8868 # Sed substitution to avoid accidental globbing in evaled expressions
8869 no_glob_subst='s/\*/\\\*/g'
8871 # Global variables:
8872 ofile=libtool
8873 can_build_shared=yes
8875 # All known linkers require a `.a' archive for static linking (except MSVC,
8876 # which needs '.lib').
8877 libext=a
8879 with_gnu_ld="$lt_cv_prog_gnu_ld"
8881 old_CC="$CC"
8882 old_CFLAGS="$CFLAGS"
8884 # Set sane defaults for various variables
8885 test -z "$CC" && CC=cc
8886 test -z "$LTCC" && LTCC=$CC
8887 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8888 test -z "$LD" && LD=ld
8889 test -z "$ac_objext" && ac_objext=o
8891 for cc_temp in $compiler""; do
8892 case $cc_temp in
8893 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8894 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8895 \-*) ;;
8896 *) break;;
8897 esac
8898 done
8899 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8902 # Only perform the check for file, if the check method requires it
8903 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8904 case $deplibs_check_method in
8905 file_magic*)
8906 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8907 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8908 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8909 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8910 $as_echo_n "(cached) " >&6
8911 else
8912 case $MAGIC_CMD in
8913 [\\/*] | ?:[\\/]*)
8914 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8915 ;;
8916 *)
8917 lt_save_MAGIC_CMD="$MAGIC_CMD"
8918 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8919 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8920 for ac_dir in $ac_dummy; do
8921 IFS="$lt_save_ifs"
8922 test -z "$ac_dir" && ac_dir=.
8923 if test -f $ac_dir/${ac_tool_prefix}file; then
8924 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8925 if test -n "$file_magic_test_file"; then
8926 case $deplibs_check_method in
8927 "file_magic "*)
8928 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8929 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8930 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8931 $EGREP "$file_magic_regex" > /dev/null; then
8932 :
8933 else
8934 cat <<_LT_EOF 1>&2
8936 *** Warning: the command libtool uses to detect shared libraries,
8937 *** $file_magic_cmd, produces output that libtool cannot recognize.
8938 *** The result is that libtool may fail to recognize shared libraries
8939 *** as such. This will affect the creation of libtool libraries that
8940 *** depend on shared libraries, but programs linked with such libtool
8941 *** libraries will work regardless of this problem. Nevertheless, you
8942 *** may want to report the problem to your system manager and/or to
8943 *** bug-libtool@gnu.org
8945 _LT_EOF
8946 fi ;;
8947 esac
8948 fi
8949 break
8950 fi
8951 done
8952 IFS="$lt_save_ifs"
8953 MAGIC_CMD="$lt_save_MAGIC_CMD"
8954 ;;
8955 esac
8956 fi
8958 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8959 if test -n "$MAGIC_CMD"; then
8960 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8961 $as_echo "$MAGIC_CMD" >&6; }
8962 else
8963 { $as_echo "$as_me:$LINENO: result: no" >&5
8964 $as_echo "no" >&6; }
8965 fi
8971 if test -z "$lt_cv_path_MAGIC_CMD"; then
8972 if test -n "$ac_tool_prefix"; then
8973 { $as_echo "$as_me:$LINENO: checking for file" >&5
8974 $as_echo_n "checking for file... " >&6; }
8975 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8976 $as_echo_n "(cached) " >&6
8977 else
8978 case $MAGIC_CMD in
8979 [\\/*] | ?:[\\/]*)
8980 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8981 ;;
8982 *)
8983 lt_save_MAGIC_CMD="$MAGIC_CMD"
8984 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8985 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8986 for ac_dir in $ac_dummy; do
8987 IFS="$lt_save_ifs"
8988 test -z "$ac_dir" && ac_dir=.
8989 if test -f $ac_dir/file; then
8990 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8991 if test -n "$file_magic_test_file"; then
8992 case $deplibs_check_method in
8993 "file_magic "*)
8994 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8995 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8996 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8997 $EGREP "$file_magic_regex" > /dev/null; then
8998 :
8999 else
9000 cat <<_LT_EOF 1>&2
9002 *** Warning: the command libtool uses to detect shared libraries,
9003 *** $file_magic_cmd, produces output that libtool cannot recognize.
9004 *** The result is that libtool may fail to recognize shared libraries
9005 *** as such. This will affect the creation of libtool libraries that
9006 *** depend on shared libraries, but programs linked with such libtool
9007 *** libraries will work regardless of this problem. Nevertheless, you
9008 *** may want to report the problem to your system manager and/or to
9009 *** bug-libtool@gnu.org
9011 _LT_EOF
9012 fi ;;
9013 esac
9014 fi
9015 break
9016 fi
9017 done
9018 IFS="$lt_save_ifs"
9019 MAGIC_CMD="$lt_save_MAGIC_CMD"
9020 ;;
9021 esac
9022 fi
9024 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9025 if test -n "$MAGIC_CMD"; then
9026 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9027 $as_echo "$MAGIC_CMD" >&6; }
9028 else
9029 { $as_echo "$as_me:$LINENO: result: no" >&5
9030 $as_echo "no" >&6; }
9031 fi
9034 else
9035 MAGIC_CMD=:
9036 fi
9037 fi
9039 fi
9040 ;;
9041 esac
9043 # Use C for the default configuration in the libtool script
9045 lt_save_CC="$CC"
9046 ac_ext=c
9047 ac_cpp='$CPP $CPPFLAGS'
9048 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9049 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9050 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9053 # Source file extension for C test sources.
9054 ac_ext=c
9056 # Object file extension for compiled C test sources.
9057 objext=o
9058 objext=$objext
9060 # Code to be used in simple compile tests
9061 lt_simple_compile_test_code="int some_variable = 0;"
9063 # Code to be used in simple link tests
9064 lt_simple_link_test_code='int main(){return(0);}'
9072 # If no C compiler was specified, use CC.
9073 LTCC=${LTCC-"$CC"}
9075 # If no C compiler flags were specified, use CFLAGS.
9076 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9078 # Allow CC to be a program name with arguments.
9079 compiler=$CC
9081 # Save the default compiler, since it gets overwritten when the other
9082 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9083 compiler_DEFAULT=$CC
9085 # save warnings/boilerplate of simple test code
9086 ac_outfile=conftest.$ac_objext
9087 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9088 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9089 _lt_compiler_boilerplate=`cat conftest.err`
9090 $RM conftest*
9092 ac_outfile=conftest.$ac_objext
9093 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9094 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9095 _lt_linker_boilerplate=`cat conftest.err`
9096 $RM -r conftest*
9099 ## CAVEAT EMPTOR:
9100 ## There is no encapsulation within the following macros, do not change
9101 ## the running order or otherwise move them around unless you know exactly
9102 ## what you are doing...
9103 if test -n "$compiler"; then
9105 lt_prog_compiler_no_builtin_flag=
9107 if test "$GCC" = yes; then
9108 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9110 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9111 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9112 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9113 $as_echo_n "(cached) " >&6
9114 else
9115 lt_cv_prog_compiler_rtti_exceptions=no
9116 ac_outfile=conftest.$ac_objext
9117 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9118 lt_compiler_flag="-fno-rtti -fno-exceptions"
9119 # Insert the option either (1) after the last *FLAGS variable, or
9120 # (2) before a word containing "conftest.", or (3) at the end.
9121 # Note that $ac_compile itself does not contain backslashes and begins
9122 # with a dollar sign (not a hyphen), so the echo should work correctly.
9123 # The option is referenced via a variable to avoid confusing sed.
9124 lt_compile=`echo "$ac_compile" | $SED \
9125 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9126 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9127 -e 's:$: $lt_compiler_flag:'`
9128 (eval echo "\"\$as_me:9128: $lt_compile\"" >&5)
9129 (eval "$lt_compile" 2>conftest.err)
9130 ac_status=$?
9131 cat conftest.err >&5
9132 echo "$as_me:9132: \$? = $ac_status" >&5
9133 if (exit $ac_status) && test -s "$ac_outfile"; then
9134 # The compiler can only warn and ignore the option if not recognized
9135 # So say no if there are warnings other than the usual output.
9136 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9137 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9138 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9139 lt_cv_prog_compiler_rtti_exceptions=yes
9140 fi
9141 fi
9142 $RM conftest*
9144 fi
9145 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9146 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9148 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9149 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9150 else
9151 :
9152 fi
9154 fi
9161 lt_prog_compiler_wl=
9162 lt_prog_compiler_pic=
9163 lt_prog_compiler_static=
9165 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9166 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9168 if test "$GCC" = yes; then
9169 lt_prog_compiler_wl='-Wl,'
9170 lt_prog_compiler_static='-static'
9172 case $host_os in
9173 aix*)
9174 # All AIX code is PIC.
9175 if test "$host_cpu" = ia64; then
9176 # AIX 5 now supports IA64 processor
9177 lt_prog_compiler_static='-Bstatic'
9178 fi
9179 ;;
9181 amigaos*)
9182 case $host_cpu in
9183 powerpc)
9184 # see comment about AmigaOS4 .so support
9185 lt_prog_compiler_pic='-fPIC'
9186 ;;
9187 m68k)
9188 # FIXME: we need at least 68020 code to build shared libraries, but
9189 # adding the `-m68020' flag to GCC prevents building anything better,
9190 # like `-m68040'.
9191 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9192 ;;
9193 esac
9194 ;;
9196 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9197 # PIC is the default for these OSes.
9198 ;;
9200 mingw* | cygwin* | pw32* | os2* | cegcc*)
9201 # This hack is so that the source file can tell whether it is being
9202 # built for inclusion in a dll (and should export symbols for example).
9203 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9204 # (--disable-auto-import) libraries
9205 lt_prog_compiler_pic='-DDLL_EXPORT'
9206 ;;
9208 darwin* | rhapsody*)
9209 # PIC is the default on this platform
9210 # Common symbols not allowed in MH_DYLIB files
9211 lt_prog_compiler_pic='-fno-common'
9212 ;;
9214 hpux*)
9215 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9216 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9217 # sets the default TLS model and affects inlining.
9218 case $host_cpu in
9219 hppa*64*)
9220 # +Z the default
9221 ;;
9222 *)
9223 lt_prog_compiler_pic='-fPIC'
9224 ;;
9225 esac
9226 ;;
9228 interix[3-9]*)
9229 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9230 # Instead, we relocate shared libraries at runtime.
9231 ;;
9233 msdosdjgpp*)
9234 # Just because we use GCC doesn't mean we suddenly get shared libraries
9235 # on systems that don't support them.
9236 lt_prog_compiler_can_build_shared=no
9237 enable_shared=no
9238 ;;
9240 *nto* | *qnx*)
9241 # QNX uses GNU C++, but need to define -shared option too, otherwise
9242 # it will coredump.
9243 lt_prog_compiler_pic='-fPIC -shared'
9244 ;;
9246 sysv4*MP*)
9247 if test -d /usr/nec; then
9248 lt_prog_compiler_pic=-Kconform_pic
9249 fi
9250 ;;
9252 *)
9253 lt_prog_compiler_pic='-fPIC'
9254 ;;
9255 esac
9256 else
9257 # PORTME Check for flag to pass linker flags through the system compiler.
9258 case $host_os in
9259 aix*)
9260 lt_prog_compiler_wl='-Wl,'
9261 if test "$host_cpu" = ia64; then
9262 # AIX 5 now supports IA64 processor
9263 lt_prog_compiler_static='-Bstatic'
9264 else
9265 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9266 fi
9267 ;;
9269 mingw* | cygwin* | pw32* | os2* | cegcc*)
9270 # This hack is so that the source file can tell whether it is being
9271 # built for inclusion in a dll (and should export symbols for example).
9272 lt_prog_compiler_pic='-DDLL_EXPORT'
9273 ;;
9275 hpux9* | hpux10* | hpux11*)
9276 lt_prog_compiler_wl='-Wl,'
9277 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9278 # not for PA HP-UX.
9279 case $host_cpu in
9280 hppa*64*|ia64*)
9281 # +Z the default
9282 ;;
9283 *)
9284 lt_prog_compiler_pic='+Z'
9285 ;;
9286 esac
9287 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9288 lt_prog_compiler_static='${wl}-a ${wl}archive'
9289 ;;
9291 irix5* | irix6* | nonstopux*)
9292 lt_prog_compiler_wl='-Wl,'
9293 # PIC (with -KPIC) is the default.
9294 lt_prog_compiler_static='-non_shared'
9295 ;;
9297 linux* | k*bsd*-gnu)
9298 case $cc_basename in
9299 # old Intel for x86_64 which still supported -KPIC.
9300 ecc*)
9301 lt_prog_compiler_wl='-Wl,'
9302 lt_prog_compiler_pic='-KPIC'
9303 lt_prog_compiler_static='-static'
9304 ;;
9305 # icc used to be incompatible with GCC.
9306 # ICC 10 doesn't accept -KPIC any more.
9307 icc* | ifort*)
9308 lt_prog_compiler_wl='-Wl,'
9309 lt_prog_compiler_pic='-fPIC'
9310 lt_prog_compiler_static='-static'
9311 ;;
9312 # Lahey Fortran 8.1.
9313 lf95*)
9314 lt_prog_compiler_wl='-Wl,'
9315 lt_prog_compiler_pic='--shared'
9316 lt_prog_compiler_static='--static'
9317 ;;
9318 pgcc* | pgf77* | pgf90* | pgf95*)
9319 # Portland Group compilers (*not* the Pentium gcc compiler,
9320 # which looks to be a dead project)
9321 lt_prog_compiler_wl='-Wl,'
9322 lt_prog_compiler_pic='-fpic'
9323 lt_prog_compiler_static='-Bstatic'
9324 ;;
9325 ccc*)
9326 lt_prog_compiler_wl='-Wl,'
9327 # All Alpha code is PIC.
9328 lt_prog_compiler_static='-non_shared'
9329 ;;
9330 xl*)
9331 # IBM XL C 8.0/Fortran 10.1 on PPC
9332 lt_prog_compiler_wl='-Wl,'
9333 lt_prog_compiler_pic='-qpic'
9334 lt_prog_compiler_static='-qstaticlink'
9335 ;;
9336 *)
9337 case `$CC -V 2>&1 | sed 5q` in
9338 *Sun\ C*)
9339 # Sun C 5.9
9340 lt_prog_compiler_pic='-KPIC'
9341 lt_prog_compiler_static='-Bstatic'
9342 lt_prog_compiler_wl='-Wl,'
9343 ;;
9344 *Sun\ F*)
9345 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9346 lt_prog_compiler_pic='-KPIC'
9347 lt_prog_compiler_static='-Bstatic'
9348 lt_prog_compiler_wl=''
9349 ;;
9350 esac
9351 ;;
9352 esac
9353 ;;
9355 newsos6)
9356 lt_prog_compiler_pic='-KPIC'
9357 lt_prog_compiler_static='-Bstatic'
9358 ;;
9360 *nto* | *qnx*)
9361 # QNX uses GNU C++, but need to define -shared option too, otherwise
9362 # it will coredump.
9363 lt_prog_compiler_pic='-fPIC -shared'
9364 ;;
9366 osf3* | osf4* | osf5*)
9367 lt_prog_compiler_wl='-Wl,'
9368 # All OSF/1 code is PIC.
9369 lt_prog_compiler_static='-non_shared'
9370 ;;
9372 rdos*)
9373 lt_prog_compiler_static='-non_shared'
9374 ;;
9376 solaris*)
9377 lt_prog_compiler_pic='-KPIC'
9378 lt_prog_compiler_static='-Bstatic'
9379 case $cc_basename in
9380 f77* | f90* | f95*)
9381 lt_prog_compiler_wl='-Qoption ld ';;
9382 *)
9383 lt_prog_compiler_wl='-Wl,';;
9384 esac
9385 ;;
9387 sunos4*)
9388 lt_prog_compiler_wl='-Qoption ld '
9389 lt_prog_compiler_pic='-PIC'
9390 lt_prog_compiler_static='-Bstatic'
9391 ;;
9393 sysv4 | sysv4.2uw2* | sysv4.3*)
9394 lt_prog_compiler_wl='-Wl,'
9395 lt_prog_compiler_pic='-KPIC'
9396 lt_prog_compiler_static='-Bstatic'
9397 ;;
9399 sysv4*MP*)
9400 if test -d /usr/nec ;then
9401 lt_prog_compiler_pic='-Kconform_pic'
9402 lt_prog_compiler_static='-Bstatic'
9403 fi
9404 ;;
9406 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9407 lt_prog_compiler_wl='-Wl,'
9408 lt_prog_compiler_pic='-KPIC'
9409 lt_prog_compiler_static='-Bstatic'
9410 ;;
9412 unicos*)
9413 lt_prog_compiler_wl='-Wl,'
9414 lt_prog_compiler_can_build_shared=no
9415 ;;
9417 uts4*)
9418 lt_prog_compiler_pic='-pic'
9419 lt_prog_compiler_static='-Bstatic'
9420 ;;
9422 *)
9423 lt_prog_compiler_can_build_shared=no
9424 ;;
9425 esac
9426 fi
9428 case $host_os in
9429 # For platforms which do not support PIC, -DPIC is meaningless:
9430 *djgpp*)
9431 lt_prog_compiler_pic=
9432 ;;
9433 *)
9434 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9435 ;;
9436 esac
9437 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9438 $as_echo "$lt_prog_compiler_pic" >&6; }
9445 #
9446 # Check to make sure the PIC flag actually works.
9447 #
9448 if test -n "$lt_prog_compiler_pic"; then
9449 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9450 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9451 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
9452 $as_echo_n "(cached) " >&6
9453 else
9454 lt_cv_prog_compiler_pic_works=no
9455 ac_outfile=conftest.$ac_objext
9456 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9457 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9458 # Insert the option either (1) after the last *FLAGS variable, or
9459 # (2) before a word containing "conftest.", or (3) at the end.
9460 # Note that $ac_compile itself does not contain backslashes and begins
9461 # with a dollar sign (not a hyphen), so the echo should work correctly.
9462 # The option is referenced via a variable to avoid confusing sed.
9463 lt_compile=`echo "$ac_compile" | $SED \
9464 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9465 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9466 -e 's:$: $lt_compiler_flag:'`
9467 (eval echo "\"\$as_me:9467: $lt_compile\"" >&5)
9468 (eval "$lt_compile" 2>conftest.err)
9469 ac_status=$?
9470 cat conftest.err >&5
9471 echo "$as_me:9471: \$? = $ac_status" >&5
9472 if (exit $ac_status) && test -s "$ac_outfile"; then
9473 # The compiler can only warn and ignore the option if not recognized
9474 # So say no if there are warnings other than the usual output.
9475 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9476 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9477 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9478 lt_cv_prog_compiler_pic_works=yes
9479 fi
9480 fi
9481 $RM conftest*
9483 fi
9484 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
9485 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9487 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9488 case $lt_prog_compiler_pic in
9489 "" | " "*) ;;
9490 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9491 esac
9492 else
9493 lt_prog_compiler_pic=
9494 lt_prog_compiler_can_build_shared=no
9495 fi
9497 fi
9504 #
9505 # Check to make sure the static flag actually works.
9506 #
9507 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9508 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9509 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9510 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
9511 $as_echo_n "(cached) " >&6
9512 else
9513 lt_cv_prog_compiler_static_works=no
9514 save_LDFLAGS="$LDFLAGS"
9515 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9516 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9517 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9518 # The linker can only warn and ignore the option if not recognized
9519 # So say no if there are warnings
9520 if test -s conftest.err; then
9521 # Append any errors to the config.log.
9522 cat conftest.err 1>&5
9523 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9524 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9525 if diff conftest.exp conftest.er2 >/dev/null; then
9526 lt_cv_prog_compiler_static_works=yes
9527 fi
9528 else
9529 lt_cv_prog_compiler_static_works=yes
9530 fi
9531 fi
9532 $RM -r conftest*
9533 LDFLAGS="$save_LDFLAGS"
9535 fi
9536 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
9537 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9539 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9540 :
9541 else
9542 lt_prog_compiler_static=
9543 fi
9551 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9552 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9553 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9554 $as_echo_n "(cached) " >&6
9555 else
9556 lt_cv_prog_compiler_c_o=no
9557 $RM -r conftest 2>/dev/null
9558 mkdir conftest
9559 cd conftest
9560 mkdir out
9561 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9563 lt_compiler_flag="-o out/conftest2.$ac_objext"
9564 # Insert the option either (1) after the last *FLAGS variable, or
9565 # (2) before a word containing "conftest.", or (3) at the end.
9566 # Note that $ac_compile itself does not contain backslashes and begins
9567 # with a dollar sign (not a hyphen), so the echo should work correctly.
9568 lt_compile=`echo "$ac_compile" | $SED \
9569 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9570 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9571 -e 's:$: $lt_compiler_flag:'`
9572 (eval echo "\"\$as_me:9572: $lt_compile\"" >&5)
9573 (eval "$lt_compile" 2>out/conftest.err)
9574 ac_status=$?
9575 cat out/conftest.err >&5
9576 echo "$as_me:9576: \$? = $ac_status" >&5
9577 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9578 then
9579 # The compiler can only warn and ignore the option if not recognized
9580 # So say no if there are warnings
9581 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9582 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9583 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9584 lt_cv_prog_compiler_c_o=yes
9585 fi
9586 fi
9587 chmod u+w . 2>&5
9588 $RM conftest*
9589 # SGI C++ compiler will create directory out/ii_files/ for
9590 # template instantiation
9591 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9592 $RM out/* && rmdir out
9593 cd ..
9594 $RM -r conftest
9595 $RM conftest*
9597 fi
9598 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9599 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9606 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9607 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9608 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9609 $as_echo_n "(cached) " >&6
9610 else
9611 lt_cv_prog_compiler_c_o=no
9612 $RM -r conftest 2>/dev/null
9613 mkdir conftest
9614 cd conftest
9615 mkdir out
9616 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9618 lt_compiler_flag="-o out/conftest2.$ac_objext"
9619 # Insert the option either (1) after the last *FLAGS variable, or
9620 # (2) before a word containing "conftest.", or (3) at the end.
9621 # Note that $ac_compile itself does not contain backslashes and begins
9622 # with a dollar sign (not a hyphen), so the echo should work correctly.
9623 lt_compile=`echo "$ac_compile" | $SED \
9624 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9625 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9626 -e 's:$: $lt_compiler_flag:'`
9627 (eval echo "\"\$as_me:9627: $lt_compile\"" >&5)
9628 (eval "$lt_compile" 2>out/conftest.err)
9629 ac_status=$?
9630 cat out/conftest.err >&5
9631 echo "$as_me:9631: \$? = $ac_status" >&5
9632 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9633 then
9634 # The compiler can only warn and ignore the option if not recognized
9635 # So say no if there are warnings
9636 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9637 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9638 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9639 lt_cv_prog_compiler_c_o=yes
9640 fi
9641 fi
9642 chmod u+w . 2>&5
9643 $RM conftest*
9644 # SGI C++ compiler will create directory out/ii_files/ for
9645 # template instantiation
9646 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9647 $RM out/* && rmdir out
9648 cd ..
9649 $RM -r conftest
9650 $RM conftest*
9652 fi
9653 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9654 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9659 hard_links="nottested"
9660 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9661 # do not overwrite the value of need_locks provided by the user
9662 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9663 $as_echo_n "checking if we can lock with hard links... " >&6; }
9664 hard_links=yes
9665 $RM conftest*
9666 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9667 touch conftest.a
9668 ln conftest.a conftest.b 2>&5 || hard_links=no
9669 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9670 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
9671 $as_echo "$hard_links" >&6; }
9672 if test "$hard_links" = no; then
9673 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9674 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9675 need_locks=warn
9676 fi
9677 else
9678 need_locks=no
9679 fi
9686 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9687 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9689 runpath_var=
9690 allow_undefined_flag=
9691 always_export_symbols=no
9692 archive_cmds=
9693 archive_expsym_cmds=
9694 compiler_needs_object=no
9695 enable_shared_with_static_runtimes=no
9696 export_dynamic_flag_spec=
9697 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9698 hardcode_automatic=no
9699 hardcode_direct=no
9700 hardcode_direct_absolute=no
9701 hardcode_libdir_flag_spec=
9702 hardcode_libdir_flag_spec_ld=
9703 hardcode_libdir_separator=
9704 hardcode_minus_L=no
9705 hardcode_shlibpath_var=unsupported
9706 inherit_rpath=no
9707 link_all_deplibs=unknown
9708 module_cmds=
9709 module_expsym_cmds=
9710 old_archive_from_new_cmds=
9711 old_archive_from_expsyms_cmds=
9712 thread_safe_flag_spec=
9713 whole_archive_flag_spec=
9714 # include_expsyms should be a list of space-separated symbols to be *always*
9715 # included in the symbol list
9716 include_expsyms=
9717 # exclude_expsyms can be an extended regexp of symbols to exclude
9718 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9719 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9720 # as well as any symbol that contains `d'.
9721 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9722 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9723 # platforms (ab)use it in PIC code, but their linkers get confused if
9724 # the symbol is explicitly referenced. Since portable code cannot
9725 # rely on this symbol name, it's probably fine to never include it in
9726 # preloaded symbol tables.
9727 # Exclude shared library initialization/finalization symbols.
9728 extract_expsyms_cmds=
9730 case $host_os in
9731 cygwin* | mingw* | pw32* | cegcc*)
9732 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9733 # When not using gcc, we currently assume that we are using
9734 # Microsoft Visual C++.
9735 if test "$GCC" != yes; then
9736 with_gnu_ld=no
9737 fi
9738 ;;
9739 interix*)
9740 # we just hope/assume this is gcc and not c89 (= MSVC++)
9741 with_gnu_ld=yes
9742 ;;
9743 openbsd*)
9744 with_gnu_ld=no
9745 ;;
9746 esac
9748 ld_shlibs=yes
9749 if test "$with_gnu_ld" = yes; then
9750 # If archive_cmds runs LD, not CC, wlarc should be empty
9751 wlarc='${wl}'
9753 # Set some defaults for GNU ld with shared library support. These
9754 # are reset later if shared libraries are not supported. Putting them
9755 # here allows them to be overridden if necessary.
9756 runpath_var=LD_RUN_PATH
9757 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9758 export_dynamic_flag_spec='${wl}--export-dynamic'
9759 # ancient GNU ld didn't support --whole-archive et. al.
9760 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9761 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9762 else
9763 whole_archive_flag_spec=
9764 fi
9765 supports_anon_versioning=no
9766 case `$LD -v 2>&1` in
9767 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9768 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9769 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9770 *\ 2.11.*) ;; # other 2.11 versions
9771 *) supports_anon_versioning=yes ;;
9772 esac
9774 # See if GNU ld supports shared libraries.
9775 case $host_os in
9776 aix[3-9]*)
9777 # On AIX/PPC, the GNU linker is very broken
9778 if test "$host_cpu" != ia64; then
9779 ld_shlibs=no
9780 cat <<_LT_EOF 1>&2
9782 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9783 *** to be unable to reliably create shared libraries on AIX.
9784 *** Therefore, libtool is disabling shared libraries support. If you
9785 *** really care for shared libraries, you may want to modify your PATH
9786 *** so that a non-GNU linker is found, and then restart.
9788 _LT_EOF
9789 fi
9790 ;;
9792 amigaos*)
9793 case $host_cpu in
9794 powerpc)
9795 # see comment about AmigaOS4 .so support
9796 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9797 archive_expsym_cmds=''
9798 ;;
9799 m68k)
9800 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)'
9801 hardcode_libdir_flag_spec='-L$libdir'
9802 hardcode_minus_L=yes
9803 ;;
9804 esac
9805 ;;
9807 beos*)
9808 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9809 allow_undefined_flag=unsupported
9810 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9811 # support --undefined. This deserves some investigation. FIXME
9812 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9813 else
9814 ld_shlibs=no
9815 fi
9816 ;;
9818 cygwin* | mingw* | pw32* | cegcc*)
9819 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9820 # as there is no search path for DLLs.
9821 hardcode_libdir_flag_spec='-L$libdir'
9822 allow_undefined_flag=unsupported
9823 always_export_symbols=no
9824 enable_shared_with_static_runtimes=yes
9825 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9827 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9828 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9829 # If the export-symbols file already is a .def file (1st line
9830 # is EXPORTS), use it as is; otherwise, prepend...
9831 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9832 cp $export_symbols $output_objdir/$soname.def;
9833 else
9834 echo EXPORTS > $output_objdir/$soname.def;
9835 cat $export_symbols >> $output_objdir/$soname.def;
9836 fi~
9837 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9838 else
9839 ld_shlibs=no
9840 fi
9841 ;;
9843 interix[3-9]*)
9844 hardcode_direct=no
9845 hardcode_shlibpath_var=no
9846 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9847 export_dynamic_flag_spec='${wl}-E'
9848 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9849 # Instead, shared libraries are loaded at an image base (0x10000000 by
9850 # default) and relocated if they conflict, which is a slow very memory
9851 # consuming and fragmenting process. To avoid this, we pick a random,
9852 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9853 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9854 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9855 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'
9856 ;;
9858 gnu* | linux* | tpf* | k*bsd*-gnu)
9859 tmp_diet=no
9860 if test "$host_os" = linux-dietlibc; then
9861 case $cc_basename in
9862 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9863 esac
9864 fi
9865 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9866 && test "$tmp_diet" = no
9867 then
9868 tmp_addflag=
9869 tmp_sharedflag='-shared'
9870 case $cc_basename,$host_cpu in
9871 pgcc*) # Portland Group C compiler
9872 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'
9873 tmp_addflag=' $pic_flag'
9874 ;;
9875 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9876 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'
9877 tmp_addflag=' $pic_flag -Mnomain' ;;
9878 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9879 tmp_addflag=' -i_dynamic' ;;
9880 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9881 tmp_addflag=' -i_dynamic -nofor_main' ;;
9882 ifc* | ifort*) # Intel Fortran compiler
9883 tmp_addflag=' -nofor_main' ;;
9884 lf95*) # Lahey Fortran 8.1
9885 whole_archive_flag_spec=
9886 tmp_sharedflag='--shared' ;;
9887 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9888 tmp_sharedflag='-qmkshrobj'
9889 tmp_addflag= ;;
9890 esac
9891 case `$CC -V 2>&1 | sed 5q` in
9892 *Sun\ C*) # Sun C 5.9
9893 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9894 compiler_needs_object=yes
9895 tmp_sharedflag='-G' ;;
9896 *Sun\ F*) # Sun Fortran 8.3
9897 tmp_sharedflag='-G' ;;
9898 esac
9899 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9901 if test "x$supports_anon_versioning" = xyes; then
9902 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9903 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9904 echo "local: *; };" >> $output_objdir/$libname.ver~
9905 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9906 fi
9908 case $cc_basename in
9909 xlf*)
9910 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9911 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9912 hardcode_libdir_flag_spec=
9913 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9914 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9915 if test "x$supports_anon_versioning" = xyes; then
9916 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9917 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9918 echo "local: *; };" >> $output_objdir/$libname.ver~
9919 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9920 fi
9921 ;;
9922 esac
9923 else
9924 ld_shlibs=no
9925 fi
9926 ;;
9928 netbsd*)
9929 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9930 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9931 wlarc=
9932 else
9933 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9934 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9935 fi
9936 ;;
9938 solaris*)
9939 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9940 ld_shlibs=no
9941 cat <<_LT_EOF 1>&2
9943 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9944 *** create shared libraries on Solaris systems. Therefore, libtool
9945 *** is disabling shared libraries support. We urge you to upgrade GNU
9946 *** binutils to release 2.9.1 or newer. Another option is to modify
9947 *** your PATH or compiler configuration so that the native linker is
9948 *** used, and then restart.
9950 _LT_EOF
9951 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9952 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9953 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9954 else
9955 ld_shlibs=no
9956 fi
9957 ;;
9959 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9960 case `$LD -v 2>&1` in
9961 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9962 ld_shlibs=no
9963 cat <<_LT_EOF 1>&2
9965 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9966 *** reliably create shared libraries on SCO systems. Therefore, libtool
9967 *** is disabling shared libraries support. We urge you to upgrade GNU
9968 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9969 *** your PATH or compiler configuration so that the native linker is
9970 *** used, and then restart.
9972 _LT_EOF
9973 ;;
9974 *)
9975 # For security reasons, it is highly recommended that you always
9976 # use absolute paths for naming shared libraries, and exclude the
9977 # DT_RUNPATH tag from executables and libraries. But doing so
9978 # requires that you compile everything twice, which is a pain.
9979 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9980 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9981 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9982 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9983 else
9984 ld_shlibs=no
9985 fi
9986 ;;
9987 esac
9988 ;;
9990 sunos4*)
9991 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9992 wlarc=
9993 hardcode_direct=yes
9994 hardcode_shlibpath_var=no
9995 ;;
9997 *)
9998 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9999 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10000 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10001 else
10002 ld_shlibs=no
10003 fi
10004 ;;
10005 esac
10007 if test "$ld_shlibs" = no; then
10008 runpath_var=
10009 hardcode_libdir_flag_spec=
10010 export_dynamic_flag_spec=
10011 whole_archive_flag_spec=
10012 fi
10013 else
10014 # PORTME fill in a description of your system's linker (not GNU ld)
10015 case $host_os in
10016 aix3*)
10017 allow_undefined_flag=unsupported
10018 always_export_symbols=yes
10019 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'
10020 # Note: this linker hardcodes the directories in LIBPATH if there
10021 # are no directories specified by -L.
10022 hardcode_minus_L=yes
10023 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10024 # Neither direct hardcoding nor static linking is supported with a
10025 # broken collect2.
10026 hardcode_direct=unsupported
10027 fi
10028 ;;
10030 aix[4-9]*)
10031 if test "$host_cpu" = ia64; then
10032 # On IA64, the linker does run time linking by default, so we don't
10033 # have to do anything special.
10034 aix_use_runtimelinking=no
10035 exp_sym_flag='-Bexport'
10036 no_entry_flag=""
10037 else
10038 # If we're using GNU nm, then we don't want the "-C" option.
10039 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10040 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10041 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'
10042 else
10043 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'
10044 fi
10045 aix_use_runtimelinking=no
10047 # Test if we are trying to use run time linking or normal
10048 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10049 # need to do runtime linking.
10050 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10051 for ld_flag in $LDFLAGS; do
10052 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10053 aix_use_runtimelinking=yes
10054 break
10055 fi
10056 done
10057 ;;
10058 esac
10060 exp_sym_flag='-bexport'
10061 no_entry_flag='-bnoentry'
10062 fi
10064 # When large executables or shared objects are built, AIX ld can
10065 # have problems creating the table of contents. If linking a library
10066 # or program results in "error TOC overflow" add -mminimal-toc to
10067 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10068 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10070 archive_cmds=''
10071 hardcode_direct=yes
10072 hardcode_direct_absolute=yes
10073 hardcode_libdir_separator=':'
10074 link_all_deplibs=yes
10075 file_list_spec='${wl}-f,'
10077 if test "$GCC" = yes; then
10078 case $host_os in aix4.[012]|aix4.[012].*)
10079 # We only want to do this on AIX 4.2 and lower, the check
10080 # below for broken collect2 doesn't work under 4.3+
10081 collect2name=`${CC} -print-prog-name=collect2`
10082 if test -f "$collect2name" &&
10083 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10084 then
10085 # We have reworked collect2
10086 :
10087 else
10088 # We have old collect2
10089 hardcode_direct=unsupported
10090 # It fails to find uninstalled libraries when the uninstalled
10091 # path is not listed in the libpath. Setting hardcode_minus_L
10092 # to unsupported forces relinking
10093 hardcode_minus_L=yes
10094 hardcode_libdir_flag_spec='-L$libdir'
10095 hardcode_libdir_separator=
10096 fi
10097 ;;
10098 esac
10099 shared_flag='-shared'
10100 if test "$aix_use_runtimelinking" = yes; then
10101 shared_flag="$shared_flag "'${wl}-G'
10102 fi
10103 else
10104 # not using gcc
10105 if test "$host_cpu" = ia64; then
10106 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10107 # chokes on -Wl,-G. The following line is correct:
10108 shared_flag='-G'
10109 else
10110 if test "$aix_use_runtimelinking" = yes; then
10111 shared_flag='${wl}-G'
10112 else
10113 shared_flag='${wl}-bM:SRE'
10114 fi
10115 fi
10116 fi
10118 export_dynamic_flag_spec='${wl}-bexpall'
10119 # It seems that -bexpall does not export symbols beginning with
10120 # underscore (_), so it is better to generate a list of symbols to export.
10121 always_export_symbols=yes
10122 if test "$aix_use_runtimelinking" = yes; then
10123 # Warning - without using the other runtime loading flags (-brtl),
10124 # -berok will link without error, but may produce a broken library.
10125 allow_undefined_flag='-berok'
10126 # Determine the default libpath from the value encoded in an
10127 # empty executable.
10128 cat >conftest.$ac_ext <<_ACEOF
10129 /* confdefs.h. */
10130 _ACEOF
10131 cat confdefs.h >>conftest.$ac_ext
10132 cat >>conftest.$ac_ext <<_ACEOF
10133 /* end confdefs.h. */
10135 int
10136 main ()
10137 {
10139 ;
10140 return 0;
10141 }
10142 _ACEOF
10143 rm -f conftest.$ac_objext conftest$ac_exeext
10144 if { (ac_try="$ac_link"
10145 case "(($ac_try" in
10146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10147 *) ac_try_echo=$ac_try;;
10148 esac
10149 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10150 $as_echo "$ac_try_echo") >&5
10151 (eval "$ac_link") 2>conftest.er1
10152 ac_status=$?
10153 grep -v '^ *+' conftest.er1 >conftest.err
10154 rm -f conftest.er1
10155 cat conftest.err >&5
10156 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10157 (exit $ac_status); } && {
10158 test -z "$ac_c_werror_flag" ||
10159 test ! -s conftest.err
10160 } && test -s conftest$ac_exeext && {
10161 test "$cross_compiling" = yes ||
10162 $as_test_x conftest$ac_exeext
10163 }; then
10165 lt_aix_libpath_sed='
10166 /Import File Strings/,/^$/ {
10167 /^0/ {
10168 s/^0 *\(.*\)$/\1/
10169 p
10170 }
10171 }'
10172 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10173 # Check for a 64-bit object if we didn't find anything.
10174 if test -z "$aix_libpath"; then
10175 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10176 fi
10177 else
10178 $as_echo "$as_me: failed program was:" >&5
10179 sed 's/^/| /' conftest.$ac_ext >&5
10182 fi
10184 rm -rf conftest.dSYM
10185 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10186 conftest$ac_exeext conftest.$ac_ext
10187 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10189 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10190 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 "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10191 else
10192 if test "$host_cpu" = ia64; then
10193 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10194 allow_undefined_flag="-z nodefs"
10195 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"
10196 else
10197 # Determine the default libpath from the value encoded in an
10198 # empty executable.
10199 cat >conftest.$ac_ext <<_ACEOF
10200 /* confdefs.h. */
10201 _ACEOF
10202 cat confdefs.h >>conftest.$ac_ext
10203 cat >>conftest.$ac_ext <<_ACEOF
10204 /* end confdefs.h. */
10206 int
10207 main ()
10208 {
10210 ;
10211 return 0;
10212 }
10213 _ACEOF
10214 rm -f conftest.$ac_objext conftest$ac_exeext
10215 if { (ac_try="$ac_link"
10216 case "(($ac_try" in
10217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10218 *) ac_try_echo=$ac_try;;
10219 esac
10220 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10221 $as_echo "$ac_try_echo") >&5
10222 (eval "$ac_link") 2>conftest.er1
10223 ac_status=$?
10224 grep -v '^ *+' conftest.er1 >conftest.err
10225 rm -f conftest.er1
10226 cat conftest.err >&5
10227 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10228 (exit $ac_status); } && {
10229 test -z "$ac_c_werror_flag" ||
10230 test ! -s conftest.err
10231 } && test -s conftest$ac_exeext && {
10232 test "$cross_compiling" = yes ||
10233 $as_test_x conftest$ac_exeext
10234 }; then
10236 lt_aix_libpath_sed='
10237 /Import File Strings/,/^$/ {
10238 /^0/ {
10239 s/^0 *\(.*\)$/\1/
10240 p
10241 }
10242 }'
10243 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10244 # Check for a 64-bit object if we didn't find anything.
10245 if test -z "$aix_libpath"; then
10246 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10247 fi
10248 else
10249 $as_echo "$as_me: failed program was:" >&5
10250 sed 's/^/| /' conftest.$ac_ext >&5
10253 fi
10255 rm -rf conftest.dSYM
10256 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10257 conftest$ac_exeext conftest.$ac_ext
10258 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10260 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10261 # Warning - without using the other run time loading flags,
10262 # -berok will link without error, but may produce a broken library.
10263 no_undefined_flag=' ${wl}-bernotok'
10264 allow_undefined_flag=' ${wl}-berok'
10265 # Exported symbols can be pulled into shared objects from archives
10266 whole_archive_flag_spec='$convenience'
10267 archive_cmds_need_lc=yes
10268 # This is similar to how AIX traditionally builds its shared libraries.
10269 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'
10270 fi
10271 fi
10272 ;;
10274 amigaos*)
10275 case $host_cpu in
10276 powerpc)
10277 # see comment about AmigaOS4 .so support
10278 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10279 archive_expsym_cmds=''
10280 ;;
10281 m68k)
10282 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)'
10283 hardcode_libdir_flag_spec='-L$libdir'
10284 hardcode_minus_L=yes
10285 ;;
10286 esac
10287 ;;
10289 bsdi[45]*)
10290 export_dynamic_flag_spec=-rdynamic
10291 ;;
10293 cygwin* | mingw* | pw32* | cegcc*)
10294 # When not using gcc, we currently assume that we are using
10295 # Microsoft Visual C++.
10296 # hardcode_libdir_flag_spec is actually meaningless, as there is
10297 # no search path for DLLs.
10298 hardcode_libdir_flag_spec=' '
10299 allow_undefined_flag=unsupported
10300 # Tell ltmain to make .lib files, not .a files.
10301 libext=lib
10302 # Tell ltmain to make .dll files, not .so files.
10303 shrext_cmds=".dll"
10304 # FIXME: Setting linknames here is a bad hack.
10305 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10306 # The linker will automatically build a .lib file if we build a DLL.
10307 old_archive_from_new_cmds='true'
10308 # FIXME: Should let the user specify the lib program.
10309 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10310 fix_srcfile_path='`cygpath -w "$srcfile"`'
10311 enable_shared_with_static_runtimes=yes
10312 ;;
10314 darwin* | rhapsody*)
10317 archive_cmds_need_lc=no
10318 hardcode_direct=no
10319 hardcode_automatic=yes
10320 hardcode_shlibpath_var=unsupported
10321 whole_archive_flag_spec=''
10322 link_all_deplibs=yes
10323 allow_undefined_flag="$_lt_dar_allow_undefined"
10324 case $cc_basename in
10325 ifort*) _lt_dar_can_shared=yes ;;
10326 *) _lt_dar_can_shared=$GCC ;;
10327 esac
10328 if test "$_lt_dar_can_shared" = "yes"; then
10329 output_verbose_link_cmd=echo
10330 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10331 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10332 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
10333 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
10335 else
10336 ld_shlibs=no
10337 fi
10339 ;;
10341 dgux*)
10342 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10343 hardcode_libdir_flag_spec='-L$libdir'
10344 hardcode_shlibpath_var=no
10345 ;;
10347 freebsd1*)
10348 ld_shlibs=no
10349 ;;
10351 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10352 # support. Future versions do this automatically, but an explicit c++rt0.o
10353 # does not break anything, and helps significantly (at the cost of a little
10354 # extra space).
10355 freebsd2.2*)
10356 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10357 hardcode_libdir_flag_spec='-R$libdir'
10358 hardcode_direct=yes
10359 hardcode_shlibpath_var=no
10360 ;;
10362 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10363 freebsd2*)
10364 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10365 hardcode_direct=yes
10366 hardcode_minus_L=yes
10367 hardcode_shlibpath_var=no
10368 ;;
10370 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10371 freebsd* | dragonfly*)
10372 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10373 hardcode_libdir_flag_spec='-R$libdir'
10374 hardcode_direct=yes
10375 hardcode_shlibpath_var=no
10376 ;;
10378 hpux9*)
10379 if test "$GCC" = yes; then
10380 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'
10381 else
10382 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'
10383 fi
10384 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10385 hardcode_libdir_separator=:
10386 hardcode_direct=yes
10388 # hardcode_minus_L: Not really in the search PATH,
10389 # but as the default location of the library.
10390 hardcode_minus_L=yes
10391 export_dynamic_flag_spec='${wl}-E'
10392 ;;
10394 hpux10*)
10395 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10396 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10397 else
10398 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10399 fi
10400 if test "$with_gnu_ld" = no; then
10401 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10402 hardcode_libdir_flag_spec_ld='+b $libdir'
10403 hardcode_libdir_separator=:
10404 hardcode_direct=yes
10405 hardcode_direct_absolute=yes
10406 export_dynamic_flag_spec='${wl}-E'
10407 # hardcode_minus_L: Not really in the search PATH,
10408 # but as the default location of the library.
10409 hardcode_minus_L=yes
10410 fi
10411 ;;
10413 hpux11*)
10414 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10415 case $host_cpu in
10416 hppa*64*)
10417 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10418 ;;
10419 ia64*)
10420 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10421 ;;
10422 *)
10423 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10424 ;;
10425 esac
10426 else
10427 case $host_cpu in
10428 hppa*64*)
10429 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10430 ;;
10431 ia64*)
10432 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10433 ;;
10434 *)
10435 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10436 ;;
10437 esac
10438 fi
10439 if test "$with_gnu_ld" = no; then
10440 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10441 hardcode_libdir_separator=:
10443 case $host_cpu in
10444 hppa*64*|ia64*)
10445 hardcode_direct=no
10446 hardcode_shlibpath_var=no
10447 ;;
10448 *)
10449 hardcode_direct=yes
10450 hardcode_direct_absolute=yes
10451 export_dynamic_flag_spec='${wl}-E'
10453 # hardcode_minus_L: Not really in the search PATH,
10454 # but as the default location of the library.
10455 hardcode_minus_L=yes
10456 ;;
10457 esac
10458 fi
10459 ;;
10461 irix5* | irix6* | nonstopux*)
10462 if test "$GCC" = yes; then
10463 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10464 # Try to use the -exported_symbol ld option, if it does not
10465 # work, assume that -exports_file does not work either and
10466 # implicitly export all symbols.
10467 save_LDFLAGS="$LDFLAGS"
10468 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10469 cat >conftest.$ac_ext <<_ACEOF
10470 int foo(void) {}
10471 _ACEOF
10472 rm -f conftest.$ac_objext conftest$ac_exeext
10473 if { (ac_try="$ac_link"
10474 case "(($ac_try" in
10475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10476 *) ac_try_echo=$ac_try;;
10477 esac
10478 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10479 $as_echo "$ac_try_echo") >&5
10480 (eval "$ac_link") 2>conftest.er1
10481 ac_status=$?
10482 grep -v '^ *+' conftest.er1 >conftest.err
10483 rm -f conftest.er1
10484 cat conftest.err >&5
10485 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10486 (exit $ac_status); } && {
10487 test -z "$ac_c_werror_flag" ||
10488 test ! -s conftest.err
10489 } && test -s conftest$ac_exeext && {
10490 test "$cross_compiling" = yes ||
10491 $as_test_x conftest$ac_exeext
10492 }; then
10493 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10495 else
10496 $as_echo "$as_me: failed program was:" >&5
10497 sed 's/^/| /' conftest.$ac_ext >&5
10500 fi
10502 rm -rf conftest.dSYM
10503 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10504 conftest$ac_exeext conftest.$ac_ext
10505 LDFLAGS="$save_LDFLAGS"
10506 else
10507 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10508 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
10509 fi
10510 archive_cmds_need_lc='no'
10511 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10512 hardcode_libdir_separator=:
10513 inherit_rpath=yes
10514 link_all_deplibs=yes
10515 ;;
10517 netbsd*)
10518 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10519 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10520 else
10521 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10522 fi
10523 hardcode_libdir_flag_spec='-R$libdir'
10524 hardcode_direct=yes
10525 hardcode_shlibpath_var=no
10526 ;;
10528 newsos6)
10529 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10530 hardcode_direct=yes
10531 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10532 hardcode_libdir_separator=:
10533 hardcode_shlibpath_var=no
10534 ;;
10536 *nto* | *qnx*)
10537 ;;
10539 openbsd*)
10540 if test -f /usr/libexec/ld.so; then
10541 hardcode_direct=yes
10542 hardcode_shlibpath_var=no
10543 hardcode_direct_absolute=yes
10544 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10545 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10546 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10547 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10548 export_dynamic_flag_spec='${wl}-E'
10549 else
10550 case $host_os in
10551 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10552 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10553 hardcode_libdir_flag_spec='-R$libdir'
10554 ;;
10555 *)
10556 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10557 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10558 ;;
10559 esac
10560 fi
10561 else
10562 ld_shlibs=no
10563 fi
10564 ;;
10566 os2*)
10567 hardcode_libdir_flag_spec='-L$libdir'
10568 hardcode_minus_L=yes
10569 allow_undefined_flag=unsupported
10570 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'
10571 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10572 ;;
10574 osf3*)
10575 if test "$GCC" = yes; then
10576 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10577 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10578 else
10579 allow_undefined_flag=' -expect_unresolved \*'
10580 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10581 fi
10582 archive_cmds_need_lc='no'
10583 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10584 hardcode_libdir_separator=:
10585 ;;
10587 osf4* | osf5*) # as osf3* with the addition of -msym flag
10588 if test "$GCC" = yes; then
10589 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10590 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10591 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10592 else
10593 allow_undefined_flag=' -expect_unresolved \*'
10594 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10595 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
10596 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10598 # Both c and cxx compiler support -rpath directly
10599 hardcode_libdir_flag_spec='-rpath $libdir'
10600 fi
10601 archive_cmds_need_lc='no'
10602 hardcode_libdir_separator=:
10603 ;;
10605 solaris*)
10606 no_undefined_flag=' -z defs'
10607 if test "$GCC" = yes; then
10608 wlarc='${wl}'
10609 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10610 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10611 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10612 else
10613 case `$CC -V 2>&1` in
10614 *"Compilers 5.0"*)
10615 wlarc=''
10616 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10617 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10618 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10619 ;;
10620 *)
10621 wlarc='${wl}'
10622 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10623 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10624 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10625 ;;
10626 esac
10627 fi
10628 hardcode_libdir_flag_spec='-R$libdir'
10629 hardcode_shlibpath_var=no
10630 case $host_os in
10631 solaris2.[0-5] | solaris2.[0-5].*) ;;
10632 *)
10633 # The compiler driver will combine and reorder linker options,
10634 # but understands `-z linker_flag'. GCC discards it without `$wl',
10635 # but is careful enough not to reorder.
10636 # Supported since Solaris 2.6 (maybe 2.5.1?)
10637 if test "$GCC" = yes; then
10638 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10639 else
10640 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10641 fi
10642 ;;
10643 esac
10644 link_all_deplibs=yes
10645 ;;
10647 sunos4*)
10648 if test "x$host_vendor" = xsequent; then
10649 # Use $CC to link under sequent, because it throws in some extra .o
10650 # files that make .init and .fini sections work.
10651 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10652 else
10653 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10654 fi
10655 hardcode_libdir_flag_spec='-L$libdir'
10656 hardcode_direct=yes
10657 hardcode_minus_L=yes
10658 hardcode_shlibpath_var=no
10659 ;;
10661 sysv4)
10662 case $host_vendor in
10663 sni)
10664 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10665 hardcode_direct=yes # is this really true???
10666 ;;
10667 siemens)
10668 ## LD is ld it makes a PLAMLIB
10669 ## CC just makes a GrossModule.
10670 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10671 reload_cmds='$CC -r -o $output$reload_objs'
10672 hardcode_direct=no
10673 ;;
10674 motorola)
10675 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10676 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10677 ;;
10678 esac
10679 runpath_var='LD_RUN_PATH'
10680 hardcode_shlibpath_var=no
10681 ;;
10683 sysv4.3*)
10684 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10685 hardcode_shlibpath_var=no
10686 export_dynamic_flag_spec='-Bexport'
10687 ;;
10689 sysv4*MP*)
10690 if test -d /usr/nec; then
10691 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10692 hardcode_shlibpath_var=no
10693 runpath_var=LD_RUN_PATH
10694 hardcode_runpath_var=yes
10695 ld_shlibs=yes
10696 fi
10697 ;;
10699 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10700 no_undefined_flag='${wl}-z,text'
10701 archive_cmds_need_lc=no
10702 hardcode_shlibpath_var=no
10703 runpath_var='LD_RUN_PATH'
10705 if test "$GCC" = yes; then
10706 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10707 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10708 else
10709 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10710 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10711 fi
10712 ;;
10714 sysv5* | sco3.2v5* | sco5v6*)
10715 # Note: We can NOT use -z defs as we might desire, because we do not
10716 # link with -lc, and that would cause any symbols used from libc to
10717 # always be unresolved, which means just about no library would
10718 # ever link correctly. If we're not using GNU ld we use -z text
10719 # though, which does catch some bad symbols but isn't as heavy-handed
10720 # as -z defs.
10721 no_undefined_flag='${wl}-z,text'
10722 allow_undefined_flag='${wl}-z,nodefs'
10723 archive_cmds_need_lc=no
10724 hardcode_shlibpath_var=no
10725 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10726 hardcode_libdir_separator=':'
10727 link_all_deplibs=yes
10728 export_dynamic_flag_spec='${wl}-Bexport'
10729 runpath_var='LD_RUN_PATH'
10731 if test "$GCC" = yes; then
10732 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10733 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10734 else
10735 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10736 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10737 fi
10738 ;;
10740 uts4*)
10741 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10742 hardcode_libdir_flag_spec='-L$libdir'
10743 hardcode_shlibpath_var=no
10744 ;;
10746 *)
10747 ld_shlibs=no
10748 ;;
10749 esac
10751 if test x$host_vendor = xsni; then
10752 case $host in
10753 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10754 export_dynamic_flag_spec='${wl}-Blargedynsym'
10755 ;;
10756 esac
10757 fi
10758 fi
10760 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10761 $as_echo "$ld_shlibs" >&6; }
10762 test "$ld_shlibs" = no && can_build_shared=no
10764 with_gnu_ld=$with_gnu_ld
10780 #
10781 # Do we need to explicitly link libc?
10782 #
10783 case "x$archive_cmds_need_lc" in
10784 x|xyes)
10785 # Assume -lc should be added
10786 archive_cmds_need_lc=yes
10788 if test "$enable_shared" = yes && test "$GCC" = yes; then
10789 case $archive_cmds in
10790 *'~'*)
10791 # FIXME: we may have to deal with multi-command sequences.
10792 ;;
10793 '$CC '*)
10794 # Test whether the compiler implicitly links with -lc since on some
10795 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10796 # to ld, don't add -lc before -lgcc.
10797 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10798 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10799 $RM conftest*
10800 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10803 (eval $ac_compile) 2>&5
10804 ac_status=$?
10805 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10806 (exit $ac_status); } 2>conftest.err; then
10807 soname=conftest
10808 lib=conftest
10809 libobjs=conftest.$ac_objext
10810 deplibs=
10811 wl=$lt_prog_compiler_wl
10812 pic_flag=$lt_prog_compiler_pic
10813 compiler_flags=-v
10814 linker_flags=-v
10815 verstring=
10816 output_objdir=.
10817 libname=conftest
10818 lt_save_allow_undefined_flag=$allow_undefined_flag
10819 allow_undefined_flag=
10820 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
10821 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10822 ac_status=$?
10823 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10824 (exit $ac_status); }
10825 then
10826 archive_cmds_need_lc=no
10827 else
10828 archive_cmds_need_lc=yes
10829 fi
10830 allow_undefined_flag=$lt_save_allow_undefined_flag
10831 else
10832 cat conftest.err 1>&5
10833 fi
10834 $RM conftest*
10835 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10836 $as_echo "$archive_cmds_need_lc" >&6; }
10837 ;;
10838 esac
10839 fi
10840 ;;
10841 esac
10999 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11000 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11002 if test "$GCC" = yes; then
11003 case $host_os in
11004 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11005 *) lt_awk_arg="/^libraries:/" ;;
11006 esac
11007 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11008 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11009 # if the path contains ";" then we assume it to be the separator
11010 # otherwise default to the standard path separator (i.e. ":") - it is
11011 # assumed that no part of a normal pathname contains ";" but that should
11012 # okay in the real world where ";" in dirpaths is itself problematic.
11013 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11014 else
11015 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11016 fi
11017 # Ok, now we have the path, separated by spaces, we can step through it
11018 # and add multilib dir if necessary.
11019 lt_tmp_lt_search_path_spec=
11020 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11021 for lt_sys_path in $lt_search_path_spec; do
11022 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11023 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11024 else
11025 test -d "$lt_sys_path" && \
11026 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11027 fi
11028 done
11029 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11030 BEGIN {RS=" "; FS="/|\n";} {
11031 lt_foo="";
11032 lt_count=0;
11033 for (lt_i = NF; lt_i > 0; lt_i--) {
11034 if ($lt_i != "" && $lt_i != ".") {
11035 if ($lt_i == "..") {
11036 lt_count++;
11037 } else {
11038 if (lt_count == 0) {
11039 lt_foo="/" $lt_i lt_foo;
11040 } else {
11041 lt_count--;
11042 }
11043 }
11044 }
11045 }
11046 if (lt_foo != "") { lt_freq[lt_foo]++; }
11047 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11048 }'`
11049 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11050 else
11051 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11052 fi
11053 library_names_spec=
11054 libname_spec='lib$name'
11055 soname_spec=
11056 shrext_cmds=".so"
11057 postinstall_cmds=
11058 postuninstall_cmds=
11059 finish_cmds=
11060 finish_eval=
11061 shlibpath_var=
11062 shlibpath_overrides_runpath=unknown
11063 version_type=none
11064 dynamic_linker="$host_os ld.so"
11065 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11066 need_lib_prefix=unknown
11067 hardcode_into_libs=no
11069 # when you set need_version to no, make sure it does not cause -set_version
11070 # flags to be left without arguments
11071 need_version=unknown
11073 case $host_os in
11074 aix3*)
11075 version_type=linux
11076 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11077 shlibpath_var=LIBPATH
11079 # AIX 3 has no versioning support, so we append a major version to the name.
11080 soname_spec='${libname}${release}${shared_ext}$major'
11081 ;;
11083 aix[4-9]*)
11084 version_type=linux
11085 need_lib_prefix=no
11086 need_version=no
11087 hardcode_into_libs=yes
11088 if test "$host_cpu" = ia64; then
11089 # AIX 5 supports IA64
11090 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11091 shlibpath_var=LD_LIBRARY_PATH
11092 else
11093 # With GCC up to 2.95.x, collect2 would create an import file
11094 # for dependence libraries. The import file would start with
11095 # the line `#! .'. This would cause the generated library to
11096 # depend on `.', always an invalid library. This was fixed in
11097 # development snapshots of GCC prior to 3.0.
11098 case $host_os in
11099 aix4 | aix4.[01] | aix4.[01].*)
11100 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11101 echo ' yes '
11102 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11103 :
11104 else
11105 can_build_shared=no
11106 fi
11107 ;;
11108 esac
11109 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11110 # soname into executable. Probably we can add versioning support to
11111 # collect2, so additional links can be useful in future.
11112 if test "$aix_use_runtimelinking" = yes; then
11113 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11114 # instead of lib<name>.a to let people know that these are not
11115 # typical AIX shared libraries.
11116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11117 else
11118 # We preserve .a as extension for shared libraries through AIX4.2
11119 # and later when we are not doing run time linking.
11120 library_names_spec='${libname}${release}.a $libname.a'
11121 soname_spec='${libname}${release}${shared_ext}$major'
11122 fi
11123 shlibpath_var=LIBPATH
11124 fi
11125 ;;
11127 amigaos*)
11128 case $host_cpu in
11129 powerpc)
11130 # Since July 2007 AmigaOS4 officially supports .so libraries.
11131 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11133 ;;
11134 m68k)
11135 library_names_spec='$libname.ixlibrary $libname.a'
11136 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11137 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'
11138 ;;
11139 esac
11140 ;;
11142 beos*)
11143 library_names_spec='${libname}${shared_ext}'
11144 dynamic_linker="$host_os ld.so"
11145 shlibpath_var=LIBRARY_PATH
11146 ;;
11148 bsdi[45]*)
11149 version_type=linux
11150 need_version=no
11151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11152 soname_spec='${libname}${release}${shared_ext}$major'
11153 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11154 shlibpath_var=LD_LIBRARY_PATH
11155 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11156 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11157 # the default ld.so.conf also contains /usr/contrib/lib and
11158 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11159 # libtool to hard-code these into programs
11160 ;;
11162 cygwin* | mingw* | pw32* | cegcc*)
11163 version_type=windows
11164 shrext_cmds=".dll"
11165 need_version=no
11166 need_lib_prefix=no
11168 case $GCC,$host_os in
11169 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11170 library_names_spec='$libname.dll.a'
11171 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11172 postinstall_cmds='base_file=`basename \${file}`~
11173 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11174 dldir=$destdir/`dirname \$dlpath`~
11175 test -d \$dldir || mkdir -p \$dldir~
11176 $install_prog $dir/$dlname \$dldir/$dlname~
11177 chmod a+x \$dldir/$dlname~
11178 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11179 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11180 fi'
11181 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11182 dlpath=$dir/\$dldll~
11183 $RM \$dlpath'
11184 shlibpath_overrides_runpath=yes
11186 case $host_os in
11187 cygwin*)
11188 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11189 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11190 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11191 ;;
11192 mingw* | cegcc*)
11193 # MinGW DLLs use traditional 'lib' prefix
11194 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11195 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11196 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11197 # It is most probably a Windows format PATH printed by
11198 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11199 # path with ; separators, and with drive letters. We can handle the
11200 # drive letters (cygwin fileutils understands them), so leave them,
11201 # especially as we might pass files found there to a mingw objdump,
11202 # which wouldn't understand a cygwinified path. Ahh.
11203 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11204 else
11205 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11206 fi
11207 ;;
11208 pw32*)
11209 # pw32 DLLs use 'pw' prefix rather than 'lib'
11210 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11211 ;;
11212 esac
11213 ;;
11215 *)
11216 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11217 ;;
11218 esac
11219 dynamic_linker='Win32 ld.exe'
11220 # FIXME: first we should search . and the directory the executable is in
11221 shlibpath_var=PATH
11222 ;;
11224 darwin* | rhapsody*)
11225 dynamic_linker="$host_os dyld"
11226 version_type=darwin
11227 need_lib_prefix=no
11228 need_version=no
11229 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11230 soname_spec='${libname}${release}${major}$shared_ext'
11231 shlibpath_overrides_runpath=yes
11232 shlibpath_var=DYLD_LIBRARY_PATH
11233 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11235 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11236 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11237 ;;
11239 dgux*)
11240 version_type=linux
11241 need_lib_prefix=no
11242 need_version=no
11243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11244 soname_spec='${libname}${release}${shared_ext}$major'
11245 shlibpath_var=LD_LIBRARY_PATH
11246 ;;
11248 freebsd1*)
11249 dynamic_linker=no
11250 ;;
11252 freebsd* | dragonfly*)
11253 # DragonFly does not have aout. When/if they implement a new
11254 # versioning mechanism, adjust this.
11255 if test -x /usr/bin/objformat; then
11256 objformat=`/usr/bin/objformat`
11257 else
11258 case $host_os in
11259 freebsd[123]*) objformat=aout ;;
11260 *) objformat=elf ;;
11261 esac
11262 fi
11263 version_type=freebsd-$objformat
11264 case $version_type in
11265 freebsd-elf*)
11266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11267 need_version=no
11268 need_lib_prefix=no
11269 ;;
11270 freebsd-*)
11271 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11272 need_version=yes
11273 ;;
11274 esac
11275 shlibpath_var=LD_LIBRARY_PATH
11276 case $host_os in
11277 freebsd2*)
11278 shlibpath_overrides_runpath=yes
11279 ;;
11280 freebsd3.[01]* | freebsdelf3.[01]*)
11281 shlibpath_overrides_runpath=yes
11282 hardcode_into_libs=yes
11283 ;;
11284 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11285 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11286 shlibpath_overrides_runpath=no
11287 hardcode_into_libs=yes
11288 ;;
11289 *) # from 4.6 on, and DragonFly
11290 shlibpath_overrides_runpath=yes
11291 hardcode_into_libs=yes
11292 ;;
11293 esac
11294 ;;
11296 gnu*)
11297 version_type=linux
11298 need_lib_prefix=no
11299 need_version=no
11300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11301 soname_spec='${libname}${release}${shared_ext}$major'
11302 shlibpath_var=LD_LIBRARY_PATH
11303 hardcode_into_libs=yes
11304 ;;
11306 hpux9* | hpux10* | hpux11*)
11307 # Give a soname corresponding to the major version so that dld.sl refuses to
11308 # link against other versions.
11309 version_type=sunos
11310 need_lib_prefix=no
11311 need_version=no
11312 case $host_cpu in
11313 ia64*)
11314 shrext_cmds='.so'
11315 hardcode_into_libs=yes
11316 dynamic_linker="$host_os dld.so"
11317 shlibpath_var=LD_LIBRARY_PATH
11318 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11320 soname_spec='${libname}${release}${shared_ext}$major'
11321 if test "X$HPUX_IA64_MODE" = X32; then
11322 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11323 else
11324 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11325 fi
11326 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11327 ;;
11328 hppa*64*)
11329 shrext_cmds='.sl'
11330 hardcode_into_libs=yes
11331 dynamic_linker="$host_os dld.sl"
11332 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11333 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11335 soname_spec='${libname}${release}${shared_ext}$major'
11336 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11337 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11338 ;;
11339 *)
11340 shrext_cmds='.sl'
11341 dynamic_linker="$host_os dld.sl"
11342 shlibpath_var=SHLIB_PATH
11343 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11345 soname_spec='${libname}${release}${shared_ext}$major'
11346 ;;
11347 esac
11348 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11349 postinstall_cmds='chmod 555 $lib'
11350 ;;
11352 interix[3-9]*)
11353 version_type=linux
11354 need_lib_prefix=no
11355 need_version=no
11356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11357 soname_spec='${libname}${release}${shared_ext}$major'
11358 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11359 shlibpath_var=LD_LIBRARY_PATH
11360 shlibpath_overrides_runpath=no
11361 hardcode_into_libs=yes
11362 ;;
11364 irix5* | irix6* | nonstopux*)
11365 case $host_os in
11366 nonstopux*) version_type=nonstopux ;;
11367 *)
11368 if test "$lt_cv_prog_gnu_ld" = yes; then
11369 version_type=linux
11370 else
11371 version_type=irix
11372 fi ;;
11373 esac
11374 need_lib_prefix=no
11375 need_version=no
11376 soname_spec='${libname}${release}${shared_ext}$major'
11377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11378 case $host_os in
11379 irix5* | nonstopux*)
11380 libsuff= shlibsuff=
11381 ;;
11382 *)
11383 case $LD in # libtool.m4 will add one of these switches to LD
11384 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11385 libsuff= shlibsuff= libmagic=32-bit;;
11386 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11387 libsuff=32 shlibsuff=N32 libmagic=N32;;
11388 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11389 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11390 *) libsuff= shlibsuff= libmagic=never-match;;
11391 esac
11392 ;;
11393 esac
11394 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11395 shlibpath_overrides_runpath=no
11396 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11397 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11398 hardcode_into_libs=yes
11399 ;;
11401 # No shared lib support for Linux oldld, aout, or coff.
11402 linux*oldld* | linux*aout* | linux*coff*)
11403 dynamic_linker=no
11404 ;;
11406 # This must be Linux ELF.
11407 linux* | k*bsd*-gnu)
11408 version_type=linux
11409 need_lib_prefix=no
11410 need_version=no
11411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11412 soname_spec='${libname}${release}${shared_ext}$major'
11413 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11414 shlibpath_var=LD_LIBRARY_PATH
11415 shlibpath_overrides_runpath=no
11416 # Some binutils ld are patched to set DT_RUNPATH
11417 save_LDFLAGS=$LDFLAGS
11418 save_libdir=$libdir
11419 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11420 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11421 cat >conftest.$ac_ext <<_ACEOF
11422 /* confdefs.h. */
11423 _ACEOF
11424 cat confdefs.h >>conftest.$ac_ext
11425 cat >>conftest.$ac_ext <<_ACEOF
11426 /* end confdefs.h. */
11428 int
11429 main ()
11430 {
11432 ;
11433 return 0;
11434 }
11435 _ACEOF
11436 rm -f conftest.$ac_objext conftest$ac_exeext
11437 if { (ac_try="$ac_link"
11438 case "(($ac_try" in
11439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11440 *) ac_try_echo=$ac_try;;
11441 esac
11442 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11443 $as_echo "$ac_try_echo") >&5
11444 (eval "$ac_link") 2>conftest.er1
11445 ac_status=$?
11446 grep -v '^ *+' conftest.er1 >conftest.err
11447 rm -f conftest.er1
11448 cat conftest.err >&5
11449 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11450 (exit $ac_status); } && {
11451 test -z "$ac_c_werror_flag" ||
11452 test ! -s conftest.err
11453 } && test -s conftest$ac_exeext && {
11454 test "$cross_compiling" = yes ||
11455 $as_test_x conftest$ac_exeext
11456 }; then
11457 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
11458 shlibpath_overrides_runpath=yes
11459 fi
11461 else
11462 $as_echo "$as_me: failed program was:" >&5
11463 sed 's/^/| /' conftest.$ac_ext >&5
11466 fi
11468 rm -rf conftest.dSYM
11469 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11470 conftest$ac_exeext conftest.$ac_ext
11471 LDFLAGS=$save_LDFLAGS
11472 libdir=$save_libdir
11474 # This implies no fast_install, which is unacceptable.
11475 # Some rework will be needed to allow for fast_install
11476 # before this can be enabled.
11477 hardcode_into_libs=yes
11479 # Append ld.so.conf contents to the search path
11480 if test -f /etc/ld.so.conf; then
11481 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
11482 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11483 fi
11485 # We used to test for /lib/ld.so.1 and disable shared libraries on
11486 # powerpc, because MkLinux only supported shared libraries with the
11487 # GNU dynamic linker. Since this was broken with cross compilers,
11488 # most powerpc-linux boxes support dynamic linking these days and
11489 # people can always --disable-shared, the test was removed, and we
11490 # assume the GNU/Linux dynamic linker is in use.
11491 dynamic_linker='GNU/Linux ld.so'
11492 ;;
11494 netbsd*)
11495 version_type=sunos
11496 need_lib_prefix=no
11497 need_version=no
11498 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11500 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11501 dynamic_linker='NetBSD (a.out) ld.so'
11502 else
11503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11504 soname_spec='${libname}${release}${shared_ext}$major'
11505 dynamic_linker='NetBSD ld.elf_so'
11506 fi
11507 shlibpath_var=LD_LIBRARY_PATH
11508 shlibpath_overrides_runpath=yes
11509 hardcode_into_libs=yes
11510 ;;
11512 newsos6)
11513 version_type=linux
11514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11515 shlibpath_var=LD_LIBRARY_PATH
11516 shlibpath_overrides_runpath=yes
11517 ;;
11519 *nto* | *qnx*)
11520 version_type=qnx
11521 need_lib_prefix=no
11522 need_version=no
11523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11524 soname_spec='${libname}${release}${shared_ext}$major'
11525 shlibpath_var=LD_LIBRARY_PATH
11526 shlibpath_overrides_runpath=no
11527 hardcode_into_libs=yes
11528 dynamic_linker='ldqnx.so'
11529 ;;
11531 openbsd*)
11532 version_type=sunos
11533 sys_lib_dlsearch_path_spec="/usr/lib"
11534 need_lib_prefix=no
11535 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11536 case $host_os in
11537 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11538 *) need_version=no ;;
11539 esac
11540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11541 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11542 shlibpath_var=LD_LIBRARY_PATH
11543 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11544 case $host_os in
11545 openbsd2.[89] | openbsd2.[89].*)
11546 shlibpath_overrides_runpath=no
11547 ;;
11548 *)
11549 shlibpath_overrides_runpath=yes
11550 ;;
11551 esac
11552 else
11553 shlibpath_overrides_runpath=yes
11554 fi
11555 ;;
11557 os2*)
11558 libname_spec='$name'
11559 shrext_cmds=".dll"
11560 need_lib_prefix=no
11561 library_names_spec='$libname${shared_ext} $libname.a'
11562 dynamic_linker='OS/2 ld.exe'
11563 shlibpath_var=LIBPATH
11564 ;;
11566 osf3* | osf4* | osf5*)
11567 version_type=osf
11568 need_lib_prefix=no
11569 need_version=no
11570 soname_spec='${libname}${release}${shared_ext}$major'
11571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11572 shlibpath_var=LD_LIBRARY_PATH
11573 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11574 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11575 ;;
11577 rdos*)
11578 dynamic_linker=no
11579 ;;
11581 solaris*)
11582 version_type=linux
11583 need_lib_prefix=no
11584 need_version=no
11585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11586 soname_spec='${libname}${release}${shared_ext}$major'
11587 shlibpath_var=LD_LIBRARY_PATH
11588 shlibpath_overrides_runpath=yes
11589 hardcode_into_libs=yes
11590 # ldd complains unless libraries are executable
11591 postinstall_cmds='chmod +x $lib'
11592 ;;
11594 sunos4*)
11595 version_type=sunos
11596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11597 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11598 shlibpath_var=LD_LIBRARY_PATH
11599 shlibpath_overrides_runpath=yes
11600 if test "$with_gnu_ld" = yes; then
11601 need_lib_prefix=no
11602 fi
11603 need_version=yes
11604 ;;
11606 sysv4 | sysv4.3*)
11607 version_type=linux
11608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11609 soname_spec='${libname}${release}${shared_ext}$major'
11610 shlibpath_var=LD_LIBRARY_PATH
11611 case $host_vendor in
11612 sni)
11613 shlibpath_overrides_runpath=no
11614 need_lib_prefix=no
11615 runpath_var=LD_RUN_PATH
11616 ;;
11617 siemens)
11618 need_lib_prefix=no
11619 ;;
11620 motorola)
11621 need_lib_prefix=no
11622 need_version=no
11623 shlibpath_overrides_runpath=no
11624 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11625 ;;
11626 esac
11627 ;;
11629 sysv4*MP*)
11630 if test -d /usr/nec ;then
11631 version_type=linux
11632 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11633 soname_spec='$libname${shared_ext}.$major'
11634 shlibpath_var=LD_LIBRARY_PATH
11635 fi
11636 ;;
11638 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11639 version_type=freebsd-elf
11640 need_lib_prefix=no
11641 need_version=no
11642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11643 soname_spec='${libname}${release}${shared_ext}$major'
11644 shlibpath_var=LD_LIBRARY_PATH
11645 shlibpath_overrides_runpath=yes
11646 hardcode_into_libs=yes
11647 if test "$with_gnu_ld" = yes; then
11648 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11649 else
11650 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11651 case $host_os in
11652 sco3.2v5*)
11653 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11654 ;;
11655 esac
11656 fi
11657 sys_lib_dlsearch_path_spec='/usr/lib'
11658 ;;
11660 tpf*)
11661 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11662 version_type=linux
11663 need_lib_prefix=no
11664 need_version=no
11665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11666 shlibpath_var=LD_LIBRARY_PATH
11667 shlibpath_overrides_runpath=no
11668 hardcode_into_libs=yes
11669 ;;
11671 uts4*)
11672 version_type=linux
11673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11674 soname_spec='${libname}${release}${shared_ext}$major'
11675 shlibpath_var=LD_LIBRARY_PATH
11676 ;;
11678 *)
11679 dynamic_linker=no
11680 ;;
11681 esac
11682 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11683 $as_echo "$dynamic_linker" >&6; }
11684 test "$dynamic_linker" = no && can_build_shared=no
11686 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11687 if test "$GCC" = yes; then
11688 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11689 fi
11691 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11692 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11693 fi
11694 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11695 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11696 fi
11784 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11785 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11786 hardcode_action=
11787 if test -n "$hardcode_libdir_flag_spec" ||
11788 test -n "$runpath_var" ||
11789 test "X$hardcode_automatic" = "Xyes" ; then
11791 # We can hardcode non-existent directories.
11792 if test "$hardcode_direct" != no &&
11793 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11794 # have to relink, otherwise we might link with an installed library
11795 # when we should be linking with a yet-to-be-installed one
11796 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11797 test "$hardcode_minus_L" != no; then
11798 # Linking always hardcodes the temporary library directory.
11799 hardcode_action=relink
11800 else
11801 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11802 hardcode_action=immediate
11803 fi
11804 else
11805 # We cannot hardcode anything, or else we can only hardcode existing
11806 # directories.
11807 hardcode_action=unsupported
11808 fi
11809 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
11810 $as_echo "$hardcode_action" >&6; }
11812 if test "$hardcode_action" = relink ||
11813 test "$inherit_rpath" = yes; then
11814 # Fast installation is not supported
11815 enable_fast_install=no
11816 elif test "$shlibpath_overrides_runpath" = yes ||
11817 test "$enable_shared" = no; then
11818 # Fast installation is not necessary
11819 enable_fast_install=needless
11820 fi
11827 if test "x$enable_dlopen" != xyes; then
11828 enable_dlopen=unknown
11829 enable_dlopen_self=unknown
11830 enable_dlopen_self_static=unknown
11831 else
11832 lt_cv_dlopen=no
11833 lt_cv_dlopen_libs=
11835 case $host_os in
11836 beos*)
11837 lt_cv_dlopen="load_add_on"
11838 lt_cv_dlopen_libs=
11839 lt_cv_dlopen_self=yes
11840 ;;
11842 mingw* | pw32* | cegcc*)
11843 lt_cv_dlopen="LoadLibrary"
11844 lt_cv_dlopen_libs=
11845 ;;
11847 cygwin*)
11848 lt_cv_dlopen="dlopen"
11849 lt_cv_dlopen_libs=
11850 ;;
11852 darwin*)
11853 # if libdl is installed we need to link against it
11854 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11855 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11856 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11857 $as_echo_n "(cached) " >&6
11858 else
11859 ac_check_lib_save_LIBS=$LIBS
11860 LIBS="-ldl $LIBS"
11861 cat >conftest.$ac_ext <<_ACEOF
11862 /* confdefs.h. */
11863 _ACEOF
11864 cat confdefs.h >>conftest.$ac_ext
11865 cat >>conftest.$ac_ext <<_ACEOF
11866 /* end confdefs.h. */
11868 /* Override any GCC internal prototype to avoid an error.
11869 Use char because int might match the return type of a GCC
11870 builtin and then its argument prototype would still apply. */
11871 #ifdef __cplusplus
11872 extern "C"
11873 #endif
11874 char dlopen ();
11875 int
11876 main ()
11877 {
11878 return dlopen ();
11879 ;
11880 return 0;
11881 }
11882 _ACEOF
11883 rm -f conftest.$ac_objext conftest$ac_exeext
11884 if { (ac_try="$ac_link"
11885 case "(($ac_try" in
11886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11887 *) ac_try_echo=$ac_try;;
11888 esac
11889 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11890 $as_echo "$ac_try_echo") >&5
11891 (eval "$ac_link") 2>conftest.er1
11892 ac_status=$?
11893 grep -v '^ *+' conftest.er1 >conftest.err
11894 rm -f conftest.er1
11895 cat conftest.err >&5
11896 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11897 (exit $ac_status); } && {
11898 test -z "$ac_c_werror_flag" ||
11899 test ! -s conftest.err
11900 } && test -s conftest$ac_exeext && {
11901 test "$cross_compiling" = yes ||
11902 $as_test_x conftest$ac_exeext
11903 }; then
11904 ac_cv_lib_dl_dlopen=yes
11905 else
11906 $as_echo "$as_me: failed program was:" >&5
11907 sed 's/^/| /' conftest.$ac_ext >&5
11909 ac_cv_lib_dl_dlopen=no
11910 fi
11912 rm -rf conftest.dSYM
11913 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11914 conftest$ac_exeext conftest.$ac_ext
11915 LIBS=$ac_check_lib_save_LIBS
11916 fi
11917 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11918 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11919 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
11920 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11921 else
11923 lt_cv_dlopen="dyld"
11924 lt_cv_dlopen_libs=
11925 lt_cv_dlopen_self=yes
11927 fi
11929 ;;
11931 *)
11932 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
11933 $as_echo_n "checking for shl_load... " >&6; }
11934 if test "${ac_cv_func_shl_load+set}" = set; then
11935 $as_echo_n "(cached) " >&6
11936 else
11937 cat >conftest.$ac_ext <<_ACEOF
11938 /* confdefs.h. */
11939 _ACEOF
11940 cat confdefs.h >>conftest.$ac_ext
11941 cat >>conftest.$ac_ext <<_ACEOF
11942 /* end confdefs.h. */
11943 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11944 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11945 #define shl_load innocuous_shl_load
11947 /* System header to define __stub macros and hopefully few prototypes,
11948 which can conflict with char shl_load (); below.
11949 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11950 <limits.h> exists even on freestanding compilers. */
11952 #ifdef __STDC__
11953 # include <limits.h>
11954 #else
11955 # include <assert.h>
11956 #endif
11958 #undef shl_load
11960 /* Override any GCC internal prototype to avoid an error.
11961 Use char because int might match the return type of a GCC
11962 builtin and then its argument prototype would still apply. */
11963 #ifdef __cplusplus
11964 extern "C"
11965 #endif
11966 char shl_load ();
11967 /* The GNU C library defines this for functions which it implements
11968 to always fail with ENOSYS. Some functions are actually named
11969 something starting with __ and the normal name is an alias. */
11970 #if defined __stub_shl_load || defined __stub___shl_load
11971 choke me
11972 #endif
11974 int
11975 main ()
11976 {
11977 return shl_load ();
11978 ;
11979 return 0;
11980 }
11981 _ACEOF
11982 rm -f conftest.$ac_objext conftest$ac_exeext
11983 if { (ac_try="$ac_link"
11984 case "(($ac_try" in
11985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11986 *) ac_try_echo=$ac_try;;
11987 esac
11988 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11989 $as_echo "$ac_try_echo") >&5
11990 (eval "$ac_link") 2>conftest.er1
11991 ac_status=$?
11992 grep -v '^ *+' conftest.er1 >conftest.err
11993 rm -f conftest.er1
11994 cat conftest.err >&5
11995 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11996 (exit $ac_status); } && {
11997 test -z "$ac_c_werror_flag" ||
11998 test ! -s conftest.err
11999 } && test -s conftest$ac_exeext && {
12000 test "$cross_compiling" = yes ||
12001 $as_test_x conftest$ac_exeext
12002 }; then
12003 ac_cv_func_shl_load=yes
12004 else
12005 $as_echo "$as_me: failed program was:" >&5
12006 sed 's/^/| /' conftest.$ac_ext >&5
12008 ac_cv_func_shl_load=no
12009 fi
12011 rm -rf conftest.dSYM
12012 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12013 conftest$ac_exeext conftest.$ac_ext
12014 fi
12015 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12016 $as_echo "$ac_cv_func_shl_load" >&6; }
12017 if test "x$ac_cv_func_shl_load" = x""yes; then
12018 lt_cv_dlopen="shl_load"
12019 else
12020 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12021 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12022 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12023 $as_echo_n "(cached) " >&6
12024 else
12025 ac_check_lib_save_LIBS=$LIBS
12026 LIBS="-ldld $LIBS"
12027 cat >conftest.$ac_ext <<_ACEOF
12028 /* confdefs.h. */
12029 _ACEOF
12030 cat confdefs.h >>conftest.$ac_ext
12031 cat >>conftest.$ac_ext <<_ACEOF
12032 /* end confdefs.h. */
12034 /* Override any GCC internal prototype to avoid an error.
12035 Use char because int might match the return type of a GCC
12036 builtin and then its argument prototype would still apply. */
12037 #ifdef __cplusplus
12038 extern "C"
12039 #endif
12040 char shl_load ();
12041 int
12042 main ()
12043 {
12044 return shl_load ();
12045 ;
12046 return 0;
12047 }
12048 _ACEOF
12049 rm -f conftest.$ac_objext conftest$ac_exeext
12050 if { (ac_try="$ac_link"
12051 case "(($ac_try" in
12052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12053 *) ac_try_echo=$ac_try;;
12054 esac
12055 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12056 $as_echo "$ac_try_echo") >&5
12057 (eval "$ac_link") 2>conftest.er1
12058 ac_status=$?
12059 grep -v '^ *+' conftest.er1 >conftest.err
12060 rm -f conftest.er1
12061 cat conftest.err >&5
12062 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12063 (exit $ac_status); } && {
12064 test -z "$ac_c_werror_flag" ||
12065 test ! -s conftest.err
12066 } && test -s conftest$ac_exeext && {
12067 test "$cross_compiling" = yes ||
12068 $as_test_x conftest$ac_exeext
12069 }; then
12070 ac_cv_lib_dld_shl_load=yes
12071 else
12072 $as_echo "$as_me: failed program was:" >&5
12073 sed 's/^/| /' conftest.$ac_ext >&5
12075 ac_cv_lib_dld_shl_load=no
12076 fi
12078 rm -rf conftest.dSYM
12079 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12080 conftest$ac_exeext conftest.$ac_ext
12081 LIBS=$ac_check_lib_save_LIBS
12082 fi
12083 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12084 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12085 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
12086 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12087 else
12088 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
12089 $as_echo_n "checking for dlopen... " >&6; }
12090 if test "${ac_cv_func_dlopen+set}" = set; then
12091 $as_echo_n "(cached) " >&6
12092 else
12093 cat >conftest.$ac_ext <<_ACEOF
12094 /* confdefs.h. */
12095 _ACEOF
12096 cat confdefs.h >>conftest.$ac_ext
12097 cat >>conftest.$ac_ext <<_ACEOF
12098 /* end confdefs.h. */
12099 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12100 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12101 #define dlopen innocuous_dlopen
12103 /* System header to define __stub macros and hopefully few prototypes,
12104 which can conflict with char dlopen (); below.
12105 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12106 <limits.h> exists even on freestanding compilers. */
12108 #ifdef __STDC__
12109 # include <limits.h>
12110 #else
12111 # include <assert.h>
12112 #endif
12114 #undef dlopen
12116 /* Override any GCC internal prototype to avoid an error.
12117 Use char because int might match the return type of a GCC
12118 builtin and then its argument prototype would still apply. */
12119 #ifdef __cplusplus
12120 extern "C"
12121 #endif
12122 char dlopen ();
12123 /* The GNU C library defines this for functions which it implements
12124 to always fail with ENOSYS. Some functions are actually named
12125 something starting with __ and the normal name is an alias. */
12126 #if defined __stub_dlopen || defined __stub___dlopen
12127 choke me
12128 #endif
12130 int
12131 main ()
12132 {
12133 return dlopen ();
12134 ;
12135 return 0;
12136 }
12137 _ACEOF
12138 rm -f conftest.$ac_objext conftest$ac_exeext
12139 if { (ac_try="$ac_link"
12140 case "(($ac_try" in
12141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12142 *) ac_try_echo=$ac_try;;
12143 esac
12144 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12145 $as_echo "$ac_try_echo") >&5
12146 (eval "$ac_link") 2>conftest.er1
12147 ac_status=$?
12148 grep -v '^ *+' conftest.er1 >conftest.err
12149 rm -f conftest.er1
12150 cat conftest.err >&5
12151 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12152 (exit $ac_status); } && {
12153 test -z "$ac_c_werror_flag" ||
12154 test ! -s conftest.err
12155 } && test -s conftest$ac_exeext && {
12156 test "$cross_compiling" = yes ||
12157 $as_test_x conftest$ac_exeext
12158 }; then
12159 ac_cv_func_dlopen=yes
12160 else
12161 $as_echo "$as_me: failed program was:" >&5
12162 sed 's/^/| /' conftest.$ac_ext >&5
12164 ac_cv_func_dlopen=no
12165 fi
12167 rm -rf conftest.dSYM
12168 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12169 conftest$ac_exeext conftest.$ac_ext
12170 fi
12171 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12172 $as_echo "$ac_cv_func_dlopen" >&6; }
12173 if test "x$ac_cv_func_dlopen" = x""yes; then
12174 lt_cv_dlopen="dlopen"
12175 else
12176 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12177 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12178 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12179 $as_echo_n "(cached) " >&6
12180 else
12181 ac_check_lib_save_LIBS=$LIBS
12182 LIBS="-ldl $LIBS"
12183 cat >conftest.$ac_ext <<_ACEOF
12184 /* confdefs.h. */
12185 _ACEOF
12186 cat confdefs.h >>conftest.$ac_ext
12187 cat >>conftest.$ac_ext <<_ACEOF
12188 /* end confdefs.h. */
12190 /* Override any GCC internal prototype to avoid an error.
12191 Use char because int might match the return type of a GCC
12192 builtin and then its argument prototype would still apply. */
12193 #ifdef __cplusplus
12194 extern "C"
12195 #endif
12196 char dlopen ();
12197 int
12198 main ()
12199 {
12200 return dlopen ();
12201 ;
12202 return 0;
12203 }
12204 _ACEOF
12205 rm -f conftest.$ac_objext conftest$ac_exeext
12206 if { (ac_try="$ac_link"
12207 case "(($ac_try" in
12208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12209 *) ac_try_echo=$ac_try;;
12210 esac
12211 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12212 $as_echo "$ac_try_echo") >&5
12213 (eval "$ac_link") 2>conftest.er1
12214 ac_status=$?
12215 grep -v '^ *+' conftest.er1 >conftest.err
12216 rm -f conftest.er1
12217 cat conftest.err >&5
12218 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12219 (exit $ac_status); } && {
12220 test -z "$ac_c_werror_flag" ||
12221 test ! -s conftest.err
12222 } && test -s conftest$ac_exeext && {
12223 test "$cross_compiling" = yes ||
12224 $as_test_x conftest$ac_exeext
12225 }; then
12226 ac_cv_lib_dl_dlopen=yes
12227 else
12228 $as_echo "$as_me: failed program was:" >&5
12229 sed 's/^/| /' conftest.$ac_ext >&5
12231 ac_cv_lib_dl_dlopen=no
12232 fi
12234 rm -rf conftest.dSYM
12235 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12236 conftest$ac_exeext conftest.$ac_ext
12237 LIBS=$ac_check_lib_save_LIBS
12238 fi
12239 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12240 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12241 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
12242 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12243 else
12244 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12245 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12246 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12247 $as_echo_n "(cached) " >&6
12248 else
12249 ac_check_lib_save_LIBS=$LIBS
12250 LIBS="-lsvld $LIBS"
12251 cat >conftest.$ac_ext <<_ACEOF
12252 /* confdefs.h. */
12253 _ACEOF
12254 cat confdefs.h >>conftest.$ac_ext
12255 cat >>conftest.$ac_ext <<_ACEOF
12256 /* end confdefs.h. */
12258 /* Override any GCC internal prototype to avoid an error.
12259 Use char because int might match the return type of a GCC
12260 builtin and then its argument prototype would still apply. */
12261 #ifdef __cplusplus
12262 extern "C"
12263 #endif
12264 char dlopen ();
12265 int
12266 main ()
12267 {
12268 return dlopen ();
12269 ;
12270 return 0;
12271 }
12272 _ACEOF
12273 rm -f conftest.$ac_objext conftest$ac_exeext
12274 if { (ac_try="$ac_link"
12275 case "(($ac_try" in
12276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12277 *) ac_try_echo=$ac_try;;
12278 esac
12279 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12280 $as_echo "$ac_try_echo") >&5
12281 (eval "$ac_link") 2>conftest.er1
12282 ac_status=$?
12283 grep -v '^ *+' conftest.er1 >conftest.err
12284 rm -f conftest.er1
12285 cat conftest.err >&5
12286 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12287 (exit $ac_status); } && {
12288 test -z "$ac_c_werror_flag" ||
12289 test ! -s conftest.err
12290 } && test -s conftest$ac_exeext && {
12291 test "$cross_compiling" = yes ||
12292 $as_test_x conftest$ac_exeext
12293 }; then
12294 ac_cv_lib_svld_dlopen=yes
12295 else
12296 $as_echo "$as_me: failed program was:" >&5
12297 sed 's/^/| /' conftest.$ac_ext >&5
12299 ac_cv_lib_svld_dlopen=no
12300 fi
12302 rm -rf conftest.dSYM
12303 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12304 conftest$ac_exeext conftest.$ac_ext
12305 LIBS=$ac_check_lib_save_LIBS
12306 fi
12307 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12308 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12309 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
12310 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12311 else
12312 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12313 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12314 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12315 $as_echo_n "(cached) " >&6
12316 else
12317 ac_check_lib_save_LIBS=$LIBS
12318 LIBS="-ldld $LIBS"
12319 cat >conftest.$ac_ext <<_ACEOF
12320 /* confdefs.h. */
12321 _ACEOF
12322 cat confdefs.h >>conftest.$ac_ext
12323 cat >>conftest.$ac_ext <<_ACEOF
12324 /* end confdefs.h. */
12326 /* Override any GCC internal prototype to avoid an error.
12327 Use char because int might match the return type of a GCC
12328 builtin and then its argument prototype would still apply. */
12329 #ifdef __cplusplus
12330 extern "C"
12331 #endif
12332 char dld_link ();
12333 int
12334 main ()
12335 {
12336 return dld_link ();
12337 ;
12338 return 0;
12339 }
12340 _ACEOF
12341 rm -f conftest.$ac_objext conftest$ac_exeext
12342 if { (ac_try="$ac_link"
12343 case "(($ac_try" in
12344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12345 *) ac_try_echo=$ac_try;;
12346 esac
12347 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12348 $as_echo "$ac_try_echo") >&5
12349 (eval "$ac_link") 2>conftest.er1
12350 ac_status=$?
12351 grep -v '^ *+' conftest.er1 >conftest.err
12352 rm -f conftest.er1
12353 cat conftest.err >&5
12354 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12355 (exit $ac_status); } && {
12356 test -z "$ac_c_werror_flag" ||
12357 test ! -s conftest.err
12358 } && test -s conftest$ac_exeext && {
12359 test "$cross_compiling" = yes ||
12360 $as_test_x conftest$ac_exeext
12361 }; then
12362 ac_cv_lib_dld_dld_link=yes
12363 else
12364 $as_echo "$as_me: failed program was:" >&5
12365 sed 's/^/| /' conftest.$ac_ext >&5
12367 ac_cv_lib_dld_dld_link=no
12368 fi
12370 rm -rf conftest.dSYM
12371 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12372 conftest$ac_exeext conftest.$ac_ext
12373 LIBS=$ac_check_lib_save_LIBS
12374 fi
12375 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12376 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12377 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
12378 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12379 fi
12382 fi
12385 fi
12388 fi
12391 fi
12394 fi
12396 ;;
12397 esac
12399 if test "x$lt_cv_dlopen" != xno; then
12400 enable_dlopen=yes
12401 else
12402 enable_dlopen=no
12403 fi
12405 case $lt_cv_dlopen in
12406 dlopen)
12407 save_CPPFLAGS="$CPPFLAGS"
12408 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12410 save_LDFLAGS="$LDFLAGS"
12411 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12413 save_LIBS="$LIBS"
12414 LIBS="$lt_cv_dlopen_libs $LIBS"
12416 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12417 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12418 if test "${lt_cv_dlopen_self+set}" = set; then
12419 $as_echo_n "(cached) " >&6
12420 else
12421 if test "$cross_compiling" = yes; then :
12422 lt_cv_dlopen_self=cross
12423 else
12424 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12425 lt_status=$lt_dlunknown
12426 cat > conftest.$ac_ext <<_LT_EOF
12427 #line 12427 "configure"
12428 #include "confdefs.h"
12430 #if HAVE_DLFCN_H
12431 #include <dlfcn.h>
12432 #endif
12434 #include <stdio.h>
12436 #ifdef RTLD_GLOBAL
12437 # define LT_DLGLOBAL RTLD_GLOBAL
12438 #else
12439 # ifdef DL_GLOBAL
12440 # define LT_DLGLOBAL DL_GLOBAL
12441 # else
12442 # define LT_DLGLOBAL 0
12443 # endif
12444 #endif
12446 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12447 find out it does not work in some platform. */
12448 #ifndef LT_DLLAZY_OR_NOW
12449 # ifdef RTLD_LAZY
12450 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12451 # else
12452 # ifdef DL_LAZY
12453 # define LT_DLLAZY_OR_NOW DL_LAZY
12454 # else
12455 # ifdef RTLD_NOW
12456 # define LT_DLLAZY_OR_NOW RTLD_NOW
12457 # else
12458 # ifdef DL_NOW
12459 # define LT_DLLAZY_OR_NOW DL_NOW
12460 # else
12461 # define LT_DLLAZY_OR_NOW 0
12462 # endif
12463 # endif
12464 # endif
12465 # endif
12466 #endif
12468 void fnord() { int i=42;}
12469 int main ()
12470 {
12471 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12472 int status = $lt_dlunknown;
12474 if (self)
12475 {
12476 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12477 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12478 /* dlclose (self); */
12479 }
12480 else
12481 puts (dlerror ());
12483 return status;
12484 }
12485 _LT_EOF
12486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12487 (eval $ac_link) 2>&5
12488 ac_status=$?
12489 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12490 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12491 (./conftest; exit; ) >&5 2>/dev/null
12492 lt_status=$?
12493 case x$lt_status in
12494 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12495 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12496 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12497 esac
12498 else :
12499 # compilation failed
12500 lt_cv_dlopen_self=no
12501 fi
12502 fi
12503 rm -fr conftest*
12506 fi
12507 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12508 $as_echo "$lt_cv_dlopen_self" >&6; }
12510 if test "x$lt_cv_dlopen_self" = xyes; then
12511 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12512 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12513 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12514 if test "${lt_cv_dlopen_self_static+set}" = set; then
12515 $as_echo_n "(cached) " >&6
12516 else
12517 if test "$cross_compiling" = yes; then :
12518 lt_cv_dlopen_self_static=cross
12519 else
12520 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12521 lt_status=$lt_dlunknown
12522 cat > conftest.$ac_ext <<_LT_EOF
12523 #line 12523 "configure"
12524 #include "confdefs.h"
12526 #if HAVE_DLFCN_H
12527 #include <dlfcn.h>
12528 #endif
12530 #include <stdio.h>
12532 #ifdef RTLD_GLOBAL
12533 # define LT_DLGLOBAL RTLD_GLOBAL
12534 #else
12535 # ifdef DL_GLOBAL
12536 # define LT_DLGLOBAL DL_GLOBAL
12537 # else
12538 # define LT_DLGLOBAL 0
12539 # endif
12540 #endif
12542 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12543 find out it does not work in some platform. */
12544 #ifndef LT_DLLAZY_OR_NOW
12545 # ifdef RTLD_LAZY
12546 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12547 # else
12548 # ifdef DL_LAZY
12549 # define LT_DLLAZY_OR_NOW DL_LAZY
12550 # else
12551 # ifdef RTLD_NOW
12552 # define LT_DLLAZY_OR_NOW RTLD_NOW
12553 # else
12554 # ifdef DL_NOW
12555 # define LT_DLLAZY_OR_NOW DL_NOW
12556 # else
12557 # define LT_DLLAZY_OR_NOW 0
12558 # endif
12559 # endif
12560 # endif
12561 # endif
12562 #endif
12564 void fnord() { int i=42;}
12565 int main ()
12566 {
12567 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12568 int status = $lt_dlunknown;
12570 if (self)
12571 {
12572 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12573 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12574 /* dlclose (self); */
12575 }
12576 else
12577 puts (dlerror ());
12579 return status;
12580 }
12581 _LT_EOF
12582 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12583 (eval $ac_link) 2>&5
12584 ac_status=$?
12585 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12586 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12587 (./conftest; exit; ) >&5 2>/dev/null
12588 lt_status=$?
12589 case x$lt_status in
12590 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12591 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12592 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12593 esac
12594 else :
12595 # compilation failed
12596 lt_cv_dlopen_self_static=no
12597 fi
12598 fi
12599 rm -fr conftest*
12602 fi
12603 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12604 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12605 fi
12607 CPPFLAGS="$save_CPPFLAGS"
12608 LDFLAGS="$save_LDFLAGS"
12609 LIBS="$save_LIBS"
12610 ;;
12611 esac
12613 case $lt_cv_dlopen_self in
12614 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12615 *) enable_dlopen_self=unknown ;;
12616 esac
12618 case $lt_cv_dlopen_self_static in
12619 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12620 *) enable_dlopen_self_static=unknown ;;
12621 esac
12622 fi
12640 striplib=
12641 old_striplib=
12642 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12643 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12644 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12645 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12646 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12647 { $as_echo "$as_me:$LINENO: result: yes" >&5
12648 $as_echo "yes" >&6; }
12649 else
12650 # FIXME - insert some real tests, host_os isn't really good enough
12651 case $host_os in
12652 darwin*)
12653 if test -n "$STRIP" ; then
12654 striplib="$STRIP -x"
12655 old_striplib="$STRIP -S"
12656 { $as_echo "$as_me:$LINENO: result: yes" >&5
12657 $as_echo "yes" >&6; }
12658 else
12659 { $as_echo "$as_me:$LINENO: result: no" >&5
12660 $as_echo "no" >&6; }
12661 fi
12662 ;;
12663 *)
12664 { $as_echo "$as_me:$LINENO: result: no" >&5
12665 $as_echo "no" >&6; }
12666 ;;
12667 esac
12668 fi
12681 # Report which library types will actually be built
12682 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12683 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12684 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
12685 $as_echo "$can_build_shared" >&6; }
12687 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12688 $as_echo_n "checking whether to build shared libraries... " >&6; }
12689 test "$can_build_shared" = "no" && enable_shared=no
12691 # On AIX, shared libraries and static libraries use the same namespace, and
12692 # are all built from PIC.
12693 case $host_os in
12694 aix3*)
12695 test "$enable_shared" = yes && enable_static=no
12696 if test -n "$RANLIB"; then
12697 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12698 postinstall_cmds='$RANLIB $lib'
12699 fi
12700 ;;
12702 aix[4-9]*)
12703 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12704 test "$enable_shared" = yes && enable_static=no
12705 fi
12706 ;;
12707 esac
12708 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
12709 $as_echo "$enable_shared" >&6; }
12711 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12712 $as_echo_n "checking whether to build static libraries... " >&6; }
12713 # Make sure either enable_shared or enable_static is yes.
12714 test "$enable_shared" = yes || enable_static=yes
12715 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
12716 $as_echo "$enable_static" >&6; }
12721 fi
12722 ac_ext=c
12723 ac_cpp='$CPP $CPPFLAGS'
12724 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12725 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12726 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12728 CC="$lt_save_CC"
12742 ac_config_commands="$ac_config_commands libtool"
12747 # Only expand once:
12751 CFLAGS="$CFLAGS -D_GNU_SOURCE"
12753 { $as_echo "$as_me:$LINENO: checking if gcc likes the -Werror flag" >&5
12754 $as_echo_n "checking if gcc likes the -Werror flag... " >&6; }
12755 if test "${rd_cv_gcc_flag__Werror+set}" = set; then
12756 $as_echo_n "(cached) " >&6
12757 else
12758 cat >conftest.$ac_ext <<_ACEOF
12759 /* confdefs.h. */
12760 _ACEOF
12761 cat confdefs.h >>conftest.$ac_ext
12762 cat >>conftest.$ac_ext <<_ACEOF
12763 /* end confdefs.h. */
12765 int
12766 main ()
12767 {
12768 return 0
12769 ;
12770 return 0;
12771 }
12772 _ACEOF
12773 rm -f conftest.$ac_objext
12774 if { (ac_try="$ac_compile"
12775 case "(($ac_try" in
12776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12777 *) ac_try_echo=$ac_try;;
12778 esac
12779 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12780 $as_echo "$ac_try_echo") >&5
12781 (eval "$ac_compile") 2>conftest.er1
12782 ac_status=$?
12783 grep -v '^ *+' conftest.er1 >conftest.err
12784 rm -f conftest.er1
12785 cat conftest.err >&5
12786 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12787 (exit $ac_status); } && {
12788 test -z "$ac_c_werror_flag" ||
12789 test ! -s conftest.err
12790 } && test -s conftest.$ac_objext; then
12791 rd_cv_gcc_flag__Werror="yes"
12792 else
12793 $as_echo "$as_me: failed program was:" >&5
12794 sed 's/^/| /' conftest.$ac_ext >&5
12796 rd_cv_gcc_flag__Werror="no"
12797 fi
12799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12800 fi
12801 { $as_echo "$as_me:$LINENO: result: $rd_cv_gcc_flag__Werror" >&5
12802 $as_echo "$rd_cv_gcc_flag__Werror" >&6; }
12803 if test "x$rd_cv_gcc_flag__Werror" = "xyes"; then
12804 WERROR="-Werror"
12805 else
12806 WERROR=""
12807 fi
12810 if test "x$GCC" = "xyes"; then
12811 for flag in -fno-strict-aliasing -Wall -std=c99 -pedantic -Wundef -Wshadow -Wpointer-arith -Wcast-align -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wold-style-definition -W; do
12812 oCFLAGS="$CFLAGS"
12813 CFLAGS="$CFLAGS $flag"
12814 cachename=rd_cv_gcc_flag_`echo $flag|sed 's/[^A-Za-z]/_/g'`
12815 { $as_echo "$as_me:$LINENO: checking if gcc likes the $flag flag" >&5
12816 $as_echo_n "checking if gcc likes the $flag flag... " >&6; }
12817 if { as_var=$cachename; eval "test \"\${$as_var+set}\" = set"; }; then
12818 $as_echo_n "(cached) " >&6
12819 else
12820 cat >conftest.$ac_ext <<_ACEOF
12821 /* confdefs.h. */
12822 _ACEOF
12823 cat confdefs.h >>conftest.$ac_ext
12824 cat >>conftest.$ac_ext <<_ACEOF
12825 /* end confdefs.h. */
12827 int
12828 main ()
12829 {
12830 return 0
12831 ;
12832 return 0;
12833 }
12834 _ACEOF
12835 rm -f conftest.$ac_objext
12836 if { (ac_try="$ac_compile"
12837 case "(($ac_try" in
12838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12839 *) ac_try_echo=$ac_try;;
12840 esac
12841 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12842 $as_echo "$ac_try_echo") >&5
12843 (eval "$ac_compile") 2>conftest.er1
12844 ac_status=$?
12845 grep -v '^ *+' conftest.er1 >conftest.err
12846 rm -f conftest.er1
12847 cat conftest.err >&5
12848 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12849 (exit $ac_status); } && {
12850 test -z "$ac_c_werror_flag" ||
12851 test ! -s conftest.err
12852 } && test -s conftest.$ac_objext; then
12853 eval $cachename=yes
12854 else
12855 $as_echo "$as_me: failed program was:" >&5
12856 sed 's/^/| /' conftest.$ac_ext >&5
12858 eval $cachename=no
12859 fi
12861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12862 fi
12863 ac_res=`eval 'as_val=${'$cachename'}
12864 $as_echo "$as_val"'`
12865 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12866 $as_echo "$ac_res" >&6; }
12867 if eval test \$$cachename = no; then
12868 CFLAGS="$oCFLAGS"
12869 fi
12870 done
12871 fi
12878 case $TERM in
12879 # for the most important terminal types we directly know the sequences
12880 xterm|xterm*|vt220|vt220*)
12881 T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
12882 T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
12883 ;;
12884 vt100|vt100*|cygwin)
12885 T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
12886 T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
12887 ;;
12888 *)
12889 T_MD=''
12890 T_ME=''
12891 ;;
12892 esac
12893 { $as_echo "$as_me:$LINENO: result: " >&5
12894 $as_echo "" >&6; }
12895 { $as_echo "$as_me:$LINENO: result: ${T_MD}Checking for Header Files${T_ME}" >&5
12896 $as_echo "${T_MD}Checking for Header Files${T_ME}" >&6; }
12899 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
12900 $as_echo_n "checking for ANSI C header files... " >&6; }
12901 if test "${ac_cv_header_stdc+set}" = set; then
12902 $as_echo_n "(cached) " >&6
12903 else
12904 cat >conftest.$ac_ext <<_ACEOF
12905 /* confdefs.h. */
12906 _ACEOF
12907 cat confdefs.h >>conftest.$ac_ext
12908 cat >>conftest.$ac_ext <<_ACEOF
12909 /* end confdefs.h. */
12910 #include <stdlib.h>
12911 #include <stdarg.h>
12912 #include <string.h>
12913 #include <float.h>
12915 int
12916 main ()
12917 {
12919 ;
12920 return 0;
12921 }
12922 _ACEOF
12923 rm -f conftest.$ac_objext
12924 if { (ac_try="$ac_compile"
12925 case "(($ac_try" in
12926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12927 *) ac_try_echo=$ac_try;;
12928 esac
12929 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12930 $as_echo "$ac_try_echo") >&5
12931 (eval "$ac_compile") 2>conftest.er1
12932 ac_status=$?
12933 grep -v '^ *+' conftest.er1 >conftest.err
12934 rm -f conftest.er1
12935 cat conftest.err >&5
12936 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12937 (exit $ac_status); } && {
12938 test -z "$ac_c_werror_flag" ||
12939 test ! -s conftest.err
12940 } && test -s conftest.$ac_objext; then
12941 ac_cv_header_stdc=yes
12942 else
12943 $as_echo "$as_me: failed program was:" >&5
12944 sed 's/^/| /' conftest.$ac_ext >&5
12946 ac_cv_header_stdc=no
12947 fi
12949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12951 if test $ac_cv_header_stdc = yes; then
12952 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12953 cat >conftest.$ac_ext <<_ACEOF
12954 /* confdefs.h. */
12955 _ACEOF
12956 cat confdefs.h >>conftest.$ac_ext
12957 cat >>conftest.$ac_ext <<_ACEOF
12958 /* end confdefs.h. */
12959 #include <string.h>
12961 _ACEOF
12962 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12963 $EGREP "memchr" >/dev/null 2>&1; then
12964 :
12965 else
12966 ac_cv_header_stdc=no
12967 fi
12968 rm -f conftest*
12970 fi
12972 if test $ac_cv_header_stdc = yes; then
12973 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12974 cat >conftest.$ac_ext <<_ACEOF
12975 /* confdefs.h. */
12976 _ACEOF
12977 cat confdefs.h >>conftest.$ac_ext
12978 cat >>conftest.$ac_ext <<_ACEOF
12979 /* end confdefs.h. */
12980 #include <stdlib.h>
12982 _ACEOF
12983 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12984 $EGREP "free" >/dev/null 2>&1; then
12985 :
12986 else
12987 ac_cv_header_stdc=no
12988 fi
12989 rm -f conftest*
12991 fi
12993 if test $ac_cv_header_stdc = yes; then
12994 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12995 if test "$cross_compiling" = yes; then
12996 :
12997 else
12998 cat >conftest.$ac_ext <<_ACEOF
12999 /* confdefs.h. */
13000 _ACEOF
13001 cat confdefs.h >>conftest.$ac_ext
13002 cat >>conftest.$ac_ext <<_ACEOF
13003 /* end confdefs.h. */
13004 #include <ctype.h>
13005 #include <stdlib.h>
13006 #if ((' ' & 0x0FF) == 0x020)
13007 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13008 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13009 #else
13010 # define ISLOWER(c) \
13011 (('a' <= (c) && (c) <= 'i') \
13012 || ('j' <= (c) && (c) <= 'r') \
13013 || ('s' <= (c) && (c) <= 'z'))
13014 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13015 #endif
13017 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13018 int
13019 main ()
13020 {
13021 int i;
13022 for (i = 0; i < 256; i++)
13023 if (XOR (islower (i), ISLOWER (i))
13024 || toupper (i) != TOUPPER (i))
13025 return 2;
13026 return 0;
13027 }
13028 _ACEOF
13029 rm -f conftest$ac_exeext
13030 if { (ac_try="$ac_link"
13031 case "(($ac_try" in
13032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13033 *) ac_try_echo=$ac_try;;
13034 esac
13035 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13036 $as_echo "$ac_try_echo") >&5
13037 (eval "$ac_link") 2>&5
13038 ac_status=$?
13039 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13040 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13041 { (case "(($ac_try" in
13042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13043 *) ac_try_echo=$ac_try;;
13044 esac
13045 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13046 $as_echo "$ac_try_echo") >&5
13047 (eval "$ac_try") 2>&5
13048 ac_status=$?
13049 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13050 (exit $ac_status); }; }; then
13051 :
13052 else
13053 $as_echo "$as_me: program exited with status $ac_status" >&5
13054 $as_echo "$as_me: failed program was:" >&5
13055 sed 's/^/| /' conftest.$ac_ext >&5
13057 ( exit $ac_status )
13058 ac_cv_header_stdc=no
13059 fi
13060 rm -rf conftest.dSYM
13061 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13062 fi
13065 fi
13066 fi
13067 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
13068 $as_echo "$ac_cv_header_stdc" >&6; }
13069 if test $ac_cv_header_stdc = yes; then
13071 cat >>confdefs.h <<\_ACEOF
13072 #define STDC_HEADERS 1
13073 _ACEOF
13075 fi
13082 ac_header_dirent=no
13083 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13084 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13085 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13086 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
13087 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13088 $as_echo_n "(cached) " >&6
13089 else
13090 cat >conftest.$ac_ext <<_ACEOF
13091 /* confdefs.h. */
13092 _ACEOF
13093 cat confdefs.h >>conftest.$ac_ext
13094 cat >>conftest.$ac_ext <<_ACEOF
13095 /* end confdefs.h. */
13096 #include <sys/types.h>
13097 #include <$ac_hdr>
13099 int
13100 main ()
13101 {
13102 if ((DIR *) 0)
13103 return 0;
13104 ;
13105 return 0;
13106 }
13107 _ACEOF
13108 rm -f conftest.$ac_objext
13109 if { (ac_try="$ac_compile"
13110 case "(($ac_try" in
13111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13112 *) ac_try_echo=$ac_try;;
13113 esac
13114 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13115 $as_echo "$ac_try_echo") >&5
13116 (eval "$ac_compile") 2>conftest.er1
13117 ac_status=$?
13118 grep -v '^ *+' conftest.er1 >conftest.err
13119 rm -f conftest.er1
13120 cat conftest.err >&5
13121 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13122 (exit $ac_status); } && {
13123 test -z "$ac_c_werror_flag" ||
13124 test ! -s conftest.err
13125 } && test -s conftest.$ac_objext; then
13126 eval "$as_ac_Header=yes"
13127 else
13128 $as_echo "$as_me: failed program was:" >&5
13129 sed 's/^/| /' conftest.$ac_ext >&5
13131 eval "$as_ac_Header=no"
13132 fi
13134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13135 fi
13136 ac_res=`eval 'as_val=${'$as_ac_Header'}
13137 $as_echo "$as_val"'`
13138 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13139 $as_echo "$ac_res" >&6; }
13140 as_val=`eval 'as_val=${'$as_ac_Header'}
13141 $as_echo "$as_val"'`
13142 if test "x$as_val" = x""yes; then
13143 cat >>confdefs.h <<_ACEOF
13144 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13145 _ACEOF
13147 ac_header_dirent=$ac_hdr; break
13148 fi
13150 done
13151 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13152 if test $ac_header_dirent = dirent.h; then
13153 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
13154 $as_echo_n "checking for library containing opendir... " >&6; }
13155 if test "${ac_cv_search_opendir+set}" = set; then
13156 $as_echo_n "(cached) " >&6
13157 else
13158 ac_func_search_save_LIBS=$LIBS
13159 cat >conftest.$ac_ext <<_ACEOF
13160 /* confdefs.h. */
13161 _ACEOF
13162 cat confdefs.h >>conftest.$ac_ext
13163 cat >>conftest.$ac_ext <<_ACEOF
13164 /* end confdefs.h. */
13166 /* Override any GCC internal prototype to avoid an error.
13167 Use char because int might match the return type of a GCC
13168 builtin and then its argument prototype would still apply. */
13169 #ifdef __cplusplus
13170 extern "C"
13171 #endif
13172 char opendir ();
13173 int
13174 main ()
13175 {
13176 return opendir ();
13177 ;
13178 return 0;
13179 }
13180 _ACEOF
13181 for ac_lib in '' dir; do
13182 if test -z "$ac_lib"; then
13183 ac_res="none required"
13184 else
13185 ac_res=-l$ac_lib
13186 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13187 fi
13188 rm -f conftest.$ac_objext conftest$ac_exeext
13189 if { (ac_try="$ac_link"
13190 case "(($ac_try" in
13191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13192 *) ac_try_echo=$ac_try;;
13193 esac
13194 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13195 $as_echo "$ac_try_echo") >&5
13196 (eval "$ac_link") 2>conftest.er1
13197 ac_status=$?
13198 grep -v '^ *+' conftest.er1 >conftest.err
13199 rm -f conftest.er1
13200 cat conftest.err >&5
13201 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13202 (exit $ac_status); } && {
13203 test -z "$ac_c_werror_flag" ||
13204 test ! -s conftest.err
13205 } && test -s conftest$ac_exeext && {
13206 test "$cross_compiling" = yes ||
13207 $as_test_x conftest$ac_exeext
13208 }; then
13209 ac_cv_search_opendir=$ac_res
13210 else
13211 $as_echo "$as_me: failed program was:" >&5
13212 sed 's/^/| /' conftest.$ac_ext >&5
13215 fi
13217 rm -rf conftest.dSYM
13218 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13219 conftest$ac_exeext
13220 if test "${ac_cv_search_opendir+set}" = set; then
13221 break
13222 fi
13223 done
13224 if test "${ac_cv_search_opendir+set}" = set; then
13225 :
13226 else
13227 ac_cv_search_opendir=no
13228 fi
13229 rm conftest.$ac_ext
13230 LIBS=$ac_func_search_save_LIBS
13231 fi
13232 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13233 $as_echo "$ac_cv_search_opendir" >&6; }
13234 ac_res=$ac_cv_search_opendir
13235 if test "$ac_res" != no; then
13236 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13238 fi
13240 else
13241 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
13242 $as_echo_n "checking for library containing opendir... " >&6; }
13243 if test "${ac_cv_search_opendir+set}" = set; then
13244 $as_echo_n "(cached) " >&6
13245 else
13246 ac_func_search_save_LIBS=$LIBS
13247 cat >conftest.$ac_ext <<_ACEOF
13248 /* confdefs.h. */
13249 _ACEOF
13250 cat confdefs.h >>conftest.$ac_ext
13251 cat >>conftest.$ac_ext <<_ACEOF
13252 /* end confdefs.h. */
13254 /* Override any GCC internal prototype to avoid an error.
13255 Use char because int might match the return type of a GCC
13256 builtin and then its argument prototype would still apply. */
13257 #ifdef __cplusplus
13258 extern "C"
13259 #endif
13260 char opendir ();
13261 int
13262 main ()
13263 {
13264 return opendir ();
13265 ;
13266 return 0;
13267 }
13268 _ACEOF
13269 for ac_lib in '' x; do
13270 if test -z "$ac_lib"; then
13271 ac_res="none required"
13272 else
13273 ac_res=-l$ac_lib
13274 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13275 fi
13276 rm -f conftest.$ac_objext conftest$ac_exeext
13277 if { (ac_try="$ac_link"
13278 case "(($ac_try" in
13279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13280 *) ac_try_echo=$ac_try;;
13281 esac
13282 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13283 $as_echo "$ac_try_echo") >&5
13284 (eval "$ac_link") 2>conftest.er1
13285 ac_status=$?
13286 grep -v '^ *+' conftest.er1 >conftest.err
13287 rm -f conftest.er1
13288 cat conftest.err >&5
13289 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13290 (exit $ac_status); } && {
13291 test -z "$ac_c_werror_flag" ||
13292 test ! -s conftest.err
13293 } && test -s conftest$ac_exeext && {
13294 test "$cross_compiling" = yes ||
13295 $as_test_x conftest$ac_exeext
13296 }; then
13297 ac_cv_search_opendir=$ac_res
13298 else
13299 $as_echo "$as_me: failed program was:" >&5
13300 sed 's/^/| /' conftest.$ac_ext >&5
13303 fi
13305 rm -rf conftest.dSYM
13306 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13307 conftest$ac_exeext
13308 if test "${ac_cv_search_opendir+set}" = set; then
13309 break
13310 fi
13311 done
13312 if test "${ac_cv_search_opendir+set}" = set; then
13313 :
13314 else
13315 ac_cv_search_opendir=no
13316 fi
13317 rm conftest.$ac_ext
13318 LIBS=$ac_func_search_save_LIBS
13319 fi
13320 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13321 $as_echo "$ac_cv_search_opendir" >&6; }
13322 ac_res=$ac_cv_search_opendir
13323 if test "$ac_res" != no; then
13324 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13326 fi
13328 fi
13352 for ac_header in stdint.h inttypes.h libgen.h features.h sys/stat.h sys/types.h fcntl.h fp_class.h malloc.h unistd.h ieeefp.h math.h sys/times.h sys/param.h sys/resource.h signal.h float.h stdio.h stdlib.h errno.h string.h ctype.h
13353 do
13354 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13355 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13356 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13357 $as_echo_n "checking for $ac_header... " >&6; }
13358 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13359 $as_echo_n "(cached) " >&6
13360 fi
13361 ac_res=`eval 'as_val=${'$as_ac_Header'}
13362 $as_echo "$as_val"'`
13363 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13364 $as_echo "$ac_res" >&6; }
13365 else
13366 # Is the header compilable?
13367 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13368 $as_echo_n "checking $ac_header usability... " >&6; }
13369 cat >conftest.$ac_ext <<_ACEOF
13370 /* confdefs.h. */
13371 _ACEOF
13372 cat confdefs.h >>conftest.$ac_ext
13373 cat >>conftest.$ac_ext <<_ACEOF
13374 /* end confdefs.h. */
13375 $ac_includes_default
13376 #include <$ac_header>
13377 _ACEOF
13378 rm -f conftest.$ac_objext
13379 if { (ac_try="$ac_compile"
13380 case "(($ac_try" in
13381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13382 *) ac_try_echo=$ac_try;;
13383 esac
13384 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13385 $as_echo "$ac_try_echo") >&5
13386 (eval "$ac_compile") 2>conftest.er1
13387 ac_status=$?
13388 grep -v '^ *+' conftest.er1 >conftest.err
13389 rm -f conftest.er1
13390 cat conftest.err >&5
13391 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13392 (exit $ac_status); } && {
13393 test -z "$ac_c_werror_flag" ||
13394 test ! -s conftest.err
13395 } && test -s conftest.$ac_objext; then
13396 ac_header_compiler=yes
13397 else
13398 $as_echo "$as_me: failed program was:" >&5
13399 sed 's/^/| /' conftest.$ac_ext >&5
13401 ac_header_compiler=no
13402 fi
13404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13405 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13406 $as_echo "$ac_header_compiler" >&6; }
13408 # Is the header present?
13409 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13410 $as_echo_n "checking $ac_header presence... " >&6; }
13411 cat >conftest.$ac_ext <<_ACEOF
13412 /* confdefs.h. */
13413 _ACEOF
13414 cat confdefs.h >>conftest.$ac_ext
13415 cat >>conftest.$ac_ext <<_ACEOF
13416 /* end confdefs.h. */
13417 #include <$ac_header>
13418 _ACEOF
13419 if { (ac_try="$ac_cpp conftest.$ac_ext"
13420 case "(($ac_try" in
13421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13422 *) ac_try_echo=$ac_try;;
13423 esac
13424 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13425 $as_echo "$ac_try_echo") >&5
13426 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13427 ac_status=$?
13428 grep -v '^ *+' conftest.er1 >conftest.err
13429 rm -f conftest.er1
13430 cat conftest.err >&5
13431 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13432 (exit $ac_status); } >/dev/null && {
13433 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13434 test ! -s conftest.err
13435 }; then
13436 ac_header_preproc=yes
13437 else
13438 $as_echo "$as_me: failed program was:" >&5
13439 sed 's/^/| /' conftest.$ac_ext >&5
13441 ac_header_preproc=no
13442 fi
13444 rm -f conftest.err conftest.$ac_ext
13445 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13446 $as_echo "$ac_header_preproc" >&6; }
13448 # So? What about this header?
13449 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13450 yes:no: )
13451 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13452 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13453 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13454 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13455 ac_header_preproc=yes
13456 ;;
13457 no:yes:* )
13458 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13459 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13460 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13461 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13462 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13463 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13464 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13465 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13466 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13467 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13468 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13469 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13471 ;;
13472 esac
13473 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13474 $as_echo_n "checking for $ac_header... " >&6; }
13475 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13476 $as_echo_n "(cached) " >&6
13477 else
13478 eval "$as_ac_Header=\$ac_header_preproc"
13479 fi
13480 ac_res=`eval 'as_val=${'$as_ac_Header'}
13481 $as_echo "$as_val"'`
13482 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13483 $as_echo "$ac_res" >&6; }
13485 fi
13486 as_val=`eval 'as_val=${'$as_ac_Header'}
13487 $as_echo "$as_val"'`
13488 if test "x$as_val" = x""yes; then
13489 cat >>confdefs.h <<_ACEOF
13490 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13491 _ACEOF
13493 fi
13495 done
13498 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
13499 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13500 if test "${ac_cv_c_const+set}" = set; then
13501 $as_echo_n "(cached) " >&6
13502 else
13503 cat >conftest.$ac_ext <<_ACEOF
13504 /* confdefs.h. */
13505 _ACEOF
13506 cat confdefs.h >>conftest.$ac_ext
13507 cat >>conftest.$ac_ext <<_ACEOF
13508 /* end confdefs.h. */
13510 int
13511 main ()
13512 {
13513 /* FIXME: Include the comments suggested by Paul. */
13514 #ifndef __cplusplus
13515 /* Ultrix mips cc rejects this. */
13516 typedef int charset[2];
13517 const charset cs;
13518 /* SunOS 4.1.1 cc rejects this. */
13519 char const *const *pcpcc;
13520 char **ppc;
13521 /* NEC SVR4.0.2 mips cc rejects this. */
13522 struct point {int x, y;};
13523 static struct point const zero = {0,0};
13524 /* AIX XL C 1.02.0.0 rejects this.
13525 It does not let you subtract one const X* pointer from another in
13526 an arm of an if-expression whose if-part is not a constant
13527 expression */
13528 const char *g = "string";
13529 pcpcc = &g + (g ? g-g : 0);
13530 /* HPUX 7.0 cc rejects these. */
13531 ++pcpcc;
13532 ppc = (char**) pcpcc;
13533 pcpcc = (char const *const *) ppc;
13534 { /* SCO 3.2v4 cc rejects this. */
13535 char *t;
13536 char const *s = 0 ? (char *) 0 : (char const *) 0;
13538 *t++ = 0;
13539 if (s) return 0;
13540 }
13541 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13542 int x[] = {25, 17};
13543 const int *foo = &x[0];
13544 ++foo;
13545 }
13546 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13547 typedef const int *iptr;
13548 iptr p = 0;
13549 ++p;
13550 }
13551 { /* AIX XL C 1.02.0.0 rejects this saying
13552 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13553 struct s { int j; const int *ap[3]; };
13554 struct s *b; b->j = 5;
13555 }
13556 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13557 const int foo = 10;
13558 if (!foo) return 0;
13559 }
13560 return !cs[0] && !zero.x;
13561 #endif
13563 ;
13564 return 0;
13565 }
13566 _ACEOF
13567 rm -f conftest.$ac_objext
13568 if { (ac_try="$ac_compile"
13569 case "(($ac_try" in
13570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13571 *) ac_try_echo=$ac_try;;
13572 esac
13573 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13574 $as_echo "$ac_try_echo") >&5
13575 (eval "$ac_compile") 2>conftest.er1
13576 ac_status=$?
13577 grep -v '^ *+' conftest.er1 >conftest.err
13578 rm -f conftest.er1
13579 cat conftest.err >&5
13580 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13581 (exit $ac_status); } && {
13582 test -z "$ac_c_werror_flag" ||
13583 test ! -s conftest.err
13584 } && test -s conftest.$ac_objext; then
13585 ac_cv_c_const=yes
13586 else
13587 $as_echo "$as_me: failed program was:" >&5
13588 sed 's/^/| /' conftest.$ac_ext >&5
13590 ac_cv_c_const=no
13591 fi
13593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13594 fi
13595 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
13596 $as_echo "$ac_cv_c_const" >&6; }
13597 if test $ac_cv_c_const = no; then
13599 cat >>confdefs.h <<\_ACEOF
13600 #define const /**/
13601 _ACEOF
13603 fi
13605 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
13606 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
13607 if test "${ac_cv_header_time+set}" = set; then
13608 $as_echo_n "(cached) " >&6
13609 else
13610 cat >conftest.$ac_ext <<_ACEOF
13611 /* confdefs.h. */
13612 _ACEOF
13613 cat confdefs.h >>conftest.$ac_ext
13614 cat >>conftest.$ac_ext <<_ACEOF
13615 /* end confdefs.h. */
13616 #include <sys/types.h>
13617 #include <sys/time.h>
13618 #include <time.h>
13620 int
13621 main ()
13622 {
13623 if ((struct tm *) 0)
13624 return 0;
13625 ;
13626 return 0;
13627 }
13628 _ACEOF
13629 rm -f conftest.$ac_objext
13630 if { (ac_try="$ac_compile"
13631 case "(($ac_try" in
13632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13633 *) ac_try_echo=$ac_try;;
13634 esac
13635 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13636 $as_echo "$ac_try_echo") >&5
13637 (eval "$ac_compile") 2>conftest.er1
13638 ac_status=$?
13639 grep -v '^ *+' conftest.er1 >conftest.err
13640 rm -f conftest.er1
13641 cat conftest.err >&5
13642 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13643 (exit $ac_status); } && {
13644 test -z "$ac_c_werror_flag" ||
13645 test ! -s conftest.err
13646 } && test -s conftest.$ac_objext; then
13647 ac_cv_header_time=yes
13648 else
13649 $as_echo "$as_me: failed program was:" >&5
13650 sed 's/^/| /' conftest.$ac_ext >&5
13652 ac_cv_header_time=no
13653 fi
13655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13656 fi
13657 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
13658 $as_echo "$ac_cv_header_time" >&6; }
13659 if test $ac_cv_header_time = yes; then
13661 cat >>confdefs.h <<\_ACEOF
13662 #define TIME_WITH_SYS_TIME 1
13663 _ACEOF
13665 fi
13667 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
13668 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
13669 if test "${ac_cv_struct_tm+set}" = set; then
13670 $as_echo_n "(cached) " >&6
13671 else
13672 cat >conftest.$ac_ext <<_ACEOF
13673 /* confdefs.h. */
13674 _ACEOF
13675 cat confdefs.h >>conftest.$ac_ext
13676 cat >>conftest.$ac_ext <<_ACEOF
13677 /* end confdefs.h. */
13678 #include <sys/types.h>
13679 #include <time.h>
13681 int
13682 main ()
13683 {
13684 struct tm tm;
13685 int *p = &tm.tm_sec;
13686 return !p;
13687 ;
13688 return 0;
13689 }
13690 _ACEOF
13691 rm -f conftest.$ac_objext
13692 if { (ac_try="$ac_compile"
13693 case "(($ac_try" in
13694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13695 *) ac_try_echo=$ac_try;;
13696 esac
13697 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13698 $as_echo "$ac_try_echo") >&5
13699 (eval "$ac_compile") 2>conftest.er1
13700 ac_status=$?
13701 grep -v '^ *+' conftest.er1 >conftest.err
13702 rm -f conftest.er1
13703 cat conftest.err >&5
13704 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13705 (exit $ac_status); } && {
13706 test -z "$ac_c_werror_flag" ||
13707 test ! -s conftest.err
13708 } && test -s conftest.$ac_objext; then
13709 ac_cv_struct_tm=time.h
13710 else
13711 $as_echo "$as_me: failed program was:" >&5
13712 sed 's/^/| /' conftest.$ac_ext >&5
13714 ac_cv_struct_tm=sys/time.h
13715 fi
13717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13718 fi
13719 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
13720 $as_echo "$ac_cv_struct_tm" >&6; }
13721 if test $ac_cv_struct_tm = sys/time.h; then
13723 cat >>confdefs.h <<\_ACEOF
13724 #define TM_IN_SYS_TIME 1
13725 _ACEOF
13727 fi
13731 case $TERM in
13732 # for the most important terminal types we directly know the sequences
13733 xterm|xterm*|vt220|vt220*)
13734 T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
13735 T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
13736 ;;
13737 vt100|vt100*|cygwin)
13738 T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
13739 T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
13740 ;;
13741 *)
13742 T_MD=''
13743 T_ME=''
13744 ;;
13745 esac
13746 { $as_echo "$as_me:$LINENO: result: " >&5
13747 $as_echo "" >&6; }
13748 { $as_echo "$as_me:$LINENO: result: ${T_MD}Test Library Functions${T_ME}" >&5
13749 $as_echo "${T_MD}Test Library Functions${T_ME}" >&6; }
13752 { $as_echo "$as_me:$LINENO: checking for acos" >&5
13753 $as_echo_n "checking for acos... " >&6; }
13754 if test "${ac_cv_func_acos+set}" = set; then
13755 $as_echo_n "(cached) " >&6
13756 else
13757 cat >conftest.$ac_ext <<_ACEOF
13758 /* confdefs.h. */
13759 _ACEOF
13760 cat confdefs.h >>conftest.$ac_ext
13761 cat >>conftest.$ac_ext <<_ACEOF
13762 /* end confdefs.h. */
13763 /* Define acos to an innocuous variant, in case <limits.h> declares acos.
13764 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13765 #define acos innocuous_acos
13767 /* System header to define __stub macros and hopefully few prototypes,
13768 which can conflict with char acos (); below.
13769 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13770 <limits.h> exists even on freestanding compilers. */
13772 #ifdef __STDC__
13773 # include <limits.h>
13774 #else
13775 # include <assert.h>
13776 #endif
13778 #undef acos
13780 /* Override any GCC internal prototype to avoid an error.
13781 Use char because int might match the return type of a GCC
13782 builtin and then its argument prototype would still apply. */
13783 #ifdef __cplusplus
13784 extern "C"
13785 #endif
13786 char acos ();
13787 /* The GNU C library defines this for functions which it implements
13788 to always fail with ENOSYS. Some functions are actually named
13789 something starting with __ and the normal name is an alias. */
13790 #if defined __stub_acos || defined __stub___acos
13791 choke me
13792 #endif
13794 int
13795 main ()
13796 {
13797 return acos ();
13798 ;
13799 return 0;
13800 }
13801 _ACEOF
13802 rm -f conftest.$ac_objext conftest$ac_exeext
13803 if { (ac_try="$ac_link"
13804 case "(($ac_try" in
13805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13806 *) ac_try_echo=$ac_try;;
13807 esac
13808 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13809 $as_echo "$ac_try_echo") >&5
13810 (eval "$ac_link") 2>conftest.er1
13811 ac_status=$?
13812 grep -v '^ *+' conftest.er1 >conftest.err
13813 rm -f conftest.er1
13814 cat conftest.err >&5
13815 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13816 (exit $ac_status); } && {
13817 test -z "$ac_c_werror_flag" ||
13818 test ! -s conftest.err
13819 } && test -s conftest$ac_exeext && {
13820 test "$cross_compiling" = yes ||
13821 $as_test_x conftest$ac_exeext
13822 }; then
13823 ac_cv_func_acos=yes
13824 else
13825 $as_echo "$as_me: failed program was:" >&5
13826 sed 's/^/| /' conftest.$ac_ext >&5
13828 ac_cv_func_acos=no
13829 fi
13831 rm -rf conftest.dSYM
13832 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13833 conftest$ac_exeext conftest.$ac_ext
13834 fi
13835 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_acos" >&5
13836 $as_echo "$ac_cv_func_acos" >&6; }
13837 if test "x$ac_cv_func_acos" = x""yes; then
13838 :
13839 else
13841 { $as_echo "$as_me:$LINENO: checking for acos in -lm" >&5
13842 $as_echo_n "checking for acos in -lm... " >&6; }
13843 if test "${ac_cv_lib_m_acos+set}" = set; then
13844 $as_echo_n "(cached) " >&6
13845 else
13846 ac_check_lib_save_LIBS=$LIBS
13847 LIBS="-lm $LIBS"
13848 cat >conftest.$ac_ext <<_ACEOF
13849 /* confdefs.h. */
13850 _ACEOF
13851 cat confdefs.h >>conftest.$ac_ext
13852 cat >>conftest.$ac_ext <<_ACEOF
13853 /* end confdefs.h. */
13855 /* Override any GCC internal prototype to avoid an error.
13856 Use char because int might match the return type of a GCC
13857 builtin and then its argument prototype would still apply. */
13858 #ifdef __cplusplus
13859 extern "C"
13860 #endif
13861 char acos ();
13862 int
13863 main ()
13864 {
13865 return acos ();
13866 ;
13867 return 0;
13868 }
13869 _ACEOF
13870 rm -f conftest.$ac_objext conftest$ac_exeext
13871 if { (ac_try="$ac_link"
13872 case "(($ac_try" in
13873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13874 *) ac_try_echo=$ac_try;;
13875 esac
13876 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13877 $as_echo "$ac_try_echo") >&5
13878 (eval "$ac_link") 2>conftest.er1
13879 ac_status=$?
13880 grep -v '^ *+' conftest.er1 >conftest.err
13881 rm -f conftest.er1
13882 cat conftest.err >&5
13883 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13884 (exit $ac_status); } && {
13885 test -z "$ac_c_werror_flag" ||
13886 test ! -s conftest.err
13887 } && test -s conftest$ac_exeext && {
13888 test "$cross_compiling" = yes ||
13889 $as_test_x conftest$ac_exeext
13890 }; then
13891 ac_cv_lib_m_acos=yes
13892 else
13893 $as_echo "$as_me: failed program was:" >&5
13894 sed 's/^/| /' conftest.$ac_ext >&5
13896 ac_cv_lib_m_acos=no
13897 fi
13899 rm -rf conftest.dSYM
13900 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13901 conftest$ac_exeext conftest.$ac_ext
13902 LIBS=$ac_check_lib_save_LIBS
13903 fi
13904 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_acos" >&5
13905 $as_echo "$ac_cv_lib_m_acos" >&6; }
13906 if test "x$ac_cv_lib_m_acos" = x""yes; then
13907 cat >>confdefs.h <<_ACEOF
13908 #define HAVE_LIBM 1
13909 _ACEOF
13911 LIBS="-lm $LIBS"
13913 fi
13915 fi
13919 eval `./libtool --config | grep pic_flag`
13920 CFLAGS="$CFLAGS $pic_flag"
13924 for ac_func in strftime
13925 do
13926 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13927 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13928 $as_echo_n "checking for $ac_func... " >&6; }
13929 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13930 $as_echo_n "(cached) " >&6
13931 else
13932 cat >conftest.$ac_ext <<_ACEOF
13933 /* confdefs.h. */
13934 _ACEOF
13935 cat confdefs.h >>conftest.$ac_ext
13936 cat >>conftest.$ac_ext <<_ACEOF
13937 /* end confdefs.h. */
13938 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13939 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13940 #define $ac_func innocuous_$ac_func
13942 /* System header to define __stub macros and hopefully few prototypes,
13943 which can conflict with char $ac_func (); below.
13944 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13945 <limits.h> exists even on freestanding compilers. */
13947 #ifdef __STDC__
13948 # include <limits.h>
13949 #else
13950 # include <assert.h>
13951 #endif
13953 #undef $ac_func
13955 /* Override any GCC internal prototype to avoid an error.
13956 Use char because int might match the return type of a GCC
13957 builtin and then its argument prototype would still apply. */
13958 #ifdef __cplusplus
13959 extern "C"
13960 #endif
13961 char $ac_func ();
13962 /* The GNU C library defines this for functions which it implements
13963 to always fail with ENOSYS. Some functions are actually named
13964 something starting with __ and the normal name is an alias. */
13965 #if defined __stub_$ac_func || defined __stub___$ac_func
13966 choke me
13967 #endif
13969 int
13970 main ()
13971 {
13972 return $ac_func ();
13973 ;
13974 return 0;
13975 }
13976 _ACEOF
13977 rm -f conftest.$ac_objext conftest$ac_exeext
13978 if { (ac_try="$ac_link"
13979 case "(($ac_try" in
13980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13981 *) ac_try_echo=$ac_try;;
13982 esac
13983 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13984 $as_echo "$ac_try_echo") >&5
13985 (eval "$ac_link") 2>conftest.er1
13986 ac_status=$?
13987 grep -v '^ *+' conftest.er1 >conftest.err
13988 rm -f conftest.er1
13989 cat conftest.err >&5
13990 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13991 (exit $ac_status); } && {
13992 test -z "$ac_c_werror_flag" ||
13993 test ! -s conftest.err
13994 } && test -s conftest$ac_exeext && {
13995 test "$cross_compiling" = yes ||
13996 $as_test_x conftest$ac_exeext
13997 }; then
13998 eval "$as_ac_var=yes"
13999 else
14000 $as_echo "$as_me: failed program was:" >&5
14001 sed 's/^/| /' conftest.$ac_ext >&5
14003 eval "$as_ac_var=no"
14004 fi
14006 rm -rf conftest.dSYM
14007 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14008 conftest$ac_exeext conftest.$ac_ext
14009 fi
14010 ac_res=`eval 'as_val=${'$as_ac_var'}
14011 $as_echo "$as_val"'`
14012 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14013 $as_echo "$ac_res" >&6; }
14014 as_val=`eval 'as_val=${'$as_ac_var'}
14015 $as_echo "$as_val"'`
14016 if test "x$as_val" = x""yes; then
14017 cat >>confdefs.h <<_ACEOF
14018 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14019 _ACEOF
14021 else
14022 # strftime is in -lintl on SCO UNIX.
14023 { $as_echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
14024 $as_echo_n "checking for strftime in -lintl... " >&6; }
14025 if test "${ac_cv_lib_intl_strftime+set}" = set; then
14026 $as_echo_n "(cached) " >&6
14027 else
14028 ac_check_lib_save_LIBS=$LIBS
14029 LIBS="-lintl $LIBS"
14030 cat >conftest.$ac_ext <<_ACEOF
14031 /* confdefs.h. */
14032 _ACEOF
14033 cat confdefs.h >>conftest.$ac_ext
14034 cat >>conftest.$ac_ext <<_ACEOF
14035 /* end confdefs.h. */
14037 /* Override any GCC internal prototype to avoid an error.
14038 Use char because int might match the return type of a GCC
14039 builtin and then its argument prototype would still apply. */
14040 #ifdef __cplusplus
14041 extern "C"
14042 #endif
14043 char strftime ();
14044 int
14045 main ()
14046 {
14047 return strftime ();
14048 ;
14049 return 0;
14050 }
14051 _ACEOF
14052 rm -f conftest.$ac_objext conftest$ac_exeext
14053 if { (ac_try="$ac_link"
14054 case "(($ac_try" in
14055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14056 *) ac_try_echo=$ac_try;;
14057 esac
14058 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14059 $as_echo "$ac_try_echo") >&5
14060 (eval "$ac_link") 2>conftest.er1
14061 ac_status=$?
14062 grep -v '^ *+' conftest.er1 >conftest.err
14063 rm -f conftest.er1
14064 cat conftest.err >&5
14065 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14066 (exit $ac_status); } && {
14067 test -z "$ac_c_werror_flag" ||
14068 test ! -s conftest.err
14069 } && test -s conftest$ac_exeext && {
14070 test "$cross_compiling" = yes ||
14071 $as_test_x conftest$ac_exeext
14072 }; then
14073 ac_cv_lib_intl_strftime=yes
14074 else
14075 $as_echo "$as_me: failed program was:" >&5
14076 sed 's/^/| /' conftest.$ac_ext >&5
14078 ac_cv_lib_intl_strftime=no
14079 fi
14081 rm -rf conftest.dSYM
14082 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14083 conftest$ac_exeext conftest.$ac_ext
14084 LIBS=$ac_check_lib_save_LIBS
14085 fi
14086 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
14087 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
14088 if test "x$ac_cv_lib_intl_strftime" = x""yes; then
14089 cat >>confdefs.h <<\_ACEOF
14090 #define HAVE_STRFTIME 1
14091 _ACEOF
14093 LIBS="-lintl $LIBS"
14094 fi
14096 fi
14097 done
14100 for ac_func in vprintf
14101 do
14102 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14103 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14104 $as_echo_n "checking for $ac_func... " >&6; }
14105 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14106 $as_echo_n "(cached) " >&6
14107 else
14108 cat >conftest.$ac_ext <<_ACEOF
14109 /* confdefs.h. */
14110 _ACEOF
14111 cat confdefs.h >>conftest.$ac_ext
14112 cat >>conftest.$ac_ext <<_ACEOF
14113 /* end confdefs.h. */
14114 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14115 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14116 #define $ac_func innocuous_$ac_func
14118 /* System header to define __stub macros and hopefully few prototypes,
14119 which can conflict with char $ac_func (); below.
14120 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14121 <limits.h> exists even on freestanding compilers. */
14123 #ifdef __STDC__
14124 # include <limits.h>
14125 #else
14126 # include <assert.h>
14127 #endif
14129 #undef $ac_func
14131 /* Override any GCC internal prototype to avoid an error.
14132 Use char because int might match the return type of a GCC
14133 builtin and then its argument prototype would still apply. */
14134 #ifdef __cplusplus
14135 extern "C"
14136 #endif
14137 char $ac_func ();
14138 /* The GNU C library defines this for functions which it implements
14139 to always fail with ENOSYS. Some functions are actually named
14140 something starting with __ and the normal name is an alias. */
14141 #if defined __stub_$ac_func || defined __stub___$ac_func
14142 choke me
14143 #endif
14145 int
14146 main ()
14147 {
14148 return $ac_func ();
14149 ;
14150 return 0;
14151 }
14152 _ACEOF
14153 rm -f conftest.$ac_objext conftest$ac_exeext
14154 if { (ac_try="$ac_link"
14155 case "(($ac_try" in
14156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14157 *) ac_try_echo=$ac_try;;
14158 esac
14159 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14160 $as_echo "$ac_try_echo") >&5
14161 (eval "$ac_link") 2>conftest.er1
14162 ac_status=$?
14163 grep -v '^ *+' conftest.er1 >conftest.err
14164 rm -f conftest.er1
14165 cat conftest.err >&5
14166 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14167 (exit $ac_status); } && {
14168 test -z "$ac_c_werror_flag" ||
14169 test ! -s conftest.err
14170 } && test -s conftest$ac_exeext && {
14171 test "$cross_compiling" = yes ||
14172 $as_test_x conftest$ac_exeext
14173 }; then
14174 eval "$as_ac_var=yes"
14175 else
14176 $as_echo "$as_me: failed program was:" >&5
14177 sed 's/^/| /' conftest.$ac_ext >&5
14179 eval "$as_ac_var=no"
14180 fi
14182 rm -rf conftest.dSYM
14183 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14184 conftest$ac_exeext conftest.$ac_ext
14185 fi
14186 ac_res=`eval 'as_val=${'$as_ac_var'}
14187 $as_echo "$as_val"'`
14188 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14189 $as_echo "$ac_res" >&6; }
14190 as_val=`eval 'as_val=${'$as_ac_var'}
14191 $as_echo "$as_val"'`
14192 if test "x$as_val" = x""yes; then
14193 cat >>confdefs.h <<_ACEOF
14194 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14195 _ACEOF
14197 { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
14198 $as_echo_n "checking for _doprnt... " >&6; }
14199 if test "${ac_cv_func__doprnt+set}" = set; then
14200 $as_echo_n "(cached) " >&6
14201 else
14202 cat >conftest.$ac_ext <<_ACEOF
14203 /* confdefs.h. */
14204 _ACEOF
14205 cat confdefs.h >>conftest.$ac_ext
14206 cat >>conftest.$ac_ext <<_ACEOF
14207 /* end confdefs.h. */
14208 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
14209 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14210 #define _doprnt innocuous__doprnt
14212 /* System header to define __stub macros and hopefully few prototypes,
14213 which can conflict with char _doprnt (); below.
14214 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14215 <limits.h> exists even on freestanding compilers. */
14217 #ifdef __STDC__
14218 # include <limits.h>
14219 #else
14220 # include <assert.h>
14221 #endif
14223 #undef _doprnt
14225 /* Override any GCC internal prototype to avoid an error.
14226 Use char because int might match the return type of a GCC
14227 builtin and then its argument prototype would still apply. */
14228 #ifdef __cplusplus
14229 extern "C"
14230 #endif
14231 char _doprnt ();
14232 /* The GNU C library defines this for functions which it implements
14233 to always fail with ENOSYS. Some functions are actually named
14234 something starting with __ and the normal name is an alias. */
14235 #if defined __stub__doprnt || defined __stub____doprnt
14236 choke me
14237 #endif
14239 int
14240 main ()
14241 {
14242 return _doprnt ();
14243 ;
14244 return 0;
14245 }
14246 _ACEOF
14247 rm -f conftest.$ac_objext conftest$ac_exeext
14248 if { (ac_try="$ac_link"
14249 case "(($ac_try" in
14250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14251 *) ac_try_echo=$ac_try;;
14252 esac
14253 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14254 $as_echo "$ac_try_echo") >&5
14255 (eval "$ac_link") 2>conftest.er1
14256 ac_status=$?
14257 grep -v '^ *+' conftest.er1 >conftest.err
14258 rm -f conftest.er1
14259 cat conftest.err >&5
14260 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14261 (exit $ac_status); } && {
14262 test -z "$ac_c_werror_flag" ||
14263 test ! -s conftest.err
14264 } && test -s conftest$ac_exeext && {
14265 test "$cross_compiling" = yes ||
14266 $as_test_x conftest$ac_exeext
14267 }; then
14268 ac_cv_func__doprnt=yes
14269 else
14270 $as_echo "$as_me: failed program was:" >&5
14271 sed 's/^/| /' conftest.$ac_ext >&5
14273 ac_cv_func__doprnt=no
14274 fi
14276 rm -rf conftest.dSYM
14277 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14278 conftest$ac_exeext conftest.$ac_ext
14279 fi
14280 { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
14281 $as_echo "$ac_cv_func__doprnt" >&6; }
14282 if test "x$ac_cv_func__doprnt" = x""yes; then
14284 cat >>confdefs.h <<\_ACEOF
14285 #define HAVE_DOPRNT 1
14286 _ACEOF
14288 fi
14290 fi
14291 done
14296 { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
14297 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14298 if test "${ac_cv_c_bigendian+set}" = set; then
14299 $as_echo_n "(cached) " >&6
14300 else
14301 ac_cv_c_bigendian=unknown
14302 # See if we're dealing with a universal compiler.
14303 cat >conftest.$ac_ext <<_ACEOF
14304 /* confdefs.h. */
14305 _ACEOF
14306 cat confdefs.h >>conftest.$ac_ext
14307 cat >>conftest.$ac_ext <<_ACEOF
14308 /* end confdefs.h. */
14309 #ifndef __APPLE_CC__
14310 not a universal capable compiler
14311 #endif
14312 typedef int dummy;
14314 _ACEOF
14315 rm -f conftest.$ac_objext
14316 if { (ac_try="$ac_compile"
14317 case "(($ac_try" in
14318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14319 *) ac_try_echo=$ac_try;;
14320 esac
14321 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14322 $as_echo "$ac_try_echo") >&5
14323 (eval "$ac_compile") 2>conftest.er1
14324 ac_status=$?
14325 grep -v '^ *+' conftest.er1 >conftest.err
14326 rm -f conftest.er1
14327 cat conftest.err >&5
14328 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14329 (exit $ac_status); } && {
14330 test -z "$ac_c_werror_flag" ||
14331 test ! -s conftest.err
14332 } && test -s conftest.$ac_objext; then
14334 # Check for potential -arch flags. It is not universal unless
14335 # there are some -arch flags. Note that *ppc* also matches
14336 # ppc64. This check is also rather less than ideal.
14337 case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #(
14338 *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
14339 esac
14340 else
14341 $as_echo "$as_me: failed program was:" >&5
14342 sed 's/^/| /' conftest.$ac_ext >&5
14345 fi
14347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14348 if test $ac_cv_c_bigendian = unknown; then
14349 # See if sys/param.h defines the BYTE_ORDER macro.
14350 cat >conftest.$ac_ext <<_ACEOF
14351 /* confdefs.h. */
14352 _ACEOF
14353 cat confdefs.h >>conftest.$ac_ext
14354 cat >>conftest.$ac_ext <<_ACEOF
14355 /* end confdefs.h. */
14356 #include <sys/types.h>
14357 #include <sys/param.h>
14359 int
14360 main ()
14361 {
14362 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14363 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14364 && LITTLE_ENDIAN)
14365 bogus endian macros
14366 #endif
14368 ;
14369 return 0;
14370 }
14371 _ACEOF
14372 rm -f conftest.$ac_objext
14373 if { (ac_try="$ac_compile"
14374 case "(($ac_try" in
14375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14376 *) ac_try_echo=$ac_try;;
14377 esac
14378 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14379 $as_echo "$ac_try_echo") >&5
14380 (eval "$ac_compile") 2>conftest.er1
14381 ac_status=$?
14382 grep -v '^ *+' conftest.er1 >conftest.err
14383 rm -f conftest.er1
14384 cat conftest.err >&5
14385 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14386 (exit $ac_status); } && {
14387 test -z "$ac_c_werror_flag" ||
14388 test ! -s conftest.err
14389 } && test -s conftest.$ac_objext; then
14390 # It does; now see whether it defined to BIG_ENDIAN or not.
14391 cat >conftest.$ac_ext <<_ACEOF
14392 /* confdefs.h. */
14393 _ACEOF
14394 cat confdefs.h >>conftest.$ac_ext
14395 cat >>conftest.$ac_ext <<_ACEOF
14396 /* end confdefs.h. */
14397 #include <sys/types.h>
14398 #include <sys/param.h>
14400 int
14401 main ()
14402 {
14403 #if BYTE_ORDER != BIG_ENDIAN
14404 not big endian
14405 #endif
14407 ;
14408 return 0;
14409 }
14410 _ACEOF
14411 rm -f conftest.$ac_objext
14412 if { (ac_try="$ac_compile"
14413 case "(($ac_try" in
14414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14415 *) ac_try_echo=$ac_try;;
14416 esac
14417 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14418 $as_echo "$ac_try_echo") >&5
14419 (eval "$ac_compile") 2>conftest.er1
14420 ac_status=$?
14421 grep -v '^ *+' conftest.er1 >conftest.err
14422 rm -f conftest.er1
14423 cat conftest.err >&5
14424 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14425 (exit $ac_status); } && {
14426 test -z "$ac_c_werror_flag" ||
14427 test ! -s conftest.err
14428 } && test -s conftest.$ac_objext; then
14429 ac_cv_c_bigendian=yes
14430 else
14431 $as_echo "$as_me: failed program was:" >&5
14432 sed 's/^/| /' conftest.$ac_ext >&5
14434 ac_cv_c_bigendian=no
14435 fi
14437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14438 else
14439 $as_echo "$as_me: failed program was:" >&5
14440 sed 's/^/| /' conftest.$ac_ext >&5
14443 fi
14445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14446 fi
14447 if test $ac_cv_c_bigendian = unknown; then
14448 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14449 cat >conftest.$ac_ext <<_ACEOF
14450 /* confdefs.h. */
14451 _ACEOF
14452 cat confdefs.h >>conftest.$ac_ext
14453 cat >>conftest.$ac_ext <<_ACEOF
14454 /* end confdefs.h. */
14455 #include <limits.h>
14457 int
14458 main ()
14459 {
14460 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14461 bogus endian macros
14462 #endif
14464 ;
14465 return 0;
14466 }
14467 _ACEOF
14468 rm -f conftest.$ac_objext
14469 if { (ac_try="$ac_compile"
14470 case "(($ac_try" in
14471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14472 *) ac_try_echo=$ac_try;;
14473 esac
14474 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14475 $as_echo "$ac_try_echo") >&5
14476 (eval "$ac_compile") 2>conftest.er1
14477 ac_status=$?
14478 grep -v '^ *+' conftest.er1 >conftest.err
14479 rm -f conftest.er1
14480 cat conftest.err >&5
14481 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14482 (exit $ac_status); } && {
14483 test -z "$ac_c_werror_flag" ||
14484 test ! -s conftest.err
14485 } && test -s conftest.$ac_objext; then
14486 # It does; now see whether it defined to _BIG_ENDIAN or not.
14487 cat >conftest.$ac_ext <<_ACEOF
14488 /* confdefs.h. */
14489 _ACEOF
14490 cat confdefs.h >>conftest.$ac_ext
14491 cat >>conftest.$ac_ext <<_ACEOF
14492 /* end confdefs.h. */
14493 #include <limits.h>
14495 int
14496 main ()
14497 {
14498 #ifndef _BIG_ENDIAN
14499 not big endian
14500 #endif
14502 ;
14503 return 0;
14504 }
14505 _ACEOF
14506 rm -f conftest.$ac_objext
14507 if { (ac_try="$ac_compile"
14508 case "(($ac_try" in
14509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14510 *) ac_try_echo=$ac_try;;
14511 esac
14512 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14513 $as_echo "$ac_try_echo") >&5
14514 (eval "$ac_compile") 2>conftest.er1
14515 ac_status=$?
14516 grep -v '^ *+' conftest.er1 >conftest.err
14517 rm -f conftest.er1
14518 cat conftest.err >&5
14519 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14520 (exit $ac_status); } && {
14521 test -z "$ac_c_werror_flag" ||
14522 test ! -s conftest.err
14523 } && test -s conftest.$ac_objext; then
14524 ac_cv_c_bigendian=yes
14525 else
14526 $as_echo "$as_me: failed program was:" >&5
14527 sed 's/^/| /' conftest.$ac_ext >&5
14529 ac_cv_c_bigendian=no
14530 fi
14532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14533 else
14534 $as_echo "$as_me: failed program was:" >&5
14535 sed 's/^/| /' conftest.$ac_ext >&5
14538 fi
14540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14541 fi
14542 if test $ac_cv_c_bigendian = unknown; then
14543 # Compile a test program.
14544 if test "$cross_compiling" = yes; then
14545 # Try to guess by grepping values from an object file.
14546 cat >conftest.$ac_ext <<_ACEOF
14547 /* confdefs.h. */
14548 _ACEOF
14549 cat confdefs.h >>conftest.$ac_ext
14550 cat >>conftest.$ac_ext <<_ACEOF
14551 /* end confdefs.h. */
14552 short int ascii_mm[] =
14553 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14554 short int ascii_ii[] =
14555 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14556 int use_ascii (int i) {
14557 return ascii_mm[i] + ascii_ii[i];
14558 }
14559 short int ebcdic_ii[] =
14560 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14561 short int ebcdic_mm[] =
14562 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14563 int use_ebcdic (int i) {
14564 return ebcdic_mm[i] + ebcdic_ii[i];
14565 }
14566 extern int foo;
14568 int
14569 main ()
14570 {
14571 return use_ascii (foo) == use_ebcdic (foo);
14572 ;
14573 return 0;
14574 }
14575 _ACEOF
14576 rm -f conftest.$ac_objext
14577 if { (ac_try="$ac_compile"
14578 case "(($ac_try" in
14579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14580 *) ac_try_echo=$ac_try;;
14581 esac
14582 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14583 $as_echo "$ac_try_echo") >&5
14584 (eval "$ac_compile") 2>conftest.er1
14585 ac_status=$?
14586 grep -v '^ *+' conftest.er1 >conftest.err
14587 rm -f conftest.er1
14588 cat conftest.err >&5
14589 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14590 (exit $ac_status); } && {
14591 test -z "$ac_c_werror_flag" ||
14592 test ! -s conftest.err
14593 } && test -s conftest.$ac_objext; then
14594 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14595 ac_cv_c_bigendian=yes
14596 fi
14597 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14598 if test "$ac_cv_c_bigendian" = unknown; then
14599 ac_cv_c_bigendian=no
14600 else
14601 # finding both strings is unlikely to happen, but who knows?
14602 ac_cv_c_bigendian=unknown
14603 fi
14604 fi
14605 else
14606 $as_echo "$as_me: failed program was:" >&5
14607 sed 's/^/| /' conftest.$ac_ext >&5
14610 fi
14612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14613 else
14614 cat >conftest.$ac_ext <<_ACEOF
14615 /* confdefs.h. */
14616 _ACEOF
14617 cat confdefs.h >>conftest.$ac_ext
14618 cat >>conftest.$ac_ext <<_ACEOF
14619 /* end confdefs.h. */
14620 $ac_includes_default
14621 int
14622 main ()
14623 {
14625 /* Are we little or big endian? From Harbison&Steele. */
14626 union
14627 {
14628 long int l;
14629 char c[sizeof (long int)];
14630 } u;
14631 u.l = 1;
14632 return u.c[sizeof (long int) - 1] == 1;
14634 ;
14635 return 0;
14636 }
14637 _ACEOF
14638 rm -f conftest$ac_exeext
14639 if { (ac_try="$ac_link"
14640 case "(($ac_try" in
14641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14642 *) ac_try_echo=$ac_try;;
14643 esac
14644 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14645 $as_echo "$ac_try_echo") >&5
14646 (eval "$ac_link") 2>&5
14647 ac_status=$?
14648 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14649 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14650 { (case "(($ac_try" in
14651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14652 *) ac_try_echo=$ac_try;;
14653 esac
14654 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14655 $as_echo "$ac_try_echo") >&5
14656 (eval "$ac_try") 2>&5
14657 ac_status=$?
14658 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14659 (exit $ac_status); }; }; then
14660 ac_cv_c_bigendian=no
14661 else
14662 $as_echo "$as_me: program exited with status $ac_status" >&5
14663 $as_echo "$as_me: failed program was:" >&5
14664 sed 's/^/| /' conftest.$ac_ext >&5
14666 ( exit $ac_status )
14667 ac_cv_c_bigendian=yes
14668 fi
14669 rm -rf conftest.dSYM
14670 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14671 fi
14674 fi
14675 fi
14676 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14677 $as_echo "$ac_cv_c_bigendian" >&6; }
14678 case $ac_cv_c_bigendian in #(
14679 yes)
14680 cat >>confdefs.h <<\_ACEOF
14681 #define WORDS_BIGENDIAN 1
14682 _ACEOF
14683 ;; #(
14684 no)
14685 ;; #(
14686 universal)
14688 cat >>confdefs.h <<\_ACEOF
14689 #define AC_APPLE_UNIVERSAL_BUILD 1
14690 _ACEOF
14692 ;; #(
14693 *)
14694 { { $as_echo "$as_me:$LINENO: error: unknown endianness
14695 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14696 $as_echo "$as_me: error: unknown endianness
14697 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14698 { (exit 1); exit 1; }; } ;;
14699 esac
14724 for ac_func in tzset fsync mbstowcs opendir readdir chdir chroot getuid strerror snprintf vsnprintf vasprintf fpclass class fp_class isnan memmove strchr mktime getrusage gettimeofday
14725 do
14726 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14727 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14728 $as_echo_n "checking for $ac_func... " >&6; }
14729 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14730 $as_echo_n "(cached) " >&6
14731 else
14732 cat >conftest.$ac_ext <<_ACEOF
14733 /* confdefs.h. */
14734 _ACEOF
14735 cat confdefs.h >>conftest.$ac_ext
14736 cat >>conftest.$ac_ext <<_ACEOF
14737 /* end confdefs.h. */
14738 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14739 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14740 #define $ac_func innocuous_$ac_func
14742 /* System header to define __stub macros and hopefully few prototypes,
14743 which can conflict with char $ac_func (); below.
14744 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14745 <limits.h> exists even on freestanding compilers. */
14747 #ifdef __STDC__
14748 # include <limits.h>
14749 #else
14750 # include <assert.h>
14751 #endif
14753 #undef $ac_func
14755 /* Override any GCC internal prototype to avoid an error.
14756 Use char because int might match the return type of a GCC
14757 builtin and then its argument prototype would still apply. */
14758 #ifdef __cplusplus
14759 extern "C"
14760 #endif
14761 char $ac_func ();
14762 /* The GNU C library defines this for functions which it implements
14763 to always fail with ENOSYS. Some functions are actually named
14764 something starting with __ and the normal name is an alias. */
14765 #if defined __stub_$ac_func || defined __stub___$ac_func
14766 choke me
14767 #endif
14769 int
14770 main ()
14771 {
14772 return $ac_func ();
14773 ;
14774 return 0;
14775 }
14776 _ACEOF
14777 rm -f conftest.$ac_objext conftest$ac_exeext
14778 if { (ac_try="$ac_link"
14779 case "(($ac_try" in
14780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14781 *) ac_try_echo=$ac_try;;
14782 esac
14783 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14784 $as_echo "$ac_try_echo") >&5
14785 (eval "$ac_link") 2>conftest.er1
14786 ac_status=$?
14787 grep -v '^ *+' conftest.er1 >conftest.err
14788 rm -f conftest.er1
14789 cat conftest.err >&5
14790 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14791 (exit $ac_status); } && {
14792 test -z "$ac_c_werror_flag" ||
14793 test ! -s conftest.err
14794 } && test -s conftest$ac_exeext && {
14795 test "$cross_compiling" = yes ||
14796 $as_test_x conftest$ac_exeext
14797 }; then
14798 eval "$as_ac_var=yes"
14799 else
14800 $as_echo "$as_me: failed program was:" >&5
14801 sed 's/^/| /' conftest.$ac_ext >&5
14803 eval "$as_ac_var=no"
14804 fi
14806 rm -rf conftest.dSYM
14807 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14808 conftest$ac_exeext conftest.$ac_ext
14809 fi
14810 ac_res=`eval 'as_val=${'$as_ac_var'}
14811 $as_echo "$as_val"'`
14812 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14813 $as_echo "$ac_res" >&6; }
14814 as_val=`eval 'as_val=${'$as_ac_var'}
14815 $as_echo "$as_val"'`
14816 if test "x$as_val" = x""yes; then
14817 cat >>confdefs.h <<_ACEOF
14818 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14819 _ACEOF
14821 fi
14822 done
14825 { $as_echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
14826 $as_echo_n "checking whether strerror_r is declared... " >&6; }
14827 if test "${ac_cv_have_decl_strerror_r+set}" = set; then
14828 $as_echo_n "(cached) " >&6
14829 else
14830 cat >conftest.$ac_ext <<_ACEOF
14831 /* confdefs.h. */
14832 _ACEOF
14833 cat confdefs.h >>conftest.$ac_ext
14834 cat >>conftest.$ac_ext <<_ACEOF
14835 /* end confdefs.h. */
14836 $ac_includes_default
14837 int
14838 main ()
14839 {
14840 #ifndef strerror_r
14841 (void) strerror_r;
14842 #endif
14844 ;
14845 return 0;
14846 }
14847 _ACEOF
14848 rm -f conftest.$ac_objext
14849 if { (ac_try="$ac_compile"
14850 case "(($ac_try" in
14851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14852 *) ac_try_echo=$ac_try;;
14853 esac
14854 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14855 $as_echo "$ac_try_echo") >&5
14856 (eval "$ac_compile") 2>conftest.er1
14857 ac_status=$?
14858 grep -v '^ *+' conftest.er1 >conftest.err
14859 rm -f conftest.er1
14860 cat conftest.err >&5
14861 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14862 (exit $ac_status); } && {
14863 test -z "$ac_c_werror_flag" ||
14864 test ! -s conftest.err
14865 } && test -s conftest.$ac_objext; then
14866 ac_cv_have_decl_strerror_r=yes
14867 else
14868 $as_echo "$as_me: failed program was:" >&5
14869 sed 's/^/| /' conftest.$ac_ext >&5
14871 ac_cv_have_decl_strerror_r=no
14872 fi
14874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14875 fi
14876 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
14877 $as_echo "$ac_cv_have_decl_strerror_r" >&6; }
14878 if test "x$ac_cv_have_decl_strerror_r" = x""yes; then
14880 cat >>confdefs.h <<_ACEOF
14881 #define HAVE_DECL_STRERROR_R 1
14882 _ACEOF
14885 else
14886 cat >>confdefs.h <<_ACEOF
14887 #define HAVE_DECL_STRERROR_R 0
14888 _ACEOF
14891 fi
14895 for ac_func in strerror_r
14896 do
14897 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14898 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14899 $as_echo_n "checking for $ac_func... " >&6; }
14900 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14901 $as_echo_n "(cached) " >&6
14902 else
14903 cat >conftest.$ac_ext <<_ACEOF
14904 /* confdefs.h. */
14905 _ACEOF
14906 cat confdefs.h >>conftest.$ac_ext
14907 cat >>conftest.$ac_ext <<_ACEOF
14908 /* end confdefs.h. */
14909 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14910 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14911 #define $ac_func innocuous_$ac_func
14913 /* System header to define __stub macros and hopefully few prototypes,
14914 which can conflict with char $ac_func (); below.
14915 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14916 <limits.h> exists even on freestanding compilers. */
14918 #ifdef __STDC__
14919 # include <limits.h>
14920 #else
14921 # include <assert.h>
14922 #endif
14924 #undef $ac_func
14926 /* Override any GCC internal prototype to avoid an error.
14927 Use char because int might match the return type of a GCC
14928 builtin and then its argument prototype would still apply. */
14929 #ifdef __cplusplus
14930 extern "C"
14931 #endif
14932 char $ac_func ();
14933 /* The GNU C library defines this for functions which it implements
14934 to always fail with ENOSYS. Some functions are actually named
14935 something starting with __ and the normal name is an alias. */
14936 #if defined __stub_$ac_func || defined __stub___$ac_func
14937 choke me
14938 #endif
14940 int
14941 main ()
14942 {
14943 return $ac_func ();
14944 ;
14945 return 0;
14946 }
14947 _ACEOF
14948 rm -f conftest.$ac_objext conftest$ac_exeext
14949 if { (ac_try="$ac_link"
14950 case "(($ac_try" in
14951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14952 *) ac_try_echo=$ac_try;;
14953 esac
14954 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14955 $as_echo "$ac_try_echo") >&5
14956 (eval "$ac_link") 2>conftest.er1
14957 ac_status=$?
14958 grep -v '^ *+' conftest.er1 >conftest.err
14959 rm -f conftest.er1
14960 cat conftest.err >&5
14961 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14962 (exit $ac_status); } && {
14963 test -z "$ac_c_werror_flag" ||
14964 test ! -s conftest.err
14965 } && test -s conftest$ac_exeext && {
14966 test "$cross_compiling" = yes ||
14967 $as_test_x conftest$ac_exeext
14968 }; then
14969 eval "$as_ac_var=yes"
14970 else
14971 $as_echo "$as_me: failed program was:" >&5
14972 sed 's/^/| /' conftest.$ac_ext >&5
14974 eval "$as_ac_var=no"
14975 fi
14977 rm -rf conftest.dSYM
14978 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14979 conftest$ac_exeext conftest.$ac_ext
14980 fi
14981 ac_res=`eval 'as_val=${'$as_ac_var'}
14982 $as_echo "$as_val"'`
14983 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14984 $as_echo "$ac_res" >&6; }
14985 as_val=`eval 'as_val=${'$as_ac_var'}
14986 $as_echo "$as_val"'`
14987 if test "x$as_val" = x""yes; then
14988 cat >>confdefs.h <<_ACEOF
14989 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14990 _ACEOF
14992 fi
14993 done
14995 { $as_echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
14996 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
14997 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
14998 $as_echo_n "(cached) " >&6
14999 else
15001 ac_cv_func_strerror_r_char_p=no
15002 if test $ac_cv_have_decl_strerror_r = yes; then
15003 cat >conftest.$ac_ext <<_ACEOF
15004 /* confdefs.h. */
15005 _ACEOF
15006 cat confdefs.h >>conftest.$ac_ext
15007 cat >>conftest.$ac_ext <<_ACEOF
15008 /* end confdefs.h. */
15009 $ac_includes_default
15010 int
15011 main ()
15012 {
15014 char buf[100];
15015 char x = *strerror_r (0, buf, sizeof buf);
15016 char *p = strerror_r (0, buf, sizeof buf);
15017 return !p || x;
15019 ;
15020 return 0;
15021 }
15022 _ACEOF
15023 rm -f conftest.$ac_objext
15024 if { (ac_try="$ac_compile"
15025 case "(($ac_try" in
15026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15027 *) ac_try_echo=$ac_try;;
15028 esac
15029 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15030 $as_echo "$ac_try_echo") >&5
15031 (eval "$ac_compile") 2>conftest.er1
15032 ac_status=$?
15033 grep -v '^ *+' conftest.er1 >conftest.err
15034 rm -f conftest.er1
15035 cat conftest.err >&5
15036 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15037 (exit $ac_status); } && {
15038 test -z "$ac_c_werror_flag" ||
15039 test ! -s conftest.err
15040 } && test -s conftest.$ac_objext; then
15041 ac_cv_func_strerror_r_char_p=yes
15042 else
15043 $as_echo "$as_me: failed program was:" >&5
15044 sed 's/^/| /' conftest.$ac_ext >&5
15047 fi
15049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15050 else
15051 # strerror_r is not declared. Choose between
15052 # systems that have relatively inaccessible declarations for the
15053 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
15054 # former has a strerror_r that returns char*, while the latter
15055 # has a strerror_r that returns `int'.
15056 # This test should segfault on the DEC system.
15057 if test "$cross_compiling" = yes; then
15058 :
15059 else
15060 cat >conftest.$ac_ext <<_ACEOF
15061 /* confdefs.h. */
15062 _ACEOF
15063 cat confdefs.h >>conftest.$ac_ext
15064 cat >>conftest.$ac_ext <<_ACEOF
15065 /* end confdefs.h. */
15066 $ac_includes_default
15067 extern char *strerror_r ();
15068 int
15069 main ()
15070 {
15071 char buf[100];
15072 char x = *strerror_r (0, buf, sizeof buf);
15073 return ! isalpha (x);
15074 ;
15075 return 0;
15076 }
15077 _ACEOF
15078 rm -f conftest$ac_exeext
15079 if { (ac_try="$ac_link"
15080 case "(($ac_try" in
15081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15082 *) ac_try_echo=$ac_try;;
15083 esac
15084 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15085 $as_echo "$ac_try_echo") >&5
15086 (eval "$ac_link") 2>&5
15087 ac_status=$?
15088 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15089 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15090 { (case "(($ac_try" in
15091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15092 *) ac_try_echo=$ac_try;;
15093 esac
15094 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15095 $as_echo "$ac_try_echo") >&5
15096 (eval "$ac_try") 2>&5
15097 ac_status=$?
15098 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15099 (exit $ac_status); }; }; then
15100 ac_cv_func_strerror_r_char_p=yes
15101 else
15102 $as_echo "$as_me: program exited with status $ac_status" >&5
15103 $as_echo "$as_me: failed program was:" >&5
15104 sed 's/^/| /' conftest.$ac_ext >&5
15106 fi
15107 rm -rf conftest.dSYM
15108 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15109 fi
15112 fi
15114 fi
15115 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
15116 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
15117 if test $ac_cv_func_strerror_r_char_p = yes; then
15119 cat >>confdefs.h <<\_ACEOF
15120 #define STRERROR_R_CHAR_P 1
15121 _ACEOF
15123 fi
15127 case $TERM in
15128 # for the most important terminal types we directly know the sequences
15129 xterm|xterm*|vt220|vt220*)
15130 T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
15131 T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
15132 ;;
15133 vt100|vt100*|cygwin)
15134 T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
15135 T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
15136 ;;
15137 *)
15138 T_MD=''
15139 T_ME=''
15140 ;;
15141 esac
15142 { $as_echo "$as_me:$LINENO: result: " >&5
15143 $as_echo "" >&6; }
15144 { $as_echo "$as_me:$LINENO: result: ${T_MD}Map/Fadvis/Madvise checking${T_ME}" >&5
15145 $as_echo "${T_MD}Map/Fadvis/Madvise checking${T_ME}" >&6; }
15151 for ac_func in fdatasync
15152 do
15153 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15154 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
15155 $as_echo_n "checking for $ac_func... " >&6; }
15156 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15157 $as_echo_n "(cached) " >&6
15158 else
15159 cat >conftest.$ac_ext <<_ACEOF
15160 /* confdefs.h. */
15161 _ACEOF
15162 cat confdefs.h >>conftest.$ac_ext
15163 cat >>conftest.$ac_ext <<_ACEOF
15164 /* end confdefs.h. */
15165 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15166 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15167 #define $ac_func innocuous_$ac_func
15169 /* System header to define __stub macros and hopefully few prototypes,
15170 which can conflict with char $ac_func (); below.
15171 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15172 <limits.h> exists even on freestanding compilers. */
15174 #ifdef __STDC__
15175 # include <limits.h>
15176 #else
15177 # include <assert.h>
15178 #endif
15180 #undef $ac_func
15182 /* Override any GCC internal prototype to avoid an error.
15183 Use char because int might match the return type of a GCC
15184 builtin and then its argument prototype would still apply. */
15185 #ifdef __cplusplus
15186 extern "C"
15187 #endif
15188 char $ac_func ();
15189 /* The GNU C library defines this for functions which it implements
15190 to always fail with ENOSYS. Some functions are actually named
15191 something starting with __ and the normal name is an alias. */
15192 #if defined __stub_$ac_func || defined __stub___$ac_func
15193 choke me
15194 #endif
15196 int
15197 main ()
15198 {
15199 return $ac_func ();
15200 ;
15201 return 0;
15202 }
15203 _ACEOF
15204 rm -f conftest.$ac_objext conftest$ac_exeext
15205 if { (ac_try="$ac_link"
15206 case "(($ac_try" in
15207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15208 *) ac_try_echo=$ac_try;;
15209 esac
15210 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15211 $as_echo "$ac_try_echo") >&5
15212 (eval "$ac_link") 2>conftest.er1
15213 ac_status=$?
15214 grep -v '^ *+' conftest.er1 >conftest.err
15215 rm -f conftest.er1
15216 cat conftest.err >&5
15217 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15218 (exit $ac_status); } && {
15219 test -z "$ac_c_werror_flag" ||
15220 test ! -s conftest.err
15221 } && test -s conftest$ac_exeext && {
15222 test "$cross_compiling" = yes ||
15223 $as_test_x conftest$ac_exeext
15224 }; then
15225 eval "$as_ac_var=yes"
15226 else
15227 $as_echo "$as_me: failed program was:" >&5
15228 sed 's/^/| /' conftest.$ac_ext >&5
15230 eval "$as_ac_var=no"
15231 fi
15233 rm -rf conftest.dSYM
15234 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15235 conftest$ac_exeext conftest.$ac_ext
15236 fi
15237 ac_res=`eval 'as_val=${'$as_ac_var'}
15238 $as_echo "$as_val"'`
15239 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15240 $as_echo "$ac_res" >&6; }
15241 as_val=`eval 'as_val=${'$as_ac_var'}
15242 $as_echo "$as_val"'`
15243 if test "x$as_val" = x""yes; then
15244 cat >>confdefs.h <<_ACEOF
15245 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15246 _ACEOF
15248 else
15249 { $as_echo "$as_me:$LINENO: checking for fdatasync in -lrt" >&5
15250 $as_echo_n "checking for fdatasync in -lrt... " >&6; }
15251 if test "${ac_cv_lib_rt_fdatasync+set}" = set; then
15252 $as_echo_n "(cached) " >&6
15253 else
15254 ac_check_lib_save_LIBS=$LIBS
15255 LIBS="-lrt $LIBS"
15256 cat >conftest.$ac_ext <<_ACEOF
15257 /* confdefs.h. */
15258 _ACEOF
15259 cat confdefs.h >>conftest.$ac_ext
15260 cat >>conftest.$ac_ext <<_ACEOF
15261 /* end confdefs.h. */
15263 /* Override any GCC internal prototype to avoid an error.
15264 Use char because int might match the return type of a GCC
15265 builtin and then its argument prototype would still apply. */
15266 #ifdef __cplusplus
15267 extern "C"
15268 #endif
15269 char fdatasync ();
15270 int
15271 main ()
15272 {
15273 return fdatasync ();
15274 ;
15275 return 0;
15276 }
15277 _ACEOF
15278 rm -f conftest.$ac_objext conftest$ac_exeext
15279 if { (ac_try="$ac_link"
15280 case "(($ac_try" in
15281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15282 *) ac_try_echo=$ac_try;;
15283 esac
15284 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15285 $as_echo "$ac_try_echo") >&5
15286 (eval "$ac_link") 2>conftest.er1
15287 ac_status=$?
15288 grep -v '^ *+' conftest.er1 >conftest.err
15289 rm -f conftest.er1
15290 cat conftest.err >&5
15291 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15292 (exit $ac_status); } && {
15293 test -z "$ac_c_werror_flag" ||
15294 test ! -s conftest.err
15295 } && test -s conftest$ac_exeext && {
15296 test "$cross_compiling" = yes ||
15297 $as_test_x conftest$ac_exeext
15298 }; then
15299 ac_cv_lib_rt_fdatasync=yes
15300 else
15301 $as_echo "$as_me: failed program was:" >&5
15302 sed 's/^/| /' conftest.$ac_ext >&5
15304 ac_cv_lib_rt_fdatasync=no
15305 fi
15307 rm -rf conftest.dSYM
15308 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15309 conftest$ac_exeext conftest.$ac_ext
15310 LIBS=$ac_check_lib_save_LIBS
15311 fi
15312 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rt_fdatasync" >&5
15313 $as_echo "$ac_cv_lib_rt_fdatasync" >&6; }
15314 if test "x$ac_cv_lib_rt_fdatasync" = x""yes; then
15315 LIBS="${LIBS} -lrt"; cat >>confdefs.h <<\_ACEOF
15316 #define HAVE_FDATASYNC 1
15317 _ACEOF
15319 fi
15321 fi
15322 done
15325 for ac_func in fsync
15326 do
15327 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15328 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
15329 $as_echo_n "checking for $ac_func... " >&6; }
15330 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15331 $as_echo_n "(cached) " >&6
15332 else
15333 cat >conftest.$ac_ext <<_ACEOF
15334 /* confdefs.h. */
15335 _ACEOF
15336 cat confdefs.h >>conftest.$ac_ext
15337 cat >>conftest.$ac_ext <<_ACEOF
15338 /* end confdefs.h. */
15339 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15340 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15341 #define $ac_func innocuous_$ac_func
15343 /* System header to define __stub macros and hopefully few prototypes,
15344 which can conflict with char $ac_func (); below.
15345 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15346 <limits.h> exists even on freestanding compilers. */
15348 #ifdef __STDC__
15349 # include <limits.h>
15350 #else
15351 # include <assert.h>
15352 #endif
15354 #undef $ac_func
15356 /* Override any GCC internal prototype to avoid an error.
15357 Use char because int might match the return type of a GCC
15358 builtin and then its argument prototype would still apply. */
15359 #ifdef __cplusplus
15360 extern "C"
15361 #endif
15362 char $ac_func ();
15363 /* The GNU C library defines this for functions which it implements
15364 to always fail with ENOSYS. Some functions are actually named
15365 something starting with __ and the normal name is an alias. */
15366 #if defined __stub_$ac_func || defined __stub___$ac_func
15367 choke me
15368 #endif
15370 int
15371 main ()
15372 {
15373 return $ac_func ();
15374 ;
15375 return 0;
15376 }
15377 _ACEOF
15378 rm -f conftest.$ac_objext conftest$ac_exeext
15379 if { (ac_try="$ac_link"
15380 case "(($ac_try" in
15381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15382 *) ac_try_echo=$ac_try;;
15383 esac
15384 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15385 $as_echo "$ac_try_echo") >&5
15386 (eval "$ac_link") 2>conftest.er1
15387 ac_status=$?
15388 grep -v '^ *+' conftest.er1 >conftest.err
15389 rm -f conftest.er1
15390 cat conftest.err >&5
15391 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15392 (exit $ac_status); } && {
15393 test -z "$ac_c_werror_flag" ||
15394 test ! -s conftest.err
15395 } && test -s conftest$ac_exeext && {
15396 test "$cross_compiling" = yes ||
15397 $as_test_x conftest$ac_exeext
15398 }; then
15399 eval "$as_ac_var=yes"
15400 else
15401 $as_echo "$as_me: failed program was:" >&5
15402 sed 's/^/| /' conftest.$ac_ext >&5
15404 eval "$as_ac_var=no"
15405 fi
15407 rm -rf conftest.dSYM
15408 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15409 conftest$ac_exeext conftest.$ac_ext
15410 fi
15411 ac_res=`eval 'as_val=${'$as_ac_var'}
15412 $as_echo "$as_val"'`
15413 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15414 $as_echo "$ac_res" >&6; }
15415 as_val=`eval 'as_val=${'$as_ac_var'}
15416 $as_echo "$as_val"'`
15417 if test "x$as_val" = x""yes; then
15418 cat >>confdefs.h <<_ACEOF
15419 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15420 _ACEOF
15422 fi
15423 done
15428 for ac_func in socket
15429 do
15430 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15431 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
15432 $as_echo_n "checking for $ac_func... " >&6; }
15433 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15434 $as_echo_n "(cached) " >&6
15435 else
15436 cat >conftest.$ac_ext <<_ACEOF
15437 /* confdefs.h. */
15438 _ACEOF
15439 cat confdefs.h >>conftest.$ac_ext
15440 cat >>conftest.$ac_ext <<_ACEOF
15441 /* end confdefs.h. */
15442 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15443 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15444 #define $ac_func innocuous_$ac_func
15446 /* System header to define __stub macros and hopefully few prototypes,
15447 which can conflict with char $ac_func (); below.
15448 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15449 <limits.h> exists even on freestanding compilers. */
15451 #ifdef __STDC__
15452 # include <limits.h>
15453 #else
15454 # include <assert.h>
15455 #endif
15457 #undef $ac_func
15459 /* Override any GCC internal prototype to avoid an error.
15460 Use char because int might match the return type of a GCC
15461 builtin and then its argument prototype would still apply. */
15462 #ifdef __cplusplus
15463 extern "C"
15464 #endif
15465 char $ac_func ();
15466 /* The GNU C library defines this for functions which it implements
15467 to always fail with ENOSYS. Some functions are actually named
15468 something starting with __ and the normal name is an alias. */
15469 #if defined __stub_$ac_func || defined __stub___$ac_func
15470 choke me
15471 #endif
15473 int
15474 main ()
15475 {
15476 return $ac_func ();
15477 ;
15478 return 0;
15479 }
15480 _ACEOF
15481 rm -f conftest.$ac_objext conftest$ac_exeext
15482 if { (ac_try="$ac_link"
15483 case "(($ac_try" in
15484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15485 *) ac_try_echo=$ac_try;;
15486 esac
15487 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15488 $as_echo "$ac_try_echo") >&5
15489 (eval "$ac_link") 2>conftest.er1
15490 ac_status=$?
15491 grep -v '^ *+' conftest.er1 >conftest.err
15492 rm -f conftest.er1
15493 cat conftest.err >&5
15494 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15495 (exit $ac_status); } && {
15496 test -z "$ac_c_werror_flag" ||
15497 test ! -s conftest.err
15498 } && test -s conftest$ac_exeext && {
15499 test "$cross_compiling" = yes ||
15500 $as_test_x conftest$ac_exeext
15501 }; then
15502 eval "$as_ac_var=yes"
15503 else
15504 $as_echo "$as_me: failed program was:" >&5
15505 sed 's/^/| /' conftest.$ac_ext >&5
15507 eval "$as_ac_var=no"
15508 fi
15510 rm -rf conftest.dSYM
15511 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15512 conftest$ac_exeext conftest.$ac_ext
15513 fi
15514 ac_res=`eval 'as_val=${'$as_ac_var'}
15515 $as_echo "$as_val"'`
15516 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15517 $as_echo "$ac_res" >&6; }
15518 as_val=`eval 'as_val=${'$as_ac_var'}
15519 $as_echo "$as_val"'`
15520 if test "x$as_val" = x""yes; then
15521 cat >>confdefs.h <<_ACEOF
15522 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15523 _ACEOF
15525 else
15526 { $as_echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
15527 $as_echo_n "checking for socket in -lsocket... " >&6; }
15528 if test "${ac_cv_lib_socket_socket+set}" = set; then
15529 $as_echo_n "(cached) " >&6
15530 else
15531 ac_check_lib_save_LIBS=$LIBS
15532 LIBS="-lsocket $LIBS"
15533 cat >conftest.$ac_ext <<_ACEOF
15534 /* confdefs.h. */
15535 _ACEOF
15536 cat confdefs.h >>conftest.$ac_ext
15537 cat >>conftest.$ac_ext <<_ACEOF
15538 /* end confdefs.h. */
15540 /* Override any GCC internal prototype to avoid an error.
15541 Use char because int might match the return type of a GCC
15542 builtin and then its argument prototype would still apply. */
15543 #ifdef __cplusplus
15544 extern "C"
15545 #endif
15546 char socket ();
15547 int
15548 main ()
15549 {
15550 return socket ();
15551 ;
15552 return 0;
15553 }
15554 _ACEOF
15555 rm -f conftest.$ac_objext conftest$ac_exeext
15556 if { (ac_try="$ac_link"
15557 case "(($ac_try" in
15558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15559 *) ac_try_echo=$ac_try;;
15560 esac
15561 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15562 $as_echo "$ac_try_echo") >&5
15563 (eval "$ac_link") 2>conftest.er1
15564 ac_status=$?
15565 grep -v '^ *+' conftest.er1 >conftest.err
15566 rm -f conftest.er1
15567 cat conftest.err >&5
15568 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15569 (exit $ac_status); } && {
15570 test -z "$ac_c_werror_flag" ||
15571 test ! -s conftest.err
15572 } && test -s conftest$ac_exeext && {
15573 test "$cross_compiling" = yes ||
15574 $as_test_x conftest$ac_exeext
15575 }; then
15576 ac_cv_lib_socket_socket=yes
15577 else
15578 $as_echo "$as_me: failed program was:" >&5
15579 sed 's/^/| /' conftest.$ac_ext >&5
15581 ac_cv_lib_socket_socket=no
15582 fi
15584 rm -rf conftest.dSYM
15585 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15586 conftest$ac_exeext conftest.$ac_ext
15587 LIBS=$ac_check_lib_save_LIBS
15588 fi
15589 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
15590 $as_echo "$ac_cv_lib_socket_socket" >&6; }
15591 if test "x$ac_cv_lib_socket_socket" = x""yes; then
15592 LIBS="${LIBS} -lsocket"; cat >>confdefs.h <<\_ACEOF
15593 #define HAVE_SOCKET 1
15594 _ACEOF
15596 fi
15598 fi
15599 done
15602 for ac_func in getaddrinfo
15603 do
15604 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15605 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
15606 $as_echo_n "checking for $ac_func... " >&6; }
15607 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15608 $as_echo_n "(cached) " >&6
15609 else
15610 cat >conftest.$ac_ext <<_ACEOF
15611 /* confdefs.h. */
15612 _ACEOF
15613 cat confdefs.h >>conftest.$ac_ext
15614 cat >>conftest.$ac_ext <<_ACEOF
15615 /* end confdefs.h. */
15616 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15617 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15618 #define $ac_func innocuous_$ac_func
15620 /* System header to define __stub macros and hopefully few prototypes,
15621 which can conflict with char $ac_func (); below.
15622 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15623 <limits.h> exists even on freestanding compilers. */
15625 #ifdef __STDC__
15626 # include <limits.h>
15627 #else
15628 # include <assert.h>
15629 #endif
15631 #undef $ac_func
15633 /* Override any GCC internal prototype to avoid an error.
15634 Use char because int might match the return type of a GCC
15635 builtin and then its argument prototype would still apply. */
15636 #ifdef __cplusplus
15637 extern "C"
15638 #endif
15639 char $ac_func ();
15640 /* The GNU C library defines this for functions which it implements
15641 to always fail with ENOSYS. Some functions are actually named
15642 something starting with __ and the normal name is an alias. */
15643 #if defined __stub_$ac_func || defined __stub___$ac_func
15644 choke me
15645 #endif
15647 int
15648 main ()
15649 {
15650 return $ac_func ();
15651 ;
15652 return 0;
15653 }
15654 _ACEOF
15655 rm -f conftest.$ac_objext conftest$ac_exeext
15656 if { (ac_try="$ac_link"
15657 case "(($ac_try" in
15658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15659 *) ac_try_echo=$ac_try;;
15660 esac
15661 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15662 $as_echo "$ac_try_echo") >&5
15663 (eval "$ac_link") 2>conftest.er1
15664 ac_status=$?
15665 grep -v '^ *+' conftest.er1 >conftest.err
15666 rm -f conftest.er1
15667 cat conftest.err >&5
15668 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15669 (exit $ac_status); } && {
15670 test -z "$ac_c_werror_flag" ||
15671 test ! -s conftest.err
15672 } && test -s conftest$ac_exeext && {
15673 test "$cross_compiling" = yes ||
15674 $as_test_x conftest$ac_exeext
15675 }; then
15676 eval "$as_ac_var=yes"
15677 else
15678 $as_echo "$as_me: failed program was:" >&5
15679 sed 's/^/| /' conftest.$ac_ext >&5
15681 eval "$as_ac_var=no"
15682 fi
15684 rm -rf conftest.dSYM
15685 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15686 conftest$ac_exeext conftest.$ac_ext
15687 fi
15688 ac_res=`eval 'as_val=${'$as_ac_var'}
15689 $as_echo "$as_val"'`
15690 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15691 $as_echo "$ac_res" >&6; }
15692 as_val=`eval 'as_val=${'$as_ac_var'}
15693 $as_echo "$as_val"'`
15694 if test "x$as_val" = x""yes; then
15695 cat >>confdefs.h <<_ACEOF
15696 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15697 _ACEOF
15699 else
15700 { $as_echo "$as_me:$LINENO: checking for getaddrinfo in -lnsl" >&5
15701 $as_echo_n "checking for getaddrinfo in -lnsl... " >&6; }
15702 if test "${ac_cv_lib_nsl_getaddrinfo+set}" = set; then
15703 $as_echo_n "(cached) " >&6
15704 else
15705 ac_check_lib_save_LIBS=$LIBS
15706 LIBS="-lnsl $LIBS"
15707 cat >conftest.$ac_ext <<_ACEOF
15708 /* confdefs.h. */
15709 _ACEOF
15710 cat confdefs.h >>conftest.$ac_ext
15711 cat >>conftest.$ac_ext <<_ACEOF
15712 /* end confdefs.h. */
15714 /* Override any GCC internal prototype to avoid an error.
15715 Use char because int might match the return type of a GCC
15716 builtin and then its argument prototype would still apply. */
15717 #ifdef __cplusplus
15718 extern "C"
15719 #endif
15720 char getaddrinfo ();
15721 int
15722 main ()
15723 {
15724 return getaddrinfo ();
15725 ;
15726 return 0;
15727 }
15728 _ACEOF
15729 rm -f conftest.$ac_objext conftest$ac_exeext
15730 if { (ac_try="$ac_link"
15731 case "(($ac_try" in
15732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15733 *) ac_try_echo=$ac_try;;
15734 esac
15735 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15736 $as_echo "$ac_try_echo") >&5
15737 (eval "$ac_link") 2>conftest.er1
15738 ac_status=$?
15739 grep -v '^ *+' conftest.er1 >conftest.err
15740 rm -f conftest.er1
15741 cat conftest.err >&5
15742 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15743 (exit $ac_status); } && {
15744 test -z "$ac_c_werror_flag" ||
15745 test ! -s conftest.err
15746 } && test -s conftest$ac_exeext && {
15747 test "$cross_compiling" = yes ||
15748 $as_test_x conftest$ac_exeext
15749 }; then
15750 ac_cv_lib_nsl_getaddrinfo=yes
15751 else
15752 $as_echo "$as_me: failed program was:" >&5
15753 sed 's/^/| /' conftest.$ac_ext >&5
15755 ac_cv_lib_nsl_getaddrinfo=no
15756 fi
15758 rm -rf conftest.dSYM
15759 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15760 conftest$ac_exeext conftest.$ac_ext
15761 LIBS=$ac_check_lib_save_LIBS
15762 fi
15763 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_getaddrinfo" >&5
15764 $as_echo "$ac_cv_lib_nsl_getaddrinfo" >&6; }
15765 if test "x$ac_cv_lib_nsl_getaddrinfo" = x""yes; then
15766 LIBS="${LIBS} -lnsl"; cat >>confdefs.h <<\_ACEOF
15767 #define HAVE_GETADDRINFO 1
15768 _ACEOF
15770 fi
15772 fi
15773 done
15778 if test "x$enable_mmap" = "xyes"; then
15779 case "$host" in
15780 *cygwin*)
15781 # the normal mmap test does not work in cygwin
15783 for ac_func in mmap
15784 do
15785 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15786 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
15787 $as_echo_n "checking for $ac_func... " >&6; }
15788 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15789 $as_echo_n "(cached) " >&6
15790 else
15791 cat >conftest.$ac_ext <<_ACEOF
15792 /* confdefs.h. */
15793 _ACEOF
15794 cat confdefs.h >>conftest.$ac_ext
15795 cat >>conftest.$ac_ext <<_ACEOF
15796 /* end confdefs.h. */
15797 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15798 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15799 #define $ac_func innocuous_$ac_func
15801 /* System header to define __stub macros and hopefully few prototypes,
15802 which can conflict with char $ac_func (); below.
15803 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15804 <limits.h> exists even on freestanding compilers. */
15806 #ifdef __STDC__
15807 # include <limits.h>
15808 #else
15809 # include <assert.h>
15810 #endif
15812 #undef $ac_func
15814 /* Override any GCC internal prototype to avoid an error.
15815 Use char because int might match the return type of a GCC
15816 builtin and then its argument prototype would still apply. */
15817 #ifdef __cplusplus
15818 extern "C"
15819 #endif
15820 char $ac_func ();
15821 /* The GNU C library defines this for functions which it implements
15822 to always fail with ENOSYS. Some functions are actually named
15823 something starting with __ and the normal name is an alias. */
15824 #if defined __stub_$ac_func || defined __stub___$ac_func
15825 choke me
15826 #endif
15828 int
15829 main ()
15830 {
15831 return $ac_func ();
15832 ;
15833 return 0;
15834 }
15835 _ACEOF
15836 rm -f conftest.$ac_objext conftest$ac_exeext
15837 if { (ac_try="$ac_link"
15838 case "(($ac_try" in
15839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15840 *) ac_try_echo=$ac_try;;
15841 esac
15842 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15843 $as_echo "$ac_try_echo") >&5
15844 (eval "$ac_link") 2>conftest.er1
15845 ac_status=$?
15846 grep -v '^ *+' conftest.er1 >conftest.err
15847 rm -f conftest.er1
15848 cat conftest.err >&5
15849 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15850 (exit $ac_status); } && {
15851 test -z "$ac_c_werror_flag" ||
15852 test ! -s conftest.err
15853 } && test -s conftest$ac_exeext && {
15854 test "$cross_compiling" = yes ||
15855 $as_test_x conftest$ac_exeext
15856 }; then
15857 eval "$as_ac_var=yes"
15858 else
15859 $as_echo "$as_me: failed program was:" >&5
15860 sed 's/^/| /' conftest.$ac_ext >&5
15862 eval "$as_ac_var=no"
15863 fi
15865 rm -rf conftest.dSYM
15866 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15867 conftest$ac_exeext conftest.$ac_ext
15868 fi
15869 ac_res=`eval 'as_val=${'$as_ac_var'}
15870 $as_echo "$as_val"'`
15871 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15872 $as_echo "$ac_res" >&6; }
15873 as_val=`eval 'as_val=${'$as_ac_var'}
15874 $as_echo "$as_val"'`
15875 if test "x$as_val" = x""yes; then
15876 cat >>confdefs.h <<_ACEOF
15877 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15878 _ACEOF
15880 fi
15881 done
15883 if test "x$ac_cv_func_mmap" = "xyes"; then
15884 ac_cv_func_mmap_fixed_mapped=yes
15885 fi
15886 ;;
15887 *)
15889 for ac_header in sys/mman.h
15890 do
15891 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15892 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15893 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15894 $as_echo_n "checking for $ac_header... " >&6; }
15895 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15896 $as_echo_n "(cached) " >&6
15897 fi
15898 ac_res=`eval 'as_val=${'$as_ac_Header'}
15899 $as_echo "$as_val"'`
15900 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15901 $as_echo "$ac_res" >&6; }
15902 else
15903 # Is the header compilable?
15904 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15905 $as_echo_n "checking $ac_header usability... " >&6; }
15906 cat >conftest.$ac_ext <<_ACEOF
15907 /* confdefs.h. */
15908 _ACEOF
15909 cat confdefs.h >>conftest.$ac_ext
15910 cat >>conftest.$ac_ext <<_ACEOF
15911 /* end confdefs.h. */
15912 $ac_includes_default
15913 #include <$ac_header>
15914 _ACEOF
15915 rm -f conftest.$ac_objext
15916 if { (ac_try="$ac_compile"
15917 case "(($ac_try" in
15918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15919 *) ac_try_echo=$ac_try;;
15920 esac
15921 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15922 $as_echo "$ac_try_echo") >&5
15923 (eval "$ac_compile") 2>conftest.er1
15924 ac_status=$?
15925 grep -v '^ *+' conftest.er1 >conftest.err
15926 rm -f conftest.er1
15927 cat conftest.err >&5
15928 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15929 (exit $ac_status); } && {
15930 test -z "$ac_c_werror_flag" ||
15931 test ! -s conftest.err
15932 } && test -s conftest.$ac_objext; then
15933 ac_header_compiler=yes
15934 else
15935 $as_echo "$as_me: failed program was:" >&5
15936 sed 's/^/| /' conftest.$ac_ext >&5
15938 ac_header_compiler=no
15939 fi
15941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15942 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15943 $as_echo "$ac_header_compiler" >&6; }
15945 # Is the header present?
15946 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15947 $as_echo_n "checking $ac_header presence... " >&6; }
15948 cat >conftest.$ac_ext <<_ACEOF
15949 /* confdefs.h. */
15950 _ACEOF
15951 cat confdefs.h >>conftest.$ac_ext
15952 cat >>conftest.$ac_ext <<_ACEOF
15953 /* end confdefs.h. */
15954 #include <$ac_header>
15955 _ACEOF
15956 if { (ac_try="$ac_cpp conftest.$ac_ext"
15957 case "(($ac_try" in
15958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15959 *) ac_try_echo=$ac_try;;
15960 esac
15961 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15962 $as_echo "$ac_try_echo") >&5
15963 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15964 ac_status=$?
15965 grep -v '^ *+' conftest.er1 >conftest.err
15966 rm -f conftest.er1
15967 cat conftest.err >&5
15968 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15969 (exit $ac_status); } >/dev/null && {
15970 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15971 test ! -s conftest.err
15972 }; then
15973 ac_header_preproc=yes
15974 else
15975 $as_echo "$as_me: failed program was:" >&5
15976 sed 's/^/| /' conftest.$ac_ext >&5
15978 ac_header_preproc=no
15979 fi
15981 rm -f conftest.err conftest.$ac_ext
15982 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15983 $as_echo "$ac_header_preproc" >&6; }
15985 # So? What about this header?
15986 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15987 yes:no: )
15988 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15989 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15990 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15991 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15992 ac_header_preproc=yes
15993 ;;
15994 no:yes:* )
15995 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15996 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15997 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15998 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15999 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16000 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16001 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16002 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16003 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16004 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16005 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16006 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16008 ;;
16009 esac
16010 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16011 $as_echo_n "checking for $ac_header... " >&6; }
16012 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16013 $as_echo_n "(cached) " >&6
16014 else
16015 eval "$as_ac_Header=\$ac_header_preproc"
16016 fi
16017 ac_res=`eval 'as_val=${'$as_ac_Header'}
16018 $as_echo "$as_val"'`
16019 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16020 $as_echo "$ac_res" >&6; }
16022 fi
16023 as_val=`eval 'as_val=${'$as_ac_Header'}
16024 $as_echo "$as_val"'`
16025 if test "x$as_val" = x""yes; then
16026 cat >>confdefs.h <<_ACEOF
16027 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16028 _ACEOF
16030 fi
16032 done
16036 for ac_header in stdlib.h unistd.h
16037 do
16038 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16039 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16040 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16041 $as_echo_n "checking for $ac_header... " >&6; }
16042 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16043 $as_echo_n "(cached) " >&6
16044 fi
16045 ac_res=`eval 'as_val=${'$as_ac_Header'}
16046 $as_echo "$as_val"'`
16047 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16048 $as_echo "$ac_res" >&6; }
16049 else
16050 # Is the header compilable?
16051 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16052 $as_echo_n "checking $ac_header usability... " >&6; }
16053 cat >conftest.$ac_ext <<_ACEOF
16054 /* confdefs.h. */
16055 _ACEOF
16056 cat confdefs.h >>conftest.$ac_ext
16057 cat >>conftest.$ac_ext <<_ACEOF
16058 /* end confdefs.h. */
16059 $ac_includes_default
16060 #include <$ac_header>
16061 _ACEOF
16062 rm -f conftest.$ac_objext
16063 if { (ac_try="$ac_compile"
16064 case "(($ac_try" in
16065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16066 *) ac_try_echo=$ac_try;;
16067 esac
16068 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16069 $as_echo "$ac_try_echo") >&5
16070 (eval "$ac_compile") 2>conftest.er1
16071 ac_status=$?
16072 grep -v '^ *+' conftest.er1 >conftest.err
16073 rm -f conftest.er1
16074 cat conftest.err >&5
16075 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16076 (exit $ac_status); } && {
16077 test -z "$ac_c_werror_flag" ||
16078 test ! -s conftest.err
16079 } && test -s conftest.$ac_objext; then
16080 ac_header_compiler=yes
16081 else
16082 $as_echo "$as_me: failed program was:" >&5
16083 sed 's/^/| /' conftest.$ac_ext >&5
16085 ac_header_compiler=no
16086 fi
16088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16089 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16090 $as_echo "$ac_header_compiler" >&6; }
16092 # Is the header present?
16093 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16094 $as_echo_n "checking $ac_header presence... " >&6; }
16095 cat >conftest.$ac_ext <<_ACEOF
16096 /* confdefs.h. */
16097 _ACEOF
16098 cat confdefs.h >>conftest.$ac_ext
16099 cat >>conftest.$ac_ext <<_ACEOF
16100 /* end confdefs.h. */
16101 #include <$ac_header>
16102 _ACEOF
16103 if { (ac_try="$ac_cpp conftest.$ac_ext"
16104 case "(($ac_try" in
16105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16106 *) ac_try_echo=$ac_try;;
16107 esac
16108 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16109 $as_echo "$ac_try_echo") >&5
16110 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16111 ac_status=$?
16112 grep -v '^ *+' conftest.er1 >conftest.err
16113 rm -f conftest.er1
16114 cat conftest.err >&5
16115 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16116 (exit $ac_status); } >/dev/null && {
16117 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16118 test ! -s conftest.err
16119 }; then
16120 ac_header_preproc=yes
16121 else
16122 $as_echo "$as_me: failed program was:" >&5
16123 sed 's/^/| /' conftest.$ac_ext >&5
16125 ac_header_preproc=no
16126 fi
16128 rm -f conftest.err conftest.$ac_ext
16129 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16130 $as_echo "$ac_header_preproc" >&6; }
16132 # So? What about this header?
16133 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16134 yes:no: )
16135 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16136 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16137 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16138 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16139 ac_header_preproc=yes
16140 ;;
16141 no:yes:* )
16142 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16143 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16144 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16145 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16146 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16147 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16148 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16149 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16150 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16151 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16152 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16153 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16155 ;;
16156 esac
16157 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16158 $as_echo_n "checking for $ac_header... " >&6; }
16159 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16160 $as_echo_n "(cached) " >&6
16161 else
16162 eval "$as_ac_Header=\$ac_header_preproc"
16163 fi
16164 ac_res=`eval 'as_val=${'$as_ac_Header'}
16165 $as_echo "$as_val"'`
16166 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16167 $as_echo "$ac_res" >&6; }
16169 fi
16170 as_val=`eval 'as_val=${'$as_ac_Header'}
16171 $as_echo "$as_val"'`
16172 if test "x$as_val" = x""yes; then
16173 cat >>confdefs.h <<_ACEOF
16174 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16175 _ACEOF
16177 fi
16179 done
16182 for ac_func in getpagesize
16183 do
16184 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16185 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16186 $as_echo_n "checking for $ac_func... " >&6; }
16187 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16188 $as_echo_n "(cached) " >&6
16189 else
16190 cat >conftest.$ac_ext <<_ACEOF
16191 /* confdefs.h. */
16192 _ACEOF
16193 cat confdefs.h >>conftest.$ac_ext
16194 cat >>conftest.$ac_ext <<_ACEOF
16195 /* end confdefs.h. */
16196 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16197 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16198 #define $ac_func innocuous_$ac_func
16200 /* System header to define __stub macros and hopefully few prototypes,
16201 which can conflict with char $ac_func (); below.
16202 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16203 <limits.h> exists even on freestanding compilers. */
16205 #ifdef __STDC__
16206 # include <limits.h>
16207 #else
16208 # include <assert.h>
16209 #endif
16211 #undef $ac_func
16213 /* Override any GCC internal prototype to avoid an error.
16214 Use char because int might match the return type of a GCC
16215 builtin and then its argument prototype would still apply. */
16216 #ifdef __cplusplus
16217 extern "C"
16218 #endif
16219 char $ac_func ();
16220 /* The GNU C library defines this for functions which it implements
16221 to always fail with ENOSYS. Some functions are actually named
16222 something starting with __ and the normal name is an alias. */
16223 #if defined __stub_$ac_func || defined __stub___$ac_func
16224 choke me
16225 #endif
16227 int
16228 main ()
16229 {
16230 return $ac_func ();
16231 ;
16232 return 0;
16233 }
16234 _ACEOF
16235 rm -f conftest.$ac_objext conftest$ac_exeext
16236 if { (ac_try="$ac_link"
16237 case "(($ac_try" in
16238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16239 *) ac_try_echo=$ac_try;;
16240 esac
16241 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16242 $as_echo "$ac_try_echo") >&5
16243 (eval "$ac_link") 2>conftest.er1
16244 ac_status=$?
16245 grep -v '^ *+' conftest.er1 >conftest.err
16246 rm -f conftest.er1
16247 cat conftest.err >&5
16248 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16249 (exit $ac_status); } && {
16250 test -z "$ac_c_werror_flag" ||
16251 test ! -s conftest.err
16252 } && test -s conftest$ac_exeext && {
16253 test "$cross_compiling" = yes ||
16254 $as_test_x conftest$ac_exeext
16255 }; then
16256 eval "$as_ac_var=yes"
16257 else
16258 $as_echo "$as_me: failed program was:" >&5
16259 sed 's/^/| /' conftest.$ac_ext >&5
16261 eval "$as_ac_var=no"
16262 fi
16264 rm -rf conftest.dSYM
16265 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16266 conftest$ac_exeext conftest.$ac_ext
16267 fi
16268 ac_res=`eval 'as_val=${'$as_ac_var'}
16269 $as_echo "$as_val"'`
16270 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16271 $as_echo "$ac_res" >&6; }
16272 as_val=`eval 'as_val=${'$as_ac_var'}
16273 $as_echo "$as_val"'`
16274 if test "x$as_val" = x""yes; then
16275 cat >>confdefs.h <<_ACEOF
16276 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16277 _ACEOF
16279 fi
16280 done
16282 { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
16283 $as_echo_n "checking for working mmap... " >&6; }
16284 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
16285 $as_echo_n "(cached) " >&6
16286 else
16287 if test "$cross_compiling" = yes; then
16288 ac_cv_func_mmap_fixed_mapped=no
16289 else
16290 cat >conftest.$ac_ext <<_ACEOF
16291 /* confdefs.h. */
16292 _ACEOF
16293 cat confdefs.h >>conftest.$ac_ext
16294 cat >>conftest.$ac_ext <<_ACEOF
16295 /* end confdefs.h. */
16296 $ac_includes_default
16297 /* malloc might have been renamed as rpl_malloc. */
16298 #undef malloc
16300 /* Thanks to Mike Haertel and Jim Avera for this test.
16301 Here is a matrix of mmap possibilities:
16302 mmap private not fixed
16303 mmap private fixed at somewhere currently unmapped
16304 mmap private fixed at somewhere already mapped
16305 mmap shared not fixed
16306 mmap shared fixed at somewhere currently unmapped
16307 mmap shared fixed at somewhere already mapped
16308 For private mappings, we should verify that changes cannot be read()
16309 back from the file, nor mmap's back from the file at a different
16310 address. (There have been systems where private was not correctly
16311 implemented like the infamous i386 svr4.0, and systems where the
16312 VM page cache was not coherent with the file system buffer cache
16313 like early versions of FreeBSD and possibly contemporary NetBSD.)
16314 For shared mappings, we should conversely verify that changes get
16315 propagated back to all the places they're supposed to be.
16317 Grep wants private fixed already mapped.
16318 The main things grep needs to know about mmap are:
16319 * does it exist and is it safe to write into the mmap'd area
16320 * how to use it (BSD variants) */
16322 #include <fcntl.h>
16323 #include <sys/mman.h>
16325 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
16326 char *malloc ();
16327 #endif
16329 /* This mess was copied from the GNU getpagesize.h. */
16330 #ifndef HAVE_GETPAGESIZE
16331 /* Assume that all systems that can run configure have sys/param.h. */
16332 # ifndef HAVE_SYS_PARAM_H
16333 # define HAVE_SYS_PARAM_H 1
16334 # endif
16336 # ifdef _SC_PAGESIZE
16337 # define getpagesize() sysconf(_SC_PAGESIZE)
16338 # else /* no _SC_PAGESIZE */
16339 # ifdef HAVE_SYS_PARAM_H
16340 # include <sys/param.h>
16341 # ifdef EXEC_PAGESIZE
16342 # define getpagesize() EXEC_PAGESIZE
16343 # else /* no EXEC_PAGESIZE */
16344 # ifdef NBPG
16345 # define getpagesize() NBPG * CLSIZE
16346 # ifndef CLSIZE
16347 # define CLSIZE 1
16348 # endif /* no CLSIZE */
16349 # else /* no NBPG */
16350 # ifdef NBPC
16351 # define getpagesize() NBPC
16352 # else /* no NBPC */
16353 # ifdef PAGESIZE
16354 # define getpagesize() PAGESIZE
16355 # endif /* PAGESIZE */
16356 # endif /* no NBPC */
16357 # endif /* no NBPG */
16358 # endif /* no EXEC_PAGESIZE */
16359 # else /* no HAVE_SYS_PARAM_H */
16360 # define getpagesize() 8192 /* punt totally */
16361 # endif /* no HAVE_SYS_PARAM_H */
16362 # endif /* no _SC_PAGESIZE */
16364 #endif /* no HAVE_GETPAGESIZE */
16366 int
16367 main ()
16368 {
16369 char *data, *data2, *data3;
16370 int i, pagesize;
16371 int fd;
16373 pagesize = getpagesize ();
16375 /* First, make a file with some known garbage in it. */
16376 data = (char *) malloc (pagesize);
16377 if (!data)
16378 return 1;
16379 for (i = 0; i < pagesize; ++i)
16380 *(data + i) = rand ();
16381 umask (0);
16382 fd = creat ("conftest.mmap", 0600);
16383 if (fd < 0)
16384 return 1;
16385 if (write (fd, data, pagesize) != pagesize)
16386 return 1;
16387 close (fd);
16389 /* Next, try to mmap the file at a fixed address which already has
16390 something else allocated at it. If we can, also make sure that
16391 we see the same garbage. */
16392 fd = open ("conftest.mmap", O_RDWR);
16393 if (fd < 0)
16394 return 1;
16395 data2 = (char *) malloc (2 * pagesize);
16396 if (!data2)
16397 return 1;
16398 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
16399 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
16400 MAP_PRIVATE | MAP_FIXED, fd, 0L))
16401 return 1;
16402 for (i = 0; i < pagesize; ++i)
16403 if (*(data + i) != *(data2 + i))
16404 return 1;
16406 /* Finally, make sure that changes to the mapped area do not
16407 percolate back to the file as seen by read(). (This is a bug on
16408 some variants of i386 svr4.0.) */
16409 for (i = 0; i < pagesize; ++i)
16410 *(data2 + i) = *(data2 + i) + 1;
16411 data3 = (char *) malloc (pagesize);
16412 if (!data3)
16413 return 1;
16414 if (read (fd, data3, pagesize) != pagesize)
16415 return 1;
16416 for (i = 0; i < pagesize; ++i)
16417 if (*(data + i) != *(data3 + i))
16418 return 1;
16419 close (fd);
16420 return 0;
16421 }
16422 _ACEOF
16423 rm -f conftest$ac_exeext
16424 if { (ac_try="$ac_link"
16425 case "(($ac_try" in
16426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16427 *) ac_try_echo=$ac_try;;
16428 esac
16429 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16430 $as_echo "$ac_try_echo") >&5
16431 (eval "$ac_link") 2>&5
16432 ac_status=$?
16433 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16434 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16435 { (case "(($ac_try" in
16436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16437 *) ac_try_echo=$ac_try;;
16438 esac
16439 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16440 $as_echo "$ac_try_echo") >&5
16441 (eval "$ac_try") 2>&5
16442 ac_status=$?
16443 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16444 (exit $ac_status); }; }; then
16445 ac_cv_func_mmap_fixed_mapped=yes
16446 else
16447 $as_echo "$as_me: program exited with status $ac_status" >&5
16448 $as_echo "$as_me: failed program was:" >&5
16449 sed 's/^/| /' conftest.$ac_ext >&5
16451 ( exit $ac_status )
16452 ac_cv_func_mmap_fixed_mapped=no
16453 fi
16454 rm -rf conftest.dSYM
16455 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16456 fi
16459 fi
16460 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
16461 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
16462 if test $ac_cv_func_mmap_fixed_mapped = yes; then
16464 cat >>confdefs.h <<\_ACEOF
16465 #define HAVE_MMAP 1
16466 _ACEOF
16468 fi
16469 rm -f conftest.mmap
16474 for ac_func in mmap munmap msync
16475 do
16476 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16477 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16478 $as_echo_n "checking for $ac_func... " >&6; }
16479 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16480 $as_echo_n "(cached) " >&6
16481 else
16482 cat >conftest.$ac_ext <<_ACEOF
16483 /* confdefs.h. */
16484 _ACEOF
16485 cat confdefs.h >>conftest.$ac_ext
16486 cat >>conftest.$ac_ext <<_ACEOF
16487 /* end confdefs.h. */
16488 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16489 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16490 #define $ac_func innocuous_$ac_func
16492 /* System header to define __stub macros and hopefully few prototypes,
16493 which can conflict with char $ac_func (); below.
16494 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16495 <limits.h> exists even on freestanding compilers. */
16497 #ifdef __STDC__
16498 # include <limits.h>
16499 #else
16500 # include <assert.h>
16501 #endif
16503 #undef $ac_func
16505 /* Override any GCC internal prototype to avoid an error.
16506 Use char because int might match the return type of a GCC
16507 builtin and then its argument prototype would still apply. */
16508 #ifdef __cplusplus
16509 extern "C"
16510 #endif
16511 char $ac_func ();
16512 /* The GNU C library defines this for functions which it implements
16513 to always fail with ENOSYS. Some functions are actually named
16514 something starting with __ and the normal name is an alias. */
16515 #if defined __stub_$ac_func || defined __stub___$ac_func
16516 choke me
16517 #endif
16519 int
16520 main ()
16521 {
16522 return $ac_func ();
16523 ;
16524 return 0;
16525 }
16526 _ACEOF
16527 rm -f conftest.$ac_objext conftest$ac_exeext
16528 if { (ac_try="$ac_link"
16529 case "(($ac_try" in
16530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16531 *) ac_try_echo=$ac_try;;
16532 esac
16533 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16534 $as_echo "$ac_try_echo") >&5
16535 (eval "$ac_link") 2>conftest.er1
16536 ac_status=$?
16537 grep -v '^ *+' conftest.er1 >conftest.err
16538 rm -f conftest.er1
16539 cat conftest.err >&5
16540 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16541 (exit $ac_status); } && {
16542 test -z "$ac_c_werror_flag" ||
16543 test ! -s conftest.err
16544 } && test -s conftest$ac_exeext && {
16545 test "$cross_compiling" = yes ||
16546 $as_test_x conftest$ac_exeext
16547 }; then
16548 eval "$as_ac_var=yes"
16549 else
16550 $as_echo "$as_me: failed program was:" >&5
16551 sed 's/^/| /' conftest.$ac_ext >&5
16553 eval "$as_ac_var=no"
16554 fi
16556 rm -rf conftest.dSYM
16557 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16558 conftest$ac_exeext conftest.$ac_ext
16559 fi
16560 ac_res=`eval 'as_val=${'$as_ac_var'}
16561 $as_echo "$as_val"'`
16562 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16563 $as_echo "$ac_res" >&6; }
16564 as_val=`eval 'as_val=${'$as_ac_var'}
16565 $as_echo "$as_val"'`
16566 if test "x$as_val" = x""yes; then
16567 cat >>confdefs.h <<_ACEOF
16568 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16569 _ACEOF
16571 fi
16572 done
16574 { $as_echo "$as_me:$LINENO: checking whether madvise is declared" >&5
16575 $as_echo_n "checking whether madvise is declared... " >&6; }
16576 if test "${ac_cv_have_decl_madvise+set}" = set; then
16577 $as_echo_n "(cached) " >&6
16578 else
16579 cat >conftest.$ac_ext <<_ACEOF
16580 /* confdefs.h. */
16581 _ACEOF
16582 cat confdefs.h >>conftest.$ac_ext
16583 cat >>conftest.$ac_ext <<_ACEOF
16584 /* end confdefs.h. */
16585 #ifdef HAVE_SYS_MMAN_H
16586 # include <sys/mman.h>
16587 #endif
16589 int
16590 main ()
16591 {
16592 #ifndef madvise
16593 (void) madvise;
16594 #endif
16596 ;
16597 return 0;
16598 }
16599 _ACEOF
16600 rm -f conftest.$ac_objext
16601 if { (ac_try="$ac_compile"
16602 case "(($ac_try" in
16603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16604 *) ac_try_echo=$ac_try;;
16605 esac
16606 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16607 $as_echo "$ac_try_echo") >&5
16608 (eval "$ac_compile") 2>conftest.er1
16609 ac_status=$?
16610 grep -v '^ *+' conftest.er1 >conftest.err
16611 rm -f conftest.er1
16612 cat conftest.err >&5
16613 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16614 (exit $ac_status); } && {
16615 test -z "$ac_c_werror_flag" ||
16616 test ! -s conftest.err
16617 } && test -s conftest.$ac_objext; then
16618 ac_cv_have_decl_madvise=yes
16619 else
16620 $as_echo "$as_me: failed program was:" >&5
16621 sed 's/^/| /' conftest.$ac_ext >&5
16623 ac_cv_have_decl_madvise=no
16624 fi
16626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16627 fi
16628 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_madvise" >&5
16629 $as_echo "$ac_cv_have_decl_madvise" >&6; }
16630 if test "x$ac_cv_have_decl_madvise" = x""yes; then
16632 cat >>confdefs.h <<_ACEOF
16633 #define HAVE_DECL_MADVISE 1
16634 _ACEOF
16637 else
16638 cat >>confdefs.h <<_ACEOF
16639 #define HAVE_DECL_MADVISE 0
16640 _ACEOF
16643 fi
16646 if test "x$ac_cv_have_decl_madvise" = "xyes";
16647 then
16649 for ac_func in madvise
16650 do
16651 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16652 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16653 $as_echo_n "checking for $ac_func... " >&6; }
16654 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16655 $as_echo_n "(cached) " >&6
16656 else
16657 cat >conftest.$ac_ext <<_ACEOF
16658 /* confdefs.h. */
16659 _ACEOF
16660 cat confdefs.h >>conftest.$ac_ext
16661 cat >>conftest.$ac_ext <<_ACEOF
16662 /* end confdefs.h. */
16663 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16664 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16665 #define $ac_func innocuous_$ac_func
16667 /* System header to define __stub macros and hopefully few prototypes,
16668 which can conflict with char $ac_func (); below.
16669 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16670 <limits.h> exists even on freestanding compilers. */
16672 #ifdef __STDC__
16673 # include <limits.h>
16674 #else
16675 # include <assert.h>
16676 #endif
16678 #undef $ac_func
16680 /* Override any GCC internal prototype to avoid an error.
16681 Use char because int might match the return type of a GCC
16682 builtin and then its argument prototype would still apply. */
16683 #ifdef __cplusplus
16684 extern "C"
16685 #endif
16686 char $ac_func ();
16687 /* The GNU C library defines this for functions which it implements
16688 to always fail with ENOSYS. Some functions are actually named
16689 something starting with __ and the normal name is an alias. */
16690 #if defined __stub_$ac_func || defined __stub___$ac_func
16691 choke me
16692 #endif
16694 int
16695 main ()
16696 {
16697 return $ac_func ();
16698 ;
16699 return 0;
16700 }
16701 _ACEOF
16702 rm -f conftest.$ac_objext conftest$ac_exeext
16703 if { (ac_try="$ac_link"
16704 case "(($ac_try" in
16705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16706 *) ac_try_echo=$ac_try;;
16707 esac
16708 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16709 $as_echo "$ac_try_echo") >&5
16710 (eval "$ac_link") 2>conftest.er1
16711 ac_status=$?
16712 grep -v '^ *+' conftest.er1 >conftest.err
16713 rm -f conftest.er1
16714 cat conftest.err >&5
16715 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16716 (exit $ac_status); } && {
16717 test -z "$ac_c_werror_flag" ||
16718 test ! -s conftest.err
16719 } && test -s conftest$ac_exeext && {
16720 test "$cross_compiling" = yes ||
16721 $as_test_x conftest$ac_exeext
16722 }; then
16723 eval "$as_ac_var=yes"
16724 else
16725 $as_echo "$as_me: failed program was:" >&5
16726 sed 's/^/| /' conftest.$ac_ext >&5
16728 eval "$as_ac_var=no"
16729 fi
16731 rm -rf conftest.dSYM
16732 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16733 conftest$ac_exeext conftest.$ac_ext
16734 fi
16735 ac_res=`eval 'as_val=${'$as_ac_var'}
16736 $as_echo "$as_val"'`
16737 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16738 $as_echo "$ac_res" >&6; }
16739 as_val=`eval 'as_val=${'$as_ac_var'}
16740 $as_echo "$as_val"'`
16741 if test "x$as_val" = x""yes; then
16742 cat >>confdefs.h <<_ACEOF
16743 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16744 _ACEOF
16746 fi
16747 done
16749 else
16751 for ac_func in posix_madvise
16752 do
16753 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16754 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16755 $as_echo_n "checking for $ac_func... " >&6; }
16756 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16757 $as_echo_n "(cached) " >&6
16758 else
16759 cat >conftest.$ac_ext <<_ACEOF
16760 /* confdefs.h. */
16761 _ACEOF
16762 cat confdefs.h >>conftest.$ac_ext
16763 cat >>conftest.$ac_ext <<_ACEOF
16764 /* end confdefs.h. */
16765 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16766 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16767 #define $ac_func innocuous_$ac_func
16769 /* System header to define __stub macros and hopefully few prototypes,
16770 which can conflict with char $ac_func (); below.
16771 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16772 <limits.h> exists even on freestanding compilers. */
16774 #ifdef __STDC__
16775 # include <limits.h>
16776 #else
16777 # include <assert.h>
16778 #endif
16780 #undef $ac_func
16782 /* Override any GCC internal prototype to avoid an error.
16783 Use char because int might match the return type of a GCC
16784 builtin and then its argument prototype would still apply. */
16785 #ifdef __cplusplus
16786 extern "C"
16787 #endif
16788 char $ac_func ();
16789 /* The GNU C library defines this for functions which it implements
16790 to always fail with ENOSYS. Some functions are actually named
16791 something starting with __ and the normal name is an alias. */
16792 #if defined __stub_$ac_func || defined __stub___$ac_func
16793 choke me
16794 #endif
16796 int
16797 main ()
16798 {
16799 return $ac_func ();
16800 ;
16801 return 0;
16802 }
16803 _ACEOF
16804 rm -f conftest.$ac_objext conftest$ac_exeext
16805 if { (ac_try="$ac_link"
16806 case "(($ac_try" in
16807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16808 *) ac_try_echo=$ac_try;;
16809 esac
16810 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16811 $as_echo "$ac_try_echo") >&5
16812 (eval "$ac_link") 2>conftest.er1
16813 ac_status=$?
16814 grep -v '^ *+' conftest.er1 >conftest.err
16815 rm -f conftest.er1
16816 cat conftest.err >&5
16817 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16818 (exit $ac_status); } && {
16819 test -z "$ac_c_werror_flag" ||
16820 test ! -s conftest.err
16821 } && test -s conftest$ac_exeext && {
16822 test "$cross_compiling" = yes ||
16823 $as_test_x conftest$ac_exeext
16824 }; then
16825 eval "$as_ac_var=yes"
16826 else
16827 $as_echo "$as_me: failed program was:" >&5
16828 sed 's/^/| /' conftest.$ac_ext >&5
16830 eval "$as_ac_var=no"
16831 fi
16833 rm -rf conftest.dSYM
16834 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16835 conftest$ac_exeext conftest.$ac_ext
16836 fi
16837 ac_res=`eval 'as_val=${'$as_ac_var'}
16838 $as_echo "$as_val"'`
16839 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16840 $as_echo "$ac_res" >&6; }
16841 as_val=`eval 'as_val=${'$as_ac_var'}
16842 $as_echo "$as_val"'`
16843 if test "x$as_val" = x""yes; then
16844 cat >>confdefs.h <<_ACEOF
16845 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16846 _ACEOF
16848 fi
16849 done
16851 if test "x$ac_cv_func_posix_madvise" != "xyes"; then
16852 { $as_echo "$as_me:$LINENO: WARNING: madvise() nor posix_madvise() found." >&5
16853 $as_echo "$as_me: WARNING: madvise() nor posix_madvise() found." >&2;}
16854 fi
16855 fi
16856 ;;
16857 esac
16858 if test "x$ac_cv_func_mmap" != "xyes";
16859 then
16860 { { $as_echo "$as_me:$LINENO: error: --enable-mmap requested but mmap() was not detected" >&5
16861 $as_echo "$as_me: error: --enable-mmap requested but mmap() was not detected" >&2;}
16862 { (exit 1); exit 1; }; }
16863 fi
16864 fi
16866 { $as_echo "$as_me:$LINENO: checking whether posix_fadvise is declared" >&5
16867 $as_echo_n "checking whether posix_fadvise is declared... " >&6; }
16868 if test "${ac_cv_have_decl_posix_fadvise+set}" = set; then
16869 $as_echo_n "(cached) " >&6
16870 else
16871 cat >conftest.$ac_ext <<_ACEOF
16872 /* confdefs.h. */
16873 _ACEOF
16874 cat confdefs.h >>conftest.$ac_ext
16875 cat >>conftest.$ac_ext <<_ACEOF
16876 /* end confdefs.h. */
16877 #define _XOPEN_SOURCE 600
16878 #include <fcntl.h>
16880 int
16881 main ()
16882 {
16883 #ifndef posix_fadvise
16884 (void) posix_fadvise;
16885 #endif
16887 ;
16888 return 0;
16889 }
16890 _ACEOF
16891 rm -f conftest.$ac_objext
16892 if { (ac_try="$ac_compile"
16893 case "(($ac_try" in
16894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16895 *) ac_try_echo=$ac_try;;
16896 esac
16897 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16898 $as_echo "$ac_try_echo") >&5
16899 (eval "$ac_compile") 2>conftest.er1
16900 ac_status=$?
16901 grep -v '^ *+' conftest.er1 >conftest.err
16902 rm -f conftest.er1
16903 cat conftest.err >&5
16904 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16905 (exit $ac_status); } && {
16906 test -z "$ac_c_werror_flag" ||
16907 test ! -s conftest.err
16908 } && test -s conftest.$ac_objext; then
16909 ac_cv_have_decl_posix_fadvise=yes
16910 else
16911 $as_echo "$as_me: failed program was:" >&5
16912 sed 's/^/| /' conftest.$ac_ext >&5
16914 ac_cv_have_decl_posix_fadvise=no
16915 fi
16917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16918 fi
16919 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_posix_fadvise" >&5
16920 $as_echo "$ac_cv_have_decl_posix_fadvise" >&6; }
16921 if test "x$ac_cv_have_decl_posix_fadvise" = x""yes; then
16923 cat >>confdefs.h <<_ACEOF
16924 #define HAVE_DECL_POSIX_FADVISE 1
16925 _ACEOF
16928 else
16929 cat >>confdefs.h <<_ACEOF
16930 #define HAVE_DECL_POSIX_FADVISE 0
16931 _ACEOF
16934 fi
16938 for ac_func in posix_fadvise
16939 do
16940 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16941 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16942 $as_echo_n "checking for $ac_func... " >&6; }
16943 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16944 $as_echo_n "(cached) " >&6
16945 else
16946 cat >conftest.$ac_ext <<_ACEOF
16947 /* confdefs.h. */
16948 _ACEOF
16949 cat confdefs.h >>conftest.$ac_ext
16950 cat >>conftest.$ac_ext <<_ACEOF
16951 /* end confdefs.h. */
16952 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16953 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16954 #define $ac_func innocuous_$ac_func
16956 /* System header to define __stub macros and hopefully few prototypes,
16957 which can conflict with char $ac_func (); below.
16958 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16959 <limits.h> exists even on freestanding compilers. */
16961 #ifdef __STDC__
16962 # include <limits.h>
16963 #else
16964 # include <assert.h>
16965 #endif
16967 #undef $ac_func
16969 /* Override any GCC internal prototype to avoid an error.
16970 Use char because int might match the return type of a GCC
16971 builtin and then its argument prototype would still apply. */
16972 #ifdef __cplusplus
16973 extern "C"
16974 #endif
16975 char $ac_func ();
16976 /* The GNU C library defines this for functions which it implements
16977 to always fail with ENOSYS. Some functions are actually named
16978 something starting with __ and the normal name is an alias. */
16979 #if defined __stub_$ac_func || defined __stub___$ac_func
16980 choke me
16981 #endif
16983 int
16984 main ()
16985 {
16986 return $ac_func ();
16987 ;
16988 return 0;
16989 }
16990 _ACEOF
16991 rm -f conftest.$ac_objext conftest$ac_exeext
16992 if { (ac_try="$ac_link"
16993 case "(($ac_try" in
16994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16995 *) ac_try_echo=$ac_try;;
16996 esac
16997 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16998 $as_echo "$ac_try_echo") >&5
16999 (eval "$ac_link") 2>conftest.er1
17000 ac_status=$?
17001 grep -v '^ *+' conftest.er1 >conftest.err
17002 rm -f conftest.er1
17003 cat conftest.err >&5
17004 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17005 (exit $ac_status); } && {
17006 test -z "$ac_c_werror_flag" ||
17007 test ! -s conftest.err
17008 } && test -s conftest$ac_exeext && {
17009 test "$cross_compiling" = yes ||
17010 $as_test_x conftest$ac_exeext
17011 }; then
17012 eval "$as_ac_var=yes"
17013 else
17014 $as_echo "$as_me: failed program was:" >&5
17015 sed 's/^/| /' conftest.$ac_ext >&5
17017 eval "$as_ac_var=no"
17018 fi
17020 rm -rf conftest.dSYM
17021 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17022 conftest$ac_exeext conftest.$ac_ext
17023 fi
17024 ac_res=`eval 'as_val=${'$as_ac_var'}
17025 $as_echo "$as_val"'`
17026 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17027 $as_echo "$ac_res" >&6; }
17028 as_val=`eval 'as_val=${'$as_ac_var'}
17029 $as_echo "$as_val"'`
17030 if test "x$as_val" = x""yes; then
17031 cat >>confdefs.h <<_ACEOF
17032 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17033 _ACEOF
17035 fi
17036 done
17040 case $TERM in
17041 # for the most important terminal types we directly know the sequences
17042 xterm|xterm*|vt220|vt220*)
17043 T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
17044 T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
17045 ;;
17046 vt100|vt100*|cygwin)
17047 T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
17048 T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
17049 ;;
17050 *)
17051 T_MD=''
17052 T_ME=''
17053 ;;
17054 esac
17055 { $as_echo "$as_me:$LINENO: result: " >&5
17056 $as_echo "" >&6; }
17057 { $as_echo "$as_me:$LINENO: result: ${T_MD}Libintl Processing${T_ME}" >&5
17058 $as_echo "${T_MD}Libintl Processing${T_ME}" >&6; }
17064 MKINSTALLDIRS=
17065 if test -n "$ac_aux_dir"; then
17066 case "$ac_aux_dir" in
17067 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
17068 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
17069 esac
17070 fi
17071 if test -z "$MKINSTALLDIRS"; then
17072 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
17073 fi
17077 { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
17078 $as_echo_n "checking whether NLS is requested... " >&6; }
17079 # Check whether --enable-nls was given.
17080 if test "${enable_nls+set}" = set; then
17081 enableval=$enable_nls; USE_NLS=$enableval
17082 else
17083 USE_NLS=yes
17084 fi
17086 { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
17087 $as_echo "$USE_NLS" >&6; }
17094 # Prepare PATH_SEPARATOR.
17095 # The user is always right.
17096 if test "${PATH_SEPARATOR+set}" != set; then
17097 echo "#! /bin/sh" >conf$$.sh
17098 echo "exit 0" >>conf$$.sh
17099 chmod +x conf$$.sh
17100 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17101 PATH_SEPARATOR=';'
17102 else
17103 PATH_SEPARATOR=:
17104 fi
17105 rm -f conf$$.sh
17106 fi
17108 # Find out how to test for executable files. Don't use a zero-byte file,
17109 # as systems may use methods other than mode bits to determine executability.
17110 cat >conf$$.file <<_ASEOF
17111 #! /bin/sh
17112 exit 0
17113 _ASEOF
17114 chmod +x conf$$.file
17115 if test -x conf$$.file >/dev/null 2>&1; then
17116 ac_executable_p="test -x"
17117 else
17118 ac_executable_p="test -f"
17119 fi
17120 rm -f conf$$.file
17122 # Extract the first word of "msgfmt", so it can be a program name with args.
17123 set dummy msgfmt; ac_word=$2
17124 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
17125 $as_echo_n "checking for $ac_word... " >&6; }
17126 if test "${ac_cv_path_MSGFMT+set}" = set; then
17127 $as_echo_n "(cached) " >&6
17128 else
17129 case "$MSGFMT" in
17130 [\\/]* | ?:[\\/]*)
17131 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
17132 ;;
17133 *)
17134 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17135 for ac_dir in $PATH; do
17136 IFS="$ac_save_IFS"
17137 test -z "$ac_dir" && ac_dir=.
17138 for ac_exec_ext in '' $ac_executable_extensions; do
17139 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17140 echo "$as_me: trying $ac_dir/$ac_word..." >&5
17141 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
17142 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
17143 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
17144 break 2
17145 fi
17146 fi
17147 done
17148 done
17149 IFS="$ac_save_IFS"
17150 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
17151 ;;
17152 esac
17153 fi
17154 MSGFMT="$ac_cv_path_MSGFMT"
17155 if test "$MSGFMT" != ":"; then
17156 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
17157 $as_echo "$MSGFMT" >&6; }
17158 else
17159 { $as_echo "$as_me:$LINENO: result: no" >&5
17160 $as_echo "no" >&6; }
17161 fi
17163 # Extract the first word of "gmsgfmt", so it can be a program name with args.
17164 set dummy gmsgfmt; ac_word=$2
17165 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
17166 $as_echo_n "checking for $ac_word... " >&6; }
17167 if test "${ac_cv_path_GMSGFMT+set}" = set; then
17168 $as_echo_n "(cached) " >&6
17169 else
17170 case $GMSGFMT in
17171 [\\/]* | ?:[\\/]*)
17172 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
17173 ;;
17174 *)
17175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17176 for as_dir in $PATH
17177 do
17178 IFS=$as_save_IFS
17179 test -z "$as_dir" && as_dir=.
17180 for ac_exec_ext in '' $ac_executable_extensions; do
17181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17182 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
17183 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17184 break 2
17185 fi
17186 done
17187 done
17188 IFS=$as_save_IFS
17190 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
17191 ;;
17192 esac
17193 fi
17194 GMSGFMT=$ac_cv_path_GMSGFMT
17195 if test -n "$GMSGFMT"; then
17196 { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
17197 $as_echo "$GMSGFMT" >&6; }
17198 else
17199 { $as_echo "$as_me:$LINENO: result: no" >&5
17200 $as_echo "no" >&6; }
17201 fi
17206 # Prepare PATH_SEPARATOR.
17207 # The user is always right.
17208 if test "${PATH_SEPARATOR+set}" != set; then
17209 echo "#! /bin/sh" >conf$$.sh
17210 echo "exit 0" >>conf$$.sh
17211 chmod +x conf$$.sh
17212 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17213 PATH_SEPARATOR=';'
17214 else
17215 PATH_SEPARATOR=:
17216 fi
17217 rm -f conf$$.sh
17218 fi
17220 # Find out how to test for executable files. Don't use a zero-byte file,
17221 # as systems may use methods other than mode bits to determine executability.
17222 cat >conf$$.file <<_ASEOF
17223 #! /bin/sh
17224 exit 0
17225 _ASEOF
17226 chmod +x conf$$.file
17227 if test -x conf$$.file >/dev/null 2>&1; then
17228 ac_executable_p="test -x"
17229 else
17230 ac_executable_p="test -f"
17231 fi
17232 rm -f conf$$.file
17234 # Extract the first word of "xgettext", so it can be a program name with args.
17235 set dummy xgettext; ac_word=$2
17236 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
17237 $as_echo_n "checking for $ac_word... " >&6; }
17238 if test "${ac_cv_path_XGETTEXT+set}" = set; then
17239 $as_echo_n "(cached) " >&6
17240 else
17241 case "$XGETTEXT" in
17242 [\\/]* | ?:[\\/]*)
17243 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
17244 ;;
17245 *)
17246 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17247 for ac_dir in $PATH; do
17248 IFS="$ac_save_IFS"
17249 test -z "$ac_dir" && ac_dir=.
17250 for ac_exec_ext in '' $ac_executable_extensions; do
17251 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17252 echo "$as_me: trying $ac_dir/$ac_word..." >&5
17253 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
17254 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
17255 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
17256 break 2
17257 fi
17258 fi
17259 done
17260 done
17261 IFS="$ac_save_IFS"
17262 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
17263 ;;
17264 esac
17265 fi
17266 XGETTEXT="$ac_cv_path_XGETTEXT"
17267 if test "$XGETTEXT" != ":"; then
17268 { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
17269 $as_echo "$XGETTEXT" >&6; }
17270 else
17271 { $as_echo "$as_me:$LINENO: result: no" >&5
17272 $as_echo "no" >&6; }
17273 fi
17275 rm -f messages.po
17278 # Prepare PATH_SEPARATOR.
17279 # The user is always right.
17280 if test "${PATH_SEPARATOR+set}" != set; then
17281 echo "#! /bin/sh" >conf$$.sh
17282 echo "exit 0" >>conf$$.sh
17283 chmod +x conf$$.sh
17284 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17285 PATH_SEPARATOR=';'
17286 else
17287 PATH_SEPARATOR=:
17288 fi
17289 rm -f conf$$.sh
17290 fi
17292 # Find out how to test for executable files. Don't use a zero-byte file,
17293 # as systems may use methods other than mode bits to determine executability.
17294 cat >conf$$.file <<_ASEOF
17295 #! /bin/sh
17296 exit 0
17297 _ASEOF
17298 chmod +x conf$$.file
17299 if test -x conf$$.file >/dev/null 2>&1; then
17300 ac_executable_p="test -x"
17301 else
17302 ac_executable_p="test -f"
17303 fi
17304 rm -f conf$$.file
17306 # Extract the first word of "msgmerge", so it can be a program name with args.
17307 set dummy msgmerge; ac_word=$2
17308 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
17309 $as_echo_n "checking for $ac_word... " >&6; }
17310 if test "${ac_cv_path_MSGMERGE+set}" = set; then
17311 $as_echo_n "(cached) " >&6
17312 else
17313 case "$MSGMERGE" in
17314 [\\/]* | ?:[\\/]*)
17315 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
17316 ;;
17317 *)
17318 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17319 for ac_dir in $PATH; do
17320 IFS="$ac_save_IFS"
17321 test -z "$ac_dir" && ac_dir=.
17322 for ac_exec_ext in '' $ac_executable_extensions; do
17323 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17324 echo "$as_me: trying $ac_dir/$ac_word..." >&5
17325 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
17326 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
17327 break 2
17328 fi
17329 fi
17330 done
17331 done
17332 IFS="$ac_save_IFS"
17333 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
17334 ;;
17335 esac
17336 fi
17337 MSGMERGE="$ac_cv_path_MSGMERGE"
17338 if test "$MSGMERGE" != ":"; then
17339 { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
17340 $as_echo "$MSGMERGE" >&6; }
17341 else
17342 { $as_echo "$as_me:$LINENO: result: no" >&5
17343 $as_echo "no" >&6; }
17344 fi
17347 if test "$GMSGFMT" != ":"; then
17348 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
17349 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
17350 : ;
17351 else
17352 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
17353 { $as_echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
17354 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
17355 GMSGFMT=":"
17356 fi
17357 fi
17359 if test "$XGETTEXT" != ":"; then
17360 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
17361 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
17362 : ;
17363 else
17364 { $as_echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
17365 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
17366 XGETTEXT=":"
17367 fi
17368 rm -f messages.po
17369 fi
17371 ac_config_commands="$ac_config_commands default-1"
17375 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
17376 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
17377 if test "${ac_cv_gnu_library_2+set}" = set; then
17378 $as_echo_n "(cached) " >&6
17379 else
17380 cat >conftest.$ac_ext <<_ACEOF
17381 /* confdefs.h. */
17382 _ACEOF
17383 cat confdefs.h >>conftest.$ac_ext
17384 cat >>conftest.$ac_ext <<_ACEOF
17385 /* end confdefs.h. */
17387 #include <features.h>
17388 #ifdef __GNU_LIBRARY__
17389 #if (__GLIBC__ >= 2)
17390 Lucky GNU user
17391 #endif
17392 #endif
17394 _ACEOF
17395 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17396 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
17397 ac_cv_gnu_library_2=yes
17398 else
17399 ac_cv_gnu_library_2=no
17400 fi
17401 rm -f conftest*
17405 fi
17406 { $as_echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
17407 $as_echo "$ac_cv_gnu_library_2" >&6; }
17409 GLIBC2="$ac_cv_gnu_library_2"
17412 if test -n "$ac_tool_prefix"; then
17413 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
17414 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
17415 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
17416 $as_echo_n "checking for $ac_word... " >&6; }
17417 if test "${ac_cv_prog_RANLIB+set}" = set; then
17418 $as_echo_n "(cached) " >&6
17419 else
17420 if test -n "$RANLIB"; then
17421 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
17422 else
17423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17424 for as_dir in $PATH
17425 do
17426 IFS=$as_save_IFS
17427 test -z "$as_dir" && as_dir=.
17428 for ac_exec_ext in '' $ac_executable_extensions; do
17429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17430 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
17431 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17432 break 2
17433 fi
17434 done
17435 done
17436 IFS=$as_save_IFS
17438 fi
17439 fi
17440 RANLIB=$ac_cv_prog_RANLIB
17441 if test -n "$RANLIB"; then
17442 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
17443 $as_echo "$RANLIB" >&6; }
17444 else
17445 { $as_echo "$as_me:$LINENO: result: no" >&5
17446 $as_echo "no" >&6; }
17447 fi
17450 fi
17451 if test -z "$ac_cv_prog_RANLIB"; then
17452 ac_ct_RANLIB=$RANLIB
17453 # Extract the first word of "ranlib", so it can be a program name with args.
17454 set dummy ranlib; ac_word=$2
17455 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
17456 $as_echo_n "checking for $ac_word... " >&6; }
17457 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
17458 $as_echo_n "(cached) " >&6
17459 else
17460 if test -n "$ac_ct_RANLIB"; then
17461 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
17462 else
17463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17464 for as_dir in $PATH
17465 do
17466 IFS=$as_save_IFS
17467 test -z "$as_dir" && as_dir=.
17468 for ac_exec_ext in '' $ac_executable_extensions; do
17469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17470 ac_cv_prog_ac_ct_RANLIB="ranlib"
17471 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17472 break 2
17473 fi
17474 done
17475 done
17476 IFS=$as_save_IFS
17478 fi
17479 fi
17480 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
17481 if test -n "$ac_ct_RANLIB"; then
17482 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
17483 $as_echo "$ac_ct_RANLIB" >&6; }
17484 else
17485 { $as_echo "$as_me:$LINENO: result: no" >&5
17486 $as_echo "no" >&6; }
17487 fi
17489 if test "x$ac_ct_RANLIB" = x; then
17490 RANLIB=":"
17491 else
17492 case $cross_compiling:$ac_tool_warned in
17493 yes:)
17494 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
17495 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17496 ac_tool_warned=yes ;;
17497 esac
17498 RANLIB=$ac_ct_RANLIB
17499 fi
17500 else
17501 RANLIB="$ac_cv_prog_RANLIB"
17502 fi
17505 { $as_echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
17506 $as_echo_n "checking for strerror in -lcposix... " >&6; }
17507 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
17508 $as_echo_n "(cached) " >&6
17509 else
17510 ac_check_lib_save_LIBS=$LIBS
17511 LIBS="-lcposix $LIBS"
17512 cat >conftest.$ac_ext <<_ACEOF
17513 /* confdefs.h. */
17514 _ACEOF
17515 cat confdefs.h >>conftest.$ac_ext
17516 cat >>conftest.$ac_ext <<_ACEOF
17517 /* end confdefs.h. */
17519 /* Override any GCC internal prototype to avoid an error.
17520 Use char because int might match the return type of a GCC
17521 builtin and then its argument prototype would still apply. */
17522 #ifdef __cplusplus
17523 extern "C"
17524 #endif
17525 char strerror ();
17526 int
17527 main ()
17528 {
17529 return strerror ();
17530 ;
17531 return 0;
17532 }
17533 _ACEOF
17534 rm -f conftest.$ac_objext conftest$ac_exeext
17535 if { (ac_try="$ac_link"
17536 case "(($ac_try" in
17537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17538 *) ac_try_echo=$ac_try;;
17539 esac
17540 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17541 $as_echo "$ac_try_echo") >&5
17542 (eval "$ac_link") 2>conftest.er1
17543 ac_status=$?
17544 grep -v '^ *+' conftest.er1 >conftest.err
17545 rm -f conftest.er1
17546 cat conftest.err >&5
17547 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17548 (exit $ac_status); } && {
17549 test -z "$ac_c_werror_flag" ||
17550 test ! -s conftest.err
17551 } && test -s conftest$ac_exeext && {
17552 test "$cross_compiling" = yes ||
17553 $as_test_x conftest$ac_exeext
17554 }; then
17555 ac_cv_lib_cposix_strerror=yes
17556 else
17557 $as_echo "$as_me: failed program was:" >&5
17558 sed 's/^/| /' conftest.$ac_ext >&5
17560 ac_cv_lib_cposix_strerror=no
17561 fi
17563 rm -rf conftest.dSYM
17564 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17565 conftest$ac_exeext conftest.$ac_ext
17566 LIBS=$ac_check_lib_save_LIBS
17567 fi
17568 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
17569 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
17570 if test "x$ac_cv_lib_cposix_strerror" = x""yes; then
17571 LIBS="$LIBS -lcposix"
17572 fi
17577 { $as_echo "$as_me:$LINENO: checking for signed" >&5
17578 $as_echo_n "checking for signed... " >&6; }
17579 if test "${bh_cv_c_signed+set}" = set; then
17580 $as_echo_n "(cached) " >&6
17581 else
17582 cat >conftest.$ac_ext <<_ACEOF
17583 /* confdefs.h. */
17584 _ACEOF
17585 cat confdefs.h >>conftest.$ac_ext
17586 cat >>conftest.$ac_ext <<_ACEOF
17587 /* end confdefs.h. */
17589 int
17590 main ()
17591 {
17592 signed char x;
17593 ;
17594 return 0;
17595 }
17596 _ACEOF
17597 rm -f conftest.$ac_objext
17598 if { (ac_try="$ac_compile"
17599 case "(($ac_try" in
17600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17601 *) ac_try_echo=$ac_try;;
17602 esac
17603 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17604 $as_echo "$ac_try_echo") >&5
17605 (eval "$ac_compile") 2>conftest.er1
17606 ac_status=$?
17607 grep -v '^ *+' conftest.er1 >conftest.err
17608 rm -f conftest.er1
17609 cat conftest.err >&5
17610 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17611 (exit $ac_status); } && {
17612 test -z "$ac_c_werror_flag" ||
17613 test ! -s conftest.err
17614 } && test -s conftest.$ac_objext; then
17615 bh_cv_c_signed=yes
17616 else
17617 $as_echo "$as_me: failed program was:" >&5
17618 sed 's/^/| /' conftest.$ac_ext >&5
17620 bh_cv_c_signed=no
17621 fi
17623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17624 fi
17625 { $as_echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
17626 $as_echo "$bh_cv_c_signed" >&6; }
17627 if test $bh_cv_c_signed = no; then
17629 cat >>confdefs.h <<\_ACEOF
17630 #define signed /**/
17631 _ACEOF
17633 fi
17635 { $as_echo "$as_me:$LINENO: checking for inline" >&5
17636 $as_echo_n "checking for inline... " >&6; }
17637 if test "${ac_cv_c_inline+set}" = set; then
17638 $as_echo_n "(cached) " >&6
17639 else
17640 ac_cv_c_inline=no
17641 for ac_kw in inline __inline__ __inline; do
17642 cat >conftest.$ac_ext <<_ACEOF
17643 /* confdefs.h. */
17644 _ACEOF
17645 cat confdefs.h >>conftest.$ac_ext
17646 cat >>conftest.$ac_ext <<_ACEOF
17647 /* end confdefs.h. */
17648 #ifndef __cplusplus
17649 typedef int foo_t;
17650 static $ac_kw foo_t static_foo () {return 0; }
17651 $ac_kw foo_t foo () {return 0; }
17652 #endif
17654 _ACEOF
17655 rm -f conftest.$ac_objext
17656 if { (ac_try="$ac_compile"
17657 case "(($ac_try" in
17658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17659 *) ac_try_echo=$ac_try;;
17660 esac
17661 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17662 $as_echo "$ac_try_echo") >&5
17663 (eval "$ac_compile") 2>conftest.er1
17664 ac_status=$?
17665 grep -v '^ *+' conftest.er1 >conftest.err
17666 rm -f conftest.er1
17667 cat conftest.err >&5
17668 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17669 (exit $ac_status); } && {
17670 test -z "$ac_c_werror_flag" ||
17671 test ! -s conftest.err
17672 } && test -s conftest.$ac_objext; then
17673 ac_cv_c_inline=$ac_kw
17674 else
17675 $as_echo "$as_me: failed program was:" >&5
17676 sed 's/^/| /' conftest.$ac_ext >&5
17679 fi
17681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17682 test "$ac_cv_c_inline" != no && break
17683 done
17685 fi
17686 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
17687 $as_echo "$ac_cv_c_inline" >&6; }
17690 case $ac_cv_c_inline in
17691 inline | yes) ;;
17692 *)
17693 case $ac_cv_c_inline in
17694 no) ac_val=;;
17695 *) ac_val=$ac_cv_c_inline;;
17696 esac
17697 cat >>confdefs.h <<_ACEOF
17698 #ifndef __cplusplus
17699 #define inline $ac_val
17700 #endif
17701 _ACEOF
17702 ;;
17703 esac
17705 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
17706 $as_echo_n "checking for off_t... " >&6; }
17707 if test "${ac_cv_type_off_t+set}" = set; then
17708 $as_echo_n "(cached) " >&6
17709 else
17710 ac_cv_type_off_t=no
17711 cat >conftest.$ac_ext <<_ACEOF
17712 /* confdefs.h. */
17713 _ACEOF
17714 cat confdefs.h >>conftest.$ac_ext
17715 cat >>conftest.$ac_ext <<_ACEOF
17716 /* end confdefs.h. */
17717 $ac_includes_default
17718 int
17719 main ()
17720 {
17721 if (sizeof (off_t))
17722 return 0;
17723 ;
17724 return 0;
17725 }
17726 _ACEOF
17727 rm -f conftest.$ac_objext
17728 if { (ac_try="$ac_compile"
17729 case "(($ac_try" in
17730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17731 *) ac_try_echo=$ac_try;;
17732 esac
17733 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17734 $as_echo "$ac_try_echo") >&5
17735 (eval "$ac_compile") 2>conftest.er1
17736 ac_status=$?
17737 grep -v '^ *+' conftest.er1 >conftest.err
17738 rm -f conftest.er1
17739 cat conftest.err >&5
17740 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17741 (exit $ac_status); } && {
17742 test -z "$ac_c_werror_flag" ||
17743 test ! -s conftest.err
17744 } && test -s conftest.$ac_objext; then
17745 cat >conftest.$ac_ext <<_ACEOF
17746 /* confdefs.h. */
17747 _ACEOF
17748 cat confdefs.h >>conftest.$ac_ext
17749 cat >>conftest.$ac_ext <<_ACEOF
17750 /* end confdefs.h. */
17751 $ac_includes_default
17752 int
17753 main ()
17754 {
17755 if (sizeof ((off_t)))
17756 return 0;
17757 ;
17758 return 0;
17759 }
17760 _ACEOF
17761 rm -f conftest.$ac_objext
17762 if { (ac_try="$ac_compile"
17763 case "(($ac_try" in
17764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17765 *) ac_try_echo=$ac_try;;
17766 esac
17767 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17768 $as_echo "$ac_try_echo") >&5
17769 (eval "$ac_compile") 2>conftest.er1
17770 ac_status=$?
17771 grep -v '^ *+' conftest.er1 >conftest.err
17772 rm -f conftest.er1
17773 cat conftest.err >&5
17774 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17775 (exit $ac_status); } && {
17776 test -z "$ac_c_werror_flag" ||
17777 test ! -s conftest.err
17778 } && test -s conftest.$ac_objext; then
17779 :
17780 else
17781 $as_echo "$as_me: failed program was:" >&5
17782 sed 's/^/| /' conftest.$ac_ext >&5
17784 ac_cv_type_off_t=yes
17785 fi
17787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17788 else
17789 $as_echo "$as_me: failed program was:" >&5
17790 sed 's/^/| /' conftest.$ac_ext >&5
17793 fi
17795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17796 fi
17797 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
17798 $as_echo "$ac_cv_type_off_t" >&6; }
17799 if test "x$ac_cv_type_off_t" = x""yes; then
17800 :
17801 else
17803 cat >>confdefs.h <<_ACEOF
17804 #define off_t long int
17805 _ACEOF
17807 fi
17809 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
17810 $as_echo_n "checking for size_t... " >&6; }
17811 if test "${ac_cv_type_size_t+set}" = set; then
17812 $as_echo_n "(cached) " >&6
17813 else
17814 ac_cv_type_size_t=no
17815 cat >conftest.$ac_ext <<_ACEOF
17816 /* confdefs.h. */
17817 _ACEOF
17818 cat confdefs.h >>conftest.$ac_ext
17819 cat >>conftest.$ac_ext <<_ACEOF
17820 /* end confdefs.h. */
17821 $ac_includes_default
17822 int
17823 main ()
17824 {
17825 if (sizeof (size_t))
17826 return 0;
17827 ;
17828 return 0;
17829 }
17830 _ACEOF
17831 rm -f conftest.$ac_objext
17832 if { (ac_try="$ac_compile"
17833 case "(($ac_try" in
17834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17835 *) ac_try_echo=$ac_try;;
17836 esac
17837 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17838 $as_echo "$ac_try_echo") >&5
17839 (eval "$ac_compile") 2>conftest.er1
17840 ac_status=$?
17841 grep -v '^ *+' conftest.er1 >conftest.err
17842 rm -f conftest.er1
17843 cat conftest.err >&5
17844 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17845 (exit $ac_status); } && {
17846 test -z "$ac_c_werror_flag" ||
17847 test ! -s conftest.err
17848 } && test -s conftest.$ac_objext; then
17849 cat >conftest.$ac_ext <<_ACEOF
17850 /* confdefs.h. */
17851 _ACEOF
17852 cat confdefs.h >>conftest.$ac_ext
17853 cat >>conftest.$ac_ext <<_ACEOF
17854 /* end confdefs.h. */
17855 $ac_includes_default
17856 int
17857 main ()
17858 {
17859 if (sizeof ((size_t)))
17860 return 0;
17861 ;
17862 return 0;
17863 }
17864 _ACEOF
17865 rm -f conftest.$ac_objext
17866 if { (ac_try="$ac_compile"
17867 case "(($ac_try" in
17868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17869 *) ac_try_echo=$ac_try;;
17870 esac
17871 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17872 $as_echo "$ac_try_echo") >&5
17873 (eval "$ac_compile") 2>conftest.er1
17874 ac_status=$?
17875 grep -v '^ *+' conftest.er1 >conftest.err
17876 rm -f conftest.er1
17877 cat conftest.err >&5
17878 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17879 (exit $ac_status); } && {
17880 test -z "$ac_c_werror_flag" ||
17881 test ! -s conftest.err
17882 } && test -s conftest.$ac_objext; then
17883 :
17884 else
17885 $as_echo "$as_me: failed program was:" >&5
17886 sed 's/^/| /' conftest.$ac_ext >&5
17888 ac_cv_type_size_t=yes
17889 fi
17891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17892 else
17893 $as_echo "$as_me: failed program was:" >&5
17894 sed 's/^/| /' conftest.$ac_ext >&5
17897 fi
17899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17900 fi
17901 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17902 $as_echo "$ac_cv_type_size_t" >&6; }
17903 if test "x$ac_cv_type_size_t" = x""yes; then
17904 :
17905 else
17907 cat >>confdefs.h <<_ACEOF
17908 #define size_t unsigned int
17909 _ACEOF
17911 fi
17914 { $as_echo "$as_me:$LINENO: checking for long long" >&5
17915 $as_echo_n "checking for long long... " >&6; }
17916 if test "${ac_cv_type_long_long+set}" = set; then
17917 $as_echo_n "(cached) " >&6
17918 else
17919 cat >conftest.$ac_ext <<_ACEOF
17920 /* confdefs.h. */
17921 _ACEOF
17922 cat confdefs.h >>conftest.$ac_ext
17923 cat >>conftest.$ac_ext <<_ACEOF
17924 /* end confdefs.h. */
17925 long long ll = 1LL; int i = 63;
17926 int
17927 main ()
17928 {
17929 long long llmax = (long long) -1;
17930 return ll << i | ll >> i | llmax / ll | llmax % ll;
17931 ;
17932 return 0;
17933 }
17934 _ACEOF
17935 rm -f conftest.$ac_objext conftest$ac_exeext
17936 if { (ac_try="$ac_link"
17937 case "(($ac_try" in
17938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17939 *) ac_try_echo=$ac_try;;
17940 esac
17941 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17942 $as_echo "$ac_try_echo") >&5
17943 (eval "$ac_link") 2>conftest.er1
17944 ac_status=$?
17945 grep -v '^ *+' conftest.er1 >conftest.err
17946 rm -f conftest.er1
17947 cat conftest.err >&5
17948 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17949 (exit $ac_status); } && {
17950 test -z "$ac_c_werror_flag" ||
17951 test ! -s conftest.err
17952 } && test -s conftest$ac_exeext && {
17953 test "$cross_compiling" = yes ||
17954 $as_test_x conftest$ac_exeext
17955 }; then
17956 ac_cv_type_long_long=yes
17957 else
17958 $as_echo "$as_me: failed program was:" >&5
17959 sed 's/^/| /' conftest.$ac_ext >&5
17961 ac_cv_type_long_long=no
17962 fi
17964 rm -rf conftest.dSYM
17965 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17966 conftest$ac_exeext conftest.$ac_ext
17967 fi
17968 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17969 $as_echo "$ac_cv_type_long_long" >&6; }
17970 if test $ac_cv_type_long_long = yes; then
17972 cat >>confdefs.h <<\_ACEOF
17973 #define HAVE_LONG_LONG 1
17974 _ACEOF
17976 fi
17979 { $as_echo "$as_me:$LINENO: checking for long double" >&5
17980 $as_echo_n "checking for long double... " >&6; }
17981 if test "${gt_cv_c_long_double+set}" = set; then
17982 $as_echo_n "(cached) " >&6
17983 else
17984 if test "$GCC" = yes; then
17985 gt_cv_c_long_double=yes
17986 else
17987 cat >conftest.$ac_ext <<_ACEOF
17988 /* confdefs.h. */
17989 _ACEOF
17990 cat confdefs.h >>conftest.$ac_ext
17991 cat >>conftest.$ac_ext <<_ACEOF
17992 /* end confdefs.h. */
17994 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
17995 long double foo = 0.0;
17996 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
17997 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
17999 int
18000 main ()
18001 {
18003 ;
18004 return 0;
18005 }
18006 _ACEOF
18007 rm -f conftest.$ac_objext
18008 if { (ac_try="$ac_compile"
18009 case "(($ac_try" in
18010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18011 *) ac_try_echo=$ac_try;;
18012 esac
18013 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18014 $as_echo "$ac_try_echo") >&5
18015 (eval "$ac_compile") 2>conftest.er1
18016 ac_status=$?
18017 grep -v '^ *+' conftest.er1 >conftest.err
18018 rm -f conftest.er1
18019 cat conftest.err >&5
18020 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18021 (exit $ac_status); } && {
18022 test -z "$ac_c_werror_flag" ||
18023 test ! -s conftest.err
18024 } && test -s conftest.$ac_objext; then
18025 gt_cv_c_long_double=yes
18026 else
18027 $as_echo "$as_me: failed program was:" >&5
18028 sed 's/^/| /' conftest.$ac_ext >&5
18030 gt_cv_c_long_double=no
18031 fi
18033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18034 fi
18035 fi
18036 { $as_echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
18037 $as_echo "$gt_cv_c_long_double" >&6; }
18038 if test $gt_cv_c_long_double = yes; then
18040 cat >>confdefs.h <<\_ACEOF
18041 #define HAVE_LONG_DOUBLE 1
18042 _ACEOF
18044 fi
18047 { $as_echo "$as_me:$LINENO: checking for wchar_t" >&5
18048 $as_echo_n "checking for wchar_t... " >&6; }
18049 if test "${gt_cv_c_wchar_t+set}" = set; then
18050 $as_echo_n "(cached) " >&6
18051 else
18052 cat >conftest.$ac_ext <<_ACEOF
18053 /* confdefs.h. */
18054 _ACEOF
18055 cat confdefs.h >>conftest.$ac_ext
18056 cat >>conftest.$ac_ext <<_ACEOF
18057 /* end confdefs.h. */
18058 #include <stddef.h>
18059 wchar_t foo = (wchar_t)'\0';
18060 int
18061 main ()
18062 {
18064 ;
18065 return 0;
18066 }
18067 _ACEOF
18068 rm -f conftest.$ac_objext
18069 if { (ac_try="$ac_compile"
18070 case "(($ac_try" in
18071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18072 *) ac_try_echo=$ac_try;;
18073 esac
18074 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18075 $as_echo "$ac_try_echo") >&5
18076 (eval "$ac_compile") 2>conftest.er1
18077 ac_status=$?
18078 grep -v '^ *+' conftest.er1 >conftest.err
18079 rm -f conftest.er1
18080 cat conftest.err >&5
18081 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18082 (exit $ac_status); } && {
18083 test -z "$ac_c_werror_flag" ||
18084 test ! -s conftest.err
18085 } && test -s conftest.$ac_objext; then
18086 gt_cv_c_wchar_t=yes
18087 else
18088 $as_echo "$as_me: failed program was:" >&5
18089 sed 's/^/| /' conftest.$ac_ext >&5
18091 gt_cv_c_wchar_t=no
18092 fi
18094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18095 fi
18096 { $as_echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
18097 $as_echo "$gt_cv_c_wchar_t" >&6; }
18098 if test $gt_cv_c_wchar_t = yes; then
18100 cat >>confdefs.h <<\_ACEOF
18101 #define HAVE_WCHAR_T 1
18102 _ACEOF
18104 fi
18107 { $as_echo "$as_me:$LINENO: checking for wint_t" >&5
18108 $as_echo_n "checking for wint_t... " >&6; }
18109 if test "${gt_cv_c_wint_t+set}" = set; then
18110 $as_echo_n "(cached) " >&6
18111 else
18112 cat >conftest.$ac_ext <<_ACEOF
18113 /* confdefs.h. */
18114 _ACEOF
18115 cat confdefs.h >>conftest.$ac_ext
18116 cat >>conftest.$ac_ext <<_ACEOF
18117 /* end confdefs.h. */
18118 #include <wchar.h>
18119 wint_t foo = (wchar_t)'\0';
18120 int
18121 main ()
18122 {
18124 ;
18125 return 0;
18126 }
18127 _ACEOF
18128 rm -f conftest.$ac_objext
18129 if { (ac_try="$ac_compile"
18130 case "(($ac_try" in
18131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18132 *) ac_try_echo=$ac_try;;
18133 esac
18134 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18135 $as_echo "$ac_try_echo") >&5
18136 (eval "$ac_compile") 2>conftest.er1
18137 ac_status=$?
18138 grep -v '^ *+' conftest.er1 >conftest.err
18139 rm -f conftest.er1
18140 cat conftest.err >&5
18141 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18142 (exit $ac_status); } && {
18143 test -z "$ac_c_werror_flag" ||
18144 test ! -s conftest.err
18145 } && test -s conftest.$ac_objext; then
18146 gt_cv_c_wint_t=yes
18147 else
18148 $as_echo "$as_me: failed program was:" >&5
18149 sed 's/^/| /' conftest.$ac_ext >&5
18151 gt_cv_c_wint_t=no
18152 fi
18154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18155 fi
18156 { $as_echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
18157 $as_echo "$gt_cv_c_wint_t" >&6; }
18158 if test $gt_cv_c_wint_t = yes; then
18160 cat >>confdefs.h <<\_ACEOF
18161 #define HAVE_WINT_T 1
18162 _ACEOF
18164 fi
18167 { $as_echo "$as_me:$LINENO: checking for inttypes.h" >&5
18168 $as_echo_n "checking for inttypes.h... " >&6; }
18169 if test "${gl_cv_header_inttypes_h+set}" = set; then
18170 $as_echo_n "(cached) " >&6
18171 else
18172 cat >conftest.$ac_ext <<_ACEOF
18173 /* confdefs.h. */
18174 _ACEOF
18175 cat confdefs.h >>conftest.$ac_ext
18176 cat >>conftest.$ac_ext <<_ACEOF
18177 /* end confdefs.h. */
18178 #include <sys/types.h>
18179 #include <inttypes.h>
18180 int
18181 main ()
18182 {
18183 uintmax_t i = (uintmax_t) -1;
18184 ;
18185 return 0;
18186 }
18187 _ACEOF
18188 rm -f conftest.$ac_objext
18189 if { (ac_try="$ac_compile"
18190 case "(($ac_try" in
18191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18192 *) ac_try_echo=$ac_try;;
18193 esac
18194 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18195 $as_echo "$ac_try_echo") >&5
18196 (eval "$ac_compile") 2>conftest.er1
18197 ac_status=$?
18198 grep -v '^ *+' conftest.er1 >conftest.err
18199 rm -f conftest.er1
18200 cat conftest.err >&5
18201 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18202 (exit $ac_status); } && {
18203 test -z "$ac_c_werror_flag" ||
18204 test ! -s conftest.err
18205 } && test -s conftest.$ac_objext; then
18206 gl_cv_header_inttypes_h=yes
18207 else
18208 $as_echo "$as_me: failed program was:" >&5
18209 sed 's/^/| /' conftest.$ac_ext >&5
18211 gl_cv_header_inttypes_h=no
18212 fi
18214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18215 fi
18216 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
18217 $as_echo "$gl_cv_header_inttypes_h" >&6; }
18218 if test $gl_cv_header_inttypes_h = yes; then
18220 cat >>confdefs.h <<_ACEOF
18221 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
18222 _ACEOF
18224 fi
18227 { $as_echo "$as_me:$LINENO: checking for stdint.h" >&5
18228 $as_echo_n "checking for stdint.h... " >&6; }
18229 if test "${gl_cv_header_stdint_h+set}" = set; then
18230 $as_echo_n "(cached) " >&6
18231 else
18232 cat >conftest.$ac_ext <<_ACEOF
18233 /* confdefs.h. */
18234 _ACEOF
18235 cat confdefs.h >>conftest.$ac_ext
18236 cat >>conftest.$ac_ext <<_ACEOF
18237 /* end confdefs.h. */
18238 #include <sys/types.h>
18239 #include <stdint.h>
18240 int
18241 main ()
18242 {
18243 uintmax_t i = (uintmax_t) -1;
18244 ;
18245 return 0;
18246 }
18247 _ACEOF
18248 rm -f conftest.$ac_objext
18249 if { (ac_try="$ac_compile"
18250 case "(($ac_try" in
18251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18252 *) ac_try_echo=$ac_try;;
18253 esac
18254 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18255 $as_echo "$ac_try_echo") >&5
18256 (eval "$ac_compile") 2>conftest.er1
18257 ac_status=$?
18258 grep -v '^ *+' conftest.er1 >conftest.err
18259 rm -f conftest.er1
18260 cat conftest.err >&5
18261 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18262 (exit $ac_status); } && {
18263 test -z "$ac_c_werror_flag" ||
18264 test ! -s conftest.err
18265 } && test -s conftest.$ac_objext; then
18266 gl_cv_header_stdint_h=yes
18267 else
18268 $as_echo "$as_me: failed program was:" >&5
18269 sed 's/^/| /' conftest.$ac_ext >&5
18271 gl_cv_header_stdint_h=no
18272 fi
18274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18275 fi
18276 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
18277 $as_echo "$gl_cv_header_stdint_h" >&6; }
18278 if test $gl_cv_header_stdint_h = yes; then
18280 cat >>confdefs.h <<_ACEOF
18281 #define HAVE_STDINT_H_WITH_UINTMAX 1
18282 _ACEOF
18284 fi
18289 { $as_echo "$as_me:$LINENO: checking for intmax_t" >&5
18290 $as_echo_n "checking for intmax_t... " >&6; }
18291 if test "${gt_cv_c_intmax_t+set}" = set; then
18292 $as_echo_n "(cached) " >&6
18293 else
18294 cat >conftest.$ac_ext <<_ACEOF
18295 /* confdefs.h. */
18296 _ACEOF
18297 cat confdefs.h >>conftest.$ac_ext
18298 cat >>conftest.$ac_ext <<_ACEOF
18299 /* end confdefs.h. */
18301 #include <stddef.h>
18302 #include <stdlib.h>
18303 #if HAVE_STDINT_H_WITH_UINTMAX
18304 #include <stdint.h>
18305 #endif
18306 #if HAVE_INTTYPES_H_WITH_UINTMAX
18307 #include <inttypes.h>
18308 #endif
18310 int
18311 main ()
18312 {
18313 intmax_t x = -1;
18314 ;
18315 return 0;
18316 }
18317 _ACEOF
18318 rm -f conftest.$ac_objext
18319 if { (ac_try="$ac_compile"
18320 case "(($ac_try" in
18321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18322 *) ac_try_echo=$ac_try;;
18323 esac
18324 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18325 $as_echo "$ac_try_echo") >&5
18326 (eval "$ac_compile") 2>conftest.er1
18327 ac_status=$?
18328 grep -v '^ *+' conftest.er1 >conftest.err
18329 rm -f conftest.er1
18330 cat conftest.err >&5
18331 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18332 (exit $ac_status); } && {
18333 test -z "$ac_c_werror_flag" ||
18334 test ! -s conftest.err
18335 } && test -s conftest.$ac_objext; then
18336 gt_cv_c_intmax_t=yes
18337 else
18338 $as_echo "$as_me: failed program was:" >&5
18339 sed 's/^/| /' conftest.$ac_ext >&5
18341 gt_cv_c_intmax_t=no
18342 fi
18344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18345 fi
18346 { $as_echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
18347 $as_echo "$gt_cv_c_intmax_t" >&6; }
18348 if test $gt_cv_c_intmax_t = yes; then
18350 cat >>confdefs.h <<\_ACEOF
18351 #define HAVE_INTMAX_T 1
18352 _ACEOF
18354 fi
18358 { $as_echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
18359 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
18360 if test "${gt_cv_func_printf_posix+set}" = set; then
18361 $as_echo_n "(cached) " >&6
18362 else
18364 if test "$cross_compiling" = yes; then
18366 cat >conftest.$ac_ext <<_ACEOF
18367 /* confdefs.h. */
18368 _ACEOF
18369 cat confdefs.h >>conftest.$ac_ext
18370 cat >>conftest.$ac_ext <<_ACEOF
18371 /* end confdefs.h. */
18373 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
18374 notposix
18375 #endif
18377 _ACEOF
18378 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18379 $EGREP "notposix" >/dev/null 2>&1; then
18380 gt_cv_func_printf_posix="guessing no"
18381 else
18382 gt_cv_func_printf_posix="guessing yes"
18383 fi
18384 rm -f conftest*
18387 else
18388 cat >conftest.$ac_ext <<_ACEOF
18389 /* confdefs.h. */
18390 _ACEOF
18391 cat confdefs.h >>conftest.$ac_ext
18392 cat >>conftest.$ac_ext <<_ACEOF
18393 /* end confdefs.h. */
18395 #include <stdio.h>
18396 #include <string.h>
18397 /* The string "%2$d %1$d", with dollar characters protected from the shell's
18398 dollar expansion (possibly an autoconf bug). */
18399 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
18400 static char buf[100];
18401 int main ()
18402 {
18403 sprintf (buf, format, 33, 55);
18404 return (strcmp (buf, "55 33") != 0);
18405 }
18406 _ACEOF
18407 rm -f conftest$ac_exeext
18408 if { (ac_try="$ac_link"
18409 case "(($ac_try" in
18410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18411 *) ac_try_echo=$ac_try;;
18412 esac
18413 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18414 $as_echo "$ac_try_echo") >&5
18415 (eval "$ac_link") 2>&5
18416 ac_status=$?
18417 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18418 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18419 { (case "(($ac_try" in
18420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18421 *) ac_try_echo=$ac_try;;
18422 esac
18423 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18424 $as_echo "$ac_try_echo") >&5
18425 (eval "$ac_try") 2>&5
18426 ac_status=$?
18427 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18428 (exit $ac_status); }; }; then
18429 gt_cv_func_printf_posix=yes
18430 else
18431 $as_echo "$as_me: program exited with status $ac_status" >&5
18432 $as_echo "$as_me: failed program was:" >&5
18433 sed 's/^/| /' conftest.$ac_ext >&5
18435 ( exit $ac_status )
18436 gt_cv_func_printf_posix=no
18437 fi
18438 rm -rf conftest.dSYM
18439 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18440 fi
18444 fi
18445 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
18446 $as_echo "$gt_cv_func_printf_posix" >&6; }
18447 case $gt_cv_func_printf_posix in
18448 *yes)
18450 cat >>confdefs.h <<\_ACEOF
18451 #define HAVE_POSIX_PRINTF 1
18452 _ACEOF
18454 ;;
18455 esac
18457 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
18458 # for constant arguments. Useless!
18459 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
18460 $as_echo_n "checking for working alloca.h... " >&6; }
18461 if test "${ac_cv_working_alloca_h+set}" = set; then
18462 $as_echo_n "(cached) " >&6
18463 else
18464 cat >conftest.$ac_ext <<_ACEOF
18465 /* confdefs.h. */
18466 _ACEOF
18467 cat confdefs.h >>conftest.$ac_ext
18468 cat >>conftest.$ac_ext <<_ACEOF
18469 /* end confdefs.h. */
18470 #include <alloca.h>
18471 int
18472 main ()
18473 {
18474 char *p = (char *) alloca (2 * sizeof (int));
18475 if (p) return 0;
18476 ;
18477 return 0;
18478 }
18479 _ACEOF
18480 rm -f conftest.$ac_objext conftest$ac_exeext
18481 if { (ac_try="$ac_link"
18482 case "(($ac_try" in
18483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18484 *) ac_try_echo=$ac_try;;
18485 esac
18486 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18487 $as_echo "$ac_try_echo") >&5
18488 (eval "$ac_link") 2>conftest.er1
18489 ac_status=$?
18490 grep -v '^ *+' conftest.er1 >conftest.err
18491 rm -f conftest.er1
18492 cat conftest.err >&5
18493 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18494 (exit $ac_status); } && {
18495 test -z "$ac_c_werror_flag" ||
18496 test ! -s conftest.err
18497 } && test -s conftest$ac_exeext && {
18498 test "$cross_compiling" = yes ||
18499 $as_test_x conftest$ac_exeext
18500 }; then
18501 ac_cv_working_alloca_h=yes
18502 else
18503 $as_echo "$as_me: failed program was:" >&5
18504 sed 's/^/| /' conftest.$ac_ext >&5
18506 ac_cv_working_alloca_h=no
18507 fi
18509 rm -rf conftest.dSYM
18510 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18511 conftest$ac_exeext conftest.$ac_ext
18512 fi
18513 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
18514 $as_echo "$ac_cv_working_alloca_h" >&6; }
18515 if test $ac_cv_working_alloca_h = yes; then
18517 cat >>confdefs.h <<\_ACEOF
18518 #define HAVE_ALLOCA_H 1
18519 _ACEOF
18521 fi
18523 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
18524 $as_echo_n "checking for alloca... " >&6; }
18525 if test "${ac_cv_func_alloca_works+set}" = set; then
18526 $as_echo_n "(cached) " >&6
18527 else
18528 cat >conftest.$ac_ext <<_ACEOF
18529 /* confdefs.h. */
18530 _ACEOF
18531 cat confdefs.h >>conftest.$ac_ext
18532 cat >>conftest.$ac_ext <<_ACEOF
18533 /* end confdefs.h. */
18534 #ifdef __GNUC__
18535 # define alloca __builtin_alloca
18536 #else
18537 # ifdef _MSC_VER
18538 # include <malloc.h>
18539 # define alloca _alloca
18540 # else
18541 # ifdef HAVE_ALLOCA_H
18542 # include <alloca.h>
18543 # else
18544 # ifdef _AIX
18545 #pragma alloca
18546 # else
18547 # ifndef alloca /* predefined by HP cc +Olibcalls */
18548 char *alloca ();
18549 # endif
18550 # endif
18551 # endif
18552 # endif
18553 #endif
18555 int
18556 main ()
18557 {
18558 char *p = (char *) alloca (1);
18559 if (p) return 0;
18560 ;
18561 return 0;
18562 }
18563 _ACEOF
18564 rm -f conftest.$ac_objext conftest$ac_exeext
18565 if { (ac_try="$ac_link"
18566 case "(($ac_try" in
18567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18568 *) ac_try_echo=$ac_try;;
18569 esac
18570 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18571 $as_echo "$ac_try_echo") >&5
18572 (eval "$ac_link") 2>conftest.er1
18573 ac_status=$?
18574 grep -v '^ *+' conftest.er1 >conftest.err
18575 rm -f conftest.er1
18576 cat conftest.err >&5
18577 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18578 (exit $ac_status); } && {
18579 test -z "$ac_c_werror_flag" ||
18580 test ! -s conftest.err
18581 } && test -s conftest$ac_exeext && {
18582 test "$cross_compiling" = yes ||
18583 $as_test_x conftest$ac_exeext
18584 }; then
18585 ac_cv_func_alloca_works=yes
18586 else
18587 $as_echo "$as_me: failed program was:" >&5
18588 sed 's/^/| /' conftest.$ac_ext >&5
18590 ac_cv_func_alloca_works=no
18591 fi
18593 rm -rf conftest.dSYM
18594 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18595 conftest$ac_exeext conftest.$ac_ext
18596 fi
18597 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
18598 $as_echo "$ac_cv_func_alloca_works" >&6; }
18600 if test $ac_cv_func_alloca_works = yes; then
18602 cat >>confdefs.h <<\_ACEOF
18603 #define HAVE_ALLOCA 1
18604 _ACEOF
18606 else
18607 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
18608 # that cause trouble. Some versions do not even contain alloca or
18609 # contain a buggy version. If you still want to use their alloca,
18610 # use ar to extract alloca.o from them instead of compiling alloca.c.
18612 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
18614 cat >>confdefs.h <<\_ACEOF
18615 #define C_ALLOCA 1
18616 _ACEOF
18619 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
18620 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
18621 if test "${ac_cv_os_cray+set}" = set; then
18622 $as_echo_n "(cached) " >&6
18623 else
18624 cat >conftest.$ac_ext <<_ACEOF
18625 /* confdefs.h. */
18626 _ACEOF
18627 cat confdefs.h >>conftest.$ac_ext
18628 cat >>conftest.$ac_ext <<_ACEOF
18629 /* end confdefs.h. */
18630 #if defined CRAY && ! defined CRAY2
18631 webecray
18632 #else
18633 wenotbecray
18634 #endif
18636 _ACEOF
18637 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18638 $EGREP "webecray" >/dev/null 2>&1; then
18639 ac_cv_os_cray=yes
18640 else
18641 ac_cv_os_cray=no
18642 fi
18643 rm -f conftest*
18645 fi
18646 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
18647 $as_echo "$ac_cv_os_cray" >&6; }
18648 if test $ac_cv_os_cray = yes; then
18649 for ac_func in _getb67 GETB67 getb67; do
18650 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18651 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18652 $as_echo_n "checking for $ac_func... " >&6; }
18653 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18654 $as_echo_n "(cached) " >&6
18655 else
18656 cat >conftest.$ac_ext <<_ACEOF
18657 /* confdefs.h. */
18658 _ACEOF
18659 cat confdefs.h >>conftest.$ac_ext
18660 cat >>conftest.$ac_ext <<_ACEOF
18661 /* end confdefs.h. */
18662 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18663 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18664 #define $ac_func innocuous_$ac_func
18666 /* System header to define __stub macros and hopefully few prototypes,
18667 which can conflict with char $ac_func (); below.
18668 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18669 <limits.h> exists even on freestanding compilers. */
18671 #ifdef __STDC__
18672 # include <limits.h>
18673 #else
18674 # include <assert.h>
18675 #endif
18677 #undef $ac_func
18679 /* Override any GCC internal prototype to avoid an error.
18680 Use char because int might match the return type of a GCC
18681 builtin and then its argument prototype would still apply. */
18682 #ifdef __cplusplus
18683 extern "C"
18684 #endif
18685 char $ac_func ();
18686 /* The GNU C library defines this for functions which it implements
18687 to always fail with ENOSYS. Some functions are actually named
18688 something starting with __ and the normal name is an alias. */
18689 #if defined __stub_$ac_func || defined __stub___$ac_func
18690 choke me
18691 #endif
18693 int
18694 main ()
18695 {
18696 return $ac_func ();
18697 ;
18698 return 0;
18699 }
18700 _ACEOF
18701 rm -f conftest.$ac_objext conftest$ac_exeext
18702 if { (ac_try="$ac_link"
18703 case "(($ac_try" in
18704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18705 *) ac_try_echo=$ac_try;;
18706 esac
18707 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18708 $as_echo "$ac_try_echo") >&5
18709 (eval "$ac_link") 2>conftest.er1
18710 ac_status=$?
18711 grep -v '^ *+' conftest.er1 >conftest.err
18712 rm -f conftest.er1
18713 cat conftest.err >&5
18714 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18715 (exit $ac_status); } && {
18716 test -z "$ac_c_werror_flag" ||
18717 test ! -s conftest.err
18718 } && test -s conftest$ac_exeext && {
18719 test "$cross_compiling" = yes ||
18720 $as_test_x conftest$ac_exeext
18721 }; then
18722 eval "$as_ac_var=yes"
18723 else
18724 $as_echo "$as_me: failed program was:" >&5
18725 sed 's/^/| /' conftest.$ac_ext >&5
18727 eval "$as_ac_var=no"
18728 fi
18730 rm -rf conftest.dSYM
18731 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18732 conftest$ac_exeext conftest.$ac_ext
18733 fi
18734 ac_res=`eval 'as_val=${'$as_ac_var'}
18735 $as_echo "$as_val"'`
18736 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18737 $as_echo "$ac_res" >&6; }
18738 as_val=`eval 'as_val=${'$as_ac_var'}
18739 $as_echo "$as_val"'`
18740 if test "x$as_val" = x""yes; then
18742 cat >>confdefs.h <<_ACEOF
18743 #define CRAY_STACKSEG_END $ac_func
18744 _ACEOF
18746 break
18747 fi
18749 done
18750 fi
18752 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
18753 $as_echo_n "checking stack direction for C alloca... " >&6; }
18754 if test "${ac_cv_c_stack_direction+set}" = set; then
18755 $as_echo_n "(cached) " >&6
18756 else
18757 if test "$cross_compiling" = yes; then
18758 ac_cv_c_stack_direction=0
18759 else
18760 cat >conftest.$ac_ext <<_ACEOF
18761 /* confdefs.h. */
18762 _ACEOF
18763 cat confdefs.h >>conftest.$ac_ext
18764 cat >>conftest.$ac_ext <<_ACEOF
18765 /* end confdefs.h. */
18766 $ac_includes_default
18767 int
18768 find_stack_direction ()
18769 {
18770 static char *addr = 0;
18771 auto char dummy;
18772 if (addr == 0)
18773 {
18774 addr = &dummy;
18775 return find_stack_direction ();
18776 }
18777 else
18778 return (&dummy > addr) ? 1 : -1;
18779 }
18781 int
18782 main ()
18783 {
18784 return find_stack_direction () < 0;
18785 }
18786 _ACEOF
18787 rm -f conftest$ac_exeext
18788 if { (ac_try="$ac_link"
18789 case "(($ac_try" in
18790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18791 *) ac_try_echo=$ac_try;;
18792 esac
18793 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18794 $as_echo "$ac_try_echo") >&5
18795 (eval "$ac_link") 2>&5
18796 ac_status=$?
18797 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18798 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18799 { (case "(($ac_try" in
18800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18801 *) ac_try_echo=$ac_try;;
18802 esac
18803 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18804 $as_echo "$ac_try_echo") >&5
18805 (eval "$ac_try") 2>&5
18806 ac_status=$?
18807 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18808 (exit $ac_status); }; }; then
18809 ac_cv_c_stack_direction=1
18810 else
18811 $as_echo "$as_me: program exited with status $ac_status" >&5
18812 $as_echo "$as_me: failed program was:" >&5
18813 sed 's/^/| /' conftest.$ac_ext >&5
18815 ( exit $ac_status )
18816 ac_cv_c_stack_direction=-1
18817 fi
18818 rm -rf conftest.dSYM
18819 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18820 fi
18823 fi
18824 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
18825 $as_echo "$ac_cv_c_stack_direction" >&6; }
18827 cat >>confdefs.h <<_ACEOF
18828 #define STACK_DIRECTION $ac_cv_c_stack_direction
18829 _ACEOF
18832 fi
18835 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
18836 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
18837 if test "${ac_cv_gnu_library_2_1+set}" = set; then
18838 $as_echo_n "(cached) " >&6
18839 else
18840 cat >conftest.$ac_ext <<_ACEOF
18841 /* confdefs.h. */
18842 _ACEOF
18843 cat confdefs.h >>conftest.$ac_ext
18844 cat >>conftest.$ac_ext <<_ACEOF
18845 /* end confdefs.h. */
18847 #include <features.h>
18848 #ifdef __GNU_LIBRARY__
18849 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
18850 Lucky GNU user
18851 #endif
18852 #endif
18854 _ACEOF
18855 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18856 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
18857 ac_cv_gnu_library_2_1=yes
18858 else
18859 ac_cv_gnu_library_2_1=no
18860 fi
18861 rm -f conftest*
18865 fi
18866 { $as_echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
18867 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
18869 GLIBC21="$ac_cv_gnu_library_2_1"
18874 { $as_echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
18875 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
18876 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
18877 $as_echo_n "(cached) " >&6
18878 else
18880 if test "$cross_compiling" = yes; then
18882 # Guess based on the CPU.
18883 case "$host_cpu" in
18884 alpha* | i3456786 | m68k | s390*)
18885 gt_cv_int_divbyzero_sigfpe="guessing yes";;
18886 *)
18887 gt_cv_int_divbyzero_sigfpe="guessing no";;
18888 esac
18890 else
18891 cat >conftest.$ac_ext <<_ACEOF
18892 /* confdefs.h. */
18893 _ACEOF
18894 cat confdefs.h >>conftest.$ac_ext
18895 cat >>conftest.$ac_ext <<_ACEOF
18896 /* end confdefs.h. */
18898 #include <stdlib.h>
18899 #include <signal.h>
18901 static void
18902 #ifdef __cplusplus
18903 sigfpe_handler (int sig)
18904 #else
18905 sigfpe_handler (sig) int sig;
18906 #endif
18907 {
18908 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
18909 exit (sig != SIGFPE);
18910 }
18912 int x = 1;
18913 int y = 0;
18914 int z;
18915 int nan;
18917 int main ()
18918 {
18919 signal (SIGFPE, sigfpe_handler);
18920 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
18921 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
18922 signal (SIGTRAP, sigfpe_handler);
18923 #endif
18924 /* Linux/SPARC yields signal SIGILL. */
18925 #if defined (__sparc__) && defined (__linux__)
18926 signal (SIGILL, sigfpe_handler);
18927 #endif
18929 z = x / y;
18930 nan = y / y;
18931 exit (1);
18932 }
18934 _ACEOF
18935 rm -f conftest$ac_exeext
18936 if { (ac_try="$ac_link"
18937 case "(($ac_try" in
18938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18939 *) ac_try_echo=$ac_try;;
18940 esac
18941 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18942 $as_echo "$ac_try_echo") >&5
18943 (eval "$ac_link") 2>&5
18944 ac_status=$?
18945 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18946 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18947 { (case "(($ac_try" in
18948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18949 *) ac_try_echo=$ac_try;;
18950 esac
18951 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18952 $as_echo "$ac_try_echo") >&5
18953 (eval "$ac_try") 2>&5
18954 ac_status=$?
18955 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18956 (exit $ac_status); }; }; then
18957 gt_cv_int_divbyzero_sigfpe=yes
18958 else
18959 $as_echo "$as_me: program exited with status $ac_status" >&5
18960 $as_echo "$as_me: failed program was:" >&5
18961 sed 's/^/| /' conftest.$ac_ext >&5
18963 ( exit $ac_status )
18964 gt_cv_int_divbyzero_sigfpe=no
18965 fi
18966 rm -rf conftest.dSYM
18967 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18968 fi
18972 fi
18973 { $as_echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
18974 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
18975 case "$gt_cv_int_divbyzero_sigfpe" in
18976 *yes) value=1;;
18977 *) value=0;;
18978 esac
18980 cat >>confdefs.h <<_ACEOF
18981 #define INTDIV0_RAISES_SIGFPE $value
18982 _ACEOF
18986 { $as_echo "$as_me:$LINENO: checking for unsigned long long" >&5
18987 $as_echo_n "checking for unsigned long long... " >&6; }
18988 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
18989 $as_echo_n "(cached) " >&6
18990 else
18991 cat >conftest.$ac_ext <<_ACEOF
18992 /* confdefs.h. */
18993 _ACEOF
18994 cat confdefs.h >>conftest.$ac_ext
18995 cat >>conftest.$ac_ext <<_ACEOF
18996 /* end confdefs.h. */
18997 unsigned long long ull = 1ULL; int i = 63;
18998 int
18999 main ()
19000 {
19001 unsigned long long ullmax = (unsigned long long) -1;
19002 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
19003 ;
19004 return 0;
19005 }
19006 _ACEOF
19007 rm -f conftest.$ac_objext conftest$ac_exeext
19008 if { (ac_try="$ac_link"
19009 case "(($ac_try" in
19010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19011 *) ac_try_echo=$ac_try;;
19012 esac
19013 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19014 $as_echo "$ac_try_echo") >&5
19015 (eval "$ac_link") 2>conftest.er1
19016 ac_status=$?
19017 grep -v '^ *+' conftest.er1 >conftest.err
19018 rm -f conftest.er1
19019 cat conftest.err >&5
19020 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19021 (exit $ac_status); } && {
19022 test -z "$ac_c_werror_flag" ||
19023 test ! -s conftest.err
19024 } && test -s conftest$ac_exeext && {
19025 test "$cross_compiling" = yes ||
19026 $as_test_x conftest$ac_exeext
19027 }; then
19028 ac_cv_type_unsigned_long_long=yes
19029 else
19030 $as_echo "$as_me: failed program was:" >&5
19031 sed 's/^/| /' conftest.$ac_ext >&5
19033 ac_cv_type_unsigned_long_long=no
19034 fi
19036 rm -rf conftest.dSYM
19037 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19038 conftest$ac_exeext conftest.$ac_ext
19039 fi
19040 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
19041 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
19042 if test $ac_cv_type_unsigned_long_long = yes; then
19044 cat >>confdefs.h <<\_ACEOF
19045 #define HAVE_UNSIGNED_LONG_LONG 1
19046 _ACEOF
19048 fi
19053 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
19055 test $ac_cv_type_unsigned_long_long = yes \
19056 && ac_type='unsigned long long' \
19057 || ac_type='unsigned long'
19059 cat >>confdefs.h <<_ACEOF
19060 #define uintmax_t $ac_type
19061 _ACEOF
19063 else
19065 cat >>confdefs.h <<\_ACEOF
19066 #define HAVE_UINTMAX_T 1
19067 _ACEOF
19069 fi
19072 { $as_echo "$as_me:$LINENO: checking for inttypes.h" >&5
19073 $as_echo_n "checking for inttypes.h... " >&6; }
19074 if test "${gt_cv_header_inttypes_h+set}" = set; then
19075 $as_echo_n "(cached) " >&6
19076 else
19078 cat >conftest.$ac_ext <<_ACEOF
19079 /* confdefs.h. */
19080 _ACEOF
19081 cat confdefs.h >>conftest.$ac_ext
19082 cat >>conftest.$ac_ext <<_ACEOF
19083 /* end confdefs.h. */
19084 #include <sys/types.h>
19085 #include <inttypes.h>
19086 int
19087 main ()
19088 {
19090 ;
19091 return 0;
19092 }
19093 _ACEOF
19094 rm -f conftest.$ac_objext
19095 if { (ac_try="$ac_compile"
19096 case "(($ac_try" in
19097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19098 *) ac_try_echo=$ac_try;;
19099 esac
19100 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19101 $as_echo "$ac_try_echo") >&5
19102 (eval "$ac_compile") 2>conftest.er1
19103 ac_status=$?
19104 grep -v '^ *+' conftest.er1 >conftest.err
19105 rm -f conftest.er1
19106 cat conftest.err >&5
19107 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19108 (exit $ac_status); } && {
19109 test -z "$ac_c_werror_flag" ||
19110 test ! -s conftest.err
19111 } && test -s conftest.$ac_objext; then
19112 gt_cv_header_inttypes_h=yes
19113 else
19114 $as_echo "$as_me: failed program was:" >&5
19115 sed 's/^/| /' conftest.$ac_ext >&5
19117 gt_cv_header_inttypes_h=no
19118 fi
19120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19122 fi
19123 { $as_echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
19124 $as_echo "$gt_cv_header_inttypes_h" >&6; }
19125 if test $gt_cv_header_inttypes_h = yes; then
19127 cat >>confdefs.h <<_ACEOF
19128 #define HAVE_INTTYPES_H 1
19129 _ACEOF
19131 fi
19135 if test $gt_cv_header_inttypes_h = yes; then
19136 { $as_echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
19137 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
19138 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
19139 $as_echo_n "(cached) " >&6
19140 else
19142 cat >conftest.$ac_ext <<_ACEOF
19143 /* confdefs.h. */
19144 _ACEOF
19145 cat confdefs.h >>conftest.$ac_ext
19146 cat >>conftest.$ac_ext <<_ACEOF
19147 /* end confdefs.h. */
19148 #include <inttypes.h>
19149 #ifdef PRId32
19150 char *p = PRId32;
19151 #endif
19153 int
19154 main ()
19155 {
19157 ;
19158 return 0;
19159 }
19160 _ACEOF
19161 rm -f conftest.$ac_objext
19162 if { (ac_try="$ac_compile"
19163 case "(($ac_try" in
19164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19165 *) ac_try_echo=$ac_try;;
19166 esac
19167 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19168 $as_echo "$ac_try_echo") >&5
19169 (eval "$ac_compile") 2>conftest.er1
19170 ac_status=$?
19171 grep -v '^ *+' conftest.er1 >conftest.err
19172 rm -f conftest.er1
19173 cat conftest.err >&5
19174 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19175 (exit $ac_status); } && {
19176 test -z "$ac_c_werror_flag" ||
19177 test ! -s conftest.err
19178 } && test -s conftest.$ac_objext; then
19179 gt_cv_inttypes_pri_broken=no
19180 else
19181 $as_echo "$as_me: failed program was:" >&5
19182 sed 's/^/| /' conftest.$ac_ext >&5
19184 gt_cv_inttypes_pri_broken=yes
19185 fi
19187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19189 fi
19190 { $as_echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
19191 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
19192 fi
19193 if test "$gt_cv_inttypes_pri_broken" = yes; then
19195 cat >>confdefs.h <<_ACEOF
19196 #define PRI_MACROS_BROKEN 1
19197 _ACEOF
19199 fi
19203 for ac_header in stdint.h
19204 do
19205 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19206 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19207 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19208 $as_echo_n "checking for $ac_header... " >&6; }
19209 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19210 $as_echo_n "(cached) " >&6
19211 fi
19212 ac_res=`eval 'as_val=${'$as_ac_Header'}
19213 $as_echo "$as_val"'`
19214 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19215 $as_echo "$ac_res" >&6; }
19216 else
19217 # Is the header compilable?
19218 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19219 $as_echo_n "checking $ac_header usability... " >&6; }
19220 cat >conftest.$ac_ext <<_ACEOF
19221 /* confdefs.h. */
19222 _ACEOF
19223 cat confdefs.h >>conftest.$ac_ext
19224 cat >>conftest.$ac_ext <<_ACEOF
19225 /* end confdefs.h. */
19226 $ac_includes_default
19227 #include <$ac_header>
19228 _ACEOF
19229 rm -f conftest.$ac_objext
19230 if { (ac_try="$ac_compile"
19231 case "(($ac_try" in
19232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19233 *) ac_try_echo=$ac_try;;
19234 esac
19235 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19236 $as_echo "$ac_try_echo") >&5
19237 (eval "$ac_compile") 2>conftest.er1
19238 ac_status=$?
19239 grep -v '^ *+' conftest.er1 >conftest.err
19240 rm -f conftest.er1
19241 cat conftest.err >&5
19242 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19243 (exit $ac_status); } && {
19244 test -z "$ac_c_werror_flag" ||
19245 test ! -s conftest.err
19246 } && test -s conftest.$ac_objext; then
19247 ac_header_compiler=yes
19248 else
19249 $as_echo "$as_me: failed program was:" >&5
19250 sed 's/^/| /' conftest.$ac_ext >&5
19252 ac_header_compiler=no
19253 fi
19255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19256 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19257 $as_echo "$ac_header_compiler" >&6; }
19259 # Is the header present?
19260 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
19261 $as_echo_n "checking $ac_header presence... " >&6; }
19262 cat >conftest.$ac_ext <<_ACEOF
19263 /* confdefs.h. */
19264 _ACEOF
19265 cat confdefs.h >>conftest.$ac_ext
19266 cat >>conftest.$ac_ext <<_ACEOF
19267 /* end confdefs.h. */
19268 #include <$ac_header>
19269 _ACEOF
19270 if { (ac_try="$ac_cpp conftest.$ac_ext"
19271 case "(($ac_try" in
19272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19273 *) ac_try_echo=$ac_try;;
19274 esac
19275 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19276 $as_echo "$ac_try_echo") >&5
19277 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19278 ac_status=$?
19279 grep -v '^ *+' conftest.er1 >conftest.err
19280 rm -f conftest.er1
19281 cat conftest.err >&5
19282 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19283 (exit $ac_status); } >/dev/null && {
19284 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19285 test ! -s conftest.err
19286 }; then
19287 ac_header_preproc=yes
19288 else
19289 $as_echo "$as_me: failed program was:" >&5
19290 sed 's/^/| /' conftest.$ac_ext >&5
19292 ac_header_preproc=no
19293 fi
19295 rm -f conftest.err conftest.$ac_ext
19296 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19297 $as_echo "$ac_header_preproc" >&6; }
19299 # So? What about this header?
19300 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19301 yes:no: )
19302 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19303 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19304 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19305 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19306 ac_header_preproc=yes
19307 ;;
19308 no:yes:* )
19309 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19310 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19311 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19312 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19313 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19314 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19315 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19316 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19317 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19318 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19319 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19320 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19322 ;;
19323 esac
19324 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19325 $as_echo_n "checking for $ac_header... " >&6; }
19326 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19327 $as_echo_n "(cached) " >&6
19328 else
19329 eval "$as_ac_Header=\$ac_header_preproc"
19330 fi
19331 ac_res=`eval 'as_val=${'$as_ac_Header'}
19332 $as_echo "$as_val"'`
19333 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19334 $as_echo "$ac_res" >&6; }
19336 fi
19337 as_val=`eval 'as_val=${'$as_ac_Header'}
19338 $as_echo "$as_val"'`
19339 if test "x$as_val" = x""yes; then
19340 cat >>confdefs.h <<_ACEOF
19341 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19342 _ACEOF
19344 fi
19346 done
19348 { $as_echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
19349 $as_echo_n "checking for SIZE_MAX... " >&6; }
19350 result=
19351 cat >conftest.$ac_ext <<_ACEOF
19352 /* confdefs.h. */
19353 _ACEOF
19354 cat confdefs.h >>conftest.$ac_ext
19355 cat >>conftest.$ac_ext <<_ACEOF
19356 /* end confdefs.h. */
19358 #include <limits.h>
19359 #if HAVE_STDINT_H
19360 #include <stdint.h>
19361 #endif
19362 #ifdef SIZE_MAX
19363 Found it
19364 #endif
19366 _ACEOF
19367 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19368 $EGREP "Found it" >/dev/null 2>&1; then
19369 result=yes
19370 fi
19371 rm -f conftest*
19373 if test -z "$result"; then
19374 if test "$cross_compiling" = yes; then
19375 # Depending upon the size, compute the lo and hi bounds.
19376 cat >conftest.$ac_ext <<_ACEOF
19377 /* confdefs.h. */
19378 _ACEOF
19379 cat confdefs.h >>conftest.$ac_ext
19380 cat >>conftest.$ac_ext <<_ACEOF
19381 /* end confdefs.h. */
19382 #include <stddef.h>
19383 int
19384 main ()
19385 {
19386 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
19387 test_array [0] = 0
19389 ;
19390 return 0;
19391 }
19392 _ACEOF
19393 rm -f conftest.$ac_objext
19394 if { (ac_try="$ac_compile"
19395 case "(($ac_try" in
19396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19397 *) ac_try_echo=$ac_try;;
19398 esac
19399 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19400 $as_echo "$ac_try_echo") >&5
19401 (eval "$ac_compile") 2>conftest.er1
19402 ac_status=$?
19403 grep -v '^ *+' conftest.er1 >conftest.err
19404 rm -f conftest.er1
19405 cat conftest.err >&5
19406 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19407 (exit $ac_status); } && {
19408 test -z "$ac_c_werror_flag" ||
19409 test ! -s conftest.err
19410 } && test -s conftest.$ac_objext; then
19411 ac_lo=0 ac_mid=0
19412 while :; do
19413 cat >conftest.$ac_ext <<_ACEOF
19414 /* confdefs.h. */
19415 _ACEOF
19416 cat confdefs.h >>conftest.$ac_ext
19417 cat >>conftest.$ac_ext <<_ACEOF
19418 /* end confdefs.h. */
19419 #include <stddef.h>
19420 int
19421 main ()
19422 {
19423 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
19424 test_array [0] = 0
19426 ;
19427 return 0;
19428 }
19429 _ACEOF
19430 rm -f conftest.$ac_objext
19431 if { (ac_try="$ac_compile"
19432 case "(($ac_try" in
19433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19434 *) ac_try_echo=$ac_try;;
19435 esac
19436 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19437 $as_echo "$ac_try_echo") >&5
19438 (eval "$ac_compile") 2>conftest.er1
19439 ac_status=$?
19440 grep -v '^ *+' conftest.er1 >conftest.err
19441 rm -f conftest.er1
19442 cat conftest.err >&5
19443 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19444 (exit $ac_status); } && {
19445 test -z "$ac_c_werror_flag" ||
19446 test ! -s conftest.err
19447 } && test -s conftest.$ac_objext; then
19448 ac_hi=$ac_mid; break
19449 else
19450 $as_echo "$as_me: failed program was:" >&5
19451 sed 's/^/| /' conftest.$ac_ext >&5
19453 ac_lo=`expr $ac_mid + 1`
19454 if test $ac_lo -le $ac_mid; then
19455 ac_lo= ac_hi=
19456 break
19457 fi
19458 ac_mid=`expr 2 '*' $ac_mid + 1`
19459 fi
19461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19462 done
19463 else
19464 $as_echo "$as_me: failed program was:" >&5
19465 sed 's/^/| /' conftest.$ac_ext >&5
19467 cat >conftest.$ac_ext <<_ACEOF
19468 /* confdefs.h. */
19469 _ACEOF
19470 cat confdefs.h >>conftest.$ac_ext
19471 cat >>conftest.$ac_ext <<_ACEOF
19472 /* end confdefs.h. */
19473 #include <stddef.h>
19474 int
19475 main ()
19476 {
19477 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
19478 test_array [0] = 0
19480 ;
19481 return 0;
19482 }
19483 _ACEOF
19484 rm -f conftest.$ac_objext
19485 if { (ac_try="$ac_compile"
19486 case "(($ac_try" in
19487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19488 *) ac_try_echo=$ac_try;;
19489 esac
19490 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19491 $as_echo "$ac_try_echo") >&5
19492 (eval "$ac_compile") 2>conftest.er1
19493 ac_status=$?
19494 grep -v '^ *+' conftest.er1 >conftest.err
19495 rm -f conftest.er1
19496 cat conftest.err >&5
19497 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19498 (exit $ac_status); } && {
19499 test -z "$ac_c_werror_flag" ||
19500 test ! -s conftest.err
19501 } && test -s conftest.$ac_objext; then
19502 ac_hi=-1 ac_mid=-1
19503 while :; do
19504 cat >conftest.$ac_ext <<_ACEOF
19505 /* confdefs.h. */
19506 _ACEOF
19507 cat confdefs.h >>conftest.$ac_ext
19508 cat >>conftest.$ac_ext <<_ACEOF
19509 /* end confdefs.h. */
19510 #include <stddef.h>
19511 int
19512 main ()
19513 {
19514 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
19515 test_array [0] = 0
19517 ;
19518 return 0;
19519 }
19520 _ACEOF
19521 rm -f conftest.$ac_objext
19522 if { (ac_try="$ac_compile"
19523 case "(($ac_try" in
19524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19525 *) ac_try_echo=$ac_try;;
19526 esac
19527 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19528 $as_echo "$ac_try_echo") >&5
19529 (eval "$ac_compile") 2>conftest.er1
19530 ac_status=$?
19531 grep -v '^ *+' conftest.er1 >conftest.err
19532 rm -f conftest.er1
19533 cat conftest.err >&5
19534 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19535 (exit $ac_status); } && {
19536 test -z "$ac_c_werror_flag" ||
19537 test ! -s conftest.err
19538 } && test -s conftest.$ac_objext; then
19539 ac_lo=$ac_mid; break
19540 else
19541 $as_echo "$as_me: failed program was:" >&5
19542 sed 's/^/| /' conftest.$ac_ext >&5
19544 ac_hi=`expr '(' $ac_mid ')' - 1`
19545 if test $ac_mid -le $ac_hi; then
19546 ac_lo= ac_hi=
19547 break
19548 fi
19549 ac_mid=`expr 2 '*' $ac_mid`
19550 fi
19552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19553 done
19554 else
19555 $as_echo "$as_me: failed program was:" >&5
19556 sed 's/^/| /' conftest.$ac_ext >&5
19558 ac_lo= ac_hi=
19559 fi
19561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19562 fi
19564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19565 # Binary search between lo and hi bounds.
19566 while test "x$ac_lo" != "x$ac_hi"; do
19567 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19568 cat >conftest.$ac_ext <<_ACEOF
19569 /* confdefs.h. */
19570 _ACEOF
19571 cat confdefs.h >>conftest.$ac_ext
19572 cat >>conftest.$ac_ext <<_ACEOF
19573 /* end confdefs.h. */
19574 #include <stddef.h>
19575 int
19576 main ()
19577 {
19578 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
19579 test_array [0] = 0
19581 ;
19582 return 0;
19583 }
19584 _ACEOF
19585 rm -f conftest.$ac_objext
19586 if { (ac_try="$ac_compile"
19587 case "(($ac_try" in
19588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19589 *) ac_try_echo=$ac_try;;
19590 esac
19591 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19592 $as_echo "$ac_try_echo") >&5
19593 (eval "$ac_compile") 2>conftest.er1
19594 ac_status=$?
19595 grep -v '^ *+' conftest.er1 >conftest.err
19596 rm -f conftest.er1
19597 cat conftest.err >&5
19598 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19599 (exit $ac_status); } && {
19600 test -z "$ac_c_werror_flag" ||
19601 test ! -s conftest.err
19602 } && test -s conftest.$ac_objext; then
19603 ac_hi=$ac_mid
19604 else
19605 $as_echo "$as_me: failed program was:" >&5
19606 sed 's/^/| /' conftest.$ac_ext >&5
19608 ac_lo=`expr '(' $ac_mid ')' + 1`
19609 fi
19611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19612 done
19613 case $ac_lo in
19614 ?*) res_hi=$ac_lo;;
19615 '') result=? ;;
19616 esac
19617 else
19618 cat >conftest.$ac_ext <<_ACEOF
19619 /* confdefs.h. */
19620 _ACEOF
19621 cat confdefs.h >>conftest.$ac_ext
19622 cat >>conftest.$ac_ext <<_ACEOF
19623 /* end confdefs.h. */
19624 #include <stddef.h>
19625 static long int longval () { return ~(size_t)0 / 10; }
19626 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
19627 #include <stdio.h>
19628 #include <stdlib.h>
19629 int
19630 main ()
19631 {
19633 FILE *f = fopen ("conftest.val", "w");
19634 if (! f)
19635 return 1;
19636 if ((~(size_t)0 / 10) < 0)
19637 {
19638 long int i = longval ();
19639 if (i != (~(size_t)0 / 10))
19640 return 1;
19641 fprintf (f, "%ld", i);
19642 }
19643 else
19644 {
19645 unsigned long int i = ulongval ();
19646 if (i != (~(size_t)0 / 10))
19647 return 1;
19648 fprintf (f, "%lu", i);
19649 }
19650 /* Do not output a trailing newline, as this causes \r\n confusion
19651 on some platforms. */
19652 return ferror (f) || fclose (f) != 0;
19654 ;
19655 return 0;
19656 }
19657 _ACEOF
19658 rm -f conftest$ac_exeext
19659 if { (ac_try="$ac_link"
19660 case "(($ac_try" in
19661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19662 *) ac_try_echo=$ac_try;;
19663 esac
19664 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19665 $as_echo "$ac_try_echo") >&5
19666 (eval "$ac_link") 2>&5
19667 ac_status=$?
19668 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19669 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19670 { (case "(($ac_try" in
19671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19672 *) ac_try_echo=$ac_try;;
19673 esac
19674 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19675 $as_echo "$ac_try_echo") >&5
19676 (eval "$ac_try") 2>&5
19677 ac_status=$?
19678 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19679 (exit $ac_status); }; }; then
19680 res_hi=`cat conftest.val`
19681 else
19682 $as_echo "$as_me: program exited with status $ac_status" >&5
19683 $as_echo "$as_me: failed program was:" >&5
19684 sed 's/^/| /' conftest.$ac_ext >&5
19686 ( exit $ac_status )
19687 result=?
19688 fi
19689 rm -rf conftest.dSYM
19690 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19691 fi
19692 rm -f conftest.val
19694 if test "$cross_compiling" = yes; then
19695 # Depending upon the size, compute the lo and hi bounds.
19696 cat >conftest.$ac_ext <<_ACEOF
19697 /* confdefs.h. */
19698 _ACEOF
19699 cat confdefs.h >>conftest.$ac_ext
19700 cat >>conftest.$ac_ext <<_ACEOF
19701 /* end confdefs.h. */
19702 #include <stddef.h>
19703 int
19704 main ()
19705 {
19706 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
19707 test_array [0] = 0
19709 ;
19710 return 0;
19711 }
19712 _ACEOF
19713 rm -f conftest.$ac_objext
19714 if { (ac_try="$ac_compile"
19715 case "(($ac_try" in
19716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19717 *) ac_try_echo=$ac_try;;
19718 esac
19719 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19720 $as_echo "$ac_try_echo") >&5
19721 (eval "$ac_compile") 2>conftest.er1
19722 ac_status=$?
19723 grep -v '^ *+' conftest.er1 >conftest.err
19724 rm -f conftest.er1
19725 cat conftest.err >&5
19726 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19727 (exit $ac_status); } && {
19728 test -z "$ac_c_werror_flag" ||
19729 test ! -s conftest.err
19730 } && test -s conftest.$ac_objext; then
19731 ac_lo=0 ac_mid=0
19732 while :; do
19733 cat >conftest.$ac_ext <<_ACEOF
19734 /* confdefs.h. */
19735 _ACEOF
19736 cat confdefs.h >>conftest.$ac_ext
19737 cat >>conftest.$ac_ext <<_ACEOF
19738 /* end confdefs.h. */
19739 #include <stddef.h>
19740 int
19741 main ()
19742 {
19743 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
19744 test_array [0] = 0
19746 ;
19747 return 0;
19748 }
19749 _ACEOF
19750 rm -f conftest.$ac_objext
19751 if { (ac_try="$ac_compile"
19752 case "(($ac_try" in
19753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19754 *) ac_try_echo=$ac_try;;
19755 esac
19756 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19757 $as_echo "$ac_try_echo") >&5
19758 (eval "$ac_compile") 2>conftest.er1
19759 ac_status=$?
19760 grep -v '^ *+' conftest.er1 >conftest.err
19761 rm -f conftest.er1
19762 cat conftest.err >&5
19763 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19764 (exit $ac_status); } && {
19765 test -z "$ac_c_werror_flag" ||
19766 test ! -s conftest.err
19767 } && test -s conftest.$ac_objext; then
19768 ac_hi=$ac_mid; break
19769 else
19770 $as_echo "$as_me: failed program was:" >&5
19771 sed 's/^/| /' conftest.$ac_ext >&5
19773 ac_lo=`expr $ac_mid + 1`
19774 if test $ac_lo -le $ac_mid; then
19775 ac_lo= ac_hi=
19776 break
19777 fi
19778 ac_mid=`expr 2 '*' $ac_mid + 1`
19779 fi
19781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19782 done
19783 else
19784 $as_echo "$as_me: failed program was:" >&5
19785 sed 's/^/| /' conftest.$ac_ext >&5
19787 cat >conftest.$ac_ext <<_ACEOF
19788 /* confdefs.h. */
19789 _ACEOF
19790 cat confdefs.h >>conftest.$ac_ext
19791 cat >>conftest.$ac_ext <<_ACEOF
19792 /* end confdefs.h. */
19793 #include <stddef.h>
19794 int
19795 main ()
19796 {
19797 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
19798 test_array [0] = 0
19800 ;
19801 return 0;
19802 }
19803 _ACEOF
19804 rm -f conftest.$ac_objext
19805 if { (ac_try="$ac_compile"
19806 case "(($ac_try" in
19807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19808 *) ac_try_echo=$ac_try;;
19809 esac
19810 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19811 $as_echo "$ac_try_echo") >&5
19812 (eval "$ac_compile") 2>conftest.er1
19813 ac_status=$?
19814 grep -v '^ *+' conftest.er1 >conftest.err
19815 rm -f conftest.er1
19816 cat conftest.err >&5
19817 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19818 (exit $ac_status); } && {
19819 test -z "$ac_c_werror_flag" ||
19820 test ! -s conftest.err
19821 } && test -s conftest.$ac_objext; then
19822 ac_hi=-1 ac_mid=-1
19823 while :; do
19824 cat >conftest.$ac_ext <<_ACEOF
19825 /* confdefs.h. */
19826 _ACEOF
19827 cat confdefs.h >>conftest.$ac_ext
19828 cat >>conftest.$ac_ext <<_ACEOF
19829 /* end confdefs.h. */
19830 #include <stddef.h>
19831 int
19832 main ()
19833 {
19834 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
19835 test_array [0] = 0
19837 ;
19838 return 0;
19839 }
19840 _ACEOF
19841 rm -f conftest.$ac_objext
19842 if { (ac_try="$ac_compile"
19843 case "(($ac_try" in
19844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19845 *) ac_try_echo=$ac_try;;
19846 esac
19847 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19848 $as_echo "$ac_try_echo") >&5
19849 (eval "$ac_compile") 2>conftest.er1
19850 ac_status=$?
19851 grep -v '^ *+' conftest.er1 >conftest.err
19852 rm -f conftest.er1
19853 cat conftest.err >&5
19854 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19855 (exit $ac_status); } && {
19856 test -z "$ac_c_werror_flag" ||
19857 test ! -s conftest.err
19858 } && test -s conftest.$ac_objext; then
19859 ac_lo=$ac_mid; break
19860 else
19861 $as_echo "$as_me: failed program was:" >&5
19862 sed 's/^/| /' conftest.$ac_ext >&5
19864 ac_hi=`expr '(' $ac_mid ')' - 1`
19865 if test $ac_mid -le $ac_hi; then
19866 ac_lo= ac_hi=
19867 break
19868 fi
19869 ac_mid=`expr 2 '*' $ac_mid`
19870 fi
19872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19873 done
19874 else
19875 $as_echo "$as_me: failed program was:" >&5
19876 sed 's/^/| /' conftest.$ac_ext >&5
19878 ac_lo= ac_hi=
19879 fi
19881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19882 fi
19884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19885 # Binary search between lo and hi bounds.
19886 while test "x$ac_lo" != "x$ac_hi"; do
19887 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19888 cat >conftest.$ac_ext <<_ACEOF
19889 /* confdefs.h. */
19890 _ACEOF
19891 cat confdefs.h >>conftest.$ac_ext
19892 cat >>conftest.$ac_ext <<_ACEOF
19893 /* end confdefs.h. */
19894 #include <stddef.h>
19895 int
19896 main ()
19897 {
19898 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
19899 test_array [0] = 0
19901 ;
19902 return 0;
19903 }
19904 _ACEOF
19905 rm -f conftest.$ac_objext
19906 if { (ac_try="$ac_compile"
19907 case "(($ac_try" in
19908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19909 *) ac_try_echo=$ac_try;;
19910 esac
19911 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19912 $as_echo "$ac_try_echo") >&5
19913 (eval "$ac_compile") 2>conftest.er1
19914 ac_status=$?
19915 grep -v '^ *+' conftest.er1 >conftest.err
19916 rm -f conftest.er1
19917 cat conftest.err >&5
19918 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19919 (exit $ac_status); } && {
19920 test -z "$ac_c_werror_flag" ||
19921 test ! -s conftest.err
19922 } && test -s conftest.$ac_objext; then
19923 ac_hi=$ac_mid
19924 else
19925 $as_echo "$as_me: failed program was:" >&5
19926 sed 's/^/| /' conftest.$ac_ext >&5
19928 ac_lo=`expr '(' $ac_mid ')' + 1`
19929 fi
19931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19932 done
19933 case $ac_lo in
19934 ?*) res_lo=$ac_lo;;
19935 '') result=? ;;
19936 esac
19937 else
19938 cat >conftest.$ac_ext <<_ACEOF
19939 /* confdefs.h. */
19940 _ACEOF
19941 cat confdefs.h >>conftest.$ac_ext
19942 cat >>conftest.$ac_ext <<_ACEOF
19943 /* end confdefs.h. */
19944 #include <stddef.h>
19945 static long int longval () { return ~(size_t)0 % 10; }
19946 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
19947 #include <stdio.h>
19948 #include <stdlib.h>
19949 int
19950 main ()
19951 {
19953 FILE *f = fopen ("conftest.val", "w");
19954 if (! f)
19955 return 1;
19956 if ((~(size_t)0 % 10) < 0)
19957 {
19958 long int i = longval ();
19959 if (i != (~(size_t)0 % 10))
19960 return 1;
19961 fprintf (f, "%ld", i);
19962 }
19963 else
19964 {
19965 unsigned long int i = ulongval ();
19966 if (i != (~(size_t)0 % 10))
19967 return 1;
19968 fprintf (f, "%lu", i);
19969 }
19970 /* Do not output a trailing newline, as this causes \r\n confusion
19971 on some platforms. */
19972 return ferror (f) || fclose (f) != 0;
19974 ;
19975 return 0;
19976 }
19977 _ACEOF
19978 rm -f conftest$ac_exeext
19979 if { (ac_try="$ac_link"
19980 case "(($ac_try" in
19981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19982 *) ac_try_echo=$ac_try;;
19983 esac
19984 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19985 $as_echo "$ac_try_echo") >&5
19986 (eval "$ac_link") 2>&5
19987 ac_status=$?
19988 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19989 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19990 { (case "(($ac_try" in
19991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19992 *) ac_try_echo=$ac_try;;
19993 esac
19994 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19995 $as_echo "$ac_try_echo") >&5
19996 (eval "$ac_try") 2>&5
19997 ac_status=$?
19998 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19999 (exit $ac_status); }; }; then
20000 res_lo=`cat conftest.val`
20001 else
20002 $as_echo "$as_me: program exited with status $ac_status" >&5
20003 $as_echo "$as_me: failed program was:" >&5
20004 sed 's/^/| /' conftest.$ac_ext >&5
20006 ( exit $ac_status )
20007 result=?
20008 fi
20009 rm -rf conftest.dSYM
20010 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20011 fi
20012 rm -f conftest.val
20014 if test "$cross_compiling" = yes; then
20015 # Depending upon the size, compute the lo and hi bounds.
20016 cat >conftest.$ac_ext <<_ACEOF
20017 /* confdefs.h. */
20018 _ACEOF
20019 cat confdefs.h >>conftest.$ac_ext
20020 cat >>conftest.$ac_ext <<_ACEOF
20021 /* end confdefs.h. */
20022 #include <stddef.h>
20023 int
20024 main ()
20025 {
20026 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
20027 test_array [0] = 0
20029 ;
20030 return 0;
20031 }
20032 _ACEOF
20033 rm -f conftest.$ac_objext
20034 if { (ac_try="$ac_compile"
20035 case "(($ac_try" in
20036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20037 *) ac_try_echo=$ac_try;;
20038 esac
20039 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20040 $as_echo "$ac_try_echo") >&5
20041 (eval "$ac_compile") 2>conftest.er1
20042 ac_status=$?
20043 grep -v '^ *+' conftest.er1 >conftest.err
20044 rm -f conftest.er1
20045 cat conftest.err >&5
20046 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20047 (exit $ac_status); } && {
20048 test -z "$ac_c_werror_flag" ||
20049 test ! -s conftest.err
20050 } && test -s conftest.$ac_objext; then
20051 ac_lo=0 ac_mid=0
20052 while :; do
20053 cat >conftest.$ac_ext <<_ACEOF
20054 /* confdefs.h. */
20055 _ACEOF
20056 cat confdefs.h >>conftest.$ac_ext
20057 cat >>conftest.$ac_ext <<_ACEOF
20058 /* end confdefs.h. */
20059 #include <stddef.h>
20060 int
20061 main ()
20062 {
20063 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
20064 test_array [0] = 0
20066 ;
20067 return 0;
20068 }
20069 _ACEOF
20070 rm -f conftest.$ac_objext
20071 if { (ac_try="$ac_compile"
20072 case "(($ac_try" in
20073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20074 *) ac_try_echo=$ac_try;;
20075 esac
20076 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20077 $as_echo "$ac_try_echo") >&5
20078 (eval "$ac_compile") 2>conftest.er1
20079 ac_status=$?
20080 grep -v '^ *+' conftest.er1 >conftest.err
20081 rm -f conftest.er1
20082 cat conftest.err >&5
20083 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20084 (exit $ac_status); } && {
20085 test -z "$ac_c_werror_flag" ||
20086 test ! -s conftest.err
20087 } && test -s conftest.$ac_objext; then
20088 ac_hi=$ac_mid; break
20089 else
20090 $as_echo "$as_me: failed program was:" >&5
20091 sed 's/^/| /' conftest.$ac_ext >&5
20093 ac_lo=`expr $ac_mid + 1`
20094 if test $ac_lo -le $ac_mid; then
20095 ac_lo= ac_hi=
20096 break
20097 fi
20098 ac_mid=`expr 2 '*' $ac_mid + 1`
20099 fi
20101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20102 done
20103 else
20104 $as_echo "$as_me: failed program was:" >&5
20105 sed 's/^/| /' conftest.$ac_ext >&5
20107 cat >conftest.$ac_ext <<_ACEOF
20108 /* confdefs.h. */
20109 _ACEOF
20110 cat confdefs.h >>conftest.$ac_ext
20111 cat >>conftest.$ac_ext <<_ACEOF
20112 /* end confdefs.h. */
20113 #include <stddef.h>
20114 int
20115 main ()
20116 {
20117 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
20118 test_array [0] = 0
20120 ;
20121 return 0;
20122 }
20123 _ACEOF
20124 rm -f conftest.$ac_objext
20125 if { (ac_try="$ac_compile"
20126 case "(($ac_try" in
20127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20128 *) ac_try_echo=$ac_try;;
20129 esac
20130 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20131 $as_echo "$ac_try_echo") >&5
20132 (eval "$ac_compile") 2>conftest.er1
20133 ac_status=$?
20134 grep -v '^ *+' conftest.er1 >conftest.err
20135 rm -f conftest.er1
20136 cat conftest.err >&5
20137 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20138 (exit $ac_status); } && {
20139 test -z "$ac_c_werror_flag" ||
20140 test ! -s conftest.err
20141 } && test -s conftest.$ac_objext; then
20142 ac_hi=-1 ac_mid=-1
20143 while :; do
20144 cat >conftest.$ac_ext <<_ACEOF
20145 /* confdefs.h. */
20146 _ACEOF
20147 cat confdefs.h >>conftest.$ac_ext
20148 cat >>conftest.$ac_ext <<_ACEOF
20149 /* end confdefs.h. */
20150 #include <stddef.h>
20151 int
20152 main ()
20153 {
20154 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
20155 test_array [0] = 0
20157 ;
20158 return 0;
20159 }
20160 _ACEOF
20161 rm -f conftest.$ac_objext
20162 if { (ac_try="$ac_compile"
20163 case "(($ac_try" in
20164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20165 *) ac_try_echo=$ac_try;;
20166 esac
20167 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20168 $as_echo "$ac_try_echo") >&5
20169 (eval "$ac_compile") 2>conftest.er1
20170 ac_status=$?
20171 grep -v '^ *+' conftest.er1 >conftest.err
20172 rm -f conftest.er1
20173 cat conftest.err >&5
20174 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20175 (exit $ac_status); } && {
20176 test -z "$ac_c_werror_flag" ||
20177 test ! -s conftest.err
20178 } && test -s conftest.$ac_objext; then
20179 ac_lo=$ac_mid; break
20180 else
20181 $as_echo "$as_me: failed program was:" >&5
20182 sed 's/^/| /' conftest.$ac_ext >&5
20184 ac_hi=`expr '(' $ac_mid ')' - 1`
20185 if test $ac_mid -le $ac_hi; then
20186 ac_lo= ac_hi=
20187 break
20188 fi
20189 ac_mid=`expr 2 '*' $ac_mid`
20190 fi
20192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20193 done
20194 else
20195 $as_echo "$as_me: failed program was:" >&5
20196 sed 's/^/| /' conftest.$ac_ext >&5
20198 ac_lo= ac_hi=
20199 fi
20201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20202 fi
20204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20205 # Binary search between lo and hi bounds.
20206 while test "x$ac_lo" != "x$ac_hi"; do
20207 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20208 cat >conftest.$ac_ext <<_ACEOF
20209 /* confdefs.h. */
20210 _ACEOF
20211 cat confdefs.h >>conftest.$ac_ext
20212 cat >>conftest.$ac_ext <<_ACEOF
20213 /* end confdefs.h. */
20214 #include <stddef.h>
20215 int
20216 main ()
20217 {
20218 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
20219 test_array [0] = 0
20221 ;
20222 return 0;
20223 }
20224 _ACEOF
20225 rm -f conftest.$ac_objext
20226 if { (ac_try="$ac_compile"
20227 case "(($ac_try" in
20228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20229 *) ac_try_echo=$ac_try;;
20230 esac
20231 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20232 $as_echo "$ac_try_echo") >&5
20233 (eval "$ac_compile") 2>conftest.er1
20234 ac_status=$?
20235 grep -v '^ *+' conftest.er1 >conftest.err
20236 rm -f conftest.er1
20237 cat conftest.err >&5
20238 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20239 (exit $ac_status); } && {
20240 test -z "$ac_c_werror_flag" ||
20241 test ! -s conftest.err
20242 } && test -s conftest.$ac_objext; then
20243 ac_hi=$ac_mid
20244 else
20245 $as_echo "$as_me: failed program was:" >&5
20246 sed 's/^/| /' conftest.$ac_ext >&5
20248 ac_lo=`expr '(' $ac_mid ')' + 1`
20249 fi
20251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20252 done
20253 case $ac_lo in
20254 ?*) fits_in_uint=$ac_lo;;
20255 '') result=? ;;
20256 esac
20257 else
20258 cat >conftest.$ac_ext <<_ACEOF
20259 /* confdefs.h. */
20260 _ACEOF
20261 cat confdefs.h >>conftest.$ac_ext
20262 cat >>conftest.$ac_ext <<_ACEOF
20263 /* end confdefs.h. */
20264 #include <stddef.h>
20265 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
20266 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
20267 #include <stdio.h>
20268 #include <stdlib.h>
20269 int
20270 main ()
20271 {
20273 FILE *f = fopen ("conftest.val", "w");
20274 if (! f)
20275 return 1;
20276 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
20277 {
20278 long int i = longval ();
20279 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
20280 return 1;
20281 fprintf (f, "%ld", i);
20282 }
20283 else
20284 {
20285 unsigned long int i = ulongval ();
20286 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
20287 return 1;
20288 fprintf (f, "%lu", i);
20289 }
20290 /* Do not output a trailing newline, as this causes \r\n confusion
20291 on some platforms. */
20292 return ferror (f) || fclose (f) != 0;
20294 ;
20295 return 0;
20296 }
20297 _ACEOF
20298 rm -f conftest$ac_exeext
20299 if { (ac_try="$ac_link"
20300 case "(($ac_try" in
20301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20302 *) ac_try_echo=$ac_try;;
20303 esac
20304 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20305 $as_echo "$ac_try_echo") >&5
20306 (eval "$ac_link") 2>&5
20307 ac_status=$?
20308 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20309 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20310 { (case "(($ac_try" in
20311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20312 *) ac_try_echo=$ac_try;;
20313 esac
20314 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20315 $as_echo "$ac_try_echo") >&5
20316 (eval "$ac_try") 2>&5
20317 ac_status=$?
20318 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20319 (exit $ac_status); }; }; then
20320 fits_in_uint=`cat conftest.val`
20321 else
20322 $as_echo "$as_me: program exited with status $ac_status" >&5
20323 $as_echo "$as_me: failed program was:" >&5
20324 sed 's/^/| /' conftest.$ac_ext >&5
20326 ( exit $ac_status )
20327 result=?
20328 fi
20329 rm -rf conftest.dSYM
20330 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20331 fi
20332 rm -f conftest.val
20334 if test "$fits_in_uint" = 1; then
20335 cat >conftest.$ac_ext <<_ACEOF
20336 /* confdefs.h. */
20337 _ACEOF
20338 cat confdefs.h >>conftest.$ac_ext
20339 cat >>conftest.$ac_ext <<_ACEOF
20340 /* end confdefs.h. */
20341 #include <stddef.h>
20342 extern size_t foo;
20343 extern unsigned long foo;
20345 int
20346 main ()
20347 {
20349 ;
20350 return 0;
20351 }
20352 _ACEOF
20353 rm -f conftest.$ac_objext
20354 if { (ac_try="$ac_compile"
20355 case "(($ac_try" in
20356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20357 *) ac_try_echo=$ac_try;;
20358 esac
20359 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20360 $as_echo "$ac_try_echo") >&5
20361 (eval "$ac_compile") 2>conftest.er1
20362 ac_status=$?
20363 grep -v '^ *+' conftest.er1 >conftest.err
20364 rm -f conftest.er1
20365 cat conftest.err >&5
20366 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20367 (exit $ac_status); } && {
20368 test -z "$ac_c_werror_flag" ||
20369 test ! -s conftest.err
20370 } && test -s conftest.$ac_objext; then
20371 fits_in_uint=0
20372 else
20373 $as_echo "$as_me: failed program was:" >&5
20374 sed 's/^/| /' conftest.$ac_ext >&5
20377 fi
20379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20380 fi
20381 if test -z "$result"; then
20382 if test "$fits_in_uint" = 1; then
20383 result="$res_hi$res_lo"U
20384 else
20385 result="$res_hi$res_lo"UL
20386 fi
20387 else
20388 result='~(size_t)0'
20389 fi
20390 fi
20391 { $as_echo "$as_me:$LINENO: result: $result" >&5
20392 $as_echo "$result" >&6; }
20393 if test "$result" != yes; then
20395 cat >>confdefs.h <<_ACEOF
20396 #define SIZE_MAX $result
20397 _ACEOF
20399 fi
20405 for ac_header in stdint.h
20406 do
20407 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20408 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20409 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20410 $as_echo_n "checking for $ac_header... " >&6; }
20411 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20412 $as_echo_n "(cached) " >&6
20413 fi
20414 ac_res=`eval 'as_val=${'$as_ac_Header'}
20415 $as_echo "$as_val"'`
20416 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20417 $as_echo "$ac_res" >&6; }
20418 else
20419 # Is the header compilable?
20420 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20421 $as_echo_n "checking $ac_header usability... " >&6; }
20422 cat >conftest.$ac_ext <<_ACEOF
20423 /* confdefs.h. */
20424 _ACEOF
20425 cat confdefs.h >>conftest.$ac_ext
20426 cat >>conftest.$ac_ext <<_ACEOF
20427 /* end confdefs.h. */
20428 $ac_includes_default
20429 #include <$ac_header>
20430 _ACEOF
20431 rm -f conftest.$ac_objext
20432 if { (ac_try="$ac_compile"
20433 case "(($ac_try" in
20434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20435 *) ac_try_echo=$ac_try;;
20436 esac
20437 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20438 $as_echo "$ac_try_echo") >&5
20439 (eval "$ac_compile") 2>conftest.er1
20440 ac_status=$?
20441 grep -v '^ *+' conftest.er1 >conftest.err
20442 rm -f conftest.er1
20443 cat conftest.err >&5
20444 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20445 (exit $ac_status); } && {
20446 test -z "$ac_c_werror_flag" ||
20447 test ! -s conftest.err
20448 } && test -s conftest.$ac_objext; then
20449 ac_header_compiler=yes
20450 else
20451 $as_echo "$as_me: failed program was:" >&5
20452 sed 's/^/| /' conftest.$ac_ext >&5
20454 ac_header_compiler=no
20455 fi
20457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20458 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20459 $as_echo "$ac_header_compiler" >&6; }
20461 # Is the header present?
20462 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20463 $as_echo_n "checking $ac_header presence... " >&6; }
20464 cat >conftest.$ac_ext <<_ACEOF
20465 /* confdefs.h. */
20466 _ACEOF
20467 cat confdefs.h >>conftest.$ac_ext
20468 cat >>conftest.$ac_ext <<_ACEOF
20469 /* end confdefs.h. */
20470 #include <$ac_header>
20471 _ACEOF
20472 if { (ac_try="$ac_cpp conftest.$ac_ext"
20473 case "(($ac_try" in
20474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20475 *) ac_try_echo=$ac_try;;
20476 esac
20477 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20478 $as_echo "$ac_try_echo") >&5
20479 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20480 ac_status=$?
20481 grep -v '^ *+' conftest.er1 >conftest.err
20482 rm -f conftest.er1
20483 cat conftest.err >&5
20484 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20485 (exit $ac_status); } >/dev/null && {
20486 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20487 test ! -s conftest.err
20488 }; then
20489 ac_header_preproc=yes
20490 else
20491 $as_echo "$as_me: failed program was:" >&5
20492 sed 's/^/| /' conftest.$ac_ext >&5
20494 ac_header_preproc=no
20495 fi
20497 rm -f conftest.err conftest.$ac_ext
20498 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20499 $as_echo "$ac_header_preproc" >&6; }
20501 # So? What about this header?
20502 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20503 yes:no: )
20504 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20505 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20506 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20507 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20508 ac_header_preproc=yes
20509 ;;
20510 no:yes:* )
20511 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20512 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20513 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20514 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20515 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20516 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20517 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20518 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20519 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20520 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20521 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20522 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20524 ;;
20525 esac
20526 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20527 $as_echo_n "checking for $ac_header... " >&6; }
20528 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20529 $as_echo_n "(cached) " >&6
20530 else
20531 eval "$as_ac_Header=\$ac_header_preproc"
20532 fi
20533 ac_res=`eval 'as_val=${'$as_ac_Header'}
20534 $as_echo "$as_val"'`
20535 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20536 $as_echo "$ac_res" >&6; }
20538 fi
20539 as_val=`eval 'as_val=${'$as_ac_Header'}
20540 $as_echo "$as_val"'`
20541 if test "x$as_val" = x""yes; then
20542 cat >>confdefs.h <<_ACEOF
20543 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20544 _ACEOF
20546 fi
20548 done
20552 { $as_echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
20553 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
20554 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
20555 $as_echo_n "(cached) " >&6
20556 else
20557 gt_save_CPPFLAGS="$CPPFLAGS"
20558 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
20559 gt_save_LIBS="$LIBS"
20560 LIBS="$LIBS -framework CoreFoundation"
20561 cat >conftest.$ac_ext <<_ACEOF
20562 /* confdefs.h. */
20563 _ACEOF
20564 cat confdefs.h >>conftest.$ac_ext
20565 cat >>conftest.$ac_ext <<_ACEOF
20566 /* end confdefs.h. */
20567 #include <CFPreferences.h>
20568 int
20569 main ()
20570 {
20571 CFPreferencesCopyAppValue(NULL, NULL)
20572 ;
20573 return 0;
20574 }
20575 _ACEOF
20576 rm -f conftest.$ac_objext conftest$ac_exeext
20577 if { (ac_try="$ac_link"
20578 case "(($ac_try" in
20579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20580 *) ac_try_echo=$ac_try;;
20581 esac
20582 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20583 $as_echo "$ac_try_echo") >&5
20584 (eval "$ac_link") 2>conftest.er1
20585 ac_status=$?
20586 grep -v '^ *+' conftest.er1 >conftest.err
20587 rm -f conftest.er1
20588 cat conftest.err >&5
20589 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20590 (exit $ac_status); } && {
20591 test -z "$ac_c_werror_flag" ||
20592 test ! -s conftest.err
20593 } && test -s conftest$ac_exeext && {
20594 test "$cross_compiling" = yes ||
20595 $as_test_x conftest$ac_exeext
20596 }; then
20597 gt_cv_func_CFPreferencesCopyAppValue=yes
20598 else
20599 $as_echo "$as_me: failed program was:" >&5
20600 sed 's/^/| /' conftest.$ac_ext >&5
20602 gt_cv_func_CFPreferencesCopyAppValue=no
20603 fi
20605 rm -rf conftest.dSYM
20606 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20607 conftest$ac_exeext conftest.$ac_ext
20608 CPPFLAGS="$gt_save_CPPFLAGS"
20609 LIBS="$gt_save_LIBS"
20610 fi
20611 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
20612 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
20613 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
20615 cat >>confdefs.h <<\_ACEOF
20616 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
20617 _ACEOF
20619 fi
20620 { $as_echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
20621 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
20622 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
20623 $as_echo_n "(cached) " >&6
20624 else
20625 gt_save_CPPFLAGS="$CPPFLAGS"
20626 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
20627 gt_save_LIBS="$LIBS"
20628 LIBS="$LIBS -framework CoreFoundation"
20629 cat >conftest.$ac_ext <<_ACEOF
20630 /* confdefs.h. */
20631 _ACEOF
20632 cat confdefs.h >>conftest.$ac_ext
20633 cat >>conftest.$ac_ext <<_ACEOF
20634 /* end confdefs.h. */
20635 #include <CFLocale.h>
20636 int
20637 main ()
20638 {
20639 CFLocaleCopyCurrent();
20640 ;
20641 return 0;
20642 }
20643 _ACEOF
20644 rm -f conftest.$ac_objext conftest$ac_exeext
20645 if { (ac_try="$ac_link"
20646 case "(($ac_try" in
20647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20648 *) ac_try_echo=$ac_try;;
20649 esac
20650 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20651 $as_echo "$ac_try_echo") >&5
20652 (eval "$ac_link") 2>conftest.er1
20653 ac_status=$?
20654 grep -v '^ *+' conftest.er1 >conftest.err
20655 rm -f conftest.er1
20656 cat conftest.err >&5
20657 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20658 (exit $ac_status); } && {
20659 test -z "$ac_c_werror_flag" ||
20660 test ! -s conftest.err
20661 } && test -s conftest$ac_exeext && {
20662 test "$cross_compiling" = yes ||
20663 $as_test_x conftest$ac_exeext
20664 }; then
20665 gt_cv_func_CFLocaleCopyCurrent=yes
20666 else
20667 $as_echo "$as_me: failed program was:" >&5
20668 sed 's/^/| /' conftest.$ac_ext >&5
20670 gt_cv_func_CFLocaleCopyCurrent=no
20671 fi
20673 rm -rf conftest.dSYM
20674 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20675 conftest$ac_exeext conftest.$ac_ext
20676 CPPFLAGS="$gt_save_CPPFLAGS"
20677 LIBS="$gt_save_LIBS"
20678 fi
20679 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
20680 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
20681 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
20683 cat >>confdefs.h <<\_ACEOF
20684 #define HAVE_CFLOCALECOPYCURRENT 1
20685 _ACEOF
20687 fi
20688 INTL_MACOSX_LIBS=
20689 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
20690 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
20691 fi
20695 if test "X$prefix" = "XNONE"; then
20696 acl_final_prefix="$ac_default_prefix"
20697 else
20698 acl_final_prefix="$prefix"
20699 fi
20700 if test "X$exec_prefix" = "XNONE"; then
20701 acl_final_exec_prefix='${prefix}'
20702 else
20703 acl_final_exec_prefix="$exec_prefix"
20704 fi
20705 acl_save_prefix="$prefix"
20706 prefix="$acl_final_prefix"
20707 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
20708 prefix="$acl_save_prefix"
20711 # Check whether --with-gnu-ld was given.
20712 if test "${with_gnu_ld+set}" = set; then
20713 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
20714 else
20715 with_gnu_ld=no
20716 fi
20718 # Prepare PATH_SEPARATOR.
20719 # The user is always right.
20720 if test "${PATH_SEPARATOR+set}" != set; then
20721 echo "#! /bin/sh" >conf$$.sh
20722 echo "exit 0" >>conf$$.sh
20723 chmod +x conf$$.sh
20724 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20725 PATH_SEPARATOR=';'
20726 else
20727 PATH_SEPARATOR=:
20728 fi
20729 rm -f conf$$.sh
20730 fi
20731 ac_prog=ld
20732 if test "$GCC" = yes; then
20733 # Check if gcc -print-prog-name=ld gives a path.
20734 { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
20735 $as_echo_n "checking for ld used by GCC... " >&6; }
20736 case $host in
20737 *-*-mingw*)
20738 # gcc leaves a trailing carriage return which upsets mingw
20739 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
20740 *)
20741 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
20742 esac
20743 case $ac_prog in
20744 # Accept absolute paths.
20745 [\\/]* | [A-Za-z]:[\\/]*)
20746 re_direlt='/[^/][^/]*/\.\./'
20747 # Canonicalize the path of ld
20748 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
20749 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
20750 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
20751 done
20752 test -z "$LD" && LD="$ac_prog"
20753 ;;
20754 "")
20755 # If it fails, then pretend we aren't using GCC.
20756 ac_prog=ld
20757 ;;
20758 *)
20759 # If it is relative, then search for the first ld in PATH.
20760 with_gnu_ld=unknown
20761 ;;
20762 esac
20763 elif test "$with_gnu_ld" = yes; then
20764 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
20765 $as_echo_n "checking for GNU ld... " >&6; }
20766 else
20767 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
20768 $as_echo_n "checking for non-GNU ld... " >&6; }
20769 fi
20770 if test "${acl_cv_path_LD+set}" = set; then
20771 $as_echo_n "(cached) " >&6
20772 else
20773 if test -z "$LD"; then
20774 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
20775 for ac_dir in $PATH; do
20776 test -z "$ac_dir" && ac_dir=.
20777 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
20778 acl_cv_path_LD="$ac_dir/$ac_prog"
20779 # Check to see if the program is GNU ld. I'd rather use --version,
20780 # but apparently some GNU ld's only accept -v.
20781 # Break only if it was the GNU/non-GNU ld that we prefer.
20782 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
20783 *GNU* | *'with BFD'*)
20784 test "$with_gnu_ld" != no && break ;;
20785 *)
20786 test "$with_gnu_ld" != yes && break ;;
20787 esac
20788 fi
20789 done
20790 IFS="$ac_save_ifs"
20791 else
20792 acl_cv_path_LD="$LD" # Let the user override the test with a path.
20793 fi
20794 fi
20796 LD="$acl_cv_path_LD"
20797 if test -n "$LD"; then
20798 { $as_echo "$as_me:$LINENO: result: $LD" >&5
20799 $as_echo "$LD" >&6; }
20800 else
20801 { $as_echo "$as_me:$LINENO: result: no" >&5
20802 $as_echo "no" >&6; }
20803 fi
20804 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
20805 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
20806 { (exit 1); exit 1; }; }
20807 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
20808 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
20809 if test "${acl_cv_prog_gnu_ld+set}" = set; then
20810 $as_echo_n "(cached) " >&6
20811 else
20812 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
20813 case `$LD -v 2>&1 </dev/null` in
20814 *GNU* | *'with BFD'*)
20815 acl_cv_prog_gnu_ld=yes ;;
20816 *)
20817 acl_cv_prog_gnu_ld=no ;;
20818 esac
20819 fi
20820 { $as_echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
20821 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
20822 with_gnu_ld=$acl_cv_prog_gnu_ld
20827 { $as_echo "$as_me:$LINENO: checking for shared library run path origin" >&5
20828 $as_echo_n "checking for shared library run path origin... " >&6; }
20829 if test "${acl_cv_rpath+set}" = set; then
20830 $as_echo_n "(cached) " >&6
20831 else
20833 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
20834 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
20835 . ./conftest.sh
20836 rm -f ./conftest.sh
20837 acl_cv_rpath=done
20839 fi
20840 { $as_echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
20841 $as_echo "$acl_cv_rpath" >&6; }
20842 wl="$acl_cv_wl"
20843 libext="$acl_cv_libext"
20844 shlibext="$acl_cv_shlibext"
20845 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
20846 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
20847 hardcode_direct="$acl_cv_hardcode_direct"
20848 hardcode_minus_L="$acl_cv_hardcode_minus_L"
20849 # Check whether --enable-rpath was given.
20850 if test "${enable_rpath+set}" = set; then
20851 enableval=$enable_rpath; :
20852 else
20853 enable_rpath=yes
20854 fi
20863 use_additional=yes
20865 acl_save_prefix="$prefix"
20866 prefix="$acl_final_prefix"
20867 acl_save_exec_prefix="$exec_prefix"
20868 exec_prefix="$acl_final_exec_prefix"
20870 eval additional_includedir=\"$includedir\"
20871 eval additional_libdir=\"$libdir\"
20873 exec_prefix="$acl_save_exec_prefix"
20874 prefix="$acl_save_prefix"
20877 # Check whether --with-libiconv-prefix was given.
20878 if test "${with_libiconv_prefix+set}" = set; then
20879 withval=$with_libiconv_prefix;
20880 if test "X$withval" = "Xno"; then
20881 use_additional=no
20882 else
20883 if test "X$withval" = "X"; then
20885 acl_save_prefix="$prefix"
20886 prefix="$acl_final_prefix"
20887 acl_save_exec_prefix="$exec_prefix"
20888 exec_prefix="$acl_final_exec_prefix"
20890 eval additional_includedir=\"$includedir\"
20891 eval additional_libdir=\"$libdir\"
20893 exec_prefix="$acl_save_exec_prefix"
20894 prefix="$acl_save_prefix"
20896 else
20897 additional_includedir="$withval/include"
20898 additional_libdir="$withval/lib"
20899 fi
20900 fi
20902 fi
20904 LIBICONV=
20905 LTLIBICONV=
20906 INCICONV=
20907 rpathdirs=
20908 ltrpathdirs=
20909 names_already_handled=
20910 names_next_round='iconv '
20911 while test -n "$names_next_round"; do
20912 names_this_round="$names_next_round"
20913 names_next_round=
20914 for name in $names_this_round; do
20915 already_handled=
20916 for n in $names_already_handled; do
20917 if test "$n" = "$name"; then
20918 already_handled=yes
20919 break
20920 fi
20921 done
20922 if test -z "$already_handled"; then
20923 names_already_handled="$names_already_handled $name"
20924 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
20925 eval value=\"\$HAVE_LIB$uppername\"
20926 if test -n "$value"; then
20927 if test "$value" = yes; then
20928 eval value=\"\$LIB$uppername\"
20929 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
20930 eval value=\"\$LTLIB$uppername\"
20931 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
20932 else
20933 :
20934 fi
20935 else
20936 found_dir=
20937 found_la=
20938 found_so=
20939 found_a=
20940 if test $use_additional = yes; then
20941 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
20942 found_dir="$additional_libdir"
20943 found_so="$additional_libdir/lib$name.$shlibext"
20944 if test -f "$additional_libdir/lib$name.la"; then
20945 found_la="$additional_libdir/lib$name.la"
20946 fi
20947 else
20948 if test -f "$additional_libdir/lib$name.$libext"; then
20949 found_dir="$additional_libdir"
20950 found_a="$additional_libdir/lib$name.$libext"
20951 if test -f "$additional_libdir/lib$name.la"; then
20952 found_la="$additional_libdir/lib$name.la"
20953 fi
20954 fi
20955 fi
20956 fi
20957 if test "X$found_dir" = "X"; then
20958 for x in $LDFLAGS $LTLIBICONV; do
20960 acl_save_prefix="$prefix"
20961 prefix="$acl_final_prefix"
20962 acl_save_exec_prefix="$exec_prefix"
20963 exec_prefix="$acl_final_exec_prefix"
20964 eval x=\"$x\"
20965 exec_prefix="$acl_save_exec_prefix"
20966 prefix="$acl_save_prefix"
20968 case "$x" in
20969 -L*)
20970 dir=`echo "X$x" | sed -e 's/^X-L//'`
20971 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
20972 found_dir="$dir"
20973 found_so="$dir/lib$name.$shlibext"
20974 if test -f "$dir/lib$name.la"; then
20975 found_la="$dir/lib$name.la"
20976 fi
20977 else
20978 if test -f "$dir/lib$name.$libext"; then
20979 found_dir="$dir"
20980 found_a="$dir/lib$name.$libext"
20981 if test -f "$dir/lib$name.la"; then
20982 found_la="$dir/lib$name.la"
20983 fi
20984 fi
20985 fi
20986 ;;
20987 esac
20988 if test "X$found_dir" != "X"; then
20989 break
20990 fi
20991 done
20992 fi
20993 if test "X$found_dir" != "X"; then
20994 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
20995 if test "X$found_so" != "X"; then
20996 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
20997 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
20998 else
20999 haveit=
21000 for x in $ltrpathdirs; do
21001 if test "X$x" = "X$found_dir"; then
21002 haveit=yes
21003 break
21004 fi
21005 done
21006 if test -z "$haveit"; then
21007 ltrpathdirs="$ltrpathdirs $found_dir"
21008 fi
21009 if test "$hardcode_direct" = yes; then
21010 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21011 else
21012 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
21013 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21014 haveit=
21015 for x in $rpathdirs; do
21016 if test "X$x" = "X$found_dir"; then
21017 haveit=yes
21018 break
21019 fi
21020 done
21021 if test -z "$haveit"; then
21022 rpathdirs="$rpathdirs $found_dir"
21023 fi
21024 else
21025 haveit=
21026 for x in $LDFLAGS $LIBICONV; do
21028 acl_save_prefix="$prefix"
21029 prefix="$acl_final_prefix"
21030 acl_save_exec_prefix="$exec_prefix"
21031 exec_prefix="$acl_final_exec_prefix"
21032 eval x=\"$x\"
21033 exec_prefix="$acl_save_exec_prefix"
21034 prefix="$acl_save_prefix"
21036 if test "X$x" = "X-L$found_dir"; then
21037 haveit=yes
21038 break
21039 fi
21040 done
21041 if test -z "$haveit"; then
21042 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
21043 fi
21044 if test "$hardcode_minus_L" != no; then
21045 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21046 else
21047 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
21048 fi
21049 fi
21050 fi
21051 fi
21052 else
21053 if test "X$found_a" != "X"; then
21054 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
21055 else
21056 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
21057 fi
21058 fi
21059 additional_includedir=
21060 case "$found_dir" in
21061 */lib | */lib/)
21062 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
21063 additional_includedir="$basedir/include"
21064 ;;
21065 esac
21066 if test "X$additional_includedir" != "X"; then
21067 if test "X$additional_includedir" != "X/usr/include"; then
21068 haveit=
21069 if test "X$additional_includedir" = "X/usr/local/include"; then
21070 if test -n "$GCC"; then
21071 case $host_os in
21072 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
21073 esac
21074 fi
21075 fi
21076 if test -z "$haveit"; then
21077 for x in $CPPFLAGS $INCICONV; do
21079 acl_save_prefix="$prefix"
21080 prefix="$acl_final_prefix"
21081 acl_save_exec_prefix="$exec_prefix"
21082 exec_prefix="$acl_final_exec_prefix"
21083 eval x=\"$x\"
21084 exec_prefix="$acl_save_exec_prefix"
21085 prefix="$acl_save_prefix"
21087 if test "X$x" = "X-I$additional_includedir"; then
21088 haveit=yes
21089 break
21090 fi
21091 done
21092 if test -z "$haveit"; then
21093 if test -d "$additional_includedir"; then
21094 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
21095 fi
21096 fi
21097 fi
21098 fi
21099 fi
21100 if test -n "$found_la"; then
21101 save_libdir="$libdir"
21102 case "$found_la" in
21103 */* | *\\*) . "$found_la" ;;
21104 *) . "./$found_la" ;;
21105 esac
21106 libdir="$save_libdir"
21107 for dep in $dependency_libs; do
21108 case "$dep" in
21109 -L*)
21110 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
21111 if test "X$additional_libdir" != "X/usr/lib"; then
21112 haveit=
21113 if test "X$additional_libdir" = "X/usr/local/lib"; then
21114 if test -n "$GCC"; then
21115 case $host_os in
21116 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
21117 esac
21118 fi
21119 fi
21120 if test -z "$haveit"; then
21121 haveit=
21122 for x in $LDFLAGS $LIBICONV; do
21124 acl_save_prefix="$prefix"
21125 prefix="$acl_final_prefix"
21126 acl_save_exec_prefix="$exec_prefix"
21127 exec_prefix="$acl_final_exec_prefix"
21128 eval x=\"$x\"
21129 exec_prefix="$acl_save_exec_prefix"
21130 prefix="$acl_save_prefix"
21132 if test "X$x" = "X-L$additional_libdir"; then
21133 haveit=yes
21134 break
21135 fi
21136 done
21137 if test -z "$haveit"; then
21138 if test -d "$additional_libdir"; then
21139 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
21140 fi
21141 fi
21142 haveit=
21143 for x in $LDFLAGS $LTLIBICONV; do
21145 acl_save_prefix="$prefix"
21146 prefix="$acl_final_prefix"
21147 acl_save_exec_prefix="$exec_prefix"
21148 exec_prefix="$acl_final_exec_prefix"
21149 eval x=\"$x\"
21150 exec_prefix="$acl_save_exec_prefix"
21151 prefix="$acl_save_prefix"
21153 if test "X$x" = "X-L$additional_libdir"; then
21154 haveit=yes
21155 break
21156 fi
21157 done
21158 if test -z "$haveit"; then
21159 if test -d "$additional_libdir"; then
21160 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
21161 fi
21162 fi
21163 fi
21164 fi
21165 ;;
21166 -R*)
21167 dir=`echo "X$dep" | sed -e 's/^X-R//'`
21168 if test "$enable_rpath" != no; then
21169 haveit=
21170 for x in $rpathdirs; do
21171 if test "X$x" = "X$dir"; then
21172 haveit=yes
21173 break
21174 fi
21175 done
21176 if test -z "$haveit"; then
21177 rpathdirs="$rpathdirs $dir"
21178 fi
21179 haveit=
21180 for x in $ltrpathdirs; do
21181 if test "X$x" = "X$dir"; then
21182 haveit=yes
21183 break
21184 fi
21185 done
21186 if test -z "$haveit"; then
21187 ltrpathdirs="$ltrpathdirs $dir"
21188 fi
21189 fi
21190 ;;
21191 -l*)
21192 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
21193 ;;
21194 *.la)
21195 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
21196 ;;
21197 *)
21198 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
21199 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
21200 ;;
21201 esac
21202 done
21203 fi
21204 else
21205 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
21206 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
21207 fi
21208 fi
21209 fi
21210 done
21211 done
21212 if test "X$rpathdirs" != "X"; then
21213 if test -n "$hardcode_libdir_separator"; then
21214 alldirs=
21215 for found_dir in $rpathdirs; do
21216 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
21217 done
21218 acl_save_libdir="$libdir"
21219 libdir="$alldirs"
21220 eval flag=\"$hardcode_libdir_flag_spec\"
21221 libdir="$acl_save_libdir"
21222 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
21223 else
21224 for found_dir in $rpathdirs; do
21225 acl_save_libdir="$libdir"
21226 libdir="$found_dir"
21227 eval flag=\"$hardcode_libdir_flag_spec\"
21228 libdir="$acl_save_libdir"
21229 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
21230 done
21231 fi
21232 fi
21233 if test "X$ltrpathdirs" != "X"; then
21234 for found_dir in $ltrpathdirs; do
21235 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
21236 done
21237 fi
21246 { $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
21247 $as_echo_n "checking for ptrdiff_t... " >&6; }
21248 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
21249 $as_echo_n "(cached) " >&6
21250 else
21251 ac_cv_type_ptrdiff_t=no
21252 cat >conftest.$ac_ext <<_ACEOF
21253 /* confdefs.h. */
21254 _ACEOF
21255 cat confdefs.h >>conftest.$ac_ext
21256 cat >>conftest.$ac_ext <<_ACEOF
21257 /* end confdefs.h. */
21258 $ac_includes_default
21259 int
21260 main ()
21261 {
21262 if (sizeof (ptrdiff_t))
21263 return 0;
21264 ;
21265 return 0;
21266 }
21267 _ACEOF
21268 rm -f conftest.$ac_objext
21269 if { (ac_try="$ac_compile"
21270 case "(($ac_try" in
21271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21272 *) ac_try_echo=$ac_try;;
21273 esac
21274 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21275 $as_echo "$ac_try_echo") >&5
21276 (eval "$ac_compile") 2>conftest.er1
21277 ac_status=$?
21278 grep -v '^ *+' conftest.er1 >conftest.err
21279 rm -f conftest.er1
21280 cat conftest.err >&5
21281 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21282 (exit $ac_status); } && {
21283 test -z "$ac_c_werror_flag" ||
21284 test ! -s conftest.err
21285 } && test -s conftest.$ac_objext; then
21286 cat >conftest.$ac_ext <<_ACEOF
21287 /* confdefs.h. */
21288 _ACEOF
21289 cat confdefs.h >>conftest.$ac_ext
21290 cat >>conftest.$ac_ext <<_ACEOF
21291 /* end confdefs.h. */
21292 $ac_includes_default
21293 int
21294 main ()
21295 {
21296 if (sizeof ((ptrdiff_t)))
21297 return 0;
21298 ;
21299 return 0;
21300 }
21301 _ACEOF
21302 rm -f conftest.$ac_objext
21303 if { (ac_try="$ac_compile"
21304 case "(($ac_try" in
21305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21306 *) ac_try_echo=$ac_try;;
21307 esac
21308 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21309 $as_echo "$ac_try_echo") >&5
21310 (eval "$ac_compile") 2>conftest.er1
21311 ac_status=$?
21312 grep -v '^ *+' conftest.er1 >conftest.err
21313 rm -f conftest.er1
21314 cat conftest.err >&5
21315 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21316 (exit $ac_status); } && {
21317 test -z "$ac_c_werror_flag" ||
21318 test ! -s conftest.err
21319 } && test -s conftest.$ac_objext; then
21320 :
21321 else
21322 $as_echo "$as_me: failed program was:" >&5
21323 sed 's/^/| /' conftest.$ac_ext >&5
21325 ac_cv_type_ptrdiff_t=yes
21326 fi
21328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21329 else
21330 $as_echo "$as_me: failed program was:" >&5
21331 sed 's/^/| /' conftest.$ac_ext >&5
21334 fi
21336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21337 fi
21338 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
21339 $as_echo "$ac_cv_type_ptrdiff_t" >&6; }
21340 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then
21341 :
21342 else
21344 cat >>confdefs.h <<\_ACEOF
21345 #define ptrdiff_t long
21346 _ACEOF
21349 fi
21361 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
21362 stdlib.h string.h unistd.h sys/param.h
21363 do
21364 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21365 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21366 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21367 $as_echo_n "checking for $ac_header... " >&6; }
21368 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21369 $as_echo_n "(cached) " >&6
21370 fi
21371 ac_res=`eval 'as_val=${'$as_ac_Header'}
21372 $as_echo "$as_val"'`
21373 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21374 $as_echo "$ac_res" >&6; }
21375 else
21376 # Is the header compilable?
21377 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
21378 $as_echo_n "checking $ac_header usability... " >&6; }
21379 cat >conftest.$ac_ext <<_ACEOF
21380 /* confdefs.h. */
21381 _ACEOF
21382 cat confdefs.h >>conftest.$ac_ext
21383 cat >>conftest.$ac_ext <<_ACEOF
21384 /* end confdefs.h. */
21385 $ac_includes_default
21386 #include <$ac_header>
21387 _ACEOF
21388 rm -f conftest.$ac_objext
21389 if { (ac_try="$ac_compile"
21390 case "(($ac_try" in
21391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21392 *) ac_try_echo=$ac_try;;
21393 esac
21394 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21395 $as_echo "$ac_try_echo") >&5
21396 (eval "$ac_compile") 2>conftest.er1
21397 ac_status=$?
21398 grep -v '^ *+' conftest.er1 >conftest.err
21399 rm -f conftest.er1
21400 cat conftest.err >&5
21401 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21402 (exit $ac_status); } && {
21403 test -z "$ac_c_werror_flag" ||
21404 test ! -s conftest.err
21405 } && test -s conftest.$ac_objext; then
21406 ac_header_compiler=yes
21407 else
21408 $as_echo "$as_me: failed program was:" >&5
21409 sed 's/^/| /' conftest.$ac_ext >&5
21411 ac_header_compiler=no
21412 fi
21414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21415 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21416 $as_echo "$ac_header_compiler" >&6; }
21418 # Is the header present?
21419 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
21420 $as_echo_n "checking $ac_header presence... " >&6; }
21421 cat >conftest.$ac_ext <<_ACEOF
21422 /* confdefs.h. */
21423 _ACEOF
21424 cat confdefs.h >>conftest.$ac_ext
21425 cat >>conftest.$ac_ext <<_ACEOF
21426 /* end confdefs.h. */
21427 #include <$ac_header>
21428 _ACEOF
21429 if { (ac_try="$ac_cpp conftest.$ac_ext"
21430 case "(($ac_try" in
21431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21432 *) ac_try_echo=$ac_try;;
21433 esac
21434 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21435 $as_echo "$ac_try_echo") >&5
21436 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21437 ac_status=$?
21438 grep -v '^ *+' conftest.er1 >conftest.err
21439 rm -f conftest.er1
21440 cat conftest.err >&5
21441 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21442 (exit $ac_status); } >/dev/null && {
21443 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21444 test ! -s conftest.err
21445 }; then
21446 ac_header_preproc=yes
21447 else
21448 $as_echo "$as_me: failed program was:" >&5
21449 sed 's/^/| /' conftest.$ac_ext >&5
21451 ac_header_preproc=no
21452 fi
21454 rm -f conftest.err conftest.$ac_ext
21455 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21456 $as_echo "$ac_header_preproc" >&6; }
21458 # So? What about this header?
21459 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21460 yes:no: )
21461 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21462 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21463 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21464 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21465 ac_header_preproc=yes
21466 ;;
21467 no:yes:* )
21468 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21469 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21470 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21471 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21472 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21473 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21474 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21475 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21476 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21477 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21478 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21479 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21481 ;;
21482 esac
21483 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21484 $as_echo_n "checking for $ac_header... " >&6; }
21485 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21486 $as_echo_n "(cached) " >&6
21487 else
21488 eval "$as_ac_Header=\$ac_header_preproc"
21489 fi
21490 ac_res=`eval 'as_val=${'$as_ac_Header'}
21491 $as_echo "$as_val"'`
21492 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21493 $as_echo "$ac_res" >&6; }
21495 fi
21496 as_val=`eval 'as_val=${'$as_ac_Header'}
21497 $as_echo "$as_val"'`
21498 if test "x$as_val" = x""yes; then
21499 cat >>confdefs.h <<_ACEOF
21500 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21501 _ACEOF
21503 fi
21505 done
21530 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
21531 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
21532 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
21533 __fsetlocking
21534 do
21535 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21536 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21537 $as_echo_n "checking for $ac_func... " >&6; }
21538 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21539 $as_echo_n "(cached) " >&6
21540 else
21541 cat >conftest.$ac_ext <<_ACEOF
21542 /* confdefs.h. */
21543 _ACEOF
21544 cat confdefs.h >>conftest.$ac_ext
21545 cat >>conftest.$ac_ext <<_ACEOF
21546 /* end confdefs.h. */
21547 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21548 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21549 #define $ac_func innocuous_$ac_func
21551 /* System header to define __stub macros and hopefully few prototypes,
21552 which can conflict with char $ac_func (); below.
21553 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21554 <limits.h> exists even on freestanding compilers. */
21556 #ifdef __STDC__
21557 # include <limits.h>
21558 #else
21559 # include <assert.h>
21560 #endif
21562 #undef $ac_func
21564 /* Override any GCC internal prototype to avoid an error.
21565 Use char because int might match the return type of a GCC
21566 builtin and then its argument prototype would still apply. */
21567 #ifdef __cplusplus
21568 extern "C"
21569 #endif
21570 char $ac_func ();
21571 /* The GNU C library defines this for functions which it implements
21572 to always fail with ENOSYS. Some functions are actually named
21573 something starting with __ and the normal name is an alias. */
21574 #if defined __stub_$ac_func || defined __stub___$ac_func
21575 choke me
21576 #endif
21578 int
21579 main ()
21580 {
21581 return $ac_func ();
21582 ;
21583 return 0;
21584 }
21585 _ACEOF
21586 rm -f conftest.$ac_objext conftest$ac_exeext
21587 if { (ac_try="$ac_link"
21588 case "(($ac_try" in
21589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21590 *) ac_try_echo=$ac_try;;
21591 esac
21592 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21593 $as_echo "$ac_try_echo") >&5
21594 (eval "$ac_link") 2>conftest.er1
21595 ac_status=$?
21596 grep -v '^ *+' conftest.er1 >conftest.err
21597 rm -f conftest.er1
21598 cat conftest.err >&5
21599 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21600 (exit $ac_status); } && {
21601 test -z "$ac_c_werror_flag" ||
21602 test ! -s conftest.err
21603 } && test -s conftest$ac_exeext && {
21604 test "$cross_compiling" = yes ||
21605 $as_test_x conftest$ac_exeext
21606 }; then
21607 eval "$as_ac_var=yes"
21608 else
21609 $as_echo "$as_me: failed program was:" >&5
21610 sed 's/^/| /' conftest.$ac_ext >&5
21612 eval "$as_ac_var=no"
21613 fi
21615 rm -rf conftest.dSYM
21616 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21617 conftest$ac_exeext conftest.$ac_ext
21618 fi
21619 ac_res=`eval 'as_val=${'$as_ac_var'}
21620 $as_echo "$as_val"'`
21621 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21622 $as_echo "$ac_res" >&6; }
21623 as_val=`eval 'as_val=${'$as_ac_var'}
21624 $as_echo "$as_val"'`
21625 if test "x$as_val" = x""yes; then
21626 cat >>confdefs.h <<_ACEOF
21627 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21628 _ACEOF
21630 fi
21631 done
21635 { $as_echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
21636 $as_echo_n "checking whether _snprintf is declared... " >&6; }
21637 if test "${ac_cv_have_decl__snprintf+set}" = set; then
21638 $as_echo_n "(cached) " >&6
21639 else
21640 cat >conftest.$ac_ext <<_ACEOF
21641 /* confdefs.h. */
21642 _ACEOF
21643 cat confdefs.h >>conftest.$ac_ext
21644 cat >>conftest.$ac_ext <<_ACEOF
21645 /* end confdefs.h. */
21646 #include <stdio.h>
21647 int
21648 main ()
21649 {
21651 #ifndef _snprintf
21652 char *p = (char *) _snprintf;
21653 #endif
21655 ;
21656 return 0;
21657 }
21658 _ACEOF
21659 rm -f conftest.$ac_objext
21660 if { (ac_try="$ac_compile"
21661 case "(($ac_try" in
21662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21663 *) ac_try_echo=$ac_try;;
21664 esac
21665 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21666 $as_echo "$ac_try_echo") >&5
21667 (eval "$ac_compile") 2>conftest.er1
21668 ac_status=$?
21669 grep -v '^ *+' conftest.er1 >conftest.err
21670 rm -f conftest.er1
21671 cat conftest.err >&5
21672 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21673 (exit $ac_status); } && {
21674 test -z "$ac_c_werror_flag" ||
21675 test ! -s conftest.err
21676 } && test -s conftest.$ac_objext; then
21677 ac_cv_have_decl__snprintf=yes
21678 else
21679 $as_echo "$as_me: failed program was:" >&5
21680 sed 's/^/| /' conftest.$ac_ext >&5
21682 ac_cv_have_decl__snprintf=no
21683 fi
21685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21686 fi
21687 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
21688 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
21689 if test $ac_cv_have_decl__snprintf = yes; then
21690 gt_value=1
21691 else
21692 gt_value=0
21693 fi
21695 cat >>confdefs.h <<_ACEOF
21696 #define HAVE_DECL__SNPRINTF $gt_value
21697 _ACEOF
21701 { $as_echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
21702 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
21703 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
21704 $as_echo_n "(cached) " >&6
21705 else
21706 cat >conftest.$ac_ext <<_ACEOF
21707 /* confdefs.h. */
21708 _ACEOF
21709 cat confdefs.h >>conftest.$ac_ext
21710 cat >>conftest.$ac_ext <<_ACEOF
21711 /* end confdefs.h. */
21712 #include <stdio.h>
21713 int
21714 main ()
21715 {
21717 #ifndef _snwprintf
21718 char *p = (char *) _snwprintf;
21719 #endif
21721 ;
21722 return 0;
21723 }
21724 _ACEOF
21725 rm -f conftest.$ac_objext
21726 if { (ac_try="$ac_compile"
21727 case "(($ac_try" in
21728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21729 *) ac_try_echo=$ac_try;;
21730 esac
21731 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21732 $as_echo "$ac_try_echo") >&5
21733 (eval "$ac_compile") 2>conftest.er1
21734 ac_status=$?
21735 grep -v '^ *+' conftest.er1 >conftest.err
21736 rm -f conftest.er1
21737 cat conftest.err >&5
21738 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21739 (exit $ac_status); } && {
21740 test -z "$ac_c_werror_flag" ||
21741 test ! -s conftest.err
21742 } && test -s conftest.$ac_objext; then
21743 ac_cv_have_decl__snwprintf=yes
21744 else
21745 $as_echo "$as_me: failed program was:" >&5
21746 sed 's/^/| /' conftest.$ac_ext >&5
21748 ac_cv_have_decl__snwprintf=no
21749 fi
21751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21752 fi
21753 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
21754 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
21755 if test $ac_cv_have_decl__snwprintf = yes; then
21756 gt_value=1
21757 else
21758 gt_value=0
21759 fi
21761 cat >>confdefs.h <<_ACEOF
21762 #define HAVE_DECL__SNWPRINTF $gt_value
21763 _ACEOF
21768 { $as_echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
21769 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
21770 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
21771 $as_echo_n "(cached) " >&6
21772 else
21773 cat >conftest.$ac_ext <<_ACEOF
21774 /* confdefs.h. */
21775 _ACEOF
21776 cat confdefs.h >>conftest.$ac_ext
21777 cat >>conftest.$ac_ext <<_ACEOF
21778 /* end confdefs.h. */
21779 #include <stdio.h>
21780 int
21781 main ()
21782 {
21784 #ifndef feof_unlocked
21785 char *p = (char *) feof_unlocked;
21786 #endif
21788 ;
21789 return 0;
21790 }
21791 _ACEOF
21792 rm -f conftest.$ac_objext
21793 if { (ac_try="$ac_compile"
21794 case "(($ac_try" in
21795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21796 *) ac_try_echo=$ac_try;;
21797 esac
21798 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21799 $as_echo "$ac_try_echo") >&5
21800 (eval "$ac_compile") 2>conftest.er1
21801 ac_status=$?
21802 grep -v '^ *+' conftest.er1 >conftest.err
21803 rm -f conftest.er1
21804 cat conftest.err >&5
21805 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21806 (exit $ac_status); } && {
21807 test -z "$ac_c_werror_flag" ||
21808 test ! -s conftest.err
21809 } && test -s conftest.$ac_objext; then
21810 ac_cv_have_decl_feof_unlocked=yes
21811 else
21812 $as_echo "$as_me: failed program was:" >&5
21813 sed 's/^/| /' conftest.$ac_ext >&5
21815 ac_cv_have_decl_feof_unlocked=no
21816 fi
21818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21819 fi
21820 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
21821 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
21822 if test $ac_cv_have_decl_feof_unlocked = yes; then
21823 gt_value=1
21824 else
21825 gt_value=0
21826 fi
21828 cat >>confdefs.h <<_ACEOF
21829 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
21830 _ACEOF
21834 { $as_echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
21835 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
21836 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
21837 $as_echo_n "(cached) " >&6
21838 else
21839 cat >conftest.$ac_ext <<_ACEOF
21840 /* confdefs.h. */
21841 _ACEOF
21842 cat confdefs.h >>conftest.$ac_ext
21843 cat >>conftest.$ac_ext <<_ACEOF
21844 /* end confdefs.h. */
21845 #include <stdio.h>
21846 int
21847 main ()
21848 {
21850 #ifndef fgets_unlocked
21851 char *p = (char *) fgets_unlocked;
21852 #endif
21854 ;
21855 return 0;
21856 }
21857 _ACEOF
21858 rm -f conftest.$ac_objext
21859 if { (ac_try="$ac_compile"
21860 case "(($ac_try" in
21861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21862 *) ac_try_echo=$ac_try;;
21863 esac
21864 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21865 $as_echo "$ac_try_echo") >&5
21866 (eval "$ac_compile") 2>conftest.er1
21867 ac_status=$?
21868 grep -v '^ *+' conftest.er1 >conftest.err
21869 rm -f conftest.er1
21870 cat conftest.err >&5
21871 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21872 (exit $ac_status); } && {
21873 test -z "$ac_c_werror_flag" ||
21874 test ! -s conftest.err
21875 } && test -s conftest.$ac_objext; then
21876 ac_cv_have_decl_fgets_unlocked=yes
21877 else
21878 $as_echo "$as_me: failed program was:" >&5
21879 sed 's/^/| /' conftest.$ac_ext >&5
21881 ac_cv_have_decl_fgets_unlocked=no
21882 fi
21884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21885 fi
21886 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
21887 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
21888 if test $ac_cv_have_decl_fgets_unlocked = yes; then
21889 gt_value=1
21890 else
21891 gt_value=0
21892 fi
21894 cat >>confdefs.h <<_ACEOF
21895 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
21896 _ACEOF
21900 { $as_echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
21901 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
21902 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
21903 $as_echo_n "(cached) " >&6
21904 else
21905 cat >conftest.$ac_ext <<_ACEOF
21906 /* confdefs.h. */
21907 _ACEOF
21908 cat confdefs.h >>conftest.$ac_ext
21909 cat >>conftest.$ac_ext <<_ACEOF
21910 /* end confdefs.h. */
21911 #include <stdio.h>
21912 int
21913 main ()
21914 {
21916 #ifndef getc_unlocked
21917 char *p = (char *) getc_unlocked;
21918 #endif
21920 ;
21921 return 0;
21922 }
21923 _ACEOF
21924 rm -f conftest.$ac_objext
21925 if { (ac_try="$ac_compile"
21926 case "(($ac_try" in
21927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21928 *) ac_try_echo=$ac_try;;
21929 esac
21930 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21931 $as_echo "$ac_try_echo") >&5
21932 (eval "$ac_compile") 2>conftest.er1
21933 ac_status=$?
21934 grep -v '^ *+' conftest.er1 >conftest.err
21935 rm -f conftest.er1
21936 cat conftest.err >&5
21937 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21938 (exit $ac_status); } && {
21939 test -z "$ac_c_werror_flag" ||
21940 test ! -s conftest.err
21941 } && test -s conftest.$ac_objext; then
21942 ac_cv_have_decl_getc_unlocked=yes
21943 else
21944 $as_echo "$as_me: failed program was:" >&5
21945 sed 's/^/| /' conftest.$ac_ext >&5
21947 ac_cv_have_decl_getc_unlocked=no
21948 fi
21950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21951 fi
21952 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
21953 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
21954 if test $ac_cv_have_decl_getc_unlocked = yes; then
21955 gt_value=1
21956 else
21957 gt_value=0
21958 fi
21960 cat >>confdefs.h <<_ACEOF
21961 #define HAVE_DECL_GETC_UNLOCKED $gt_value
21962 _ACEOF
21966 case $gt_cv_func_printf_posix in
21967 *yes) HAVE_POSIX_PRINTF=1 ;;
21968 *) HAVE_POSIX_PRINTF=0 ;;
21969 esac
21971 if test "$ac_cv_func_asprintf" = yes; then
21972 HAVE_ASPRINTF=1
21973 else
21974 HAVE_ASPRINTF=0
21975 fi
21977 if test "$ac_cv_func_snprintf" = yes; then
21978 HAVE_SNPRINTF=1
21979 else
21980 HAVE_SNPRINTF=0
21981 fi
21983 if test "$ac_cv_func_wprintf" = yes; then
21984 HAVE_WPRINTF=1
21985 else
21986 HAVE_WPRINTF=0
21987 fi
21995 am_save_CPPFLAGS="$CPPFLAGS"
21997 for element in $INCICONV; do
21998 haveit=
21999 for x in $CPPFLAGS; do
22001 acl_save_prefix="$prefix"
22002 prefix="$acl_final_prefix"
22003 acl_save_exec_prefix="$exec_prefix"
22004 exec_prefix="$acl_final_exec_prefix"
22005 eval x=\"$x\"
22006 exec_prefix="$acl_save_exec_prefix"
22007 prefix="$acl_save_prefix"
22009 if test "X$x" = "X$element"; then
22010 haveit=yes
22011 break
22012 fi
22013 done
22014 if test -z "$haveit"; then
22015 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
22016 fi
22017 done
22020 { $as_echo "$as_me:$LINENO: checking for iconv" >&5
22021 $as_echo_n "checking for iconv... " >&6; }
22022 if test "${am_cv_func_iconv+set}" = set; then
22023 $as_echo_n "(cached) " >&6
22024 else
22026 am_cv_func_iconv="no, consider installing GNU libiconv"
22027 am_cv_lib_iconv=no
22028 cat >conftest.$ac_ext <<_ACEOF
22029 /* confdefs.h. */
22030 _ACEOF
22031 cat confdefs.h >>conftest.$ac_ext
22032 cat >>conftest.$ac_ext <<_ACEOF
22033 /* end confdefs.h. */
22034 #include <stdlib.h>
22035 #include <iconv.h>
22036 int
22037 main ()
22038 {
22039 iconv_t cd = iconv_open("","");
22040 iconv(cd,NULL,NULL,NULL,NULL);
22041 iconv_close(cd);
22042 ;
22043 return 0;
22044 }
22045 _ACEOF
22046 rm -f conftest.$ac_objext conftest$ac_exeext
22047 if { (ac_try="$ac_link"
22048 case "(($ac_try" in
22049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22050 *) ac_try_echo=$ac_try;;
22051 esac
22052 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22053 $as_echo "$ac_try_echo") >&5
22054 (eval "$ac_link") 2>conftest.er1
22055 ac_status=$?
22056 grep -v '^ *+' conftest.er1 >conftest.err
22057 rm -f conftest.er1
22058 cat conftest.err >&5
22059 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22060 (exit $ac_status); } && {
22061 test -z "$ac_c_werror_flag" ||
22062 test ! -s conftest.err
22063 } && test -s conftest$ac_exeext && {
22064 test "$cross_compiling" = yes ||
22065 $as_test_x conftest$ac_exeext
22066 }; then
22067 am_cv_func_iconv=yes
22068 else
22069 $as_echo "$as_me: failed program was:" >&5
22070 sed 's/^/| /' conftest.$ac_ext >&5
22073 fi
22075 rm -rf conftest.dSYM
22076 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22077 conftest$ac_exeext conftest.$ac_ext
22078 if test "$am_cv_func_iconv" != yes; then
22079 am_save_LIBS="$LIBS"
22080 LIBS="$LIBS $LIBICONV"
22081 cat >conftest.$ac_ext <<_ACEOF
22082 /* confdefs.h. */
22083 _ACEOF
22084 cat confdefs.h >>conftest.$ac_ext
22085 cat >>conftest.$ac_ext <<_ACEOF
22086 /* end confdefs.h. */
22087 #include <stdlib.h>
22088 #include <iconv.h>
22089 int
22090 main ()
22091 {
22092 iconv_t cd = iconv_open("","");
22093 iconv(cd,NULL,NULL,NULL,NULL);
22094 iconv_close(cd);
22095 ;
22096 return 0;
22097 }
22098 _ACEOF
22099 rm -f conftest.$ac_objext conftest$ac_exeext
22100 if { (ac_try="$ac_link"
22101 case "(($ac_try" in
22102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22103 *) ac_try_echo=$ac_try;;
22104 esac
22105 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22106 $as_echo "$ac_try_echo") >&5
22107 (eval "$ac_link") 2>conftest.er1
22108 ac_status=$?
22109 grep -v '^ *+' conftest.er1 >conftest.err
22110 rm -f conftest.er1
22111 cat conftest.err >&5
22112 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22113 (exit $ac_status); } && {
22114 test -z "$ac_c_werror_flag" ||
22115 test ! -s conftest.err
22116 } && test -s conftest$ac_exeext && {
22117 test "$cross_compiling" = yes ||
22118 $as_test_x conftest$ac_exeext
22119 }; then
22120 am_cv_lib_iconv=yes
22121 am_cv_func_iconv=yes
22122 else
22123 $as_echo "$as_me: failed program was:" >&5
22124 sed 's/^/| /' conftest.$ac_ext >&5
22127 fi
22129 rm -rf conftest.dSYM
22130 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22131 conftest$ac_exeext conftest.$ac_ext
22132 LIBS="$am_save_LIBS"
22133 fi
22135 fi
22136 { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
22137 $as_echo "$am_cv_func_iconv" >&6; }
22138 if test "$am_cv_func_iconv" = yes; then
22140 cat >>confdefs.h <<\_ACEOF
22141 #define HAVE_ICONV 1
22142 _ACEOF
22144 fi
22145 if test "$am_cv_lib_iconv" = yes; then
22146 { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
22147 $as_echo_n "checking how to link with libiconv... " >&6; }
22148 { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
22149 $as_echo "$LIBICONV" >&6; }
22150 else
22151 CPPFLAGS="$am_save_CPPFLAGS"
22152 LIBICONV=
22153 LTLIBICONV=
22154 fi
22158 if test "$am_cv_func_iconv" = yes; then
22159 { $as_echo "$as_me:$LINENO: checking for iconv declaration" >&5
22160 $as_echo_n "checking for iconv declaration... " >&6; }
22161 if test "${am_cv_proto_iconv+set}" = set; then
22162 $as_echo_n "(cached) " >&6
22163 else
22165 cat >conftest.$ac_ext <<_ACEOF
22166 /* confdefs.h. */
22167 _ACEOF
22168 cat confdefs.h >>conftest.$ac_ext
22169 cat >>conftest.$ac_ext <<_ACEOF
22170 /* end confdefs.h. */
22172 #include <stdlib.h>
22173 #include <iconv.h>
22174 extern
22175 #ifdef __cplusplus
22176 "C"
22177 #endif
22178 #if defined(__STDC__) || defined(__cplusplus)
22179 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
22180 #else
22181 size_t iconv();
22182 #endif
22184 int
22185 main ()
22186 {
22188 ;
22189 return 0;
22190 }
22191 _ACEOF
22192 rm -f conftest.$ac_objext
22193 if { (ac_try="$ac_compile"
22194 case "(($ac_try" in
22195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22196 *) ac_try_echo=$ac_try;;
22197 esac
22198 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22199 $as_echo "$ac_try_echo") >&5
22200 (eval "$ac_compile") 2>conftest.er1
22201 ac_status=$?
22202 grep -v '^ *+' conftest.er1 >conftest.err
22203 rm -f conftest.er1
22204 cat conftest.err >&5
22205 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22206 (exit $ac_status); } && {
22207 test -z "$ac_c_werror_flag" ||
22208 test ! -s conftest.err
22209 } && test -s conftest.$ac_objext; then
22210 am_cv_proto_iconv_arg1=""
22211 else
22212 $as_echo "$as_me: failed program was:" >&5
22213 sed 's/^/| /' conftest.$ac_ext >&5
22215 am_cv_proto_iconv_arg1="const"
22216 fi
22218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22219 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
22220 fi
22222 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
22223 { $as_echo "$as_me:$LINENO: result: ${ac_t:-
22224 }$am_cv_proto_iconv" >&5
22225 $as_echo "${ac_t:-
22226 }$am_cv_proto_iconv" >&6; }
22228 cat >>confdefs.h <<_ACEOF
22229 #define ICONV_CONST $am_cv_proto_iconv_arg1
22230 _ACEOF
22232 fi
22235 { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
22236 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
22237 if test "${am_cv_langinfo_codeset+set}" = set; then
22238 $as_echo_n "(cached) " >&6
22239 else
22240 cat >conftest.$ac_ext <<_ACEOF
22241 /* confdefs.h. */
22242 _ACEOF
22243 cat confdefs.h >>conftest.$ac_ext
22244 cat >>conftest.$ac_ext <<_ACEOF
22245 /* end confdefs.h. */
22246 #include <langinfo.h>
22247 int
22248 main ()
22249 {
22250 char* cs = nl_langinfo(CODESET);
22251 ;
22252 return 0;
22253 }
22254 _ACEOF
22255 rm -f conftest.$ac_objext conftest$ac_exeext
22256 if { (ac_try="$ac_link"
22257 case "(($ac_try" in
22258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22259 *) ac_try_echo=$ac_try;;
22260 esac
22261 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22262 $as_echo "$ac_try_echo") >&5
22263 (eval "$ac_link") 2>conftest.er1
22264 ac_status=$?
22265 grep -v '^ *+' conftest.er1 >conftest.err
22266 rm -f conftest.er1
22267 cat conftest.err >&5
22268 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22269 (exit $ac_status); } && {
22270 test -z "$ac_c_werror_flag" ||
22271 test ! -s conftest.err
22272 } && test -s conftest$ac_exeext && {
22273 test "$cross_compiling" = yes ||
22274 $as_test_x conftest$ac_exeext
22275 }; then
22276 am_cv_langinfo_codeset=yes
22277 else
22278 $as_echo "$as_me: failed program was:" >&5
22279 sed 's/^/| /' conftest.$ac_ext >&5
22281 am_cv_langinfo_codeset=no
22282 fi
22284 rm -rf conftest.dSYM
22285 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22286 conftest$ac_exeext conftest.$ac_ext
22288 fi
22289 { $as_echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
22290 $as_echo "$am_cv_langinfo_codeset" >&6; }
22291 if test $am_cv_langinfo_codeset = yes; then
22293 cat >>confdefs.h <<\_ACEOF
22294 #define HAVE_LANGINFO_CODESET 1
22295 _ACEOF
22297 fi
22299 if test $ac_cv_header_locale_h = yes; then
22301 { $as_echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
22302 $as_echo_n "checking for LC_MESSAGES... " >&6; }
22303 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
22304 $as_echo_n "(cached) " >&6
22305 else
22306 cat >conftest.$ac_ext <<_ACEOF
22307 /* confdefs.h. */
22308 _ACEOF
22309 cat confdefs.h >>conftest.$ac_ext
22310 cat >>conftest.$ac_ext <<_ACEOF
22311 /* end confdefs.h. */
22312 #include <locale.h>
22313 int
22314 main ()
22315 {
22316 return LC_MESSAGES
22317 ;
22318 return 0;
22319 }
22320 _ACEOF
22321 rm -f conftest.$ac_objext conftest$ac_exeext
22322 if { (ac_try="$ac_link"
22323 case "(($ac_try" in
22324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22325 *) ac_try_echo=$ac_try;;
22326 esac
22327 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22328 $as_echo "$ac_try_echo") >&5
22329 (eval "$ac_link") 2>conftest.er1
22330 ac_status=$?
22331 grep -v '^ *+' conftest.er1 >conftest.err
22332 rm -f conftest.er1
22333 cat conftest.err >&5
22334 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22335 (exit $ac_status); } && {
22336 test -z "$ac_c_werror_flag" ||
22337 test ! -s conftest.err
22338 } && test -s conftest$ac_exeext && {
22339 test "$cross_compiling" = yes ||
22340 $as_test_x conftest$ac_exeext
22341 }; then
22342 gt_cv_val_LC_MESSAGES=yes
22343 else
22344 $as_echo "$as_me: failed program was:" >&5
22345 sed 's/^/| /' conftest.$ac_ext >&5
22347 gt_cv_val_LC_MESSAGES=no
22348 fi
22350 rm -rf conftest.dSYM
22351 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22352 conftest$ac_exeext conftest.$ac_ext
22353 fi
22354 { $as_echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
22355 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
22356 if test $gt_cv_val_LC_MESSAGES = yes; then
22358 cat >>confdefs.h <<\_ACEOF
22359 #define HAVE_LC_MESSAGES 1
22360 _ACEOF
22362 fi
22364 fi
22366 if test -n "$INTL_MACOSX_LIBS"; then
22367 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
22368 fi
22370 for ac_prog in bison
22371 do
22372 # Extract the first word of "$ac_prog", so it can be a program name with args.
22373 set dummy $ac_prog; ac_word=$2
22374 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
22375 $as_echo_n "checking for $ac_word... " >&6; }
22376 if test "${ac_cv_prog_INTLBISON+set}" = set; then
22377 $as_echo_n "(cached) " >&6
22378 else
22379 if test -n "$INTLBISON"; then
22380 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
22381 else
22382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22383 for as_dir in $PATH
22384 do
22385 IFS=$as_save_IFS
22386 test -z "$as_dir" && as_dir=.
22387 for ac_exec_ext in '' $ac_executable_extensions; do
22388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22389 ac_cv_prog_INTLBISON="$ac_prog"
22390 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22391 break 2
22392 fi
22393 done
22394 done
22395 IFS=$as_save_IFS
22397 fi
22398 fi
22399 INTLBISON=$ac_cv_prog_INTLBISON
22400 if test -n "$INTLBISON"; then
22401 { $as_echo "$as_me:$LINENO: result: $INTLBISON" >&5
22402 $as_echo "$INTLBISON" >&6; }
22403 else
22404 { $as_echo "$as_me:$LINENO: result: no" >&5
22405 $as_echo "no" >&6; }
22406 fi
22409 test -n "$INTLBISON" && break
22410 done
22412 if test -z "$INTLBISON"; then
22413 ac_verc_fail=yes
22414 else
22415 { $as_echo "$as_me:$LINENO: checking version of bison" >&5
22416 $as_echo_n "checking version of bison... " >&6; }
22417 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
22418 case $ac_prog_version in
22419 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
22420 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
22421 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
22422 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
22423 esac
22424 { $as_echo "$as_me:$LINENO: result: $ac_prog_version" >&5
22425 $as_echo "$ac_prog_version" >&6; }
22426 fi
22427 if test $ac_verc_fail = yes; then
22428 INTLBISON=:
22429 fi
22446 { $as_echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
22447 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
22448 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
22449 $as_echo_n "(cached) " >&6
22450 else
22451 gt_save_CPPFLAGS="$CPPFLAGS"
22452 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
22453 gt_save_LIBS="$LIBS"
22454 LIBS="$LIBS -framework CoreFoundation"
22455 cat >conftest.$ac_ext <<_ACEOF
22456 /* confdefs.h. */
22457 _ACEOF
22458 cat confdefs.h >>conftest.$ac_ext
22459 cat >>conftest.$ac_ext <<_ACEOF
22460 /* end confdefs.h. */
22461 #include <CFPreferences.h>
22462 int
22463 main ()
22464 {
22465 CFPreferencesCopyAppValue(NULL, NULL)
22466 ;
22467 return 0;
22468 }
22469 _ACEOF
22470 rm -f conftest.$ac_objext conftest$ac_exeext
22471 if { (ac_try="$ac_link"
22472 case "(($ac_try" in
22473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22474 *) ac_try_echo=$ac_try;;
22475 esac
22476 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22477 $as_echo "$ac_try_echo") >&5
22478 (eval "$ac_link") 2>conftest.er1
22479 ac_status=$?
22480 grep -v '^ *+' conftest.er1 >conftest.err
22481 rm -f conftest.er1
22482 cat conftest.err >&5
22483 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22484 (exit $ac_status); } && {
22485 test -z "$ac_c_werror_flag" ||
22486 test ! -s conftest.err
22487 } && test -s conftest$ac_exeext && {
22488 test "$cross_compiling" = yes ||
22489 $as_test_x conftest$ac_exeext
22490 }; then
22491 gt_cv_func_CFPreferencesCopyAppValue=yes
22492 else
22493 $as_echo "$as_me: failed program was:" >&5
22494 sed 's/^/| /' conftest.$ac_ext >&5
22496 gt_cv_func_CFPreferencesCopyAppValue=no
22497 fi
22499 rm -rf conftest.dSYM
22500 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22501 conftest$ac_exeext conftest.$ac_ext
22502 CPPFLAGS="$gt_save_CPPFLAGS"
22503 LIBS="$gt_save_LIBS"
22504 fi
22505 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
22506 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
22507 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
22509 cat >>confdefs.h <<\_ACEOF
22510 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
22511 _ACEOF
22513 fi
22514 { $as_echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
22515 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
22516 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
22517 $as_echo_n "(cached) " >&6
22518 else
22519 gt_save_CPPFLAGS="$CPPFLAGS"
22520 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
22521 gt_save_LIBS="$LIBS"
22522 LIBS="$LIBS -framework CoreFoundation"
22523 cat >conftest.$ac_ext <<_ACEOF
22524 /* confdefs.h. */
22525 _ACEOF
22526 cat confdefs.h >>conftest.$ac_ext
22527 cat >>conftest.$ac_ext <<_ACEOF
22528 /* end confdefs.h. */
22529 #include <CFLocale.h>
22530 int
22531 main ()
22532 {
22533 CFLocaleCopyCurrent();
22534 ;
22535 return 0;
22536 }
22537 _ACEOF
22538 rm -f conftest.$ac_objext conftest$ac_exeext
22539 if { (ac_try="$ac_link"
22540 case "(($ac_try" in
22541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22542 *) ac_try_echo=$ac_try;;
22543 esac
22544 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22545 $as_echo "$ac_try_echo") >&5
22546 (eval "$ac_link") 2>conftest.er1
22547 ac_status=$?
22548 grep -v '^ *+' conftest.er1 >conftest.err
22549 rm -f conftest.er1
22550 cat conftest.err >&5
22551 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22552 (exit $ac_status); } && {
22553 test -z "$ac_c_werror_flag" ||
22554 test ! -s conftest.err
22555 } && test -s conftest$ac_exeext && {
22556 test "$cross_compiling" = yes ||
22557 $as_test_x conftest$ac_exeext
22558 }; then
22559 gt_cv_func_CFLocaleCopyCurrent=yes
22560 else
22561 $as_echo "$as_me: failed program was:" >&5
22562 sed 's/^/| /' conftest.$ac_ext >&5
22564 gt_cv_func_CFLocaleCopyCurrent=no
22565 fi
22567 rm -rf conftest.dSYM
22568 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22569 conftest$ac_exeext conftest.$ac_ext
22570 CPPFLAGS="$gt_save_CPPFLAGS"
22571 LIBS="$gt_save_LIBS"
22572 fi
22573 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
22574 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
22575 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
22577 cat >>confdefs.h <<\_ACEOF
22578 #define HAVE_CFLOCALECOPYCURRENT 1
22579 _ACEOF
22581 fi
22582 INTL_MACOSX_LIBS=
22583 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
22584 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
22585 fi
22590 { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
22591 $as_echo_n "checking whether NLS is requested... " >&6; }
22592 # Check whether --enable-nls was given.
22593 if test "${enable_nls+set}" = set; then
22594 enableval=$enable_nls; USE_NLS=$enableval
22595 else
22596 USE_NLS=yes
22597 fi
22599 { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
22600 $as_echo "$USE_NLS" >&6; }
22605 BUILD_INCLUDED_LIBINTL=no
22606 USE_INCLUDED_LIBINTL=no
22608 LIBINTL=
22609 LTLIBINTL=
22610 POSUB=
22612 if test "$USE_NLS" = "yes"; then
22613 gt_use_preinstalled_gnugettext=no
22615 { $as_echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
22616 $as_echo_n "checking whether included gettext is requested... " >&6; }
22618 # Check whether --with-included-gettext was given.
22619 if test "${with_included_gettext+set}" = set; then
22620 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
22621 else
22622 nls_cv_force_use_gnu_gettext=no
22623 fi
22625 { $as_echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
22626 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
22628 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
22629 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
22636 { $as_echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
22637 $as_echo_n "checking for GNU gettext in libc... " >&6; }
22638 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
22639 $as_echo_n "(cached) " >&6
22640 else
22641 cat >conftest.$ac_ext <<_ACEOF
22642 /* confdefs.h. */
22643 _ACEOF
22644 cat confdefs.h >>conftest.$ac_ext
22645 cat >>conftest.$ac_ext <<_ACEOF
22646 /* end confdefs.h. */
22647 #include <libintl.h>
22648 extern int _nl_msg_cat_cntr;
22649 extern int *_nl_domain_bindings;
22650 int
22651 main ()
22652 {
22653 bindtextdomain ("", "");
22654 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
22655 ;
22656 return 0;
22657 }
22658 _ACEOF
22659 rm -f conftest.$ac_objext conftest$ac_exeext
22660 if { (ac_try="$ac_link"
22661 case "(($ac_try" in
22662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22663 *) ac_try_echo=$ac_try;;
22664 esac
22665 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22666 $as_echo "$ac_try_echo") >&5
22667 (eval "$ac_link") 2>conftest.er1
22668 ac_status=$?
22669 grep -v '^ *+' conftest.er1 >conftest.err
22670 rm -f conftest.er1
22671 cat conftest.err >&5
22672 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22673 (exit $ac_status); } && {
22674 test -z "$ac_c_werror_flag" ||
22675 test ! -s conftest.err
22676 } && test -s conftest$ac_exeext && {
22677 test "$cross_compiling" = yes ||
22678 $as_test_x conftest$ac_exeext
22679 }; then
22680 gt_cv_func_gnugettext1_libc=yes
22681 else
22682 $as_echo "$as_me: failed program was:" >&5
22683 sed 's/^/| /' conftest.$ac_ext >&5
22685 gt_cv_func_gnugettext1_libc=no
22686 fi
22688 rm -rf conftest.dSYM
22689 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22690 conftest$ac_exeext conftest.$ac_ext
22691 fi
22692 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
22693 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
22695 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
22699 use_additional=yes
22701 acl_save_prefix="$prefix"
22702 prefix="$acl_final_prefix"
22703 acl_save_exec_prefix="$exec_prefix"
22704 exec_prefix="$acl_final_exec_prefix"
22706 eval additional_includedir=\"$includedir\"
22707 eval additional_libdir=\"$libdir\"
22709 exec_prefix="$acl_save_exec_prefix"
22710 prefix="$acl_save_prefix"
22713 # Check whether --with-libintl-prefix was given.
22714 if test "${with_libintl_prefix+set}" = set; then
22715 withval=$with_libintl_prefix;
22716 if test "X$withval" = "Xno"; then
22717 use_additional=no
22718 else
22719 if test "X$withval" = "X"; then
22721 acl_save_prefix="$prefix"
22722 prefix="$acl_final_prefix"
22723 acl_save_exec_prefix="$exec_prefix"
22724 exec_prefix="$acl_final_exec_prefix"
22726 eval additional_includedir=\"$includedir\"
22727 eval additional_libdir=\"$libdir\"
22729 exec_prefix="$acl_save_exec_prefix"
22730 prefix="$acl_save_prefix"
22732 else
22733 additional_includedir="$withval/include"
22734 additional_libdir="$withval/lib"
22735 fi
22736 fi
22738 fi
22740 LIBINTL=
22741 LTLIBINTL=
22742 INCINTL=
22743 rpathdirs=
22744 ltrpathdirs=
22745 names_already_handled=
22746 names_next_round='intl '
22747 while test -n "$names_next_round"; do
22748 names_this_round="$names_next_round"
22749 names_next_round=
22750 for name in $names_this_round; do
22751 already_handled=
22752 for n in $names_already_handled; do
22753 if test "$n" = "$name"; then
22754 already_handled=yes
22755 break
22756 fi
22757 done
22758 if test -z "$already_handled"; then
22759 names_already_handled="$names_already_handled $name"
22760 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
22761 eval value=\"\$HAVE_LIB$uppername\"
22762 if test -n "$value"; then
22763 if test "$value" = yes; then
22764 eval value=\"\$LIB$uppername\"
22765 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
22766 eval value=\"\$LTLIB$uppername\"
22767 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
22768 else
22769 :
22770 fi
22771 else
22772 found_dir=
22773 found_la=
22774 found_so=
22775 found_a=
22776 if test $use_additional = yes; then
22777 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
22778 found_dir="$additional_libdir"
22779 found_so="$additional_libdir/lib$name.$shlibext"
22780 if test -f "$additional_libdir/lib$name.la"; then
22781 found_la="$additional_libdir/lib$name.la"
22782 fi
22783 else
22784 if test -f "$additional_libdir/lib$name.$libext"; then
22785 found_dir="$additional_libdir"
22786 found_a="$additional_libdir/lib$name.$libext"
22787 if test -f "$additional_libdir/lib$name.la"; then
22788 found_la="$additional_libdir/lib$name.la"
22789 fi
22790 fi
22791 fi
22792 fi
22793 if test "X$found_dir" = "X"; then
22794 for x in $LDFLAGS $LTLIBINTL; do
22796 acl_save_prefix="$prefix"
22797 prefix="$acl_final_prefix"
22798 acl_save_exec_prefix="$exec_prefix"
22799 exec_prefix="$acl_final_exec_prefix"
22800 eval x=\"$x\"
22801 exec_prefix="$acl_save_exec_prefix"
22802 prefix="$acl_save_prefix"
22804 case "$x" in
22805 -L*)
22806 dir=`echo "X$x" | sed -e 's/^X-L//'`
22807 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
22808 found_dir="$dir"
22809 found_so="$dir/lib$name.$shlibext"
22810 if test -f "$dir/lib$name.la"; then
22811 found_la="$dir/lib$name.la"
22812 fi
22813 else
22814 if test -f "$dir/lib$name.$libext"; then
22815 found_dir="$dir"
22816 found_a="$dir/lib$name.$libext"
22817 if test -f "$dir/lib$name.la"; then
22818 found_la="$dir/lib$name.la"
22819 fi
22820 fi
22821 fi
22822 ;;
22823 esac
22824 if test "X$found_dir" != "X"; then
22825 break
22826 fi
22827 done
22828 fi
22829 if test "X$found_dir" != "X"; then
22830 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
22831 if test "X$found_so" != "X"; then
22832 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
22833 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
22834 else
22835 haveit=
22836 for x in $ltrpathdirs; do
22837 if test "X$x" = "X$found_dir"; then
22838 haveit=yes
22839 break
22840 fi
22841 done
22842 if test -z "$haveit"; then
22843 ltrpathdirs="$ltrpathdirs $found_dir"
22844 fi
22845 if test "$hardcode_direct" = yes; then
22846 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
22847 else
22848 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
22849 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
22850 haveit=
22851 for x in $rpathdirs; do
22852 if test "X$x" = "X$found_dir"; then
22853 haveit=yes
22854 break
22855 fi
22856 done
22857 if test -z "$haveit"; then
22858 rpathdirs="$rpathdirs $found_dir"
22859 fi
22860 else
22861 haveit=
22862 for x in $LDFLAGS $LIBINTL; do
22864 acl_save_prefix="$prefix"
22865 prefix="$acl_final_prefix"
22866 acl_save_exec_prefix="$exec_prefix"
22867 exec_prefix="$acl_final_exec_prefix"
22868 eval x=\"$x\"
22869 exec_prefix="$acl_save_exec_prefix"
22870 prefix="$acl_save_prefix"
22872 if test "X$x" = "X-L$found_dir"; then
22873 haveit=yes
22874 break
22875 fi
22876 done
22877 if test -z "$haveit"; then
22878 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
22879 fi
22880 if test "$hardcode_minus_L" != no; then
22881 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
22882 else
22883 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
22884 fi
22885 fi
22886 fi
22887 fi
22888 else
22889 if test "X$found_a" != "X"; then
22890 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
22891 else
22892 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
22893 fi
22894 fi
22895 additional_includedir=
22896 case "$found_dir" in
22897 */lib | */lib/)
22898 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
22899 additional_includedir="$basedir/include"
22900 ;;
22901 esac
22902 if test "X$additional_includedir" != "X"; then
22903 if test "X$additional_includedir" != "X/usr/include"; then
22904 haveit=
22905 if test "X$additional_includedir" = "X/usr/local/include"; then
22906 if test -n "$GCC"; then
22907 case $host_os in
22908 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
22909 esac
22910 fi
22911 fi
22912 if test -z "$haveit"; then
22913 for x in $CPPFLAGS $INCINTL; do
22915 acl_save_prefix="$prefix"
22916 prefix="$acl_final_prefix"
22917 acl_save_exec_prefix="$exec_prefix"
22918 exec_prefix="$acl_final_exec_prefix"
22919 eval x=\"$x\"
22920 exec_prefix="$acl_save_exec_prefix"
22921 prefix="$acl_save_prefix"
22923 if test "X$x" = "X-I$additional_includedir"; then
22924 haveit=yes
22925 break
22926 fi
22927 done
22928 if test -z "$haveit"; then
22929 if test -d "$additional_includedir"; then
22930 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
22931 fi
22932 fi
22933 fi
22934 fi
22935 fi
22936 if test -n "$found_la"; then
22937 save_libdir="$libdir"
22938 case "$found_la" in
22939 */* | *\\*) . "$found_la" ;;
22940 *) . "./$found_la" ;;
22941 esac
22942 libdir="$save_libdir"
22943 for dep in $dependency_libs; do
22944 case "$dep" in
22945 -L*)
22946 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
22947 if test "X$additional_libdir" != "X/usr/lib"; then
22948 haveit=
22949 if test "X$additional_libdir" = "X/usr/local/lib"; then
22950 if test -n "$GCC"; then
22951 case $host_os in
22952 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
22953 esac
22954 fi
22955 fi
22956 if test -z "$haveit"; then
22957 haveit=
22958 for x in $LDFLAGS $LIBINTL; do
22960 acl_save_prefix="$prefix"
22961 prefix="$acl_final_prefix"
22962 acl_save_exec_prefix="$exec_prefix"
22963 exec_prefix="$acl_final_exec_prefix"
22964 eval x=\"$x\"
22965 exec_prefix="$acl_save_exec_prefix"
22966 prefix="$acl_save_prefix"
22968 if test "X$x" = "X-L$additional_libdir"; then
22969 haveit=yes
22970 break
22971 fi
22972 done
22973 if test -z "$haveit"; then
22974 if test -d "$additional_libdir"; then
22975 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
22976 fi
22977 fi
22978 haveit=
22979 for x in $LDFLAGS $LTLIBINTL; do
22981 acl_save_prefix="$prefix"
22982 prefix="$acl_final_prefix"
22983 acl_save_exec_prefix="$exec_prefix"
22984 exec_prefix="$acl_final_exec_prefix"
22985 eval x=\"$x\"
22986 exec_prefix="$acl_save_exec_prefix"
22987 prefix="$acl_save_prefix"
22989 if test "X$x" = "X-L$additional_libdir"; then
22990 haveit=yes
22991 break
22992 fi
22993 done
22994 if test -z "$haveit"; then
22995 if test -d "$additional_libdir"; then
22996 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
22997 fi
22998 fi
22999 fi
23000 fi
23001 ;;
23002 -R*)
23003 dir=`echo "X$dep" | sed -e 's/^X-R//'`
23004 if test "$enable_rpath" != no; then
23005 haveit=
23006 for x in $rpathdirs; do
23007 if test "X$x" = "X$dir"; then
23008 haveit=yes
23009 break
23010 fi
23011 done
23012 if test -z "$haveit"; then
23013 rpathdirs="$rpathdirs $dir"
23014 fi
23015 haveit=
23016 for x in $ltrpathdirs; do
23017 if test "X$x" = "X$dir"; then
23018 haveit=yes
23019 break
23020 fi
23021 done
23022 if test -z "$haveit"; then
23023 ltrpathdirs="$ltrpathdirs $dir"
23024 fi
23025 fi
23026 ;;
23027 -l*)
23028 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
23029 ;;
23030 *.la)
23031 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
23032 ;;
23033 *)
23034 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
23035 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
23036 ;;
23037 esac
23038 done
23039 fi
23040 else
23041 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23042 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
23043 fi
23044 fi
23045 fi
23046 done
23047 done
23048 if test "X$rpathdirs" != "X"; then
23049 if test -n "$hardcode_libdir_separator"; then
23050 alldirs=
23051 for found_dir in $rpathdirs; do
23052 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
23053 done
23054 acl_save_libdir="$libdir"
23055 libdir="$alldirs"
23056 eval flag=\"$hardcode_libdir_flag_spec\"
23057 libdir="$acl_save_libdir"
23058 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23059 else
23060 for found_dir in $rpathdirs; do
23061 acl_save_libdir="$libdir"
23062 libdir="$found_dir"
23063 eval flag=\"$hardcode_libdir_flag_spec\"
23064 libdir="$acl_save_libdir"
23065 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23066 done
23067 fi
23068 fi
23069 if test "X$ltrpathdirs" != "X"; then
23070 for found_dir in $ltrpathdirs; do
23071 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
23072 done
23073 fi
23075 { $as_echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
23076 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
23077 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
23078 $as_echo_n "(cached) " >&6
23079 else
23080 gt_save_CPPFLAGS="$CPPFLAGS"
23081 CPPFLAGS="$CPPFLAGS $INCINTL"
23082 gt_save_LIBS="$LIBS"
23083 LIBS="$LIBS $LIBINTL"
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 #include <libintl.h>
23091 extern int _nl_msg_cat_cntr;
23092 extern
23093 #ifdef __cplusplus
23094 "C"
23095 #endif
23096 const char *_nl_expand_alias (const char *);
23097 int
23098 main ()
23099 {
23100 bindtextdomain ("", "");
23101 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
23102 ;
23103 return 0;
23104 }
23105 _ACEOF
23106 rm -f conftest.$ac_objext conftest$ac_exeext
23107 if { (ac_try="$ac_link"
23108 case "(($ac_try" in
23109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23110 *) ac_try_echo=$ac_try;;
23111 esac
23112 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23113 $as_echo "$ac_try_echo") >&5
23114 (eval "$ac_link") 2>conftest.er1
23115 ac_status=$?
23116 grep -v '^ *+' conftest.er1 >conftest.err
23117 rm -f conftest.er1
23118 cat conftest.err >&5
23119 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23120 (exit $ac_status); } && {
23121 test -z "$ac_c_werror_flag" ||
23122 test ! -s conftest.err
23123 } && test -s conftest$ac_exeext && {
23124 test "$cross_compiling" = yes ||
23125 $as_test_x conftest$ac_exeext
23126 }; then
23127 gt_cv_func_gnugettext1_libintl=yes
23128 else
23129 $as_echo "$as_me: failed program was:" >&5
23130 sed 's/^/| /' conftest.$ac_ext >&5
23132 gt_cv_func_gnugettext1_libintl=no
23133 fi
23135 rm -rf conftest.dSYM
23136 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23137 conftest$ac_exeext conftest.$ac_ext
23138 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
23139 LIBS="$LIBS $LIBICONV"
23140 cat >conftest.$ac_ext <<_ACEOF
23141 /* confdefs.h. */
23142 _ACEOF
23143 cat confdefs.h >>conftest.$ac_ext
23144 cat >>conftest.$ac_ext <<_ACEOF
23145 /* end confdefs.h. */
23146 #include <libintl.h>
23147 extern int _nl_msg_cat_cntr;
23148 extern
23149 #ifdef __cplusplus
23150 "C"
23151 #endif
23152 const char *_nl_expand_alias (const char *);
23153 int
23154 main ()
23155 {
23156 bindtextdomain ("", "");
23157 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
23158 ;
23159 return 0;
23160 }
23161 _ACEOF
23162 rm -f conftest.$ac_objext conftest$ac_exeext
23163 if { (ac_try="$ac_link"
23164 case "(($ac_try" in
23165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23166 *) ac_try_echo=$ac_try;;
23167 esac
23168 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23169 $as_echo "$ac_try_echo") >&5
23170 (eval "$ac_link") 2>conftest.er1
23171 ac_status=$?
23172 grep -v '^ *+' conftest.er1 >conftest.err
23173 rm -f conftest.er1
23174 cat conftest.err >&5
23175 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23176 (exit $ac_status); } && {
23177 test -z "$ac_c_werror_flag" ||
23178 test ! -s conftest.err
23179 } && test -s conftest$ac_exeext && {
23180 test "$cross_compiling" = yes ||
23181 $as_test_x conftest$ac_exeext
23182 }; then
23183 LIBINTL="$LIBINTL $LIBICONV"
23184 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
23185 gt_cv_func_gnugettext1_libintl=yes
23187 else
23188 $as_echo "$as_me: failed program was:" >&5
23189 sed 's/^/| /' conftest.$ac_ext >&5
23192 fi
23194 rm -rf conftest.dSYM
23195 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23196 conftest$ac_exeext conftest.$ac_ext
23197 fi
23198 CPPFLAGS="$gt_save_CPPFLAGS"
23199 LIBS="$gt_save_LIBS"
23200 fi
23201 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
23202 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
23203 fi
23205 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
23206 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
23207 && test "$PACKAGE" != gettext-runtime \
23208 && test "$PACKAGE" != gettext-tools; }; then
23209 gt_use_preinstalled_gnugettext=yes
23210 else
23211 LIBINTL=
23212 LTLIBINTL=
23213 INCINTL=
23214 fi
23217 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
23218 nls_cv_use_gnu_gettext=yes
23219 fi
23220 fi
23222 if test "$nls_cv_use_gnu_gettext" = "yes"; then
23223 BUILD_INCLUDED_LIBINTL=yes
23224 USE_INCLUDED_LIBINTL=yes
23225 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
23226 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
23227 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
23228 fi
23230 CATOBJEXT=
23231 if test "$gt_use_preinstalled_gnugettext" = "yes" \
23232 || test "$nls_cv_use_gnu_gettext" = "yes"; then
23233 CATOBJEXT=.gmo
23234 fi
23237 if test -n "$INTL_MACOSX_LIBS"; then
23238 if test "$gt_use_preinstalled_gnugettext" = "yes" \
23239 || test "$nls_cv_use_gnu_gettext" = "yes"; then
23240 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
23241 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
23242 fi
23243 fi
23245 if test "$gt_use_preinstalled_gnugettext" = "yes" \
23246 || test "$nls_cv_use_gnu_gettext" = "yes"; then
23248 cat >>confdefs.h <<\_ACEOF
23249 #define ENABLE_NLS 1
23250 _ACEOF
23252 else
23253 USE_NLS=no
23254 fi
23255 fi
23257 { $as_echo "$as_me:$LINENO: checking whether to use NLS" >&5
23258 $as_echo_n "checking whether to use NLS... " >&6; }
23259 { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
23260 $as_echo "$USE_NLS" >&6; }
23261 if test "$USE_NLS" = "yes"; then
23262 { $as_echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
23263 $as_echo_n "checking where the gettext function comes from... " >&6; }
23264 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23265 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
23266 gt_source="external libintl"
23267 else
23268 gt_source="libc"
23269 fi
23270 else
23271 gt_source="included intl directory"
23272 fi
23273 { $as_echo "$as_me:$LINENO: result: $gt_source" >&5
23274 $as_echo "$gt_source" >&6; }
23275 fi
23277 if test "$USE_NLS" = "yes"; then
23279 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23280 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
23281 { $as_echo "$as_me:$LINENO: checking how to link with libintl" >&5
23282 $as_echo_n "checking how to link with libintl... " >&6; }
23283 { $as_echo "$as_me:$LINENO: result: $LIBINTL" >&5
23284 $as_echo "$LIBINTL" >&6; }
23286 for element in $INCINTL; do
23287 haveit=
23288 for x in $CPPFLAGS; do
23290 acl_save_prefix="$prefix"
23291 prefix="$acl_final_prefix"
23292 acl_save_exec_prefix="$exec_prefix"
23293 exec_prefix="$acl_final_exec_prefix"
23294 eval x=\"$x\"
23295 exec_prefix="$acl_save_exec_prefix"
23296 prefix="$acl_save_prefix"
23298 if test "X$x" = "X$element"; then
23299 haveit=yes
23300 break
23301 fi
23302 done
23303 if test -z "$haveit"; then
23304 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
23305 fi
23306 done
23308 fi
23311 cat >>confdefs.h <<\_ACEOF
23312 #define HAVE_GETTEXT 1
23313 _ACEOF
23316 cat >>confdefs.h <<\_ACEOF
23317 #define HAVE_DCGETTEXT 1
23318 _ACEOF
23320 fi
23322 POSUB=po
23323 fi
23326 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
23327 BUILD_INCLUDED_LIBINTL=yes
23328 fi
23334 nls_cv_header_intl=
23335 nls_cv_header_libgt=
23337 DATADIRNAME=share
23340 INSTOBJEXT=.mo
23343 GENCAT=gencat
23346 INTLOBJS=
23347 if test "$USE_INCLUDED_LIBINTL" = yes; then
23348 INTLOBJS="\$(GETTOBJS)"
23349 fi
23352 INTL_LIBTOOL_SUFFIX_PREFIX=
23356 INTLLIBS="$LIBINTL"
23365 case $TERM in
23366 # for the most important terminal types we directly know the sequences
23367 xterm|xterm*|vt220|vt220*)
23368 T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
23369 T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
23370 ;;
23371 vt100|vt100*|cygwin)
23372 T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
23373 T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
23374 ;;
23375 *)
23376 T_MD=''
23377 T_ME=''
23378 ;;
23379 esac
23380 { $as_echo "$as_me:$LINENO: result: " >&5
23381 $as_echo "" >&6; }
23382 { $as_echo "$as_me:$LINENO: result: ${T_MD}IEEE Math Checks${T_ME}" >&5
23383 $as_echo "${T_MD}IEEE Math Checks${T_ME}" >&6; }
23388 for ac_func in fpclassify
23389 do
23390 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23391 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
23392 $as_echo_n "checking for $ac_func... " >&6; }
23393 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23394 $as_echo_n "(cached) " >&6
23395 else
23396 cat >conftest.$ac_ext <<_ACEOF
23397 /* confdefs.h. */
23398 _ACEOF
23399 cat confdefs.h >>conftest.$ac_ext
23400 cat >>conftest.$ac_ext <<_ACEOF
23401 /* end confdefs.h. */
23402 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23403 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23404 #define $ac_func innocuous_$ac_func
23406 /* System header to define __stub macros and hopefully few prototypes,
23407 which can conflict with char $ac_func (); below.
23408 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23409 <limits.h> exists even on freestanding compilers. */
23411 #ifdef __STDC__
23412 # include <limits.h>
23413 #else
23414 # include <assert.h>
23415 #endif
23417 #undef $ac_func
23419 /* Override any GCC internal prototype to avoid an error.
23420 Use char because int might match the return type of a GCC
23421 builtin and then its argument prototype would still apply. */
23422 #ifdef __cplusplus
23423 extern "C"
23424 #endif
23425 char $ac_func ();
23426 /* The GNU C library defines this for functions which it implements
23427 to always fail with ENOSYS. Some functions are actually named
23428 something starting with __ and the normal name is an alias. */
23429 #if defined __stub_$ac_func || defined __stub___$ac_func
23430 choke me
23431 #endif
23433 int
23434 main ()
23435 {
23436 return $ac_func ();
23437 ;
23438 return 0;
23439 }
23440 _ACEOF
23441 rm -f conftest.$ac_objext conftest$ac_exeext
23442 if { (ac_try="$ac_link"
23443 case "(($ac_try" in
23444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23445 *) ac_try_echo=$ac_try;;
23446 esac
23447 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23448 $as_echo "$ac_try_echo") >&5
23449 (eval "$ac_link") 2>conftest.er1
23450 ac_status=$?
23451 grep -v '^ *+' conftest.er1 >conftest.err
23452 rm -f conftest.er1
23453 cat conftest.err >&5
23454 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23455 (exit $ac_status); } && {
23456 test -z "$ac_c_werror_flag" ||
23457 test ! -s conftest.err
23458 } && test -s conftest$ac_exeext && {
23459 test "$cross_compiling" = yes ||
23460 $as_test_x conftest$ac_exeext
23461 }; then
23462 eval "$as_ac_var=yes"
23463 else
23464 $as_echo "$as_me: failed program was:" >&5
23465 sed 's/^/| /' conftest.$ac_ext >&5
23467 eval "$as_ac_var=no"
23468 fi
23470 rm -rf conftest.dSYM
23471 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23472 conftest$ac_exeext conftest.$ac_ext
23473 fi
23474 ac_res=`eval 'as_val=${'$as_ac_var'}
23475 $as_echo "$as_val"'`
23476 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23477 $as_echo "$ac_res" >&6; }
23478 as_val=`eval 'as_val=${'$as_ac_var'}
23479 $as_echo "$as_val"'`
23480 if test "x$as_val" = x""yes; then
23481 cat >>confdefs.h <<_ACEOF
23482 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23483 _ACEOF
23485 else
23486 { $as_echo "$as_me:$LINENO: checking for fpclassify with <math.h>" >&5
23487 $as_echo_n "checking for fpclassify with <math.h>... " >&6; }
23488 cat >conftest.$ac_ext <<_ACEOF
23489 /* confdefs.h. */
23490 _ACEOF
23491 cat confdefs.h >>conftest.$ac_ext
23492 cat >>conftest.$ac_ext <<_ACEOF
23493 /* end confdefs.h. */
23494 #include <math.h>
23495 volatile int x;volatile float f;
23496 int
23497 main ()
23498 {
23499 x = fpclassify(f)
23500 ;
23501 return 0;
23502 }
23503 _ACEOF
23504 rm -f conftest.$ac_objext conftest$ac_exeext
23505 if { (ac_try="$ac_link"
23506 case "(($ac_try" in
23507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23508 *) ac_try_echo=$ac_try;;
23509 esac
23510 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23511 $as_echo "$ac_try_echo") >&5
23512 (eval "$ac_link") 2>conftest.er1
23513 ac_status=$?
23514 grep -v '^ *+' conftest.er1 >conftest.err
23515 rm -f conftest.er1
23516 cat conftest.err >&5
23517 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23518 (exit $ac_status); } && {
23519 test -z "$ac_c_werror_flag" ||
23520 test ! -s conftest.err
23521 } && test -s conftest$ac_exeext && {
23522 test "$cross_compiling" = yes ||
23523 $as_test_x conftest$ac_exeext
23524 }; then
23525 { $as_echo "$as_me:$LINENO: result: yes" >&5
23526 $as_echo "yes" >&6; }
23527 cat >>confdefs.h <<\_ACEOF
23528 #define HAVE_FPCLASSIFY 1
23529 _ACEOF
23531 else
23532 $as_echo "$as_me: failed program was:" >&5
23533 sed 's/^/| /' conftest.$ac_ext >&5
23535 { $as_echo "$as_me:$LINENO: result: no" >&5
23536 $as_echo "no" >&6; }
23537 fi
23539 rm -rf conftest.dSYM
23540 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23541 conftest$ac_exeext conftest.$ac_ext
23542 fi
23543 done
23547 for ac_func in isinf
23548 do
23549 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23550 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
23551 $as_echo_n "checking for $ac_func... " >&6; }
23552 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23553 $as_echo_n "(cached) " >&6
23554 else
23555 cat >conftest.$ac_ext <<_ACEOF
23556 /* confdefs.h. */
23557 _ACEOF
23558 cat confdefs.h >>conftest.$ac_ext
23559 cat >>conftest.$ac_ext <<_ACEOF
23560 /* end confdefs.h. */
23561 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23562 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23563 #define $ac_func innocuous_$ac_func
23565 /* System header to define __stub macros and hopefully few prototypes,
23566 which can conflict with char $ac_func (); below.
23567 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23568 <limits.h> exists even on freestanding compilers. */
23570 #ifdef __STDC__
23571 # include <limits.h>
23572 #else
23573 # include <assert.h>
23574 #endif
23576 #undef $ac_func
23578 /* Override any GCC internal prototype to avoid an error.
23579 Use char because int might match the return type of a GCC
23580 builtin and then its argument prototype would still apply. */
23581 #ifdef __cplusplus
23582 extern "C"
23583 #endif
23584 char $ac_func ();
23585 /* The GNU C library defines this for functions which it implements
23586 to always fail with ENOSYS. Some functions are actually named
23587 something starting with __ and the normal name is an alias. */
23588 #if defined __stub_$ac_func || defined __stub___$ac_func
23589 choke me
23590 #endif
23592 int
23593 main ()
23594 {
23595 return $ac_func ();
23596 ;
23597 return 0;
23598 }
23599 _ACEOF
23600 rm -f conftest.$ac_objext conftest$ac_exeext
23601 if { (ac_try="$ac_link"
23602 case "(($ac_try" in
23603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23604 *) ac_try_echo=$ac_try;;
23605 esac
23606 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23607 $as_echo "$ac_try_echo") >&5
23608 (eval "$ac_link") 2>conftest.er1
23609 ac_status=$?
23610 grep -v '^ *+' conftest.er1 >conftest.err
23611 rm -f conftest.er1
23612 cat conftest.err >&5
23613 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23614 (exit $ac_status); } && {
23615 test -z "$ac_c_werror_flag" ||
23616 test ! -s conftest.err
23617 } && test -s conftest$ac_exeext && {
23618 test "$cross_compiling" = yes ||
23619 $as_test_x conftest$ac_exeext
23620 }; then
23621 eval "$as_ac_var=yes"
23622 else
23623 $as_echo "$as_me: failed program was:" >&5
23624 sed 's/^/| /' conftest.$ac_ext >&5
23626 eval "$as_ac_var=no"
23627 fi
23629 rm -rf conftest.dSYM
23630 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23631 conftest$ac_exeext conftest.$ac_ext
23632 fi
23633 ac_res=`eval 'as_val=${'$as_ac_var'}
23634 $as_echo "$as_val"'`
23635 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23636 $as_echo "$ac_res" >&6; }
23637 as_val=`eval 'as_val=${'$as_ac_var'}
23638 $as_echo "$as_val"'`
23639 if test "x$as_val" = x""yes; then
23640 cat >>confdefs.h <<_ACEOF
23641 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23642 _ACEOF
23644 else
23645 { $as_echo "$as_me:$LINENO: checking for isinf with <math.h>" >&5
23646 $as_echo_n "checking for isinf with <math.h>... " >&6; }
23647 cat >conftest.$ac_ext <<_ACEOF
23648 /* confdefs.h. */
23649 _ACEOF
23650 cat confdefs.h >>conftest.$ac_ext
23651 cat >>conftest.$ac_ext <<_ACEOF
23652 /* end confdefs.h. */
23653 #include <math.h>
23654 volatile int x;volatile float f;
23655 int
23656 main ()
23657 {
23658 x = isinf(f)
23659 ;
23660 return 0;
23661 }
23662 _ACEOF
23663 rm -f conftest.$ac_objext conftest$ac_exeext
23664 if { (ac_try="$ac_link"
23665 case "(($ac_try" in
23666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23667 *) ac_try_echo=$ac_try;;
23668 esac
23669 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23670 $as_echo "$ac_try_echo") >&5
23671 (eval "$ac_link") 2>conftest.er1
23672 ac_status=$?
23673 grep -v '^ *+' conftest.er1 >conftest.err
23674 rm -f conftest.er1
23675 cat conftest.err >&5
23676 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23677 (exit $ac_status); } && {
23678 test -z "$ac_c_werror_flag" ||
23679 test ! -s conftest.err
23680 } && test -s conftest$ac_exeext && {
23681 test "$cross_compiling" = yes ||
23682 $as_test_x conftest$ac_exeext
23683 }; then
23684 { $as_echo "$as_me:$LINENO: result: yes" >&5
23685 $as_echo "yes" >&6; }
23686 cat >>confdefs.h <<\_ACEOF
23687 #define HAVE_ISINF 1
23688 _ACEOF
23690 else
23691 $as_echo "$as_me: failed program was:" >&5
23692 sed 's/^/| /' conftest.$ac_ext >&5
23694 { $as_echo "$as_me:$LINENO: result: no" >&5
23695 $as_echo "no" >&6; }
23696 fi
23698 rm -rf conftest.dSYM
23699 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23700 conftest$ac_exeext conftest.$ac_ext
23701 fi
23702 done
23705 { $as_echo "$as_me:$LINENO: checking whether isfinite is broken" >&5
23706 $as_echo_n "checking whether isfinite is broken... " >&6; }
23707 if test "${ac_cv_have_broken_isfinite+set}" = set; then
23708 $as_echo_n "(cached) " >&6
23709 else
23711 if test "$cross_compiling" = yes; then
23713 case "${target}" in
23714 hppa*-*-hpux*) ac_cv_have_broken_isfinite=yes ;;
23715 *-solaris2.8) ac_cv_have_broken_isfinite=yes ;;
23716 *-solaris2.9) ac_cv_have_broken_isfinite=yes ;;
23717 *) ac_cv_have_broken_isfinite=no ;;
23718 esac
23719 else
23720 cat >conftest.$ac_ext <<_ACEOF
23721 /* confdefs.h. */
23722 _ACEOF
23723 cat confdefs.h >>conftest.$ac_ext
23724 cat >>conftest.$ac_ext <<_ACEOF
23725 /* end confdefs.h. */
23727 #ifdef HAVE_MATH_H
23728 #include <math.h>
23729 #endif
23730 #ifdef HAVE_FLOAT_H
23731 #include <float.h>
23732 #endif
23733 int main ()
23734 {
23735 #ifdef isfinite
23736 #ifdef LDBL_MAX
23737 if (!isfinite(LDBL_MAX)) return 1;
23738 #endif
23739 #ifdef DBL_MAX
23740 if (!isfinite(DBL_MAX)) return 1;
23741 #endif
23742 #endif
23743 return 0;
23744 }
23745 _ACEOF
23746 rm -f conftest$ac_exeext
23747 if { (ac_try="$ac_link"
23748 case "(($ac_try" in
23749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23750 *) ac_try_echo=$ac_try;;
23751 esac
23752 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23753 $as_echo "$ac_try_echo") >&5
23754 (eval "$ac_link") 2>&5
23755 ac_status=$?
23756 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23757 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23758 { (case "(($ac_try" in
23759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23760 *) ac_try_echo=$ac_try;;
23761 esac
23762 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23763 $as_echo "$ac_try_echo") >&5
23764 (eval "$ac_try") 2>&5
23765 ac_status=$?
23766 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23767 (exit $ac_status); }; }; then
23768 ac_cv_have_broken_isfinite=no
23769 else
23770 $as_echo "$as_me: program exited with status $ac_status" >&5
23771 $as_echo "$as_me: failed program was:" >&5
23772 sed 's/^/| /' conftest.$ac_ext >&5
23774 ( exit $ac_status )
23775 ac_cv_have_broken_isfinite=yes
23776 fi
23777 rm -rf conftest.dSYM
23778 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23779 fi
23783 fi
23784 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_broken_isfinite" >&5
23785 $as_echo "$ac_cv_have_broken_isfinite" >&6; }
23787 case "${target}" in
23788 *-solaris2.8) ac_cv_have_broken_isfinite=yes ;;
23789 *-solaris2.9) ac_cv_have_broken_isfinite=yes ;;
23790 esac
23792 if test "x$ac_cv_have_broken_isfinite" = "xno"; then
23793 cat >>confdefs.h <<\_ACEOF
23794 #define HAVE_ISFINITE 1
23795 _ACEOF
23797 else
23799 for ac_func in finite
23800 do
23801 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23802 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
23803 $as_echo_n "checking for $ac_func... " >&6; }
23804 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23805 $as_echo_n "(cached) " >&6
23806 else
23807 cat >conftest.$ac_ext <<_ACEOF
23808 /* confdefs.h. */
23809 _ACEOF
23810 cat confdefs.h >>conftest.$ac_ext
23811 cat >>conftest.$ac_ext <<_ACEOF
23812 /* end confdefs.h. */
23813 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23814 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23815 #define $ac_func innocuous_$ac_func
23817 /* System header to define __stub macros and hopefully few prototypes,
23818 which can conflict with char $ac_func (); below.
23819 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23820 <limits.h> exists even on freestanding compilers. */
23822 #ifdef __STDC__
23823 # include <limits.h>
23824 #else
23825 # include <assert.h>
23826 #endif
23828 #undef $ac_func
23830 /* Override any GCC internal prototype to avoid an error.
23831 Use char because int might match the return type of a GCC
23832 builtin and then its argument prototype would still apply. */
23833 #ifdef __cplusplus
23834 extern "C"
23835 #endif
23836 char $ac_func ();
23837 /* The GNU C library defines this for functions which it implements
23838 to always fail with ENOSYS. Some functions are actually named
23839 something starting with __ and the normal name is an alias. */
23840 #if defined __stub_$ac_func || defined __stub___$ac_func
23841 choke me
23842 #endif
23844 int
23845 main ()
23846 {
23847 return $ac_func ();
23848 ;
23849 return 0;
23850 }
23851 _ACEOF
23852 rm -f conftest.$ac_objext conftest$ac_exeext
23853 if { (ac_try="$ac_link"
23854 case "(($ac_try" in
23855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23856 *) ac_try_echo=$ac_try;;
23857 esac
23858 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23859 $as_echo "$ac_try_echo") >&5
23860 (eval "$ac_link") 2>conftest.er1
23861 ac_status=$?
23862 grep -v '^ *+' conftest.er1 >conftest.err
23863 rm -f conftest.er1
23864 cat conftest.err >&5
23865 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23866 (exit $ac_status); } && {
23867 test -z "$ac_c_werror_flag" ||
23868 test ! -s conftest.err
23869 } && test -s conftest$ac_exeext && {
23870 test "$cross_compiling" = yes ||
23871 $as_test_x conftest$ac_exeext
23872 }; then
23873 eval "$as_ac_var=yes"
23874 else
23875 $as_echo "$as_me: failed program was:" >&5
23876 sed 's/^/| /' conftest.$ac_ext >&5
23878 eval "$as_ac_var=no"
23879 fi
23881 rm -rf conftest.dSYM
23882 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23883 conftest$ac_exeext conftest.$ac_ext
23884 fi
23885 ac_res=`eval 'as_val=${'$as_ac_var'}
23886 $as_echo "$as_val"'`
23887 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23888 $as_echo "$ac_res" >&6; }
23889 as_val=`eval 'as_val=${'$as_ac_var'}
23890 $as_echo "$as_val"'`
23891 if test "x$as_val" = x""yes; then
23892 cat >>confdefs.h <<_ACEOF
23893 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23894 _ACEOF
23896 else
23898 for ac_func in isfinite
23899 do
23900 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23901 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
23902 $as_echo_n "checking for $ac_func... " >&6; }
23903 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23904 $as_echo_n "(cached) " >&6
23905 else
23906 cat >conftest.$ac_ext <<_ACEOF
23907 /* confdefs.h. */
23908 _ACEOF
23909 cat confdefs.h >>conftest.$ac_ext
23910 cat >>conftest.$ac_ext <<_ACEOF
23911 /* end confdefs.h. */
23912 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23913 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23914 #define $ac_func innocuous_$ac_func
23916 /* System header to define __stub macros and hopefully few prototypes,
23917 which can conflict with char $ac_func (); below.
23918 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23919 <limits.h> exists even on freestanding compilers. */
23921 #ifdef __STDC__
23922 # include <limits.h>
23923 #else
23924 # include <assert.h>
23925 #endif
23927 #undef $ac_func
23929 /* Override any GCC internal prototype to avoid an error.
23930 Use char because int might match the return type of a GCC
23931 builtin and then its argument prototype would still apply. */
23932 #ifdef __cplusplus
23933 extern "C"
23934 #endif
23935 char $ac_func ();
23936 /* The GNU C library defines this for functions which it implements
23937 to always fail with ENOSYS. Some functions are actually named
23938 something starting with __ and the normal name is an alias. */
23939 #if defined __stub_$ac_func || defined __stub___$ac_func
23940 choke me
23941 #endif
23943 int
23944 main ()
23945 {
23946 return $ac_func ();
23947 ;
23948 return 0;
23949 }
23950 _ACEOF
23951 rm -f conftest.$ac_objext conftest$ac_exeext
23952 if { (ac_try="$ac_link"
23953 case "(($ac_try" in
23954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23955 *) ac_try_echo=$ac_try;;
23956 esac
23957 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23958 $as_echo "$ac_try_echo") >&5
23959 (eval "$ac_link") 2>conftest.er1
23960 ac_status=$?
23961 grep -v '^ *+' conftest.er1 >conftest.err
23962 rm -f conftest.er1
23963 cat conftest.err >&5
23964 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23965 (exit $ac_status); } && {
23966 test -z "$ac_c_werror_flag" ||
23967 test ! -s conftest.err
23968 } && test -s conftest$ac_exeext && {
23969 test "$cross_compiling" = yes ||
23970 $as_test_x conftest$ac_exeext
23971 }; then
23972 eval "$as_ac_var=yes"
23973 else
23974 $as_echo "$as_me: failed program was:" >&5
23975 sed 's/^/| /' conftest.$ac_ext >&5
23977 eval "$as_ac_var=no"
23978 fi
23980 rm -rf conftest.dSYM
23981 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23982 conftest$ac_exeext conftest.$ac_ext
23983 fi
23984 ac_res=`eval 'as_val=${'$as_ac_var'}
23985 $as_echo "$as_val"'`
23986 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23987 $as_echo "$ac_res" >&6; }
23988 as_val=`eval 'as_val=${'$as_ac_var'}
23989 $as_echo "$as_val"'`
23990 if test "x$as_val" = x""yes; then
23991 cat >>confdefs.h <<_ACEOF
23992 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23993 _ACEOF
23995 else
23996 { $as_echo "$as_me:$LINENO: checking for isfinite with <math.h>" >&5
23997 $as_echo_n "checking for isfinite with <math.h>... " >&6; }
23998 cat >conftest.$ac_ext <<_ACEOF
23999 /* confdefs.h. */
24000 _ACEOF
24001 cat confdefs.h >>conftest.$ac_ext
24002 cat >>conftest.$ac_ext <<_ACEOF
24003 /* end confdefs.h. */
24004 #include <math.h>
24005 volatile int x;volatile float f;
24006 int
24007 main ()
24008 {
24009 x = isfinite(f)
24010 ;
24011 return 0;
24012 }
24013 _ACEOF
24014 rm -f conftest.$ac_objext conftest$ac_exeext
24015 if { (ac_try="$ac_link"
24016 case "(($ac_try" in
24017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24018 *) ac_try_echo=$ac_try;;
24019 esac
24020 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24021 $as_echo "$ac_try_echo") >&5
24022 (eval "$ac_link") 2>conftest.er1
24023 ac_status=$?
24024 grep -v '^ *+' conftest.er1 >conftest.err
24025 rm -f conftest.er1
24026 cat conftest.err >&5
24027 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24028 (exit $ac_status); } && {
24029 test -z "$ac_c_werror_flag" ||
24030 test ! -s conftest.err
24031 } && test -s conftest$ac_exeext && {
24032 test "$cross_compiling" = yes ||
24033 $as_test_x conftest$ac_exeext
24034 }; then
24035 { $as_echo "$as_me:$LINENO: result: yes" >&5
24036 $as_echo "yes" >&6; }
24037 cat >>confdefs.h <<\_ACEOF
24038 #define HAVE_ISFINITE 1
24039 _ACEOF
24041 else
24042 $as_echo "$as_me: failed program was:" >&5
24043 sed 's/^/| /' conftest.$ac_ext >&5
24045 { $as_echo "$as_me:$LINENO: result: no" >&5
24046 $as_echo "no" >&6; }
24047 fi
24049 rm -rf conftest.dSYM
24050 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24051 conftest$ac_exeext conftest.$ac_ext
24052 fi
24053 done
24055 fi
24056 done
24058 fi
24061 ac_ext=c
24062 ac_cpp='$CPP $CPPFLAGS'
24063 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24064 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24065 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24067 _cflags=${CFLAGS}
24069 { $as_echo "$as_me:$LINENO: checking if IEEE math works out of the box" >&5
24070 $as_echo_n "checking if IEEE math works out of the box... " >&6; }
24071 if test "${rd_cv_ieee_works+set}" = set; then
24072 $as_echo_n "(cached) " >&6
24073 else
24074 if test "$cross_compiling" = yes; then
24075 :
24076 else
24077 cat >conftest.$ac_ext <<_ACEOF
24078 /* confdefs.h. */
24079 _ACEOF
24080 cat confdefs.h >>conftest.$ac_ext
24081 cat >>conftest.$ac_ext <<_ACEOF
24082 /* end confdefs.h. */
24085 #if HAVE_MATH_H
24086 # include <math.h>
24087 #endif
24089 #if HAVE_FLOAT_H
24090 # include <float.h>
24091 #endif
24093 #if HAVE_IEEEFP_H
24094 # include <ieeefp.h>
24095 #endif
24097 #if HAVE_FP_CLASS_H
24098 # include <fp_class.h>
24099 #endif
24101 /* Solaris */
24102 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS))
24103 # define HAVE_ISINF 1
24104 # define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF)
24105 #endif
24107 /* solaris 10 it defines isnan such that only forte can compile it ... bad bad */
24108 #if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS) && defined(FP_SNAN) && defined(FP_QNAN))
24109 # undef isnan
24110 # define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN)
24111 #endif
24113 /* Digital UNIX */
24114 #if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H) && defined(FP_NEG_INF) && defined( FP_POS_INF) )
24115 # define HAVE_ISINF 1
24116 # define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
24117 #endif
24119 /* AIX */
24120 #if (! defined(HAVE_ISINF) && defined(HAVE_CLASS))
24121 # define HAVE_ISINF 1
24122 # define isinf(a) (class(a) == FP_MINUS_INF || class(a) == FP_PLUS_INF)
24123 #endif
24125 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_PLUS_INF) && defined(FP_MINUS_INF))
24126 # define HAVE_ISINF 1
24127 # define isinf(a) (fpclassify(a) == FP_MINUS_INF || fpclassify(a) == FP_PLUS_INF)
24128 #endif
24130 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_INFINITE))
24131 # define HAVE_ISINF 1
24132 # define isinf(a) (fpclassify(a) == FP_INFINITE)
24133 #endif
24135 #if HAVE_MATH_H
24136 #include <math.h>
24137 #endif
24139 #include <stdio.h>
24140 int main(void){
24141 double rrdnan,rrdinf,rrdc,rrdzero;
24142 ;
24143 /* some math to see if we get a floating point exception */
24144 rrdzero=sin(0.0); /* don't let the compiler optimize us away */
24145 rrdnan=0.0/rrdzero; /* especially here */
24146 rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
24147 /* at run time without sig fpe */
24148 rrdc = rrdinf + rrdnan;
24149 rrdc = rrdinf / rrdnan;
24150 if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
24151 if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
24152 if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
24153 if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
24154 if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
24155 if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
24156 return 0;
24157 }
24158 _ACEOF
24159 rm -f conftest$ac_exeext
24160 if { (ac_try="$ac_link"
24161 case "(($ac_try" in
24162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24163 *) ac_try_echo=$ac_try;;
24164 esac
24165 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24166 $as_echo "$ac_try_echo") >&5
24167 (eval "$ac_link") 2>&5
24168 ac_status=$?
24169 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24170 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24171 { (case "(($ac_try" in
24172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24173 *) ac_try_echo=$ac_try;;
24174 esac
24175 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24176 $as_echo "$ac_try_echo") >&5
24177 (eval "$ac_try") 2>&5
24178 ac_status=$?
24179 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24180 (exit $ac_status); }; }; then
24181 rd_cv_ieee_works=yes
24182 else
24183 $as_echo "$as_me: program exited with status $ac_status" >&5
24184 $as_echo "$as_me: failed program was:" >&5
24185 sed 's/^/| /' conftest.$ac_ext >&5
24187 ( exit $ac_status )
24188 rd_cv_ieee_works=no
24189 fi
24190 rm -rf conftest.dSYM
24191 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24192 fi
24195 fi
24197 if test x${rd_cv_ieee_works} = "xyes"; then
24198 { $as_echo "$as_me:$LINENO: result: yes" >&5
24199 $as_echo "yes" >&6; }
24201 else
24202 { $as_echo "$as_me:$LINENO: result: no" >&5
24203 $as_echo "no" >&6; }
24204 CFLAGS="$_cflags -ieee"
24206 { $as_echo "$as_me:$LINENO: checking if IEEE math works with the -ieee switch" >&5
24207 $as_echo_n "checking if IEEE math works with the -ieee switch... " >&6; }
24208 if test "${rd_cv_ieee_switch+set}" = set; then
24209 $as_echo_n "(cached) " >&6
24210 else
24211 if test "$cross_compiling" = yes; then
24212 :
24213 else
24214 cat >conftest.$ac_ext <<_ACEOF
24215 /* confdefs.h. */
24216 _ACEOF
24217 cat confdefs.h >>conftest.$ac_ext
24218 cat >>conftest.$ac_ext <<_ACEOF
24219 /* end confdefs.h. */
24222 #if HAVE_MATH_H
24223 # include <math.h>
24224 #endif
24226 #if HAVE_FLOAT_H
24227 # include <float.h>
24228 #endif
24230 #if HAVE_IEEEFP_H
24231 # include <ieeefp.h>
24232 #endif
24234 #if HAVE_FP_CLASS_H
24235 # include <fp_class.h>
24236 #endif
24238 /* Solaris */
24239 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS))
24240 # define HAVE_ISINF 1
24241 # define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF)
24242 #endif
24244 /* solaris 10 it defines isnan such that only forte can compile it ... bad bad */
24245 #if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS) && defined(FP_SNAN) && defined(FP_QNAN))
24246 # undef isnan
24247 # define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN)
24248 #endif
24250 /* Digital UNIX */
24251 #if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H) && defined(FP_NEG_INF) && defined( FP_POS_INF) )
24252 # define HAVE_ISINF 1
24253 # define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
24254 #endif
24256 /* AIX */
24257 #if (! defined(HAVE_ISINF) && defined(HAVE_CLASS))
24258 # define HAVE_ISINF 1
24259 # define isinf(a) (class(a) == FP_MINUS_INF || class(a) == FP_PLUS_INF)
24260 #endif
24262 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_PLUS_INF) && defined(FP_MINUS_INF))
24263 # define HAVE_ISINF 1
24264 # define isinf(a) (fpclassify(a) == FP_MINUS_INF || fpclassify(a) == FP_PLUS_INF)
24265 #endif
24267 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_INFINITE))
24268 # define HAVE_ISINF 1
24269 # define isinf(a) (fpclassify(a) == FP_INFINITE)
24270 #endif
24272 #if HAVE_MATH_H
24273 #include <math.h>
24274 #endif
24276 #include <stdio.h>
24277 int main(void){
24278 double rrdnan,rrdinf,rrdc,rrdzero;
24279 ;
24280 /* some math to see if we get a floating point exception */
24281 rrdzero=sin(0.0); /* don't let the compiler optimize us away */
24282 rrdnan=0.0/rrdzero; /* especially here */
24283 rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
24284 /* at run time without sig fpe */
24285 rrdc = rrdinf + rrdnan;
24286 rrdc = rrdinf / rrdnan;
24287 if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
24288 if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
24289 if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
24290 if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
24291 if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
24292 if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
24293 return 0;
24294 }
24295 _ACEOF
24296 rm -f conftest$ac_exeext
24297 if { (ac_try="$ac_link"
24298 case "(($ac_try" in
24299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24300 *) ac_try_echo=$ac_try;;
24301 esac
24302 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24303 $as_echo "$ac_try_echo") >&5
24304 (eval "$ac_link") 2>&5
24305 ac_status=$?
24306 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24307 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24308 { (case "(($ac_try" in
24309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24310 *) ac_try_echo=$ac_try;;
24311 esac
24312 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24313 $as_echo "$ac_try_echo") >&5
24314 (eval "$ac_try") 2>&5
24315 ac_status=$?
24316 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24317 (exit $ac_status); }; }; then
24318 rd_cv_ieee_switch=yes
24319 else
24320 $as_echo "$as_me: program exited with status $ac_status" >&5
24321 $as_echo "$as_me: failed program was:" >&5
24322 sed 's/^/| /' conftest.$ac_ext >&5
24324 ( exit $ac_status )
24325 rd_cv_ieee_switch=no
24326 fi
24327 rm -rf conftest.dSYM
24328 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24329 fi
24332 fi
24334 if test x${rd_cv_ieee_switch} = "xyes"; then
24335 { $as_echo "$as_me:$LINENO: result: yes" >&5
24336 $as_echo "yes" >&6; }
24338 else
24339 { $as_echo "$as_me:$LINENO: result: no" >&5
24340 $as_echo "no" >&6; }
24341 CFLAGS="$_cflags -qfloat=nofold"
24343 { $as_echo "$as_me:$LINENO: checking if IEEE math works with the -qfloat=nofold switch" >&5
24344 $as_echo_n "checking if IEEE math works with the -qfloat=nofold switch... " >&6; }
24345 if test "${rd_cv_ieee_nofold+set}" = set; then
24346 $as_echo_n "(cached) " >&6
24347 else
24348 if test "$cross_compiling" = yes; then
24349 :
24350 else
24351 cat >conftest.$ac_ext <<_ACEOF
24352 /* confdefs.h. */
24353 _ACEOF
24354 cat confdefs.h >>conftest.$ac_ext
24355 cat >>conftest.$ac_ext <<_ACEOF
24356 /* end confdefs.h. */
24359 #if HAVE_MATH_H
24360 # include <math.h>
24361 #endif
24363 #if HAVE_FLOAT_H
24364 # include <float.h>
24365 #endif
24367 #if HAVE_IEEEFP_H
24368 # include <ieeefp.h>
24369 #endif
24371 #if HAVE_FP_CLASS_H
24372 # include <fp_class.h>
24373 #endif
24375 /* Solaris */
24376 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS))
24377 # define HAVE_ISINF 1
24378 # define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF)
24379 #endif
24381 /* solaris 10 it defines isnan such that only forte can compile it ... bad bad */
24382 #if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS) && defined(FP_SNAN) && defined(FP_QNAN))
24383 # undef isnan
24384 # define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN)
24385 #endif
24387 /* Digital UNIX */
24388 #if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H) && defined(FP_NEG_INF) && defined( FP_POS_INF) )
24389 # define HAVE_ISINF 1
24390 # define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
24391 #endif
24393 /* AIX */
24394 #if (! defined(HAVE_ISINF) && defined(HAVE_CLASS))
24395 # define HAVE_ISINF 1
24396 # define isinf(a) (class(a) == FP_MINUS_INF || class(a) == FP_PLUS_INF)
24397 #endif
24399 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_PLUS_INF) && defined(FP_MINUS_INF))
24400 # define HAVE_ISINF 1
24401 # define isinf(a) (fpclassify(a) == FP_MINUS_INF || fpclassify(a) == FP_PLUS_INF)
24402 #endif
24404 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_INFINITE))
24405 # define HAVE_ISINF 1
24406 # define isinf(a) (fpclassify(a) == FP_INFINITE)
24407 #endif
24409 #if HAVE_MATH_H
24410 #include <math.h>
24411 #endif
24413 #include <stdio.h>
24414 int main(void){
24415 double rrdnan,rrdinf,rrdc,rrdzero;
24416 ;
24417 /* some math to see if we get a floating point exception */
24418 rrdzero=sin(0.0); /* don't let the compiler optimize us away */
24419 rrdnan=0.0/rrdzero; /* especially here */
24420 rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
24421 /* at run time without sig fpe */
24422 rrdc = rrdinf + rrdnan;
24423 rrdc = rrdinf / rrdnan;
24424 if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
24425 if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
24426 if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
24427 if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
24428 if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
24429 if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
24430 return 0;
24431 }
24432 _ACEOF
24433 rm -f conftest$ac_exeext
24434 if { (ac_try="$ac_link"
24435 case "(($ac_try" in
24436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24437 *) ac_try_echo=$ac_try;;
24438 esac
24439 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24440 $as_echo "$ac_try_echo") >&5
24441 (eval "$ac_link") 2>&5
24442 ac_status=$?
24443 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24444 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24445 { (case "(($ac_try" in
24446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24447 *) ac_try_echo=$ac_try;;
24448 esac
24449 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24450 $as_echo "$ac_try_echo") >&5
24451 (eval "$ac_try") 2>&5
24452 ac_status=$?
24453 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24454 (exit $ac_status); }; }; then
24455 rd_cv_ieee_nofold=yes
24456 else
24457 $as_echo "$as_me: program exited with status $ac_status" >&5
24458 $as_echo "$as_me: failed program was:" >&5
24459 sed 's/^/| /' conftest.$ac_ext >&5
24461 ( exit $ac_status )
24462 rd_cv_ieee_nofold=no
24463 fi
24464 rm -rf conftest.dSYM
24465 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24466 fi
24469 fi
24471 if test x${rd_cv_ieee_nofold} = "xyes"; then
24472 { $as_echo "$as_me:$LINENO: result: yes" >&5
24473 $as_echo "yes" >&6; }
24475 else
24476 { $as_echo "$as_me:$LINENO: result: no" >&5
24477 $as_echo "no" >&6; }
24478 CFLAGS="$_cflags -w -qflttrap=enable:zerodivide"
24480 { $as_echo "$as_me:$LINENO: checking if IEEE math works with the -w -qflttrap=enable:zerodivide" >&5
24481 $as_echo_n "checking if IEEE math works with the -w -qflttrap=enable:zerodivide... " >&6; }
24482 if test "${rd_cv_ieee_flttrap+set}" = set; then
24483 $as_echo_n "(cached) " >&6
24484 else
24485 if test "$cross_compiling" = yes; then
24486 :
24487 else
24488 cat >conftest.$ac_ext <<_ACEOF
24489 /* confdefs.h. */
24490 _ACEOF
24491 cat confdefs.h >>conftest.$ac_ext
24492 cat >>conftest.$ac_ext <<_ACEOF
24493 /* end confdefs.h. */
24496 #if HAVE_MATH_H
24497 # include <math.h>
24498 #endif
24500 #if HAVE_FLOAT_H
24501 # include <float.h>
24502 #endif
24504 #if HAVE_IEEEFP_H
24505 # include <ieeefp.h>
24506 #endif
24508 #if HAVE_FP_CLASS_H
24509 # include <fp_class.h>
24510 #endif
24512 /* Solaris */
24513 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS))
24514 # define HAVE_ISINF 1
24515 # define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF)
24516 #endif
24518 /* solaris 10 it defines isnan such that only forte can compile it ... bad bad */
24519 #if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS) && defined(FP_SNAN) && defined(FP_QNAN))
24520 # undef isnan
24521 # define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN)
24522 #endif
24524 /* Digital UNIX */
24525 #if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H) && defined(FP_NEG_INF) && defined( FP_POS_INF) )
24526 # define HAVE_ISINF 1
24527 # define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
24528 #endif
24530 /* AIX */
24531 #if (! defined(HAVE_ISINF) && defined(HAVE_CLASS))
24532 # define HAVE_ISINF 1
24533 # define isinf(a) (class(a) == FP_MINUS_INF || class(a) == FP_PLUS_INF)
24534 #endif
24536 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_PLUS_INF) && defined(FP_MINUS_INF))
24537 # define HAVE_ISINF 1
24538 # define isinf(a) (fpclassify(a) == FP_MINUS_INF || fpclassify(a) == FP_PLUS_INF)
24539 #endif
24541 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_INFINITE))
24542 # define HAVE_ISINF 1
24543 # define isinf(a) (fpclassify(a) == FP_INFINITE)
24544 #endif
24546 #if HAVE_MATH_H
24547 #include <math.h>
24548 #endif
24550 #include <stdio.h>
24551 int main(void){
24552 double rrdnan,rrdinf,rrdc,rrdzero;
24553 ;
24554 /* some math to see if we get a floating point exception */
24555 rrdzero=sin(0.0); /* don't let the compiler optimize us away */
24556 rrdnan=0.0/rrdzero; /* especially here */
24557 rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
24558 /* at run time without sig fpe */
24559 rrdc = rrdinf + rrdnan;
24560 rrdc = rrdinf / rrdnan;
24561 if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
24562 if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
24563 if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
24564 if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
24565 if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
24566 if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
24567 return 0;
24568 }
24569 _ACEOF
24570 rm -f conftest$ac_exeext
24571 if { (ac_try="$ac_link"
24572 case "(($ac_try" in
24573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24574 *) ac_try_echo=$ac_try;;
24575 esac
24576 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24577 $as_echo "$ac_try_echo") >&5
24578 (eval "$ac_link") 2>&5
24579 ac_status=$?
24580 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24581 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24582 { (case "(($ac_try" in
24583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24584 *) ac_try_echo=$ac_try;;
24585 esac
24586 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24587 $as_echo "$ac_try_echo") >&5
24588 (eval "$ac_try") 2>&5
24589 ac_status=$?
24590 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24591 (exit $ac_status); }; }; then
24592 rd_cv_ieee_flttrap=yes
24593 else
24594 $as_echo "$as_me: program exited with status $ac_status" >&5
24595 $as_echo "$as_me: failed program was:" >&5
24596 sed 's/^/| /' conftest.$ac_ext >&5
24598 ( exit $ac_status )
24599 rd_cv_ieee_flttrap=no
24600 fi
24601 rm -rf conftest.dSYM
24602 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24603 fi
24606 fi
24608 if test x${rd_cv_ieee_flttrap} = "xyes"; then
24609 { $as_echo "$as_me:$LINENO: result: yes" >&5
24610 $as_echo "yes" >&6; }
24612 else
24613 { $as_echo "$as_me:$LINENO: result: no" >&5
24614 $as_echo "no" >&6; }
24615 CFLAGS="$_cflags -mieee"
24617 { $as_echo "$as_me:$LINENO: checking if IEEE math works with the -mieee switch" >&5
24618 $as_echo_n "checking if IEEE math works with the -mieee switch... " >&6; }
24619 if test "${rd_cv_ieee_mswitch+set}" = set; then
24620 $as_echo_n "(cached) " >&6
24621 else
24622 if test "$cross_compiling" = yes; then
24623 :
24624 else
24625 cat >conftest.$ac_ext <<_ACEOF
24626 /* confdefs.h. */
24627 _ACEOF
24628 cat confdefs.h >>conftest.$ac_ext
24629 cat >>conftest.$ac_ext <<_ACEOF
24630 /* end confdefs.h. */
24633 #if HAVE_MATH_H
24634 # include <math.h>
24635 #endif
24637 #if HAVE_FLOAT_H
24638 # include <float.h>
24639 #endif
24641 #if HAVE_IEEEFP_H
24642 # include <ieeefp.h>
24643 #endif
24645 #if HAVE_FP_CLASS_H
24646 # include <fp_class.h>
24647 #endif
24649 /* Solaris */
24650 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS))
24651 # define HAVE_ISINF 1
24652 # define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF)
24653 #endif
24655 /* solaris 10 it defines isnan such that only forte can compile it ... bad bad */
24656 #if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS) && defined(FP_SNAN) && defined(FP_QNAN))
24657 # undef isnan
24658 # define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN)
24659 #endif
24661 /* Digital UNIX */
24662 #if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H) && defined(FP_NEG_INF) && defined( FP_POS_INF) )
24663 # define HAVE_ISINF 1
24664 # define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
24665 #endif
24667 /* AIX */
24668 #if (! defined(HAVE_ISINF) && defined(HAVE_CLASS))
24669 # define HAVE_ISINF 1
24670 # define isinf(a) (class(a) == FP_MINUS_INF || class(a) == FP_PLUS_INF)
24671 #endif
24673 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_PLUS_INF) && defined(FP_MINUS_INF))
24674 # define HAVE_ISINF 1
24675 # define isinf(a) (fpclassify(a) == FP_MINUS_INF || fpclassify(a) == FP_PLUS_INF)
24676 #endif
24678 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_INFINITE))
24679 # define HAVE_ISINF 1
24680 # define isinf(a) (fpclassify(a) == FP_INFINITE)
24681 #endif
24683 #if HAVE_MATH_H
24684 #include <math.h>
24685 #endif
24687 #include <stdio.h>
24688 int main(void){
24689 double rrdnan,rrdinf,rrdc,rrdzero;
24690 ;
24691 /* some math to see if we get a floating point exception */
24692 rrdzero=sin(0.0); /* don't let the compiler optimize us away */
24693 rrdnan=0.0/rrdzero; /* especially here */
24694 rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
24695 /* at run time without sig fpe */
24696 rrdc = rrdinf + rrdnan;
24697 rrdc = rrdinf / rrdnan;
24698 if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
24699 if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
24700 if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
24701 if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
24702 if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
24703 if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
24704 return 0;
24705 }
24706 _ACEOF
24707 rm -f conftest$ac_exeext
24708 if { (ac_try="$ac_link"
24709 case "(($ac_try" in
24710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24711 *) ac_try_echo=$ac_try;;
24712 esac
24713 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24714 $as_echo "$ac_try_echo") >&5
24715 (eval "$ac_link") 2>&5
24716 ac_status=$?
24717 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24718 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24719 { (case "(($ac_try" in
24720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24721 *) ac_try_echo=$ac_try;;
24722 esac
24723 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24724 $as_echo "$ac_try_echo") >&5
24725 (eval "$ac_try") 2>&5
24726 ac_status=$?
24727 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24728 (exit $ac_status); }; }; then
24729 rd_cv_ieee_mswitch=yes
24730 else
24731 $as_echo "$as_me: program exited with status $ac_status" >&5
24732 $as_echo "$as_me: failed program was:" >&5
24733 sed 's/^/| /' conftest.$ac_ext >&5
24735 ( exit $ac_status )
24736 rd_cv_ieee_mswitch=no
24737 fi
24738 rm -rf conftest.dSYM
24739 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24740 fi
24743 fi
24745 if test x${rd_cv_ieee_mswitch} = "xyes"; then
24746 { $as_echo "$as_me:$LINENO: result: yes" >&5
24747 $as_echo "yes" >&6; }
24749 else
24750 { $as_echo "$as_me:$LINENO: result: no" >&5
24751 $as_echo "no" >&6; }
24752 CFLAGS="$_cflags -q float=rndsngl"
24754 { $as_echo "$as_me:$LINENO: checking if IEEE math works with the -q float=rndsngl switch" >&5
24755 $as_echo_n "checking if IEEE math works with the -q float=rndsngl switch... " >&6; }
24756 if test "${rd_cv_ieee_qswitch+set}" = set; then
24757 $as_echo_n "(cached) " >&6
24758 else
24759 if test "$cross_compiling" = yes; then
24760 :
24761 else
24762 cat >conftest.$ac_ext <<_ACEOF
24763 /* confdefs.h. */
24764 _ACEOF
24765 cat confdefs.h >>conftest.$ac_ext
24766 cat >>conftest.$ac_ext <<_ACEOF
24767 /* end confdefs.h. */
24770 #if HAVE_MATH_H
24771 # include <math.h>
24772 #endif
24774 #if HAVE_FLOAT_H
24775 # include <float.h>
24776 #endif
24778 #if HAVE_IEEEFP_H
24779 # include <ieeefp.h>
24780 #endif
24782 #if HAVE_FP_CLASS_H
24783 # include <fp_class.h>
24784 #endif
24786 /* Solaris */
24787 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS))
24788 # define HAVE_ISINF 1
24789 # define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF)
24790 #endif
24792 /* solaris 10 it defines isnan such that only forte can compile it ... bad bad */
24793 #if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS) && defined(FP_SNAN) && defined(FP_QNAN))
24794 # undef isnan
24795 # define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN)
24796 #endif
24798 /* Digital UNIX */
24799 #if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H) && defined(FP_NEG_INF) && defined( FP_POS_INF) )
24800 # define HAVE_ISINF 1
24801 # define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
24802 #endif
24804 /* AIX */
24805 #if (! defined(HAVE_ISINF) && defined(HAVE_CLASS))
24806 # define HAVE_ISINF 1
24807 # define isinf(a) (class(a) == FP_MINUS_INF || class(a) == FP_PLUS_INF)
24808 #endif
24810 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_PLUS_INF) && defined(FP_MINUS_INF))
24811 # define HAVE_ISINF 1
24812 # define isinf(a) (fpclassify(a) == FP_MINUS_INF || fpclassify(a) == FP_PLUS_INF)
24813 #endif
24815 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_INFINITE))
24816 # define HAVE_ISINF 1
24817 # define isinf(a) (fpclassify(a) == FP_INFINITE)
24818 #endif
24820 #if HAVE_MATH_H
24821 #include <math.h>
24822 #endif
24824 #include <stdio.h>
24825 int main(void){
24826 double rrdnan,rrdinf,rrdc,rrdzero;
24827 ;
24828 /* some math to see if we get a floating point exception */
24829 rrdzero=sin(0.0); /* don't let the compiler optimize us away */
24830 rrdnan=0.0/rrdzero; /* especially here */
24831 rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
24832 /* at run time without sig fpe */
24833 rrdc = rrdinf + rrdnan;
24834 rrdc = rrdinf / rrdnan;
24835 if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
24836 if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
24837 if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
24838 if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
24839 if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
24840 if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
24841 return 0;
24842 }
24843 _ACEOF
24844 rm -f conftest$ac_exeext
24845 if { (ac_try="$ac_link"
24846 case "(($ac_try" in
24847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24848 *) ac_try_echo=$ac_try;;
24849 esac
24850 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24851 $as_echo "$ac_try_echo") >&5
24852 (eval "$ac_link") 2>&5
24853 ac_status=$?
24854 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24855 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24856 { (case "(($ac_try" in
24857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24858 *) ac_try_echo=$ac_try;;
24859 esac
24860 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24861 $as_echo "$ac_try_echo") >&5
24862 (eval "$ac_try") 2>&5
24863 ac_status=$?
24864 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24865 (exit $ac_status); }; }; then
24866 rd_cv_ieee_qswitch=yes
24867 else
24868 $as_echo "$as_me: program exited with status $ac_status" >&5
24869 $as_echo "$as_me: failed program was:" >&5
24870 sed 's/^/| /' conftest.$ac_ext >&5
24872 ( exit $ac_status )
24873 rd_cv_ieee_qswitch=no
24874 fi
24875 rm -rf conftest.dSYM
24876 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24877 fi
24880 fi
24882 if test x${rd_cv_ieee_qswitch} = "xyes"; then
24883 { $as_echo "$as_me:$LINENO: result: yes" >&5
24884 $as_echo "yes" >&6; }
24886 else
24887 { $as_echo "$as_me:$LINENO: result: no" >&5
24888 $as_echo "no" >&6; }
24889 CFLAGS="$_cflags -OPT:IEEE_NaN_inf=ON"
24891 { $as_echo "$as_me:$LINENO: checking if IEEE math works with the -OPT:IEEE_NaN_inf=ON switch" >&5
24892 $as_echo_n "checking if IEEE math works with the -OPT:IEEE_NaN_inf=ON switch... " >&6; }
24893 if test "${rd_cv_ieee_ieeenaninfswitch+set}" = set; then
24894 $as_echo_n "(cached) " >&6
24895 else
24896 if test "$cross_compiling" = yes; then
24897 :
24898 else
24899 cat >conftest.$ac_ext <<_ACEOF
24900 /* confdefs.h. */
24901 _ACEOF
24902 cat confdefs.h >>conftest.$ac_ext
24903 cat >>conftest.$ac_ext <<_ACEOF
24904 /* end confdefs.h. */
24907 #if HAVE_MATH_H
24908 # include <math.h>
24909 #endif
24911 #if HAVE_FLOAT_H
24912 # include <float.h>
24913 #endif
24915 #if HAVE_IEEEFP_H
24916 # include <ieeefp.h>
24917 #endif
24919 #if HAVE_FP_CLASS_H
24920 # include <fp_class.h>
24921 #endif
24923 /* Solaris */
24924 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS))
24925 # define HAVE_ISINF 1
24926 # define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF)
24927 #endif
24929 /* solaris 10 it defines isnan such that only forte can compile it ... bad bad */
24930 #if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS) && defined(FP_SNAN) && defined(FP_QNAN))
24931 # undef isnan
24932 # define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN)
24933 #endif
24935 /* Digital UNIX */
24936 #if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H) && defined(FP_NEG_INF) && defined( FP_POS_INF) )
24937 # define HAVE_ISINF 1
24938 # define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
24939 #endif
24941 /* AIX */
24942 #if (! defined(HAVE_ISINF) && defined(HAVE_CLASS))
24943 # define HAVE_ISINF 1
24944 # define isinf(a) (class(a) == FP_MINUS_INF || class(a) == FP_PLUS_INF)
24945 #endif
24947 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_PLUS_INF) && defined(FP_MINUS_INF))
24948 # define HAVE_ISINF 1
24949 # define isinf(a) (fpclassify(a) == FP_MINUS_INF || fpclassify(a) == FP_PLUS_INF)
24950 #endif
24952 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_INFINITE))
24953 # define HAVE_ISINF 1
24954 # define isinf(a) (fpclassify(a) == FP_INFINITE)
24955 #endif
24957 #if HAVE_MATH_H
24958 #include <math.h>
24959 #endif
24961 #include <stdio.h>
24962 int main(void){
24963 double rrdnan,rrdinf,rrdc,rrdzero;
24964 ;
24965 /* some math to see if we get a floating point exception */
24966 rrdzero=sin(0.0); /* don't let the compiler optimize us away */
24967 rrdnan=0.0/rrdzero; /* especially here */
24968 rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
24969 /* at run time without sig fpe */
24970 rrdc = rrdinf + rrdnan;
24971 rrdc = rrdinf / rrdnan;
24972 if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
24973 if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
24974 if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
24975 if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
24976 if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
24977 if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
24978 return 0;
24979 }
24980 _ACEOF
24981 rm -f conftest$ac_exeext
24982 if { (ac_try="$ac_link"
24983 case "(($ac_try" in
24984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24985 *) ac_try_echo=$ac_try;;
24986 esac
24987 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24988 $as_echo "$ac_try_echo") >&5
24989 (eval "$ac_link") 2>&5
24990 ac_status=$?
24991 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24992 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24993 { (case "(($ac_try" in
24994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24995 *) ac_try_echo=$ac_try;;
24996 esac
24997 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24998 $as_echo "$ac_try_echo") >&5
24999 (eval "$ac_try") 2>&5
25000 ac_status=$?
25001 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25002 (exit $ac_status); }; }; then
25003 rd_cv_ieee_ieeenaninfswitch=yes
25004 else
25005 $as_echo "$as_me: program exited with status $ac_status" >&5
25006 $as_echo "$as_me: failed program was:" >&5
25007 sed 's/^/| /' conftest.$ac_ext >&5
25009 ( exit $ac_status )
25010 rd_cv_ieee_ieeenaninfswitch=no
25011 fi
25012 rm -rf conftest.dSYM
25013 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25014 fi
25017 fi
25019 if test x${rd_cv_ieee_ieeenaninfswitch} = "xyes"; then
25020 { $as_echo "$as_me:$LINENO: result: yes" >&5
25021 $as_echo "yes" >&6; }
25023 else
25024 { $as_echo "$as_me:$LINENO: result: no" >&5
25025 $as_echo "no" >&6; }
25026 CFLAGS="$_cflags -OPT:IEEE_comparisons=ON"
25028 { $as_echo "$as_me:$LINENO: checking if IEEE math works with the -OPT:IEEE_comparisons=ON switch" >&5
25029 $as_echo_n "checking if IEEE math works with the -OPT:IEEE_comparisons=ON switch... " >&6; }
25030 if test "${rd_cv_ieee_ieeecmpswitch+set}" = set; then
25031 $as_echo_n "(cached) " >&6
25032 else
25033 if test "$cross_compiling" = yes; then
25034 :
25035 else
25036 cat >conftest.$ac_ext <<_ACEOF
25037 /* confdefs.h. */
25038 _ACEOF
25039 cat confdefs.h >>conftest.$ac_ext
25040 cat >>conftest.$ac_ext <<_ACEOF
25041 /* end confdefs.h. */
25044 #if HAVE_MATH_H
25045 # include <math.h>
25046 #endif
25048 #if HAVE_FLOAT_H
25049 # include <float.h>
25050 #endif
25052 #if HAVE_IEEEFP_H
25053 # include <ieeefp.h>
25054 #endif
25056 #if HAVE_FP_CLASS_H
25057 # include <fp_class.h>
25058 #endif
25060 /* Solaris */
25061 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS))
25062 # define HAVE_ISINF 1
25063 # define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF)
25064 #endif
25066 /* solaris 10 it defines isnan such that only forte can compile it ... bad bad */
25067 #if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS) && defined(FP_SNAN) && defined(FP_QNAN))
25068 # undef isnan
25069 # define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN)
25070 #endif
25072 /* Digital UNIX */
25073 #if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H) && defined(FP_NEG_INF) && defined( FP_POS_INF) )
25074 # define HAVE_ISINF 1
25075 # define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
25076 #endif
25078 /* AIX */
25079 #if (! defined(HAVE_ISINF) && defined(HAVE_CLASS))
25080 # define HAVE_ISINF 1
25081 # define isinf(a) (class(a) == FP_MINUS_INF || class(a) == FP_PLUS_INF)
25082 #endif
25084 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_PLUS_INF) && defined(FP_MINUS_INF))
25085 # define HAVE_ISINF 1
25086 # define isinf(a) (fpclassify(a) == FP_MINUS_INF || fpclassify(a) == FP_PLUS_INF)
25087 #endif
25089 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_INFINITE))
25090 # define HAVE_ISINF 1
25091 # define isinf(a) (fpclassify(a) == FP_INFINITE)
25092 #endif
25094 #if HAVE_MATH_H
25095 #include <math.h>
25096 #endif
25098 #include <stdio.h>
25099 int main(void){
25100 double rrdnan,rrdinf,rrdc,rrdzero;
25101 ;
25102 /* some math to see if we get a floating point exception */
25103 rrdzero=sin(0.0); /* don't let the compiler optimize us away */
25104 rrdnan=0.0/rrdzero; /* especially here */
25105 rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
25106 /* at run time without sig fpe */
25107 rrdc = rrdinf + rrdnan;
25108 rrdc = rrdinf / rrdnan;
25109 if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
25110 if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
25111 if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
25112 if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
25113 if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
25114 if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
25115 return 0;
25116 }
25117 _ACEOF
25118 rm -f conftest$ac_exeext
25119 if { (ac_try="$ac_link"
25120 case "(($ac_try" in
25121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25122 *) ac_try_echo=$ac_try;;
25123 esac
25124 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25125 $as_echo "$ac_try_echo") >&5
25126 (eval "$ac_link") 2>&5
25127 ac_status=$?
25128 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25129 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25130 { (case "(($ac_try" in
25131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25132 *) ac_try_echo=$ac_try;;
25133 esac
25134 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25135 $as_echo "$ac_try_echo") >&5
25136 (eval "$ac_try") 2>&5
25137 ac_status=$?
25138 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25139 (exit $ac_status); }; }; then
25140 rd_cv_ieee_ieeecmpswitch=yes
25141 else
25142 $as_echo "$as_me: program exited with status $ac_status" >&5
25143 $as_echo "$as_me: failed program was:" >&5
25144 sed 's/^/| /' conftest.$ac_ext >&5
25146 ( exit $ac_status )
25147 rd_cv_ieee_ieeecmpswitch=no
25148 fi
25149 rm -rf conftest.dSYM
25150 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25151 fi
25154 fi
25156 if test x${rd_cv_ieee_ieeecmpswitch} = "xyes"; then
25157 { $as_echo "$as_me:$LINENO: result: yes" >&5
25158 $as_echo "yes" >&6; }
25160 else
25161 { $as_echo "$as_me:$LINENO: result: no" >&5
25162 $as_echo "no" >&6; }
25163 CFLAGS=$_cflags
25165 { $as_echo "$as_me:$LINENO: checking if IEEE math works with fpsetmask(0)" >&5
25166 $as_echo_n "checking if IEEE math works with fpsetmask(0)... " >&6; }
25167 if test "${rd_cv_ieee_mask+set}" = set; then
25168 $as_echo_n "(cached) " >&6
25169 else
25170 if test "$cross_compiling" = yes; then
25171 :
25172 else
25173 cat >conftest.$ac_ext <<_ACEOF
25174 /* confdefs.h. */
25175 _ACEOF
25176 cat confdefs.h >>conftest.$ac_ext
25177 cat >>conftest.$ac_ext <<_ACEOF
25178 /* end confdefs.h. */
25179 #include <floatingpoint.h>
25181 #if HAVE_MATH_H
25182 # include <math.h>
25183 #endif
25185 #if HAVE_FLOAT_H
25186 # include <float.h>
25187 #endif
25189 #if HAVE_IEEEFP_H
25190 # include <ieeefp.h>
25191 #endif
25193 #if HAVE_FP_CLASS_H
25194 # include <fp_class.h>
25195 #endif
25197 /* Solaris */
25198 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS))
25199 # define HAVE_ISINF 1
25200 # define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF)
25201 #endif
25203 /* solaris 10 it defines isnan such that only forte can compile it ... bad bad */
25204 #if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS) && defined(FP_SNAN) && defined(FP_QNAN))
25205 # undef isnan
25206 # define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN)
25207 #endif
25209 /* Digital UNIX */
25210 #if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H) && defined(FP_NEG_INF) && defined( FP_POS_INF) )
25211 # define HAVE_ISINF 1
25212 # define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
25213 #endif
25215 /* AIX */
25216 #if (! defined(HAVE_ISINF) && defined(HAVE_CLASS))
25217 # define HAVE_ISINF 1
25218 # define isinf(a) (class(a) == FP_MINUS_INF || class(a) == FP_PLUS_INF)
25219 #endif
25221 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_PLUS_INF) && defined(FP_MINUS_INF))
25222 # define HAVE_ISINF 1
25223 # define isinf(a) (fpclassify(a) == FP_MINUS_INF || fpclassify(a) == FP_PLUS_INF)
25224 #endif
25226 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_INFINITE))
25227 # define HAVE_ISINF 1
25228 # define isinf(a) (fpclassify(a) == FP_INFINITE)
25229 #endif
25231 #if HAVE_MATH_H
25232 #include <math.h>
25233 #endif
25235 #include <stdio.h>
25236 int main(void){
25237 double rrdnan,rrdinf,rrdc,rrdzero;
25238 fpsetmask(0);
25239 /* some math to see if we get a floating point exception */
25240 rrdzero=sin(0.0); /* don't let the compiler optimize us away */
25241 rrdnan=0.0/rrdzero; /* especially here */
25242 rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
25243 /* at run time without sig fpe */
25244 rrdc = rrdinf + rrdnan;
25245 rrdc = rrdinf / rrdnan;
25246 if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
25247 if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
25248 if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
25249 if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
25250 if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
25251 if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
25252 return 0;
25253 }
25254 _ACEOF
25255 rm -f conftest$ac_exeext
25256 if { (ac_try="$ac_link"
25257 case "(($ac_try" in
25258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25259 *) ac_try_echo=$ac_try;;
25260 esac
25261 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25262 $as_echo "$ac_try_echo") >&5
25263 (eval "$ac_link") 2>&5
25264 ac_status=$?
25265 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25266 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25267 { (case "(($ac_try" in
25268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25269 *) ac_try_echo=$ac_try;;
25270 esac
25271 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25272 $as_echo "$ac_try_echo") >&5
25273 (eval "$ac_try") 2>&5
25274 ac_status=$?
25275 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25276 (exit $ac_status); }; }; then
25277 rd_cv_ieee_mask=yes
25278 else
25279 $as_echo "$as_me: program exited with status $ac_status" >&5
25280 $as_echo "$as_me: failed program was:" >&5
25281 sed 's/^/| /' conftest.$ac_ext >&5
25283 ( exit $ac_status )
25284 rd_cv_ieee_mask=no
25285 fi
25286 rm -rf conftest.dSYM
25287 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25288 fi
25291 fi
25293 if test x${rd_cv_ieee_mask} = "xyes"; then
25294 { $as_echo "$as_me:$LINENO: result: yes" >&5
25295 $as_echo "yes" >&6; }
25296 cat >>confdefs.h <<\_ACEOF
25297 #define MUST_DISABLE_FPMASK 1
25298 _ACEOF
25300 PERLFLAGS="CCFLAGS=-DMUST_DISABLE_FPMASK"
25301 else
25302 { $as_echo "$as_me:$LINENO: result: no" >&5
25303 $as_echo "no" >&6; }
25305 { $as_echo "$as_me:$LINENO: checking if IEEE math works with signal(SIGFPE,SIG_IGN)" >&5
25306 $as_echo_n "checking if IEEE math works with signal(SIGFPE,SIG_IGN)... " >&6; }
25307 if test "${rd_cv_ieee_sigfpe+set}" = set; then
25308 $as_echo_n "(cached) " >&6
25309 else
25310 if test "$cross_compiling" = yes; then
25311 :
25312 else
25313 cat >conftest.$ac_ext <<_ACEOF
25314 /* confdefs.h. */
25315 _ACEOF
25316 cat confdefs.h >>conftest.$ac_ext
25317 cat >>conftest.$ac_ext <<_ACEOF
25318 /* end confdefs.h. */
25319 #include <signal.h>
25321 #if HAVE_MATH_H
25322 # include <math.h>
25323 #endif
25325 #if HAVE_FLOAT_H
25326 # include <float.h>
25327 #endif
25329 #if HAVE_IEEEFP_H
25330 # include <ieeefp.h>
25331 #endif
25333 #if HAVE_FP_CLASS_H
25334 # include <fp_class.h>
25335 #endif
25337 /* Solaris */
25338 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS))
25339 # define HAVE_ISINF 1
25340 # define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF)
25341 #endif
25343 /* solaris 10 it defines isnan such that only forte can compile it ... bad bad */
25344 #if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS) && defined(FP_SNAN) && defined(FP_QNAN))
25345 # undef isnan
25346 # define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN)
25347 #endif
25349 /* Digital UNIX */
25350 #if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H) && defined(FP_NEG_INF) && defined( FP_POS_INF) )
25351 # define HAVE_ISINF 1
25352 # define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
25353 #endif
25355 /* AIX */
25356 #if (! defined(HAVE_ISINF) && defined(HAVE_CLASS))
25357 # define HAVE_ISINF 1
25358 # define isinf(a) (class(a) == FP_MINUS_INF || class(a) == FP_PLUS_INF)
25359 #endif
25361 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_PLUS_INF) && defined(FP_MINUS_INF))
25362 # define HAVE_ISINF 1
25363 # define isinf(a) (fpclassify(a) == FP_MINUS_INF || fpclassify(a) == FP_PLUS_INF)
25364 #endif
25366 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_INFINITE))
25367 # define HAVE_ISINF 1
25368 # define isinf(a) (fpclassify(a) == FP_INFINITE)
25369 #endif
25371 #if HAVE_MATH_H
25372 #include <math.h>
25373 #endif
25375 #include <stdio.h>
25376 int main(void){
25377 double rrdnan,rrdinf,rrdc,rrdzero;
25378 signal(SIGFPE,SIG_IGN);
25379 /* some math to see if we get a floating point exception */
25380 rrdzero=sin(0.0); /* don't let the compiler optimize us away */
25381 rrdnan=0.0/rrdzero; /* especially here */
25382 rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
25383 /* at run time without sig fpe */
25384 rrdc = rrdinf + rrdnan;
25385 rrdc = rrdinf / rrdnan;
25386 if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
25387 if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
25388 if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
25389 if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
25390 if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
25391 if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
25392 return 0;
25393 }
25394 _ACEOF
25395 rm -f conftest$ac_exeext
25396 if { (ac_try="$ac_link"
25397 case "(($ac_try" in
25398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25399 *) ac_try_echo=$ac_try;;
25400 esac
25401 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25402 $as_echo "$ac_try_echo") >&5
25403 (eval "$ac_link") 2>&5
25404 ac_status=$?
25405 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25406 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25407 { (case "(($ac_try" in
25408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25409 *) ac_try_echo=$ac_try;;
25410 esac
25411 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25412 $as_echo "$ac_try_echo") >&5
25413 (eval "$ac_try") 2>&5
25414 ac_status=$?
25415 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25416 (exit $ac_status); }; }; then
25417 rd_cv_ieee_sigfpe=yes
25418 else
25419 $as_echo "$as_me: program exited with status $ac_status" >&5
25420 $as_echo "$as_me: failed program was:" >&5
25421 sed 's/^/| /' conftest.$ac_ext >&5
25423 ( exit $ac_status )
25424 rd_cv_ieee_sigfpe=no
25425 fi
25426 rm -rf conftest.dSYM
25427 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25428 fi
25431 fi
25433 if test x${rd_cv_ieee_sigfpe} = "xyes"; then
25434 { $as_echo "$as_me:$LINENO: result: yes" >&5
25435 $as_echo "yes" >&6; }
25436 cat >>confdefs.h <<\_ACEOF
25437 #define MUST_DISABLE_SIGFPE 1
25438 _ACEOF
25440 PERLFLAGS="CCFLAGS=-DMUST_DISABLE_SIGFPE"
25441 else
25442 { $as_echo "$as_me:$LINENO: result: no" >&5
25443 $as_echo "no" >&6; }
25444 { { $as_echo "$as_me:$LINENO: error:
25445 Your Compiler does not do propper IEEE math ... Please find out how to
25446 make IEEE math work with your compiler and let me know (tobi@oetiker.ch).
25447 Check config.log to see what went wrong ...
25448 " >&5
25449 $as_echo "$as_me: error:
25450 Your Compiler does not do propper IEEE math ... Please find out how to
25451 make IEEE math work with your compiler and let me know (tobi@oetiker.ch).
25452 Check config.log to see what went wrong ...
25453 " >&2;}
25454 { (exit 1); exit 1; }; }
25455 fi
25458 fi
25461 fi
25464 fi
25467 fi
25470 fi
25473 fi
25476 fi
25479 fi
25482 fi
25486 ac_ext=c
25487 ac_cpp='$CPP $CPPFLAGS'
25488 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25489 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25490 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25496 case $TERM in
25497 # for the most important terminal types we directly know the sequences
25498 xterm|xterm*|vt220|vt220*)
25499 T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
25500 T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
25501 ;;
25502 vt100|vt100*|cygwin)
25503 T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
25504 T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
25505 ;;
25506 *)
25507 T_MD=''
25508 T_ME=''
25509 ;;
25510 esac
25511 { $as_echo "$as_me:$LINENO: result: " >&5
25512 $as_echo "" >&6; }
25513 { $as_echo "$as_me:$LINENO: result: ${T_MD}Resolve Portability Issues${T_ME}" >&5
25514 $as_echo "${T_MD}Resolve Portability Issues${T_ME}" >&6; }
25518 { $as_echo "$as_me:$LINENO: checking if msync with MS_ASYNC updates the files mtime" >&5
25519 $as_echo_n "checking if msync with MS_ASYNC updates the files mtime... " >&6; }
25520 if test "${rd_cv_ms_async+set}" = set; then
25521 $as_echo_n "(cached) " >&6
25522 else
25523 if test "$cross_compiling" = yes; then
25524 :
25525 else
25526 cat >conftest.$ac_ext <<_ACEOF
25527 /* confdefs.h. */
25528 _ACEOF
25529 cat confdefs.h >>conftest.$ac_ext
25530 cat >>conftest.$ac_ext <<_ACEOF
25531 /* end confdefs.h. */
25533 #include <fcntl.h>
25534 #include <sys/types.h>
25535 #include <sys/stat.h>
25536 #include <unistd.h>
25537 #include <stdio.h>
25538 #include <sys/mman.h>
25539 #include <stdlib.h>
25540 #include <utime.h>
25541 int main(void){
25542 int fd;
25543 struct stat stbuf;
25544 char *addr;
25545 int res;
25546 char temp[] = "mmaptestXXXXXX";
25547 struct utimbuf newtime;
25549 time_t create_ts;
25550 fd = mkstemp(temp);
25551 if (fd == -1){
25552 perror(temp);
25553 return 1;
25554 }
25555 write(fd,"12345\n", 6);
25556 stat(temp, &stbuf);
25557 create_ts = stbuf.st_mtime;
25558 newtime.actime = 0;
25559 newtime.modtime = 0;
25560 utime(temp,&newtime);
25561 addr = mmap(NULL, 4096, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0);
25562 if (addr == MAP_FAILED) {
25563 perror("mmap");
25564 goto bad_exit;
25565 }
25566 addr[0]='x';
25567 res = msync(addr, 4, MS_ASYNC);
25568 if (res == -1) {
25569 perror("msync");
25570 goto bad_exit;
25571 }
25572 res = close(fd);
25573 if (res == -1) {
25574 perror("close");
25575 goto bad_exit;
25576 }
25577 /* The ASYNC means that we schedule the msync and return immediately.
25578 Since we want to see if the modification time is updated upon
25579 msync(), we have to make sure that our asynchronous request
25580 completes before we stat below. In a real application, the
25581 request would be completed at a random time in the future
25582 but for this test we do not want to wait an arbitrary amount of
25583 time, so force a commit now. */
25584 sync();
25585 stat(temp, &stbuf);
25586 if (create_ts > stbuf.st_mtime){
25587 goto bad_exit;
25588 }
25589 unlink(temp);
25590 return 0;
25591 bad_exit:
25592 unlink(temp);
25593 return 1;
25594 }
25596 _ACEOF
25597 rm -f conftest$ac_exeext
25598 if { (ac_try="$ac_link"
25599 case "(($ac_try" in
25600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25601 *) ac_try_echo=$ac_try;;
25602 esac
25603 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25604 $as_echo "$ac_try_echo") >&5
25605 (eval "$ac_link") 2>&5
25606 ac_status=$?
25607 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25608 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25609 { (case "(($ac_try" in
25610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25611 *) ac_try_echo=$ac_try;;
25612 esac
25613 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25614 $as_echo "$ac_try_echo") >&5
25615 (eval "$ac_try") 2>&5
25616 ac_status=$?
25617 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25618 (exit $ac_status); }; }; then
25619 rd_cv_ms_async=ok
25620 else
25621 $as_echo "$as_me: program exited with status $ac_status" >&5
25622 $as_echo "$as_me: failed program was:" >&5
25623 sed 's/^/| /' conftest.$ac_ext >&5
25625 ( exit $ac_status )
25626 rd_cv_ms_async=broken
25627 fi
25628 rm -rf conftest.dSYM
25629 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25630 fi
25633 fi
25637 if test "${rd_cv_ms_async}" = "ok"; then
25638 { $as_echo "$as_me:$LINENO: result: yes" >&5
25639 $as_echo "yes" >&6; }
25640 else
25642 cat >>confdefs.h <<_ACEOF
25643 #define HAVE_BROKEN_MS_ASYNC 1
25644 _ACEOF
25646 { $as_echo "$as_me:$LINENO: result: no" >&5
25647 $as_echo "no" >&6; }
25648 { $as_echo "$as_me:$LINENO: WARNING: With mmap access, your platform fails to update the files" >&5
25649 $as_echo "$as_me: WARNING: With mmap access, your platform fails to update the files" >&2;}
25650 { $as_echo "$as_me:$LINENO: WARNING: mtime. RRDtool will work around this problem by calling utime on each" >&5
25651 $as_echo "$as_me: WARNING: mtime. RRDtool will work around this problem by calling utime on each" >&2;}
25652 { $as_echo "$as_me:$LINENO: WARNING: file it opens for rw access." >&5
25653 $as_echo "$as_me: WARNING: file it opens for rw access." >&2;}
25654 sleep 2
25655 fi
25661 { $as_echo "$as_me:$LINENO: checking for opterr" >&5
25662 $as_echo_n "checking for opterr... " >&6; }
25663 if test "${rd_cv_var_int_opterr+set}" = set; then
25664 $as_echo_n "(cached) " >&6
25665 else
25666 cat >conftest.$ac_ext <<_ACEOF
25667 /* confdefs.h. */
25668 _ACEOF
25669 cat confdefs.h >>conftest.$ac_ext
25670 cat >>conftest.$ac_ext <<_ACEOF
25671 /* end confdefs.h. */
25672 #include <unistd.h>
25673 int
25674 main ()
25675 {
25676 extern int opterr; opterr = 1;
25677 ;
25678 return 0;
25679 }
25680 _ACEOF
25681 rm -f conftest.$ac_objext conftest$ac_exeext
25682 if { (ac_try="$ac_link"
25683 case "(($ac_try" in
25684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25685 *) ac_try_echo=$ac_try;;
25686 esac
25687 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25688 $as_echo "$ac_try_echo") >&5
25689 (eval "$ac_link") 2>conftest.er1
25690 ac_status=$?
25691 grep -v '^ *+' conftest.er1 >conftest.err
25692 rm -f conftest.er1
25693 cat conftest.err >&5
25694 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25695 (exit $ac_status); } && {
25696 test -z "$ac_c_werror_flag" ||
25697 test ! -s conftest.err
25698 } && test -s conftest$ac_exeext && {
25699 test "$cross_compiling" = yes ||
25700 $as_test_x conftest$ac_exeext
25701 }; then
25702 rd_cv_var_int_opterr=yes
25703 else
25704 $as_echo "$as_me: failed program was:" >&5
25705 sed 's/^/| /' conftest.$ac_ext >&5
25707 rd_cv_var_int_opterr=no
25708 fi
25710 rm -rf conftest.dSYM
25711 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25712 conftest$ac_exeext conftest.$ac_ext
25713 fi
25714 { $as_echo "$as_me:$LINENO: result: $rd_cv_var_int_opterr" >&5
25715 $as_echo "$rd_cv_var_int_opterr" >&6; }
25716 if test x"$rd_cv_var_int_opterr" = x"yes"; then
25718 cat >>confdefs.h <<\_ACEOF
25719 #define HAVE_INT_OPTERR 1
25720 _ACEOF
25722 fi
25724 build_getopt=no
25725 RRD_GETOPT_LONG="LIBC_HAS_GETOPT_LONG"
25726 { $as_echo "$as_me:$LINENO: checking for getopt_long" >&5
25727 $as_echo_n "checking for getopt_long... " >&6; }
25728 if test "${ac_cv_func_getopt_long+set}" = set; then
25729 $as_echo_n "(cached) " >&6
25730 else
25731 cat >conftest.$ac_ext <<_ACEOF
25732 /* confdefs.h. */
25733 _ACEOF
25734 cat confdefs.h >>conftest.$ac_ext
25735 cat >>conftest.$ac_ext <<_ACEOF
25736 /* end confdefs.h. */
25737 /* Define getopt_long to an innocuous variant, in case <limits.h> declares getopt_long.
25738 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25739 #define getopt_long innocuous_getopt_long
25741 /* System header to define __stub macros and hopefully few prototypes,
25742 which can conflict with char getopt_long (); below.
25743 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25744 <limits.h> exists even on freestanding compilers. */
25746 #ifdef __STDC__
25747 # include <limits.h>
25748 #else
25749 # include <assert.h>
25750 #endif
25752 #undef getopt_long
25754 /* Override any GCC internal prototype to avoid an error.
25755 Use char because int might match the return type of a GCC
25756 builtin and then its argument prototype would still apply. */
25757 #ifdef __cplusplus
25758 extern "C"
25759 #endif
25760 char getopt_long ();
25761 /* The GNU C library defines this for functions which it implements
25762 to always fail with ENOSYS. Some functions are actually named
25763 something starting with __ and the normal name is an alias. */
25764 #if defined __stub_getopt_long || defined __stub___getopt_long
25765 choke me
25766 #endif
25768 int
25769 main ()
25770 {
25771 return getopt_long ();
25772 ;
25773 return 0;
25774 }
25775 _ACEOF
25776 rm -f conftest.$ac_objext conftest$ac_exeext
25777 if { (ac_try="$ac_link"
25778 case "(($ac_try" in
25779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25780 *) ac_try_echo=$ac_try;;
25781 esac
25782 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25783 $as_echo "$ac_try_echo") >&5
25784 (eval "$ac_link") 2>conftest.er1
25785 ac_status=$?
25786 grep -v '^ *+' conftest.er1 >conftest.err
25787 rm -f conftest.er1
25788 cat conftest.err >&5
25789 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25790 (exit $ac_status); } && {
25791 test -z "$ac_c_werror_flag" ||
25792 test ! -s conftest.err
25793 } && test -s conftest$ac_exeext && {
25794 test "$cross_compiling" = yes ||
25795 $as_test_x conftest$ac_exeext
25796 }; then
25797 ac_cv_func_getopt_long=yes
25798 else
25799 $as_echo "$as_me: failed program was:" >&5
25800 sed 's/^/| /' conftest.$ac_ext >&5
25802 ac_cv_func_getopt_long=no
25803 fi
25805 rm -rf conftest.dSYM
25806 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25807 conftest$ac_exeext conftest.$ac_ext
25808 fi
25809 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getopt_long" >&5
25810 $as_echo "$ac_cv_func_getopt_long" >&6; }
25811 if test "x$ac_cv_func_getopt_long" = x""yes; then
25812 :
25813 else
25815 RRD_GETOPT_LONG="getopt_long"
25816 build_getopt=yes
25818 fi
25821 if test $build_getopt = yes; then
25822 BUILD_GETOPT_TRUE=
25823 BUILD_GETOPT_FALSE='#'
25824 else
25825 BUILD_GETOPT_TRUE='#'
25826 BUILD_GETOPT_FALSE=
25827 fi
25831 { $as_echo "$as_me:$LINENO: checking if realloc can deal with NULL" >&5
25832 $as_echo_n "checking if realloc can deal with NULL... " >&6; }
25833 if test "${rd_cv_null_realloc+set}" = set; then
25834 $as_echo_n "(cached) " >&6
25835 else
25836 if test "$cross_compiling" = yes; then
25837 :
25838 else
25839 cat >conftest.$ac_ext <<_ACEOF
25840 /* confdefs.h. */
25841 _ACEOF
25842 cat confdefs.h >>conftest.$ac_ext
25843 cat >>conftest.$ac_ext <<_ACEOF
25844 /* end confdefs.h. */
25845 #include <stdlib.h>
25846 int main(void){
25847 char *x = NULL;
25848 x = realloc (x,10);
25849 if (x==NULL) return 1;
25850 return 0;
25851 }
25852 _ACEOF
25853 rm -f conftest$ac_exeext
25854 if { (ac_try="$ac_link"
25855 case "(($ac_try" in
25856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25857 *) ac_try_echo=$ac_try;;
25858 esac
25859 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25860 $as_echo "$ac_try_echo") >&5
25861 (eval "$ac_link") 2>&5
25862 ac_status=$?
25863 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25864 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25865 { (case "(($ac_try" in
25866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25867 *) ac_try_echo=$ac_try;;
25868 esac
25869 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25870 $as_echo "$ac_try_echo") >&5
25871 (eval "$ac_try") 2>&5
25872 ac_status=$?
25873 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25874 (exit $ac_status); }; }; then
25875 rd_cv_null_realloc=yes
25876 else
25877 $as_echo "$as_me: program exited with status $ac_status" >&5
25878 $as_echo "$as_me: failed program was:" >&5
25879 sed 's/^/| /' conftest.$ac_ext >&5
25881 ( exit $ac_status )
25882 rd_cv_null_realloc=nope
25883 fi
25884 rm -rf conftest.dSYM
25885 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25886 fi
25889 fi
25890 { $as_echo "$as_me:$LINENO: result: $rd_cv_null_realloc" >&5
25891 $as_echo "$rd_cv_null_realloc" >&6; }
25893 if test x"$rd_cv_null_realloc" = xnope; then
25894 cat >>confdefs.h <<\_ACEOF
25895 #define NO_NULL_REALLOC 1
25896 _ACEOF
25898 fi
25900 ac_ext=c
25901 ac_cpp='$CPP $CPPFLAGS'
25902 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25903 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25904 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25906 { $as_echo "$as_me:$LINENO: checking if ctime_r need special care to act posixly correct" >&5
25907 $as_echo_n "checking if ctime_r need special care to act posixly correct... " >&6; }
25908 cat >conftest.$ac_ext <<_ACEOF
25909 /* confdefs.h. */
25910 _ACEOF
25911 cat confdefs.h >>conftest.$ac_ext
25912 cat >>conftest.$ac_ext <<_ACEOF
25913 /* end confdefs.h. */
25914 #include <time.h>
25915 int
25916 main ()
25917 {
25918 ctime_r(NULL,NULL,0)
25920 ;
25921 return 0;
25922 }
25923 _ACEOF
25924 rm -f conftest.$ac_objext conftest$ac_exeext
25925 if { (ac_try="$ac_link"
25926 case "(($ac_try" in
25927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25928 *) ac_try_echo=$ac_try;;
25929 esac
25930 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25931 $as_echo "$ac_try_echo") >&5
25932 (eval "$ac_link") 2>conftest.er1
25933 ac_status=$?
25934 grep -v '^ *+' conftest.er1 >conftest.err
25935 rm -f conftest.er1
25936 cat conftest.err >&5
25937 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25938 (exit $ac_status); } && {
25939 test -z "$ac_c_werror_flag" ||
25940 test ! -s conftest.err
25941 } && test -s conftest$ac_exeext && {
25942 test "$cross_compiling" = yes ||
25943 $as_test_x conftest$ac_exeext
25944 }; then
25945 CPPFLAGS="$CPPFLAGS -D_POSIX_PTHREAD_SEMANTICS"
25946 cat >conftest.$ac_ext <<_ACEOF
25947 /* confdefs.h. */
25948 _ACEOF
25949 cat confdefs.h >>conftest.$ac_ext
25950 cat >>conftest.$ac_ext <<_ACEOF
25951 /* end confdefs.h. */
25952 #include <time.h>
25953 int
25954 main ()
25955 {
25956 ctime_r(NULL,NULL)
25958 ;
25959 return 0;
25960 }
25961 _ACEOF
25962 rm -f conftest.$ac_objext conftest$ac_exeext
25963 if { (ac_try="$ac_link"
25964 case "(($ac_try" in
25965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25966 *) ac_try_echo=$ac_try;;
25967 esac
25968 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25969 $as_echo "$ac_try_echo") >&5
25970 (eval "$ac_link") 2>conftest.er1
25971 ac_status=$?
25972 grep -v '^ *+' conftest.er1 >conftest.err
25973 rm -f conftest.er1
25974 cat conftest.err >&5
25975 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25976 (exit $ac_status); } && {
25977 test -z "$ac_c_werror_flag" ||
25978 test ! -s conftest.err
25979 } && test -s conftest$ac_exeext && {
25980 test "$cross_compiling" = yes ||
25981 $as_test_x conftest$ac_exeext
25982 }; then
25983 { $as_echo "$as_me:$LINENO: result: yes, this seems to be solaris style" >&5
25984 $as_echo "yes, this seems to be solaris style" >&6; }
25985 else
25986 $as_echo "$as_me: failed program was:" >&5
25987 sed 's/^/| /' conftest.$ac_ext >&5
25989 { { $as_echo "$as_me:$LINENO: error: Can't figure how to compile ctime_r" >&5
25990 $as_echo "$as_me: error: Can't figure how to compile ctime_r" >&2;}
25991 { (exit 1); exit 1; }; }
25993 fi
25995 rm -rf conftest.dSYM
25996 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25997 conftest$ac_exeext conftest.$ac_ext
25999 else
26000 $as_echo "$as_me: failed program was:" >&5
26001 sed 's/^/| /' conftest.$ac_ext >&5
26003 cat >conftest.$ac_ext <<_ACEOF
26004 /* confdefs.h. */
26005 _ACEOF
26006 cat confdefs.h >>conftest.$ac_ext
26007 cat >>conftest.$ac_ext <<_ACEOF
26008 /* end confdefs.h. */
26009 #include <time.h>
26010 int
26011 main ()
26012 {
26013 ctime_r(NULL,NULL)
26015 ;
26016 return 0;
26017 }
26018 _ACEOF
26019 rm -f conftest.$ac_objext conftest$ac_exeext
26020 if { (ac_try="$ac_link"
26021 case "(($ac_try" in
26022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26023 *) ac_try_echo=$ac_try;;
26024 esac
26025 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26026 $as_echo "$ac_try_echo") >&5
26027 (eval "$ac_link") 2>conftest.er1
26028 ac_status=$?
26029 grep -v '^ *+' conftest.er1 >conftest.err
26030 rm -f conftest.er1
26031 cat conftest.err >&5
26032 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26033 (exit $ac_status); } && {
26034 test -z "$ac_c_werror_flag" ||
26035 test ! -s conftest.err
26036 } && test -s conftest$ac_exeext && {
26037 test "$cross_compiling" = yes ||
26038 $as_test_x conftest$ac_exeext
26039 }; then
26040 { $as_echo "$as_me:$LINENO: result: no" >&5
26041 $as_echo "no" >&6; }
26042 else
26043 $as_echo "$as_me: failed program was:" >&5
26044 sed 's/^/| /' conftest.$ac_ext >&5
26046 { { $as_echo "$as_me:$LINENO: error: Can't figure how to compile ctime_r" >&5
26047 $as_echo "$as_me: error: Can't figure how to compile ctime_r" >&2;}
26048 { (exit 1); exit 1; }; }
26050 fi
26052 rm -rf conftest.dSYM
26053 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26054 conftest$ac_exeext conftest.$ac_ext
26057 fi
26059 rm -rf conftest.dSYM
26060 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26061 conftest$ac_exeext conftest.$ac_ext
26062 ac_ext=c
26063 ac_cpp='$CPP $CPPFLAGS'
26064 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26065 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26066 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26073 if test $enable_pthread != no; then
26076 ac_ext=c
26077 ac_cpp='$CPP $CPPFLAGS'
26078 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26079 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26080 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26082 acx_pthread_ok=no
26084 # We used to check for pthread.h first, but this fails if pthread.h
26085 # requires special compiler flags (e.g. on True64 or Sequent).
26086 # It gets checked for in the link test anyway.
26088 # First of all, check if the user has set any of the PTHREAD_LIBS,
26089 # etcetera environment variables, and if threads linking works using
26090 # them:
26091 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
26092 save_CFLAGS="$CFLAGS"
26093 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
26094 save_LIBS="$LIBS"
26095 LIBS="$PTHREAD_LIBS $LIBS"
26096 { $as_echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
26097 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
26098 cat >conftest.$ac_ext <<_ACEOF
26099 /* confdefs.h. */
26100 _ACEOF
26101 cat confdefs.h >>conftest.$ac_ext
26102 cat >>conftest.$ac_ext <<_ACEOF
26103 /* end confdefs.h. */
26105 /* Override any GCC internal prototype to avoid an error.
26106 Use char because int might match the return type of a GCC
26107 builtin and then its argument prototype would still apply. */
26108 #ifdef __cplusplus
26109 extern "C"
26110 #endif
26111 char pthread_join ();
26112 int
26113 main ()
26114 {
26115 return pthread_join ();
26116 ;
26117 return 0;
26118 }
26119 _ACEOF
26120 rm -f conftest.$ac_objext conftest$ac_exeext
26121 if { (ac_try="$ac_link"
26122 case "(($ac_try" in
26123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26124 *) ac_try_echo=$ac_try;;
26125 esac
26126 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26127 $as_echo "$ac_try_echo") >&5
26128 (eval "$ac_link") 2>conftest.er1
26129 ac_status=$?
26130 grep -v '^ *+' conftest.er1 >conftest.err
26131 rm -f conftest.er1
26132 cat conftest.err >&5
26133 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26134 (exit $ac_status); } && {
26135 test -z "$ac_c_werror_flag" ||
26136 test ! -s conftest.err
26137 } && test -s conftest$ac_exeext && {
26138 test "$cross_compiling" = yes ||
26139 $as_test_x conftest$ac_exeext
26140 }; then
26141 acx_pthread_ok=yes
26142 else
26143 $as_echo "$as_me: failed program was:" >&5
26144 sed 's/^/| /' conftest.$ac_ext >&5
26147 fi
26149 rm -rf conftest.dSYM
26150 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26151 conftest$ac_exeext conftest.$ac_ext
26152 { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
26153 $as_echo "$acx_pthread_ok" >&6; }
26154 if test x"$acx_pthread_ok" = xno; then
26155 PTHREAD_LIBS=""
26156 PTHREAD_CFLAGS=""
26157 fi
26158 LIBS="$save_LIBS"
26159 CFLAGS="$save_CFLAGS"
26160 fi
26162 # We must check for the threads library under a number of different
26163 # names; the ordering is very important because some systems
26164 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
26165 # libraries is broken (non-POSIX).
26167 # Create a list of thread flags to try. Items starting with a "-" are
26168 # C compiler flags, and other items are library names, except for "none"
26169 # which indicates that we try without any flags at all, and "pthread-config"
26170 # which is a program returning the flags for the Pth emulation library.
26172 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
26174 # The ordering *is* (sometimes) important. Some notes on the
26175 # individual items follow:
26177 # pthreads: AIX (must check this before -lpthread)
26178 # none: in case threads are in libc; should be tried before -Kthread and
26179 # other compiler flags to prevent continual compiler warnings
26180 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
26181 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
26182 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
26183 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
26184 # -pthreads: Solaris/gcc
26185 # -mthreads: Mingw32/gcc, Lynx/gcc
26186 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
26187 # doesn't hurt to check since this sometimes defines pthreads too;
26188 # also defines -D_REENTRANT)
26189 # pthread: Linux, etcetera
26190 # --thread-safe: KAI C++
26191 # pthread-config: use pthread-config program (for GNU Pth library)
26193 case "${host_cpu}-${host_os}" in
26194 *solaris*)
26196 # On Solaris (at least, for some versions), libc contains stubbed
26197 # (non-functional) versions of the pthreads routines, so link-based
26198 # tests will erroneously succeed. (We need to link with -pthread or
26199 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
26200 # a function called by this macro, so we could check for that, but
26201 # who knows whether they'll stub that too in a future libc.) So,
26202 # we'll just look for -pthreads and -lpthread first:
26204 acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
26205 ;;
26206 esac
26208 if test x"$acx_pthread_ok" = xno; then
26209 for flag in $acx_pthread_flags; do
26211 case $flag in
26212 none)
26213 { $as_echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
26214 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
26215 ;;
26217 -*)
26218 { $as_echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
26219 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
26220 PTHREAD_CFLAGS="$flag"
26221 ;;
26223 pthread-config)
26224 # Extract the first word of "pthread-config", so it can be a program name with args.
26225 set dummy pthread-config; ac_word=$2
26226 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
26227 $as_echo_n "checking for $ac_word... " >&6; }
26228 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
26229 $as_echo_n "(cached) " >&6
26230 else
26231 if test -n "$acx_pthread_config"; then
26232 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
26233 else
26234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26235 for as_dir in $PATH
26236 do
26237 IFS=$as_save_IFS
26238 test -z "$as_dir" && as_dir=.
26239 for ac_exec_ext in '' $ac_executable_extensions; do
26240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26241 ac_cv_prog_acx_pthread_config="yes"
26242 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26243 break 2
26244 fi
26245 done
26246 done
26247 IFS=$as_save_IFS
26249 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
26250 fi
26251 fi
26252 acx_pthread_config=$ac_cv_prog_acx_pthread_config
26253 if test -n "$acx_pthread_config"; then
26254 { $as_echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
26255 $as_echo "$acx_pthread_config" >&6; }
26256 else
26257 { $as_echo "$as_me:$LINENO: result: no" >&5
26258 $as_echo "no" >&6; }
26259 fi
26262 if test x"$acx_pthread_config" = xno; then continue; fi
26263 PTHREAD_CFLAGS="`pthread-config --cflags`"
26264 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
26265 ;;
26267 *)
26268 { $as_echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
26269 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
26270 PTHREAD_LIBS="-l$flag"
26271 ;;
26272 esac
26274 save_LIBS="$LIBS"
26275 save_CFLAGS="$CFLAGS"
26276 LIBS="$PTHREAD_LIBS $LIBS"
26277 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
26279 # Check for various functions. We must include pthread.h,
26280 # since some functions may be macros. (On the Sequent, we
26281 # need a special flag -Kthread to make this header compile.)
26282 # We check for pthread_join because it is in -lpthread on IRIX
26283 # while pthread_create is in libc. We check for pthread_attr_init
26284 # due to DEC craziness with -lpthreads. We check for
26285 # pthread_cleanup_push because it is one of the few pthread
26286 # functions on Solaris that doesn't have a non-functional libc stub.
26287 # We try pthread_create on general principles.
26288 cat >conftest.$ac_ext <<_ACEOF
26289 /* confdefs.h. */
26290 _ACEOF
26291 cat confdefs.h >>conftest.$ac_ext
26292 cat >>conftest.$ac_ext <<_ACEOF
26293 /* end confdefs.h. */
26294 #include <pthread.h>
26295 int
26296 main ()
26297 {
26298 pthread_t th; pthread_join(th, 0);
26299 pthread_attr_init(0); pthread_cleanup_push(0, 0);
26300 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
26301 ;
26302 return 0;
26303 }
26304 _ACEOF
26305 rm -f conftest.$ac_objext conftest$ac_exeext
26306 if { (ac_try="$ac_link"
26307 case "(($ac_try" in
26308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26309 *) ac_try_echo=$ac_try;;
26310 esac
26311 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26312 $as_echo "$ac_try_echo") >&5
26313 (eval "$ac_link") 2>conftest.er1
26314 ac_status=$?
26315 grep -v '^ *+' conftest.er1 >conftest.err
26316 rm -f conftest.er1
26317 cat conftest.err >&5
26318 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26319 (exit $ac_status); } && {
26320 test -z "$ac_c_werror_flag" ||
26321 test ! -s conftest.err
26322 } && test -s conftest$ac_exeext && {
26323 test "$cross_compiling" = yes ||
26324 $as_test_x conftest$ac_exeext
26325 }; then
26326 acx_pthread_ok=yes
26327 else
26328 $as_echo "$as_me: failed program was:" >&5
26329 sed 's/^/| /' conftest.$ac_ext >&5
26332 fi
26334 rm -rf conftest.dSYM
26335 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26336 conftest$ac_exeext conftest.$ac_ext
26338 LIBS="$save_LIBS"
26339 CFLAGS="$save_CFLAGS"
26341 { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
26342 $as_echo "$acx_pthread_ok" >&6; }
26343 if test "x$acx_pthread_ok" = xyes; then
26344 break;
26345 fi
26347 PTHREAD_LIBS=""
26348 PTHREAD_CFLAGS=""
26349 done
26350 fi
26352 # Various other checks:
26353 if test "x$acx_pthread_ok" = xyes; then
26354 save_LIBS="$LIBS"
26355 LIBS="$PTHREAD_LIBS $LIBS"
26356 save_CFLAGS="$CFLAGS"
26357 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
26359 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
26360 { $as_echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
26361 $as_echo_n "checking for joinable pthread attribute... " >&6; }
26362 attr_name=unknown
26363 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
26364 cat >conftest.$ac_ext <<_ACEOF
26365 /* confdefs.h. */
26366 _ACEOF
26367 cat confdefs.h >>conftest.$ac_ext
26368 cat >>conftest.$ac_ext <<_ACEOF
26369 /* end confdefs.h. */
26370 #include <pthread.h>
26371 int
26372 main ()
26373 {
26374 int attr=$attr;
26375 ;
26376 return 0;
26377 }
26378 _ACEOF
26379 rm -f conftest.$ac_objext conftest$ac_exeext
26380 if { (ac_try="$ac_link"
26381 case "(($ac_try" in
26382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26383 *) ac_try_echo=$ac_try;;
26384 esac
26385 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26386 $as_echo "$ac_try_echo") >&5
26387 (eval "$ac_link") 2>conftest.er1
26388 ac_status=$?
26389 grep -v '^ *+' conftest.er1 >conftest.err
26390 rm -f conftest.er1
26391 cat conftest.err >&5
26392 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26393 (exit $ac_status); } && {
26394 test -z "$ac_c_werror_flag" ||
26395 test ! -s conftest.err
26396 } && test -s conftest$ac_exeext && {
26397 test "$cross_compiling" = yes ||
26398 $as_test_x conftest$ac_exeext
26399 }; then
26400 attr_name=$attr; break
26401 else
26402 $as_echo "$as_me: failed program was:" >&5
26403 sed 's/^/| /' conftest.$ac_ext >&5
26406 fi
26408 rm -rf conftest.dSYM
26409 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26410 conftest$ac_exeext conftest.$ac_ext
26411 done
26412 { $as_echo "$as_me:$LINENO: result: $attr_name" >&5
26413 $as_echo "$attr_name" >&6; }
26414 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
26416 cat >>confdefs.h <<_ACEOF
26417 #define PTHREAD_CREATE_JOINABLE $attr_name
26418 _ACEOF
26420 fi
26422 { $as_echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
26423 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
26424 x_rflag=no
26425 case "${host_cpu}-${host_os}" in
26426 *-aix* | *-freebsd* | *-darwin*) x_rflag="-D_THREAD_SAFE";;
26427 *solaris* | *-osf* | *-hpux*) x_rflag="-D_REENTRANT";;
26428 *-linux* | *-k*bsd*-gnu*)
26429 if test x"$PTHREAD_CFLAGS" = "x-pthread"; then
26430 # For Linux/gcc "-pthread" implies "-lpthread". We need, however, to make this explicit
26431 # in PTHREAD_LIBS such that a shared library to be built properly depends on libpthread.
26432 PTHREAD_LIBS="-lpthread $PTHREAD_LIBS"
26433 fi;;
26434 esac
26435 { $as_echo "$as_me:$LINENO: result: ${x_rflag}" >&5
26436 $as_echo "${x_rflag}" >&6; }
26437 if test "x$x_rflag" != xno; then
26438 PTHREAD_CFLAGS="$x_rflag $PTHREAD_CFLAGS"
26439 fi
26441 LIBS="$save_LIBS"
26442 CFLAGS="$save_CFLAGS"
26444 # More AIX lossage: must compile with cc_r
26445 # Extract the first word of "cc_r", so it can be a program name with args.
26446 set dummy cc_r; ac_word=$2
26447 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
26448 $as_echo_n "checking for $ac_word... " >&6; }
26449 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
26450 $as_echo_n "(cached) " >&6
26451 else
26452 if test -n "$PTHREAD_CC"; then
26453 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
26454 else
26455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26456 for as_dir in $PATH
26457 do
26458 IFS=$as_save_IFS
26459 test -z "$as_dir" && as_dir=.
26460 for ac_exec_ext in '' $ac_executable_extensions; do
26461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26462 ac_cv_prog_PTHREAD_CC="cc_r"
26463 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26464 break 2
26465 fi
26466 done
26467 done
26468 IFS=$as_save_IFS
26470 test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
26471 fi
26472 fi
26473 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
26474 if test -n "$PTHREAD_CC"; then
26475 { $as_echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
26476 $as_echo "$PTHREAD_CC" >&6; }
26477 else
26478 { $as_echo "$as_me:$LINENO: result: no" >&5
26479 $as_echo "no" >&6; }
26480 fi
26483 else
26484 PTHREAD_CC="$CC"
26485 fi
26491 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
26492 if test x"$acx_pthread_ok" = xyes; then
26494 MULTITHREAD_CFLAGS=$PTHREAD_CFLAGS
26495 MULTITHREAD_LDFLAGS=$PTHREAD_LIBS
26497 :
26498 else
26499 acx_pthread_ok=no
26501 fi
26502 ac_ext=c
26503 ac_cpp='$CPP $CPPFLAGS'
26504 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26505 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26506 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26509 fi
26512 if test "x$x_rflag" != "xno"; then
26513 CPPFLAGS="$CPPFLAGS $x_rflag"
26514 fi
26516 if test $enable_pthread != no; then
26517 BUILD_MULTITHREAD_TRUE=
26518 BUILD_MULTITHREAD_FALSE='#'
26519 else
26520 BUILD_MULTITHREAD_TRUE='#'
26521 BUILD_MULTITHREAD_FALSE=
26522 fi
26525 ac_ext=c
26526 ac_cpp='$CPP $CPPFLAGS'
26527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26531 { $as_echo "$as_me:$LINENO: checking do we need malloc/malloc.h" >&5
26532 $as_echo_n "checking do we need malloc/malloc.h... " >&6; }
26533 cat >conftest.$ac_ext <<_ACEOF
26534 /* confdefs.h. */
26535 _ACEOF
26536 cat confdefs.h >>conftest.$ac_ext
26537 cat >>conftest.$ac_ext <<_ACEOF
26538 /* end confdefs.h. */
26539 #include <stdlib.h>
26540 int
26541 main ()
26542 {
26543 malloc(1)
26545 ;
26546 return 0;
26547 }
26548 _ACEOF
26549 rm -f conftest.$ac_objext conftest$ac_exeext
26550 if { (ac_try="$ac_link"
26551 case "(($ac_try" in
26552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26553 *) ac_try_echo=$ac_try;;
26554 esac
26555 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26556 $as_echo "$ac_try_echo") >&5
26557 (eval "$ac_link") 2>conftest.er1
26558 ac_status=$?
26559 grep -v '^ *+' conftest.er1 >conftest.err
26560 rm -f conftest.er1
26561 cat conftest.err >&5
26562 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26563 (exit $ac_status); } && {
26564 test -z "$ac_c_werror_flag" ||
26565 test ! -s conftest.err
26566 } && test -s conftest$ac_exeext && {
26567 test "$cross_compiling" = yes ||
26568 $as_test_x conftest$ac_exeext
26569 }; then
26570 { $as_echo "$as_me:$LINENO: result: nope, works out of the box" >&5
26571 $as_echo "nope, works out of the box" >&6; }
26572 else
26573 $as_echo "$as_me: failed program was:" >&5
26574 sed 's/^/| /' conftest.$ac_ext >&5
26576 cat >conftest.$ac_ext <<_ACEOF
26577 /* confdefs.h. */
26578 _ACEOF
26579 cat confdefs.h >>conftest.$ac_ext
26580 cat >>conftest.$ac_ext <<_ACEOF
26581 /* end confdefs.h. */
26582 #include <stdlib.h>
26583 #include <malloc/malloc.h>
26584 int
26585 main ()
26586 {
26587 malloc(1)
26589 ;
26590 return 0;
26591 }
26592 _ACEOF
26593 rm -f conftest.$ac_objext conftest$ac_exeext
26594 if { (ac_try="$ac_link"
26595 case "(($ac_try" in
26596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26597 *) ac_try_echo=$ac_try;;
26598 esac
26599 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26600 $as_echo "$ac_try_echo") >&5
26601 (eval "$ac_link") 2>conftest.er1
26602 ac_status=$?
26603 grep -v '^ *+' conftest.er1 >conftest.err
26604 rm -f conftest.er1
26605 cat conftest.err >&5
26606 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26607 (exit $ac_status); } && {
26608 test -z "$ac_c_werror_flag" ||
26609 test ! -s conftest.err
26610 } && test -s conftest$ac_exeext && {
26611 test "$cross_compiling" = yes ||
26612 $as_test_x conftest$ac_exeext
26613 }; then
26615 cat >>confdefs.h <<\_ACEOF
26616 #define MUST_HAVE_MALLOC_MALLOC_H 1
26617 _ACEOF
26619 { $as_echo "$as_me:$LINENO: result: yes we do" >&5
26620 $as_echo "yes we do" >&6; }
26621 else
26622 $as_echo "$as_me: failed program was:" >&5
26623 sed 's/^/| /' conftest.$ac_ext >&5
26625 { { $as_echo "$as_me:$LINENO: error: Can not figure how to compile malloc" >&5
26626 $as_echo "$as_me: error: Can not figure how to compile malloc" >&2;}
26627 { (exit 1); exit 1; }; }
26629 fi
26631 rm -rf conftest.dSYM
26632 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26633 conftest$ac_exeext conftest.$ac_ext
26636 fi
26638 rm -rf conftest.dSYM
26639 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26640 conftest$ac_exeext conftest.$ac_ext
26643 cat >>confdefs.h <<\_ACEOF
26644 #define TIME_T_IS_LONG /**/
26645 _ACEOF
26648 cat >>confdefs.h <<\_ACEOF
26649 #define TIME_T_IS_LONG_LONG /**/
26650 _ACEOF
26652 { $as_echo "$as_me:$LINENO: checking the type of time_t" >&5
26653 $as_echo_n "checking the type of time_t... " >&6; }
26654 if test "$cross_compiling" = yes; then
26655 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26656 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26657 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
26658 See \`config.log' for more details." >&5
26659 $as_echo "$as_me: error: cannot run test program while cross compiling
26660 See \`config.log' for more details." >&2;}
26661 { (exit 1); exit 1; }; }; }
26662 else
26663 cat >conftest.$ac_ext <<_ACEOF
26664 /* confdefs.h. */
26665 _ACEOF
26666 cat confdefs.h >>conftest.$ac_ext
26667 cat >>conftest.$ac_ext <<_ACEOF
26668 /* end confdefs.h. */
26669 #include <time.h>
26670 int
26671 main ()
26672 {
26673 if (sizeof(long) != sizeof(time_t)) return 1;
26675 ;
26676 return 0;
26677 }
26678 _ACEOF
26679 rm -f conftest$ac_exeext
26680 if { (ac_try="$ac_link"
26681 case "(($ac_try" in
26682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26683 *) ac_try_echo=$ac_try;;
26684 esac
26685 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26686 $as_echo "$ac_try_echo") >&5
26687 (eval "$ac_link") 2>&5
26688 ac_status=$?
26689 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26690 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26691 { (case "(($ac_try" in
26692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26693 *) ac_try_echo=$ac_try;;
26694 esac
26695 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26696 $as_echo "$ac_try_echo") >&5
26697 (eval "$ac_try") 2>&5
26698 ac_status=$?
26699 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26700 (exit $ac_status); }; }; then
26701 { $as_echo "$as_me:$LINENO: result: time_t is long" >&5
26702 $as_echo "time_t is long" >&6; }
26703 cat >>confdefs.h <<\_ACEOF
26704 #define TIME_T_IS_LONG 1
26705 _ACEOF
26708 else
26709 $as_echo "$as_me: program exited with status $ac_status" >&5
26710 $as_echo "$as_me: failed program was:" >&5
26711 sed 's/^/| /' conftest.$ac_ext >&5
26713 ( exit $ac_status )
26714 if test "$cross_compiling" = yes; then
26715 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26716 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26717 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
26718 See \`config.log' for more details." >&5
26719 $as_echo "$as_me: error: cannot run test program while cross compiling
26720 See \`config.log' for more details." >&2;}
26721 { (exit 1); exit 1; }; }; }
26722 else
26723 cat >conftest.$ac_ext <<_ACEOF
26724 /* confdefs.h. */
26725 _ACEOF
26726 cat confdefs.h >>conftest.$ac_ext
26727 cat >>conftest.$ac_ext <<_ACEOF
26728 /* end confdefs.h. */
26729 #include <time.h>
26730 int
26731 main ()
26732 {
26733 if (sizeof(long long) != sizeof(time_t)) return 1;
26735 ;
26736 return 0;
26737 }
26738 _ACEOF
26739 rm -f conftest$ac_exeext
26740 if { (ac_try="$ac_link"
26741 case "(($ac_try" in
26742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26743 *) ac_try_echo=$ac_try;;
26744 esac
26745 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26746 $as_echo "$ac_try_echo") >&5
26747 (eval "$ac_link") 2>&5
26748 ac_status=$?
26749 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26750 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26751 { (case "(($ac_try" in
26752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26753 *) ac_try_echo=$ac_try;;
26754 esac
26755 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26756 $as_echo "$ac_try_echo") >&5
26757 (eval "$ac_try") 2>&5
26758 ac_status=$?
26759 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26760 (exit $ac_status); }; }; then
26762 { $as_echo "$as_me:$LINENO: result: time_t is long long" >&5
26763 $as_echo "time_t is long long" >&6; }
26764 cat >>confdefs.h <<\_ACEOF
26765 #define TIME_T_IS_LONG_LONG 1
26766 _ACEOF
26769 else
26770 $as_echo "$as_me: program exited with status $ac_status" >&5
26771 $as_echo "$as_me: failed program was:" >&5
26772 sed 's/^/| /' conftest.$ac_ext >&5
26774 ( exit $ac_status )
26775 { { $as_echo "$as_me:$LINENO: error: can not figure type of time_t" >&5
26776 $as_echo "$as_me: error: can not figure type of time_t" >&2;}
26777 { (exit 1); exit 1; }; }
26779 fi
26780 rm -rf conftest.dSYM
26781 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26782 fi
26787 fi
26788 rm -rf conftest.dSYM
26789 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26790 fi
26794 ac_ext=c
26795 ac_cpp='$CPP $CPPFLAGS'
26796 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26797 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26798 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26802 case $TERM in
26803 # for the most important terminal types we directly know the sequences
26804 xterm|xterm*|vt220|vt220*)
26805 T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
26806 T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
26807 ;;
26808 vt100|vt100*|cygwin)
26809 T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
26810 T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
26811 ;;
26812 *)
26813 T_MD=''
26814 T_ME=''
26815 ;;
26816 esac
26817 { $as_echo "$as_me:$LINENO: result: " >&5
26818 $as_echo "" >&6; }
26819 { $as_echo "$as_me:$LINENO: result: ${T_MD}Find 3rd-Party Libraries${T_ME}" >&5
26820 $as_echo "${T_MD}Find 3rd-Party Libraries${T_ME}" >&6; }
26823 # Check whether --enable-libdbi was given.
26824 if test "${enable_libdbi+set}" = set; then
26825 enableval=$enable_libdbi; have_libdbi=no
26826 else
26828 XXX=$LIBS
26829 LIBS="$LIBS -ldbi -ldl"
26830 { $as_echo "$as_me:$LINENO: checking for libdbi" >&5
26831 $as_echo_n "checking for libdbi... " >&6; }
26832 cat >conftest.$ac_ext <<_ACEOF
26833 /* confdefs.h. */
26834 _ACEOF
26835 cat confdefs.h >>conftest.$ac_ext
26836 cat >>conftest.$ac_ext <<_ACEOF
26837 /* end confdefs.h. */
26838 #include <dbi/dbi.h>
26839 int
26840 main ()
26841 {
26842 dbi_initialize(NULL)
26844 ;
26845 return 0;
26846 }
26848 _ACEOF
26849 rm -f conftest.$ac_objext conftest$ac_exeext
26850 if { (ac_try="$ac_link"
26851 case "(($ac_try" in
26852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26853 *) ac_try_echo=$ac_try;;
26854 esac
26855 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26856 $as_echo "$ac_try_echo") >&5
26857 (eval "$ac_link") 2>conftest.er1
26858 ac_status=$?
26859 grep -v '^ *+' conftest.er1 >conftest.err
26860 rm -f conftest.er1
26861 cat conftest.err >&5
26862 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26863 (exit $ac_status); } && {
26864 test -z "$ac_c_werror_flag" ||
26865 test ! -s conftest.err
26866 } && test -s conftest$ac_exeext && {
26867 test "$cross_compiling" = yes ||
26868 $as_test_x conftest$ac_exeext
26869 }; then
26871 cat >>confdefs.h <<\_ACEOF
26872 #define HAVE_LIBDBI 1
26873 _ACEOF
26875 { $as_echo "$as_me:$LINENO: result: yes" >&5
26876 $as_echo "yes" >&6; }
26877 have_libdbi=yes
26879 else
26880 $as_echo "$as_me: failed program was:" >&5
26881 sed 's/^/| /' conftest.$ac_ext >&5
26883 LIBS=$XXX
26884 { $as_echo "$as_me:$LINENO: result: no" >&5
26885 $as_echo "no" >&6; }
26886 have_libdbi=no
26889 fi
26891 rm -rf conftest.dSYM
26892 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26893 conftest$ac_exeext conftest.$ac_ext
26895 fi
26897 if test $have_libdbi != no; then
26898 BUILD_LIBDBI_TRUE=
26899 BUILD_LIBDBI_FALSE='#'
26900 else
26901 BUILD_LIBDBI_TRUE='#'
26902 BUILD_LIBDBI_FALSE=
26903 fi
26906 if test $enable_rrdcgi != no; then
26907 BUILD_RRDCGI_TRUE=
26908 BUILD_RRDCGI_FALSE='#'
26909 else
26910 BUILD_RRDCGI_TRUE='#'
26911 BUILD_RRDCGI_FALSE=
26912 fi
26916 CORE_LIBS="$LIBS"
26919 ac_ext=c
26920 ac_cpp='$CPP $CPPFLAGS'
26921 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26922 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26923 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26925 EX_CHECK_STATE=NO
26926 ex_check_save_LIBS=${LIBS}
26927 ex_check_save_CPPFLAGS=${CPPFLAGS}
26928 ex_check_save_LDFLAGS=${LDFLAGS}
26929 if test "x""" != "x"; then
26930 CPPFLAGS="$CPPFLAGS -I"""
26931 fi
26932 { $as_echo "$as_me:$LINENO: checking for cairo_font_options_create in -lcairo" >&5
26933 $as_echo_n "checking for cairo_font_options_create in -lcairo... " >&6; }
26934 if test "${ac_cv_lib_cairo_cairo_font_options_create+set}" = set; then
26935 $as_echo_n "(cached) " >&6
26936 else
26937 ac_check_lib_save_LIBS=$LIBS
26938 LIBS="-lcairo $LIBS"
26939 cat >conftest.$ac_ext <<_ACEOF
26940 /* confdefs.h. */
26941 _ACEOF
26942 cat confdefs.h >>conftest.$ac_ext
26943 cat >>conftest.$ac_ext <<_ACEOF
26944 /* end confdefs.h. */
26946 /* Override any GCC internal prototype to avoid an error.
26947 Use char because int might match the return type of a GCC
26948 builtin and then its argument prototype would still apply. */
26949 #ifdef __cplusplus
26950 extern "C"
26951 #endif
26952 char cairo_font_options_create ();
26953 int
26954 main ()
26955 {
26956 return cairo_font_options_create ();
26957 ;
26958 return 0;
26959 }
26960 _ACEOF
26961 rm -f conftest.$ac_objext conftest$ac_exeext
26962 if { (ac_try="$ac_link"
26963 case "(($ac_try" in
26964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26965 *) ac_try_echo=$ac_try;;
26966 esac
26967 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26968 $as_echo "$ac_try_echo") >&5
26969 (eval "$ac_link") 2>conftest.er1
26970 ac_status=$?
26971 grep -v '^ *+' conftest.er1 >conftest.err
26972 rm -f conftest.er1
26973 cat conftest.err >&5
26974 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26975 (exit $ac_status); } && {
26976 test -z "$ac_c_werror_flag" ||
26977 test ! -s conftest.err
26978 } && test -s conftest$ac_exeext && {
26979 test "$cross_compiling" = yes ||
26980 $as_test_x conftest$ac_exeext
26981 }; then
26982 ac_cv_lib_cairo_cairo_font_options_create=yes
26983 else
26984 $as_echo "$as_me: failed program was:" >&5
26985 sed 's/^/| /' conftest.$ac_ext >&5
26987 ac_cv_lib_cairo_cairo_font_options_create=no
26988 fi
26990 rm -rf conftest.dSYM
26991 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26992 conftest$ac_exeext conftest.$ac_ext
26993 LIBS=$ac_check_lib_save_LIBS
26994 fi
26995 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cairo_cairo_font_options_create" >&5
26996 $as_echo "$ac_cv_lib_cairo_cairo_font_options_create" >&6; }
26997 if test "x$ac_cv_lib_cairo_cairo_font_options_create" = x""yes; then
26999 if test "${ac_cv_header_cairo_h+set}" = set; then
27000 { $as_echo "$as_me:$LINENO: checking for cairo.h" >&5
27001 $as_echo_n "checking for cairo.h... " >&6; }
27002 if test "${ac_cv_header_cairo_h+set}" = set; then
27003 $as_echo_n "(cached) " >&6
27004 fi
27005 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_cairo_h" >&5
27006 $as_echo "$ac_cv_header_cairo_h" >&6; }
27007 else
27008 # Is the header compilable?
27009 { $as_echo "$as_me:$LINENO: checking cairo.h usability" >&5
27010 $as_echo_n "checking cairo.h usability... " >&6; }
27011 cat >conftest.$ac_ext <<_ACEOF
27012 /* confdefs.h. */
27013 _ACEOF
27014 cat confdefs.h >>conftest.$ac_ext
27015 cat >>conftest.$ac_ext <<_ACEOF
27016 /* end confdefs.h. */
27017 $ac_includes_default
27018 #include <cairo.h>
27019 _ACEOF
27020 rm -f conftest.$ac_objext
27021 if { (ac_try="$ac_compile"
27022 case "(($ac_try" in
27023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27024 *) ac_try_echo=$ac_try;;
27025 esac
27026 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27027 $as_echo "$ac_try_echo") >&5
27028 (eval "$ac_compile") 2>conftest.er1
27029 ac_status=$?
27030 grep -v '^ *+' conftest.er1 >conftest.err
27031 rm -f conftest.er1
27032 cat conftest.err >&5
27033 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27034 (exit $ac_status); } && {
27035 test -z "$ac_c_werror_flag" ||
27036 test ! -s conftest.err
27037 } && test -s conftest.$ac_objext; then
27038 ac_header_compiler=yes
27039 else
27040 $as_echo "$as_me: failed program was:" >&5
27041 sed 's/^/| /' conftest.$ac_ext >&5
27043 ac_header_compiler=no
27044 fi
27046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27047 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27048 $as_echo "$ac_header_compiler" >&6; }
27050 # Is the header present?
27051 { $as_echo "$as_me:$LINENO: checking cairo.h presence" >&5
27052 $as_echo_n "checking cairo.h presence... " >&6; }
27053 cat >conftest.$ac_ext <<_ACEOF
27054 /* confdefs.h. */
27055 _ACEOF
27056 cat confdefs.h >>conftest.$ac_ext
27057 cat >>conftest.$ac_ext <<_ACEOF
27058 /* end confdefs.h. */
27059 #include <cairo.h>
27060 _ACEOF
27061 if { (ac_try="$ac_cpp conftest.$ac_ext"
27062 case "(($ac_try" in
27063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27064 *) ac_try_echo=$ac_try;;
27065 esac
27066 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27067 $as_echo "$ac_try_echo") >&5
27068 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27069 ac_status=$?
27070 grep -v '^ *+' conftest.er1 >conftest.err
27071 rm -f conftest.er1
27072 cat conftest.err >&5
27073 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27074 (exit $ac_status); } >/dev/null && {
27075 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27076 test ! -s conftest.err
27077 }; then
27078 ac_header_preproc=yes
27079 else
27080 $as_echo "$as_me: failed program was:" >&5
27081 sed 's/^/| /' conftest.$ac_ext >&5
27083 ac_header_preproc=no
27084 fi
27086 rm -f conftest.err conftest.$ac_ext
27087 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27088 $as_echo "$ac_header_preproc" >&6; }
27090 # So? What about this header?
27091 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27092 yes:no: )
27093 { $as_echo "$as_me:$LINENO: WARNING: cairo.h: accepted by the compiler, rejected by the preprocessor!" >&5
27094 $as_echo "$as_me: WARNING: cairo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27095 { $as_echo "$as_me:$LINENO: WARNING: cairo.h: proceeding with the compiler's result" >&5
27096 $as_echo "$as_me: WARNING: cairo.h: proceeding with the compiler's result" >&2;}
27097 ac_header_preproc=yes
27098 ;;
27099 no:yes:* )
27100 { $as_echo "$as_me:$LINENO: WARNING: cairo.h: present but cannot be compiled" >&5
27101 $as_echo "$as_me: WARNING: cairo.h: present but cannot be compiled" >&2;}
27102 { $as_echo "$as_me:$LINENO: WARNING: cairo.h: check for missing prerequisite headers?" >&5
27103 $as_echo "$as_me: WARNING: cairo.h: check for missing prerequisite headers?" >&2;}
27104 { $as_echo "$as_me:$LINENO: WARNING: cairo.h: see the Autoconf documentation" >&5
27105 $as_echo "$as_me: WARNING: cairo.h: see the Autoconf documentation" >&2;}
27106 { $as_echo "$as_me:$LINENO: WARNING: cairo.h: section \"Present But Cannot Be Compiled\"" >&5
27107 $as_echo "$as_me: WARNING: cairo.h: section \"Present But Cannot Be Compiled\"" >&2;}
27108 { $as_echo "$as_me:$LINENO: WARNING: cairo.h: proceeding with the preprocessor's result" >&5
27109 $as_echo "$as_me: WARNING: cairo.h: proceeding with the preprocessor's result" >&2;}
27110 { $as_echo "$as_me:$LINENO: WARNING: cairo.h: in the future, the compiler will take precedence" >&5
27111 $as_echo "$as_me: WARNING: cairo.h: in the future, the compiler will take precedence" >&2;}
27113 ;;
27114 esac
27115 { $as_echo "$as_me:$LINENO: checking for cairo.h" >&5
27116 $as_echo_n "checking for cairo.h... " >&6; }
27117 if test "${ac_cv_header_cairo_h+set}" = set; then
27118 $as_echo_n "(cached) " >&6
27119 else
27120 ac_cv_header_cairo_h=$ac_header_preproc
27121 fi
27122 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_cairo_h" >&5
27123 $as_echo "$ac_cv_header_cairo_h" >&6; }
27125 fi
27126 if test "x$ac_cv_header_cairo_h" = x""yes; then
27127 LIBS="-lcairo ${LIBS}";EX_CHECK_STATE=YES
27128 fi
27131 fi
27133 if test $EX_CHECK_STATE = NO; then
27134 for ac_prog in pkg-config
27135 do
27136 # Extract the first word of "$ac_prog", so it can be a program name with args.
27137 set dummy $ac_prog; ac_word=$2
27138 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
27139 $as_echo_n "checking for $ac_word... " >&6; }
27140 if test "${ac_cv_prog_PKGCONFIG+set}" = set; then
27141 $as_echo_n "(cached) " >&6
27142 else
27143 if test -n "$PKGCONFIG"; then
27144 ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
27145 else
27146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27147 for as_dir in $PATH
27148 do
27149 IFS=$as_save_IFS
27150 test -z "$as_dir" && as_dir=.
27151 for ac_exec_ext in '' $ac_executable_extensions; do
27152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27153 ac_cv_prog_PKGCONFIG="$ac_prog"
27154 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27155 break 2
27156 fi
27157 done
27158 done
27159 IFS=$as_save_IFS
27161 fi
27162 fi
27163 PKGCONFIG=$ac_cv_prog_PKGCONFIG
27164 if test -n "$PKGCONFIG"; then
27165 { $as_echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
27166 $as_echo "$PKGCONFIG" >&6; }
27167 else
27168 { $as_echo "$as_me:$LINENO: result: no" >&5
27169 $as_echo "no" >&6; }
27170 fi
27173 test -n "$PKGCONFIG" && break
27174 done
27175 test -n "$PKGCONFIG" || PKGCONFIG="no"
27177 if test "$PKGCONFIG" != "no"; then
27178 if $PKGCONFIG --exists cairo-png; then
27179 CPPFLAGS=${CPPFLAGS}" "`$PKGCONFIG --cflags cairo-png`
27180 LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-L cairo-png`
27181 LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-other cairo-png`
27182 LIBS=${LIBS}" "`$PKGCONFIG --libs-only-l cairo-png`
27183 unset ac_cv_lib_`echo cairo | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`_cairo_font_options_create
27184 { $as_echo "$as_me:$LINENO: checking for cairo_font_options_create in -lcairo" >&5
27185 $as_echo_n "checking for cairo_font_options_create in -lcairo... " >&6; }
27186 if test "${ac_cv_lib_cairo_cairo_font_options_create+set}" = set; then
27187 $as_echo_n "(cached) " >&6
27188 else
27189 ac_check_lib_save_LIBS=$LIBS
27190 LIBS="-lcairo $LIBS"
27191 cat >conftest.$ac_ext <<_ACEOF
27192 /* confdefs.h. */
27193 _ACEOF
27194 cat confdefs.h >>conftest.$ac_ext
27195 cat >>conftest.$ac_ext <<_ACEOF
27196 /* end confdefs.h. */
27198 /* Override any GCC internal prototype to avoid an error.
27199 Use char because int might match the return type of a GCC
27200 builtin and then its argument prototype would still apply. */
27201 #ifdef __cplusplus
27202 extern "C"
27203 #endif
27204 char cairo_font_options_create ();
27205 int
27206 main ()
27207 {
27208 return cairo_font_options_create ();
27209 ;
27210 return 0;
27211 }
27212 _ACEOF
27213 rm -f conftest.$ac_objext conftest$ac_exeext
27214 if { (ac_try="$ac_link"
27215 case "(($ac_try" in
27216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27217 *) ac_try_echo=$ac_try;;
27218 esac
27219 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27220 $as_echo "$ac_try_echo") >&5
27221 (eval "$ac_link") 2>conftest.er1
27222 ac_status=$?
27223 grep -v '^ *+' conftest.er1 >conftest.err
27224 rm -f conftest.er1
27225 cat conftest.err >&5
27226 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27227 (exit $ac_status); } && {
27228 test -z "$ac_c_werror_flag" ||
27229 test ! -s conftest.err
27230 } && test -s conftest$ac_exeext && {
27231 test "$cross_compiling" = yes ||
27232 $as_test_x conftest$ac_exeext
27233 }; then
27234 ac_cv_lib_cairo_cairo_font_options_create=yes
27235 else
27236 $as_echo "$as_me: failed program was:" >&5
27237 sed 's/^/| /' conftest.$ac_ext >&5
27239 ac_cv_lib_cairo_cairo_font_options_create=no
27240 fi
27242 rm -rf conftest.dSYM
27243 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27244 conftest$ac_exeext conftest.$ac_ext
27245 LIBS=$ac_check_lib_save_LIBS
27246 fi
27247 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cairo_cairo_font_options_create" >&5
27248 $as_echo "$ac_cv_lib_cairo_cairo_font_options_create" >&6; }
27249 if test "x$ac_cv_lib_cairo_cairo_font_options_create" = x""yes; then
27251 unset ac_cv_header_`echo cairo.h | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`
27252 if test "${ac_cv_header_cairo_h+set}" = set; then
27253 { $as_echo "$as_me:$LINENO: checking for cairo.h" >&5
27254 $as_echo_n "checking for cairo.h... " >&6; }
27255 if test "${ac_cv_header_cairo_h+set}" = set; then
27256 $as_echo_n "(cached) " >&6
27257 fi
27258 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_cairo_h" >&5
27259 $as_echo "$ac_cv_header_cairo_h" >&6; }
27260 else
27261 # Is the header compilable?
27262 { $as_echo "$as_me:$LINENO: checking cairo.h usability" >&5
27263 $as_echo_n "checking cairo.h usability... " >&6; }
27264 cat >conftest.$ac_ext <<_ACEOF
27265 /* confdefs.h. */
27266 _ACEOF
27267 cat confdefs.h >>conftest.$ac_ext
27268 cat >>conftest.$ac_ext <<_ACEOF
27269 /* end confdefs.h. */
27270 $ac_includes_default
27271 #include <cairo.h>
27272 _ACEOF
27273 rm -f conftest.$ac_objext
27274 if { (ac_try="$ac_compile"
27275 case "(($ac_try" in
27276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27277 *) ac_try_echo=$ac_try;;
27278 esac
27279 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27280 $as_echo "$ac_try_echo") >&5
27281 (eval "$ac_compile") 2>conftest.er1
27282 ac_status=$?
27283 grep -v '^ *+' conftest.er1 >conftest.err
27284 rm -f conftest.er1
27285 cat conftest.err >&5
27286 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27287 (exit $ac_status); } && {
27288 test -z "$ac_c_werror_flag" ||
27289 test ! -s conftest.err
27290 } && test -s conftest.$ac_objext; then
27291 ac_header_compiler=yes
27292 else
27293 $as_echo "$as_me: failed program was:" >&5
27294 sed 's/^/| /' conftest.$ac_ext >&5
27296 ac_header_compiler=no
27297 fi
27299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27300 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27301 $as_echo "$ac_header_compiler" >&6; }
27303 # Is the header present?
27304 { $as_echo "$as_me:$LINENO: checking cairo.h presence" >&5
27305 $as_echo_n "checking cairo.h presence... " >&6; }
27306 cat >conftest.$ac_ext <<_ACEOF
27307 /* confdefs.h. */
27308 _ACEOF
27309 cat confdefs.h >>conftest.$ac_ext
27310 cat >>conftest.$ac_ext <<_ACEOF
27311 /* end confdefs.h. */
27312 #include <cairo.h>
27313 _ACEOF
27314 if { (ac_try="$ac_cpp conftest.$ac_ext"
27315 case "(($ac_try" in
27316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27317 *) ac_try_echo=$ac_try;;
27318 esac
27319 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27320 $as_echo "$ac_try_echo") >&5
27321 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27322 ac_status=$?
27323 grep -v '^ *+' conftest.er1 >conftest.err
27324 rm -f conftest.er1
27325 cat conftest.err >&5
27326 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27327 (exit $ac_status); } >/dev/null && {
27328 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27329 test ! -s conftest.err
27330 }; then
27331 ac_header_preproc=yes
27332 else
27333 $as_echo "$as_me: failed program was:" >&5
27334 sed 's/^/| /' conftest.$ac_ext >&5
27336 ac_header_preproc=no
27337 fi
27339 rm -f conftest.err conftest.$ac_ext
27340 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27341 $as_echo "$ac_header_preproc" >&6; }
27343 # So? What about this header?
27344 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27345 yes:no: )
27346 { $as_echo "$as_me:$LINENO: WARNING: cairo.h: accepted by the compiler, rejected by the preprocessor!" >&5
27347 $as_echo "$as_me: WARNING: cairo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27348 { $as_echo "$as_me:$LINENO: WARNING: cairo.h: proceeding with the compiler's result" >&5
27349 $as_echo "$as_me: WARNING: cairo.h: proceeding with the compiler's result" >&2;}
27350 ac_header_preproc=yes
27351 ;;
27352 no:yes:* )
27353 { $as_echo "$as_me:$LINENO: WARNING: cairo.h: present but cannot be compiled" >&5
27354 $as_echo "$as_me: WARNING: cairo.h: present but cannot be compiled" >&2;}
27355 { $as_echo "$as_me:$LINENO: WARNING: cairo.h: check for missing prerequisite headers?" >&5
27356 $as_echo "$as_me: WARNING: cairo.h: check for missing prerequisite headers?" >&2;}
27357 { $as_echo "$as_me:$LINENO: WARNING: cairo.h: see the Autoconf documentation" >&5
27358 $as_echo "$as_me: WARNING: cairo.h: see the Autoconf documentation" >&2;}
27359 { $as_echo "$as_me:$LINENO: WARNING: cairo.h: section \"Present But Cannot Be Compiled\"" >&5
27360 $as_echo "$as_me: WARNING: cairo.h: section \"Present But Cannot Be Compiled\"" >&2;}
27361 { $as_echo "$as_me:$LINENO: WARNING: cairo.h: proceeding with the preprocessor's result" >&5
27362 $as_echo "$as_me: WARNING: cairo.h: proceeding with the preprocessor's result" >&2;}
27363 { $as_echo "$as_me:$LINENO: WARNING: cairo.h: in the future, the compiler will take precedence" >&5
27364 $as_echo "$as_me: WARNING: cairo.h: in the future, the compiler will take precedence" >&2;}
27366 ;;
27367 esac
27368 { $as_echo "$as_me:$LINENO: checking for cairo.h" >&5
27369 $as_echo_n "checking for cairo.h... " >&6; }
27370 if test "${ac_cv_header_cairo_h+set}" = set; then
27371 $as_echo_n "(cached) " >&6
27372 else
27373 ac_cv_header_cairo_h=$ac_header_preproc
27374 fi
27375 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_cairo_h" >&5
27376 $as_echo "$ac_cv_header_cairo_h" >&6; }
27378 fi
27379 if test "x$ac_cv_header_cairo_h" = x""yes; then
27380 EX_CHECK_STATE=YES
27381 fi
27385 fi
27387 else
27388 { $as_echo "$as_me:$LINENO: WARNING:
27389 ----------------------------------------------------------------------------
27390 * I found a copy of pkgconfig, but there is no cairo-png.pc file around.
27391 You may want to set the PKG_CONFIG_PATH variable to point to its
27392 location.
27393 ----------------------------------------------------------------------------
27394 " >&5
27395 $as_echo "$as_me: WARNING:
27396 ----------------------------------------------------------------------------
27397 * I found a copy of pkgconfig, but there is no cairo-png.pc file around.
27398 You may want to set the PKG_CONFIG_PATH variable to point to its
27399 location.
27400 ----------------------------------------------------------------------------
27401 " >&2;}
27402 fi
27403 fi
27404 fi
27406 if test ${EX_CHECK_STATE} = NO; then
27407 { $as_echo "$as_me:$LINENO: WARNING:
27408 ----------------------------------------------------------------------------
27409 * I could not find a working copy of cairo-png. Check config.log for hints on why
27410 this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
27411 so that compiler and the linker can find libcairo and its header files. If
27412 you have not installed cairo-png, you can get it either from its original home on
27414 http://cairographics.org/releases/
27416 You can find also find an archive copy on
27418 http://oss.oetiker.ch/rrdtool/pub/libs
27420 The last tested version of cairo-png is 1.4.6.
27422 LIBS=$LIBS
27423 LDFLAGS=$LDFLAGS
27424 CPPFLAGS=$CPPFLAGS
27426 ----------------------------------------------------------------------------
27427 " >&5
27428 $as_echo "$as_me: WARNING:
27429 ----------------------------------------------------------------------------
27430 * I could not find a working copy of cairo-png. Check config.log for hints on why
27431 this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
27432 so that compiler and the linker can find libcairo and its header files. If
27433 you have not installed cairo-png, you can get it either from its original home on
27435 http://cairographics.org/releases/
27437 You can find also find an archive copy on
27439 http://oss.oetiker.ch/rrdtool/pub/libs
27441 The last tested version of cairo-png is 1.4.6.
27443 LIBS=$LIBS
27444 LDFLAGS=$LDFLAGS
27445 CPPFLAGS=$CPPFLAGS
27447 ----------------------------------------------------------------------------
27448 " >&2;}
27449 EX_CHECK_ALL_ERR=YES
27450 LIBS="${ex_check_save_LIBS}"
27451 CPPFLAGS="${ex_check_save_CPPFLAGS}"
27452 LDFLAGS="${ex_check_save_LDFLAGS}"
27453 fi
27454 ac_ext=c
27455 ac_cpp='$CPP $CPPFLAGS'
27456 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27457 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27458 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27463 ac_ext=c
27464 ac_cpp='$CPP $CPPFLAGS'
27465 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27466 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27467 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27469 EX_CHECK_STATE=NO
27470 ex_check_save_LIBS=${LIBS}
27471 ex_check_save_CPPFLAGS=${CPPFLAGS}
27472 ex_check_save_LDFLAGS=${LDFLAGS}
27473 if test "x""" != "x"; then
27474 CPPFLAGS="$CPPFLAGS -I"""
27475 fi
27476 { $as_echo "$as_me:$LINENO: checking for cairo_svg_surface_create in -lcairo" >&5
27477 $as_echo_n "checking for cairo_svg_surface_create in -lcairo... " >&6; }
27478 if test "${ac_cv_lib_cairo_cairo_svg_surface_create+set}" = set; then
27479 $as_echo_n "(cached) " >&6
27480 else
27481 ac_check_lib_save_LIBS=$LIBS
27482 LIBS="-lcairo $LIBS"
27483 cat >conftest.$ac_ext <<_ACEOF
27484 /* confdefs.h. */
27485 _ACEOF
27486 cat confdefs.h >>conftest.$ac_ext
27487 cat >>conftest.$ac_ext <<_ACEOF
27488 /* end confdefs.h. */
27490 /* Override any GCC internal prototype to avoid an error.
27491 Use char because int might match the return type of a GCC
27492 builtin and then its argument prototype would still apply. */
27493 #ifdef __cplusplus
27494 extern "C"
27495 #endif
27496 char cairo_svg_surface_create ();
27497 int
27498 main ()
27499 {
27500 return cairo_svg_surface_create ();
27501 ;
27502 return 0;
27503 }
27504 _ACEOF
27505 rm -f conftest.$ac_objext conftest$ac_exeext
27506 if { (ac_try="$ac_link"
27507 case "(($ac_try" in
27508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27509 *) ac_try_echo=$ac_try;;
27510 esac
27511 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27512 $as_echo "$ac_try_echo") >&5
27513 (eval "$ac_link") 2>conftest.er1
27514 ac_status=$?
27515 grep -v '^ *+' conftest.er1 >conftest.err
27516 rm -f conftest.er1
27517 cat conftest.err >&5
27518 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27519 (exit $ac_status); } && {
27520 test -z "$ac_c_werror_flag" ||
27521 test ! -s conftest.err
27522 } && test -s conftest$ac_exeext && {
27523 test "$cross_compiling" = yes ||
27524 $as_test_x conftest$ac_exeext
27525 }; then
27526 ac_cv_lib_cairo_cairo_svg_surface_create=yes
27527 else
27528 $as_echo "$as_me: failed program was:" >&5
27529 sed 's/^/| /' conftest.$ac_ext >&5
27531 ac_cv_lib_cairo_cairo_svg_surface_create=no
27532 fi
27534 rm -rf conftest.dSYM
27535 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27536 conftest$ac_exeext conftest.$ac_ext
27537 LIBS=$ac_check_lib_save_LIBS
27538 fi
27539 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cairo_cairo_svg_surface_create" >&5
27540 $as_echo "$ac_cv_lib_cairo_cairo_svg_surface_create" >&6; }
27541 if test "x$ac_cv_lib_cairo_cairo_svg_surface_create" = x""yes; then
27543 if test "${ac_cv_header_cairo_svg_h+set}" = set; then
27544 { $as_echo "$as_me:$LINENO: checking for cairo-svg.h" >&5
27545 $as_echo_n "checking for cairo-svg.h... " >&6; }
27546 if test "${ac_cv_header_cairo_svg_h+set}" = set; then
27547 $as_echo_n "(cached) " >&6
27548 fi
27549 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_cairo_svg_h" >&5
27550 $as_echo "$ac_cv_header_cairo_svg_h" >&6; }
27551 else
27552 # Is the header compilable?
27553 { $as_echo "$as_me:$LINENO: checking cairo-svg.h usability" >&5
27554 $as_echo_n "checking cairo-svg.h usability... " >&6; }
27555 cat >conftest.$ac_ext <<_ACEOF
27556 /* confdefs.h. */
27557 _ACEOF
27558 cat confdefs.h >>conftest.$ac_ext
27559 cat >>conftest.$ac_ext <<_ACEOF
27560 /* end confdefs.h. */
27561 $ac_includes_default
27562 #include <cairo-svg.h>
27563 _ACEOF
27564 rm -f conftest.$ac_objext
27565 if { (ac_try="$ac_compile"
27566 case "(($ac_try" in
27567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27568 *) ac_try_echo=$ac_try;;
27569 esac
27570 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27571 $as_echo "$ac_try_echo") >&5
27572 (eval "$ac_compile") 2>conftest.er1
27573 ac_status=$?
27574 grep -v '^ *+' conftest.er1 >conftest.err
27575 rm -f conftest.er1
27576 cat conftest.err >&5
27577 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27578 (exit $ac_status); } && {
27579 test -z "$ac_c_werror_flag" ||
27580 test ! -s conftest.err
27581 } && test -s conftest.$ac_objext; then
27582 ac_header_compiler=yes
27583 else
27584 $as_echo "$as_me: failed program was:" >&5
27585 sed 's/^/| /' conftest.$ac_ext >&5
27587 ac_header_compiler=no
27588 fi
27590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27591 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27592 $as_echo "$ac_header_compiler" >&6; }
27594 # Is the header present?
27595 { $as_echo "$as_me:$LINENO: checking cairo-svg.h presence" >&5
27596 $as_echo_n "checking cairo-svg.h presence... " >&6; }
27597 cat >conftest.$ac_ext <<_ACEOF
27598 /* confdefs.h. */
27599 _ACEOF
27600 cat confdefs.h >>conftest.$ac_ext
27601 cat >>conftest.$ac_ext <<_ACEOF
27602 /* end confdefs.h. */
27603 #include <cairo-svg.h>
27604 _ACEOF
27605 if { (ac_try="$ac_cpp conftest.$ac_ext"
27606 case "(($ac_try" in
27607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27608 *) ac_try_echo=$ac_try;;
27609 esac
27610 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27611 $as_echo "$ac_try_echo") >&5
27612 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27613 ac_status=$?
27614 grep -v '^ *+' conftest.er1 >conftest.err
27615 rm -f conftest.er1
27616 cat conftest.err >&5
27617 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27618 (exit $ac_status); } >/dev/null && {
27619 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27620 test ! -s conftest.err
27621 }; then
27622 ac_header_preproc=yes
27623 else
27624 $as_echo "$as_me: failed program was:" >&5
27625 sed 's/^/| /' conftest.$ac_ext >&5
27627 ac_header_preproc=no
27628 fi
27630 rm -f conftest.err conftest.$ac_ext
27631 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27632 $as_echo "$ac_header_preproc" >&6; }
27634 # So? What about this header?
27635 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27636 yes:no: )
27637 { $as_echo "$as_me:$LINENO: WARNING: cairo-svg.h: accepted by the compiler, rejected by the preprocessor!" >&5
27638 $as_echo "$as_me: WARNING: cairo-svg.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27639 { $as_echo "$as_me:$LINENO: WARNING: cairo-svg.h: proceeding with the compiler's result" >&5
27640 $as_echo "$as_me: WARNING: cairo-svg.h: proceeding with the compiler's result" >&2;}
27641 ac_header_preproc=yes
27642 ;;
27643 no:yes:* )
27644 { $as_echo "$as_me:$LINENO: WARNING: cairo-svg.h: present but cannot be compiled" >&5
27645 $as_echo "$as_me: WARNING: cairo-svg.h: present but cannot be compiled" >&2;}
27646 { $as_echo "$as_me:$LINENO: WARNING: cairo-svg.h: check for missing prerequisite headers?" >&5
27647 $as_echo "$as_me: WARNING: cairo-svg.h: check for missing prerequisite headers?" >&2;}
27648 { $as_echo "$as_me:$LINENO: WARNING: cairo-svg.h: see the Autoconf documentation" >&5
27649 $as_echo "$as_me: WARNING: cairo-svg.h: see the Autoconf documentation" >&2;}
27650 { $as_echo "$as_me:$LINENO: WARNING: cairo-svg.h: section \"Present But Cannot Be Compiled\"" >&5
27651 $as_echo "$as_me: WARNING: cairo-svg.h: section \"Present But Cannot Be Compiled\"" >&2;}
27652 { $as_echo "$as_me:$LINENO: WARNING: cairo-svg.h: proceeding with the preprocessor's result" >&5
27653 $as_echo "$as_me: WARNING: cairo-svg.h: proceeding with the preprocessor's result" >&2;}
27654 { $as_echo "$as_me:$LINENO: WARNING: cairo-svg.h: in the future, the compiler will take precedence" >&5
27655 $as_echo "$as_me: WARNING: cairo-svg.h: in the future, the compiler will take precedence" >&2;}
27657 ;;
27658 esac
27659 { $as_echo "$as_me:$LINENO: checking for cairo-svg.h" >&5
27660 $as_echo_n "checking for cairo-svg.h... " >&6; }
27661 if test "${ac_cv_header_cairo_svg_h+set}" = set; then
27662 $as_echo_n "(cached) " >&6
27663 else
27664 ac_cv_header_cairo_svg_h=$ac_header_preproc
27665 fi
27666 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_cairo_svg_h" >&5
27667 $as_echo "$ac_cv_header_cairo_svg_h" >&6; }
27669 fi
27670 if test "x$ac_cv_header_cairo_svg_h" = x""yes; then
27671 LIBS="-lcairo ${LIBS}";EX_CHECK_STATE=YES
27672 fi
27675 fi
27677 if test $EX_CHECK_STATE = NO; then
27678 for ac_prog in pkg-config
27679 do
27680 # Extract the first word of "$ac_prog", so it can be a program name with args.
27681 set dummy $ac_prog; ac_word=$2
27682 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
27683 $as_echo_n "checking for $ac_word... " >&6; }
27684 if test "${ac_cv_prog_PKGCONFIG+set}" = set; then
27685 $as_echo_n "(cached) " >&6
27686 else
27687 if test -n "$PKGCONFIG"; then
27688 ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
27689 else
27690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27691 for as_dir in $PATH
27692 do
27693 IFS=$as_save_IFS
27694 test -z "$as_dir" && as_dir=.
27695 for ac_exec_ext in '' $ac_executable_extensions; do
27696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27697 ac_cv_prog_PKGCONFIG="$ac_prog"
27698 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27699 break 2
27700 fi
27701 done
27702 done
27703 IFS=$as_save_IFS
27705 fi
27706 fi
27707 PKGCONFIG=$ac_cv_prog_PKGCONFIG
27708 if test -n "$PKGCONFIG"; then
27709 { $as_echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
27710 $as_echo "$PKGCONFIG" >&6; }
27711 else
27712 { $as_echo "$as_me:$LINENO: result: no" >&5
27713 $as_echo "no" >&6; }
27714 fi
27717 test -n "$PKGCONFIG" && break
27718 done
27719 test -n "$PKGCONFIG" || PKGCONFIG="no"
27721 if test "$PKGCONFIG" != "no"; then
27722 if $PKGCONFIG --exists cairo-svg; then
27723 CPPFLAGS=${CPPFLAGS}" "`$PKGCONFIG --cflags cairo-svg`
27724 LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-L cairo-svg`
27725 LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-other cairo-svg`
27726 LIBS=${LIBS}" "`$PKGCONFIG --libs-only-l cairo-svg`
27727 unset ac_cv_lib_`echo cairo | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`_cairo_svg_surface_create
27728 { $as_echo "$as_me:$LINENO: checking for cairo_svg_surface_create in -lcairo" >&5
27729 $as_echo_n "checking for cairo_svg_surface_create in -lcairo... " >&6; }
27730 if test "${ac_cv_lib_cairo_cairo_svg_surface_create+set}" = set; then
27731 $as_echo_n "(cached) " >&6
27732 else
27733 ac_check_lib_save_LIBS=$LIBS
27734 LIBS="-lcairo $LIBS"
27735 cat >conftest.$ac_ext <<_ACEOF
27736 /* confdefs.h. */
27737 _ACEOF
27738 cat confdefs.h >>conftest.$ac_ext
27739 cat >>conftest.$ac_ext <<_ACEOF
27740 /* end confdefs.h. */
27742 /* Override any GCC internal prototype to avoid an error.
27743 Use char because int might match the return type of a GCC
27744 builtin and then its argument prototype would still apply. */
27745 #ifdef __cplusplus
27746 extern "C"
27747 #endif
27748 char cairo_svg_surface_create ();
27749 int
27750 main ()
27751 {
27752 return cairo_svg_surface_create ();
27753 ;
27754 return 0;
27755 }
27756 _ACEOF
27757 rm -f conftest.$ac_objext conftest$ac_exeext
27758 if { (ac_try="$ac_link"
27759 case "(($ac_try" in
27760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27761 *) ac_try_echo=$ac_try;;
27762 esac
27763 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27764 $as_echo "$ac_try_echo") >&5
27765 (eval "$ac_link") 2>conftest.er1
27766 ac_status=$?
27767 grep -v '^ *+' conftest.er1 >conftest.err
27768 rm -f conftest.er1
27769 cat conftest.err >&5
27770 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27771 (exit $ac_status); } && {
27772 test -z "$ac_c_werror_flag" ||
27773 test ! -s conftest.err
27774 } && test -s conftest$ac_exeext && {
27775 test "$cross_compiling" = yes ||
27776 $as_test_x conftest$ac_exeext
27777 }; then
27778 ac_cv_lib_cairo_cairo_svg_surface_create=yes
27779 else
27780 $as_echo "$as_me: failed program was:" >&5
27781 sed 's/^/| /' conftest.$ac_ext >&5
27783 ac_cv_lib_cairo_cairo_svg_surface_create=no
27784 fi
27786 rm -rf conftest.dSYM
27787 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27788 conftest$ac_exeext conftest.$ac_ext
27789 LIBS=$ac_check_lib_save_LIBS
27790 fi
27791 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cairo_cairo_svg_surface_create" >&5
27792 $as_echo "$ac_cv_lib_cairo_cairo_svg_surface_create" >&6; }
27793 if test "x$ac_cv_lib_cairo_cairo_svg_surface_create" = x""yes; then
27795 unset ac_cv_header_`echo cairo-svg.h | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`
27796 if test "${ac_cv_header_cairo_svg_h+set}" = set; then
27797 { $as_echo "$as_me:$LINENO: checking for cairo-svg.h" >&5
27798 $as_echo_n "checking for cairo-svg.h... " >&6; }
27799 if test "${ac_cv_header_cairo_svg_h+set}" = set; then
27800 $as_echo_n "(cached) " >&6
27801 fi
27802 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_cairo_svg_h" >&5
27803 $as_echo "$ac_cv_header_cairo_svg_h" >&6; }
27804 else
27805 # Is the header compilable?
27806 { $as_echo "$as_me:$LINENO: checking cairo-svg.h usability" >&5
27807 $as_echo_n "checking cairo-svg.h usability... " >&6; }
27808 cat >conftest.$ac_ext <<_ACEOF
27809 /* confdefs.h. */
27810 _ACEOF
27811 cat confdefs.h >>conftest.$ac_ext
27812 cat >>conftest.$ac_ext <<_ACEOF
27813 /* end confdefs.h. */
27814 $ac_includes_default
27815 #include <cairo-svg.h>
27816 _ACEOF
27817 rm -f conftest.$ac_objext
27818 if { (ac_try="$ac_compile"
27819 case "(($ac_try" in
27820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27821 *) ac_try_echo=$ac_try;;
27822 esac
27823 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27824 $as_echo "$ac_try_echo") >&5
27825 (eval "$ac_compile") 2>conftest.er1
27826 ac_status=$?
27827 grep -v '^ *+' conftest.er1 >conftest.err
27828 rm -f conftest.er1
27829 cat conftest.err >&5
27830 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27831 (exit $ac_status); } && {
27832 test -z "$ac_c_werror_flag" ||
27833 test ! -s conftest.err
27834 } && test -s conftest.$ac_objext; then
27835 ac_header_compiler=yes
27836 else
27837 $as_echo "$as_me: failed program was:" >&5
27838 sed 's/^/| /' conftest.$ac_ext >&5
27840 ac_header_compiler=no
27841 fi
27843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27844 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27845 $as_echo "$ac_header_compiler" >&6; }
27847 # Is the header present?
27848 { $as_echo "$as_me:$LINENO: checking cairo-svg.h presence" >&5
27849 $as_echo_n "checking cairo-svg.h presence... " >&6; }
27850 cat >conftest.$ac_ext <<_ACEOF
27851 /* confdefs.h. */
27852 _ACEOF
27853 cat confdefs.h >>conftest.$ac_ext
27854 cat >>conftest.$ac_ext <<_ACEOF
27855 /* end confdefs.h. */
27856 #include <cairo-svg.h>
27857 _ACEOF
27858 if { (ac_try="$ac_cpp conftest.$ac_ext"
27859 case "(($ac_try" in
27860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27861 *) ac_try_echo=$ac_try;;
27862 esac
27863 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27864 $as_echo "$ac_try_echo") >&5
27865 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27866 ac_status=$?
27867 grep -v '^ *+' conftest.er1 >conftest.err
27868 rm -f conftest.er1
27869 cat conftest.err >&5
27870 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27871 (exit $ac_status); } >/dev/null && {
27872 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27873 test ! -s conftest.err
27874 }; then
27875 ac_header_preproc=yes
27876 else
27877 $as_echo "$as_me: failed program was:" >&5
27878 sed 's/^/| /' conftest.$ac_ext >&5
27880 ac_header_preproc=no
27881 fi
27883 rm -f conftest.err conftest.$ac_ext
27884 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27885 $as_echo "$ac_header_preproc" >&6; }
27887 # So? What about this header?
27888 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27889 yes:no: )
27890 { $as_echo "$as_me:$LINENO: WARNING: cairo-svg.h: accepted by the compiler, rejected by the preprocessor!" >&5
27891 $as_echo "$as_me: WARNING: cairo-svg.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27892 { $as_echo "$as_me:$LINENO: WARNING: cairo-svg.h: proceeding with the compiler's result" >&5
27893 $as_echo "$as_me: WARNING: cairo-svg.h: proceeding with the compiler's result" >&2;}
27894 ac_header_preproc=yes
27895 ;;
27896 no:yes:* )
27897 { $as_echo "$as_me:$LINENO: WARNING: cairo-svg.h: present but cannot be compiled" >&5
27898 $as_echo "$as_me: WARNING: cairo-svg.h: present but cannot be compiled" >&2;}
27899 { $as_echo "$as_me:$LINENO: WARNING: cairo-svg.h: check for missing prerequisite headers?" >&5
27900 $as_echo "$as_me: WARNING: cairo-svg.h: check for missing prerequisite headers?" >&2;}
27901 { $as_echo "$as_me:$LINENO: WARNING: cairo-svg.h: see the Autoconf documentation" >&5
27902 $as_echo "$as_me: WARNING: cairo-svg.h: see the Autoconf documentation" >&2;}
27903 { $as_echo "$as_me:$LINENO: WARNING: cairo-svg.h: section \"Present But Cannot Be Compiled\"" >&5
27904 $as_echo "$as_me: WARNING: cairo-svg.h: section \"Present But Cannot Be Compiled\"" >&2;}
27905 { $as_echo "$as_me:$LINENO: WARNING: cairo-svg.h: proceeding with the preprocessor's result" >&5
27906 $as_echo "$as_me: WARNING: cairo-svg.h: proceeding with the preprocessor's result" >&2;}
27907 { $as_echo "$as_me:$LINENO: WARNING: cairo-svg.h: in the future, the compiler will take precedence" >&5
27908 $as_echo "$as_me: WARNING: cairo-svg.h: in the future, the compiler will take precedence" >&2;}
27910 ;;
27911 esac
27912 { $as_echo "$as_me:$LINENO: checking for cairo-svg.h" >&5
27913 $as_echo_n "checking for cairo-svg.h... " >&6; }
27914 if test "${ac_cv_header_cairo_svg_h+set}" = set; then
27915 $as_echo_n "(cached) " >&6
27916 else
27917 ac_cv_header_cairo_svg_h=$ac_header_preproc
27918 fi
27919 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_cairo_svg_h" >&5
27920 $as_echo "$ac_cv_header_cairo_svg_h" >&6; }
27922 fi
27923 if test "x$ac_cv_header_cairo_svg_h" = x""yes; then
27924 EX_CHECK_STATE=YES
27925 fi
27929 fi
27931 else
27932 { $as_echo "$as_me:$LINENO: WARNING:
27933 ----------------------------------------------------------------------------
27934 * I found a copy of pkgconfig, but there is no cairo-svg.pc file around.
27935 You may want to set the PKG_CONFIG_PATH variable to point to its
27936 location.
27937 ----------------------------------------------------------------------------
27938 " >&5
27939 $as_echo "$as_me: WARNING:
27940 ----------------------------------------------------------------------------
27941 * I found a copy of pkgconfig, but there is no cairo-svg.pc file around.
27942 You may want to set the PKG_CONFIG_PATH variable to point to its
27943 location.
27944 ----------------------------------------------------------------------------
27945 " >&2;}
27946 fi
27947 fi
27948 fi
27950 if test ${EX_CHECK_STATE} = NO; then
27951 { $as_echo "$as_me:$LINENO: WARNING:
27952 ----------------------------------------------------------------------------
27953 * I could not find a working copy of cairo-svg. Check config.log for hints on why
27954 this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
27955 so that compiler and the linker can find libcairo and its header files. If
27956 you have not installed cairo-svg, you can get it either from its original home on
27958 http://cairographics.org/releases/
27960 You can find also find an archive copy on
27962 http://oss.oetiker.ch/rrdtool/pub/libs
27964 The last tested version of cairo-svg is 1.4.6.
27966 LIBS=$LIBS
27967 LDFLAGS=$LDFLAGS
27968 CPPFLAGS=$CPPFLAGS
27970 ----------------------------------------------------------------------------
27971 " >&5
27972 $as_echo "$as_me: WARNING:
27973 ----------------------------------------------------------------------------
27974 * I could not find a working copy of cairo-svg. Check config.log for hints on why
27975 this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
27976 so that compiler and the linker can find libcairo and its header files. If
27977 you have not installed cairo-svg, you can get it either from its original home on
27979 http://cairographics.org/releases/
27981 You can find also find an archive copy on
27983 http://oss.oetiker.ch/rrdtool/pub/libs
27985 The last tested version of cairo-svg is 1.4.6.
27987 LIBS=$LIBS
27988 LDFLAGS=$LDFLAGS
27989 CPPFLAGS=$CPPFLAGS
27991 ----------------------------------------------------------------------------
27992 " >&2;}
27993 EX_CHECK_ALL_ERR=YES
27994 LIBS="${ex_check_save_LIBS}"
27995 CPPFLAGS="${ex_check_save_CPPFLAGS}"
27996 LDFLAGS="${ex_check_save_LDFLAGS}"
27997 fi
27998 ac_ext=c
27999 ac_cpp='$CPP $CPPFLAGS'
28000 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28001 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28002 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28007 ac_ext=c
28008 ac_cpp='$CPP $CPPFLAGS'
28009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28013 EX_CHECK_STATE=NO
28014 ex_check_save_LIBS=${LIBS}
28015 ex_check_save_CPPFLAGS=${CPPFLAGS}
28016 ex_check_save_LDFLAGS=${LDFLAGS}
28017 if test "x""" != "x"; then
28018 CPPFLAGS="$CPPFLAGS -I"""
28019 fi
28020 { $as_echo "$as_me:$LINENO: checking for cairo_pdf_surface_create in -lcairo" >&5
28021 $as_echo_n "checking for cairo_pdf_surface_create in -lcairo... " >&6; }
28022 if test "${ac_cv_lib_cairo_cairo_pdf_surface_create+set}" = set; then
28023 $as_echo_n "(cached) " >&6
28024 else
28025 ac_check_lib_save_LIBS=$LIBS
28026 LIBS="-lcairo $LIBS"
28027 cat >conftest.$ac_ext <<_ACEOF
28028 /* confdefs.h. */
28029 _ACEOF
28030 cat confdefs.h >>conftest.$ac_ext
28031 cat >>conftest.$ac_ext <<_ACEOF
28032 /* end confdefs.h. */
28034 /* Override any GCC internal prototype to avoid an error.
28035 Use char because int might match the return type of a GCC
28036 builtin and then its argument prototype would still apply. */
28037 #ifdef __cplusplus
28038 extern "C"
28039 #endif
28040 char cairo_pdf_surface_create ();
28041 int
28042 main ()
28043 {
28044 return cairo_pdf_surface_create ();
28045 ;
28046 return 0;
28047 }
28048 _ACEOF
28049 rm -f conftest.$ac_objext conftest$ac_exeext
28050 if { (ac_try="$ac_link"
28051 case "(($ac_try" in
28052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28053 *) ac_try_echo=$ac_try;;
28054 esac
28055 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28056 $as_echo "$ac_try_echo") >&5
28057 (eval "$ac_link") 2>conftest.er1
28058 ac_status=$?
28059 grep -v '^ *+' conftest.er1 >conftest.err
28060 rm -f conftest.er1
28061 cat conftest.err >&5
28062 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28063 (exit $ac_status); } && {
28064 test -z "$ac_c_werror_flag" ||
28065 test ! -s conftest.err
28066 } && test -s conftest$ac_exeext && {
28067 test "$cross_compiling" = yes ||
28068 $as_test_x conftest$ac_exeext
28069 }; then
28070 ac_cv_lib_cairo_cairo_pdf_surface_create=yes
28071 else
28072 $as_echo "$as_me: failed program was:" >&5
28073 sed 's/^/| /' conftest.$ac_ext >&5
28075 ac_cv_lib_cairo_cairo_pdf_surface_create=no
28076 fi
28078 rm -rf conftest.dSYM
28079 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28080 conftest$ac_exeext conftest.$ac_ext
28081 LIBS=$ac_check_lib_save_LIBS
28082 fi
28083 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cairo_cairo_pdf_surface_create" >&5
28084 $as_echo "$ac_cv_lib_cairo_cairo_pdf_surface_create" >&6; }
28085 if test "x$ac_cv_lib_cairo_cairo_pdf_surface_create" = x""yes; then
28087 if test "${ac_cv_header_cairo_pdf_h+set}" = set; then
28088 { $as_echo "$as_me:$LINENO: checking for cairo-pdf.h" >&5
28089 $as_echo_n "checking for cairo-pdf.h... " >&6; }
28090 if test "${ac_cv_header_cairo_pdf_h+set}" = set; then
28091 $as_echo_n "(cached) " >&6
28092 fi
28093 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_cairo_pdf_h" >&5
28094 $as_echo "$ac_cv_header_cairo_pdf_h" >&6; }
28095 else
28096 # Is the header compilable?
28097 { $as_echo "$as_me:$LINENO: checking cairo-pdf.h usability" >&5
28098 $as_echo_n "checking cairo-pdf.h usability... " >&6; }
28099 cat >conftest.$ac_ext <<_ACEOF
28100 /* confdefs.h. */
28101 _ACEOF
28102 cat confdefs.h >>conftest.$ac_ext
28103 cat >>conftest.$ac_ext <<_ACEOF
28104 /* end confdefs.h. */
28105 $ac_includes_default
28106 #include <cairo-pdf.h>
28107 _ACEOF
28108 rm -f conftest.$ac_objext
28109 if { (ac_try="$ac_compile"
28110 case "(($ac_try" in
28111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28112 *) ac_try_echo=$ac_try;;
28113 esac
28114 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28115 $as_echo "$ac_try_echo") >&5
28116 (eval "$ac_compile") 2>conftest.er1
28117 ac_status=$?
28118 grep -v '^ *+' conftest.er1 >conftest.err
28119 rm -f conftest.er1
28120 cat conftest.err >&5
28121 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28122 (exit $ac_status); } && {
28123 test -z "$ac_c_werror_flag" ||
28124 test ! -s conftest.err
28125 } && test -s conftest.$ac_objext; then
28126 ac_header_compiler=yes
28127 else
28128 $as_echo "$as_me: failed program was:" >&5
28129 sed 's/^/| /' conftest.$ac_ext >&5
28131 ac_header_compiler=no
28132 fi
28134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28135 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28136 $as_echo "$ac_header_compiler" >&6; }
28138 # Is the header present?
28139 { $as_echo "$as_me:$LINENO: checking cairo-pdf.h presence" >&5
28140 $as_echo_n "checking cairo-pdf.h presence... " >&6; }
28141 cat >conftest.$ac_ext <<_ACEOF
28142 /* confdefs.h. */
28143 _ACEOF
28144 cat confdefs.h >>conftest.$ac_ext
28145 cat >>conftest.$ac_ext <<_ACEOF
28146 /* end confdefs.h. */
28147 #include <cairo-pdf.h>
28148 _ACEOF
28149 if { (ac_try="$ac_cpp conftest.$ac_ext"
28150 case "(($ac_try" in
28151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28152 *) ac_try_echo=$ac_try;;
28153 esac
28154 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28155 $as_echo "$ac_try_echo") >&5
28156 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28157 ac_status=$?
28158 grep -v '^ *+' conftest.er1 >conftest.err
28159 rm -f conftest.er1
28160 cat conftest.err >&5
28161 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28162 (exit $ac_status); } >/dev/null && {
28163 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28164 test ! -s conftest.err
28165 }; then
28166 ac_header_preproc=yes
28167 else
28168 $as_echo "$as_me: failed program was:" >&5
28169 sed 's/^/| /' conftest.$ac_ext >&5
28171 ac_header_preproc=no
28172 fi
28174 rm -f conftest.err conftest.$ac_ext
28175 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28176 $as_echo "$ac_header_preproc" >&6; }
28178 # So? What about this header?
28179 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28180 yes:no: )
28181 { $as_echo "$as_me:$LINENO: WARNING: cairo-pdf.h: accepted by the compiler, rejected by the preprocessor!" >&5
28182 $as_echo "$as_me: WARNING: cairo-pdf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28183 { $as_echo "$as_me:$LINENO: WARNING: cairo-pdf.h: proceeding with the compiler's result" >&5
28184 $as_echo "$as_me: WARNING: cairo-pdf.h: proceeding with the compiler's result" >&2;}
28185 ac_header_preproc=yes
28186 ;;
28187 no:yes:* )
28188 { $as_echo "$as_me:$LINENO: WARNING: cairo-pdf.h: present but cannot be compiled" >&5
28189 $as_echo "$as_me: WARNING: cairo-pdf.h: present but cannot be compiled" >&2;}
28190 { $as_echo "$as_me:$LINENO: WARNING: cairo-pdf.h: check for missing prerequisite headers?" >&5
28191 $as_echo "$as_me: WARNING: cairo-pdf.h: check for missing prerequisite headers?" >&2;}
28192 { $as_echo "$as_me:$LINENO: WARNING: cairo-pdf.h: see the Autoconf documentation" >&5
28193 $as_echo "$as_me: WARNING: cairo-pdf.h: see the Autoconf documentation" >&2;}
28194 { $as_echo "$as_me:$LINENO: WARNING: cairo-pdf.h: section \"Present But Cannot Be Compiled\"" >&5
28195 $as_echo "$as_me: WARNING: cairo-pdf.h: section \"Present But Cannot Be Compiled\"" >&2;}
28196 { $as_echo "$as_me:$LINENO: WARNING: cairo-pdf.h: proceeding with the preprocessor's result" >&5
28197 $as_echo "$as_me: WARNING: cairo-pdf.h: proceeding with the preprocessor's result" >&2;}
28198 { $as_echo "$as_me:$LINENO: WARNING: cairo-pdf.h: in the future, the compiler will take precedence" >&5
28199 $as_echo "$as_me: WARNING: cairo-pdf.h: in the future, the compiler will take precedence" >&2;}
28201 ;;
28202 esac
28203 { $as_echo "$as_me:$LINENO: checking for cairo-pdf.h" >&5
28204 $as_echo_n "checking for cairo-pdf.h... " >&6; }
28205 if test "${ac_cv_header_cairo_pdf_h+set}" = set; then
28206 $as_echo_n "(cached) " >&6
28207 else
28208 ac_cv_header_cairo_pdf_h=$ac_header_preproc
28209 fi
28210 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_cairo_pdf_h" >&5
28211 $as_echo "$ac_cv_header_cairo_pdf_h" >&6; }
28213 fi
28214 if test "x$ac_cv_header_cairo_pdf_h" = x""yes; then
28215 LIBS="-lcairo ${LIBS}";EX_CHECK_STATE=YES
28216 fi
28219 fi
28221 if test $EX_CHECK_STATE = NO; then
28222 for ac_prog in pkg-config
28223 do
28224 # Extract the first word of "$ac_prog", so it can be a program name with args.
28225 set dummy $ac_prog; ac_word=$2
28226 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28227 $as_echo_n "checking for $ac_word... " >&6; }
28228 if test "${ac_cv_prog_PKGCONFIG+set}" = set; then
28229 $as_echo_n "(cached) " >&6
28230 else
28231 if test -n "$PKGCONFIG"; then
28232 ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
28233 else
28234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28235 for as_dir in $PATH
28236 do
28237 IFS=$as_save_IFS
28238 test -z "$as_dir" && as_dir=.
28239 for ac_exec_ext in '' $ac_executable_extensions; do
28240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28241 ac_cv_prog_PKGCONFIG="$ac_prog"
28242 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28243 break 2
28244 fi
28245 done
28246 done
28247 IFS=$as_save_IFS
28249 fi
28250 fi
28251 PKGCONFIG=$ac_cv_prog_PKGCONFIG
28252 if test -n "$PKGCONFIG"; then
28253 { $as_echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
28254 $as_echo "$PKGCONFIG" >&6; }
28255 else
28256 { $as_echo "$as_me:$LINENO: result: no" >&5
28257 $as_echo "no" >&6; }
28258 fi
28261 test -n "$PKGCONFIG" && break
28262 done
28263 test -n "$PKGCONFIG" || PKGCONFIG="no"
28265 if test "$PKGCONFIG" != "no"; then
28266 if $PKGCONFIG --exists cairo-pdf; then
28267 CPPFLAGS=${CPPFLAGS}" "`$PKGCONFIG --cflags cairo-pdf`
28268 LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-L cairo-pdf`
28269 LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-other cairo-pdf`
28270 LIBS=${LIBS}" "`$PKGCONFIG --libs-only-l cairo-pdf`
28271 unset ac_cv_lib_`echo cairo | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`_cairo_pdf_surface_create
28272 { $as_echo "$as_me:$LINENO: checking for cairo_pdf_surface_create in -lcairo" >&5
28273 $as_echo_n "checking for cairo_pdf_surface_create in -lcairo... " >&6; }
28274 if test "${ac_cv_lib_cairo_cairo_pdf_surface_create+set}" = set; then
28275 $as_echo_n "(cached) " >&6
28276 else
28277 ac_check_lib_save_LIBS=$LIBS
28278 LIBS="-lcairo $LIBS"
28279 cat >conftest.$ac_ext <<_ACEOF
28280 /* confdefs.h. */
28281 _ACEOF
28282 cat confdefs.h >>conftest.$ac_ext
28283 cat >>conftest.$ac_ext <<_ACEOF
28284 /* end confdefs.h. */
28286 /* Override any GCC internal prototype to avoid an error.
28287 Use char because int might match the return type of a GCC
28288 builtin and then its argument prototype would still apply. */
28289 #ifdef __cplusplus
28290 extern "C"
28291 #endif
28292 char cairo_pdf_surface_create ();
28293 int
28294 main ()
28295 {
28296 return cairo_pdf_surface_create ();
28297 ;
28298 return 0;
28299 }
28300 _ACEOF
28301 rm -f conftest.$ac_objext conftest$ac_exeext
28302 if { (ac_try="$ac_link"
28303 case "(($ac_try" in
28304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28305 *) ac_try_echo=$ac_try;;
28306 esac
28307 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28308 $as_echo "$ac_try_echo") >&5
28309 (eval "$ac_link") 2>conftest.er1
28310 ac_status=$?
28311 grep -v '^ *+' conftest.er1 >conftest.err
28312 rm -f conftest.er1
28313 cat conftest.err >&5
28314 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28315 (exit $ac_status); } && {
28316 test -z "$ac_c_werror_flag" ||
28317 test ! -s conftest.err
28318 } && test -s conftest$ac_exeext && {
28319 test "$cross_compiling" = yes ||
28320 $as_test_x conftest$ac_exeext
28321 }; then
28322 ac_cv_lib_cairo_cairo_pdf_surface_create=yes
28323 else
28324 $as_echo "$as_me: failed program was:" >&5
28325 sed 's/^/| /' conftest.$ac_ext >&5
28327 ac_cv_lib_cairo_cairo_pdf_surface_create=no
28328 fi
28330 rm -rf conftest.dSYM
28331 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28332 conftest$ac_exeext conftest.$ac_ext
28333 LIBS=$ac_check_lib_save_LIBS
28334 fi
28335 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cairo_cairo_pdf_surface_create" >&5
28336 $as_echo "$ac_cv_lib_cairo_cairo_pdf_surface_create" >&6; }
28337 if test "x$ac_cv_lib_cairo_cairo_pdf_surface_create" = x""yes; then
28339 unset ac_cv_header_`echo cairo-pdf.h | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`
28340 if test "${ac_cv_header_cairo_pdf_h+set}" = set; then
28341 { $as_echo "$as_me:$LINENO: checking for cairo-pdf.h" >&5
28342 $as_echo_n "checking for cairo-pdf.h... " >&6; }
28343 if test "${ac_cv_header_cairo_pdf_h+set}" = set; then
28344 $as_echo_n "(cached) " >&6
28345 fi
28346 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_cairo_pdf_h" >&5
28347 $as_echo "$ac_cv_header_cairo_pdf_h" >&6; }
28348 else
28349 # Is the header compilable?
28350 { $as_echo "$as_me:$LINENO: checking cairo-pdf.h usability" >&5
28351 $as_echo_n "checking cairo-pdf.h usability... " >&6; }
28352 cat >conftest.$ac_ext <<_ACEOF
28353 /* confdefs.h. */
28354 _ACEOF
28355 cat confdefs.h >>conftest.$ac_ext
28356 cat >>conftest.$ac_ext <<_ACEOF
28357 /* end confdefs.h. */
28358 $ac_includes_default
28359 #include <cairo-pdf.h>
28360 _ACEOF
28361 rm -f conftest.$ac_objext
28362 if { (ac_try="$ac_compile"
28363 case "(($ac_try" in
28364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28365 *) ac_try_echo=$ac_try;;
28366 esac
28367 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28368 $as_echo "$ac_try_echo") >&5
28369 (eval "$ac_compile") 2>conftest.er1
28370 ac_status=$?
28371 grep -v '^ *+' conftest.er1 >conftest.err
28372 rm -f conftest.er1
28373 cat conftest.err >&5
28374 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28375 (exit $ac_status); } && {
28376 test -z "$ac_c_werror_flag" ||
28377 test ! -s conftest.err
28378 } && test -s conftest.$ac_objext; then
28379 ac_header_compiler=yes
28380 else
28381 $as_echo "$as_me: failed program was:" >&5
28382 sed 's/^/| /' conftest.$ac_ext >&5
28384 ac_header_compiler=no
28385 fi
28387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28388 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28389 $as_echo "$ac_header_compiler" >&6; }
28391 # Is the header present?
28392 { $as_echo "$as_me:$LINENO: checking cairo-pdf.h presence" >&5
28393 $as_echo_n "checking cairo-pdf.h presence... " >&6; }
28394 cat >conftest.$ac_ext <<_ACEOF
28395 /* confdefs.h. */
28396 _ACEOF
28397 cat confdefs.h >>conftest.$ac_ext
28398 cat >>conftest.$ac_ext <<_ACEOF
28399 /* end confdefs.h. */
28400 #include <cairo-pdf.h>
28401 _ACEOF
28402 if { (ac_try="$ac_cpp conftest.$ac_ext"
28403 case "(($ac_try" in
28404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28405 *) ac_try_echo=$ac_try;;
28406 esac
28407 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28408 $as_echo "$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 $as_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 ac_header_preproc=yes
28420 else
28421 $as_echo "$as_me: failed program was:" >&5
28422 sed 's/^/| /' conftest.$ac_ext >&5
28424 ac_header_preproc=no
28425 fi
28427 rm -f conftest.err conftest.$ac_ext
28428 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28429 $as_echo "$ac_header_preproc" >&6; }
28431 # So? What about this header?
28432 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28433 yes:no: )
28434 { $as_echo "$as_me:$LINENO: WARNING: cairo-pdf.h: accepted by the compiler, rejected by the preprocessor!" >&5
28435 $as_echo "$as_me: WARNING: cairo-pdf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28436 { $as_echo "$as_me:$LINENO: WARNING: cairo-pdf.h: proceeding with the compiler's result" >&5
28437 $as_echo "$as_me: WARNING: cairo-pdf.h: proceeding with the compiler's result" >&2;}
28438 ac_header_preproc=yes
28439 ;;
28440 no:yes:* )
28441 { $as_echo "$as_me:$LINENO: WARNING: cairo-pdf.h: present but cannot be compiled" >&5
28442 $as_echo "$as_me: WARNING: cairo-pdf.h: present but cannot be compiled" >&2;}
28443 { $as_echo "$as_me:$LINENO: WARNING: cairo-pdf.h: check for missing prerequisite headers?" >&5
28444 $as_echo "$as_me: WARNING: cairo-pdf.h: check for missing prerequisite headers?" >&2;}
28445 { $as_echo "$as_me:$LINENO: WARNING: cairo-pdf.h: see the Autoconf documentation" >&5
28446 $as_echo "$as_me: WARNING: cairo-pdf.h: see the Autoconf documentation" >&2;}
28447 { $as_echo "$as_me:$LINENO: WARNING: cairo-pdf.h: section \"Present But Cannot Be Compiled\"" >&5
28448 $as_echo "$as_me: WARNING: cairo-pdf.h: section \"Present But Cannot Be Compiled\"" >&2;}
28449 { $as_echo "$as_me:$LINENO: WARNING: cairo-pdf.h: proceeding with the preprocessor's result" >&5
28450 $as_echo "$as_me: WARNING: cairo-pdf.h: proceeding with the preprocessor's result" >&2;}
28451 { $as_echo "$as_me:$LINENO: WARNING: cairo-pdf.h: in the future, the compiler will take precedence" >&5
28452 $as_echo "$as_me: WARNING: cairo-pdf.h: in the future, the compiler will take precedence" >&2;}
28454 ;;
28455 esac
28456 { $as_echo "$as_me:$LINENO: checking for cairo-pdf.h" >&5
28457 $as_echo_n "checking for cairo-pdf.h... " >&6; }
28458 if test "${ac_cv_header_cairo_pdf_h+set}" = set; then
28459 $as_echo_n "(cached) " >&6
28460 else
28461 ac_cv_header_cairo_pdf_h=$ac_header_preproc
28462 fi
28463 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_cairo_pdf_h" >&5
28464 $as_echo "$ac_cv_header_cairo_pdf_h" >&6; }
28466 fi
28467 if test "x$ac_cv_header_cairo_pdf_h" = x""yes; then
28468 EX_CHECK_STATE=YES
28469 fi
28473 fi
28475 else
28476 { $as_echo "$as_me:$LINENO: WARNING:
28477 ----------------------------------------------------------------------------
28478 * I found a copy of pkgconfig, but there is no cairo-pdf.pc file around.
28479 You may want to set the PKG_CONFIG_PATH variable to point to its
28480 location.
28481 ----------------------------------------------------------------------------
28482 " >&5
28483 $as_echo "$as_me: WARNING:
28484 ----------------------------------------------------------------------------
28485 * I found a copy of pkgconfig, but there is no cairo-pdf.pc file around.
28486 You may want to set the PKG_CONFIG_PATH variable to point to its
28487 location.
28488 ----------------------------------------------------------------------------
28489 " >&2;}
28490 fi
28491 fi
28492 fi
28494 if test ${EX_CHECK_STATE} = NO; then
28495 { $as_echo "$as_me:$LINENO: WARNING:
28496 ----------------------------------------------------------------------------
28497 * I could not find a working copy of cairo-pdf. Check config.log for hints on why
28498 this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
28499 so that compiler and the linker can find libcairo and its header files. If
28500 you have not installed cairo-pdf, you can get it either from its original home on
28502 http://cairographics.org/releases/
28504 You can find also find an archive copy on
28506 http://oss.oetiker.ch/rrdtool/pub/libs
28508 The last tested version of cairo-pdf is 1.4.6.
28510 LIBS=$LIBS
28511 LDFLAGS=$LDFLAGS
28512 CPPFLAGS=$CPPFLAGS
28514 ----------------------------------------------------------------------------
28515 " >&5
28516 $as_echo "$as_me: WARNING:
28517 ----------------------------------------------------------------------------
28518 * I could not find a working copy of cairo-pdf. Check config.log for hints on why
28519 this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
28520 so that compiler and the linker can find libcairo and its header files. If
28521 you have not installed cairo-pdf, you can get it either from its original home on
28523 http://cairographics.org/releases/
28525 You can find also find an archive copy on
28527 http://oss.oetiker.ch/rrdtool/pub/libs
28529 The last tested version of cairo-pdf is 1.4.6.
28531 LIBS=$LIBS
28532 LDFLAGS=$LDFLAGS
28533 CPPFLAGS=$CPPFLAGS
28535 ----------------------------------------------------------------------------
28536 " >&2;}
28537 EX_CHECK_ALL_ERR=YES
28538 LIBS="${ex_check_save_LIBS}"
28539 CPPFLAGS="${ex_check_save_CPPFLAGS}"
28540 LDFLAGS="${ex_check_save_LDFLAGS}"
28541 fi
28542 ac_ext=c
28543 ac_cpp='$CPP $CPPFLAGS'
28544 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28545 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28546 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28551 ac_ext=c
28552 ac_cpp='$CPP $CPPFLAGS'
28553 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28554 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28555 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28557 EX_CHECK_STATE=NO
28558 ex_check_save_LIBS=${LIBS}
28559 ex_check_save_CPPFLAGS=${CPPFLAGS}
28560 ex_check_save_LDFLAGS=${LDFLAGS}
28561 if test "x""" != "x"; then
28562 CPPFLAGS="$CPPFLAGS -I"""
28563 fi
28564 { $as_echo "$as_me:$LINENO: checking for cairo_ps_surface_create in -lcairo" >&5
28565 $as_echo_n "checking for cairo_ps_surface_create in -lcairo... " >&6; }
28566 if test "${ac_cv_lib_cairo_cairo_ps_surface_create+set}" = set; then
28567 $as_echo_n "(cached) " >&6
28568 else
28569 ac_check_lib_save_LIBS=$LIBS
28570 LIBS="-lcairo $LIBS"
28571 cat >conftest.$ac_ext <<_ACEOF
28572 /* confdefs.h. */
28573 _ACEOF
28574 cat confdefs.h >>conftest.$ac_ext
28575 cat >>conftest.$ac_ext <<_ACEOF
28576 /* end confdefs.h. */
28578 /* Override any GCC internal prototype to avoid an error.
28579 Use char because int might match the return type of a GCC
28580 builtin and then its argument prototype would still apply. */
28581 #ifdef __cplusplus
28582 extern "C"
28583 #endif
28584 char cairo_ps_surface_create ();
28585 int
28586 main ()
28587 {
28588 return cairo_ps_surface_create ();
28589 ;
28590 return 0;
28591 }
28592 _ACEOF
28593 rm -f conftest.$ac_objext conftest$ac_exeext
28594 if { (ac_try="$ac_link"
28595 case "(($ac_try" in
28596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28597 *) ac_try_echo=$ac_try;;
28598 esac
28599 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28600 $as_echo "$ac_try_echo") >&5
28601 (eval "$ac_link") 2>conftest.er1
28602 ac_status=$?
28603 grep -v '^ *+' conftest.er1 >conftest.err
28604 rm -f conftest.er1
28605 cat conftest.err >&5
28606 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28607 (exit $ac_status); } && {
28608 test -z "$ac_c_werror_flag" ||
28609 test ! -s conftest.err
28610 } && test -s conftest$ac_exeext && {
28611 test "$cross_compiling" = yes ||
28612 $as_test_x conftest$ac_exeext
28613 }; then
28614 ac_cv_lib_cairo_cairo_ps_surface_create=yes
28615 else
28616 $as_echo "$as_me: failed program was:" >&5
28617 sed 's/^/| /' conftest.$ac_ext >&5
28619 ac_cv_lib_cairo_cairo_ps_surface_create=no
28620 fi
28622 rm -rf conftest.dSYM
28623 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28624 conftest$ac_exeext conftest.$ac_ext
28625 LIBS=$ac_check_lib_save_LIBS
28626 fi
28627 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cairo_cairo_ps_surface_create" >&5
28628 $as_echo "$ac_cv_lib_cairo_cairo_ps_surface_create" >&6; }
28629 if test "x$ac_cv_lib_cairo_cairo_ps_surface_create" = x""yes; then
28631 if test "${ac_cv_header_cairo_ps_h+set}" = set; then
28632 { $as_echo "$as_me:$LINENO: checking for cairo-ps.h" >&5
28633 $as_echo_n "checking for cairo-ps.h... " >&6; }
28634 if test "${ac_cv_header_cairo_ps_h+set}" = set; then
28635 $as_echo_n "(cached) " >&6
28636 fi
28637 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_cairo_ps_h" >&5
28638 $as_echo "$ac_cv_header_cairo_ps_h" >&6; }
28639 else
28640 # Is the header compilable?
28641 { $as_echo "$as_me:$LINENO: checking cairo-ps.h usability" >&5
28642 $as_echo_n "checking cairo-ps.h usability... " >&6; }
28643 cat >conftest.$ac_ext <<_ACEOF
28644 /* confdefs.h. */
28645 _ACEOF
28646 cat confdefs.h >>conftest.$ac_ext
28647 cat >>conftest.$ac_ext <<_ACEOF
28648 /* end confdefs.h. */
28649 $ac_includes_default
28650 #include <cairo-ps.h>
28651 _ACEOF
28652 rm -f conftest.$ac_objext
28653 if { (ac_try="$ac_compile"
28654 case "(($ac_try" in
28655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28656 *) ac_try_echo=$ac_try;;
28657 esac
28658 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28659 $as_echo "$ac_try_echo") >&5
28660 (eval "$ac_compile") 2>conftest.er1
28661 ac_status=$?
28662 grep -v '^ *+' conftest.er1 >conftest.err
28663 rm -f conftest.er1
28664 cat conftest.err >&5
28665 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28666 (exit $ac_status); } && {
28667 test -z "$ac_c_werror_flag" ||
28668 test ! -s conftest.err
28669 } && test -s conftest.$ac_objext; then
28670 ac_header_compiler=yes
28671 else
28672 $as_echo "$as_me: failed program was:" >&5
28673 sed 's/^/| /' conftest.$ac_ext >&5
28675 ac_header_compiler=no
28676 fi
28678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28679 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28680 $as_echo "$ac_header_compiler" >&6; }
28682 # Is the header present?
28683 { $as_echo "$as_me:$LINENO: checking cairo-ps.h presence" >&5
28684 $as_echo_n "checking cairo-ps.h presence... " >&6; }
28685 cat >conftest.$ac_ext <<_ACEOF
28686 /* confdefs.h. */
28687 _ACEOF
28688 cat confdefs.h >>conftest.$ac_ext
28689 cat >>conftest.$ac_ext <<_ACEOF
28690 /* end confdefs.h. */
28691 #include <cairo-ps.h>
28692 _ACEOF
28693 if { (ac_try="$ac_cpp conftest.$ac_ext"
28694 case "(($ac_try" in
28695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28696 *) ac_try_echo=$ac_try;;
28697 esac
28698 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28699 $as_echo "$ac_try_echo") >&5
28700 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28701 ac_status=$?
28702 grep -v '^ *+' conftest.er1 >conftest.err
28703 rm -f conftest.er1
28704 cat conftest.err >&5
28705 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28706 (exit $ac_status); } >/dev/null && {
28707 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28708 test ! -s conftest.err
28709 }; then
28710 ac_header_preproc=yes
28711 else
28712 $as_echo "$as_me: failed program was:" >&5
28713 sed 's/^/| /' conftest.$ac_ext >&5
28715 ac_header_preproc=no
28716 fi
28718 rm -f conftest.err conftest.$ac_ext
28719 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28720 $as_echo "$ac_header_preproc" >&6; }
28722 # So? What about this header?
28723 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28724 yes:no: )
28725 { $as_echo "$as_me:$LINENO: WARNING: cairo-ps.h: accepted by the compiler, rejected by the preprocessor!" >&5
28726 $as_echo "$as_me: WARNING: cairo-ps.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28727 { $as_echo "$as_me:$LINENO: WARNING: cairo-ps.h: proceeding with the compiler's result" >&5
28728 $as_echo "$as_me: WARNING: cairo-ps.h: proceeding with the compiler's result" >&2;}
28729 ac_header_preproc=yes
28730 ;;
28731 no:yes:* )
28732 { $as_echo "$as_me:$LINENO: WARNING: cairo-ps.h: present but cannot be compiled" >&5
28733 $as_echo "$as_me: WARNING: cairo-ps.h: present but cannot be compiled" >&2;}
28734 { $as_echo "$as_me:$LINENO: WARNING: cairo-ps.h: check for missing prerequisite headers?" >&5
28735 $as_echo "$as_me: WARNING: cairo-ps.h: check for missing prerequisite headers?" >&2;}
28736 { $as_echo "$as_me:$LINENO: WARNING: cairo-ps.h: see the Autoconf documentation" >&5
28737 $as_echo "$as_me: WARNING: cairo-ps.h: see the Autoconf documentation" >&2;}
28738 { $as_echo "$as_me:$LINENO: WARNING: cairo-ps.h: section \"Present But Cannot Be Compiled\"" >&5
28739 $as_echo "$as_me: WARNING: cairo-ps.h: section \"Present But Cannot Be Compiled\"" >&2;}
28740 { $as_echo "$as_me:$LINENO: WARNING: cairo-ps.h: proceeding with the preprocessor's result" >&5
28741 $as_echo "$as_me: WARNING: cairo-ps.h: proceeding with the preprocessor's result" >&2;}
28742 { $as_echo "$as_me:$LINENO: WARNING: cairo-ps.h: in the future, the compiler will take precedence" >&5
28743 $as_echo "$as_me: WARNING: cairo-ps.h: in the future, the compiler will take precedence" >&2;}
28745 ;;
28746 esac
28747 { $as_echo "$as_me:$LINENO: checking for cairo-ps.h" >&5
28748 $as_echo_n "checking for cairo-ps.h... " >&6; }
28749 if test "${ac_cv_header_cairo_ps_h+set}" = set; then
28750 $as_echo_n "(cached) " >&6
28751 else
28752 ac_cv_header_cairo_ps_h=$ac_header_preproc
28753 fi
28754 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_cairo_ps_h" >&5
28755 $as_echo "$ac_cv_header_cairo_ps_h" >&6; }
28757 fi
28758 if test "x$ac_cv_header_cairo_ps_h" = x""yes; then
28759 LIBS="-lcairo ${LIBS}";EX_CHECK_STATE=YES
28760 fi
28763 fi
28765 if test $EX_CHECK_STATE = NO; then
28766 for ac_prog in pkg-config
28767 do
28768 # Extract the first word of "$ac_prog", so it can be a program name with args.
28769 set dummy $ac_prog; ac_word=$2
28770 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28771 $as_echo_n "checking for $ac_word... " >&6; }
28772 if test "${ac_cv_prog_PKGCONFIG+set}" = set; then
28773 $as_echo_n "(cached) " >&6
28774 else
28775 if test -n "$PKGCONFIG"; then
28776 ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
28777 else
28778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28779 for as_dir in $PATH
28780 do
28781 IFS=$as_save_IFS
28782 test -z "$as_dir" && as_dir=.
28783 for ac_exec_ext in '' $ac_executable_extensions; do
28784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28785 ac_cv_prog_PKGCONFIG="$ac_prog"
28786 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28787 break 2
28788 fi
28789 done
28790 done
28791 IFS=$as_save_IFS
28793 fi
28794 fi
28795 PKGCONFIG=$ac_cv_prog_PKGCONFIG
28796 if test -n "$PKGCONFIG"; then
28797 { $as_echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
28798 $as_echo "$PKGCONFIG" >&6; }
28799 else
28800 { $as_echo "$as_me:$LINENO: result: no" >&5
28801 $as_echo "no" >&6; }
28802 fi
28805 test -n "$PKGCONFIG" && break
28806 done
28807 test -n "$PKGCONFIG" || PKGCONFIG="no"
28809 if test "$PKGCONFIG" != "no"; then
28810 if $PKGCONFIG --exists cairo-ps; then
28811 CPPFLAGS=${CPPFLAGS}" "`$PKGCONFIG --cflags cairo-ps`
28812 LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-L cairo-ps`
28813 LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-other cairo-ps`
28814 LIBS=${LIBS}" "`$PKGCONFIG --libs-only-l cairo-ps`
28815 unset ac_cv_lib_`echo cairo | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`_cairo_ps_surface_create
28816 { $as_echo "$as_me:$LINENO: checking for cairo_ps_surface_create in -lcairo" >&5
28817 $as_echo_n "checking for cairo_ps_surface_create in -lcairo... " >&6; }
28818 if test "${ac_cv_lib_cairo_cairo_ps_surface_create+set}" = set; then
28819 $as_echo_n "(cached) " >&6
28820 else
28821 ac_check_lib_save_LIBS=$LIBS
28822 LIBS="-lcairo $LIBS"
28823 cat >conftest.$ac_ext <<_ACEOF
28824 /* confdefs.h. */
28825 _ACEOF
28826 cat confdefs.h >>conftest.$ac_ext
28827 cat >>conftest.$ac_ext <<_ACEOF
28828 /* end confdefs.h. */
28830 /* Override any GCC internal prototype to avoid an error.
28831 Use char because int might match the return type of a GCC
28832 builtin and then its argument prototype would still apply. */
28833 #ifdef __cplusplus
28834 extern "C"
28835 #endif
28836 char cairo_ps_surface_create ();
28837 int
28838 main ()
28839 {
28840 return cairo_ps_surface_create ();
28841 ;
28842 return 0;
28843 }
28844 _ACEOF
28845 rm -f conftest.$ac_objext conftest$ac_exeext
28846 if { (ac_try="$ac_link"
28847 case "(($ac_try" in
28848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28849 *) ac_try_echo=$ac_try;;
28850 esac
28851 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28852 $as_echo "$ac_try_echo") >&5
28853 (eval "$ac_link") 2>conftest.er1
28854 ac_status=$?
28855 grep -v '^ *+' conftest.er1 >conftest.err
28856 rm -f conftest.er1
28857 cat conftest.err >&5
28858 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28859 (exit $ac_status); } && {
28860 test -z "$ac_c_werror_flag" ||
28861 test ! -s conftest.err
28862 } && test -s conftest$ac_exeext && {
28863 test "$cross_compiling" = yes ||
28864 $as_test_x conftest$ac_exeext
28865 }; then
28866 ac_cv_lib_cairo_cairo_ps_surface_create=yes
28867 else
28868 $as_echo "$as_me: failed program was:" >&5
28869 sed 's/^/| /' conftest.$ac_ext >&5
28871 ac_cv_lib_cairo_cairo_ps_surface_create=no
28872 fi
28874 rm -rf conftest.dSYM
28875 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28876 conftest$ac_exeext conftest.$ac_ext
28877 LIBS=$ac_check_lib_save_LIBS
28878 fi
28879 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cairo_cairo_ps_surface_create" >&5
28880 $as_echo "$ac_cv_lib_cairo_cairo_ps_surface_create" >&6; }
28881 if test "x$ac_cv_lib_cairo_cairo_ps_surface_create" = x""yes; then
28883 unset ac_cv_header_`echo cairo-ps.h | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`
28884 if test "${ac_cv_header_cairo_ps_h+set}" = set; then
28885 { $as_echo "$as_me:$LINENO: checking for cairo-ps.h" >&5
28886 $as_echo_n "checking for cairo-ps.h... " >&6; }
28887 if test "${ac_cv_header_cairo_ps_h+set}" = set; then
28888 $as_echo_n "(cached) " >&6
28889 fi
28890 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_cairo_ps_h" >&5
28891 $as_echo "$ac_cv_header_cairo_ps_h" >&6; }
28892 else
28893 # Is the header compilable?
28894 { $as_echo "$as_me:$LINENO: checking cairo-ps.h usability" >&5
28895 $as_echo_n "checking cairo-ps.h usability... " >&6; }
28896 cat >conftest.$ac_ext <<_ACEOF
28897 /* confdefs.h. */
28898 _ACEOF
28899 cat confdefs.h >>conftest.$ac_ext
28900 cat >>conftest.$ac_ext <<_ACEOF
28901 /* end confdefs.h. */
28902 $ac_includes_default
28903 #include <cairo-ps.h>
28904 _ACEOF
28905 rm -f conftest.$ac_objext
28906 if { (ac_try="$ac_compile"
28907 case "(($ac_try" in
28908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28909 *) ac_try_echo=$ac_try;;
28910 esac
28911 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28912 $as_echo "$ac_try_echo") >&5
28913 (eval "$ac_compile") 2>conftest.er1
28914 ac_status=$?
28915 grep -v '^ *+' conftest.er1 >conftest.err
28916 rm -f conftest.er1
28917 cat conftest.err >&5
28918 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28919 (exit $ac_status); } && {
28920 test -z "$ac_c_werror_flag" ||
28921 test ! -s conftest.err
28922 } && test -s conftest.$ac_objext; then
28923 ac_header_compiler=yes
28924 else
28925 $as_echo "$as_me: failed program was:" >&5
28926 sed 's/^/| /' conftest.$ac_ext >&5
28928 ac_header_compiler=no
28929 fi
28931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28932 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28933 $as_echo "$ac_header_compiler" >&6; }
28935 # Is the header present?
28936 { $as_echo "$as_me:$LINENO: checking cairo-ps.h presence" >&5
28937 $as_echo_n "checking cairo-ps.h presence... " >&6; }
28938 cat >conftest.$ac_ext <<_ACEOF
28939 /* confdefs.h. */
28940 _ACEOF
28941 cat confdefs.h >>conftest.$ac_ext
28942 cat >>conftest.$ac_ext <<_ACEOF
28943 /* end confdefs.h. */
28944 #include <cairo-ps.h>
28945 _ACEOF
28946 if { (ac_try="$ac_cpp conftest.$ac_ext"
28947 case "(($ac_try" in
28948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28949 *) ac_try_echo=$ac_try;;
28950 esac
28951 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28952 $as_echo "$ac_try_echo") >&5
28953 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28954 ac_status=$?
28955 grep -v '^ *+' conftest.er1 >conftest.err
28956 rm -f conftest.er1
28957 cat conftest.err >&5
28958 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28959 (exit $ac_status); } >/dev/null && {
28960 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28961 test ! -s conftest.err
28962 }; then
28963 ac_header_preproc=yes
28964 else
28965 $as_echo "$as_me: failed program was:" >&5
28966 sed 's/^/| /' conftest.$ac_ext >&5
28968 ac_header_preproc=no
28969 fi
28971 rm -f conftest.err conftest.$ac_ext
28972 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28973 $as_echo "$ac_header_preproc" >&6; }
28975 # So? What about this header?
28976 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28977 yes:no: )
28978 { $as_echo "$as_me:$LINENO: WARNING: cairo-ps.h: accepted by the compiler, rejected by the preprocessor!" >&5
28979 $as_echo "$as_me: WARNING: cairo-ps.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28980 { $as_echo "$as_me:$LINENO: WARNING: cairo-ps.h: proceeding with the compiler's result" >&5
28981 $as_echo "$as_me: WARNING: cairo-ps.h: proceeding with the compiler's result" >&2;}
28982 ac_header_preproc=yes
28983 ;;
28984 no:yes:* )
28985 { $as_echo "$as_me:$LINENO: WARNING: cairo-ps.h: present but cannot be compiled" >&5
28986 $as_echo "$as_me: WARNING: cairo-ps.h: present but cannot be compiled" >&2;}
28987 { $as_echo "$as_me:$LINENO: WARNING: cairo-ps.h: check for missing prerequisite headers?" >&5
28988 $as_echo "$as_me: WARNING: cairo-ps.h: check for missing prerequisite headers?" >&2;}
28989 { $as_echo "$as_me:$LINENO: WARNING: cairo-ps.h: see the Autoconf documentation" >&5
28990 $as_echo "$as_me: WARNING: cairo-ps.h: see the Autoconf documentation" >&2;}
28991 { $as_echo "$as_me:$LINENO: WARNING: cairo-ps.h: section \"Present But Cannot Be Compiled\"" >&5
28992 $as_echo "$as_me: WARNING: cairo-ps.h: section \"Present But Cannot Be Compiled\"" >&2;}
28993 { $as_echo "$as_me:$LINENO: WARNING: cairo-ps.h: proceeding with the preprocessor's result" >&5
28994 $as_echo "$as_me: WARNING: cairo-ps.h: proceeding with the preprocessor's result" >&2;}
28995 { $as_echo "$as_me:$LINENO: WARNING: cairo-ps.h: in the future, the compiler will take precedence" >&5
28996 $as_echo "$as_me: WARNING: cairo-ps.h: in the future, the compiler will take precedence" >&2;}
28998 ;;
28999 esac
29000 { $as_echo "$as_me:$LINENO: checking for cairo-ps.h" >&5
29001 $as_echo_n "checking for cairo-ps.h... " >&6; }
29002 if test "${ac_cv_header_cairo_ps_h+set}" = set; then
29003 $as_echo_n "(cached) " >&6
29004 else
29005 ac_cv_header_cairo_ps_h=$ac_header_preproc
29006 fi
29007 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_cairo_ps_h" >&5
29008 $as_echo "$ac_cv_header_cairo_ps_h" >&6; }
29010 fi
29011 if test "x$ac_cv_header_cairo_ps_h" = x""yes; then
29012 EX_CHECK_STATE=YES
29013 fi
29017 fi
29019 else
29020 { $as_echo "$as_me:$LINENO: WARNING:
29021 ----------------------------------------------------------------------------
29022 * I found a copy of pkgconfig, but there is no cairo-ps.pc file around.
29023 You may want to set the PKG_CONFIG_PATH variable to point to its
29024 location.
29025 ----------------------------------------------------------------------------
29026 " >&5
29027 $as_echo "$as_me: WARNING:
29028 ----------------------------------------------------------------------------
29029 * I found a copy of pkgconfig, but there is no cairo-ps.pc file around.
29030 You may want to set the PKG_CONFIG_PATH variable to point to its
29031 location.
29032 ----------------------------------------------------------------------------
29033 " >&2;}
29034 fi
29035 fi
29036 fi
29038 if test ${EX_CHECK_STATE} = NO; then
29039 { $as_echo "$as_me:$LINENO: WARNING:
29040 ----------------------------------------------------------------------------
29041 * I could not find a working copy of cairo-ps. Check config.log for hints on why
29042 this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
29043 so that compiler and the linker can find libcairo and its header files. If
29044 you have not installed cairo-ps, you can get it either from its original home on
29046 http://cairographics.org/releases/
29048 You can find also find an archive copy on
29050 http://oss.oetiker.ch/rrdtool/pub/libs
29052 The last tested version of cairo-ps is 1.4.6.
29054 LIBS=$LIBS
29055 LDFLAGS=$LDFLAGS
29056 CPPFLAGS=$CPPFLAGS
29058 ----------------------------------------------------------------------------
29059 " >&5
29060 $as_echo "$as_me: WARNING:
29061 ----------------------------------------------------------------------------
29062 * I could not find a working copy of cairo-ps. Check config.log for hints on why
29063 this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
29064 so that compiler and the linker can find libcairo and its header files. If
29065 you have not installed cairo-ps, you can get it either from its original home on
29067 http://cairographics.org/releases/
29069 You can find also find an archive copy on
29071 http://oss.oetiker.ch/rrdtool/pub/libs
29073 The last tested version of cairo-ps is 1.4.6.
29075 LIBS=$LIBS
29076 LDFLAGS=$LDFLAGS
29077 CPPFLAGS=$CPPFLAGS
29079 ----------------------------------------------------------------------------
29080 " >&2;}
29081 EX_CHECK_ALL_ERR=YES
29082 LIBS="${ex_check_save_LIBS}"
29083 CPPFLAGS="${ex_check_save_CPPFLAGS}"
29084 LDFLAGS="${ex_check_save_LDFLAGS}"
29085 fi
29086 ac_ext=c
29087 ac_cpp='$CPP $CPPFLAGS'
29088 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29089 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29090 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29095 ac_ext=c
29096 ac_cpp='$CPP $CPPFLAGS'
29097 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29098 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29099 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29101 EX_CHECK_STATE=NO
29102 ex_check_save_LIBS=${LIBS}
29103 ex_check_save_CPPFLAGS=${CPPFLAGS}
29104 ex_check_save_LDFLAGS=${LDFLAGS}
29105 if test "x""" != "x"; then
29106 CPPFLAGS="$CPPFLAGS -I"""
29107 fi
29108 { $as_echo "$as_me:$LINENO: checking for glib_check_version in -lglib-2.0" >&5
29109 $as_echo_n "checking for glib_check_version in -lglib-2.0... " >&6; }
29110 if test "${ac_cv_lib_glib_2_0_glib_check_version+set}" = set; then
29111 $as_echo_n "(cached) " >&6
29112 else
29113 ac_check_lib_save_LIBS=$LIBS
29114 LIBS="-lglib-2.0 $LIBS"
29115 cat >conftest.$ac_ext <<_ACEOF
29116 /* confdefs.h. */
29117 _ACEOF
29118 cat confdefs.h >>conftest.$ac_ext
29119 cat >>conftest.$ac_ext <<_ACEOF
29120 /* end confdefs.h. */
29122 /* Override any GCC internal prototype to avoid an error.
29123 Use char because int might match the return type of a GCC
29124 builtin and then its argument prototype would still apply. */
29125 #ifdef __cplusplus
29126 extern "C"
29127 #endif
29128 char glib_check_version ();
29129 int
29130 main ()
29131 {
29132 return glib_check_version ();
29133 ;
29134 return 0;
29135 }
29136 _ACEOF
29137 rm -f conftest.$ac_objext conftest$ac_exeext
29138 if { (ac_try="$ac_link"
29139 case "(($ac_try" in
29140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29141 *) ac_try_echo=$ac_try;;
29142 esac
29143 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29144 $as_echo "$ac_try_echo") >&5
29145 (eval "$ac_link") 2>conftest.er1
29146 ac_status=$?
29147 grep -v '^ *+' conftest.er1 >conftest.err
29148 rm -f conftest.er1
29149 cat conftest.err >&5
29150 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29151 (exit $ac_status); } && {
29152 test -z "$ac_c_werror_flag" ||
29153 test ! -s conftest.err
29154 } && test -s conftest$ac_exeext && {
29155 test "$cross_compiling" = yes ||
29156 $as_test_x conftest$ac_exeext
29157 }; then
29158 ac_cv_lib_glib_2_0_glib_check_version=yes
29159 else
29160 $as_echo "$as_me: failed program was:" >&5
29161 sed 's/^/| /' conftest.$ac_ext >&5
29163 ac_cv_lib_glib_2_0_glib_check_version=no
29164 fi
29166 rm -rf conftest.dSYM
29167 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29168 conftest$ac_exeext conftest.$ac_ext
29169 LIBS=$ac_check_lib_save_LIBS
29170 fi
29171 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_glib_2_0_glib_check_version" >&5
29172 $as_echo "$ac_cv_lib_glib_2_0_glib_check_version" >&6; }
29173 if test "x$ac_cv_lib_glib_2_0_glib_check_version" = x""yes; then
29175 if test "${ac_cv_header_glib_h+set}" = set; then
29176 { $as_echo "$as_me:$LINENO: checking for glib.h" >&5
29177 $as_echo_n "checking for glib.h... " >&6; }
29178 if test "${ac_cv_header_glib_h+set}" = set; then
29179 $as_echo_n "(cached) " >&6
29180 fi
29181 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_glib_h" >&5
29182 $as_echo "$ac_cv_header_glib_h" >&6; }
29183 else
29184 # Is the header compilable?
29185 { $as_echo "$as_me:$LINENO: checking glib.h usability" >&5
29186 $as_echo_n "checking glib.h usability... " >&6; }
29187 cat >conftest.$ac_ext <<_ACEOF
29188 /* confdefs.h. */
29189 _ACEOF
29190 cat confdefs.h >>conftest.$ac_ext
29191 cat >>conftest.$ac_ext <<_ACEOF
29192 /* end confdefs.h. */
29193 $ac_includes_default
29194 #include <glib.h>
29195 _ACEOF
29196 rm -f conftest.$ac_objext
29197 if { (ac_try="$ac_compile"
29198 case "(($ac_try" in
29199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29200 *) ac_try_echo=$ac_try;;
29201 esac
29202 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29203 $as_echo "$ac_try_echo") >&5
29204 (eval "$ac_compile") 2>conftest.er1
29205 ac_status=$?
29206 grep -v '^ *+' conftest.er1 >conftest.err
29207 rm -f conftest.er1
29208 cat conftest.err >&5
29209 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29210 (exit $ac_status); } && {
29211 test -z "$ac_c_werror_flag" ||
29212 test ! -s conftest.err
29213 } && test -s conftest.$ac_objext; then
29214 ac_header_compiler=yes
29215 else
29216 $as_echo "$as_me: failed program was:" >&5
29217 sed 's/^/| /' conftest.$ac_ext >&5
29219 ac_header_compiler=no
29220 fi
29222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29223 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29224 $as_echo "$ac_header_compiler" >&6; }
29226 # Is the header present?
29227 { $as_echo "$as_me:$LINENO: checking glib.h presence" >&5
29228 $as_echo_n "checking glib.h presence... " >&6; }
29229 cat >conftest.$ac_ext <<_ACEOF
29230 /* confdefs.h. */
29231 _ACEOF
29232 cat confdefs.h >>conftest.$ac_ext
29233 cat >>conftest.$ac_ext <<_ACEOF
29234 /* end confdefs.h. */
29235 #include <glib.h>
29236 _ACEOF
29237 if { (ac_try="$ac_cpp conftest.$ac_ext"
29238 case "(($ac_try" in
29239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29240 *) ac_try_echo=$ac_try;;
29241 esac
29242 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29243 $as_echo "$ac_try_echo") >&5
29244 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29245 ac_status=$?
29246 grep -v '^ *+' conftest.er1 >conftest.err
29247 rm -f conftest.er1
29248 cat conftest.err >&5
29249 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29250 (exit $ac_status); } >/dev/null && {
29251 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29252 test ! -s conftest.err
29253 }; then
29254 ac_header_preproc=yes
29255 else
29256 $as_echo "$as_me: failed program was:" >&5
29257 sed 's/^/| /' conftest.$ac_ext >&5
29259 ac_header_preproc=no
29260 fi
29262 rm -f conftest.err conftest.$ac_ext
29263 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29264 $as_echo "$ac_header_preproc" >&6; }
29266 # So? What about this header?
29267 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29268 yes:no: )
29269 { $as_echo "$as_me:$LINENO: WARNING: glib.h: accepted by the compiler, rejected by the preprocessor!" >&5
29270 $as_echo "$as_me: WARNING: glib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29271 { $as_echo "$as_me:$LINENO: WARNING: glib.h: proceeding with the compiler's result" >&5
29272 $as_echo "$as_me: WARNING: glib.h: proceeding with the compiler's result" >&2;}
29273 ac_header_preproc=yes
29274 ;;
29275 no:yes:* )
29276 { $as_echo "$as_me:$LINENO: WARNING: glib.h: present but cannot be compiled" >&5
29277 $as_echo "$as_me: WARNING: glib.h: present but cannot be compiled" >&2;}
29278 { $as_echo "$as_me:$LINENO: WARNING: glib.h: check for missing prerequisite headers?" >&5
29279 $as_echo "$as_me: WARNING: glib.h: check for missing prerequisite headers?" >&2;}
29280 { $as_echo "$as_me:$LINENO: WARNING: glib.h: see the Autoconf documentation" >&5
29281 $as_echo "$as_me: WARNING: glib.h: see the Autoconf documentation" >&2;}
29282 { $as_echo "$as_me:$LINENO: WARNING: glib.h: section \"Present But Cannot Be Compiled\"" >&5
29283 $as_echo "$as_me: WARNING: glib.h: section \"Present But Cannot Be Compiled\"" >&2;}
29284 { $as_echo "$as_me:$LINENO: WARNING: glib.h: proceeding with the preprocessor's result" >&5
29285 $as_echo "$as_me: WARNING: glib.h: proceeding with the preprocessor's result" >&2;}
29286 { $as_echo "$as_me:$LINENO: WARNING: glib.h: in the future, the compiler will take precedence" >&5
29287 $as_echo "$as_me: WARNING: glib.h: in the future, the compiler will take precedence" >&2;}
29289 ;;
29290 esac
29291 { $as_echo "$as_me:$LINENO: checking for glib.h" >&5
29292 $as_echo_n "checking for glib.h... " >&6; }
29293 if test "${ac_cv_header_glib_h+set}" = set; then
29294 $as_echo_n "(cached) " >&6
29295 else
29296 ac_cv_header_glib_h=$ac_header_preproc
29297 fi
29298 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_glib_h" >&5
29299 $as_echo "$ac_cv_header_glib_h" >&6; }
29301 fi
29302 if test "x$ac_cv_header_glib_h" = x""yes; then
29303 LIBS="-lglib-2.0 ${LIBS}";EX_CHECK_STATE=YES
29304 fi
29307 fi
29309 if test $EX_CHECK_STATE = NO; then
29310 for ac_prog in pkg-config
29311 do
29312 # Extract the first word of "$ac_prog", so it can be a program name with args.
29313 set dummy $ac_prog; ac_word=$2
29314 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29315 $as_echo_n "checking for $ac_word... " >&6; }
29316 if test "${ac_cv_prog_PKGCONFIG+set}" = set; then
29317 $as_echo_n "(cached) " >&6
29318 else
29319 if test -n "$PKGCONFIG"; then
29320 ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
29321 else
29322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29323 for as_dir in $PATH
29324 do
29325 IFS=$as_save_IFS
29326 test -z "$as_dir" && as_dir=.
29327 for ac_exec_ext in '' $ac_executable_extensions; do
29328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29329 ac_cv_prog_PKGCONFIG="$ac_prog"
29330 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29331 break 2
29332 fi
29333 done
29334 done
29335 IFS=$as_save_IFS
29337 fi
29338 fi
29339 PKGCONFIG=$ac_cv_prog_PKGCONFIG
29340 if test -n "$PKGCONFIG"; then
29341 { $as_echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
29342 $as_echo "$PKGCONFIG" >&6; }
29343 else
29344 { $as_echo "$as_me:$LINENO: result: no" >&5
29345 $as_echo "no" >&6; }
29346 fi
29349 test -n "$PKGCONFIG" && break
29350 done
29351 test -n "$PKGCONFIG" || PKGCONFIG="no"
29353 if test "$PKGCONFIG" != "no"; then
29354 if $PKGCONFIG --exists glib-2.0; then
29355 CPPFLAGS=${CPPFLAGS}" "`$PKGCONFIG --cflags glib-2.0`
29356 LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-L glib-2.0`
29357 LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-other glib-2.0`
29358 LIBS=${LIBS}" "`$PKGCONFIG --libs-only-l glib-2.0`
29359 unset ac_cv_lib_`echo glib-2.0 | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`_glib_check_version
29360 { $as_echo "$as_me:$LINENO: checking for glib_check_version in -lglib-2.0" >&5
29361 $as_echo_n "checking for glib_check_version in -lglib-2.0... " >&6; }
29362 if test "${ac_cv_lib_glib_2_0_glib_check_version+set}" = set; then
29363 $as_echo_n "(cached) " >&6
29364 else
29365 ac_check_lib_save_LIBS=$LIBS
29366 LIBS="-lglib-2.0 $LIBS"
29367 cat >conftest.$ac_ext <<_ACEOF
29368 /* confdefs.h. */
29369 _ACEOF
29370 cat confdefs.h >>conftest.$ac_ext
29371 cat >>conftest.$ac_ext <<_ACEOF
29372 /* end confdefs.h. */
29374 /* Override any GCC internal prototype to avoid an error.
29375 Use char because int might match the return type of a GCC
29376 builtin and then its argument prototype would still apply. */
29377 #ifdef __cplusplus
29378 extern "C"
29379 #endif
29380 char glib_check_version ();
29381 int
29382 main ()
29383 {
29384 return glib_check_version ();
29385 ;
29386 return 0;
29387 }
29388 _ACEOF
29389 rm -f conftest.$ac_objext conftest$ac_exeext
29390 if { (ac_try="$ac_link"
29391 case "(($ac_try" in
29392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29393 *) ac_try_echo=$ac_try;;
29394 esac
29395 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29396 $as_echo "$ac_try_echo") >&5
29397 (eval "$ac_link") 2>conftest.er1
29398 ac_status=$?
29399 grep -v '^ *+' conftest.er1 >conftest.err
29400 rm -f conftest.er1
29401 cat conftest.err >&5
29402 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29403 (exit $ac_status); } && {
29404 test -z "$ac_c_werror_flag" ||
29405 test ! -s conftest.err
29406 } && test -s conftest$ac_exeext && {
29407 test "$cross_compiling" = yes ||
29408 $as_test_x conftest$ac_exeext
29409 }; then
29410 ac_cv_lib_glib_2_0_glib_check_version=yes
29411 else
29412 $as_echo "$as_me: failed program was:" >&5
29413 sed 's/^/| /' conftest.$ac_ext >&5
29415 ac_cv_lib_glib_2_0_glib_check_version=no
29416 fi
29418 rm -rf conftest.dSYM
29419 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29420 conftest$ac_exeext conftest.$ac_ext
29421 LIBS=$ac_check_lib_save_LIBS
29422 fi
29423 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_glib_2_0_glib_check_version" >&5
29424 $as_echo "$ac_cv_lib_glib_2_0_glib_check_version" >&6; }
29425 if test "x$ac_cv_lib_glib_2_0_glib_check_version" = x""yes; then
29427 unset ac_cv_header_`echo glib.h | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`
29428 if test "${ac_cv_header_glib_h+set}" = set; then
29429 { $as_echo "$as_me:$LINENO: checking for glib.h" >&5
29430 $as_echo_n "checking for glib.h... " >&6; }
29431 if test "${ac_cv_header_glib_h+set}" = set; then
29432 $as_echo_n "(cached) " >&6
29433 fi
29434 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_glib_h" >&5
29435 $as_echo "$ac_cv_header_glib_h" >&6; }
29436 else
29437 # Is the header compilable?
29438 { $as_echo "$as_me:$LINENO: checking glib.h usability" >&5
29439 $as_echo_n "checking glib.h usability... " >&6; }
29440 cat >conftest.$ac_ext <<_ACEOF
29441 /* confdefs.h. */
29442 _ACEOF
29443 cat confdefs.h >>conftest.$ac_ext
29444 cat >>conftest.$ac_ext <<_ACEOF
29445 /* end confdefs.h. */
29446 $ac_includes_default
29447 #include <glib.h>
29448 _ACEOF
29449 rm -f conftest.$ac_objext
29450 if { (ac_try="$ac_compile"
29451 case "(($ac_try" in
29452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29453 *) ac_try_echo=$ac_try;;
29454 esac
29455 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29456 $as_echo "$ac_try_echo") >&5
29457 (eval "$ac_compile") 2>conftest.er1
29458 ac_status=$?
29459 grep -v '^ *+' conftest.er1 >conftest.err
29460 rm -f conftest.er1
29461 cat conftest.err >&5
29462 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29463 (exit $ac_status); } && {
29464 test -z "$ac_c_werror_flag" ||
29465 test ! -s conftest.err
29466 } && test -s conftest.$ac_objext; then
29467 ac_header_compiler=yes
29468 else
29469 $as_echo "$as_me: failed program was:" >&5
29470 sed 's/^/| /' conftest.$ac_ext >&5
29472 ac_header_compiler=no
29473 fi
29475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29476 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29477 $as_echo "$ac_header_compiler" >&6; }
29479 # Is the header present?
29480 { $as_echo "$as_me:$LINENO: checking glib.h presence" >&5
29481 $as_echo_n "checking glib.h presence... " >&6; }
29482 cat >conftest.$ac_ext <<_ACEOF
29483 /* confdefs.h. */
29484 _ACEOF
29485 cat confdefs.h >>conftest.$ac_ext
29486 cat >>conftest.$ac_ext <<_ACEOF
29487 /* end confdefs.h. */
29488 #include <glib.h>
29489 _ACEOF
29490 if { (ac_try="$ac_cpp conftest.$ac_ext"
29491 case "(($ac_try" in
29492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29493 *) ac_try_echo=$ac_try;;
29494 esac
29495 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29496 $as_echo "$ac_try_echo") >&5
29497 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29498 ac_status=$?
29499 grep -v '^ *+' conftest.er1 >conftest.err
29500 rm -f conftest.er1
29501 cat conftest.err >&5
29502 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29503 (exit $ac_status); } >/dev/null && {
29504 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29505 test ! -s conftest.err
29506 }; then
29507 ac_header_preproc=yes
29508 else
29509 $as_echo "$as_me: failed program was:" >&5
29510 sed 's/^/| /' conftest.$ac_ext >&5
29512 ac_header_preproc=no
29513 fi
29515 rm -f conftest.err conftest.$ac_ext
29516 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29517 $as_echo "$ac_header_preproc" >&6; }
29519 # So? What about this header?
29520 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29521 yes:no: )
29522 { $as_echo "$as_me:$LINENO: WARNING: glib.h: accepted by the compiler, rejected by the preprocessor!" >&5
29523 $as_echo "$as_me: WARNING: glib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29524 { $as_echo "$as_me:$LINENO: WARNING: glib.h: proceeding with the compiler's result" >&5
29525 $as_echo "$as_me: WARNING: glib.h: proceeding with the compiler's result" >&2;}
29526 ac_header_preproc=yes
29527 ;;
29528 no:yes:* )
29529 { $as_echo "$as_me:$LINENO: WARNING: glib.h: present but cannot be compiled" >&5
29530 $as_echo "$as_me: WARNING: glib.h: present but cannot be compiled" >&2;}
29531 { $as_echo "$as_me:$LINENO: WARNING: glib.h: check for missing prerequisite headers?" >&5
29532 $as_echo "$as_me: WARNING: glib.h: check for missing prerequisite headers?" >&2;}
29533 { $as_echo "$as_me:$LINENO: WARNING: glib.h: see the Autoconf documentation" >&5
29534 $as_echo "$as_me: WARNING: glib.h: see the Autoconf documentation" >&2;}
29535 { $as_echo "$as_me:$LINENO: WARNING: glib.h: section \"Present But Cannot Be Compiled\"" >&5
29536 $as_echo "$as_me: WARNING: glib.h: section \"Present But Cannot Be Compiled\"" >&2;}
29537 { $as_echo "$as_me:$LINENO: WARNING: glib.h: proceeding with the preprocessor's result" >&5
29538 $as_echo "$as_me: WARNING: glib.h: proceeding with the preprocessor's result" >&2;}
29539 { $as_echo "$as_me:$LINENO: WARNING: glib.h: in the future, the compiler will take precedence" >&5
29540 $as_echo "$as_me: WARNING: glib.h: in the future, the compiler will take precedence" >&2;}
29542 ;;
29543 esac
29544 { $as_echo "$as_me:$LINENO: checking for glib.h" >&5
29545 $as_echo_n "checking for glib.h... " >&6; }
29546 if test "${ac_cv_header_glib_h+set}" = set; then
29547 $as_echo_n "(cached) " >&6
29548 else
29549 ac_cv_header_glib_h=$ac_header_preproc
29550 fi
29551 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_glib_h" >&5
29552 $as_echo "$ac_cv_header_glib_h" >&6; }
29554 fi
29555 if test "x$ac_cv_header_glib_h" = x""yes; then
29556 EX_CHECK_STATE=YES
29557 fi
29561 fi
29563 else
29564 { $as_echo "$as_me:$LINENO: WARNING:
29565 ----------------------------------------------------------------------------
29566 * I found a copy of pkgconfig, but there is no glib-2.0.pc file around.
29567 You may want to set the PKG_CONFIG_PATH variable to point to its
29568 location.
29569 ----------------------------------------------------------------------------
29570 " >&5
29571 $as_echo "$as_me: WARNING:
29572 ----------------------------------------------------------------------------
29573 * I found a copy of pkgconfig, but there is no glib-2.0.pc file around.
29574 You may want to set the PKG_CONFIG_PATH variable to point to its
29575 location.
29576 ----------------------------------------------------------------------------
29577 " >&2;}
29578 fi
29579 fi
29580 fi
29582 if test ${EX_CHECK_STATE} = NO; then
29583 { $as_echo "$as_me:$LINENO: WARNING:
29584 ----------------------------------------------------------------------------
29585 * I could not find a working copy of glib-2.0. Check config.log for hints on why
29586 this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
29587 so that compiler and the linker can find libglib-2.0 and its header files. If
29588 you have not installed glib-2.0, you can get it either from its original home on
29590 ftp://ftp.gtk.org/pub/glib/2.12/
29592 You can find also find an archive copy on
29594 http://oss.oetiker.ch/rrdtool/pub/libs
29596 The last tested version of glib-2.0 is 2.12.12.
29598 LIBS=$LIBS
29599 LDFLAGS=$LDFLAGS
29600 CPPFLAGS=$CPPFLAGS
29602 ----------------------------------------------------------------------------
29603 " >&5
29604 $as_echo "$as_me: WARNING:
29605 ----------------------------------------------------------------------------
29606 * I could not find a working copy of glib-2.0. Check config.log for hints on why
29607 this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
29608 so that compiler and the linker can find libglib-2.0 and its header files. If
29609 you have not installed glib-2.0, you can get it either from its original home on
29611 ftp://ftp.gtk.org/pub/glib/2.12/
29613 You can find also find an archive copy on
29615 http://oss.oetiker.ch/rrdtool/pub/libs
29617 The last tested version of glib-2.0 is 2.12.12.
29619 LIBS=$LIBS
29620 LDFLAGS=$LDFLAGS
29621 CPPFLAGS=$CPPFLAGS
29623 ----------------------------------------------------------------------------
29624 " >&2;}
29625 EX_CHECK_ALL_ERR=YES
29626 LIBS="${ex_check_save_LIBS}"
29627 CPPFLAGS="${ex_check_save_CPPFLAGS}"
29628 LDFLAGS="${ex_check_save_LDFLAGS}"
29629 fi
29630 ac_ext=c
29631 ac_cpp='$CPP $CPPFLAGS'
29632 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29633 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29634 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29639 ac_ext=c
29640 ac_cpp='$CPP $CPPFLAGS'
29641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29645 EX_CHECK_STATE=NO
29646 ex_check_save_LIBS=${LIBS}
29647 ex_check_save_CPPFLAGS=${CPPFLAGS}
29648 ex_check_save_LDFLAGS=${LDFLAGS}
29649 if test "x""" != "x"; then
29650 CPPFLAGS="$CPPFLAGS -I"""
29651 fi
29652 { $as_echo "$as_me:$LINENO: checking for pango_cairo_context_set_font_options in -lpango-1.0" >&5
29653 $as_echo_n "checking for pango_cairo_context_set_font_options in -lpango-1.0... " >&6; }
29654 if test "${ac_cv_lib_pango_1_0_pango_cairo_context_set_font_options+set}" = set; then
29655 $as_echo_n "(cached) " >&6
29656 else
29657 ac_check_lib_save_LIBS=$LIBS
29658 LIBS="-lpango-1.0 $LIBS"
29659 cat >conftest.$ac_ext <<_ACEOF
29660 /* confdefs.h. */
29661 _ACEOF
29662 cat confdefs.h >>conftest.$ac_ext
29663 cat >>conftest.$ac_ext <<_ACEOF
29664 /* end confdefs.h. */
29666 /* Override any GCC internal prototype to avoid an error.
29667 Use char because int might match the return type of a GCC
29668 builtin and then its argument prototype would still apply. */
29669 #ifdef __cplusplus
29670 extern "C"
29671 #endif
29672 char pango_cairo_context_set_font_options ();
29673 int
29674 main ()
29675 {
29676 return pango_cairo_context_set_font_options ();
29677 ;
29678 return 0;
29679 }
29680 _ACEOF
29681 rm -f conftest.$ac_objext conftest$ac_exeext
29682 if { (ac_try="$ac_link"
29683 case "(($ac_try" in
29684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29685 *) ac_try_echo=$ac_try;;
29686 esac
29687 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29688 $as_echo "$ac_try_echo") >&5
29689 (eval "$ac_link") 2>conftest.er1
29690 ac_status=$?
29691 grep -v '^ *+' conftest.er1 >conftest.err
29692 rm -f conftest.er1
29693 cat conftest.err >&5
29694 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29695 (exit $ac_status); } && {
29696 test -z "$ac_c_werror_flag" ||
29697 test ! -s conftest.err
29698 } && test -s conftest$ac_exeext && {
29699 test "$cross_compiling" = yes ||
29700 $as_test_x conftest$ac_exeext
29701 }; then
29702 ac_cv_lib_pango_1_0_pango_cairo_context_set_font_options=yes
29703 else
29704 $as_echo "$as_me: failed program was:" >&5
29705 sed 's/^/| /' conftest.$ac_ext >&5
29707 ac_cv_lib_pango_1_0_pango_cairo_context_set_font_options=no
29708 fi
29710 rm -rf conftest.dSYM
29711 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29712 conftest$ac_exeext conftest.$ac_ext
29713 LIBS=$ac_check_lib_save_LIBS
29714 fi
29715 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pango_1_0_pango_cairo_context_set_font_options" >&5
29716 $as_echo "$ac_cv_lib_pango_1_0_pango_cairo_context_set_font_options" >&6; }
29717 if test "x$ac_cv_lib_pango_1_0_pango_cairo_context_set_font_options" = x""yes; then
29719 if test "${ac_cv_header_pango_pango_h+set}" = set; then
29720 { $as_echo "$as_me:$LINENO: checking for pango/pango.h" >&5
29721 $as_echo_n "checking for pango/pango.h... " >&6; }
29722 if test "${ac_cv_header_pango_pango_h+set}" = set; then
29723 $as_echo_n "(cached) " >&6
29724 fi
29725 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pango_pango_h" >&5
29726 $as_echo "$ac_cv_header_pango_pango_h" >&6; }
29727 else
29728 # Is the header compilable?
29729 { $as_echo "$as_me:$LINENO: checking pango/pango.h usability" >&5
29730 $as_echo_n "checking pango/pango.h usability... " >&6; }
29731 cat >conftest.$ac_ext <<_ACEOF
29732 /* confdefs.h. */
29733 _ACEOF
29734 cat confdefs.h >>conftest.$ac_ext
29735 cat >>conftest.$ac_ext <<_ACEOF
29736 /* end confdefs.h. */
29737 $ac_includes_default
29738 #include <pango/pango.h>
29739 _ACEOF
29740 rm -f conftest.$ac_objext
29741 if { (ac_try="$ac_compile"
29742 case "(($ac_try" in
29743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29744 *) ac_try_echo=$ac_try;;
29745 esac
29746 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29747 $as_echo "$ac_try_echo") >&5
29748 (eval "$ac_compile") 2>conftest.er1
29749 ac_status=$?
29750 grep -v '^ *+' conftest.er1 >conftest.err
29751 rm -f conftest.er1
29752 cat conftest.err >&5
29753 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29754 (exit $ac_status); } && {
29755 test -z "$ac_c_werror_flag" ||
29756 test ! -s conftest.err
29757 } && test -s conftest.$ac_objext; then
29758 ac_header_compiler=yes
29759 else
29760 $as_echo "$as_me: failed program was:" >&5
29761 sed 's/^/| /' conftest.$ac_ext >&5
29763 ac_header_compiler=no
29764 fi
29766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29767 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29768 $as_echo "$ac_header_compiler" >&6; }
29770 # Is the header present?
29771 { $as_echo "$as_me:$LINENO: checking pango/pango.h presence" >&5
29772 $as_echo_n "checking pango/pango.h presence... " >&6; }
29773 cat >conftest.$ac_ext <<_ACEOF
29774 /* confdefs.h. */
29775 _ACEOF
29776 cat confdefs.h >>conftest.$ac_ext
29777 cat >>conftest.$ac_ext <<_ACEOF
29778 /* end confdefs.h. */
29779 #include <pango/pango.h>
29780 _ACEOF
29781 if { (ac_try="$ac_cpp conftest.$ac_ext"
29782 case "(($ac_try" in
29783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29784 *) ac_try_echo=$ac_try;;
29785 esac
29786 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29787 $as_echo "$ac_try_echo") >&5
29788 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29789 ac_status=$?
29790 grep -v '^ *+' conftest.er1 >conftest.err
29791 rm -f conftest.er1
29792 cat conftest.err >&5
29793 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29794 (exit $ac_status); } >/dev/null && {
29795 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29796 test ! -s conftest.err
29797 }; then
29798 ac_header_preproc=yes
29799 else
29800 $as_echo "$as_me: failed program was:" >&5
29801 sed 's/^/| /' conftest.$ac_ext >&5
29803 ac_header_preproc=no
29804 fi
29806 rm -f conftest.err conftest.$ac_ext
29807 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29808 $as_echo "$ac_header_preproc" >&6; }
29810 # So? What about this header?
29811 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29812 yes:no: )
29813 { $as_echo "$as_me:$LINENO: WARNING: pango/pango.h: accepted by the compiler, rejected by the preprocessor!" >&5
29814 $as_echo "$as_me: WARNING: pango/pango.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29815 { $as_echo "$as_me:$LINENO: WARNING: pango/pango.h: proceeding with the compiler's result" >&5
29816 $as_echo "$as_me: WARNING: pango/pango.h: proceeding with the compiler's result" >&2;}
29817 ac_header_preproc=yes
29818 ;;
29819 no:yes:* )
29820 { $as_echo "$as_me:$LINENO: WARNING: pango/pango.h: present but cannot be compiled" >&5
29821 $as_echo "$as_me: WARNING: pango/pango.h: present but cannot be compiled" >&2;}
29822 { $as_echo "$as_me:$LINENO: WARNING: pango/pango.h: check for missing prerequisite headers?" >&5
29823 $as_echo "$as_me: WARNING: pango/pango.h: check for missing prerequisite headers?" >&2;}
29824 { $as_echo "$as_me:$LINENO: WARNING: pango/pango.h: see the Autoconf documentation" >&5
29825 $as_echo "$as_me: WARNING: pango/pango.h: see the Autoconf documentation" >&2;}
29826 { $as_echo "$as_me:$LINENO: WARNING: pango/pango.h: section \"Present But Cannot Be Compiled\"" >&5
29827 $as_echo "$as_me: WARNING: pango/pango.h: section \"Present But Cannot Be Compiled\"" >&2;}
29828 { $as_echo "$as_me:$LINENO: WARNING: pango/pango.h: proceeding with the preprocessor's result" >&5
29829 $as_echo "$as_me: WARNING: pango/pango.h: proceeding with the preprocessor's result" >&2;}
29830 { $as_echo "$as_me:$LINENO: WARNING: pango/pango.h: in the future, the compiler will take precedence" >&5
29831 $as_echo "$as_me: WARNING: pango/pango.h: in the future, the compiler will take precedence" >&2;}
29833 ;;
29834 esac
29835 { $as_echo "$as_me:$LINENO: checking for pango/pango.h" >&5
29836 $as_echo_n "checking for pango/pango.h... " >&6; }
29837 if test "${ac_cv_header_pango_pango_h+set}" = set; then
29838 $as_echo_n "(cached) " >&6
29839 else
29840 ac_cv_header_pango_pango_h=$ac_header_preproc
29841 fi
29842 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pango_pango_h" >&5
29843 $as_echo "$ac_cv_header_pango_pango_h" >&6; }
29845 fi
29846 if test "x$ac_cv_header_pango_pango_h" = x""yes; then
29847 LIBS="-lpango-1.0 ${LIBS}";EX_CHECK_STATE=YES
29848 fi
29851 fi
29853 if test $EX_CHECK_STATE = NO; then
29854 for ac_prog in pkg-config
29855 do
29856 # Extract the first word of "$ac_prog", so it can be a program name with args.
29857 set dummy $ac_prog; ac_word=$2
29858 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29859 $as_echo_n "checking for $ac_word... " >&6; }
29860 if test "${ac_cv_prog_PKGCONFIG+set}" = set; then
29861 $as_echo_n "(cached) " >&6
29862 else
29863 if test -n "$PKGCONFIG"; then
29864 ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
29865 else
29866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29867 for as_dir in $PATH
29868 do
29869 IFS=$as_save_IFS
29870 test -z "$as_dir" && as_dir=.
29871 for ac_exec_ext in '' $ac_executable_extensions; do
29872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29873 ac_cv_prog_PKGCONFIG="$ac_prog"
29874 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29875 break 2
29876 fi
29877 done
29878 done
29879 IFS=$as_save_IFS
29881 fi
29882 fi
29883 PKGCONFIG=$ac_cv_prog_PKGCONFIG
29884 if test -n "$PKGCONFIG"; then
29885 { $as_echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
29886 $as_echo "$PKGCONFIG" >&6; }
29887 else
29888 { $as_echo "$as_me:$LINENO: result: no" >&5
29889 $as_echo "no" >&6; }
29890 fi
29893 test -n "$PKGCONFIG" && break
29894 done
29895 test -n "$PKGCONFIG" || PKGCONFIG="no"
29897 if test "$PKGCONFIG" != "no"; then
29898 if $PKGCONFIG --exists pangocairo; then
29899 CPPFLAGS=${CPPFLAGS}" "`$PKGCONFIG --cflags pangocairo`
29900 LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-L pangocairo`
29901 LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-other pangocairo`
29902 LIBS=${LIBS}" "`$PKGCONFIG --libs-only-l pangocairo`
29903 unset ac_cv_lib_`echo pango-1.0 | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`_pango_cairo_context_set_font_options
29904 { $as_echo "$as_me:$LINENO: checking for pango_cairo_context_set_font_options in -lpango-1.0" >&5
29905 $as_echo_n "checking for pango_cairo_context_set_font_options in -lpango-1.0... " >&6; }
29906 if test "${ac_cv_lib_pango_1_0_pango_cairo_context_set_font_options+set}" = set; then
29907 $as_echo_n "(cached) " >&6
29908 else
29909 ac_check_lib_save_LIBS=$LIBS
29910 LIBS="-lpango-1.0 $LIBS"
29911 cat >conftest.$ac_ext <<_ACEOF
29912 /* confdefs.h. */
29913 _ACEOF
29914 cat confdefs.h >>conftest.$ac_ext
29915 cat >>conftest.$ac_ext <<_ACEOF
29916 /* end confdefs.h. */
29918 /* Override any GCC internal prototype to avoid an error.
29919 Use char because int might match the return type of a GCC
29920 builtin and then its argument prototype would still apply. */
29921 #ifdef __cplusplus
29922 extern "C"
29923 #endif
29924 char pango_cairo_context_set_font_options ();
29925 int
29926 main ()
29927 {
29928 return pango_cairo_context_set_font_options ();
29929 ;
29930 return 0;
29931 }
29932 _ACEOF
29933 rm -f conftest.$ac_objext conftest$ac_exeext
29934 if { (ac_try="$ac_link"
29935 case "(($ac_try" in
29936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29937 *) ac_try_echo=$ac_try;;
29938 esac
29939 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29940 $as_echo "$ac_try_echo") >&5
29941 (eval "$ac_link") 2>conftest.er1
29942 ac_status=$?
29943 grep -v '^ *+' conftest.er1 >conftest.err
29944 rm -f conftest.er1
29945 cat conftest.err >&5
29946 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29947 (exit $ac_status); } && {
29948 test -z "$ac_c_werror_flag" ||
29949 test ! -s conftest.err
29950 } && test -s conftest$ac_exeext && {
29951 test "$cross_compiling" = yes ||
29952 $as_test_x conftest$ac_exeext
29953 }; then
29954 ac_cv_lib_pango_1_0_pango_cairo_context_set_font_options=yes
29955 else
29956 $as_echo "$as_me: failed program was:" >&5
29957 sed 's/^/| /' conftest.$ac_ext >&5
29959 ac_cv_lib_pango_1_0_pango_cairo_context_set_font_options=no
29960 fi
29962 rm -rf conftest.dSYM
29963 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29964 conftest$ac_exeext conftest.$ac_ext
29965 LIBS=$ac_check_lib_save_LIBS
29966 fi
29967 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pango_1_0_pango_cairo_context_set_font_options" >&5
29968 $as_echo "$ac_cv_lib_pango_1_0_pango_cairo_context_set_font_options" >&6; }
29969 if test "x$ac_cv_lib_pango_1_0_pango_cairo_context_set_font_options" = x""yes; then
29971 unset ac_cv_header_`echo pango/pango.h | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`
29972 if test "${ac_cv_header_pango_pango_h+set}" = set; then
29973 { $as_echo "$as_me:$LINENO: checking for pango/pango.h" >&5
29974 $as_echo_n "checking for pango/pango.h... " >&6; }
29975 if test "${ac_cv_header_pango_pango_h+set}" = set; then
29976 $as_echo_n "(cached) " >&6
29977 fi
29978 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pango_pango_h" >&5
29979 $as_echo "$ac_cv_header_pango_pango_h" >&6; }
29980 else
29981 # Is the header compilable?
29982 { $as_echo "$as_me:$LINENO: checking pango/pango.h usability" >&5
29983 $as_echo_n "checking pango/pango.h usability... " >&6; }
29984 cat >conftest.$ac_ext <<_ACEOF
29985 /* confdefs.h. */
29986 _ACEOF
29987 cat confdefs.h >>conftest.$ac_ext
29988 cat >>conftest.$ac_ext <<_ACEOF
29989 /* end confdefs.h. */
29990 $ac_includes_default
29991 #include <pango/pango.h>
29992 _ACEOF
29993 rm -f conftest.$ac_objext
29994 if { (ac_try="$ac_compile"
29995 case "(($ac_try" in
29996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29997 *) ac_try_echo=$ac_try;;
29998 esac
29999 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30000 $as_echo "$ac_try_echo") >&5
30001 (eval "$ac_compile") 2>conftest.er1
30002 ac_status=$?
30003 grep -v '^ *+' conftest.er1 >conftest.err
30004 rm -f conftest.er1
30005 cat conftest.err >&5
30006 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30007 (exit $ac_status); } && {
30008 test -z "$ac_c_werror_flag" ||
30009 test ! -s conftest.err
30010 } && test -s conftest.$ac_objext; then
30011 ac_header_compiler=yes
30012 else
30013 $as_echo "$as_me: failed program was:" >&5
30014 sed 's/^/| /' conftest.$ac_ext >&5
30016 ac_header_compiler=no
30017 fi
30019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30020 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30021 $as_echo "$ac_header_compiler" >&6; }
30023 # Is the header present?
30024 { $as_echo "$as_me:$LINENO: checking pango/pango.h presence" >&5
30025 $as_echo_n "checking pango/pango.h presence... " >&6; }
30026 cat >conftest.$ac_ext <<_ACEOF
30027 /* confdefs.h. */
30028 _ACEOF
30029 cat confdefs.h >>conftest.$ac_ext
30030 cat >>conftest.$ac_ext <<_ACEOF
30031 /* end confdefs.h. */
30032 #include <pango/pango.h>
30033 _ACEOF
30034 if { (ac_try="$ac_cpp conftest.$ac_ext"
30035 case "(($ac_try" in
30036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30037 *) ac_try_echo=$ac_try;;
30038 esac
30039 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30040 $as_echo "$ac_try_echo") >&5
30041 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30042 ac_status=$?
30043 grep -v '^ *+' conftest.er1 >conftest.err
30044 rm -f conftest.er1
30045 cat conftest.err >&5
30046 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30047 (exit $ac_status); } >/dev/null && {
30048 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30049 test ! -s conftest.err
30050 }; then
30051 ac_header_preproc=yes
30052 else
30053 $as_echo "$as_me: failed program was:" >&5
30054 sed 's/^/| /' conftest.$ac_ext >&5
30056 ac_header_preproc=no
30057 fi
30059 rm -f conftest.err conftest.$ac_ext
30060 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30061 $as_echo "$ac_header_preproc" >&6; }
30063 # So? What about this header?
30064 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30065 yes:no: )
30066 { $as_echo "$as_me:$LINENO: WARNING: pango/pango.h: accepted by the compiler, rejected by the preprocessor!" >&5
30067 $as_echo "$as_me: WARNING: pango/pango.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30068 { $as_echo "$as_me:$LINENO: WARNING: pango/pango.h: proceeding with the compiler's result" >&5
30069 $as_echo "$as_me: WARNING: pango/pango.h: proceeding with the compiler's result" >&2;}
30070 ac_header_preproc=yes
30071 ;;
30072 no:yes:* )
30073 { $as_echo "$as_me:$LINENO: WARNING: pango/pango.h: present but cannot be compiled" >&5
30074 $as_echo "$as_me: WARNING: pango/pango.h: present but cannot be compiled" >&2;}
30075 { $as_echo "$as_me:$LINENO: WARNING: pango/pango.h: check for missing prerequisite headers?" >&5
30076 $as_echo "$as_me: WARNING: pango/pango.h: check for missing prerequisite headers?" >&2;}
30077 { $as_echo "$as_me:$LINENO: WARNING: pango/pango.h: see the Autoconf documentation" >&5
30078 $as_echo "$as_me: WARNING: pango/pango.h: see the Autoconf documentation" >&2;}
30079 { $as_echo "$as_me:$LINENO: WARNING: pango/pango.h: section \"Present But Cannot Be Compiled\"" >&5
30080 $as_echo "$as_me: WARNING: pango/pango.h: section \"Present But Cannot Be Compiled\"" >&2;}
30081 { $as_echo "$as_me:$LINENO: WARNING: pango/pango.h: proceeding with the preprocessor's result" >&5
30082 $as_echo "$as_me: WARNING: pango/pango.h: proceeding with the preprocessor's result" >&2;}
30083 { $as_echo "$as_me:$LINENO: WARNING: pango/pango.h: in the future, the compiler will take precedence" >&5
30084 $as_echo "$as_me: WARNING: pango/pango.h: in the future, the compiler will take precedence" >&2;}
30086 ;;
30087 esac
30088 { $as_echo "$as_me:$LINENO: checking for pango/pango.h" >&5
30089 $as_echo_n "checking for pango/pango.h... " >&6; }
30090 if test "${ac_cv_header_pango_pango_h+set}" = set; then
30091 $as_echo_n "(cached) " >&6
30092 else
30093 ac_cv_header_pango_pango_h=$ac_header_preproc
30094 fi
30095 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pango_pango_h" >&5
30096 $as_echo "$ac_cv_header_pango_pango_h" >&6; }
30098 fi
30099 if test "x$ac_cv_header_pango_pango_h" = x""yes; then
30100 EX_CHECK_STATE=YES
30101 fi
30105 fi
30107 else
30108 { $as_echo "$as_me:$LINENO: WARNING:
30109 ----------------------------------------------------------------------------
30110 * I found a copy of pkgconfig, but there is no pangocairo.pc file around.
30111 You may want to set the PKG_CONFIG_PATH variable to point to its
30112 location.
30113 ----------------------------------------------------------------------------
30114 " >&5
30115 $as_echo "$as_me: WARNING:
30116 ----------------------------------------------------------------------------
30117 * I found a copy of pkgconfig, but there is no pangocairo.pc file around.
30118 You may want to set the PKG_CONFIG_PATH variable to point to its
30119 location.
30120 ----------------------------------------------------------------------------
30121 " >&2;}
30122 fi
30123 fi
30124 fi
30126 if test ${EX_CHECK_STATE} = NO; then
30127 { $as_echo "$as_me:$LINENO: WARNING:
30128 ----------------------------------------------------------------------------
30129 * I could not find a working copy of pangocairo. Check config.log for hints on why
30130 this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
30131 so that compiler and the linker can find libpango-1.0 and its header files. If
30132 you have not installed pangocairo, you can get it either from its original home on
30134 http://ftp.gnome.org/pub/GNOME/sources/pango/1.17
30136 You can find also find an archive copy on
30138 http://oss.oetiker.ch/rrdtool/pub/libs
30140 The last tested version of pangocairo is 1.17.
30142 LIBS=$LIBS
30143 LDFLAGS=$LDFLAGS
30144 CPPFLAGS=$CPPFLAGS
30146 ----------------------------------------------------------------------------
30147 " >&5
30148 $as_echo "$as_me: WARNING:
30149 ----------------------------------------------------------------------------
30150 * I could not find a working copy of pangocairo. Check config.log for hints on why
30151 this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
30152 so that compiler and the linker can find libpango-1.0 and its header files. If
30153 you have not installed pangocairo, you can get it either from its original home on
30155 http://ftp.gnome.org/pub/GNOME/sources/pango/1.17
30157 You can find also find an archive copy on
30159 http://oss.oetiker.ch/rrdtool/pub/libs
30161 The last tested version of pangocairo is 1.17.
30163 LIBS=$LIBS
30164 LDFLAGS=$LDFLAGS
30165 CPPFLAGS=$CPPFLAGS
30167 ----------------------------------------------------------------------------
30168 " >&2;}
30169 EX_CHECK_ALL_ERR=YES
30170 LIBS="${ex_check_save_LIBS}"
30171 CPPFLAGS="${ex_check_save_CPPFLAGS}"
30172 LDFLAGS="${ex_check_save_LDFLAGS}"
30173 fi
30174 ac_ext=c
30175 ac_cpp='$CPP $CPPFLAGS'
30176 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30177 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30178 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30183 ac_ext=c
30184 ac_cpp='$CPP $CPPFLAGS'
30185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30189 EX_CHECK_STATE=NO
30190 ex_check_save_LIBS=${LIBS}
30191 ex_check_save_CPPFLAGS=${CPPFLAGS}
30192 ex_check_save_LDFLAGS=${LDFLAGS}
30193 if test "x/usr/include/libxml2" != "x"; then
30194 CPPFLAGS="$CPPFLAGS -I/usr/include/libxml2"
30195 fi
30196 { $as_echo "$as_me:$LINENO: checking for xmlParseFile in -lxml2" >&5
30197 $as_echo_n "checking for xmlParseFile in -lxml2... " >&6; }
30198 if test "${ac_cv_lib_xml2_xmlParseFile+set}" = set; then
30199 $as_echo_n "(cached) " >&6
30200 else
30201 ac_check_lib_save_LIBS=$LIBS
30202 LIBS="-lxml2 $LIBS"
30203 cat >conftest.$ac_ext <<_ACEOF
30204 /* confdefs.h. */
30205 _ACEOF
30206 cat confdefs.h >>conftest.$ac_ext
30207 cat >>conftest.$ac_ext <<_ACEOF
30208 /* end confdefs.h. */
30210 /* Override any GCC internal prototype to avoid an error.
30211 Use char because int might match the return type of a GCC
30212 builtin and then its argument prototype would still apply. */
30213 #ifdef __cplusplus
30214 extern "C"
30215 #endif
30216 char xmlParseFile ();
30217 int
30218 main ()
30219 {
30220 return xmlParseFile ();
30221 ;
30222 return 0;
30223 }
30224 _ACEOF
30225 rm -f conftest.$ac_objext conftest$ac_exeext
30226 if { (ac_try="$ac_link"
30227 case "(($ac_try" in
30228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30229 *) ac_try_echo=$ac_try;;
30230 esac
30231 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30232 $as_echo "$ac_try_echo") >&5
30233 (eval "$ac_link") 2>conftest.er1
30234 ac_status=$?
30235 grep -v '^ *+' conftest.er1 >conftest.err
30236 rm -f conftest.er1
30237 cat conftest.err >&5
30238 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30239 (exit $ac_status); } && {
30240 test -z "$ac_c_werror_flag" ||
30241 test ! -s conftest.err
30242 } && test -s conftest$ac_exeext && {
30243 test "$cross_compiling" = yes ||
30244 $as_test_x conftest$ac_exeext
30245 }; then
30246 ac_cv_lib_xml2_xmlParseFile=yes
30247 else
30248 $as_echo "$as_me: failed program was:" >&5
30249 sed 's/^/| /' conftest.$ac_ext >&5
30251 ac_cv_lib_xml2_xmlParseFile=no
30252 fi
30254 rm -rf conftest.dSYM
30255 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30256 conftest$ac_exeext conftest.$ac_ext
30257 LIBS=$ac_check_lib_save_LIBS
30258 fi
30259 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlParseFile" >&5
30260 $as_echo "$ac_cv_lib_xml2_xmlParseFile" >&6; }
30261 if test "x$ac_cv_lib_xml2_xmlParseFile" = x""yes; then
30263 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
30264 { $as_echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
30265 $as_echo_n "checking for libxml/parser.h... " >&6; }
30266 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
30267 $as_echo_n "(cached) " >&6
30268 fi
30269 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
30270 $as_echo "$ac_cv_header_libxml_parser_h" >&6; }
30271 else
30272 # Is the header compilable?
30273 { $as_echo "$as_me:$LINENO: checking libxml/parser.h usability" >&5
30274 $as_echo_n "checking libxml/parser.h usability... " >&6; }
30275 cat >conftest.$ac_ext <<_ACEOF
30276 /* confdefs.h. */
30277 _ACEOF
30278 cat confdefs.h >>conftest.$ac_ext
30279 cat >>conftest.$ac_ext <<_ACEOF
30280 /* end confdefs.h. */
30281 $ac_includes_default
30282 #include <libxml/parser.h>
30283 _ACEOF
30284 rm -f conftest.$ac_objext
30285 if { (ac_try="$ac_compile"
30286 case "(($ac_try" in
30287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30288 *) ac_try_echo=$ac_try;;
30289 esac
30290 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30291 $as_echo "$ac_try_echo") >&5
30292 (eval "$ac_compile") 2>conftest.er1
30293 ac_status=$?
30294 grep -v '^ *+' conftest.er1 >conftest.err
30295 rm -f conftest.er1
30296 cat conftest.err >&5
30297 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30298 (exit $ac_status); } && {
30299 test -z "$ac_c_werror_flag" ||
30300 test ! -s conftest.err
30301 } && test -s conftest.$ac_objext; then
30302 ac_header_compiler=yes
30303 else
30304 $as_echo "$as_me: failed program was:" >&5
30305 sed 's/^/| /' conftest.$ac_ext >&5
30307 ac_header_compiler=no
30308 fi
30310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30311 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30312 $as_echo "$ac_header_compiler" >&6; }
30314 # Is the header present?
30315 { $as_echo "$as_me:$LINENO: checking libxml/parser.h presence" >&5
30316 $as_echo_n "checking libxml/parser.h presence... " >&6; }
30317 cat >conftest.$ac_ext <<_ACEOF
30318 /* confdefs.h. */
30319 _ACEOF
30320 cat confdefs.h >>conftest.$ac_ext
30321 cat >>conftest.$ac_ext <<_ACEOF
30322 /* end confdefs.h. */
30323 #include <libxml/parser.h>
30324 _ACEOF
30325 if { (ac_try="$ac_cpp conftest.$ac_ext"
30326 case "(($ac_try" in
30327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30328 *) ac_try_echo=$ac_try;;
30329 esac
30330 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30331 $as_echo "$ac_try_echo") >&5
30332 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30333 ac_status=$?
30334 grep -v '^ *+' conftest.er1 >conftest.err
30335 rm -f conftest.er1
30336 cat conftest.err >&5
30337 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30338 (exit $ac_status); } >/dev/null && {
30339 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30340 test ! -s conftest.err
30341 }; then
30342 ac_header_preproc=yes
30343 else
30344 $as_echo "$as_me: failed program was:" >&5
30345 sed 's/^/| /' conftest.$ac_ext >&5
30347 ac_header_preproc=no
30348 fi
30350 rm -f conftest.err conftest.$ac_ext
30351 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30352 $as_echo "$ac_header_preproc" >&6; }
30354 # So? What about this header?
30355 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30356 yes:no: )
30357 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&5
30358 $as_echo "$as_me: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30359 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the compiler's result" >&5
30360 $as_echo "$as_me: WARNING: libxml/parser.h: proceeding with the compiler's result" >&2;}
30361 ac_header_preproc=yes
30362 ;;
30363 no:yes:* )
30364 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: present but cannot be compiled" >&5
30365 $as_echo "$as_me: WARNING: libxml/parser.h: present but cannot be compiled" >&2;}
30366 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&5
30367 $as_echo "$as_me: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&2;}
30368 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: see the Autoconf documentation" >&5
30369 $as_echo "$as_me: WARNING: libxml/parser.h: see the Autoconf documentation" >&2;}
30370 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&5
30371 $as_echo "$as_me: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&2;}
30372 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&5
30373 $as_echo "$as_me: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&2;}
30374 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&5
30375 $as_echo "$as_me: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&2;}
30377 ;;
30378 esac
30379 { $as_echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
30380 $as_echo_n "checking for libxml/parser.h... " >&6; }
30381 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
30382 $as_echo_n "(cached) " >&6
30383 else
30384 ac_cv_header_libxml_parser_h=$ac_header_preproc
30385 fi
30386 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
30387 $as_echo "$ac_cv_header_libxml_parser_h" >&6; }
30389 fi
30390 if test "x$ac_cv_header_libxml_parser_h" = x""yes; then
30391 LIBS="-lxml2 ${LIBS}";EX_CHECK_STATE=YES
30392 fi
30395 fi
30397 if test $EX_CHECK_STATE = NO; then
30398 for ac_prog in pkg-config
30399 do
30400 # Extract the first word of "$ac_prog", so it can be a program name with args.
30401 set dummy $ac_prog; ac_word=$2
30402 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
30403 $as_echo_n "checking for $ac_word... " >&6; }
30404 if test "${ac_cv_prog_PKGCONFIG+set}" = set; then
30405 $as_echo_n "(cached) " >&6
30406 else
30407 if test -n "$PKGCONFIG"; then
30408 ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
30409 else
30410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30411 for as_dir in $PATH
30412 do
30413 IFS=$as_save_IFS
30414 test -z "$as_dir" && as_dir=.
30415 for ac_exec_ext in '' $ac_executable_extensions; do
30416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30417 ac_cv_prog_PKGCONFIG="$ac_prog"
30418 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30419 break 2
30420 fi
30421 done
30422 done
30423 IFS=$as_save_IFS
30425 fi
30426 fi
30427 PKGCONFIG=$ac_cv_prog_PKGCONFIG
30428 if test -n "$PKGCONFIG"; then
30429 { $as_echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
30430 $as_echo "$PKGCONFIG" >&6; }
30431 else
30432 { $as_echo "$as_me:$LINENO: result: no" >&5
30433 $as_echo "no" >&6; }
30434 fi
30437 test -n "$PKGCONFIG" && break
30438 done
30439 test -n "$PKGCONFIG" || PKGCONFIG="no"
30441 if test "$PKGCONFIG" != "no"; then
30442 if $PKGCONFIG --exists libxml-2.0; then
30443 CPPFLAGS=${CPPFLAGS}" "`$PKGCONFIG --cflags libxml-2.0`
30444 LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-L libxml-2.0`
30445 LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-other libxml-2.0`
30446 LIBS=${LIBS}" "`$PKGCONFIG --libs-only-l libxml-2.0`
30447 unset ac_cv_lib_`echo xml2 | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`_xmlParseFile
30448 { $as_echo "$as_me:$LINENO: checking for xmlParseFile in -lxml2" >&5
30449 $as_echo_n "checking for xmlParseFile in -lxml2... " >&6; }
30450 if test "${ac_cv_lib_xml2_xmlParseFile+set}" = set; then
30451 $as_echo_n "(cached) " >&6
30452 else
30453 ac_check_lib_save_LIBS=$LIBS
30454 LIBS="-lxml2 $LIBS"
30455 cat >conftest.$ac_ext <<_ACEOF
30456 /* confdefs.h. */
30457 _ACEOF
30458 cat confdefs.h >>conftest.$ac_ext
30459 cat >>conftest.$ac_ext <<_ACEOF
30460 /* end confdefs.h. */
30462 /* Override any GCC internal prototype to avoid an error.
30463 Use char because int might match the return type of a GCC
30464 builtin and then its argument prototype would still apply. */
30465 #ifdef __cplusplus
30466 extern "C"
30467 #endif
30468 char xmlParseFile ();
30469 int
30470 main ()
30471 {
30472 return xmlParseFile ();
30473 ;
30474 return 0;
30475 }
30476 _ACEOF
30477 rm -f conftest.$ac_objext conftest$ac_exeext
30478 if { (ac_try="$ac_link"
30479 case "(($ac_try" in
30480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30481 *) ac_try_echo=$ac_try;;
30482 esac
30483 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30484 $as_echo "$ac_try_echo") >&5
30485 (eval "$ac_link") 2>conftest.er1
30486 ac_status=$?
30487 grep -v '^ *+' conftest.er1 >conftest.err
30488 rm -f conftest.er1
30489 cat conftest.err >&5
30490 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30491 (exit $ac_status); } && {
30492 test -z "$ac_c_werror_flag" ||
30493 test ! -s conftest.err
30494 } && test -s conftest$ac_exeext && {
30495 test "$cross_compiling" = yes ||
30496 $as_test_x conftest$ac_exeext
30497 }; then
30498 ac_cv_lib_xml2_xmlParseFile=yes
30499 else
30500 $as_echo "$as_me: failed program was:" >&5
30501 sed 's/^/| /' conftest.$ac_ext >&5
30503 ac_cv_lib_xml2_xmlParseFile=no
30504 fi
30506 rm -rf conftest.dSYM
30507 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30508 conftest$ac_exeext conftest.$ac_ext
30509 LIBS=$ac_check_lib_save_LIBS
30510 fi
30511 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlParseFile" >&5
30512 $as_echo "$ac_cv_lib_xml2_xmlParseFile" >&6; }
30513 if test "x$ac_cv_lib_xml2_xmlParseFile" = x""yes; then
30515 unset ac_cv_header_`echo libxml/parser.h | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`
30516 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
30517 { $as_echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
30518 $as_echo_n "checking for libxml/parser.h... " >&6; }
30519 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
30520 $as_echo_n "(cached) " >&6
30521 fi
30522 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
30523 $as_echo "$ac_cv_header_libxml_parser_h" >&6; }
30524 else
30525 # Is the header compilable?
30526 { $as_echo "$as_me:$LINENO: checking libxml/parser.h usability" >&5
30527 $as_echo_n "checking libxml/parser.h usability... " >&6; }
30528 cat >conftest.$ac_ext <<_ACEOF
30529 /* confdefs.h. */
30530 _ACEOF
30531 cat confdefs.h >>conftest.$ac_ext
30532 cat >>conftest.$ac_ext <<_ACEOF
30533 /* end confdefs.h. */
30534 $ac_includes_default
30535 #include <libxml/parser.h>
30536 _ACEOF
30537 rm -f conftest.$ac_objext
30538 if { (ac_try="$ac_compile"
30539 case "(($ac_try" in
30540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30541 *) ac_try_echo=$ac_try;;
30542 esac
30543 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30544 $as_echo "$ac_try_echo") >&5
30545 (eval "$ac_compile") 2>conftest.er1
30546 ac_status=$?
30547 grep -v '^ *+' conftest.er1 >conftest.err
30548 rm -f conftest.er1
30549 cat conftest.err >&5
30550 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30551 (exit $ac_status); } && {
30552 test -z "$ac_c_werror_flag" ||
30553 test ! -s conftest.err
30554 } && test -s conftest.$ac_objext; then
30555 ac_header_compiler=yes
30556 else
30557 $as_echo "$as_me: failed program was:" >&5
30558 sed 's/^/| /' conftest.$ac_ext >&5
30560 ac_header_compiler=no
30561 fi
30563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30564 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30565 $as_echo "$ac_header_compiler" >&6; }
30567 # Is the header present?
30568 { $as_echo "$as_me:$LINENO: checking libxml/parser.h presence" >&5
30569 $as_echo_n "checking libxml/parser.h presence... " >&6; }
30570 cat >conftest.$ac_ext <<_ACEOF
30571 /* confdefs.h. */
30572 _ACEOF
30573 cat confdefs.h >>conftest.$ac_ext
30574 cat >>conftest.$ac_ext <<_ACEOF
30575 /* end confdefs.h. */
30576 #include <libxml/parser.h>
30577 _ACEOF
30578 if { (ac_try="$ac_cpp conftest.$ac_ext"
30579 case "(($ac_try" in
30580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30581 *) ac_try_echo=$ac_try;;
30582 esac
30583 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30584 $as_echo "$ac_try_echo") >&5
30585 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30586 ac_status=$?
30587 grep -v '^ *+' conftest.er1 >conftest.err
30588 rm -f conftest.er1
30589 cat conftest.err >&5
30590 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30591 (exit $ac_status); } >/dev/null && {
30592 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30593 test ! -s conftest.err
30594 }; then
30595 ac_header_preproc=yes
30596 else
30597 $as_echo "$as_me: failed program was:" >&5
30598 sed 's/^/| /' conftest.$ac_ext >&5
30600 ac_header_preproc=no
30601 fi
30603 rm -f conftest.err conftest.$ac_ext
30604 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30605 $as_echo "$ac_header_preproc" >&6; }
30607 # So? What about this header?
30608 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30609 yes:no: )
30610 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&5
30611 $as_echo "$as_me: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30612 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the compiler's result" >&5
30613 $as_echo "$as_me: WARNING: libxml/parser.h: proceeding with the compiler's result" >&2;}
30614 ac_header_preproc=yes
30615 ;;
30616 no:yes:* )
30617 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: present but cannot be compiled" >&5
30618 $as_echo "$as_me: WARNING: libxml/parser.h: present but cannot be compiled" >&2;}
30619 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&5
30620 $as_echo "$as_me: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&2;}
30621 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: see the Autoconf documentation" >&5
30622 $as_echo "$as_me: WARNING: libxml/parser.h: see the Autoconf documentation" >&2;}
30623 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&5
30624 $as_echo "$as_me: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&2;}
30625 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&5
30626 $as_echo "$as_me: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&2;}
30627 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&5
30628 $as_echo "$as_me: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&2;}
30630 ;;
30631 esac
30632 { $as_echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
30633 $as_echo_n "checking for libxml/parser.h... " >&6; }
30634 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
30635 $as_echo_n "(cached) " >&6
30636 else
30637 ac_cv_header_libxml_parser_h=$ac_header_preproc
30638 fi
30639 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
30640 $as_echo "$ac_cv_header_libxml_parser_h" >&6; }
30642 fi
30643 if test "x$ac_cv_header_libxml_parser_h" = x""yes; then
30644 EX_CHECK_STATE=YES
30645 fi
30649 fi
30651 else
30652 { $as_echo "$as_me:$LINENO: WARNING:
30653 ----------------------------------------------------------------------------
30654 * I found a copy of pkgconfig, but there is no libxml-2.0.pc file around.
30655 You may want to set the PKG_CONFIG_PATH variable to point to its
30656 location.
30657 ----------------------------------------------------------------------------
30658 " >&5
30659 $as_echo "$as_me: WARNING:
30660 ----------------------------------------------------------------------------
30661 * I found a copy of pkgconfig, but there is no libxml-2.0.pc file around.
30662 You may want to set the PKG_CONFIG_PATH variable to point to its
30663 location.
30664 ----------------------------------------------------------------------------
30665 " >&2;}
30666 fi
30667 fi
30668 fi
30670 if test ${EX_CHECK_STATE} = NO; then
30671 { $as_echo "$as_me:$LINENO: WARNING:
30672 ----------------------------------------------------------------------------
30673 * I could not find a working copy of libxml-2.0. Check config.log for hints on why
30674 this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
30675 so that compiler and the linker can find libxml2 and its header files. If
30676 you have not installed libxml-2.0, you can get it either from its original home on
30678 http://xmlsoft.org/downloads.html
30680 You can find also find an archive copy on
30682 http://oss.oetiker.ch/rrdtool/pub/libs
30684 The last tested version of libxml-2.0 is 2.6.31.
30686 LIBS=$LIBS
30687 LDFLAGS=$LDFLAGS
30688 CPPFLAGS=$CPPFLAGS
30690 ----------------------------------------------------------------------------
30691 " >&5
30692 $as_echo "$as_me: WARNING:
30693 ----------------------------------------------------------------------------
30694 * I could not find a working copy of libxml-2.0. Check config.log for hints on why
30695 this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
30696 so that compiler and the linker can find libxml2 and its header files. If
30697 you have not installed libxml-2.0, you can get it either from its original home on
30699 http://xmlsoft.org/downloads.html
30701 You can find also find an archive copy on
30703 http://oss.oetiker.ch/rrdtool/pub/libs
30705 The last tested version of libxml-2.0 is 2.6.31.
30707 LIBS=$LIBS
30708 LDFLAGS=$LDFLAGS
30709 CPPFLAGS=$CPPFLAGS
30711 ----------------------------------------------------------------------------
30712 " >&2;}
30713 EX_CHECK_ALL_ERR=YES
30714 LIBS="${ex_check_save_LIBS}"
30715 CPPFLAGS="${ex_check_save_CPPFLAGS}"
30716 LDFLAGS="${ex_check_save_LDFLAGS}"
30717 fi
30718 ac_ext=c
30719 ac_cpp='$CPP $CPPFLAGS'
30720 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30721 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30722 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30727 if test "$EX_CHECK_ALL_ERR" = "YES"; then
30728 { { $as_echo "$as_me:$LINENO: error: Please fix the library issues listed above and try again." >&5
30729 $as_echo "$as_me: error: Please fix the library issues listed above and try again." >&2;}
30730 { (exit 1); exit 1; }; }
30731 fi
30733 ALL_LIBS="$LIBS"
30734 LIBS=
30740 case $TERM in
30741 # for the most important terminal types we directly know the sequences
30742 xterm|xterm*|vt220|vt220*)
30743 T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
30744 T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
30745 ;;
30746 vt100|vt100*|cygwin)
30747 T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
30748 T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
30749 ;;
30750 *)
30751 T_MD=''
30752 T_ME=''
30753 ;;
30754 esac
30755 { $as_echo "$as_me:$LINENO: result: " >&5
30756 $as_echo "" >&6; }
30757 { $as_echo "$as_me:$LINENO: result: ${T_MD}Prep for Building Language Bindings${T_ME}" >&5
30758 $as_echo "${T_MD}Prep for Building Language Bindings${T_ME}" >&6; }
30761 PATH=$PATH:/usr/perl5/bin
30762 export PATH
30763 # Extract the first word of "perl", so it can be a program name with args.
30764 set dummy perl; ac_word=$2
30765 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
30766 $as_echo_n "checking for $ac_word... " >&6; }
30767 if test "${ac_cv_path_PERL+set}" = set; then
30768 $as_echo_n "(cached) " >&6
30769 else
30770 case $PERL in
30771 [\\/]* | ?:[\\/]*)
30772 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
30773 ;;
30774 *)
30775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30776 for as_dir in $PATH
30777 do
30778 IFS=$as_save_IFS
30779 test -z "$as_dir" && as_dir=.
30780 for ac_exec_ext in '' $ac_executable_extensions; do
30781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30782 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
30783 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30784 break 2
30785 fi
30786 done
30787 done
30788 IFS=$as_save_IFS
30790 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
30791 ;;
30792 esac
30793 fi
30794 PERL=$ac_cv_path_PERL
30795 if test -n "$PERL"; then
30796 { $as_echo "$as_me:$LINENO: result: $PERL" >&5
30797 $as_echo "$PERL" >&6; }
30798 else
30799 { $as_echo "$as_me:$LINENO: result: no" >&5
30800 $as_echo "no" >&6; }
30801 fi
30804 # Extract the first word of "pod2man", so it can be a program name with args.
30805 set dummy pod2man; ac_word=$2
30806 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
30807 $as_echo_n "checking for $ac_word... " >&6; }
30808 if test "${ac_cv_path_POD2MAN+set}" = set; then
30809 $as_echo_n "(cached) " >&6
30810 else
30811 case $POD2MAN in
30812 [\\/]* | ?:[\\/]*)
30813 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
30814 ;;
30815 *)
30816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30817 for as_dir in $PATH
30818 do
30819 IFS=$as_save_IFS
30820 test -z "$as_dir" && as_dir=.
30821 for ac_exec_ext in '' $ac_executable_extensions; do
30822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30823 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
30824 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30825 break 2
30826 fi
30827 done
30828 done
30829 IFS=$as_save_IFS
30831 test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="no"
30832 ;;
30833 esac
30834 fi
30835 POD2MAN=$ac_cv_path_POD2MAN
30836 if test -n "$POD2MAN"; then
30837 { $as_echo "$as_me:$LINENO: result: $POD2MAN" >&5
30838 $as_echo "$POD2MAN" >&6; }
30839 else
30840 { $as_echo "$as_me:$LINENO: result: no" >&5
30841 $as_echo "no" >&6; }
30842 fi
30845 # Extract the first word of "pod2html", so it can be a program name with args.
30846 set dummy pod2html; ac_word=$2
30847 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
30848 $as_echo_n "checking for $ac_word... " >&6; }
30849 if test "${ac_cv_path_POD2HTML+set}" = set; then
30850 $as_echo_n "(cached) " >&6
30851 else
30852 case $POD2HTML in
30853 [\\/]* | ?:[\\/]*)
30854 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
30855 ;;
30856 *)
30857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30858 for as_dir in $PATH
30859 do
30860 IFS=$as_save_IFS
30861 test -z "$as_dir" && as_dir=.
30862 for ac_exec_ext in '' $ac_executable_extensions; do
30863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30864 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
30865 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30866 break 2
30867 fi
30868 done
30869 done
30870 IFS=$as_save_IFS
30872 test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="no"
30873 ;;
30874 esac
30875 fi
30876 POD2HTML=$ac_cv_path_POD2HTML
30877 if test -n "$POD2HTML"; then
30878 { $as_echo "$as_me:$LINENO: result: $POD2HTML" >&5
30879 $as_echo "$POD2HTML" >&6; }
30880 else
30881 { $as_echo "$as_me:$LINENO: result: no" >&5
30882 $as_echo "no" >&6; }
30883 fi
30888 # Check whether --enable-perl was given.
30889 if test "${enable_perl+set}" = set; then
30890 enableval=$enable_perl;
30891 else
30892 enable_perl=yes
30893 fi
30902 if test "x$PERL" = "xno" -o x$enable_perl = xno; then
30903 COMP_PERL=
30904 else
30905 COMP_PERL="perl_piped perl_shared"
30906 { $as_echo "$as_me:$LINENO: checking for the perl version you are running" >&5
30907 $as_echo_n "checking for the perl version you are running... " >&6; }
30908 PERL_VERSION=`$PERL -MConfig -e 'print $Config{version}'`
30909 { $as_echo "$as_me:$LINENO: result: $PERL_VERSION" >&5
30910 $as_echo "$PERL_VERSION" >&6; }
30911 if test -z "$PERLCC"; then
30912 { $as_echo "$as_me:$LINENO: checking for the C compiler perl wants to use to build its modules" >&5
30913 $as_echo_n "checking for the C compiler perl wants to use to build its modules... " >&6; }
30914 perlcc=`$PERL -MConfig -e 'print $Config{cc}'`
30915 { $as_echo "$as_me:$LINENO: result: $perlcc" >&5
30916 $as_echo "$perlcc" >&6; }
30917 if test ! -x "$perlcc"; then
30918 # Extract the first word of "${perlcc}", so it can be a program name with args.
30919 set dummy ${perlcc}; ac_word=$2
30920 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
30921 $as_echo_n "checking for $ac_word... " >&6; }
30922 if test "${ac_cv_path_PERL_CC+set}" = set; then
30923 $as_echo_n "(cached) " >&6
30924 else
30925 case $PERL_CC in
30926 [\\/]* | ?:[\\/]*)
30927 ac_cv_path_PERL_CC="$PERL_CC" # Let the user override the test with a path.
30928 ;;
30929 *)
30930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30931 for as_dir in $PATH
30932 do
30933 IFS=$as_save_IFS
30934 test -z "$as_dir" && as_dir=.
30935 for ac_exec_ext in '' $ac_executable_extensions; do
30936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30937 ac_cv_path_PERL_CC="$as_dir/$ac_word$ac_exec_ext"
30938 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30939 break 2
30940 fi
30941 done
30942 done
30943 IFS=$as_save_IFS
30945 test -z "$ac_cv_path_PERL_CC" && ac_cv_path_PERL_CC="no"
30946 ;;
30947 esac
30948 fi
30949 PERL_CC=$ac_cv_path_PERL_CC
30950 if test -n "$PERL_CC"; then
30951 { $as_echo "$as_me:$LINENO: result: $PERL_CC" >&5
30952 $as_echo "$PERL_CC" >&6; }
30953 else
30954 { $as_echo "$as_me:$LINENO: result: no" >&5
30955 $as_echo "no" >&6; }
30956 fi
30959 if test "$PERL_CC" = "no"; then
30960 { $as_echo "$as_me:$LINENO: WARNING:
30961 I would not find the Compiler ($perlcc) that was originally used to compile
30962 your perl binary. You should either make sure that this compiler is
30963 available on your system, pick an other compiler and set PERLCC
30964 appropriately, or use a different perl setup that was compiled locally.
30966 I will disable the compilation of the RRDs perl module for now.
30967 " >&5
30968 $as_echo "$as_me: WARNING:
30969 I would not find the Compiler ($perlcc) that was originally used to compile
30970 your perl binary. You should either make sure that this compiler is
30971 available on your system, pick an other compiler and set PERLCC
30972 appropriately, or use a different perl setup that was compiled locally.
30974 I will disable the compilation of the RRDs perl module for now.
30975 " >&2;}
30976 COMP_PERL="perl_piped"
30977 fi
30978 fi
30979 fi
30980 fi
30982 { $as_echo "$as_me:$LINENO: checking Perl Modules to build" >&5
30983 $as_echo_n "checking Perl Modules to build... " >&6; }
30984 { $as_echo "$as_me:$LINENO: result: ${COMP_PERL:-No Perl Modules will be built}" >&5
30985 $as_echo "${COMP_PERL:-No Perl Modules will be built}" >&6; }
30987 # Options to pass when configuring perl module
30988 langpref=$prefix
30989 test "$langpref" = '$(DESTDIR)NONE' && langpref='$(DESTDIR)'$ac_default_prefix
30990 test "$langpref" = "NONE" && langpref=$ac_default_prefix
30992 PERL_MAKE_OPTIONS="PREFIX=$langpref LIB=$langpref/lib/perl/$PERL_VERSION"
30994 # Check whether --enable-perl-site-install was given.
30995 if test "${enable_perl_site_install+set}" = set; then
30996 enableval=$enable_perl_site_install; PERL_MAKE_OPTIONS=
30997 fi
31000 if test ! -z "$PERLCC"; then
31001 PERL_MAKE_OPTIONS="$PERL_MAKE_OPTIONS CC=$PERLCC"
31003 if test ! -z "$PERLCCFLAGS"; then
31004 PERL_MAKE_OPTIONS="$PERL_MAKE_OPTIONS CCFLAGS=$PERLCCFLAGS"
31005 fi
31007 if test -z "$PERLLD"; then
31008 PERLLD=$PERLCC
31009 fi
31010 PERL_MAKE_OPTIONS="$PERL_MAKE_OPTIONS LD=$PERLLD"
31012 if test ! -z "$PERLLDFLAGS"; then
31013 PERL_MAKE_OPTIONS="$PERL_MAKE_OPTIONS LDFLAGS=$PERLLDFLAGS"
31014 fi
31015 fi
31018 # Check whether --with-perl-options was given.
31019 if test "${with_perl_options+set}" = set; then
31020 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
31021 fi
31029 # Extract the first word of "ruby", so it can be a program name with args.
31030 set dummy ruby; ac_word=$2
31031 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
31032 $as_echo_n "checking for $ac_word... " >&6; }
31033 if test "${ac_cv_path_RUBY+set}" = set; then
31034 $as_echo_n "(cached) " >&6
31035 else
31036 case $RUBY in
31037 [\\/]* | ?:[\\/]*)
31038 ac_cv_path_RUBY="$RUBY" # Let the user override the test with a path.
31039 ;;
31040 *)
31041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31042 for as_dir in $PATH
31043 do
31044 IFS=$as_save_IFS
31045 test -z "$as_dir" && as_dir=.
31046 for ac_exec_ext in '' $ac_executable_extensions; do
31047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31048 ac_cv_path_RUBY="$as_dir/$ac_word$ac_exec_ext"
31049 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31050 break 2
31051 fi
31052 done
31053 done
31054 IFS=$as_save_IFS
31056 test -z "$ac_cv_path_RUBY" && ac_cv_path_RUBY="no"
31057 ;;
31058 esac
31059 fi
31060 RUBY=$ac_cv_path_RUBY
31061 if test -n "$RUBY"; then
31062 { $as_echo "$as_me:$LINENO: result: $RUBY" >&5
31063 $as_echo "$RUBY" >&6; }
31064 else
31065 { $as_echo "$as_me:$LINENO: result: no" >&5
31066 $as_echo "no" >&6; }
31067 fi
31071 # Check whether --enable-ruby was given.
31072 if test "${enable_ruby+set}" = set; then
31073 enableval=$enable_ruby;
31074 else
31075 enable_ruby=yes
31076 fi
31079 { $as_echo "$as_me:$LINENO: checking if ruby modules can be built" >&5
31080 $as_echo_n "checking if ruby modules can be built... " >&6; }
31082 if test "x$RUBY" = "xno" -o x$enable_ruby = xno; then
31083 COMP_RUBY=
31084 { $as_echo "$as_me:$LINENO: result: No .. Ruby not found or disabled" >&5
31085 $as_echo "No .. Ruby not found or disabled" >&6; }
31086 else
31087 if $RUBY -e 'require "mkmf"' >/dev/null 2>&1; then
31088 COMP_RUBY="ruby"
31089 { $as_echo "$as_me:$LINENO: result: YES" >&5
31090 $as_echo "YES" >&6; }
31091 else
31092 COMP_RUBY=
31093 { $as_echo "$as_me:$LINENO: result: Ruby found but mkmf is missing! Install the -dev package" >&5
31094 $as_echo "Ruby found but mkmf is missing! Install the -dev package" >&6; }
31095 fi
31096 fi
31098 # Check whether --enable-ruby-site-install was given.
31099 if test "${enable_ruby_site_install+set}" = set; then
31100 enableval=$enable_ruby_site_install; RUBY_MAKE_OPTIONS=
31101 else
31102 RUBY_MAKE_OPTIONS="sitedir=$langpref/lib/ruby"
31103 fi
31108 # Check whether --with-ruby-options was given.
31109 if test "${with_ruby_options+set}" = set; then
31110 withval=$with_ruby_options; RUBY_MAKE_OPTIONS=$withval
31111 fi
31118 # Extract the first word of "lua", so it can be a program name with args.
31119 set dummy lua; ac_word=$2
31120 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
31121 $as_echo_n "checking for $ac_word... " >&6; }
31122 if test "${ac_cv_path_LUA+set}" = set; then
31123 $as_echo_n "(cached) " >&6
31124 else
31125 case $LUA in
31126 [\\/]* | ?:[\\/]*)
31127 ac_cv_path_LUA="$LUA" # Let the user override the test with a path.
31128 ;;
31129 *)
31130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31131 for as_dir in $PATH
31132 do
31133 IFS=$as_save_IFS
31134 test -z "$as_dir" && as_dir=.
31135 for ac_exec_ext in '' $ac_executable_extensions; do
31136 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31137 ac_cv_path_LUA="$as_dir/$ac_word$ac_exec_ext"
31138 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31139 break 2
31140 fi
31141 done
31142 done
31143 IFS=$as_save_IFS
31145 test -z "$ac_cv_path_LUA" && ac_cv_path_LUA="no"
31146 ;;
31147 esac
31148 fi
31149 LUA=$ac_cv_path_LUA
31150 if test -n "$LUA"; then
31151 { $as_echo "$as_me:$LINENO: result: $LUA" >&5
31152 $as_echo "$LUA" >&6; }
31153 else
31154 { $as_echo "$as_me:$LINENO: result: no" >&5
31155 $as_echo "no" >&6; }
31156 fi
31160 # Check whether --enable-lua was given.
31161 if test "${enable_lua+set}" = set; then
31162 enableval=$enable_lua;
31163 else
31164 enable_lua=yes
31165 fi
31168 COMP_LUA=
31169 if test "$LUA" = "no" -o "$enable_lua" = "no"; then
31170 enable_lua=no
31171 else
31172 { $as_echo "$as_me:$LINENO: checking for lua >= 5.0" >&5
31173 $as_echo_n "checking for lua >= 5.0... " >&6; }
31174 read LUA_MAJOR LUA_MINOR LUA_POINT <<LUA_EOF
31175 $($LUA -v 2>&1 | cut -f2 -d' ' | sed -e 's/\./ /g')
31176 LUA_EOF
31177 if test 0$LUA_MAJOR -lt 5; then
31178 { $as_echo "$as_me:$LINENO: result: no, version found is $LUA_MAJOR.$LUA_MINOR" >&5
31179 $as_echo "no, version found is $LUA_MAJOR.$LUA_MINOR" >&6; }
31180 else
31181 { $as_echo "$as_me:$LINENO: result: $LUA_MAJOR.$LUA_MINOR found" >&5
31182 $as_echo "$LUA_MAJOR.$LUA_MINOR found" >&6; }
31183 lua_vdot=$LUA_MAJOR.$LUA_MINOR
31184 lua_vndot=$LUA_MAJOR$LUA_MINOR
31185 lua_version=$LUA_MAJOR.$LUA_MINOR.$LUA_POINT
31187 for ac_header in lua$lua_vndot/lua.h
31188 do
31189 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31190 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31191 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
31192 $as_echo_n "checking for $ac_header... " >&6; }
31193 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31194 $as_echo_n "(cached) " >&6
31195 fi
31196 ac_res=`eval 'as_val=${'$as_ac_Header'}
31197 $as_echo "$as_val"'`
31198 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31199 $as_echo "$ac_res" >&6; }
31200 else
31201 # Is the header compilable?
31202 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
31203 $as_echo_n "checking $ac_header usability... " >&6; }
31204 cat >conftest.$ac_ext <<_ACEOF
31205 /* confdefs.h. */
31206 _ACEOF
31207 cat confdefs.h >>conftest.$ac_ext
31208 cat >>conftest.$ac_ext <<_ACEOF
31209 /* end confdefs.h. */
31210 $ac_includes_default
31211 #include <$ac_header>
31212 _ACEOF
31213 rm -f conftest.$ac_objext
31214 if { (ac_try="$ac_compile"
31215 case "(($ac_try" in
31216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31217 *) ac_try_echo=$ac_try;;
31218 esac
31219 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31220 $as_echo "$ac_try_echo") >&5
31221 (eval "$ac_compile") 2>conftest.er1
31222 ac_status=$?
31223 grep -v '^ *+' conftest.er1 >conftest.err
31224 rm -f conftest.er1
31225 cat conftest.err >&5
31226 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31227 (exit $ac_status); } && {
31228 test -z "$ac_c_werror_flag" ||
31229 test ! -s conftest.err
31230 } && test -s conftest.$ac_objext; then
31231 ac_header_compiler=yes
31232 else
31233 $as_echo "$as_me: failed program was:" >&5
31234 sed 's/^/| /' conftest.$ac_ext >&5
31236 ac_header_compiler=no
31237 fi
31239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31240 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31241 $as_echo "$ac_header_compiler" >&6; }
31243 # Is the header present?
31244 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
31245 $as_echo_n "checking $ac_header presence... " >&6; }
31246 cat >conftest.$ac_ext <<_ACEOF
31247 /* confdefs.h. */
31248 _ACEOF
31249 cat confdefs.h >>conftest.$ac_ext
31250 cat >>conftest.$ac_ext <<_ACEOF
31251 /* end confdefs.h. */
31252 #include <$ac_header>
31253 _ACEOF
31254 if { (ac_try="$ac_cpp conftest.$ac_ext"
31255 case "(($ac_try" in
31256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31257 *) ac_try_echo=$ac_try;;
31258 esac
31259 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31260 $as_echo "$ac_try_echo") >&5
31261 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31262 ac_status=$?
31263 grep -v '^ *+' conftest.er1 >conftest.err
31264 rm -f conftest.er1
31265 cat conftest.err >&5
31266 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31267 (exit $ac_status); } >/dev/null && {
31268 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31269 test ! -s conftest.err
31270 }; then
31271 ac_header_preproc=yes
31272 else
31273 $as_echo "$as_me: failed program was:" >&5
31274 sed 's/^/| /' conftest.$ac_ext >&5
31276 ac_header_preproc=no
31277 fi
31279 rm -f conftest.err conftest.$ac_ext
31280 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31281 $as_echo "$ac_header_preproc" >&6; }
31283 # So? What about this header?
31284 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31285 yes:no: )
31286 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31287 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31288 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31289 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31290 ac_header_preproc=yes
31291 ;;
31292 no:yes:* )
31293 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31294 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31295 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31296 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31297 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31298 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31299 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31300 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31301 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31302 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31303 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31304 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31306 ;;
31307 esac
31308 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
31309 $as_echo_n "checking for $ac_header... " >&6; }
31310 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31311 $as_echo_n "(cached) " >&6
31312 else
31313 eval "$as_ac_Header=\$ac_header_preproc"
31314 fi
31315 ac_res=`eval 'as_val=${'$as_ac_Header'}
31316 $as_echo "$as_val"'`
31317 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31318 $as_echo "$ac_res" >&6; }
31320 fi
31321 as_val=`eval 'as_val=${'$as_ac_Header'}
31322 $as_echo "$as_val"'`
31323 if test "x$as_val" = x""yes; then
31324 cat >>confdefs.h <<_ACEOF
31325 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31326 _ACEOF
31328 for ac_header in lua$lua_vndot/lualib.h
31329 do
31330 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31331 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31332 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
31333 $as_echo_n "checking for $ac_header... " >&6; }
31334 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31335 $as_echo_n "(cached) " >&6
31336 fi
31337 ac_res=`eval 'as_val=${'$as_ac_Header'}
31338 $as_echo "$as_val"'`
31339 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31340 $as_echo "$ac_res" >&6; }
31341 else
31342 # Is the header compilable?
31343 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
31344 $as_echo_n "checking $ac_header usability... " >&6; }
31345 cat >conftest.$ac_ext <<_ACEOF
31346 /* confdefs.h. */
31347 _ACEOF
31348 cat confdefs.h >>conftest.$ac_ext
31349 cat >>conftest.$ac_ext <<_ACEOF
31350 /* end confdefs.h. */
31351 $ac_includes_default
31352 #include <$ac_header>
31353 _ACEOF
31354 rm -f conftest.$ac_objext
31355 if { (ac_try="$ac_compile"
31356 case "(($ac_try" in
31357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31358 *) ac_try_echo=$ac_try;;
31359 esac
31360 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31361 $as_echo "$ac_try_echo") >&5
31362 (eval "$ac_compile") 2>conftest.er1
31363 ac_status=$?
31364 grep -v '^ *+' conftest.er1 >conftest.err
31365 rm -f conftest.er1
31366 cat conftest.err >&5
31367 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31368 (exit $ac_status); } && {
31369 test -z "$ac_c_werror_flag" ||
31370 test ! -s conftest.err
31371 } && test -s conftest.$ac_objext; then
31372 ac_header_compiler=yes
31373 else
31374 $as_echo "$as_me: failed program was:" >&5
31375 sed 's/^/| /' conftest.$ac_ext >&5
31377 ac_header_compiler=no
31378 fi
31380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31381 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31382 $as_echo "$ac_header_compiler" >&6; }
31384 # Is the header present?
31385 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
31386 $as_echo_n "checking $ac_header presence... " >&6; }
31387 cat >conftest.$ac_ext <<_ACEOF
31388 /* confdefs.h. */
31389 _ACEOF
31390 cat confdefs.h >>conftest.$ac_ext
31391 cat >>conftest.$ac_ext <<_ACEOF
31392 /* end confdefs.h. */
31393 #include <$ac_header>
31394 _ACEOF
31395 if { (ac_try="$ac_cpp conftest.$ac_ext"
31396 case "(($ac_try" in
31397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31398 *) ac_try_echo=$ac_try;;
31399 esac
31400 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31401 $as_echo "$ac_try_echo") >&5
31402 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31403 ac_status=$?
31404 grep -v '^ *+' conftest.er1 >conftest.err
31405 rm -f conftest.er1
31406 cat conftest.err >&5
31407 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31408 (exit $ac_status); } >/dev/null && {
31409 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31410 test ! -s conftest.err
31411 }; then
31412 ac_header_preproc=yes
31413 else
31414 $as_echo "$as_me: failed program was:" >&5
31415 sed 's/^/| /' conftest.$ac_ext >&5
31417 ac_header_preproc=no
31418 fi
31420 rm -f conftest.err conftest.$ac_ext
31421 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31422 $as_echo "$ac_header_preproc" >&6; }
31424 # So? What about this header?
31425 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31426 yes:no: )
31427 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31428 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31429 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31430 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31431 ac_header_preproc=yes
31432 ;;
31433 no:yes:* )
31434 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31435 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31436 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31437 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31438 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31439 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31440 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31441 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31442 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31443 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31444 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31445 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31447 ;;
31448 esac
31449 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
31450 $as_echo_n "checking for $ac_header... " >&6; }
31451 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31452 $as_echo_n "(cached) " >&6
31453 else
31454 eval "$as_ac_Header=\$ac_header_preproc"
31455 fi
31456 ac_res=`eval 'as_val=${'$as_ac_Header'}
31457 $as_echo "$as_val"'`
31458 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31459 $as_echo "$ac_res" >&6; }
31461 fi
31462 as_val=`eval 'as_val=${'$as_ac_Header'}
31463 $as_echo "$as_val"'`
31464 if test "x$as_val" = x""yes; then
31465 cat >>confdefs.h <<_ACEOF
31466 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31467 _ACEOF
31468 as_ac_Header=`$as_echo "ac_cv_header_lua$lua_vndot/lauxlib.h" | $as_tr_sh`
31469 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31470 { $as_echo "$as_me:$LINENO: checking for lua$lua_vndot/lauxlib.h" >&5
31471 $as_echo_n "checking for lua$lua_vndot/lauxlib.h... " >&6; }
31472 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31473 $as_echo_n "(cached) " >&6
31474 fi
31475 ac_res=`eval 'as_val=${'$as_ac_Header'}
31476 $as_echo "$as_val"'`
31477 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31478 $as_echo "$ac_res" >&6; }
31479 else
31480 # Is the header compilable?
31481 { $as_echo "$as_me:$LINENO: checking lua$lua_vndot/lauxlib.h usability" >&5
31482 $as_echo_n "checking lua$lua_vndot/lauxlib.h usability... " >&6; }
31483 cat >conftest.$ac_ext <<_ACEOF
31484 /* confdefs.h. */
31485 _ACEOF
31486 cat confdefs.h >>conftest.$ac_ext
31487 cat >>conftest.$ac_ext <<_ACEOF
31488 /* end confdefs.h. */
31489 $ac_includes_default
31490 #include <lua$lua_vndot/lauxlib.h>
31491 _ACEOF
31492 rm -f conftest.$ac_objext
31493 if { (ac_try="$ac_compile"
31494 case "(($ac_try" in
31495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31496 *) ac_try_echo=$ac_try;;
31497 esac
31498 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31499 $as_echo "$ac_try_echo") >&5
31500 (eval "$ac_compile") 2>conftest.er1
31501 ac_status=$?
31502 grep -v '^ *+' conftest.er1 >conftest.err
31503 rm -f conftest.er1
31504 cat conftest.err >&5
31505 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31506 (exit $ac_status); } && {
31507 test -z "$ac_c_werror_flag" ||
31508 test ! -s conftest.err
31509 } && test -s conftest.$ac_objext; then
31510 ac_header_compiler=yes
31511 else
31512 $as_echo "$as_me: failed program was:" >&5
31513 sed 's/^/| /' conftest.$ac_ext >&5
31515 ac_header_compiler=no
31516 fi
31518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31519 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31520 $as_echo "$ac_header_compiler" >&6; }
31522 # Is the header present?
31523 { $as_echo "$as_me:$LINENO: checking lua$lua_vndot/lauxlib.h presence" >&5
31524 $as_echo_n "checking lua$lua_vndot/lauxlib.h presence... " >&6; }
31525 cat >conftest.$ac_ext <<_ACEOF
31526 /* confdefs.h. */
31527 _ACEOF
31528 cat confdefs.h >>conftest.$ac_ext
31529 cat >>conftest.$ac_ext <<_ACEOF
31530 /* end confdefs.h. */
31531 #include <lua$lua_vndot/lauxlib.h>
31532 _ACEOF
31533 if { (ac_try="$ac_cpp conftest.$ac_ext"
31534 case "(($ac_try" in
31535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31536 *) ac_try_echo=$ac_try;;
31537 esac
31538 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31539 $as_echo "$ac_try_echo") >&5
31540 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31541 ac_status=$?
31542 grep -v '^ *+' conftest.er1 >conftest.err
31543 rm -f conftest.er1
31544 cat conftest.err >&5
31545 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31546 (exit $ac_status); } >/dev/null && {
31547 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31548 test ! -s conftest.err
31549 }; then
31550 ac_header_preproc=yes
31551 else
31552 $as_echo "$as_me: failed program was:" >&5
31553 sed 's/^/| /' conftest.$ac_ext >&5
31555 ac_header_preproc=no
31556 fi
31558 rm -f conftest.err conftest.$ac_ext
31559 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31560 $as_echo "$ac_header_preproc" >&6; }
31562 # So? What about this header?
31563 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31564 yes:no: )
31565 { $as_echo "$as_me:$LINENO: WARNING: lua$lua_vndot/lauxlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
31566 $as_echo "$as_me: WARNING: lua$lua_vndot/lauxlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31567 { $as_echo "$as_me:$LINENO: WARNING: lua$lua_vndot/lauxlib.h: proceeding with the compiler's result" >&5
31568 $as_echo "$as_me: WARNING: lua$lua_vndot/lauxlib.h: proceeding with the compiler's result" >&2;}
31569 ac_header_preproc=yes
31570 ;;
31571 no:yes:* )
31572 { $as_echo "$as_me:$LINENO: WARNING: lua$lua_vndot/lauxlib.h: present but cannot be compiled" >&5
31573 $as_echo "$as_me: WARNING: lua$lua_vndot/lauxlib.h: present but cannot be compiled" >&2;}
31574 { $as_echo "$as_me:$LINENO: WARNING: lua$lua_vndot/lauxlib.h: check for missing prerequisite headers?" >&5
31575 $as_echo "$as_me: WARNING: lua$lua_vndot/lauxlib.h: check for missing prerequisite headers?" >&2;}
31576 { $as_echo "$as_me:$LINENO: WARNING: lua$lua_vndot/lauxlib.h: see the Autoconf documentation" >&5
31577 $as_echo "$as_me: WARNING: lua$lua_vndot/lauxlib.h: see the Autoconf documentation" >&2;}
31578 { $as_echo "$as_me:$LINENO: WARNING: lua$lua_vndot/lauxlib.h: section \"Present But Cannot Be Compiled\"" >&5
31579 $as_echo "$as_me: WARNING: lua$lua_vndot/lauxlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
31580 { $as_echo "$as_me:$LINENO: WARNING: lua$lua_vndot/lauxlib.h: proceeding with the preprocessor's result" >&5
31581 $as_echo "$as_me: WARNING: lua$lua_vndot/lauxlib.h: proceeding with the preprocessor's result" >&2;}
31582 { $as_echo "$as_me:$LINENO: WARNING: lua$lua_vndot/lauxlib.h: in the future, the compiler will take precedence" >&5
31583 $as_echo "$as_me: WARNING: lua$lua_vndot/lauxlib.h: in the future, the compiler will take precedence" >&2;}
31585 ;;
31586 esac
31587 { $as_echo "$as_me:$LINENO: checking for lua$lua_vndot/lauxlib.h" >&5
31588 $as_echo_n "checking for lua$lua_vndot/lauxlib.h... " >&6; }
31589 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31590 $as_echo_n "(cached) " >&6
31591 else
31592 eval "$as_ac_Header=\$ac_header_preproc"
31593 fi
31594 ac_res=`eval 'as_val=${'$as_ac_Header'}
31595 $as_echo "$as_val"'`
31596 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31597 $as_echo "$ac_res" >&6; }
31599 fi
31600 as_val=`eval 'as_val=${'$as_ac_Header'}
31601 $as_echo "$as_val"'`
31602 if test "x$as_val" = x""yes; then
31603 lua_headerdir=lua$lua_vndot
31604 fi
31607 fi
31609 done
31611 else
31613 for ac_header in lua$lua_vdot/lua.h
31614 do
31615 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31616 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31617 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
31618 $as_echo_n "checking for $ac_header... " >&6; }
31619 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31620 $as_echo_n "(cached) " >&6
31621 fi
31622 ac_res=`eval 'as_val=${'$as_ac_Header'}
31623 $as_echo "$as_val"'`
31624 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31625 $as_echo "$ac_res" >&6; }
31626 else
31627 # Is the header compilable?
31628 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
31629 $as_echo_n "checking $ac_header usability... " >&6; }
31630 cat >conftest.$ac_ext <<_ACEOF
31631 /* confdefs.h. */
31632 _ACEOF
31633 cat confdefs.h >>conftest.$ac_ext
31634 cat >>conftest.$ac_ext <<_ACEOF
31635 /* end confdefs.h. */
31636 $ac_includes_default
31637 #include <$ac_header>
31638 _ACEOF
31639 rm -f conftest.$ac_objext
31640 if { (ac_try="$ac_compile"
31641 case "(($ac_try" in
31642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31643 *) ac_try_echo=$ac_try;;
31644 esac
31645 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31646 $as_echo "$ac_try_echo") >&5
31647 (eval "$ac_compile") 2>conftest.er1
31648 ac_status=$?
31649 grep -v '^ *+' conftest.er1 >conftest.err
31650 rm -f conftest.er1
31651 cat conftest.err >&5
31652 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31653 (exit $ac_status); } && {
31654 test -z "$ac_c_werror_flag" ||
31655 test ! -s conftest.err
31656 } && test -s conftest.$ac_objext; then
31657 ac_header_compiler=yes
31658 else
31659 $as_echo "$as_me: failed program was:" >&5
31660 sed 's/^/| /' conftest.$ac_ext >&5
31662 ac_header_compiler=no
31663 fi
31665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31666 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31667 $as_echo "$ac_header_compiler" >&6; }
31669 # Is the header present?
31670 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
31671 $as_echo_n "checking $ac_header presence... " >&6; }
31672 cat >conftest.$ac_ext <<_ACEOF
31673 /* confdefs.h. */
31674 _ACEOF
31675 cat confdefs.h >>conftest.$ac_ext
31676 cat >>conftest.$ac_ext <<_ACEOF
31677 /* end confdefs.h. */
31678 #include <$ac_header>
31679 _ACEOF
31680 if { (ac_try="$ac_cpp conftest.$ac_ext"
31681 case "(($ac_try" in
31682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31683 *) ac_try_echo=$ac_try;;
31684 esac
31685 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31686 $as_echo "$ac_try_echo") >&5
31687 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31688 ac_status=$?
31689 grep -v '^ *+' conftest.er1 >conftest.err
31690 rm -f conftest.er1
31691 cat conftest.err >&5
31692 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31693 (exit $ac_status); } >/dev/null && {
31694 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31695 test ! -s conftest.err
31696 }; then
31697 ac_header_preproc=yes
31698 else
31699 $as_echo "$as_me: failed program was:" >&5
31700 sed 's/^/| /' conftest.$ac_ext >&5
31702 ac_header_preproc=no
31703 fi
31705 rm -f conftest.err conftest.$ac_ext
31706 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31707 $as_echo "$ac_header_preproc" >&6; }
31709 # So? What about this header?
31710 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31711 yes:no: )
31712 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31713 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31714 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31715 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31716 ac_header_preproc=yes
31717 ;;
31718 no:yes:* )
31719 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31720 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31721 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31722 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31723 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31724 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31725 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31726 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31727 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31728 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31729 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31730 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31732 ;;
31733 esac
31734 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
31735 $as_echo_n "checking for $ac_header... " >&6; }
31736 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31737 $as_echo_n "(cached) " >&6
31738 else
31739 eval "$as_ac_Header=\$ac_header_preproc"
31740 fi
31741 ac_res=`eval 'as_val=${'$as_ac_Header'}
31742 $as_echo "$as_val"'`
31743 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31744 $as_echo "$ac_res" >&6; }
31746 fi
31747 as_val=`eval 'as_val=${'$as_ac_Header'}
31748 $as_echo "$as_val"'`
31749 if test "x$as_val" = x""yes; then
31750 cat >>confdefs.h <<_ACEOF
31751 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31752 _ACEOF
31754 for ac_header in lua$lua_vdot/lualib.h
31755 do
31756 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31757 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31758 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
31759 $as_echo_n "checking for $ac_header... " >&6; }
31760 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31761 $as_echo_n "(cached) " >&6
31762 fi
31763 ac_res=`eval 'as_val=${'$as_ac_Header'}
31764 $as_echo "$as_val"'`
31765 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31766 $as_echo "$ac_res" >&6; }
31767 else
31768 # Is the header compilable?
31769 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
31770 $as_echo_n "checking $ac_header usability... " >&6; }
31771 cat >conftest.$ac_ext <<_ACEOF
31772 /* confdefs.h. */
31773 _ACEOF
31774 cat confdefs.h >>conftest.$ac_ext
31775 cat >>conftest.$ac_ext <<_ACEOF
31776 /* end confdefs.h. */
31777 $ac_includes_default
31778 #include <$ac_header>
31779 _ACEOF
31780 rm -f conftest.$ac_objext
31781 if { (ac_try="$ac_compile"
31782 case "(($ac_try" in
31783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31784 *) ac_try_echo=$ac_try;;
31785 esac
31786 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31787 $as_echo "$ac_try_echo") >&5
31788 (eval "$ac_compile") 2>conftest.er1
31789 ac_status=$?
31790 grep -v '^ *+' conftest.er1 >conftest.err
31791 rm -f conftest.er1
31792 cat conftest.err >&5
31793 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31794 (exit $ac_status); } && {
31795 test -z "$ac_c_werror_flag" ||
31796 test ! -s conftest.err
31797 } && test -s conftest.$ac_objext; then
31798 ac_header_compiler=yes
31799 else
31800 $as_echo "$as_me: failed program was:" >&5
31801 sed 's/^/| /' conftest.$ac_ext >&5
31803 ac_header_compiler=no
31804 fi
31806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31807 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31808 $as_echo "$ac_header_compiler" >&6; }
31810 # Is the header present?
31811 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
31812 $as_echo_n "checking $ac_header presence... " >&6; }
31813 cat >conftest.$ac_ext <<_ACEOF
31814 /* confdefs.h. */
31815 _ACEOF
31816 cat confdefs.h >>conftest.$ac_ext
31817 cat >>conftest.$ac_ext <<_ACEOF
31818 /* end confdefs.h. */
31819 #include <$ac_header>
31820 _ACEOF
31821 if { (ac_try="$ac_cpp conftest.$ac_ext"
31822 case "(($ac_try" in
31823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31824 *) ac_try_echo=$ac_try;;
31825 esac
31826 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31827 $as_echo "$ac_try_echo") >&5
31828 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31829 ac_status=$?
31830 grep -v '^ *+' conftest.er1 >conftest.err
31831 rm -f conftest.er1
31832 cat conftest.err >&5
31833 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31834 (exit $ac_status); } >/dev/null && {
31835 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31836 test ! -s conftest.err
31837 }; then
31838 ac_header_preproc=yes
31839 else
31840 $as_echo "$as_me: failed program was:" >&5
31841 sed 's/^/| /' conftest.$ac_ext >&5
31843 ac_header_preproc=no
31844 fi
31846 rm -f conftest.err conftest.$ac_ext
31847 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31848 $as_echo "$ac_header_preproc" >&6; }
31850 # So? What about this header?
31851 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31852 yes:no: )
31853 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31854 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31855 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31856 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31857 ac_header_preproc=yes
31858 ;;
31859 no:yes:* )
31860 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31861 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31862 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31863 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31864 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31865 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31866 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31867 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31868 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31869 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31870 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31871 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31873 ;;
31874 esac
31875 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
31876 $as_echo_n "checking for $ac_header... " >&6; }
31877 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31878 $as_echo_n "(cached) " >&6
31879 else
31880 eval "$as_ac_Header=\$ac_header_preproc"
31881 fi
31882 ac_res=`eval 'as_val=${'$as_ac_Header'}
31883 $as_echo "$as_val"'`
31884 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31885 $as_echo "$ac_res" >&6; }
31887 fi
31888 as_val=`eval 'as_val=${'$as_ac_Header'}
31889 $as_echo "$as_val"'`
31890 if test "x$as_val" = x""yes; then
31891 cat >>confdefs.h <<_ACEOF
31892 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31893 _ACEOF
31894 as_ac_Header=`$as_echo "ac_cv_header_lua$lua_vdot/lauxlib.h" | $as_tr_sh`
31895 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31896 { $as_echo "$as_me:$LINENO: checking for lua$lua_vdot/lauxlib.h" >&5
31897 $as_echo_n "checking for lua$lua_vdot/lauxlib.h... " >&6; }
31898 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31899 $as_echo_n "(cached) " >&6
31900 fi
31901 ac_res=`eval 'as_val=${'$as_ac_Header'}
31902 $as_echo "$as_val"'`
31903 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31904 $as_echo "$ac_res" >&6; }
31905 else
31906 # Is the header compilable?
31907 { $as_echo "$as_me:$LINENO: checking lua$lua_vdot/lauxlib.h usability" >&5
31908 $as_echo_n "checking lua$lua_vdot/lauxlib.h usability... " >&6; }
31909 cat >conftest.$ac_ext <<_ACEOF
31910 /* confdefs.h. */
31911 _ACEOF
31912 cat confdefs.h >>conftest.$ac_ext
31913 cat >>conftest.$ac_ext <<_ACEOF
31914 /* end confdefs.h. */
31915 $ac_includes_default
31916 #include <lua$lua_vdot/lauxlib.h>
31917 _ACEOF
31918 rm -f conftest.$ac_objext
31919 if { (ac_try="$ac_compile"
31920 case "(($ac_try" in
31921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31922 *) ac_try_echo=$ac_try;;
31923 esac
31924 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31925 $as_echo "$ac_try_echo") >&5
31926 (eval "$ac_compile") 2>conftest.er1
31927 ac_status=$?
31928 grep -v '^ *+' conftest.er1 >conftest.err
31929 rm -f conftest.er1
31930 cat conftest.err >&5
31931 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31932 (exit $ac_status); } && {
31933 test -z "$ac_c_werror_flag" ||
31934 test ! -s conftest.err
31935 } && test -s conftest.$ac_objext; then
31936 ac_header_compiler=yes
31937 else
31938 $as_echo "$as_me: failed program was:" >&5
31939 sed 's/^/| /' conftest.$ac_ext >&5
31941 ac_header_compiler=no
31942 fi
31944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31945 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31946 $as_echo "$ac_header_compiler" >&6; }
31948 # Is the header present?
31949 { $as_echo "$as_me:$LINENO: checking lua$lua_vdot/lauxlib.h presence" >&5
31950 $as_echo_n "checking lua$lua_vdot/lauxlib.h presence... " >&6; }
31951 cat >conftest.$ac_ext <<_ACEOF
31952 /* confdefs.h. */
31953 _ACEOF
31954 cat confdefs.h >>conftest.$ac_ext
31955 cat >>conftest.$ac_ext <<_ACEOF
31956 /* end confdefs.h. */
31957 #include <lua$lua_vdot/lauxlib.h>
31958 _ACEOF
31959 if { (ac_try="$ac_cpp conftest.$ac_ext"
31960 case "(($ac_try" in
31961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31962 *) ac_try_echo=$ac_try;;
31963 esac
31964 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31965 $as_echo "$ac_try_echo") >&5
31966 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31967 ac_status=$?
31968 grep -v '^ *+' conftest.er1 >conftest.err
31969 rm -f conftest.er1
31970 cat conftest.err >&5
31971 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31972 (exit $ac_status); } >/dev/null && {
31973 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31974 test ! -s conftest.err
31975 }; then
31976 ac_header_preproc=yes
31977 else
31978 $as_echo "$as_me: failed program was:" >&5
31979 sed 's/^/| /' conftest.$ac_ext >&5
31981 ac_header_preproc=no
31982 fi
31984 rm -f conftest.err conftest.$ac_ext
31985 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31986 $as_echo "$ac_header_preproc" >&6; }
31988 # So? What about this header?
31989 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31990 yes:no: )
31991 { $as_echo "$as_me:$LINENO: WARNING: lua$lua_vdot/lauxlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
31992 $as_echo "$as_me: WARNING: lua$lua_vdot/lauxlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31993 { $as_echo "$as_me:$LINENO: WARNING: lua$lua_vdot/lauxlib.h: proceeding with the compiler's result" >&5
31994 $as_echo "$as_me: WARNING: lua$lua_vdot/lauxlib.h: proceeding with the compiler's result" >&2;}
31995 ac_header_preproc=yes
31996 ;;
31997 no:yes:* )
31998 { $as_echo "$as_me:$LINENO: WARNING: lua$lua_vdot/lauxlib.h: present but cannot be compiled" >&5
31999 $as_echo "$as_me: WARNING: lua$lua_vdot/lauxlib.h: present but cannot be compiled" >&2;}
32000 { $as_echo "$as_me:$LINENO: WARNING: lua$lua_vdot/lauxlib.h: check for missing prerequisite headers?" >&5
32001 $as_echo "$as_me: WARNING: lua$lua_vdot/lauxlib.h: check for missing prerequisite headers?" >&2;}
32002 { $as_echo "$as_me:$LINENO: WARNING: lua$lua_vdot/lauxlib.h: see the Autoconf documentation" >&5
32003 $as_echo "$as_me: WARNING: lua$lua_vdot/lauxlib.h: see the Autoconf documentation" >&2;}
32004 { $as_echo "$as_me:$LINENO: WARNING: lua$lua_vdot/lauxlib.h: section \"Present But Cannot Be Compiled\"" >&5
32005 $as_echo "$as_me: WARNING: lua$lua_vdot/lauxlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
32006 { $as_echo "$as_me:$LINENO: WARNING: lua$lua_vdot/lauxlib.h: proceeding with the preprocessor's result" >&5
32007 $as_echo "$as_me: WARNING: lua$lua_vdot/lauxlib.h: proceeding with the preprocessor's result" >&2;}
32008 { $as_echo "$as_me:$LINENO: WARNING: lua$lua_vdot/lauxlib.h: in the future, the compiler will take precedence" >&5
32009 $as_echo "$as_me: WARNING: lua$lua_vdot/lauxlib.h: in the future, the compiler will take precedence" >&2;}
32011 ;;
32012 esac
32013 { $as_echo "$as_me:$LINENO: checking for lua$lua_vdot/lauxlib.h" >&5
32014 $as_echo_n "checking for lua$lua_vdot/lauxlib.h... " >&6; }
32015 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32016 $as_echo_n "(cached) " >&6
32017 else
32018 eval "$as_ac_Header=\$ac_header_preproc"
32019 fi
32020 ac_res=`eval 'as_val=${'$as_ac_Header'}
32021 $as_echo "$as_val"'`
32022 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
32023 $as_echo "$ac_res" >&6; }
32025 fi
32026 as_val=`eval 'as_val=${'$as_ac_Header'}
32027 $as_echo "$as_val"'`
32028 if test "x$as_val" = x""yes; then
32029 lua_headerdir=lua$lua_vdot
32030 fi
32033 fi
32035 done
32037 else
32039 for ac_header in lua.h
32040 do
32041 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
32042 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32043 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
32044 $as_echo_n "checking for $ac_header... " >&6; }
32045 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32046 $as_echo_n "(cached) " >&6
32047 fi
32048 ac_res=`eval 'as_val=${'$as_ac_Header'}
32049 $as_echo "$as_val"'`
32050 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
32051 $as_echo "$ac_res" >&6; }
32052 else
32053 # Is the header compilable?
32054 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
32055 $as_echo_n "checking $ac_header usability... " >&6; }
32056 cat >conftest.$ac_ext <<_ACEOF
32057 /* confdefs.h. */
32058 _ACEOF
32059 cat confdefs.h >>conftest.$ac_ext
32060 cat >>conftest.$ac_ext <<_ACEOF
32061 /* end confdefs.h. */
32062 $ac_includes_default
32063 #include <$ac_header>
32064 _ACEOF
32065 rm -f conftest.$ac_objext
32066 if { (ac_try="$ac_compile"
32067 case "(($ac_try" in
32068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32069 *) ac_try_echo=$ac_try;;
32070 esac
32071 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32072 $as_echo "$ac_try_echo") >&5
32073 (eval "$ac_compile") 2>conftest.er1
32074 ac_status=$?
32075 grep -v '^ *+' conftest.er1 >conftest.err
32076 rm -f conftest.er1
32077 cat conftest.err >&5
32078 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32079 (exit $ac_status); } && {
32080 test -z "$ac_c_werror_flag" ||
32081 test ! -s conftest.err
32082 } && test -s conftest.$ac_objext; then
32083 ac_header_compiler=yes
32084 else
32085 $as_echo "$as_me: failed program was:" >&5
32086 sed 's/^/| /' conftest.$ac_ext >&5
32088 ac_header_compiler=no
32089 fi
32091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32092 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32093 $as_echo "$ac_header_compiler" >&6; }
32095 # Is the header present?
32096 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
32097 $as_echo_n "checking $ac_header presence... " >&6; }
32098 cat >conftest.$ac_ext <<_ACEOF
32099 /* confdefs.h. */
32100 _ACEOF
32101 cat confdefs.h >>conftest.$ac_ext
32102 cat >>conftest.$ac_ext <<_ACEOF
32103 /* end confdefs.h. */
32104 #include <$ac_header>
32105 _ACEOF
32106 if { (ac_try="$ac_cpp conftest.$ac_ext"
32107 case "(($ac_try" in
32108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32109 *) ac_try_echo=$ac_try;;
32110 esac
32111 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32112 $as_echo "$ac_try_echo") >&5
32113 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32114 ac_status=$?
32115 grep -v '^ *+' conftest.er1 >conftest.err
32116 rm -f conftest.er1
32117 cat conftest.err >&5
32118 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32119 (exit $ac_status); } >/dev/null && {
32120 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32121 test ! -s conftest.err
32122 }; then
32123 ac_header_preproc=yes
32124 else
32125 $as_echo "$as_me: failed program was:" >&5
32126 sed 's/^/| /' conftest.$ac_ext >&5
32128 ac_header_preproc=no
32129 fi
32131 rm -f conftest.err conftest.$ac_ext
32132 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32133 $as_echo "$ac_header_preproc" >&6; }
32135 # So? What about this header?
32136 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32137 yes:no: )
32138 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32139 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32140 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32141 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32142 ac_header_preproc=yes
32143 ;;
32144 no:yes:* )
32145 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32146 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32147 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32148 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32149 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32150 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32151 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32152 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
32153 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32154 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32155 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32156 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32158 ;;
32159 esac
32160 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
32161 $as_echo_n "checking for $ac_header... " >&6; }
32162 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32163 $as_echo_n "(cached) " >&6
32164 else
32165 eval "$as_ac_Header=\$ac_header_preproc"
32166 fi
32167 ac_res=`eval 'as_val=${'$as_ac_Header'}
32168 $as_echo "$as_val"'`
32169 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
32170 $as_echo "$ac_res" >&6; }
32172 fi
32173 as_val=`eval 'as_val=${'$as_ac_Header'}
32174 $as_echo "$as_val"'`
32175 if test "x$as_val" = x""yes; then
32176 cat >>confdefs.h <<_ACEOF
32177 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
32178 _ACEOF
32180 for ac_header in lualib.h
32181 do
32182 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
32183 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32184 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
32185 $as_echo_n "checking for $ac_header... " >&6; }
32186 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32187 $as_echo_n "(cached) " >&6
32188 fi
32189 ac_res=`eval 'as_val=${'$as_ac_Header'}
32190 $as_echo "$as_val"'`
32191 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
32192 $as_echo "$ac_res" >&6; }
32193 else
32194 # Is the header compilable?
32195 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
32196 $as_echo_n "checking $ac_header usability... " >&6; }
32197 cat >conftest.$ac_ext <<_ACEOF
32198 /* confdefs.h. */
32199 _ACEOF
32200 cat confdefs.h >>conftest.$ac_ext
32201 cat >>conftest.$ac_ext <<_ACEOF
32202 /* end confdefs.h. */
32203 $ac_includes_default
32204 #include <$ac_header>
32205 _ACEOF
32206 rm -f conftest.$ac_objext
32207 if { (ac_try="$ac_compile"
32208 case "(($ac_try" in
32209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32210 *) ac_try_echo=$ac_try;;
32211 esac
32212 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32213 $as_echo "$ac_try_echo") >&5
32214 (eval "$ac_compile") 2>conftest.er1
32215 ac_status=$?
32216 grep -v '^ *+' conftest.er1 >conftest.err
32217 rm -f conftest.er1
32218 cat conftest.err >&5
32219 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32220 (exit $ac_status); } && {
32221 test -z "$ac_c_werror_flag" ||
32222 test ! -s conftest.err
32223 } && test -s conftest.$ac_objext; then
32224 ac_header_compiler=yes
32225 else
32226 $as_echo "$as_me: failed program was:" >&5
32227 sed 's/^/| /' conftest.$ac_ext >&5
32229 ac_header_compiler=no
32230 fi
32232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32233 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32234 $as_echo "$ac_header_compiler" >&6; }
32236 # Is the header present?
32237 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
32238 $as_echo_n "checking $ac_header presence... " >&6; }
32239 cat >conftest.$ac_ext <<_ACEOF
32240 /* confdefs.h. */
32241 _ACEOF
32242 cat confdefs.h >>conftest.$ac_ext
32243 cat >>conftest.$ac_ext <<_ACEOF
32244 /* end confdefs.h. */
32245 #include <$ac_header>
32246 _ACEOF
32247 if { (ac_try="$ac_cpp conftest.$ac_ext"
32248 case "(($ac_try" in
32249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32250 *) ac_try_echo=$ac_try;;
32251 esac
32252 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32253 $as_echo "$ac_try_echo") >&5
32254 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32255 ac_status=$?
32256 grep -v '^ *+' conftest.er1 >conftest.err
32257 rm -f conftest.er1
32258 cat conftest.err >&5
32259 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32260 (exit $ac_status); } >/dev/null && {
32261 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32262 test ! -s conftest.err
32263 }; then
32264 ac_header_preproc=yes
32265 else
32266 $as_echo "$as_me: failed program was:" >&5
32267 sed 's/^/| /' conftest.$ac_ext >&5
32269 ac_header_preproc=no
32270 fi
32272 rm -f conftest.err conftest.$ac_ext
32273 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32274 $as_echo "$ac_header_preproc" >&6; }
32276 # So? What about this header?
32277 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32278 yes:no: )
32279 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32280 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32281 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32282 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32283 ac_header_preproc=yes
32284 ;;
32285 no:yes:* )
32286 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32287 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32288 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32289 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32290 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32291 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32292 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32293 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
32294 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32295 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32296 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32297 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32299 ;;
32300 esac
32301 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
32302 $as_echo_n "checking for $ac_header... " >&6; }
32303 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32304 $as_echo_n "(cached) " >&6
32305 else
32306 eval "$as_ac_Header=\$ac_header_preproc"
32307 fi
32308 ac_res=`eval 'as_val=${'$as_ac_Header'}
32309 $as_echo "$as_val"'`
32310 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
32311 $as_echo "$ac_res" >&6; }
32313 fi
32314 as_val=`eval 'as_val=${'$as_ac_Header'}
32315 $as_echo "$as_val"'`
32316 if test "x$as_val" = x""yes; then
32317 cat >>confdefs.h <<_ACEOF
32318 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
32319 _ACEOF
32320 if test "${ac_cv_header_lauxlib_h+set}" = set; then
32321 { $as_echo "$as_me:$LINENO: checking for lauxlib.h" >&5
32322 $as_echo_n "checking for lauxlib.h... " >&6; }
32323 if test "${ac_cv_header_lauxlib_h+set}" = set; then
32324 $as_echo_n "(cached) " >&6
32325 fi
32326 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_lauxlib_h" >&5
32327 $as_echo "$ac_cv_header_lauxlib_h" >&6; }
32328 else
32329 # Is the header compilable?
32330 { $as_echo "$as_me:$LINENO: checking lauxlib.h usability" >&5
32331 $as_echo_n "checking lauxlib.h usability... " >&6; }
32332 cat >conftest.$ac_ext <<_ACEOF
32333 /* confdefs.h. */
32334 _ACEOF
32335 cat confdefs.h >>conftest.$ac_ext
32336 cat >>conftest.$ac_ext <<_ACEOF
32337 /* end confdefs.h. */
32338 $ac_includes_default
32339 #include <lauxlib.h>
32340 _ACEOF
32341 rm -f conftest.$ac_objext
32342 if { (ac_try="$ac_compile"
32343 case "(($ac_try" in
32344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32345 *) ac_try_echo=$ac_try;;
32346 esac
32347 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32348 $as_echo "$ac_try_echo") >&5
32349 (eval "$ac_compile") 2>conftest.er1
32350 ac_status=$?
32351 grep -v '^ *+' conftest.er1 >conftest.err
32352 rm -f conftest.er1
32353 cat conftest.err >&5
32354 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32355 (exit $ac_status); } && {
32356 test -z "$ac_c_werror_flag" ||
32357 test ! -s conftest.err
32358 } && test -s conftest.$ac_objext; then
32359 ac_header_compiler=yes
32360 else
32361 $as_echo "$as_me: failed program was:" >&5
32362 sed 's/^/| /' conftest.$ac_ext >&5
32364 ac_header_compiler=no
32365 fi
32367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32368 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32369 $as_echo "$ac_header_compiler" >&6; }
32371 # Is the header present?
32372 { $as_echo "$as_me:$LINENO: checking lauxlib.h presence" >&5
32373 $as_echo_n "checking lauxlib.h presence... " >&6; }
32374 cat >conftest.$ac_ext <<_ACEOF
32375 /* confdefs.h. */
32376 _ACEOF
32377 cat confdefs.h >>conftest.$ac_ext
32378 cat >>conftest.$ac_ext <<_ACEOF
32379 /* end confdefs.h. */
32380 #include <lauxlib.h>
32381 _ACEOF
32382 if { (ac_try="$ac_cpp conftest.$ac_ext"
32383 case "(($ac_try" in
32384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32385 *) ac_try_echo=$ac_try;;
32386 esac
32387 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32388 $as_echo "$ac_try_echo") >&5
32389 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32390 ac_status=$?
32391 grep -v '^ *+' conftest.er1 >conftest.err
32392 rm -f conftest.er1
32393 cat conftest.err >&5
32394 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32395 (exit $ac_status); } >/dev/null && {
32396 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32397 test ! -s conftest.err
32398 }; then
32399 ac_header_preproc=yes
32400 else
32401 $as_echo "$as_me: failed program was:" >&5
32402 sed 's/^/| /' conftest.$ac_ext >&5
32404 ac_header_preproc=no
32405 fi
32407 rm -f conftest.err conftest.$ac_ext
32408 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32409 $as_echo "$ac_header_preproc" >&6; }
32411 # So? What about this header?
32412 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32413 yes:no: )
32414 { $as_echo "$as_me:$LINENO: WARNING: lauxlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
32415 $as_echo "$as_me: WARNING: lauxlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32416 { $as_echo "$as_me:$LINENO: WARNING: lauxlib.h: proceeding with the compiler's result" >&5
32417 $as_echo "$as_me: WARNING: lauxlib.h: proceeding with the compiler's result" >&2;}
32418 ac_header_preproc=yes
32419 ;;
32420 no:yes:* )
32421 { $as_echo "$as_me:$LINENO: WARNING: lauxlib.h: present but cannot be compiled" >&5
32422 $as_echo "$as_me: WARNING: lauxlib.h: present but cannot be compiled" >&2;}
32423 { $as_echo "$as_me:$LINENO: WARNING: lauxlib.h: check for missing prerequisite headers?" >&5
32424 $as_echo "$as_me: WARNING: lauxlib.h: check for missing prerequisite headers?" >&2;}
32425 { $as_echo "$as_me:$LINENO: WARNING: lauxlib.h: see the Autoconf documentation" >&5
32426 $as_echo "$as_me: WARNING: lauxlib.h: see the Autoconf documentation" >&2;}
32427 { $as_echo "$as_me:$LINENO: WARNING: lauxlib.h: section \"Present But Cannot Be Compiled\"" >&5
32428 $as_echo "$as_me: WARNING: lauxlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
32429 { $as_echo "$as_me:$LINENO: WARNING: lauxlib.h: proceeding with the preprocessor's result" >&5
32430 $as_echo "$as_me: WARNING: lauxlib.h: proceeding with the preprocessor's result" >&2;}
32431 { $as_echo "$as_me:$LINENO: WARNING: lauxlib.h: in the future, the compiler will take precedence" >&5
32432 $as_echo "$as_me: WARNING: lauxlib.h: in the future, the compiler will take precedence" >&2;}
32434 ;;
32435 esac
32436 { $as_echo "$as_me:$LINENO: checking for lauxlib.h" >&5
32437 $as_echo_n "checking for lauxlib.h... " >&6; }
32438 if test "${ac_cv_header_lauxlib_h+set}" = set; then
32439 $as_echo_n "(cached) " >&6
32440 else
32441 ac_cv_header_lauxlib_h=$ac_header_preproc
32442 fi
32443 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_lauxlib_h" >&5
32444 $as_echo "$ac_cv_header_lauxlib_h" >&6; }
32446 fi
32447 if test "x$ac_cv_header_lauxlib_h" = x""yes; then
32448 lua_headerdir=""
32449 else
32450 lua_headerdir="no"
32451 fi
32454 fi
32456 done
32458 fi
32460 done
32462 fi
32464 done
32466 fi
32468 done
32471 if test "$lua_headerdir" = "no"; then
32472 enable_lua=no
32473 else
32474 COMP_LUA=lua
32475 fi
32477 if test "$COMP_LUA" != "lua"; then
32478 enable_lua=no
32479 { $as_echo "$as_me:$LINENO: WARNING: Lua $lua_vdot found but not lua.h, lualib.h and lauxlib.h! Please install the -dev packages for Lua $lua_vdot" >&5
32480 $as_echo "$as_me: WARNING: Lua $lua_vdot found but not lua.h, lualib.h and lauxlib.h! Please install the -dev packages for Lua $lua_vdot" >&2;}
32481 else
32482 # OK, headers found, let's check the libraries (LIBS is not used)
32483 LIBS=
32484 lua_havelib=no
32485 LUA_HAVE_COMPAT51=DONT_HAVE_COMPAT51
32486 { $as_echo "$as_me:$LINENO: checking for library containing lua_call" >&5
32487 $as_echo_n "checking for library containing lua_call... " >&6; }
32488 if test "${ac_cv_search_lua_call+set}" = set; then
32489 $as_echo_n "(cached) " >&6
32490 else
32491 ac_func_search_save_LIBS=$LIBS
32492 cat >conftest.$ac_ext <<_ACEOF
32493 /* confdefs.h. */
32494 _ACEOF
32495 cat confdefs.h >>conftest.$ac_ext
32496 cat >>conftest.$ac_ext <<_ACEOF
32497 /* end confdefs.h. */
32499 /* Override any GCC internal prototype to avoid an error.
32500 Use char because int might match the return type of a GCC
32501 builtin and then its argument prototype would still apply. */
32502 #ifdef __cplusplus
32503 extern "C"
32504 #endif
32505 char lua_call ();
32506 int
32507 main ()
32508 {
32509 return lua_call ();
32510 ;
32511 return 0;
32512 }
32513 _ACEOF
32514 for ac_lib in '' lua$lua_vdot lua$lua_vndot lua; do
32515 if test -z "$ac_lib"; then
32516 ac_res="none required"
32517 else
32518 ac_res=-l$ac_lib
32519 LIBS="-l$ac_lib -lm $ac_func_search_save_LIBS"
32520 fi
32521 rm -f conftest.$ac_objext conftest$ac_exeext
32522 if { (ac_try="$ac_link"
32523 case "(($ac_try" in
32524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32525 *) ac_try_echo=$ac_try;;
32526 esac
32527 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32528 $as_echo "$ac_try_echo") >&5
32529 (eval "$ac_link") 2>conftest.er1
32530 ac_status=$?
32531 grep -v '^ *+' conftest.er1 >conftest.err
32532 rm -f conftest.er1
32533 cat conftest.err >&5
32534 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32535 (exit $ac_status); } && {
32536 test -z "$ac_c_werror_flag" ||
32537 test ! -s conftest.err
32538 } && test -s conftest$ac_exeext && {
32539 test "$cross_compiling" = yes ||
32540 $as_test_x conftest$ac_exeext
32541 }; then
32542 ac_cv_search_lua_call=$ac_res
32543 else
32544 $as_echo "$as_me: failed program was:" >&5
32545 sed 's/^/| /' conftest.$ac_ext >&5
32548 fi
32550 rm -rf conftest.dSYM
32551 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32552 conftest$ac_exeext
32553 if test "${ac_cv_search_lua_call+set}" = set; then
32554 break
32555 fi
32556 done
32557 if test "${ac_cv_search_lua_call+set}" = set; then
32558 :
32559 else
32560 ac_cv_search_lua_call=no
32561 fi
32562 rm conftest.$ac_ext
32563 LIBS=$ac_func_search_save_LIBS
32564 fi
32565 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_lua_call" >&5
32566 $as_echo "$ac_cv_search_lua_call" >&6; }
32567 ac_res=$ac_cv_search_lua_call
32568 if test "$ac_res" != no; then
32569 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
32570 { $as_echo "$as_me:$LINENO: checking for library containing luaL_register" >&5
32571 $as_echo_n "checking for library containing luaL_register... " >&6; }
32572 if test "${ac_cv_search_luaL_register+set}" = set; then
32573 $as_echo_n "(cached) " >&6
32574 else
32575 ac_func_search_save_LIBS=$LIBS
32576 cat >conftest.$ac_ext <<_ACEOF
32577 /* confdefs.h. */
32578 _ACEOF
32579 cat confdefs.h >>conftest.$ac_ext
32580 cat >>conftest.$ac_ext <<_ACEOF
32581 /* end confdefs.h. */
32583 /* Override any GCC internal prototype to avoid an error.
32584 Use char because int might match the return type of a GCC
32585 builtin and then its argument prototype would still apply. */
32586 #ifdef __cplusplus
32587 extern "C"
32588 #endif
32589 char luaL_register ();
32590 int
32591 main ()
32592 {
32593 return luaL_register ();
32594 ;
32595 return 0;
32596 }
32597 _ACEOF
32598 for ac_lib in '' lua$lua_vdot lua$lua_vndot lua; do
32599 if test -z "$ac_lib"; then
32600 ac_res="none required"
32601 else
32602 ac_res=-l$ac_lib
32603 LIBS="-l$ac_lib -lm $ac_func_search_save_LIBS"
32604 fi
32605 rm -f conftest.$ac_objext conftest$ac_exeext
32606 if { (ac_try="$ac_link"
32607 case "(($ac_try" in
32608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32609 *) ac_try_echo=$ac_try;;
32610 esac
32611 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32612 $as_echo "$ac_try_echo") >&5
32613 (eval "$ac_link") 2>conftest.er1
32614 ac_status=$?
32615 grep -v '^ *+' conftest.er1 >conftest.err
32616 rm -f conftest.er1
32617 cat conftest.err >&5
32618 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32619 (exit $ac_status); } && {
32620 test -z "$ac_c_werror_flag" ||
32621 test ! -s conftest.err
32622 } && test -s conftest$ac_exeext && {
32623 test "$cross_compiling" = yes ||
32624 $as_test_x conftest$ac_exeext
32625 }; then
32626 ac_cv_search_luaL_register=$ac_res
32627 else
32628 $as_echo "$as_me: failed program was:" >&5
32629 sed 's/^/| /' conftest.$ac_ext >&5
32632 fi
32634 rm -rf conftest.dSYM
32635 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32636 conftest$ac_exeext
32637 if test "${ac_cv_search_luaL_register+set}" = set; then
32638 break
32639 fi
32640 done
32641 if test "${ac_cv_search_luaL_register+set}" = set; then
32642 :
32643 else
32644 ac_cv_search_luaL_register=no
32645 fi
32646 rm conftest.$ac_ext
32647 LIBS=$ac_func_search_save_LIBS
32648 fi
32649 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_luaL_register" >&5
32650 $as_echo "$ac_cv_search_luaL_register" >&6; }
32651 ac_res=$ac_cv_search_luaL_register
32652 if test "$ac_res" != no; then
32653 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
32654 lua_havelib=LUA$lua_vndot
32655 else
32656 { $as_echo "$as_me:$LINENO: checking for library containing luaL_module" >&5
32657 $as_echo_n "checking for library containing luaL_module... " >&6; }
32658 if test "${ac_cv_search_luaL_module+set}" = set; then
32659 $as_echo_n "(cached) " >&6
32660 else
32661 ac_func_search_save_LIBS=$LIBS
32662 cat >conftest.$ac_ext <<_ACEOF
32663 /* confdefs.h. */
32664 _ACEOF
32665 cat confdefs.h >>conftest.$ac_ext
32666 cat >>conftest.$ac_ext <<_ACEOF
32667 /* end confdefs.h. */
32669 /* Override any GCC internal prototype to avoid an error.
32670 Use char because int might match the return type of a GCC
32671 builtin and then its argument prototype would still apply. */
32672 #ifdef __cplusplus
32673 extern "C"
32674 #endif
32675 char luaL_module ();
32676 int
32677 main ()
32678 {
32679 return luaL_module ();
32680 ;
32681 return 0;
32682 }
32683 _ACEOF
32684 for ac_lib in '' lualib$lua_vndot lualib$lua_vdot lualib; do
32685 if test -z "$ac_lib"; then
32686 ac_res="none required"
32687 else
32688 ac_res=-l$ac_lib
32689 LIBS="-l$ac_lib -lm $ac_func_search_save_LIBS"
32690 fi
32691 rm -f conftest.$ac_objext conftest$ac_exeext
32692 if { (ac_try="$ac_link"
32693 case "(($ac_try" in
32694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32695 *) ac_try_echo=$ac_try;;
32696 esac
32697 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32698 $as_echo "$ac_try_echo") >&5
32699 (eval "$ac_link") 2>conftest.er1
32700 ac_status=$?
32701 grep -v '^ *+' conftest.er1 >conftest.err
32702 rm -f conftest.er1
32703 cat conftest.err >&5
32704 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32705 (exit $ac_status); } && {
32706 test -z "$ac_c_werror_flag" ||
32707 test ! -s conftest.err
32708 } && test -s conftest$ac_exeext && {
32709 test "$cross_compiling" = yes ||
32710 $as_test_x conftest$ac_exeext
32711 }; then
32712 ac_cv_search_luaL_module=$ac_res
32713 else
32714 $as_echo "$as_me: failed program was:" >&5
32715 sed 's/^/| /' conftest.$ac_ext >&5
32718 fi
32720 rm -rf conftest.dSYM
32721 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32722 conftest$ac_exeext
32723 if test "${ac_cv_search_luaL_module+set}" = set; then
32724 break
32725 fi
32726 done
32727 if test "${ac_cv_search_luaL_module+set}" = set; then
32728 :
32729 else
32730 ac_cv_search_luaL_module=no
32731 fi
32732 rm conftest.$ac_ext
32733 LIBS=$ac_func_search_save_LIBS
32734 fi
32735 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_luaL_module" >&5
32736 $as_echo "$ac_cv_search_luaL_module" >&6; }
32737 ac_res=$ac_cv_search_luaL_module
32738 if test "$ac_res" != no; then
32739 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
32740 lua_havelib=$lua_vndot; $LUA -l compat-5.1 2>/dev/null;
32741 test "$?" = "0" && LUA_HAVE_COMPAT51=HAVE_COMPAT51
32742 else
32743 { $as_echo "$as_me:$LINENO: checking for library containing luaL_openlib" >&5
32744 $as_echo_n "checking for library containing luaL_openlib... " >&6; }
32745 if test "${ac_cv_search_luaL_openlib+set}" = set; then
32746 $as_echo_n "(cached) " >&6
32747 else
32748 ac_func_search_save_LIBS=$LIBS
32749 cat >conftest.$ac_ext <<_ACEOF
32750 /* confdefs.h. */
32751 _ACEOF
32752 cat confdefs.h >>conftest.$ac_ext
32753 cat >>conftest.$ac_ext <<_ACEOF
32754 /* end confdefs.h. */
32756 /* Override any GCC internal prototype to avoid an error.
32757 Use char because int might match the return type of a GCC
32758 builtin and then its argument prototype would still apply. */
32759 #ifdef __cplusplus
32760 extern "C"
32761 #endif
32762 char luaL_openlib ();
32763 int
32764 main ()
32765 {
32766 return luaL_openlib ();
32767 ;
32768 return 0;
32769 }
32770 _ACEOF
32771 for ac_lib in '' lualib$lua_vdot lualib$lua_vndot lualib; do
32772 if test -z "$ac_lib"; then
32773 ac_res="none required"
32774 else
32775 ac_res=-l$ac_lib
32776 LIBS="-l$ac_lib -lm $ac_func_search_save_LIBS"
32777 fi
32778 rm -f conftest.$ac_objext conftest$ac_exeext
32779 if { (ac_try="$ac_link"
32780 case "(($ac_try" in
32781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32782 *) ac_try_echo=$ac_try;;
32783 esac
32784 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32785 $as_echo "$ac_try_echo") >&5
32786 (eval "$ac_link") 2>conftest.er1
32787 ac_status=$?
32788 grep -v '^ *+' conftest.er1 >conftest.err
32789 rm -f conftest.er1
32790 cat conftest.err >&5
32791 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32792 (exit $ac_status); } && {
32793 test -z "$ac_c_werror_flag" ||
32794 test ! -s conftest.err
32795 } && test -s conftest$ac_exeext && {
32796 test "$cross_compiling" = yes ||
32797 $as_test_x conftest$ac_exeext
32798 }; then
32799 ac_cv_search_luaL_openlib=$ac_res
32800 else
32801 $as_echo "$as_me: failed program was:" >&5
32802 sed 's/^/| /' conftest.$ac_ext >&5
32805 fi
32807 rm -rf conftest.dSYM
32808 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32809 conftest$ac_exeext
32810 if test "${ac_cv_search_luaL_openlib+set}" = set; then
32811 break
32812 fi
32813 done
32814 if test "${ac_cv_search_luaL_openlib+set}" = set; then
32815 :
32816 else
32817 ac_cv_search_luaL_openlib=no
32818 fi
32819 rm conftest.$ac_ext
32820 LIBS=$ac_func_search_save_LIBS
32821 fi
32822 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_luaL_openlib" >&5
32823 $as_echo "$ac_cv_search_luaL_openlib" >&6; }
32824 ac_res=$ac_cv_search_luaL_openlib
32825 if test "$ac_res" != no; then
32826 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
32827 lua_havelib=$lua_vndot
32828 else
32829 COMP_LUA=
32830 fi
32832 fi
32834 fi
32836 else
32837 COMP_LUA=
32838 fi
32840 lua_libs=$LIBS
32841 LIBS=
32843 # Options to pass when configuring Lua module
32844 if test "$lua_havelib" != "no"; then
32845 # OK, headers and libs found. Try to set lua flags
32846 # and modules installation dirs with pkg-config
32847 if test "$PKGCONFIG" != "no"; then
32848 if test "$lua_vndot" = "50"; then
32849 lua_pkg_prefix=lualib
32850 else
32851 lua_pkg_prefix=lua
32852 fi
32853 # try with dot, without dot and finally without version
32854 for f in $lua_pkg_prefix$lua_vdot $lua_pkg_prefix$lua_vndot $lua_pkg_prefix; do
32855 lua_exec_prefix=`$PKGCONFIG --variable=prefix $f 2>/dev/null`
32856 # same binaries?
32857 if test "$lua_exec_prefix/bin/lua" = "$LUA"; then
32858 # OK, found CFLAGS. Get Lua LFLAGS and modules install dir
32859 LUA_CFLAGS=`$PKGCONFIG --cflags $f 2>/dev/null`
32860 LUA_LFLAGS=`$PKGCONFIG --libs $f 2>/dev/null`
32861 LUA_INSTALL_CMOD=`$PKGCONFIG --variable=INSTALL_CMOD $f 2>/dev/null`
32862 LUA_INSTALL_LMOD=`$PKGCONFIG --variable=INSTALL_LMOD $f 2>/dev/null`
32863 break
32864 fi
32865 done
32866 fi
32868 LUA_RRD_LIBDIR="$langpref/lib/lua/$lua_vdot"
32869 # if lua 5.0 can't find compat-5.1, force installation of
32870 # compat-5.1.lua together with RRDtool.
32871 if test "$lua_vdot" = "5.0" -a "$LUA_HAVE_COMPAT51" != "HAVE_COMPAT51"; then
32872 lua_need_compat51=1
32873 LUA_INSTALL_LMOD="$LUA_RRD_LIBDIR"
32874 fi
32876 # if not set with pkg-config, use default values in src packages compat-5.1, lua 5.1
32877 if test "$LUA_CFLAGS" = ""; then
32878 { $as_echo "$as_me:$LINENO: WARNING: Setting Lua include and lib flags to defaults in compat-5.1 and lua 5.1 sources" >&5
32879 $as_echo "$as_me: WARNING: Setting Lua include and lib flags to defaults in compat-5.1 and lua 5.1 sources" >&2;}
32880 LUA_CFLAGS="-I/usr/local/include -I/usr/local/include/lua -I/usr/local/include/lua/$lua_vdot"
32881 LUA_LFLAGS="-L/usr/local/lib -L/usr/local/lib/lua -L/usr/local/lib/lua/$lua_vdot $lua_libs"
32882 LUA_INSTALL_CMOD="/usr/local/lib/lua/$lua_vdot"
32883 fi
32885 # Check whether --enable-lua-site-install was given.
32886 if test "${enable_lua_site_install+set}" = set; then
32887 enableval=$enable_lua_site_install;
32888 else
32889 LUA_INSTALL_CMOD="$LUA_RRD_LIBDIR"; LUA_INSTALL_LMOD="$LUA_RRD_LIBDIR"
32890 fi
32893 LUA_DEFINES="-DLUA$lua_vndot -D$LUA_HAVE_COMPAT51"
32901 else
32902 enable_lua=no
32903 { $as_echo "$as_me:$LINENO: result: Lua headers found but not the libraries! Please reinstall the dev packages for Lua $LUA_MAJOR.$LUA_MINOR" >&5
32904 $as_echo "Lua headers found but not the libraries! Please reinstall the dev packages for Lua $LUA_MAJOR.$LUA_MINOR" >&6; }
32905 fi
32906 fi
32907 fi
32908 fi
32909 if test "$lua_vdot" = "5.0" -a "$LUA_HAVE_COMPAT51" != "HAVE_COMPAT51"; then
32910 LUA_NEED_OUR_COMPAT51_TRUE=
32911 LUA_NEED_OUR_COMPAT51_FALSE='#'
32912 else
32913 LUA_NEED_OUR_COMPAT51_TRUE='#'
32914 LUA_NEED_OUR_COMPAT51_FALSE=
32915 fi
32917 if test "$LUA_INSTALL_CMOD" != "$LUA_RRD_LIBDIR"; then
32918 LUA_SITE_CINSTALL_TRUE=
32919 LUA_SITE_CINSTALL_FALSE='#'
32920 else
32921 LUA_SITE_CINSTALL_TRUE='#'
32922 LUA_SITE_CINSTALL_FALSE=
32923 fi
32925 if test "$LUA_INSTALL_LMOD" != "$LUA_RRD_LIBDIR"; then
32926 LUA_SITE_LINSTALL_TRUE=
32927 LUA_SITE_LINSTALL_FALSE='#'
32928 else
32929 LUA_SITE_LINSTALL_TRUE='#'
32930 LUA_SITE_LINSTALL_FALSE=
32931 fi
32933 if test "$lua_vndot" = "50"; then
32934 LUA50_TRUE=
32935 LUA50_FALSE='#'
32936 else
32937 LUA50_TRUE='#'
32938 LUA50_FALSE=
32939 fi
32941 if test "$enable_lua" = "yes"; then
32942 BUILD_LUA_TRUE=
32943 BUILD_LUA_FALSE='#'
32944 else
32945 BUILD_LUA_TRUE='#'
32946 BUILD_LUA_FALSE=
32947 fi
32950 enable_tcl_site=no
32952 # Check whether --enable-tcl was given.
32953 if test "${enable_tcl+set}" = set; then
32954 enableval=$enable_tcl;
32955 else
32956 enable_tcl=yes
32957 fi
32960 if test "$enable_tcl" = "yes"; then
32961 withval=""
32963 # Check whether --with-tcllib was given.
32964 if test "${with_tcllib+set}" = set; then
32965 withval=$with_tcllib;
32966 fi
32968 enable_tcl=no
32969 for dir in $withval /usr/lib /usr/local/lib /usr/lib/tcl8.4 /usr/lib/tcl8.3 ; do
32970 { $as_echo "$as_me:$LINENO: checking for tclConfig.sh in $dir" >&5
32971 $as_echo_n "checking for tclConfig.sh in $dir... " >&6; }
32972 if test -f "$dir/tclConfig.sh" ; then
32973 tcl_config=$dir/tclConfig.sh
32974 enable_tcl=yes
32975 { $as_echo "$as_me:$LINENO: result: yes" >&5
32976 $as_echo "yes" >&6; }
32977 break
32978 else
32979 { $as_echo "$as_me:$LINENO: result: no" >&5
32980 $as_echo "no" >&6; }
32981 fi
32982 done
32984 if test "$enable_tcl" = "no"; then
32985 { $as_echo "$as_me:$LINENO: WARNING: tclConfig.sh not found - Tcl interface will not be built" >&5
32986 $as_echo "$as_me: WARNING: tclConfig.sh not found - Tcl interface will not be built" >&2;}
32987 else
32988 . $tcl_config
32989 TCL_PACKAGE_DIR="$TCL_PACKAGE_PATH/tclrrd$VERSION"
32990 if test -n "$TCL_INC_DIR"; then
32991 TCL_INCLUDE_SPEC="$TCL_INCLUDE_SPEC -I$TCL_INC_DIR"
32992 fi
32993 fi
32994 # Check whether --enable-tcl was given.
32995 if test "${enable_tcl+set}" = set; then
32996 enableval=$enable_tcl;
32997 else
32998 enable_tcl_site=yes
32999 fi
33002 fi
33004 if test "$enable_tcl" = "yes" ; then
33005 BUILD_TCL_TRUE=
33006 BUILD_TCL_FALSE='#'
33007 else
33008 BUILD_TCL_TRUE='#'
33009 BUILD_TCL_FALSE=
33010 fi
33012 if test "$enable_tcl_site" = "yes" ; then
33013 BUILD_TCL_SITE_TRUE=
33014 BUILD_TCL_SITE_FALSE='#'
33015 else
33016 BUILD_TCL_SITE_TRUE='#'
33017 BUILD_TCL_SITE_FALSE=
33018 fi
33033 # Check whether --enable-python was given.
33034 if test "${enable_python+set}" = set; then
33035 enableval=$enable_python;
33036 else
33037 enable_python=yes
33038 fi
33041 if test "$enable_python" = "yes"; then
33046 if test -n "$PYTHON"; then
33047 # If the user set $PYTHON, use it and don't search something else.
33048 { $as_echo "$as_me:$LINENO: checking whether $PYTHON version >= 2.3" >&5
33049 $as_echo_n "checking whether $PYTHON version >= 2.3... " >&6; }
33050 prog="import sys
33051 # split strings by '.' and convert to numeric. Append some zeros
33052 # because we need at least 4 digits for the hex conversion.
33053 # map returns an iterator in Python 3.0 and a list in 2.x
33054 minver = list(map(int, '2.3'.split('.'))) + [0, 0, 0]
33055 minverhex = 0
33056 # xrange is not present in Python 3.0 and range returns an iterator
33057 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
33058 sys.exit(sys.hexversion < minverhex)"
33059 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
33060 ($PYTHON -c "$prog") >&5 2>&5
33061 ac_status=$?
33062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33063 (exit $ac_status); }; then
33064 { $as_echo "$as_me:$LINENO: result: yes" >&5
33065 $as_echo "yes" >&6; }
33066 else
33067 { { $as_echo "$as_me:$LINENO: error: too old" >&5
33068 $as_echo "$as_me: error: too old" >&2;}
33069 { (exit 1); exit 1; }; }
33070 fi
33072 am_display_PYTHON=$PYTHON
33073 else
33074 # Otherwise, try each interpreter until we find one that satisfies
33075 # VERSION.
33076 { $as_echo "$as_me:$LINENO: checking for a Python interpreter with version >= 2.3" >&5
33077 $as_echo_n "checking for a Python interpreter with version >= 2.3... " >&6; }
33078 if test "${am_cv_pathless_PYTHON+set}" = set; then
33079 $as_echo_n "(cached) " >&6
33080 else
33082 for am_cv_pathless_PYTHON in python python2 python3 python3.0 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do
33083 test "$am_cv_pathless_PYTHON" = none && break
33084 prog="import sys
33085 # split strings by '.' and convert to numeric. Append some zeros
33086 # because we need at least 4 digits for the hex conversion.
33087 # map returns an iterator in Python 3.0 and a list in 2.x
33088 minver = list(map(int, '2.3'.split('.'))) + [0, 0, 0]
33089 minverhex = 0
33090 # xrange is not present in Python 3.0 and range returns an iterator
33091 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
33092 sys.exit(sys.hexversion < minverhex)"
33093 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
33094 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
33095 ac_status=$?
33096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33097 (exit $ac_status); }; then
33098 break
33099 fi
33101 done
33102 fi
33103 { $as_echo "$as_me:$LINENO: result: $am_cv_pathless_PYTHON" >&5
33104 $as_echo "$am_cv_pathless_PYTHON" >&6; }
33105 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
33106 if test "$am_cv_pathless_PYTHON" = none; then
33107 PYTHON=:
33108 else
33109 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
33110 set dummy $am_cv_pathless_PYTHON; ac_word=$2
33111 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
33112 $as_echo_n "checking for $ac_word... " >&6; }
33113 if test "${ac_cv_path_PYTHON+set}" = set; then
33114 $as_echo_n "(cached) " >&6
33115 else
33116 case $PYTHON in
33117 [\\/]* | ?:[\\/]*)
33118 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
33119 ;;
33120 *)
33121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33122 for as_dir in $PATH
33123 do
33124 IFS=$as_save_IFS
33125 test -z "$as_dir" && as_dir=.
33126 for ac_exec_ext in '' $ac_executable_extensions; do
33127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33128 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
33129 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33130 break 2
33131 fi
33132 done
33133 done
33134 IFS=$as_save_IFS
33136 ;;
33137 esac
33138 fi
33139 PYTHON=$ac_cv_path_PYTHON
33140 if test -n "$PYTHON"; then
33141 { $as_echo "$as_me:$LINENO: result: $PYTHON" >&5
33142 $as_echo "$PYTHON" >&6; }
33143 else
33144 { $as_echo "$as_me:$LINENO: result: no" >&5
33145 $as_echo "no" >&6; }
33146 fi
33149 fi
33150 am_display_PYTHON=$am_cv_pathless_PYTHON
33151 fi
33154 if test "$PYTHON" = :; then
33155 enable_python=no
33156 else
33159 { $as_echo "$as_me:$LINENO: checking for $am_display_PYTHON version" >&5
33160 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
33161 if test "${am_cv_python_version+set}" = set; then
33162 $as_echo_n "(cached) " >&6
33163 else
33164 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
33165 fi
33166 { $as_echo "$as_me:$LINENO: result: $am_cv_python_version" >&5
33167 $as_echo "$am_cv_python_version" >&6; }
33168 PYTHON_VERSION=$am_cv_python_version
33172 PYTHON_PREFIX='${prefix}'
33174 PYTHON_EXEC_PREFIX='${exec_prefix}'
33178 { $as_echo "$as_me:$LINENO: checking for $am_display_PYTHON platform" >&5
33179 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
33180 if test "${am_cv_python_platform+set}" = set; then
33181 $as_echo_n "(cached) " >&6
33182 else
33183 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
33184 fi
33185 { $as_echo "$as_me:$LINENO: result: $am_cv_python_platform" >&5
33186 $as_echo "$am_cv_python_platform" >&6; }
33187 PYTHON_PLATFORM=$am_cv_python_platform
33192 { $as_echo "$as_me:$LINENO: checking for $am_display_PYTHON script directory" >&5
33193 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
33194 if test "${am_cv_python_pythondir+set}" = set; then
33195 $as_echo_n "(cached) " >&6
33196 else
33197 if test "x$prefix" = xNONE
33198 then
33199 am_py_prefix=$ac_default_prefix
33200 else
33201 am_py_prefix=$prefix
33202 fi
33203 am_cv_python_pythondir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(0,0,prefix='$am_py_prefix'))" 2>/dev/null ||
33204 echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
33205 case $am_cv_python_pythondir in
33206 $am_py_prefix*)
33207 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
33208 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
33209 ;;
33210 esac
33212 fi
33213 { $as_echo "$as_me:$LINENO: result: $am_cv_python_pythondir" >&5
33214 $as_echo "$am_cv_python_pythondir" >&6; }
33215 pythondir=$am_cv_python_pythondir
33219 pkgpythondir=\${pythondir}/$PACKAGE
33222 { $as_echo "$as_me:$LINENO: checking for $am_display_PYTHON extension module directory" >&5
33223 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
33224 if test "${am_cv_python_pyexecdir+set}" = set; then
33225 $as_echo_n "(cached) " >&6
33226 else
33227 if test "x$exec_prefix" = xNONE
33228 then
33229 am_py_exec_prefix=$am_py_prefix
33230 else
33231 am_py_exec_prefix=$exec_prefix
33232 fi
33233 am_cv_python_pyexecdir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(1,0,prefix='$am_py_exec_prefix'))" 2>/dev/null ||
33234 echo "$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
33235 case $am_cv_python_pyexecdir in
33236 $am_py_exec_prefix*)
33237 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
33238 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
33239 ;;
33240 esac
33242 fi
33243 { $as_echo "$as_me:$LINENO: result: $am_cv_python_pyexecdir" >&5
33244 $as_echo "$am_cv_python_pyexecdir" >&6; }
33245 pyexecdir=$am_cv_python_pyexecdir
33249 pkgpyexecdir=\${pyexecdir}/$PACKAGE
33253 fi
33257 { $as_echo "$as_me:$LINENO: checking for headers required to compile python extensions" >&5
33258 $as_echo_n "checking for headers required to compile python extensions... " >&6; }
33259 py_prefix=`$PYTHON -c "import sys; print sys.prefix"`
33260 py_exec_prefix=`$PYTHON -c "import sys; print sys.exec_prefix"`
33261 PYTHON_INCLUDES="-I${py_prefix}/include/python${PYTHON_VERSION}"
33262 if test "$py_prefix" != "$py_exec_prefix"; then
33263 PYTHON_INCLUDES="$PYTHON_INCLUDES -I${py_exec_prefix}/include/python${PYTHON_VERSION}"
33264 fi
33266 save_CPPFLAGS="$CPPFLAGS"
33267 CPPFLAGS="$CPPFLAGS $PYTHON_INCLUDES"
33268 cat >conftest.$ac_ext <<_ACEOF
33269 /* confdefs.h. */
33270 _ACEOF
33271 cat confdefs.h >>conftest.$ac_ext
33272 cat >>conftest.$ac_ext <<_ACEOF
33273 /* end confdefs.h. */
33274 #include <Python.h>
33275 _ACEOF
33276 if { (ac_try="$ac_cpp conftest.$ac_ext"
33277 case "(($ac_try" in
33278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33279 *) ac_try_echo=$ac_try;;
33280 esac
33281 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33282 $as_echo "$ac_try_echo") >&5
33283 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33284 ac_status=$?
33285 grep -v '^ *+' conftest.er1 >conftest.err
33286 rm -f conftest.er1
33287 cat conftest.err >&5
33288 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33289 (exit $ac_status); } >/dev/null && {
33290 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33291 test ! -s conftest.err
33292 }; then
33293 { $as_echo "$as_me:$LINENO: result: found" >&5
33294 $as_echo "found" >&6; }
33296 else
33297 $as_echo "$as_me: failed program was:" >&5
33298 sed 's/^/| /' conftest.$ac_ext >&5
33300 { $as_echo "$as_me:$LINENO: result: not found" >&5
33301 $as_echo "not found" >&6; }
33302 enable_python=no;{ $as_echo "$as_me:$LINENO: WARNING: could not find Python headers" >&5
33303 $as_echo "$as_me: WARNING: could not find Python headers" >&2;}
33304 fi
33306 rm -f conftest.err conftest.$ac_ext
33307 CPPFLAGS="$save_CPPFLAGS"
33309 fi
33311 if test x$enable_python = xno; then
33312 COMP_PYTHON=
33313 else
33314 COMP_PYTHON="python"
33315 fi
33319 for ac_prog in gnroff nroff
33320 do
33321 # Extract the first word of "$ac_prog", so it can be a program name with args.
33322 set dummy $ac_prog; ac_word=$2
33323 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
33324 $as_echo_n "checking for $ac_word... " >&6; }
33325 if test "${ac_cv_path_NROFF+set}" = set; then
33326 $as_echo_n "(cached) " >&6
33327 else
33328 case $NROFF in
33329 [\\/]* | ?:[\\/]*)
33330 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
33331 ;;
33332 *)
33333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33334 for as_dir in $PATH
33335 do
33336 IFS=$as_save_IFS
33337 test -z "$as_dir" && as_dir=.
33338 for ac_exec_ext in '' $ac_executable_extensions; do
33339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33340 ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
33341 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33342 break 2
33343 fi
33344 done
33345 done
33346 IFS=$as_save_IFS
33348 ;;
33349 esac
33350 fi
33351 NROFF=$ac_cv_path_NROFF
33352 if test -n "$NROFF"; then
33353 { $as_echo "$as_me:$LINENO: result: $NROFF" >&5
33354 $as_echo "$NROFF" >&6; }
33355 else
33356 { $as_echo "$as_me:$LINENO: result: no" >&5
33357 $as_echo "no" >&6; }
33358 fi
33361 test -n "$NROFF" && break
33362 done
33364 for ac_prog in groff troff
33365 do
33366 # Extract the first word of "$ac_prog", so it can be a program name with args.
33367 set dummy $ac_prog; ac_word=$2
33368 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
33369 $as_echo_n "checking for $ac_word... " >&6; }
33370 if test "${ac_cv_path_TROFF+set}" = set; then
33371 $as_echo_n "(cached) " >&6
33372 else
33373 case $TROFF in
33374 [\\/]* | ?:[\\/]*)
33375 ac_cv_path_TROFF="$TROFF" # Let the user override the test with a path.
33376 ;;
33377 *)
33378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33379 for as_dir in $PATH
33380 do
33381 IFS=$as_save_IFS
33382 test -z "$as_dir" && as_dir=.
33383 for ac_exec_ext in '' $ac_executable_extensions; do
33384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33385 ac_cv_path_TROFF="$as_dir/$ac_word$ac_exec_ext"
33386 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33387 break 2
33388 fi
33389 done
33390 done
33391 IFS=$as_save_IFS
33393 ;;
33394 esac
33395 fi
33396 TROFF=$ac_cv_path_TROFF
33397 if test -n "$TROFF"; then
33398 { $as_echo "$as_me:$LINENO: result: $TROFF" >&5
33399 $as_echo "$TROFF" >&6; }
33400 else
33401 { $as_echo "$as_me:$LINENO: result: no" >&5
33402 $as_echo "no" >&6; }
33403 fi
33406 test -n "$TROFF" && break
33407 done
33411 if test -z "$RRDDOCDIR"; then
33412 RRDDOCDIR='${datadir}/doc/${PACKAGE}-${VERSION}'; fi
33416 case $TERM in
33417 # for the most important terminal types we directly know the sequences
33418 xterm|xterm*|vt220|vt220*)
33419 T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
33420 T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
33421 ;;
33422 vt100|vt100*|cygwin)
33423 T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
33424 T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
33425 ;;
33426 *)
33427 T_MD=''
33428 T_ME=''
33429 ;;
33430 esac
33431 { $as_echo "$as_me:$LINENO: result: " >&5
33432 $as_echo "" >&6; }
33433 { $as_echo "$as_me:$LINENO: result: ${T_MD}Apply Configuration Information${T_ME}" >&5
33434 $as_echo "${T_MD}Apply Configuration Information${T_ME}" >&6; }
33437 ac_config_files="$ac_config_files examples/shared-demo.pl"
33439 ac_config_files="$ac_config_files examples/piped-demo.pl"
33441 ac_config_files="$ac_config_files examples/stripes.pl"
33443 ac_config_files="$ac_config_files examples/bigtops.pl"
33445 ac_config_files="$ac_config_files examples/minmax.pl"
33447 ac_config_files="$ac_config_files examples/4charts.pl"
33449 ac_config_files="$ac_config_files examples/perftest.pl"
33451 ac_config_files="$ac_config_files examples/Makefile"
33453 ac_config_files="$ac_config_files examples/rrdcached/Makefile"
33455 ac_config_files="$ac_config_files doc/Makefile"
33457 ac_config_files="$ac_config_files po/Makefile.in"
33459 ac_config_files="$ac_config_files intl/Makefile"
33461 ac_config_files="$ac_config_files src/Makefile"
33463 ac_config_files="$ac_config_files src/librrd.sym.in"
33465 ac_config_files="$ac_config_files src/librrd.pc"
33467 ac_config_files="$ac_config_files bindings/Makefile"
33469 ac_config_files="$ac_config_files bindings/tcl/Makefile"
33471 ac_config_files="$ac_config_files bindings/tcl/ifOctets.tcl"
33473 ac_config_files="$ac_config_files Makefile"
33475 ac_config_files="$ac_config_files bindings/lua/Makefile"
33478 ac_config_commands="$ac_config_commands default"
33483 cat >confcache <<\_ACEOF
33484 # This file is a shell script that caches the results of configure
33485 # tests run on this system so they can be shared between configure
33486 # scripts and configure runs, see configure's option --config-cache.
33487 # It is not useful on other systems. If it contains results you don't
33488 # want to keep, you may remove or edit it.
33489 #
33490 # config.status only pays attention to the cache file if you give it
33491 # the --recheck option to rerun configure.
33492 #
33493 # `ac_cv_env_foo' variables (set or unset) will be overridden when
33494 # loading this file, other *unset* `ac_cv_foo' will be assigned the
33495 # following values.
33497 _ACEOF
33499 # The following way of writing the cache mishandles newlines in values,
33500 # but we know of no workaround that is simple, portable, and efficient.
33501 # So, we kill variables containing newlines.
33502 # Ultrix sh set writes to stderr and can't be redirected directly,
33503 # and sets the high bit in the cache file unless we assign to the vars.
33504 (
33505 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
33506 eval ac_val=\$$ac_var
33507 case $ac_val in #(
33508 *${as_nl}*)
33509 case $ac_var in #(
33510 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
33511 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
33512 esac
33513 case $ac_var in #(
33514 _ | IFS | as_nl) ;; #(
33515 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
33516 *) $as_unset $ac_var ;;
33517 esac ;;
33518 esac
33519 done
33521 (set) 2>&1 |
33522 case $as_nl`(ac_space=' '; set) 2>&1` in #(
33523 *${as_nl}ac_space=\ *)
33524 # `set' does not quote correctly, so add quotes (double-quote
33525 # substitution turns \\\\ into \\, and sed turns \\ into \).
33526 sed -n \
33527 "s/'/'\\\\''/g;
33528 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
33529 ;; #(
33530 *)
33531 # `set' quotes correctly as required by POSIX, so do not add quotes.
33532 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
33533 ;;
33534 esac |
33535 sort
33536 ) |
33537 sed '
33538 /^ac_cv_env_/b end
33539 t clear
33540 :clear
33541 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
33542 t end
33543 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
33544 :end' >>confcache
33545 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
33546 if test -w "$cache_file"; then
33547 test "x$cache_file" != "x/dev/null" &&
33548 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
33549 $as_echo "$as_me: updating cache $cache_file" >&6;}
33550 cat confcache >$cache_file
33551 else
33552 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
33553 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
33554 fi
33555 fi
33556 rm -f confcache
33558 test "x$prefix" = xNONE && prefix=$ac_default_prefix
33559 # Let make expand exec_prefix.
33560 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
33562 DEFS=-DHAVE_CONFIG_H
33564 ac_libobjs=
33565 ac_ltlibobjs=
33566 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
33567 # 1. Remove the extension, and $U if already installed.
33568 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
33569 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
33570 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
33571 # will be set to the directory where LIBOBJS objects are built.
33572 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
33573 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
33574 done
33575 LIBOBJS=$ac_libobjs
33577 LTLIBOBJS=$ac_ltlibobjs
33580 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
33581 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
33582 Usually this means the macro was only invoked conditionally." >&5
33583 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
33584 Usually this means the macro was only invoked conditionally." >&2;}
33585 { (exit 1); exit 1; }; }
33586 fi
33587 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
33588 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
33589 Usually this means the macro was only invoked conditionally." >&5
33590 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
33591 Usually this means the macro was only invoked conditionally." >&2;}
33592 { (exit 1); exit 1; }; }
33593 fi
33594 if test -n "$EXEEXT"; then
33595 am__EXEEXT_TRUE=
33596 am__EXEEXT_FALSE='#'
33597 else
33598 am__EXEEXT_TRUE='#'
33599 am__EXEEXT_FALSE=
33600 fi
33602 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
33603 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
33604 Usually this means the macro was only invoked conditionally." >&5
33605 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
33606 Usually this means the macro was only invoked conditionally." >&2;}
33607 { (exit 1); exit 1; }; }
33608 fi
33609 if test -z "${STATIC_PROGRAMS_TRUE}" && test -z "${STATIC_PROGRAMS_FALSE}"; then
33610 { { $as_echo "$as_me:$LINENO: error: conditional \"STATIC_PROGRAMS\" was never defined.
33611 Usually this means the macro was only invoked conditionally." >&5
33612 $as_echo "$as_me: error: conditional \"STATIC_PROGRAMS\" was never defined.
33613 Usually this means the macro was only invoked conditionally." >&2;}
33614 { (exit 1); exit 1; }; }
33615 fi
33617 if test -z "${BUILD_GETOPT_TRUE}" && test -z "${BUILD_GETOPT_FALSE}"; then
33618 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_GETOPT\" was never defined.
33619 Usually this means the macro was only invoked conditionally." >&5
33620 $as_echo "$as_me: error: conditional \"BUILD_GETOPT\" was never defined.
33621 Usually this means the macro was only invoked conditionally." >&2;}
33622 { (exit 1); exit 1; }; }
33623 fi
33624 if test -z "${BUILD_MULTITHREAD_TRUE}" && test -z "${BUILD_MULTITHREAD_FALSE}"; then
33625 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_MULTITHREAD\" was never defined.
33626 Usually this means the macro was only invoked conditionally." >&5
33627 $as_echo "$as_me: error: conditional \"BUILD_MULTITHREAD\" was never defined.
33628 Usually this means the macro was only invoked conditionally." >&2;}
33629 { (exit 1); exit 1; }; }
33630 fi
33631 if test -z "${BUILD_LIBDBI_TRUE}" && test -z "${BUILD_LIBDBI_FALSE}"; then
33632 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_LIBDBI\" was never defined.
33633 Usually this means the macro was only invoked conditionally." >&5
33634 $as_echo "$as_me: error: conditional \"BUILD_LIBDBI\" was never defined.
33635 Usually this means the macro was only invoked conditionally." >&2;}
33636 { (exit 1); exit 1; }; }
33637 fi
33638 if test -z "${BUILD_RRDCGI_TRUE}" && test -z "${BUILD_RRDCGI_FALSE}"; then
33639 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_RRDCGI\" was never defined.
33640 Usually this means the macro was only invoked conditionally." >&5
33641 $as_echo "$as_me: error: conditional \"BUILD_RRDCGI\" was never defined.
33642 Usually this means the macro was only invoked conditionally." >&2;}
33643 { (exit 1); exit 1; }; }
33644 fi
33645 if test -z "${LUA_NEED_OUR_COMPAT51_TRUE}" && test -z "${LUA_NEED_OUR_COMPAT51_FALSE}"; then
33646 { { $as_echo "$as_me:$LINENO: error: conditional \"LUA_NEED_OUR_COMPAT51\" was never defined.
33647 Usually this means the macro was only invoked conditionally." >&5
33648 $as_echo "$as_me: error: conditional \"LUA_NEED_OUR_COMPAT51\" was never defined.
33649 Usually this means the macro was only invoked conditionally." >&2;}
33650 { (exit 1); exit 1; }; }
33651 fi
33652 if test -z "${LUA_SITE_CINSTALL_TRUE}" && test -z "${LUA_SITE_CINSTALL_FALSE}"; then
33653 { { $as_echo "$as_me:$LINENO: error: conditional \"LUA_SITE_CINSTALL\" was never defined.
33654 Usually this means the macro was only invoked conditionally." >&5
33655 $as_echo "$as_me: error: conditional \"LUA_SITE_CINSTALL\" was never defined.
33656 Usually this means the macro was only invoked conditionally." >&2;}
33657 { (exit 1); exit 1; }; }
33658 fi
33659 if test -z "${LUA_SITE_LINSTALL_TRUE}" && test -z "${LUA_SITE_LINSTALL_FALSE}"; then
33660 { { $as_echo "$as_me:$LINENO: error: conditional \"LUA_SITE_LINSTALL\" was never defined.
33661 Usually this means the macro was only invoked conditionally." >&5
33662 $as_echo "$as_me: error: conditional \"LUA_SITE_LINSTALL\" was never defined.
33663 Usually this means the macro was only invoked conditionally." >&2;}
33664 { (exit 1); exit 1; }; }
33665 fi
33666 if test -z "${LUA50_TRUE}" && test -z "${LUA50_FALSE}"; then
33667 { { $as_echo "$as_me:$LINENO: error: conditional \"LUA50\" was never defined.
33668 Usually this means the macro was only invoked conditionally." >&5
33669 $as_echo "$as_me: error: conditional \"LUA50\" was never defined.
33670 Usually this means the macro was only invoked conditionally." >&2;}
33671 { (exit 1); exit 1; }; }
33672 fi
33673 if test -z "${BUILD_LUA_TRUE}" && test -z "${BUILD_LUA_FALSE}"; then
33674 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_LUA\" was never defined.
33675 Usually this means the macro was only invoked conditionally." >&5
33676 $as_echo "$as_me: error: conditional \"BUILD_LUA\" was never defined.
33677 Usually this means the macro was only invoked conditionally." >&2;}
33678 { (exit 1); exit 1; }; }
33679 fi
33680 if test -z "${BUILD_TCL_TRUE}" && test -z "${BUILD_TCL_FALSE}"; then
33681 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_TCL\" was never defined.
33682 Usually this means the macro was only invoked conditionally." >&5
33683 $as_echo "$as_me: error: conditional \"BUILD_TCL\" was never defined.
33684 Usually this means the macro was only invoked conditionally." >&2;}
33685 { (exit 1); exit 1; }; }
33686 fi
33687 if test -z "${BUILD_TCL_SITE_TRUE}" && test -z "${BUILD_TCL_SITE_FALSE}"; then
33688 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_TCL_SITE\" was never defined.
33689 Usually this means the macro was only invoked conditionally." >&5
33690 $as_echo "$as_me: error: conditional \"BUILD_TCL_SITE\" was never defined.
33691 Usually this means the macro was only invoked conditionally." >&2;}
33692 { (exit 1); exit 1; }; }
33693 fi
33695 : ${CONFIG_STATUS=./config.status}
33696 ac_write_fail=0
33697 ac_clean_files_save=$ac_clean_files
33698 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
33699 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
33700 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
33701 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33702 #! $SHELL
33703 # Generated by $as_me.
33704 # Run this file to recreate the current configuration.
33705 # Compiler output produced by configure, useful for debugging
33706 # configure, is in config.log if it exists.
33708 debug=false
33709 ac_cs_recheck=false
33710 ac_cs_silent=false
33711 SHELL=\${CONFIG_SHELL-$SHELL}
33712 _ACEOF
33714 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33715 ## --------------------- ##
33716 ## M4sh Initialization. ##
33717 ## --------------------- ##
33719 # Be more Bourne compatible
33720 DUALCASE=1; export DUALCASE # for MKS sh
33721 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
33722 emulate sh
33723 NULLCMD=:
33724 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
33725 # is contrary to our usage. Disable this feature.
33726 alias -g '${1+"$@"}'='"$@"'
33727 setopt NO_GLOB_SUBST
33728 else
33729 case `(set -o) 2>/dev/null` in
33730 *posix*) set -o posix ;;
33731 esac
33733 fi
33738 # PATH needs CR
33739 # Avoid depending upon Character Ranges.
33740 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33741 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33742 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33743 as_cr_digits='0123456789'
33744 as_cr_alnum=$as_cr_Letters$as_cr_digits
33746 as_nl='
33747 '
33748 export as_nl
33749 # Printing a long string crashes Solaris 7 /usr/bin/printf.
33750 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
33751 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
33752 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
33753 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
33754 as_echo='printf %s\n'
33755 as_echo_n='printf %s'
33756 else
33757 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
33758 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
33759 as_echo_n='/usr/ucb/echo -n'
33760 else
33761 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
33762 as_echo_n_body='eval
33763 arg=$1;
33764 case $arg in
33765 *"$as_nl"*)
33766 expr "X$arg" : "X\\(.*\\)$as_nl";
33767 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
33768 esac;
33769 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
33770 '
33771 export as_echo_n_body
33772 as_echo_n='sh -c $as_echo_n_body as_echo'
33773 fi
33774 export as_echo_body
33775 as_echo='sh -c $as_echo_body as_echo'
33776 fi
33778 # The user is always right.
33779 if test "${PATH_SEPARATOR+set}" != set; then
33780 PATH_SEPARATOR=:
33781 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
33782 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
33783 PATH_SEPARATOR=';'
33784 }
33785 fi
33787 # Support unset when possible.
33788 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
33789 as_unset=unset
33790 else
33791 as_unset=false
33792 fi
33795 # IFS
33796 # We need space, tab and new line, in precisely that order. Quoting is
33797 # there to prevent editors from complaining about space-tab.
33798 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
33799 # splitting by setting IFS to empty value.)
33800 IFS=" "" $as_nl"
33802 # Find who we are. Look in the path if we contain no directory separator.
33803 case $0 in
33804 *[\\/]* ) as_myself=$0 ;;
33805 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33806 for as_dir in $PATH
33807 do
33808 IFS=$as_save_IFS
33809 test -z "$as_dir" && as_dir=.
33810 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
33811 done
33812 IFS=$as_save_IFS
33814 ;;
33815 esac
33816 # We did not find ourselves, most probably we were run as `sh COMMAND'
33817 # in which case we are not to be found in the path.
33818 if test "x$as_myself" = x; then
33819 as_myself=$0
33820 fi
33821 if test ! -f "$as_myself"; then
33822 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
33823 { (exit 1); exit 1; }
33824 fi
33826 # Work around bugs in pre-3.0 UWIN ksh.
33827 for as_var in ENV MAIL MAILPATH
33828 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
33829 done
33830 PS1='$ '
33831 PS2='> '
33832 PS4='+ '
33834 # NLS nuisances.
33835 LC_ALL=C
33836 export LC_ALL
33837 LANGUAGE=C
33838 export LANGUAGE
33840 # Required to use basename.
33841 if expr a : '\(a\)' >/dev/null 2>&1 &&
33842 test "X`expr 00001 : '.*\(...\)'`" = X001; then
33843 as_expr=expr
33844 else
33845 as_expr=false
33846 fi
33848 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
33849 as_basename=basename
33850 else
33851 as_basename=false
33852 fi
33855 # Name of the executable.
33856 as_me=`$as_basename -- "$0" ||
33857 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
33858 X"$0" : 'X\(//\)$' \| \
33859 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
33860 $as_echo X/"$0" |
33861 sed '/^.*\/\([^/][^/]*\)\/*$/{
33862 s//\1/
33863 q
33864 }
33865 /^X\/\(\/\/\)$/{
33866 s//\1/
33867 q
33868 }
33869 /^X\/\(\/\).*/{
33870 s//\1/
33871 q
33872 }
33873 s/.*/./; q'`
33875 # CDPATH.
33876 $as_unset CDPATH
33880 as_lineno_1=$LINENO
33881 as_lineno_2=$LINENO
33882 test "x$as_lineno_1" != "x$as_lineno_2" &&
33883 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
33885 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
33886 # uniformly replaced by the line number. The first 'sed' inserts a
33887 # line-number line after each line using $LINENO; the second 'sed'
33888 # does the real work. The second script uses 'N' to pair each
33889 # line-number line with the line containing $LINENO, and appends
33890 # trailing '-' during substitution so that $LINENO is not a special
33891 # case at line end.
33892 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
33893 # scripts with optimization help from Paolo Bonzini. Blame Lee
33894 # E. McMahon (1931-1989) for sed's syntax. :-)
33895 sed -n '
33896 p
33897 /[$]LINENO/=
33898 ' <$as_myself |
33899 sed '
33900 s/[$]LINENO.*/&-/
33901 t lineno
33902 b
33903 :lineno
33904 N
33905 :loop
33906 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
33907 t loop
33908 s/-\n.*//
33909 ' >$as_me.lineno &&
33910 chmod +x "$as_me.lineno" ||
33911 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
33912 { (exit 1); exit 1; }; }
33914 # Don't try to exec as it changes $[0], causing all sort of problems
33915 # (the dirname of $[0] is not the place where we might find the
33916 # original and so on. Autoconf is especially sensitive to this).
33917 . "./$as_me.lineno"
33918 # Exit status is that of the last command.
33919 exit
33920 }
33923 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
33924 as_dirname=dirname
33925 else
33926 as_dirname=false
33927 fi
33929 ECHO_C= ECHO_N= ECHO_T=
33930 case `echo -n x` in
33931 -n*)
33932 case `echo 'x\c'` in
33933 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
33934 *) ECHO_C='\c';;
33935 esac;;
33936 *)
33937 ECHO_N='-n';;
33938 esac
33939 if expr a : '\(a\)' >/dev/null 2>&1 &&
33940 test "X`expr 00001 : '.*\(...\)'`" = X001; then
33941 as_expr=expr
33942 else
33943 as_expr=false
33944 fi
33946 rm -f conf$$ conf$$.exe conf$$.file
33947 if test -d conf$$.dir; then
33948 rm -f conf$$.dir/conf$$.file
33949 else
33950 rm -f conf$$.dir
33951 mkdir conf$$.dir 2>/dev/null
33952 fi
33953 if (echo >conf$$.file) 2>/dev/null; then
33954 if ln -s conf$$.file conf$$ 2>/dev/null; then
33955 as_ln_s='ln -s'
33956 # ... but there are two gotchas:
33957 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
33958 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
33959 # In both cases, we have to default to `cp -p'.
33960 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
33961 as_ln_s='cp -p'
33962 elif ln conf$$.file conf$$ 2>/dev/null; then
33963 as_ln_s=ln
33964 else
33965 as_ln_s='cp -p'
33966 fi
33967 else
33968 as_ln_s='cp -p'
33969 fi
33970 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
33971 rmdir conf$$.dir 2>/dev/null
33973 if mkdir -p . 2>/dev/null; then
33974 as_mkdir_p=:
33975 else
33976 test -d ./-p && rmdir ./-p
33977 as_mkdir_p=false
33978 fi
33980 if test -x / >/dev/null 2>&1; then
33981 as_test_x='test -x'
33982 else
33983 if ls -dL / >/dev/null 2>&1; then
33984 as_ls_L_option=L
33985 else
33986 as_ls_L_option=
33987 fi
33988 as_test_x='
33989 eval sh -c '\''
33990 if test -d "$1"; then
33991 test -d "$1/.";
33992 else
33993 case $1 in
33994 -*)set "./$1";;
33995 esac;
33996 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
33997 ???[sx]*):;;*)false;;esac;fi
33998 '\'' sh
33999 '
34000 fi
34001 as_executable_p=$as_test_x
34003 # Sed expression to map a string onto a valid CPP name.
34004 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34006 # Sed expression to map a string onto a valid variable name.
34007 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34010 exec 6>&1
34012 # Save the log message, to keep $[0] and so on meaningful, and to
34013 # report actual input values of CONFIG_FILES etc. instead of their
34014 # values after options handling.
34015 ac_log="
34016 This file was extended by rrdtool $as_me 1.4.2, which was
34017 generated by GNU Autoconf 2.63. Invocation command line was
34019 CONFIG_FILES = $CONFIG_FILES
34020 CONFIG_HEADERS = $CONFIG_HEADERS
34021 CONFIG_LINKS = $CONFIG_LINKS
34022 CONFIG_COMMANDS = $CONFIG_COMMANDS
34023 $ $0 $@
34025 on `(hostname || uname -n) 2>/dev/null | sed 1q`
34026 "
34028 _ACEOF
34030 case $ac_config_files in *"
34031 "*) set x $ac_config_files; shift; ac_config_files=$*;;
34032 esac
34034 case $ac_config_headers in *"
34035 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
34036 esac
34039 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34040 # Files that config.status was made for.
34041 config_files="$ac_config_files"
34042 config_headers="$ac_config_headers"
34043 config_commands="$ac_config_commands"
34045 _ACEOF
34047 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34048 ac_cs_usage="\
34049 \`$as_me' instantiates files from templates according to the
34050 current configuration.
34052 Usage: $0 [OPTION]... [FILE]...
34054 -h, --help print this help, then exit
34055 -V, --version print version number and configuration settings, then exit
34056 -q, --quiet, --silent
34057 do not print progress messages
34058 -d, --debug don't remove temporary files
34059 --recheck update $as_me by reconfiguring in the same conditions
34060 --file=FILE[:TEMPLATE]
34061 instantiate the configuration file FILE
34062 --header=FILE[:TEMPLATE]
34063 instantiate the configuration header FILE
34065 Configuration files:
34066 $config_files
34068 Configuration headers:
34069 $config_headers
34071 Configuration commands:
34072 $config_commands
34074 Report bugs to <bug-autoconf@gnu.org>."
34076 _ACEOF
34077 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34078 ac_cs_version="\\
34079 rrdtool config.status 1.4.2
34080 configured by $0, generated by GNU Autoconf 2.63,
34081 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
34083 Copyright (C) 2008 Free Software Foundation, Inc.
34084 This config.status script is free software; the Free Software Foundation
34085 gives unlimited permission to copy, distribute and modify it."
34087 ac_pwd='$ac_pwd'
34088 srcdir='$srcdir'
34089 INSTALL='$INSTALL'
34090 MKDIR_P='$MKDIR_P'
34091 AWK='$AWK'
34092 test -n "\$AWK" || AWK=awk
34093 _ACEOF
34095 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34096 # The default lists apply if the user does not specify any file.
34097 ac_need_defaults=:
34098 while test $# != 0
34099 do
34100 case $1 in
34101 --*=*)
34102 ac_option=`expr "X$1" : 'X\([^=]*\)='`
34103 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
34104 ac_shift=:
34105 ;;
34106 *)
34107 ac_option=$1
34108 ac_optarg=$2
34109 ac_shift=shift
34110 ;;
34111 esac
34113 case $ac_option in
34114 # Handling of the options.
34115 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34116 ac_cs_recheck=: ;;
34117 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34118 $as_echo "$ac_cs_version"; exit ;;
34119 --debug | --debu | --deb | --de | --d | -d )
34120 debug=: ;;
34121 --file | --fil | --fi | --f )
34122 $ac_shift
34123 case $ac_optarg in
34124 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
34125 esac
34126 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
34127 ac_need_defaults=false;;
34128 --header | --heade | --head | --hea )
34129 $ac_shift
34130 case $ac_optarg in
34131 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
34132 esac
34133 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
34134 ac_need_defaults=false;;
34135 --he | --h)
34136 # Conflict between --help and --header
34137 { $as_echo "$as_me: error: ambiguous option: $1
34138 Try \`$0 --help' for more information." >&2
34139 { (exit 1); exit 1; }; };;
34140 --help | --hel | -h )
34141 $as_echo "$ac_cs_usage"; exit ;;
34142 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34143 | -silent | --silent | --silen | --sile | --sil | --si | --s)
34144 ac_cs_silent=: ;;
34146 # This is an error.
34147 -*) { $as_echo "$as_me: error: unrecognized option: $1
34148 Try \`$0 --help' for more information." >&2
34149 { (exit 1); exit 1; }; } ;;
34151 *) ac_config_targets="$ac_config_targets $1"
34152 ac_need_defaults=false ;;
34154 esac
34155 shift
34156 done
34158 ac_configure_extra_args=
34160 if $ac_cs_silent; then
34161 exec 6>/dev/null
34162 ac_configure_extra_args="$ac_configure_extra_args --silent"
34163 fi
34165 _ACEOF
34166 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34167 if \$ac_cs_recheck; then
34168 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
34169 shift
34170 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
34171 CONFIG_SHELL='$SHELL'
34172 export CONFIG_SHELL
34173 exec "\$@"
34174 fi
34176 _ACEOF
34177 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34178 exec 5>>config.log
34179 {
34180 echo
34181 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34182 ## Running $as_me. ##
34183 _ASBOX
34184 $as_echo "$ac_log"
34185 } >&5
34187 _ACEOF
34188 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34189 #
34190 # INIT-COMMANDS
34191 #
34192 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
34195 # The HP-UX ksh and POSIX shell print the target directory to stdout
34196 # if CDPATH is set.
34197 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
34199 sed_quote_subst='$sed_quote_subst'
34200 double_quote_subst='$double_quote_subst'
34201 delay_variable_subst='$delay_variable_subst'
34202 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
34203 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
34204 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
34205 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
34206 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
34207 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
34208 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
34209 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
34210 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
34211 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
34212 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
34213 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
34214 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
34215 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
34216 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
34217 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
34218 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
34219 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
34220 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
34221 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
34222 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
34223 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
34224 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
34225 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
34226 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
34227 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
34228 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
34229 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
34230 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
34231 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
34232 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
34233 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
34234 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
34235 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
34236 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
34237 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
34238 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
34239 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
34240 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
34241 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
34242 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
34243 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
34244 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
34245 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
34246 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
34247 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
34248 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
34249 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
34250 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
34251 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
34252 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
34253 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
34254 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
34255 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
34256 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
34257 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
34258 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
34259 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
34260 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
34261 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
34262 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
34263 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
34264 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
34265 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
34266 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
34267 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
34268 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
34269 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
34270 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
34271 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
34272 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
34273 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
34274 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
34275 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
34276 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
34277 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
34278 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
34279 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
34280 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
34281 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
34282 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
34283 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
34284 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
34285 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
34286 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
34287 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
34288 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
34289 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
34290 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
34291 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
34292 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
34293 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
34294 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
34295 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
34296 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
34297 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
34298 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
34299 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
34300 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
34301 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
34302 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
34303 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
34304 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
34305 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
34306 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
34307 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
34308 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
34309 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
34310 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
34311 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
34312 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
34313 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
34314 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
34315 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
34316 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
34317 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
34318 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
34319 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
34321 LTCC='$LTCC'
34322 LTCFLAGS='$LTCFLAGS'
34323 compiler='$compiler_DEFAULT'
34325 # Quote evaled strings.
34326 for var in SED \
34327 GREP \
34328 EGREP \
34329 FGREP \
34330 LD \
34331 NM \
34332 LN_S \
34333 lt_SP2NL \
34334 lt_NL2SP \
34335 reload_flag \
34336 OBJDUMP \
34337 deplibs_check_method \
34338 file_magic_cmd \
34339 AR \
34340 AR_FLAGS \
34341 STRIP \
34342 RANLIB \
34343 CC \
34344 CFLAGS \
34345 compiler \
34346 lt_cv_sys_global_symbol_pipe \
34347 lt_cv_sys_global_symbol_to_cdecl \
34348 lt_cv_sys_global_symbol_to_c_name_address \
34349 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
34350 SHELL \
34351 ECHO \
34352 lt_prog_compiler_no_builtin_flag \
34353 lt_prog_compiler_wl \
34354 lt_prog_compiler_pic \
34355 lt_prog_compiler_static \
34356 lt_cv_prog_compiler_c_o \
34357 need_locks \
34358 DSYMUTIL \
34359 NMEDIT \
34360 LIPO \
34361 OTOOL \
34362 OTOOL64 \
34363 shrext_cmds \
34364 export_dynamic_flag_spec \
34365 whole_archive_flag_spec \
34366 compiler_needs_object \
34367 with_gnu_ld \
34368 allow_undefined_flag \
34369 no_undefined_flag \
34370 hardcode_libdir_flag_spec \
34371 hardcode_libdir_flag_spec_ld \
34372 hardcode_libdir_separator \
34373 fix_srcfile_path \
34374 exclude_expsyms \
34375 include_expsyms \
34376 file_list_spec \
34377 variables_saved_for_relink \
34378 libname_spec \
34379 library_names_spec \
34380 soname_spec \
34381 finish_eval \
34382 old_striplib \
34383 striplib; do
34384 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
34385 *[\\\\\\\`\\"\\\$]*)
34386 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
34387 ;;
34388 *)
34389 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
34390 ;;
34391 esac
34392 done
34394 # Double-quote double-evaled strings.
34395 for var in reload_cmds \
34396 old_postinstall_cmds \
34397 old_postuninstall_cmds \
34398 old_archive_cmds \
34399 extract_expsyms_cmds \
34400 old_archive_from_new_cmds \
34401 old_archive_from_expsyms_cmds \
34402 archive_cmds \
34403 archive_expsym_cmds \
34404 module_cmds \
34405 module_expsym_cmds \
34406 export_symbols_cmds \
34407 prelink_cmds \
34408 postinstall_cmds \
34409 postuninstall_cmds \
34410 finish_cmds \
34411 sys_lib_search_path_spec \
34412 sys_lib_dlsearch_path_spec; do
34413 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
34414 *[\\\\\\\`\\"\\\$]*)
34415 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
34416 ;;
34417 *)
34418 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
34419 ;;
34420 esac
34421 done
34423 # Fix-up fallback echo if it was mangled by the above quoting rules.
34424 case \$lt_ECHO in
34425 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
34426 ;;
34427 esac
34429 ac_aux_dir='$ac_aux_dir'
34430 xsi_shell='$xsi_shell'
34431 lt_shell_append='$lt_shell_append'
34433 # See if we are running on zsh, and set the options which allow our
34434 # commands through without removal of \ escapes INIT.
34435 if test -n "\${ZSH_VERSION+set}" ; then
34436 setopt NO_GLOB_SUBST
34437 fi
34440 PACKAGE='$PACKAGE'
34441 VERSION='$VERSION'
34442 TIMESTAMP='$TIMESTAMP'
34443 RM='$RM'
34444 ofile='$ofile'
34448 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
34449 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
34450 # from automake.
34451 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
34452 # Capture the value of LINGUAS because we need it to compute CATALOGS.
34453 LINGUAS="${LINGUAS-%UNSET%}"
34457 _ACEOF
34459 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34461 # Handling of arguments.
34462 for ac_config_target in $ac_config_targets
34463 do
34464 case $ac_config_target in
34465 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
34466 "rrd_config.h") CONFIG_HEADERS="$CONFIG_HEADERS rrd_config.h" ;;
34467 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
34468 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
34469 "examples/shared-demo.pl") CONFIG_FILES="$CONFIG_FILES examples/shared-demo.pl" ;;
34470 "examples/piped-demo.pl") CONFIG_FILES="$CONFIG_FILES examples/piped-demo.pl" ;;
34471 "examples/stripes.pl") CONFIG_FILES="$CONFIG_FILES examples/stripes.pl" ;;
34472 "examples/bigtops.pl") CONFIG_FILES="$CONFIG_FILES examples/bigtops.pl" ;;
34473 "examples/minmax.pl") CONFIG_FILES="$CONFIG_FILES examples/minmax.pl" ;;
34474 "examples/4charts.pl") CONFIG_FILES="$CONFIG_FILES examples/4charts.pl" ;;
34475 "examples/perftest.pl") CONFIG_FILES="$CONFIG_FILES examples/perftest.pl" ;;
34476 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
34477 "examples/rrdcached/Makefile") CONFIG_FILES="$CONFIG_FILES examples/rrdcached/Makefile" ;;
34478 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
34479 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
34480 "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
34481 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
34482 "src/librrd.sym.in") CONFIG_FILES="$CONFIG_FILES src/librrd.sym.in" ;;
34483 "src/librrd.pc") CONFIG_FILES="$CONFIG_FILES src/librrd.pc" ;;
34484 "bindings/Makefile") CONFIG_FILES="$CONFIG_FILES bindings/Makefile" ;;
34485 "bindings/tcl/Makefile") CONFIG_FILES="$CONFIG_FILES bindings/tcl/Makefile" ;;
34486 "bindings/tcl/ifOctets.tcl") CONFIG_FILES="$CONFIG_FILES bindings/tcl/ifOctets.tcl" ;;
34487 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
34488 "bindings/lua/Makefile") CONFIG_FILES="$CONFIG_FILES bindings/lua/Makefile" ;;
34489 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
34491 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34492 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34493 { (exit 1); exit 1; }; };;
34494 esac
34495 done
34498 # If the user did not use the arguments to specify the items to instantiate,
34499 # then the envvar interface is used. Set only those that are not.
34500 # We use the long form for the default assignment because of an extremely
34501 # bizarre bug on SunOS 4.1.3.
34502 if $ac_need_defaults; then
34503 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34504 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34505 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34506 fi
34508 # Have a temporary directory for convenience. Make it in the build tree
34509 # simply because there is no reason against having it here, and in addition,
34510 # creating and moving files from /tmp can sometimes cause problems.
34511 # Hook for its removal unless debugging.
34512 # Note that there is a small window in which the directory will not be cleaned:
34513 # after its creation but before its name has been assigned to `$tmp'.
34514 $debug ||
34515 {
34516 tmp=
34517 trap 'exit_status=$?
34518 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34519 ' 0
34520 trap '{ (exit 1); exit 1; }' 1 2 13 15
34521 }
34522 # Create a (secure) tmp directory for tmp files.
34524 {
34525 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34526 test -n "$tmp" && test -d "$tmp"
34527 } ||
34528 {
34529 tmp=./conf$$-$RANDOM
34530 (umask 077 && mkdir "$tmp")
34531 } ||
34532 {
34533 $as_echo "$as_me: cannot create a temporary directory in ." >&2
34534 { (exit 1); exit 1; }
34535 }
34537 # Set up the scripts for CONFIG_FILES section.
34538 # No need to generate them if there are no CONFIG_FILES.
34539 # This happens for instance with `./config.status config.h'.
34540 if test -n "$CONFIG_FILES"; then
34543 ac_cr='\r'
34544 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
34545 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
34546 ac_cs_awk_cr='\\r'
34547 else
34548 ac_cs_awk_cr=$ac_cr
34549 fi
34551 echo 'BEGIN {' >"$tmp/subs1.awk" &&
34552 _ACEOF
34555 {
34556 echo "cat >conf$$subs.awk <<_ACEOF" &&
34557 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
34558 echo "_ACEOF"
34559 } >conf$$subs.sh ||
34560 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34561 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34562 { (exit 1); exit 1; }; }
34563 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
34564 ac_delim='%!_!# '
34565 for ac_last_try in false false false false false :; do
34566 . ./conf$$subs.sh ||
34567 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34568 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34569 { (exit 1); exit 1; }; }
34571 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
34572 if test $ac_delim_n = $ac_delim_num; then
34573 break
34574 elif $ac_last_try; then
34575 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34576 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34577 { (exit 1); exit 1; }; }
34578 else
34579 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34580 fi
34581 done
34582 rm -f conf$$subs.sh
34584 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34585 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
34586 _ACEOF
34587 sed -n '
34588 h
34589 s/^/S["/; s/!.*/"]=/
34590 p
34591 g
34592 s/^[^!]*!//
34593 :repl
34594 t repl
34595 s/'"$ac_delim"'$//
34596 t delim
34597 :nl
34598 h
34599 s/\(.\{148\}\).*/\1/
34600 t more1
34601 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
34602 p
34603 n
34604 b repl
34605 :more1
34606 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
34607 p
34608 g
34609 s/.\{148\}//
34610 t nl
34611 :delim
34612 h
34613 s/\(.\{148\}\).*/\1/
34614 t more2
34615 s/["\\]/\\&/g; s/^/"/; s/$/"/
34616 p
34617 b
34618 :more2
34619 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
34620 p
34621 g
34622 s/.\{148\}//
34623 t delim
34624 ' <conf$$subs.awk | sed '
34625 /^[^""]/{
34626 N
34627 s/\n//
34628 }
34629 ' >>$CONFIG_STATUS || ac_write_fail=1
34630 rm -f conf$$subs.awk
34631 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34632 _ACAWK
34633 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
34634 for (key in S) S_is_set[key] = 1
34635 FS = "\a"
34637 }
34638 {
34639 line = $ 0
34640 nfields = split(line, field, "@")
34641 substed = 0
34642 len = length(field[1])
34643 for (i = 2; i < nfields; i++) {
34644 key = field[i]
34645 keylen = length(key)
34646 if (S_is_set[key]) {
34647 value = S[key]
34648 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
34649 len += length(value) + length(field[++i])
34650 substed = 1
34651 } else
34652 len += 1 + keylen
34653 }
34655 print line
34656 }
34658 _ACAWK
34659 _ACEOF
34660 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34661 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
34662 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
34663 else
34664 cat
34665 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
34666 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
34667 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
34668 { (exit 1); exit 1; }; }
34669 _ACEOF
34671 # VPATH may cause trouble with some makes, so we remove $(srcdir),
34672 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
34673 # trailing colons and then remove the whole line if VPATH becomes empty
34674 # (actually we leave an empty line to preserve line numbers).
34675 if test "x$srcdir" = x.; then
34676 ac_vpsub='/^[ ]*VPATH[ ]*=/{
34677 s/:*\$(srcdir):*/:/
34678 s/:*\${srcdir}:*/:/
34679 s/:*@srcdir@:*/:/
34680 s/^\([^=]*=[ ]*\):*/\1/
34681 s/:*$//
34682 s/^[^=]*=[ ]*$//
34683 }'
34684 fi
34686 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34687 fi # test -n "$CONFIG_FILES"
34689 # Set up the scripts for CONFIG_HEADERS section.
34690 # No need to generate them if there are no CONFIG_HEADERS.
34691 # This happens for instance with `./config.status Makefile'.
34692 if test -n "$CONFIG_HEADERS"; then
34693 cat >"$tmp/defines.awk" <<\_ACAWK ||
34694 BEGIN {
34695 _ACEOF
34697 # Transform confdefs.h into an awk script `defines.awk', embedded as
34698 # here-document in config.status, that substitutes the proper values into
34699 # config.h.in to produce config.h.
34701 # Create a delimiter string that does not exist in confdefs.h, to ease
34702 # handling of long lines.
34703 ac_delim='%!_!# '
34704 for ac_last_try in false false :; do
34705 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
34706 if test -z "$ac_t"; then
34707 break
34708 elif $ac_last_try; then
34709 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
34710 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
34711 { (exit 1); exit 1; }; }
34712 else
34713 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34714 fi
34715 done
34717 # For the awk script, D is an array of macro values keyed by name,
34718 # likewise P contains macro parameters if any. Preserve backslash
34719 # newline sequences.
34721 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
34722 sed -n '
34723 s/.\{148\}/&'"$ac_delim"'/g
34724 t rset
34725 :rset
34726 s/^[ ]*#[ ]*define[ ][ ]*/ /
34727 t def
34728 d
34729 :def
34730 s/\\$//
34731 t bsnl
34732 s/["\\]/\\&/g
34733 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
34734 D["\1"]=" \3"/p
34735 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
34736 d
34737 :bsnl
34738 s/["\\]/\\&/g
34739 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
34740 D["\1"]=" \3\\\\\\n"\\/p
34741 t cont
34742 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
34743 t cont
34744 d
34745 :cont
34746 n
34747 s/.\{148\}/&'"$ac_delim"'/g
34748 t clear
34749 :clear
34750 s/\\$//
34751 t bsnlc
34752 s/["\\]/\\&/g; s/^/"/; s/$/"/p
34753 d
34754 :bsnlc
34755 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
34756 b cont
34757 ' <confdefs.h | sed '
34758 s/'"$ac_delim"'/"\\\
34759 "/g' >>$CONFIG_STATUS || ac_write_fail=1
34761 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34762 for (key in D) D_is_set[key] = 1
34763 FS = "\a"
34764 }
34765 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
34766 line = \$ 0
34767 split(line, arg, " ")
34768 if (arg[1] == "#") {
34769 defundef = arg[2]
34770 mac1 = arg[3]
34771 } else {
34772 defundef = substr(arg[1], 2)
34773 mac1 = arg[2]
34774 }
34775 split(mac1, mac2, "(") #)
34776 macro = mac2[1]
34777 prefix = substr(line, 1, index(line, defundef) - 1)
34778 if (D_is_set[macro]) {
34779 # Preserve the white space surrounding the "#".
34780 print prefix "define", macro P[macro] D[macro]
34781 next
34782 } else {
34783 # Replace #undef with comments. This is necessary, for example,
34784 # in the case of _POSIX_SOURCE, which is predefined and required
34785 # on some systems where configure will not decide to define it.
34786 if (defundef == "undef") {
34787 print "/*", prefix defundef, macro, "*/"
34788 next
34789 }
34790 }
34791 }
34792 { print }
34793 _ACAWK
34794 _ACEOF
34795 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34796 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
34797 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
34798 { (exit 1); exit 1; }; }
34799 fi # test -n "$CONFIG_HEADERS"
34802 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
34803 shift
34804 for ac_tag
34805 do
34806 case $ac_tag in
34807 :[FHLC]) ac_mode=$ac_tag; continue;;
34808 esac
34809 case $ac_mode$ac_tag in
34810 :[FHL]*:*);;
34811 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
34812 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
34813 { (exit 1); exit 1; }; };;
34814 :[FH]-) ac_tag=-:-;;
34815 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
34816 esac
34817 ac_save_IFS=$IFS
34818 IFS=:
34819 set x $ac_tag
34820 IFS=$ac_save_IFS
34821 shift
34822 ac_file=$1
34823 shift
34825 case $ac_mode in
34826 :L) ac_source=$1;;
34827 :[FH])
34828 ac_file_inputs=
34829 for ac_f
34830 do
34831 case $ac_f in
34832 -) ac_f="$tmp/stdin";;
34833 *) # Look for the file first in the build tree, then in the source tree
34834 # (if the path is not absolute). The absolute path cannot be DOS-style,
34835 # because $ac_f cannot contain `:'.
34836 test -f "$ac_f" ||
34837 case $ac_f in
34838 [\\/$]*) false;;
34839 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
34840 esac ||
34841 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
34842 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
34843 { (exit 1); exit 1; }; };;
34844 esac
34845 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
34846 ac_file_inputs="$ac_file_inputs '$ac_f'"
34847 done
34849 # Let's still pretend it is `configure' which instantiates (i.e., don't
34850 # use $as_me), people would be surprised to read:
34851 # /* config.h. Generated by config.status. */
34852 configure_input='Generated from '`
34853 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
34854 `' by configure.'
34855 if test x"$ac_file" != x-; then
34856 configure_input="$ac_file. $configure_input"
34857 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
34858 $as_echo "$as_me: creating $ac_file" >&6;}
34859 fi
34860 # Neutralize special characters interpreted by sed in replacement strings.
34861 case $configure_input in #(
34862 *\&* | *\|* | *\\* )
34863 ac_sed_conf_input=`$as_echo "$configure_input" |
34864 sed 's/[\\\\&|]/\\\\&/g'`;; #(
34865 *) ac_sed_conf_input=$configure_input;;
34866 esac
34868 case $ac_tag in
34869 *:-:* | *:-) cat >"$tmp/stdin" \
34870 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
34871 $as_echo "$as_me: error: could not create $ac_file" >&2;}
34872 { (exit 1); exit 1; }; } ;;
34873 esac
34874 ;;
34875 esac
34877 ac_dir=`$as_dirname -- "$ac_file" ||
34878 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34879 X"$ac_file" : 'X\(//\)[^/]' \| \
34880 X"$ac_file" : 'X\(//\)$' \| \
34881 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
34882 $as_echo X"$ac_file" |
34883 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34884 s//\1/
34885 q
34886 }
34887 /^X\(\/\/\)[^/].*/{
34888 s//\1/
34889 q
34890 }
34891 /^X\(\/\/\)$/{
34892 s//\1/
34893 q
34894 }
34895 /^X\(\/\).*/{
34896 s//\1/
34897 q
34898 }
34899 s/.*/./; q'`
34900 { as_dir="$ac_dir"
34901 case $as_dir in #(
34902 -*) as_dir=./$as_dir;;
34903 esac
34904 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
34905 as_dirs=
34906 while :; do
34907 case $as_dir in #(
34908 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
34909 *) as_qdir=$as_dir;;
34910 esac
34911 as_dirs="'$as_qdir' $as_dirs"
34912 as_dir=`$as_dirname -- "$as_dir" ||
34913 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34914 X"$as_dir" : 'X\(//\)[^/]' \| \
34915 X"$as_dir" : 'X\(//\)$' \| \
34916 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
34917 $as_echo X"$as_dir" |
34918 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34919 s//\1/
34920 q
34921 }
34922 /^X\(\/\/\)[^/].*/{
34923 s//\1/
34924 q
34925 }
34926 /^X\(\/\/\)$/{
34927 s//\1/
34928 q
34929 }
34930 /^X\(\/\).*/{
34931 s//\1/
34932 q
34933 }
34934 s/.*/./; q'`
34935 test -d "$as_dir" && break
34936 done
34937 test -z "$as_dirs" || eval "mkdir $as_dirs"
34938 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
34939 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
34940 { (exit 1); exit 1; }; }; }
34941 ac_builddir=.
34943 case "$ac_dir" in
34944 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
34945 *)
34946 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
34947 # A ".." for each directory in $ac_dir_suffix.
34948 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
34949 case $ac_top_builddir_sub in
34950 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
34951 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
34952 esac ;;
34953 esac
34954 ac_abs_top_builddir=$ac_pwd
34955 ac_abs_builddir=$ac_pwd$ac_dir_suffix
34956 # for backward compatibility:
34957 ac_top_builddir=$ac_top_build_prefix
34959 case $srcdir in
34960 .) # We are building in place.
34961 ac_srcdir=.
34962 ac_top_srcdir=$ac_top_builddir_sub
34963 ac_abs_top_srcdir=$ac_pwd ;;
34964 [\\/]* | ?:[\\/]* ) # Absolute name.
34965 ac_srcdir=$srcdir$ac_dir_suffix;
34966 ac_top_srcdir=$srcdir
34967 ac_abs_top_srcdir=$srcdir ;;
34968 *) # Relative name.
34969 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
34970 ac_top_srcdir=$ac_top_build_prefix$srcdir
34971 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
34972 esac
34973 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
34976 case $ac_mode in
34977 :F)
34978 #
34979 # CONFIG_FILE
34980 #
34982 case $INSTALL in
34983 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
34984 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
34985 esac
34986 ac_MKDIR_P=$MKDIR_P
34987 case $MKDIR_P in
34988 [\\/$]* | ?:[\\/]* ) ;;
34989 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
34990 esac
34991 _ACEOF
34993 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34994 # If the template does not know about datarootdir, expand it.
34995 # FIXME: This hack should be removed a few years after 2.60.
34996 ac_datarootdir_hack=; ac_datarootdir_seen=
34998 ac_sed_dataroot='
34999 /datarootdir/ {
35000 p
35001 q
35002 }
35003 /@datadir@/p
35004 /@docdir@/p
35005 /@infodir@/p
35006 /@localedir@/p
35007 /@mandir@/p
35008 '
35009 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
35010 *datarootdir*) ac_datarootdir_seen=yes;;
35011 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35012 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35013 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35014 _ACEOF
35015 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35016 ac_datarootdir_hack='
35017 s&@datadir@&$datadir&g
35018 s&@docdir@&$docdir&g
35019 s&@infodir@&$infodir&g
35020 s&@localedir@&$localedir&g
35021 s&@mandir@&$mandir&g
35022 s&\\\${datarootdir}&$datarootdir&g' ;;
35023 esac
35024 _ACEOF
35026 # Neutralize VPATH when `$srcdir' = `.'.
35027 # Shell code in configure.ac might set extrasub.
35028 # FIXME: do we really want to maintain this feature?
35029 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35030 ac_sed_extra="$ac_vpsub
35031 $extrasub
35032 _ACEOF
35033 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35034 :t
35035 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35036 s|@configure_input@|$ac_sed_conf_input|;t t
35037 s&@top_builddir@&$ac_top_builddir_sub&;t t
35038 s&@top_build_prefix@&$ac_top_build_prefix&;t t
35039 s&@srcdir@&$ac_srcdir&;t t
35040 s&@abs_srcdir@&$ac_abs_srcdir&;t t
35041 s&@top_srcdir@&$ac_top_srcdir&;t t
35042 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35043 s&@builddir@&$ac_builddir&;t t
35044 s&@abs_builddir@&$ac_abs_builddir&;t t
35045 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35046 s&@INSTALL@&$ac_INSTALL&;t t
35047 s&@MKDIR_P@&$ac_MKDIR_P&;t t
35048 $ac_datarootdir_hack
35049 "
35050 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
35051 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
35052 $as_echo "$as_me: error: could not create $ac_file" >&2;}
35053 { (exit 1); exit 1; }; }
35055 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35056 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
35057 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
35058 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35059 which seems to be undefined. Please make sure it is defined." >&5
35060 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35061 which seems to be undefined. Please make sure it is defined." >&2;}
35063 rm -f "$tmp/stdin"
35064 case $ac_file in
35065 -) cat "$tmp/out" && rm -f "$tmp/out";;
35066 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
35067 esac \
35068 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
35069 $as_echo "$as_me: error: could not create $ac_file" >&2;}
35070 { (exit 1); exit 1; }; }
35071 ;;
35072 :H)
35073 #
35074 # CONFIG_HEADER
35075 #
35076 if test x"$ac_file" != x-; then
35077 {
35078 $as_echo "/* $configure_input */" \
35079 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
35080 } >"$tmp/config.h" \
35081 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
35082 $as_echo "$as_me: error: could not create $ac_file" >&2;}
35083 { (exit 1); exit 1; }; }
35084 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
35085 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35086 $as_echo "$as_me: $ac_file is unchanged" >&6;}
35087 else
35088 rm -f "$ac_file"
35089 mv "$tmp/config.h" "$ac_file" \
35090 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
35091 $as_echo "$as_me: error: could not create $ac_file" >&2;}
35092 { (exit 1); exit 1; }; }
35093 fi
35094 else
35095 $as_echo "/* $configure_input */" \
35096 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
35097 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
35098 $as_echo "$as_me: error: could not create -" >&2;}
35099 { (exit 1); exit 1; }; }
35100 fi
35101 # Compute "$ac_file"'s index in $config_headers.
35102 _am_arg="$ac_file"
35103 _am_stamp_count=1
35104 for _am_header in $config_headers :; do
35105 case $_am_header in
35106 $_am_arg | $_am_arg:* )
35107 break ;;
35108 * )
35109 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
35110 esac
35111 done
35112 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
35113 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35114 X"$_am_arg" : 'X\(//\)[^/]' \| \
35115 X"$_am_arg" : 'X\(//\)$' \| \
35116 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
35117 $as_echo X"$_am_arg" |
35118 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35119 s//\1/
35120 q
35121 }
35122 /^X\(\/\/\)[^/].*/{
35123 s//\1/
35124 q
35125 }
35126 /^X\(\/\/\)$/{
35127 s//\1/
35128 q
35129 }
35130 /^X\(\/\).*/{
35131 s//\1/
35132 q
35133 }
35134 s/.*/./; q'`/stamp-h$_am_stamp_count
35135 ;;
35137 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
35138 $as_echo "$as_me: executing $ac_file commands" >&6;}
35139 ;;
35140 esac
35143 case $ac_file$ac_mode in
35144 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
35145 # Autoconf 2.62 quotes --file arguments for eval, but not when files
35146 # are listed without --file. Let's play safe and only enable the eval
35147 # if we detect the quoting.
35148 case $CONFIG_FILES in
35149 *\'*) eval set x "$CONFIG_FILES" ;;
35150 *) set x $CONFIG_FILES ;;
35151 esac
35152 shift
35153 for mf
35154 do
35155 # Strip MF so we end up with the name of the file.
35156 mf=`echo "$mf" | sed -e 's/:.*$//'`
35157 # Check whether this is an Automake generated Makefile or not.
35158 # We used to match only the files named `Makefile.in', but
35159 # some people rename them; so instead we look at the file content.
35160 # Grep'ing the first line is not enough: some people post-process
35161 # each Makefile.in and add a new line on top of each file to say so.
35162 # Grep'ing the whole file is not good either: AIX grep has a line
35163 # limit of 2048, but all sed's we know have understand at least 4000.
35164 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
35165 dirpart=`$as_dirname -- "$mf" ||
35166 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35167 X"$mf" : 'X\(//\)[^/]' \| \
35168 X"$mf" : 'X\(//\)$' \| \
35169 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
35170 $as_echo X"$mf" |
35171 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35172 s//\1/
35173 q
35174 }
35175 /^X\(\/\/\)[^/].*/{
35176 s//\1/
35177 q
35178 }
35179 /^X\(\/\/\)$/{
35180 s//\1/
35181 q
35182 }
35183 /^X\(\/\).*/{
35184 s//\1/
35185 q
35186 }
35187 s/.*/./; q'`
35188 else
35189 continue
35190 fi
35191 # Extract the definition of DEPDIR, am__include, and am__quote
35192 # from the Makefile without running `make'.
35193 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
35194 test -z "$DEPDIR" && continue
35195 am__include=`sed -n 's/^am__include = //p' < "$mf"`
35196 test -z "am__include" && continue
35197 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
35198 # When using ansi2knr, U may be empty or an underscore; expand it
35199 U=`sed -n 's/^U = //p' < "$mf"`
35200 # Find all dependency output files, they are included files with
35201 # $(DEPDIR) in their names. We invoke sed twice because it is the
35202 # simplest approach to changing $(DEPDIR) to its actual value in the
35203 # expansion.
35204 for file in `sed -n "
35205 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
35206 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
35207 # Make sure the directory exists.
35208 test -f "$dirpart/$file" && continue
35209 fdir=`$as_dirname -- "$file" ||
35210 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35211 X"$file" : 'X\(//\)[^/]' \| \
35212 X"$file" : 'X\(//\)$' \| \
35213 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
35214 $as_echo X"$file" |
35215 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35216 s//\1/
35217 q
35218 }
35219 /^X\(\/\/\)[^/].*/{
35220 s//\1/
35221 q
35222 }
35223 /^X\(\/\/\)$/{
35224 s//\1/
35225 q
35226 }
35227 /^X\(\/\).*/{
35228 s//\1/
35229 q
35230 }
35231 s/.*/./; q'`
35232 { as_dir=$dirpart/$fdir
35233 case $as_dir in #(
35234 -*) as_dir=./$as_dir;;
35235 esac
35236 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35237 as_dirs=
35238 while :; do
35239 case $as_dir in #(
35240 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
35241 *) as_qdir=$as_dir;;
35242 esac
35243 as_dirs="'$as_qdir' $as_dirs"
35244 as_dir=`$as_dirname -- "$as_dir" ||
35245 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35246 X"$as_dir" : 'X\(//\)[^/]' \| \
35247 X"$as_dir" : 'X\(//\)$' \| \
35248 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35249 $as_echo X"$as_dir" |
35250 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35251 s//\1/
35252 q
35253 }
35254 /^X\(\/\/\)[^/].*/{
35255 s//\1/
35256 q
35257 }
35258 /^X\(\/\/\)$/{
35259 s//\1/
35260 q
35261 }
35262 /^X\(\/\).*/{
35263 s//\1/
35264 q
35265 }
35266 s/.*/./; q'`
35267 test -d "$as_dir" && break
35268 done
35269 test -z "$as_dirs" || eval "mkdir $as_dirs"
35270 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35271 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
35272 { (exit 1); exit 1; }; }; }
35273 # echo "creating $dirpart/$file"
35274 echo '# dummy' > "$dirpart/$file"
35275 done
35276 done
35277 }
35278 ;;
35279 "libtool":C)
35281 # See if we are running on zsh, and set the options which allow our
35282 # commands through without removal of \ escapes.
35283 if test -n "${ZSH_VERSION+set}" ; then
35284 setopt NO_GLOB_SUBST
35285 fi
35287 cfgfile="${ofile}T"
35288 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
35289 $RM "$cfgfile"
35291 cat <<_LT_EOF >> "$cfgfile"
35292 #! $SHELL
35294 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
35295 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
35296 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
35297 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
35298 #
35299 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
35300 # 2006, 2007, 2008 Free Software Foundation, Inc.
35301 # Written by Gordon Matzigkeit, 1996
35302 #
35303 # This file is part of GNU Libtool.
35304 #
35305 # GNU Libtool is free software; you can redistribute it and/or
35306 # modify it under the terms of the GNU General Public License as
35307 # published by the Free Software Foundation; either version 2 of
35308 # the License, or (at your option) any later version.
35309 #
35310 # As a special exception to the GNU General Public License,
35311 # if you distribute this file as part of a program or library that
35312 # is built using GNU Libtool, you may include this file under the
35313 # same distribution terms that you use for the rest of that program.
35314 #
35315 # GNU Libtool is distributed in the hope that it will be useful,
35316 # but WITHOUT ANY WARRANTY; without even the implied warranty of
35317 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
35318 # GNU General Public License for more details.
35319 #
35320 # You should have received a copy of the GNU General Public License
35321 # along with GNU Libtool; see the file COPYING. If not, a copy
35322 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
35323 # obtained by writing to the Free Software Foundation, Inc.,
35324 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
35327 # The names of the tagged configurations supported by this script.
35328 available_tags=""
35330 # ### BEGIN LIBTOOL CONFIG
35332 # Which release of libtool.m4 was used?
35333 macro_version=$macro_version
35334 macro_revision=$macro_revision
35336 # Whether or not to build shared libraries.
35337 build_libtool_libs=$enable_shared
35339 # Whether or not to build static libraries.
35340 build_old_libs=$enable_static
35342 # What type of objects to build.
35343 pic_mode=$pic_mode
35345 # Whether or not to optimize for fast installation.
35346 fast_install=$enable_fast_install
35348 # The host system.
35349 host_alias=$host_alias
35350 host=$host
35351 host_os=$host_os
35353 # The build system.
35354 build_alias=$build_alias
35355 build=$build
35356 build_os=$build_os
35358 # A sed program that does not truncate output.
35359 SED=$lt_SED
35361 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
35362 Xsed="\$SED -e 1s/^X//"
35364 # A grep program that handles long lines.
35365 GREP=$lt_GREP
35367 # An ERE matcher.
35368 EGREP=$lt_EGREP
35370 # A literal string matcher.
35371 FGREP=$lt_FGREP
35373 # A BSD- or MS-compatible name lister.
35374 NM=$lt_NM
35376 # Whether we need soft or hard links.
35377 LN_S=$lt_LN_S
35379 # What is the maximum length of a command?
35380 max_cmd_len=$max_cmd_len
35382 # Object file suffix (normally "o").
35383 objext=$ac_objext
35385 # Executable file suffix (normally "").
35386 exeext=$exeext
35388 # whether the shell understands "unset".
35389 lt_unset=$lt_unset
35391 # turn spaces into newlines.
35392 SP2NL=$lt_lt_SP2NL
35394 # turn newlines into spaces.
35395 NL2SP=$lt_lt_NL2SP
35397 # How to create reloadable object files.
35398 reload_flag=$lt_reload_flag
35399 reload_cmds=$lt_reload_cmds
35401 # An object symbol dumper.
35402 OBJDUMP=$lt_OBJDUMP
35404 # Method to check whether dependent libraries are shared objects.
35405 deplibs_check_method=$lt_deplibs_check_method
35407 # Command to use when deplibs_check_method == "file_magic".
35408 file_magic_cmd=$lt_file_magic_cmd
35410 # The archiver.
35411 AR=$lt_AR
35412 AR_FLAGS=$lt_AR_FLAGS
35414 # A symbol stripping program.
35415 STRIP=$lt_STRIP
35417 # Commands used to install an old-style archive.
35418 RANLIB=$lt_RANLIB
35419 old_postinstall_cmds=$lt_old_postinstall_cmds
35420 old_postuninstall_cmds=$lt_old_postuninstall_cmds
35422 # A C compiler.
35423 LTCC=$lt_CC
35425 # LTCC compiler flags.
35426 LTCFLAGS=$lt_CFLAGS
35428 # Take the output of nm and produce a listing of raw symbols and C names.
35429 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
35431 # Transform the output of nm in a proper C declaration.
35432 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
35434 # Transform the output of nm in a C name address pair.
35435 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
35437 # Transform the output of nm in a C name address pair when lib prefix is needed.
35438 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
35440 # The name of the directory that contains temporary libtool files.
35441 objdir=$objdir
35443 # Shell to use when invoking shell scripts.
35444 SHELL=$lt_SHELL
35446 # An echo program that does not interpret backslashes.
35447 ECHO=$lt_ECHO
35449 # Used to examine libraries when file_magic_cmd begins with "file".
35450 MAGIC_CMD=$MAGIC_CMD
35452 # Must we lock files when doing compilation?
35453 need_locks=$lt_need_locks
35455 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
35456 DSYMUTIL=$lt_DSYMUTIL
35458 # Tool to change global to local symbols on Mac OS X.
35459 NMEDIT=$lt_NMEDIT
35461 # Tool to manipulate fat objects and archives on Mac OS X.
35462 LIPO=$lt_LIPO
35464 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
35465 OTOOL=$lt_OTOOL
35467 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
35468 OTOOL64=$lt_OTOOL64
35470 # Old archive suffix (normally "a").
35471 libext=$libext
35473 # Shared library suffix (normally ".so").
35474 shrext_cmds=$lt_shrext_cmds
35476 # The commands to extract the exported symbol list from a shared archive.
35477 extract_expsyms_cmds=$lt_extract_expsyms_cmds
35479 # Variables whose values should be saved in libtool wrapper scripts and
35480 # restored at link time.
35481 variables_saved_for_relink=$lt_variables_saved_for_relink
35483 # Do we need the "lib" prefix for modules?
35484 need_lib_prefix=$need_lib_prefix
35486 # Do we need a version for libraries?
35487 need_version=$need_version
35489 # Library versioning type.
35490 version_type=$version_type
35492 # Shared library runtime path variable.
35493 runpath_var=$runpath_var
35495 # Shared library path variable.
35496 shlibpath_var=$shlibpath_var
35498 # Is shlibpath searched before the hard-coded library search path?
35499 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
35501 # Format of library name prefix.
35502 libname_spec=$lt_libname_spec
35504 # List of archive names. First name is the real one, the rest are links.
35505 # The last name is the one that the linker finds with -lNAME
35506 library_names_spec=$lt_library_names_spec
35508 # The coded name of the library, if different from the real name.
35509 soname_spec=$lt_soname_spec
35511 # Command to use after installation of a shared archive.
35512 postinstall_cmds=$lt_postinstall_cmds
35514 # Command to use after uninstallation of a shared archive.
35515 postuninstall_cmds=$lt_postuninstall_cmds
35517 # Commands used to finish a libtool library installation in a directory.
35518 finish_cmds=$lt_finish_cmds
35520 # As "finish_cmds", except a single script fragment to be evaled but
35521 # not shown.
35522 finish_eval=$lt_finish_eval
35524 # Whether we should hardcode library paths into libraries.
35525 hardcode_into_libs=$hardcode_into_libs
35527 # Compile-time system search path for libraries.
35528 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
35530 # Run-time system search path for libraries.
35531 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
35533 # Whether dlopen is supported.
35534 dlopen_support=$enable_dlopen
35536 # Whether dlopen of programs is supported.
35537 dlopen_self=$enable_dlopen_self
35539 # Whether dlopen of statically linked programs is supported.
35540 dlopen_self_static=$enable_dlopen_self_static
35542 # Commands to strip libraries.
35543 old_striplib=$lt_old_striplib
35544 striplib=$lt_striplib
35547 # The linker used to build libraries.
35548 LD=$lt_LD
35550 # Commands used to build an old-style archive.
35551 old_archive_cmds=$lt_old_archive_cmds
35553 # A language specific compiler.
35554 CC=$lt_compiler
35556 # Is the compiler the GNU compiler?
35557 with_gcc=$GCC
35559 # Compiler flag to turn off builtin functions.
35560 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
35562 # How to pass a linker flag through the compiler.
35563 wl=$lt_lt_prog_compiler_wl
35565 # Additional compiler flags for building library objects.
35566 pic_flag=$lt_lt_prog_compiler_pic
35568 # Compiler flag to prevent dynamic linking.
35569 link_static_flag=$lt_lt_prog_compiler_static
35571 # Does compiler simultaneously support -c and -o options?
35572 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
35574 # Whether or not to add -lc for building shared libraries.
35575 build_libtool_need_lc=$archive_cmds_need_lc
35577 # Whether or not to disallow shared libs when runtime libs are static.
35578 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
35580 # Compiler flag to allow reflexive dlopens.
35581 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
35583 # Compiler flag to generate shared objects directly from archives.
35584 whole_archive_flag_spec=$lt_whole_archive_flag_spec
35586 # Whether the compiler copes with passing no objects directly.
35587 compiler_needs_object=$lt_compiler_needs_object
35589 # Create an old-style archive from a shared archive.
35590 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
35592 # Create a temporary old-style archive to link instead of a shared archive.
35593 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
35595 # Commands used to build a shared archive.
35596 archive_cmds=$lt_archive_cmds
35597 archive_expsym_cmds=$lt_archive_expsym_cmds
35599 # Commands used to build a loadable module if different from building
35600 # a shared archive.
35601 module_cmds=$lt_module_cmds
35602 module_expsym_cmds=$lt_module_expsym_cmds
35604 # Whether we are building with GNU ld or not.
35605 with_gnu_ld=$lt_with_gnu_ld
35607 # Flag that allows shared libraries with undefined symbols to be built.
35608 allow_undefined_flag=$lt_allow_undefined_flag
35610 # Flag that enforces no undefined symbols.
35611 no_undefined_flag=$lt_no_undefined_flag
35613 # Flag to hardcode \$libdir into a binary during linking.
35614 # This must work even if \$libdir does not exist
35615 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
35617 # If ld is used when linking, flag to hardcode \$libdir into a binary
35618 # during linking. This must work even if \$libdir does not exist.
35619 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
35621 # Whether we need a single "-rpath" flag with a separated argument.
35622 hardcode_libdir_separator=$lt_hardcode_libdir_separator
35624 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35625 # DIR into the resulting binary.
35626 hardcode_direct=$hardcode_direct
35628 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35629 # DIR into the resulting binary and the resulting library dependency is
35630 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
35631 # library is relocated.
35632 hardcode_direct_absolute=$hardcode_direct_absolute
35634 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
35635 # into the resulting binary.
35636 hardcode_minus_L=$hardcode_minus_L
35638 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
35639 # into the resulting binary.
35640 hardcode_shlibpath_var=$hardcode_shlibpath_var
35642 # Set to "yes" if building a shared library automatically hardcodes DIR
35643 # into the library and all subsequent libraries and executables linked
35644 # against it.
35645 hardcode_automatic=$hardcode_automatic
35647 # Set to yes if linker adds runtime paths of dependent libraries
35648 # to runtime path list.
35649 inherit_rpath=$inherit_rpath
35651 # Whether libtool must link a program against all its dependency libraries.
35652 link_all_deplibs=$link_all_deplibs
35654 # Fix the shell variable \$srcfile for the compiler.
35655 fix_srcfile_path=$lt_fix_srcfile_path
35657 # Set to "yes" if exported symbols are required.
35658 always_export_symbols=$always_export_symbols
35660 # The commands to list exported symbols.
35661 export_symbols_cmds=$lt_export_symbols_cmds
35663 # Symbols that should not be listed in the preloaded symbols.
35664 exclude_expsyms=$lt_exclude_expsyms
35666 # Symbols that must always be exported.
35667 include_expsyms=$lt_include_expsyms
35669 # Commands necessary for linking programs (against libraries) with templates.
35670 prelink_cmds=$lt_prelink_cmds
35672 # Specify filename containing input files.
35673 file_list_spec=$lt_file_list_spec
35675 # How to hardcode a shared library path into an executable.
35676 hardcode_action=$hardcode_action
35678 # ### END LIBTOOL CONFIG
35680 _LT_EOF
35682 case $host_os in
35683 aix3*)
35684 cat <<\_LT_EOF >> "$cfgfile"
35685 # AIX sometimes has problems with the GCC collect2 program. For some
35686 # reason, if we set the COLLECT_NAMES environment variable, the problems
35687 # vanish in a puff of smoke.
35688 if test "X${COLLECT_NAMES+set}" != Xset; then
35689 COLLECT_NAMES=
35690 export COLLECT_NAMES
35691 fi
35692 _LT_EOF
35693 ;;
35694 esac
35697 ltmain="$ac_aux_dir/ltmain.sh"
35700 # We use sed instead of cat because bash on DJGPP gets confused if
35701 # if finds mixed CR/LF and LF-only lines. Since sed operates in
35702 # text mode, it properly converts lines to CR/LF. This bash problem
35703 # is reportedly fixed, but why not run on old versions too?
35704 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
35705 || (rm -f "$cfgfile"; exit 1)
35707 case $xsi_shell in
35708 yes)
35709 cat << \_LT_EOF >> "$cfgfile"
35711 # func_dirname file append nondir_replacement
35712 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
35713 # otherwise set result to NONDIR_REPLACEMENT.
35714 func_dirname ()
35715 {
35716 case ${1} in
35717 */*) func_dirname_result="${1%/*}${2}" ;;
35718 * ) func_dirname_result="${3}" ;;
35719 esac
35720 }
35722 # func_basename file
35723 func_basename ()
35724 {
35725 func_basename_result="${1##*/}"
35726 }
35728 # func_dirname_and_basename file append nondir_replacement
35729 # perform func_basename and func_dirname in a single function
35730 # call:
35731 # dirname: Compute the dirname of FILE. If nonempty,
35732 # add APPEND to the result, otherwise set result
35733 # to NONDIR_REPLACEMENT.
35734 # value returned in "$func_dirname_result"
35735 # basename: Compute filename of FILE.
35736 # value retuned in "$func_basename_result"
35737 # Implementation must be kept synchronized with func_dirname
35738 # and func_basename. For efficiency, we do not delegate to
35739 # those functions but instead duplicate the functionality here.
35740 func_dirname_and_basename ()
35741 {
35742 case ${1} in
35743 */*) func_dirname_result="${1%/*}${2}" ;;
35744 * ) func_dirname_result="${3}" ;;
35745 esac
35746 func_basename_result="${1##*/}"
35747 }
35749 # func_stripname prefix suffix name
35750 # strip PREFIX and SUFFIX off of NAME.
35751 # PREFIX and SUFFIX must not contain globbing or regex special
35752 # characters, hashes, percent signs, but SUFFIX may contain a leading
35753 # dot (in which case that matches only a dot).
35754 func_stripname ()
35755 {
35756 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
35757 # positional parameters, so assign one to ordinary parameter first.
35758 func_stripname_result=${3}
35759 func_stripname_result=${func_stripname_result#"${1}"}
35760 func_stripname_result=${func_stripname_result%"${2}"}
35761 }
35763 # func_opt_split
35764 func_opt_split ()
35765 {
35766 func_opt_split_opt=${1%%=*}
35767 func_opt_split_arg=${1#*=}
35768 }
35770 # func_lo2o object
35771 func_lo2o ()
35772 {
35773 case ${1} in
35774 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
35775 *) func_lo2o_result=${1} ;;
35776 esac
35777 }
35779 # func_xform libobj-or-source
35780 func_xform ()
35781 {
35782 func_xform_result=${1%.*}.lo
35783 }
35785 # func_arith arithmetic-term...
35786 func_arith ()
35787 {
35788 func_arith_result=$(( $* ))
35789 }
35791 # func_len string
35792 # STRING may not start with a hyphen.
35793 func_len ()
35794 {
35795 func_len_result=${#1}
35796 }
35798 _LT_EOF
35799 ;;
35800 *) # Bourne compatible functions.
35801 cat << \_LT_EOF >> "$cfgfile"
35803 # func_dirname file append nondir_replacement
35804 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
35805 # otherwise set result to NONDIR_REPLACEMENT.
35806 func_dirname ()
35807 {
35808 # Extract subdirectory from the argument.
35809 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
35810 if test "X$func_dirname_result" = "X${1}"; then
35811 func_dirname_result="${3}"
35812 else
35813 func_dirname_result="$func_dirname_result${2}"
35814 fi
35815 }
35817 # func_basename file
35818 func_basename ()
35819 {
35820 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
35821 }
35824 # func_stripname prefix suffix name
35825 # strip PREFIX and SUFFIX off of NAME.
35826 # PREFIX and SUFFIX must not contain globbing or regex special
35827 # characters, hashes, percent signs, but SUFFIX may contain a leading
35828 # dot (in which case that matches only a dot).
35829 # func_strip_suffix prefix name
35830 func_stripname ()
35831 {
35832 case ${2} in
35833 .*) func_stripname_result=`$ECHO "X${3}" \
35834 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
35835 *) func_stripname_result=`$ECHO "X${3}" \
35836 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
35837 esac
35838 }
35840 # sed scripts:
35841 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
35842 my_sed_long_arg='1s/^-[^=]*=//'
35844 # func_opt_split
35845 func_opt_split ()
35846 {
35847 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
35848 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
35849 }
35851 # func_lo2o object
35852 func_lo2o ()
35853 {
35854 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
35855 }
35857 # func_xform libobj-or-source
35858 func_xform ()
35859 {
35860 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
35861 }
35863 # func_arith arithmetic-term...
35864 func_arith ()
35865 {
35866 func_arith_result=`expr "$@"`
35867 }
35869 # func_len string
35870 # STRING may not start with a hyphen.
35871 func_len ()
35872 {
35873 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
35874 }
35876 _LT_EOF
35877 esac
35879 case $lt_shell_append in
35880 yes)
35881 cat << \_LT_EOF >> "$cfgfile"
35883 # func_append var value
35884 # Append VALUE to the end of shell variable VAR.
35885 func_append ()
35886 {
35887 eval "$1+=\$2"
35888 }
35889 _LT_EOF
35890 ;;
35891 *)
35892 cat << \_LT_EOF >> "$cfgfile"
35894 # func_append var value
35895 # Append VALUE to the end of shell variable VAR.
35896 func_append ()
35897 {
35898 eval "$1=\$$1\$2"
35899 }
35901 _LT_EOF
35902 ;;
35903 esac
35906 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
35907 || (rm -f "$cfgfile"; exit 1)
35909 mv -f "$cfgfile" "$ofile" ||
35910 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
35911 chmod +x "$ofile"
35913 ;;
35914 "default-1":C)
35915 for ac_file in $CONFIG_FILES; do
35916 # Support "outfile[:infile[:infile...]]"
35917 case "$ac_file" in
35918 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
35919 esac
35920 # PO directories have a Makefile.in generated from Makefile.in.in.
35921 case "$ac_file" in */Makefile.in)
35922 # Adjust a relative srcdir.
35923 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
35924 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
35925 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
35926 # In autoconf-2.13 it is called $ac_given_srcdir.
35927 # In autoconf-2.50 it is called $srcdir.
35928 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
35929 case "$ac_given_srcdir" in
35930 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
35931 /*) top_srcdir="$ac_given_srcdir" ;;
35932 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
35933 esac
35934 # Treat a directory as a PO directory if and only if it has a
35935 # POTFILES.in file. This allows packages to have multiple PO
35936 # directories under different names or in different locations.
35937 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
35938 rm -f "$ac_dir/POTFILES"
35939 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
35940 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
35941 POMAKEFILEDEPS="POTFILES.in"
35942 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
35943 # on $ac_dir but don't depend on user-specified configuration
35944 # parameters.
35945 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
35946 # The LINGUAS file contains the set of available languages.
35947 if test -n "$OBSOLETE_ALL_LINGUAS"; then
35948 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
35949 fi
35950 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
35951 # Hide the ALL_LINGUAS assigment from automake.
35952 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
35953 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
35954 else
35955 # The set of available languages was given in configure.in.
35956 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
35957 fi
35958 # Compute POFILES
35959 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
35960 # Compute UPDATEPOFILES
35961 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
35962 # Compute DUMMYPOFILES
35963 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
35964 # Compute GMOFILES
35965 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
35966 case "$ac_given_srcdir" in
35967 .) srcdirpre= ;;
35968 *) srcdirpre='$(srcdir)/' ;;
35969 esac
35970 POFILES=
35971 UPDATEPOFILES=
35972 DUMMYPOFILES=
35973 GMOFILES=
35974 for lang in $ALL_LINGUAS; do
35975 POFILES="$POFILES $srcdirpre$lang.po"
35976 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
35977 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
35978 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
35979 done
35980 # CATALOGS depends on both $ac_dir and the user's LINGUAS
35981 # environment variable.
35982 INST_LINGUAS=
35983 if test -n "$ALL_LINGUAS"; then
35984 for presentlang in $ALL_LINGUAS; do
35985 useit=no
35986 if test "%UNSET%" != "$LINGUAS"; then
35987 desiredlanguages="$LINGUAS"
35988 else
35989 desiredlanguages="$ALL_LINGUAS"
35990 fi
35991 for desiredlang in $desiredlanguages; do
35992 # Use the presentlang catalog if desiredlang is
35993 # a. equal to presentlang, or
35994 # b. a variant of presentlang (because in this case,
35995 # presentlang can be used as a fallback for messages
35996 # which are not translated in the desiredlang catalog).
35997 case "$desiredlang" in
35998 "$presentlang"*) useit=yes;;
35999 esac
36000 done
36001 if test $useit = yes; then
36002 INST_LINGUAS="$INST_LINGUAS $presentlang"
36003 fi
36004 done
36005 fi
36006 CATALOGS=
36007 if test -n "$INST_LINGUAS"; then
36008 for lang in $INST_LINGUAS; do
36009 CATALOGS="$CATALOGS $lang.gmo"
36010 done
36011 fi
36012 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
36013 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
36014 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
36015 if test -f "$f"; then
36016 case "$f" in
36017 *.orig | *.bak | *~) ;;
36018 *) cat "$f" >> "$ac_dir/Makefile" ;;
36019 esac
36020 fi
36021 done
36022 fi
36023 ;;
36024 esac
36025 done ;;
36026 "default":C) chmod +x examples/*.pl ;;
36028 esac
36029 done # for ac_tag
36032 { (exit 0); exit 0; }
36033 _ACEOF
36034 chmod +x $CONFIG_STATUS
36035 ac_clean_files=$ac_clean_files_save
36037 test $ac_write_fail = 0 ||
36038 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
36039 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
36040 { (exit 1); exit 1; }; }
36042 test -f config.h || ln -s rrd_config.h config.h
36044 # configure is writing to config.log, and then calls config.status.
36045 # config.status does its own redirection, appending to config.log.
36046 # Unfortunately, on DOS this fails, as config.log is still kept open
36047 # by configure, so config.status won't be able to write to it; its
36048 # output is simply discarded. So we exec the FD to /dev/null,
36049 # effectively closing config.log, so it can be properly (re)opened and
36050 # appended to by config.status. When coming back to configure, we
36051 # need to make the FD available again.
36052 if test "$no_create" != yes; then
36053 ac_cs_success=:
36054 ac_config_status_args=
36055 test "$silent" = yes &&
36056 ac_config_status_args="$ac_config_status_args --quiet"
36057 exec 5>/dev/null
36058 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
36059 exec 5>>config.log
36060 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
36061 # would make configure fail if this is the last instruction.
36062 $ac_cs_success || { (exit 1); exit 1; }
36063 fi
36064 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
36065 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
36066 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
36067 fi
36070 { $as_echo "$as_me:$LINENO: checking in" >&5
36071 $as_echo_n "checking in... " >&6; }
36072 { $as_echo "$as_me:$LINENO: result: and out again" >&5
36073 $as_echo "and out again" >&6; }
36075 echo $ECHO_N "ordering CD from http://tobi.oetiker.ch/wish $ECHO_C" 1>&6
36076 sleep 1
36077 echo $ECHO_N ".$ECHO_C" 1>&6
36078 sleep 1
36079 echo $ECHO_N ".$ECHO_C" 1>&6
36080 sleep 1
36081 echo $ECHO_N ".$ECHO_C" 1>&6
36082 sleep 1
36083 echo $ECHO_N ".$ECHO_C" 1>&6
36084 sleep 1
36085 { $as_echo "$as_me:$LINENO: result: just kidding ;-)" >&5
36086 $as_echo " just kidding ;-)" >&6; }
36087 echo
36088 echo "----------------------------------------------------------------"
36089 echo "Config is DONE!"
36090 echo
36091 echo " With MMAP IO: $enable_mmap"
36092 echo " Build rrd_getopt: $build_getopt"
36093 echo " Static programs: $staticprogs"
36094 echo " Perl Modules: $COMP_PERL"
36095 echo " Perl Binary: $PERL"
36096 echo " Perl Version: $PERL_VERSION"
36097 echo " Perl Options: $PERL_MAKE_OPTIONS"
36098 echo " Ruby Modules: $COMP_RUBY"
36099 echo " Ruby Binary: $RUBY"
36100 echo " Ruby Options: $RUBY_MAKE_OPTIONS"
36101 echo " Build Lua Bindings: $enable_lua"
36102 if test "$enable_lua" = "yes"; then
36103 echo " Lua Binary: $LUA"
36104 echo " Lua Version: $lua_version"
36105 echo " Lua C-modules dir: $LUA_INSTALL_CMOD"
36106 if test "$lua_need_compat51" = "1"; then
36107 echo " Lua Lua-modules dir: $LUA_INSTALL_LMOD"
36108 fi
36109 fi
36110 echo " Build Tcl Bindings: $enable_tcl"
36111 echo " Build Python Bindings: $enable_python"
36112 echo " Build rrdcgi: $enable_rrdcgi"
36113 echo " Build librrd MT: $enable_pthread"
36114 echo " Use gettext: $USE_NLS"
36115 echo " With libDBI: $have_libdbi"
36116 echo
36117 echo " Libraries: $ALL_LIBS"
36118 echo
36119 echo "Type 'make' to compile the software and use 'make install' to "
36120 echo "install everything to: $prefix."
36121 echo
36122 echo " ... that wishlist is NO JOKE. If you find RRDtool useful"
36123 echo "make me happy. Go to http://tobi.oetiker.ch/wish and"
36124 echo "place an order."
36125 echo
36126 echo " -- Tobi Oetiker <tobi@oetiker.ch>"
36127 echo "----------------------------------------------------------------"