Code

control: Updated standards-version to 3.9.2.
[pkg-rrdtool.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for rrdtool 1.4.3.
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)
184 as_func_success () {
185   as_func_return 0
187 as_func_failure () {
188   as_func_return 1
190 as_func_ret_success () {
191   return 0
193 as_func_ret_failure () {
194   return 1
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; }
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
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
296 (as_func_return () {
297   (exit $1)
299 as_func_success () {
300   as_func_return 0
302 as_func_failure () {
303   as_func_return 1
305 as_func_ret_success () {
306   return 0
308 as_func_ret_failure () {
309   return 1
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; }
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)
388 as_func_success () {
389   as_func_return 0
391 as_func_failure () {
392   as_func_return 1
394 as_func_ret_success () {
395   return 0
397 as_func_ret_failure () {
398   return 1
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.
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
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`
731 # Initializations.
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.3'
747 PACKAGE_STRING='rrdtool 1.4.3'
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 gt_needs=
788 ac_subst_vars='am__EXEEXT_FALSE
789 am__EXEEXT_TRUE
790 LTLIBOBJS
791 LIBOBJS
792 RRDDOCDIR
793 TROFF
794 NROFF
795 COMP_PYTHON
796 PYTHON_INCLUDES
797 pkgpyexecdir
798 pyexecdir
799 pkgpythondir
800 pythondir
801 PYTHON_PLATFORM
802 PYTHON_EXEC_PREFIX
803 PYTHON_PREFIX
804 PYTHON_VERSION
805 PYTHON
806 TCL_INCLUDE_SPEC
807 TCL_PACKAGE_DIR
808 TCL_VERSION
809 TCL_STUB_LIB_SPEC
810 TCL_LD_SEARCH_FLAGS
811 TCL_PACKAGE_PATH
812 TCL_SHLIB_SUFFIX
813 TCL_SHLIB_LD
814 TCL_SHLIB_CFLAGS
815 TCL_PREFIX
816 BUILD_TCL_SITE_FALSE
817 BUILD_TCL_SITE_TRUE
818 BUILD_TCL_FALSE
819 BUILD_TCL_TRUE
820 BUILD_LUA_FALSE
821 BUILD_LUA_TRUE
822 LUA50_FALSE
823 LUA50_TRUE
824 LUA_SITE_LINSTALL_FALSE
825 LUA_SITE_LINSTALL_TRUE
826 LUA_SITE_CINSTALL_FALSE
827 LUA_SITE_CINSTALL_TRUE
828 LUA_NEED_OUR_COMPAT51_FALSE
829 LUA_NEED_OUR_COMPAT51_TRUE
830 LUA_DEFINES
831 LUA_LFLAGS
832 LUA_CFLAGS
833 LUA_INSTALL_LMOD
834 LUA_INSTALL_CMOD
835 COMP_LUA
836 LUA
837 COMP_RUBY
838 RUBY_MAKE_OPTIONS
839 RUBY
840 PERL_VERSION
841 COMP_PERL
842 PERL_MAKE_OPTIONS
843 PERL_CC
844 PERLLDFLAGS
845 PERLLD
846 PERLCCFLAGS
847 PERLCC
848 POD2HTML
849 POD2MAN
850 PERL
851 ALL_LIBS
852 CORE_LIBS
853 PKGCONFIG
854 BUILD_RRDCGI_FALSE
855 BUILD_RRDCGI_TRUE
856 BUILD_LIBDBI_FALSE
857 BUILD_LIBDBI_TRUE
858 BUILD_MULTITHREAD_FALSE
859 BUILD_MULTITHREAD_TRUE
860 PTHREAD_CFLAGS
861 PTHREAD_LIBS
862 PTHREAD_CC
863 acx_pthread_config
864 MULTITHREAD_LDFLAGS
865 MULTITHREAD_CFLAGS
866 BUILD_GETOPT_FALSE
867 BUILD_GETOPT_TRUE
868 RRD_GETOPT_LONG
869 POSUB
870 LTLIBINTL
871 LIBINTL
872 INTLLIBS
873 INTL_LIBTOOL_SUFFIX_PREFIX
874 INTLOBJS
875 GENCAT
876 INSTOBJEXT
877 DATADIRNAME
878 CATOBJEXT
879 USE_INCLUDED_LIBINTL
880 BUILD_INCLUDED_LIBINTL
881 LTLIBC
882 WINDRES
883 WOE32
884 WOE32DLL
885 HAVE_WPRINTF
886 HAVE_SNPRINTF
887 HAVE_ASPRINTF
888 HAVE_POSIX_PRINTF
889 INTL_MACOSX_LIBS
890 GLIBC21
891 INTLBISON
892 LTLIBICONV
893 LIBICONV
894 LTLIBMULTITHREAD
895 LIBMULTITHREAD
896 LTLIBTHREAD
897 LIBTHREAD
898 LIBPTH_PREFIX
899 LTLIBPTH
900 LIBPTH
901 PRI_MACROS_BROKEN
902 ALLOCA
903 HAVE_VISIBILITY
904 CFLAG_VISIBILITY
905 GLIBC2
906 XGETTEXT_EXTRA_OPTIONS
907 MSGMERGE
908 XGETTEXT_015
909 XGETTEXT
910 GMSGFMT_015
911 MSGFMT_015
912 GMSGFMT
913 MSGFMT
914 GETTEXT_MACRO_VERSION
915 USE_NLS
916 RRD_DEFAULT_FONT
917 WERROR
918 OTOOL64
919 OTOOL
920 LIPO
921 NMEDIT
922 DSYMUTIL
923 lt_ECHO
924 RANLIB
925 AR
926 OBJDUMP
927 LN_S
928 NM
929 ac_ct_DUMPBIN
930 DUMPBIN
931 LD
932 FGREP
933 SED
934 LIBTOOL
935 STATIC_PROGRAMS_FALSE
936 STATIC_PROGRAMS_TRUE
937 RRDGRAPH_YLEGEND_ANGLE
938 AM_BACKSLASH
939 AM_DEFAULT_VERBOSITY
940 MAINT
941 MAINTAINER_MODE_FALSE
942 MAINTAINER_MODE_TRUE
943 am__fastdepCC_FALSE
944 am__fastdepCC_TRUE
945 CCDEPMODE
946 AMDEPBACKSLASH
947 AMDEP_FALSE
948 AMDEP_TRUE
949 am__quote
950 am__include
951 DEPDIR
952 am__untar
953 am__tar
954 AMTAR
955 am__leading_dot
956 SET_MAKE
957 AWK
958 mkdir_p
959 MKDIR_P
960 INSTALL_STRIP_PROGRAM
961 STRIP
962 install_sh
963 MAKEINFO
964 AUTOHEADER
965 AUTOMAKE
966 AUTOCONF
967 ACLOCAL
968 VERSION
969 PACKAGE
970 CYGPATH_W
971 am__isrc
972 INSTALL_DATA
973 INSTALL_SCRIPT
974 INSTALL_PROGRAM
975 EGREP
976 GREP
977 CPP
978 OBJEXT
979 EXEEXT
980 ac_ct_CC
981 CPPFLAGS
982 LDFLAGS
983 CFLAGS
984 CC
985 target_os
986 target_vendor
987 target_cpu
988 target
989 host_os
990 host_vendor
991 host_cpu
992 host
993 build_os
994 build_vendor
995 build_cpu
996 build
997 LIBVERS
998 NUMVERS
999 target_alias
1000 host_alias
1001 build_alias
1002 LIBS
1003 ECHO_T
1004 ECHO_N
1005 ECHO_C
1006 DEFS
1007 mandir
1008 localedir
1009 libdir
1010 psdir
1011 pdfdir
1012 dvidir
1013 htmldir
1014 infodir
1015 docdir
1016 oldincludedir
1017 includedir
1018 localstatedir
1019 sharedstatedir
1020 sysconfdir
1021 datadir
1022 datarootdir
1023 libexecdir
1024 sbindir
1025 bindir
1026 program_transform_name
1027 prefix
1028 exec_prefix
1029 PACKAGE_BUGREPORT
1030 PACKAGE_STRING
1031 PACKAGE_VERSION
1032 PACKAGE_TARNAME
1033 PACKAGE_NAME
1034 PATH_SEPARATOR
1035 SHELL
1036 PERLFLAGS'
1037 ac_subst_files=''
1038 ac_user_opts='
1039 enable_option_checking
1040 enable_dependency_tracking
1041 enable_maintainer_mode
1042 enable_silent_rules
1043 enable_rrdcgi
1044 with_rrd_default_font
1045 enable_mmap
1046 enable_pthread
1047 enable_static_programs
1048 enable_shared
1049 enable_static
1050 with_pic
1051 enable_fast_install
1052 with_gnu_ld
1053 enable_libtool_lock
1054 enable_nls
1055 enable_threads
1056 enable_rpath
1057 with_libpth_prefix
1058 with_libiconv_prefix
1059 with_included_gettext
1060 with_libintl_prefix
1061 enable_libdbi
1062 enable_perl
1063 enable_perl_site_install
1064 with_perl_options
1065 enable_ruby
1066 enable_ruby_site_install
1067 with_ruby_options
1068 enable_lua
1069 enable_lua_site_install
1070 enable_tcl
1071 with_tcllib
1072 enable_python
1074       ac_precious_vars='build_alias
1075 host_alias
1076 target_alias
1077 CC
1078 CFLAGS
1079 LDFLAGS
1080 LIBS
1081 CPPFLAGS
1082 CPP
1083 RRDGRAPH_YLEGEND_ANGLE
1084 PERLCC
1085 PERLCCFLAGS
1086 PERLLD
1087 PERLLDFLAGS
1088 RRDDOCDIR'
1091 # Initialize some variables set by options.
1092 ac_init_help=
1093 ac_init_version=false
1094 ac_unrecognized_opts=
1095 ac_unrecognized_sep=
1096 # The variables have the same names as the options, with
1097 # dashes changed to underlines.
1098 cache_file=/dev/null
1099 exec_prefix=NONE
1100 no_create=
1101 no_recursion=
1102 prefix=NONE
1103 program_prefix=NONE
1104 program_suffix=NONE
1105 program_transform_name=s,x,x,
1106 silent=
1107 site=
1108 srcdir=
1109 verbose=
1110 x_includes=NONE
1111 x_libraries=NONE
1113 # Installation directory options.
1114 # These are left unexpanded so users can "make install exec_prefix=/foo"
1115 # and all the variables that are supposed to be based on exec_prefix
1116 # by default will actually change.
1117 # Use braces instead of parens because sh, perl, etc. also accept them.
1118 # (The list follows the same order as the GNU Coding Standards.)
1119 bindir='${exec_prefix}/bin'
1120 sbindir='${exec_prefix}/sbin'
1121 libexecdir='${exec_prefix}/libexec'
1122 datarootdir='${prefix}/share'
1123 datadir='${datarootdir}'
1124 sysconfdir='${prefix}/etc'
1125 sharedstatedir='${prefix}/com'
1126 localstatedir='${prefix}/var'
1127 includedir='${prefix}/include'
1128 oldincludedir='/usr/include'
1129 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1130 infodir='${datarootdir}/info'
1131 htmldir='${docdir}'
1132 dvidir='${docdir}'
1133 pdfdir='${docdir}'
1134 psdir='${docdir}'
1135 libdir='${exec_prefix}/lib'
1136 localedir='${datarootdir}/locale'
1137 mandir='${datarootdir}/man'
1139 ac_prev=
1140 ac_dashdash=
1141 for ac_option
1142 do
1143   # If the previous option needs an argument, assign it.
1144   if test -n "$ac_prev"; then
1145     eval $ac_prev=\$ac_option
1146     ac_prev=
1147     continue
1148   fi
1150   case $ac_option in
1151   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1152   *)    ac_optarg=yes ;;
1153   esac
1155   # Accept the important Cygnus configure options, so we can diagnose typos.
1157   case $ac_dashdash$ac_option in
1158   --)
1159     ac_dashdash=yes ;;
1161   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1162     ac_prev=bindir ;;
1163   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1164     bindir=$ac_optarg ;;
1166   -build | --build | --buil | --bui | --bu)
1167     ac_prev=build_alias ;;
1168   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1169     build_alias=$ac_optarg ;;
1171   -cache-file | --cache-file | --cache-fil | --cache-fi \
1172   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1173     ac_prev=cache_file ;;
1174   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1175   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1176     cache_file=$ac_optarg ;;
1178   --config-cache | -C)
1179     cache_file=config.cache ;;
1181   -datadir | --datadir | --datadi | --datad)
1182     ac_prev=datadir ;;
1183   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1184     datadir=$ac_optarg ;;
1186   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1187   | --dataroo | --dataro | --datar)
1188     ac_prev=datarootdir ;;
1189   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1190   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1191     datarootdir=$ac_optarg ;;
1193   -disable-* | --disable-*)
1194     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1195     # Reject names that are not valid shell variable names.
1196     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1197       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1198    { (exit 1); exit 1; }; }
1199     ac_useropt_orig=$ac_useropt
1200     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1201     case $ac_user_opts in
1202       *"
1203 "enable_$ac_useropt"
1204 "*) ;;
1205       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1206          ac_unrecognized_sep=', ';;
1207     esac
1208     eval enable_$ac_useropt=no ;;
1210   -docdir | --docdir | --docdi | --doc | --do)
1211     ac_prev=docdir ;;
1212   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1213     docdir=$ac_optarg ;;
1215   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1216     ac_prev=dvidir ;;
1217   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1218     dvidir=$ac_optarg ;;
1220   -enable-* | --enable-*)
1221     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1222     # Reject names that are not valid shell variable names.
1223     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1224       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1225    { (exit 1); exit 1; }; }
1226     ac_useropt_orig=$ac_useropt
1227     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1228     case $ac_user_opts in
1229       *"
1230 "enable_$ac_useropt"
1231 "*) ;;
1232       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1233          ac_unrecognized_sep=', ';;
1234     esac
1235     eval enable_$ac_useropt=\$ac_optarg ;;
1237   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1238   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1239   | --exec | --exe | --ex)
1240     ac_prev=exec_prefix ;;
1241   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1242   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1243   | --exec=* | --exe=* | --ex=*)
1244     exec_prefix=$ac_optarg ;;
1246   -gas | --gas | --ga | --g)
1247     # Obsolete; use --with-gas.
1248     with_gas=yes ;;
1250   -help | --help | --hel | --he | -h)
1251     ac_init_help=long ;;
1252   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1253     ac_init_help=recursive ;;
1254   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1255     ac_init_help=short ;;
1257   -host | --host | --hos | --ho)
1258     ac_prev=host_alias ;;
1259   -host=* | --host=* | --hos=* | --ho=*)
1260     host_alias=$ac_optarg ;;
1262   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1263     ac_prev=htmldir ;;
1264   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1265   | --ht=*)
1266     htmldir=$ac_optarg ;;
1268   -includedir | --includedir | --includedi | --included | --include \
1269   | --includ | --inclu | --incl | --inc)
1270     ac_prev=includedir ;;
1271   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1272   | --includ=* | --inclu=* | --incl=* | --inc=*)
1273     includedir=$ac_optarg ;;
1275   -infodir | --infodir | --infodi | --infod | --info | --inf)
1276     ac_prev=infodir ;;
1277   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1278     infodir=$ac_optarg ;;
1280   -libdir | --libdir | --libdi | --libd)
1281     ac_prev=libdir ;;
1282   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1283     libdir=$ac_optarg ;;
1285   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1286   | --libexe | --libex | --libe)
1287     ac_prev=libexecdir ;;
1288   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1289   | --libexe=* | --libex=* | --libe=*)
1290     libexecdir=$ac_optarg ;;
1292   -localedir | --localedir | --localedi | --localed | --locale)
1293     ac_prev=localedir ;;
1294   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1295     localedir=$ac_optarg ;;
1297   -localstatedir | --localstatedir | --localstatedi | --localstated \
1298   | --localstate | --localstat | --localsta | --localst | --locals)
1299     ac_prev=localstatedir ;;
1300   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1301   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1302     localstatedir=$ac_optarg ;;
1304   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1305     ac_prev=mandir ;;
1306   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1307     mandir=$ac_optarg ;;
1309   -nfp | --nfp | --nf)
1310     # Obsolete; use --without-fp.
1311     with_fp=no ;;
1313   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1314   | --no-cr | --no-c | -n)
1315     no_create=yes ;;
1317   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1318   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1319     no_recursion=yes ;;
1321   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1322   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1323   | --oldin | --oldi | --old | --ol | --o)
1324     ac_prev=oldincludedir ;;
1325   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1326   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1327   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1328     oldincludedir=$ac_optarg ;;
1330   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1331     ac_prev=prefix ;;
1332   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1333     prefix=$ac_optarg ;;
1335   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1336   | --program-pre | --program-pr | --program-p)
1337     ac_prev=program_prefix ;;
1338   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1339   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1340     program_prefix=$ac_optarg ;;
1342   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1343   | --program-suf | --program-su | --program-s)
1344     ac_prev=program_suffix ;;
1345   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1346   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1347     program_suffix=$ac_optarg ;;
1349   -program-transform-name | --program-transform-name \
1350   | --program-transform-nam | --program-transform-na \
1351   | --program-transform-n | --program-transform- \
1352   | --program-transform | --program-transfor \
1353   | --program-transfo | --program-transf \
1354   | --program-trans | --program-tran \
1355   | --progr-tra | --program-tr | --program-t)
1356     ac_prev=program_transform_name ;;
1357   -program-transform-name=* | --program-transform-name=* \
1358   | --program-transform-nam=* | --program-transform-na=* \
1359   | --program-transform-n=* | --program-transform-=* \
1360   | --program-transform=* | --program-transfor=* \
1361   | --program-transfo=* | --program-transf=* \
1362   | --program-trans=* | --program-tran=* \
1363   | --progr-tra=* | --program-tr=* | --program-t=*)
1364     program_transform_name=$ac_optarg ;;
1366   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1367     ac_prev=pdfdir ;;
1368   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1369     pdfdir=$ac_optarg ;;
1371   -psdir | --psdir | --psdi | --psd | --ps)
1372     ac_prev=psdir ;;
1373   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1374     psdir=$ac_optarg ;;
1376   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1377   | -silent | --silent | --silen | --sile | --sil)
1378     silent=yes ;;
1380   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1381     ac_prev=sbindir ;;
1382   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1383   | --sbi=* | --sb=*)
1384     sbindir=$ac_optarg ;;
1386   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1387   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1388   | --sharedst | --shareds | --shared | --share | --shar \
1389   | --sha | --sh)
1390     ac_prev=sharedstatedir ;;
1391   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1392   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1393   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1394   | --sha=* | --sh=*)
1395     sharedstatedir=$ac_optarg ;;
1397   -site | --site | --sit)
1398     ac_prev=site ;;
1399   -site=* | --site=* | --sit=*)
1400     site=$ac_optarg ;;
1402   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1403     ac_prev=srcdir ;;
1404   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1405     srcdir=$ac_optarg ;;
1407   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1408   | --syscon | --sysco | --sysc | --sys | --sy)
1409     ac_prev=sysconfdir ;;
1410   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1411   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1412     sysconfdir=$ac_optarg ;;
1414   -target | --target | --targe | --targ | --tar | --ta | --t)
1415     ac_prev=target_alias ;;
1416   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1417     target_alias=$ac_optarg ;;
1419   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1420     verbose=yes ;;
1422   -version | --version | --versio | --versi | --vers | -V)
1423     ac_init_version=: ;;
1425   -with-* | --with-*)
1426     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1427     # Reject names that are not valid shell variable names.
1428     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1429       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1430    { (exit 1); exit 1; }; }
1431     ac_useropt_orig=$ac_useropt
1432     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1433     case $ac_user_opts in
1434       *"
1435 "with_$ac_useropt"
1436 "*) ;;
1437       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1438          ac_unrecognized_sep=', ';;
1439     esac
1440     eval with_$ac_useropt=\$ac_optarg ;;
1442   -without-* | --without-*)
1443     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1444     # Reject names that are not valid shell variable names.
1445     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1446       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1447    { (exit 1); exit 1; }; }
1448     ac_useropt_orig=$ac_useropt
1449     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1450     case $ac_user_opts in
1451       *"
1452 "with_$ac_useropt"
1453 "*) ;;
1454       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1455          ac_unrecognized_sep=', ';;
1456     esac
1457     eval with_$ac_useropt=no ;;
1459   --x)
1460     # Obsolete; use --with-x.
1461     with_x=yes ;;
1463   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1464   | --x-incl | --x-inc | --x-in | --x-i)
1465     ac_prev=x_includes ;;
1466   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1467   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1468     x_includes=$ac_optarg ;;
1470   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1471   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1472     ac_prev=x_libraries ;;
1473   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1474   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1475     x_libraries=$ac_optarg ;;
1477   -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1478 Try \`$0 --help' for more information." >&2
1479    { (exit 1); exit 1; }; }
1480     ;;
1482   *=*)
1483     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1484     # Reject names that are not valid shell variable names.
1485     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1486       { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1487    { (exit 1); exit 1; }; }
1488     eval $ac_envvar=\$ac_optarg
1489     export $ac_envvar ;;
1491   *)
1492     # FIXME: should be removed in autoconf 3.0.
1493     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1494     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1495       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1496     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1497     ;;
1499   esac
1500 done
1502 if test -n "$ac_prev"; then
1503   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1504   { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1505    { (exit 1); exit 1; }; }
1506 fi
1508 if test -n "$ac_unrecognized_opts"; then
1509   case $enable_option_checking in
1510     no) ;;
1511     fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1512    { (exit 1); exit 1; }; } ;;
1513     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1514   esac
1515 fi
1517 # Check all directory arguments for consistency.
1518 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1519                 datadir sysconfdir sharedstatedir localstatedir includedir \
1520                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1521                 libdir localedir mandir
1522 do
1523   eval ac_val=\$$ac_var
1524   # Remove trailing slashes.
1525   case $ac_val in
1526     */ )
1527       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1528       eval $ac_var=\$ac_val;;
1529   esac
1530   # Be sure to have absolute directory names.
1531   case $ac_val in
1532     [\\/$]* | ?:[\\/]* )  continue;;
1533     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1534   esac
1535   { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1536    { (exit 1); exit 1; }; }
1537 done
1539 # There might be people who depend on the old broken behavior: `$host'
1540 # used to hold the argument of --host etc.
1541 # FIXME: To remove some day.
1542 build=$build_alias
1543 host=$host_alias
1544 target=$target_alias
1546 # FIXME: To remove some day.
1547 if test "x$host_alias" != x; then
1548   if test "x$build_alias" = x; then
1549     cross_compiling=maybe
1550     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1551     If a cross compiler is detected then cross compile mode will be used." >&2
1552   elif test "x$build_alias" != "x$host_alias"; then
1553     cross_compiling=yes
1554   fi
1555 fi
1557 ac_tool_prefix=
1558 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1560 test "$silent" = yes && exec 6>/dev/null
1563 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1564 ac_ls_di=`ls -di .` &&
1565 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1566   { $as_echo "$as_me: error: working directory cannot be determined" >&2
1567    { (exit 1); exit 1; }; }
1568 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1569   { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1570    { (exit 1); exit 1; }; }
1573 # Find the source files, if location was not specified.
1574 if test -z "$srcdir"; then
1575   ac_srcdir_defaulted=yes
1576   # Try the directory containing this script, then the parent directory.
1577   ac_confdir=`$as_dirname -- "$as_myself" ||
1578 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1579          X"$as_myself" : 'X\(//\)[^/]' \| \
1580          X"$as_myself" : 'X\(//\)$' \| \
1581          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1582 $as_echo X"$as_myself" |
1583     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1584             s//\1/
1585             q
1586           }
1587           /^X\(\/\/\)[^/].*/{
1588             s//\1/
1589             q
1590           }
1591           /^X\(\/\/\)$/{
1592             s//\1/
1593             q
1594           }
1595           /^X\(\/\).*/{
1596             s//\1/
1597             q
1598           }
1599           s/.*/./; q'`
1600   srcdir=$ac_confdir
1601   if test ! -r "$srcdir/$ac_unique_file"; then
1602     srcdir=..
1603   fi
1604 else
1605   ac_srcdir_defaulted=no
1606 fi
1607 if test ! -r "$srcdir/$ac_unique_file"; then
1608   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1609   { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1610    { (exit 1); exit 1; }; }
1611 fi
1612 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1613 ac_abs_confdir=`(
1614         cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1615    { (exit 1); exit 1; }; }
1616         pwd)`
1617 # When building in place, set srcdir=.
1618 if test "$ac_abs_confdir" = "$ac_pwd"; then
1619   srcdir=.
1620 fi
1621 # Remove unnecessary trailing slashes from srcdir.
1622 # Double slashes in file names in object file debugging info
1623 # mess up M-x gdb in Emacs.
1624 case $srcdir in
1625 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1626 esac
1627 for ac_var in $ac_precious_vars; do
1628   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1629   eval ac_env_${ac_var}_value=\$${ac_var}
1630   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1631   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1632 done
1635 # Report the --help message.
1637 if test "$ac_init_help" = "long"; then
1638   # Omit some internal or obsolete options to make the list less imposing.
1639   # This message is too long to be a string in the A/UX 3.1 sh.
1640   cat <<_ACEOF
1641 \`configure' configures rrdtool 1.4.3 to adapt to many kinds of systems.
1643 Usage: $0 [OPTION]... [VAR=VALUE]...
1645 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1646 VAR=VALUE.  See below for descriptions of some of the useful variables.
1648 Defaults for the options are specified in brackets.
1650 Configuration:
1651   -h, --help              display this help and exit
1652       --help=short        display options specific to this package
1653       --help=recursive    display the short help of all the included packages
1654   -V, --version           display version information and exit
1655   -q, --quiet, --silent   do not print \`checking...' messages
1656       --cache-file=FILE   cache test results in FILE [disabled]
1657   -C, --config-cache      alias for \`--cache-file=config.cache'
1658   -n, --no-create         do not create output files
1659       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1661 Installation directories:
1662   --prefix=PREFIX         install architecture-independent files in PREFIX
1663                           [$ac_default_prefix]
1664   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1665                           [PREFIX]
1667 By default, \`make install' will install all the files in
1668 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1669 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1670 for instance \`--prefix=\$HOME'.
1672 For better control, use the options below.
1674 Fine tuning of the installation directories:
1675   --bindir=DIR            user executables [EPREFIX/bin]
1676   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1677   --libexecdir=DIR        program executables [EPREFIX/libexec]
1678   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1679   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1680   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1681   --libdir=DIR            object code libraries [EPREFIX/lib]
1682   --includedir=DIR        C header files [PREFIX/include]
1683   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1684   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1685   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1686   --infodir=DIR           info documentation [DATAROOTDIR/info]
1687   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1688   --mandir=DIR            man documentation [DATAROOTDIR/man]
1689   --docdir=DIR            documentation root [DATAROOTDIR/doc/rrdtool]
1690   --htmldir=DIR           html documentation [DOCDIR]
1691   --dvidir=DIR            dvi documentation [DOCDIR]
1692   --pdfdir=DIR            pdf documentation [DOCDIR]
1693   --psdir=DIR             ps documentation [DOCDIR]
1694 _ACEOF
1696   cat <<\_ACEOF
1698 Program names:
1699   --program-prefix=PREFIX            prepend PREFIX to installed program names
1700   --program-suffix=SUFFIX            append SUFFIX to installed program names
1701   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1703 System types:
1704   --build=BUILD     configure for building on BUILD [guessed]
1705   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1706   --target=TARGET   configure for building compilers for TARGET [HOST]
1707 _ACEOF
1708 fi
1710 if test -n "$ac_init_help"; then
1711   case $ac_init_help in
1712      short | recursive ) echo "Configuration of rrdtool 1.4.3:";;
1713    esac
1714   cat <<\_ACEOF
1716 Optional Features:
1717   --disable-option-checking  ignore unrecognized --enable/--with options
1718   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1719   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1720   --disable-dependency-tracking  speeds up one-time build
1721   --enable-dependency-tracking   do not reject slow dependency extractors
1722   --enable-maintainer-mode  enable make rules and dependencies not useful
1723                           (and sometimes confusing) to the casual installer
1724   --enable-silent-rules          less verbose build output (undo: `make V=1')
1725   --disable-silent-rules         verbose build output (undo: `make V=0')
1726   --disable-rrdcgi        disable building of rrdcgi
1727   --disable-mmap          disable mmap in rrd_update, use seek+write instead
1728   --disable-pthread       disable multithread support
1729   --enable-static-programs
1730                           Build static programs
1731   --enable-shared[=PKGS]  build shared libraries [default=yes]
1732   --enable-static[=PKGS]  build static libraries [default=yes]
1733   --enable-fast-install[=PKGS]
1734                           optimize for fast installation [default=yes]
1735   --disable-libtool-lock  avoid locking (might break parallel builds)
1736   --disable-nls           do not use Native Language Support
1737   --enable-threads={posix|solaris|pth|win32}
1738                           specify multithreading API
1739   --disable-threads       build without multithread safety
1740   --disable-rpath         do not hardcode runtime library paths
1741   --disable-libdbi        do not build in support for libdbi
1742   --disable-perl          do not build the perl modules
1743   --enable-perl-site-install
1744                           by default the rrdtool perl modules are installed
1745                           together with rrdtool in $prefix/lib/perl. You have
1746                           to put a 'use lib qw($prefix/lib/perl)' into your
1747                           scripts when you want to use them. When you set this
1748                           option the perl modules will get installed wherever
1749                           your perl setup thinks it is best.
1750   --disable-ruby          do not build the ruby modules
1751   --enable-ruby-site-install
1752                           by default the rrdtool ruby modules are installed
1753                           together with rrdtool in $prefix/lib/ruby. You have
1754                           to add $prefix/lib/ruby/$ruby_version/$sitearch to
1755                           your $: variable for ruby to find the RRD.so file.
1756   --disable-lua           do not build the lua modules
1757   --enable-lua-site-install
1758                           by default the lua module is installed together with
1759                           rrdtool in $prefix/lib/lua/$lua_version. You have to
1760                           add $prefix/lib/lua/$lua_version/?.so to
1761                           package.cpath for lua to find 'rrd.so'. For lua 5.0
1762                           you may also need to change LUA_PATH to the same
1763                           dir, to require 'compat-5.1'. When you set this
1764                           option the lua modules will get installed wherever
1765                           your Lua setup thinks it is best. WARNING: if you
1766                           set this option, system lua modules compat-5.1.lua
1767                           and rrd.so, if any, may be overwritten.
1768   --disable-tcl           do not build the tcl modules
1769   --enable-tcl-site       install the tcl extension in the tcl tree
1770   --disable-python        do not build the python modules
1772 Optional Packages:
1773   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1774   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1775   --with-rrd-default-font=OPTIONS  set the full path to your default font.
1776   --with-pic              try to use only PIC/non-PIC objects [default=use
1777                           both]
1778   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1779   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1780   --with-libpth-prefix[=DIR]  search for libpth in DIR/include and DIR/lib
1781   --without-libpth-prefix     don't search for libpth in includedir and libdir
1782   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1783   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1784   --with-included-gettext use the GNU gettext library included here
1785   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1786   --without-libintl-prefix     don't search for libintl in includedir and libdir
1787   --with-perl-options=OPTIONS  options to pass on command-line when
1788                           generating Makefile from Makefile.PL. If you set this
1789                           option, interesting things may happen unless you know
1790                           what you are doing!
1791   --with-ruby-options=OPTIONS  options to pass on command-line when
1792                           generating Makefile from extconf.rb. If you set this
1793                           option, interesting things may happen unless you know
1794                           what you are doing!
1795   --with-tcllib=DIR       location of the tclConfig.sh
1797 Some influential environment variables:
1798   CC          C compiler command
1799   CFLAGS      C compiler flags
1800   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1801               nonstandard directory <lib dir>
1802   LIBS        libraries to pass to the linker, e.g. -l<library>
1803   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1804               you have headers in a nonstandard directory <include dir>
1805   CPP         C preprocessor
1806   RRDGRAPH_YLEGEND_ANGLE
1807               Vertical label angle: -90.0 (default) or 90.0
1808   PERLCC      C compiler for Perl modules
1809   PERLCCFLAGS CC flags for Perl modules
1810   PERLLD      Linker for Perl modules
1811   PERLLDFLAGS LD flags for Perl modules
1812   RRDDOCDIR   [DATADIR/doc/PACKAGE-VERSION] Documentation directory
1814 Use these variables to override the choices made by `configure' or to help
1815 it to find libraries and programs with nonstandard names/locations.
1817 _ACEOF
1818 ac_status=$?
1819 fi
1821 if test "$ac_init_help" = "recursive"; then
1822   # If there are subdirs, report their specific --help.
1823   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1824     test -d "$ac_dir" ||
1825       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1826       continue
1827     ac_builddir=.
1829 case "$ac_dir" in
1830 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1831 *)
1832   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1833   # A ".." for each directory in $ac_dir_suffix.
1834   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1835   case $ac_top_builddir_sub in
1836   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1837   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1838   esac ;;
1839 esac
1840 ac_abs_top_builddir=$ac_pwd
1841 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1842 # for backward compatibility:
1843 ac_top_builddir=$ac_top_build_prefix
1845 case $srcdir in
1846   .)  # We are building in place.
1847     ac_srcdir=.
1848     ac_top_srcdir=$ac_top_builddir_sub
1849     ac_abs_top_srcdir=$ac_pwd ;;
1850   [\\/]* | ?:[\\/]* )  # Absolute name.
1851     ac_srcdir=$srcdir$ac_dir_suffix;
1852     ac_top_srcdir=$srcdir
1853     ac_abs_top_srcdir=$srcdir ;;
1854   *) # Relative name.
1855     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1856     ac_top_srcdir=$ac_top_build_prefix$srcdir
1857     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1858 esac
1859 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1861     cd "$ac_dir" || { ac_status=$?; continue; }
1862     # Check for guested configure.
1863     if test -f "$ac_srcdir/configure.gnu"; then
1864       echo &&
1865       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1866     elif test -f "$ac_srcdir/configure"; then
1867       echo &&
1868       $SHELL "$ac_srcdir/configure" --help=recursive
1869     else
1870       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1871     fi || ac_status=$?
1872     cd "$ac_pwd" || { ac_status=$?; break; }
1873   done
1874 fi
1876 test -n "$ac_init_help" && exit $ac_status
1877 if $ac_init_version; then
1878   cat <<\_ACEOF
1879 rrdtool configure 1.4.3
1880 generated by GNU Autoconf 2.63
1882 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1883 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1884 This configure script is free software; the Free Software Foundation
1885 gives unlimited permission to copy, distribute and modify it.
1886 _ACEOF
1887   exit
1888 fi
1889 cat >config.log <<_ACEOF
1890 This file contains any messages produced by compilers while
1891 running configure, to aid debugging if configure makes a mistake.
1893 It was created by rrdtool $as_me 1.4.3, which was
1894 generated by GNU Autoconf 2.63.  Invocation command line was
1896   $ $0 $@
1898 _ACEOF
1899 exec 5>>config.log
1901 cat <<_ASUNAME
1902 ## --------- ##
1903 ## Platform. ##
1904 ## --------- ##
1906 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1907 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1908 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1909 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1910 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1912 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1913 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1915 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1916 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1917 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1918 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1919 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1920 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1921 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1923 _ASUNAME
1925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1926 for as_dir in $PATH
1927 do
1928   IFS=$as_save_IFS
1929   test -z "$as_dir" && as_dir=.
1930   $as_echo "PATH: $as_dir"
1931 done
1932 IFS=$as_save_IFS
1934 } >&5
1936 cat >&5 <<_ACEOF
1939 ## ----------- ##
1940 ## Core tests. ##
1941 ## ----------- ##
1943 _ACEOF
1946 # Keep a trace of the command line.
1947 # Strip out --no-create and --no-recursion so they do not pile up.
1948 # Strip out --silent because we don't want to record it for future runs.
1949 # Also quote any args containing shell meta-characters.
1950 # Make two passes to allow for proper duplicate-argument suppression.
1951 ac_configure_args=
1952 ac_configure_args0=
1953 ac_configure_args1=
1954 ac_must_keep_next=false
1955 for ac_pass in 1 2
1956 do
1957   for ac_arg
1958   do
1959     case $ac_arg in
1960     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1961     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1962     | -silent | --silent | --silen | --sile | --sil)
1963       continue ;;
1964     *\'*)
1965       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1966     esac
1967     case $ac_pass in
1968     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1969     2)
1970       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1971       if test $ac_must_keep_next = true; then
1972         ac_must_keep_next=false # Got value, back to normal.
1973       else
1974         case $ac_arg in
1975           *=* | --config-cache | -C | -disable-* | --disable-* \
1976           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1977           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1978           | -with-* | --with-* | -without-* | --without-* | --x)
1979             case "$ac_configure_args0 " in
1980               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1981             esac
1982             ;;
1983           -* ) ac_must_keep_next=true ;;
1984         esac
1985       fi
1986       ac_configure_args="$ac_configure_args '$ac_arg'"
1987       ;;
1988     esac
1989   done
1990 done
1991 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1992 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1994 # When interrupted or exit'd, cleanup temporary files, and complete
1995 # config.log.  We remove comments because anyway the quotes in there
1996 # would cause problems or look ugly.
1997 # WARNING: Use '\'' to represent an apostrophe within the trap.
1998 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1999 trap 'exit_status=$?
2000   # Save into config.log some information that might help in debugging.
2001   {
2002     echo
2004     cat <<\_ASBOX
2005 ## ---------------- ##
2006 ## Cache variables. ##
2007 ## ---------------- ##
2008 _ASBOX
2009     echo
2010     # The following way of writing the cache mishandles newlines in values,
2012   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2013     eval ac_val=\$$ac_var
2014     case $ac_val in #(
2015     *${as_nl}*)
2016       case $ac_var in #(
2017       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
2018 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2019       esac
2020       case $ac_var in #(
2021       _ | IFS | as_nl) ;; #(
2022       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2023       *) $as_unset $ac_var ;;
2024       esac ;;
2025     esac
2026   done
2027   (set) 2>&1 |
2028     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2029     *${as_nl}ac_space=\ *)
2030       sed -n \
2031         "s/'\''/'\''\\\\'\'''\''/g;
2032           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2033       ;; #(
2034     *)
2035       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2036       ;;
2037     esac |
2038     sort
2040     echo
2042     cat <<\_ASBOX
2043 ## ----------------- ##
2044 ## Output variables. ##
2045 ## ----------------- ##
2046 _ASBOX
2047     echo
2048     for ac_var in $ac_subst_vars
2049     do
2050       eval ac_val=\$$ac_var
2051       case $ac_val in
2052       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2053       esac
2054       $as_echo "$ac_var='\''$ac_val'\''"
2055     done | sort
2056     echo
2058     if test -n "$ac_subst_files"; then
2059       cat <<\_ASBOX
2060 ## ------------------- ##
2061 ## File substitutions. ##
2062 ## ------------------- ##
2063 _ASBOX
2064       echo
2065       for ac_var in $ac_subst_files
2066       do
2067         eval ac_val=\$$ac_var
2068         case $ac_val in
2069         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2070         esac
2071         $as_echo "$ac_var='\''$ac_val'\''"
2072       done | sort
2073       echo
2074     fi
2076     if test -s confdefs.h; then
2077       cat <<\_ASBOX
2078 ## ----------- ##
2079 ## confdefs.h. ##
2080 ## ----------- ##
2081 _ASBOX
2082       echo
2083       cat confdefs.h
2084       echo
2085     fi
2086     test "$ac_signal" != 0 &&
2087       $as_echo "$as_me: caught signal $ac_signal"
2088     $as_echo "$as_me: exit $exit_status"
2089   } >&5
2090   rm -f core *.core core.conftest.* &&
2091     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2092     exit $exit_status
2093 ' 0
2094 for ac_signal in 1 2 13 15; do
2095   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2096 done
2097 ac_signal=0
2099 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2100 rm -f -r conftest* confdefs.h
2102 # Predefined preprocessor variables.
2104 cat >>confdefs.h <<_ACEOF
2105 #define PACKAGE_NAME "$PACKAGE_NAME"
2106 _ACEOF
2109 cat >>confdefs.h <<_ACEOF
2110 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2111 _ACEOF
2114 cat >>confdefs.h <<_ACEOF
2115 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2116 _ACEOF
2119 cat >>confdefs.h <<_ACEOF
2120 #define PACKAGE_STRING "$PACKAGE_STRING"
2121 _ACEOF
2124 cat >>confdefs.h <<_ACEOF
2125 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2126 _ACEOF
2129 # Let the site file select an alternate cache file if it wants to.
2130 # Prefer an explicitly selected file to automatically selected ones.
2131 ac_site_file1=NONE
2132 ac_site_file2=NONE
2133 if test -n "$CONFIG_SITE"; then
2134   ac_site_file1=$CONFIG_SITE
2135 elif test "x$prefix" != xNONE; then
2136   ac_site_file1=$prefix/share/config.site
2137   ac_site_file2=$prefix/etc/config.site
2138 else
2139   ac_site_file1=$ac_default_prefix/share/config.site
2140   ac_site_file2=$ac_default_prefix/etc/config.site
2141 fi
2142 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2143 do
2144   test "x$ac_site_file" = xNONE && continue
2145   if test -r "$ac_site_file"; then
2146     { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2147 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2148     sed 's/^/| /' "$ac_site_file" >&5
2149     . "$ac_site_file"
2150   fi
2151 done
2153 if test -r "$cache_file"; then
2154   # Some versions of bash will fail to source /dev/null (special
2155   # files actually), so we avoid doing that.
2156   if test -f "$cache_file"; then
2157     { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2158 $as_echo "$as_me: loading cache $cache_file" >&6;}
2159     case $cache_file in
2160       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2161       *)                      . "./$cache_file";;
2162     esac
2163   fi
2164 else
2165   { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2166 $as_echo "$as_me: creating cache $cache_file" >&6;}
2167   >$cache_file
2168 fi
2170 gt_needs="$gt_needs "
2171 # Check that the precious variables saved in the cache have kept the same
2172 # value.
2173 ac_cache_corrupted=false
2174 for ac_var in $ac_precious_vars; do
2175   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2176   eval ac_new_set=\$ac_env_${ac_var}_set
2177   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2178   eval ac_new_val=\$ac_env_${ac_var}_value
2179   case $ac_old_set,$ac_new_set in
2180     set,)
2181       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2182 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2183       ac_cache_corrupted=: ;;
2184     ,set)
2185       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2186 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2187       ac_cache_corrupted=: ;;
2188     ,);;
2189     *)
2190       if test "x$ac_old_val" != "x$ac_new_val"; then
2191         # differences in whitespace do not lead to failure.
2192         ac_old_val_w=`echo x $ac_old_val`
2193         ac_new_val_w=`echo x $ac_new_val`
2194         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2195           { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2196 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2197           ac_cache_corrupted=:
2198         else
2199           { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2200 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2201           eval $ac_var=\$ac_old_val
2202         fi
2203         { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
2204 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2205         { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
2206 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2207       fi;;
2208   esac
2209   # Pass precious variables to config.status.
2210   if test "$ac_new_set" = set; then
2211     case $ac_new_val in
2212     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2213     *) ac_arg=$ac_var=$ac_new_val ;;
2214     esac
2215     case " $ac_configure_args " in
2216       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2217       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2218     esac
2219   fi
2220 done
2221 if $ac_cache_corrupted; then
2222   { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2223 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2224   { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2225 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2226   { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2227 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2228    { (exit 1); exit 1; }; }
2229 fi
2255 ac_ext=c
2256 ac_cpp='$CPP $CPPFLAGS'
2257 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2258 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2259 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2263 NUMVERS=1.4003
2266 LIBVERS=5:3:1
2269 ac_aux_dir=
2270 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2271   if test -f "$ac_dir/install-sh"; then
2272     ac_aux_dir=$ac_dir
2273     ac_install_sh="$ac_aux_dir/install-sh -c"
2274     break
2275   elif test -f "$ac_dir/install.sh"; then
2276     ac_aux_dir=$ac_dir
2277     ac_install_sh="$ac_aux_dir/install.sh -c"
2278     break
2279   elif test -f "$ac_dir/shtool"; then
2280     ac_aux_dir=$ac_dir
2281     ac_install_sh="$ac_aux_dir/shtool install -c"
2282     break
2283   fi
2284 done
2285 if test -z "$ac_aux_dir"; then
2286   { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2287 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2288    { (exit 1); exit 1; }; }
2289 fi
2291 # These three variables are undocumented and unsupported,
2292 # and are intended to be withdrawn in a future Autoconf release.
2293 # They can cause serious problems if a builder's source tree is in a directory
2294 # whose full name contains unusual characters.
2295 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2296 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2297 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2300 # Make sure we can run config.sub.
2301 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2302   { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2303 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2304    { (exit 1); exit 1; }; }
2306 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2307 $as_echo_n "checking build system type... " >&6; }
2308 if test "${ac_cv_build+set}" = set; then
2309   $as_echo_n "(cached) " >&6
2310 else
2311   ac_build_alias=$build_alias
2312 test "x$ac_build_alias" = x &&
2313   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2314 test "x$ac_build_alias" = x &&
2315   { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2316 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2317    { (exit 1); exit 1; }; }
2318 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2319   { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2320 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2321    { (exit 1); exit 1; }; }
2323 fi
2324 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2325 $as_echo "$ac_cv_build" >&6; }
2326 case $ac_cv_build in
2327 *-*-*) ;;
2328 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2329 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2330    { (exit 1); exit 1; }; };;
2331 esac
2332 build=$ac_cv_build
2333 ac_save_IFS=$IFS; IFS='-'
2334 set x $ac_cv_build
2335 shift
2336 build_cpu=$1
2337 build_vendor=$2
2338 shift; shift
2339 # Remember, the first character of IFS is used to create $*,
2340 # except with old shells:
2341 build_os=$*
2342 IFS=$ac_save_IFS
2343 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2346 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2347 $as_echo_n "checking host system type... " >&6; }
2348 if test "${ac_cv_host+set}" = set; then
2349   $as_echo_n "(cached) " >&6
2350 else
2351   if test "x$host_alias" = x; then
2352   ac_cv_host=$ac_cv_build
2353 else
2354   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2355     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2356 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2357    { (exit 1); exit 1; }; }
2358 fi
2360 fi
2361 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2362 $as_echo "$ac_cv_host" >&6; }
2363 case $ac_cv_host in
2364 *-*-*) ;;
2365 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2366 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2367    { (exit 1); exit 1; }; };;
2368 esac
2369 host=$ac_cv_host
2370 ac_save_IFS=$IFS; IFS='-'
2371 set x $ac_cv_host
2372 shift
2373 host_cpu=$1
2374 host_vendor=$2
2375 shift; shift
2376 # Remember, the first character of IFS is used to create $*,
2377 # except with old shells:
2378 host_os=$*
2379 IFS=$ac_save_IFS
2380 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2383 { $as_echo "$as_me:$LINENO: checking target system type" >&5
2384 $as_echo_n "checking target system type... " >&6; }
2385 if test "${ac_cv_target+set}" = set; then
2386   $as_echo_n "(cached) " >&6
2387 else
2388   if test "x$target_alias" = x; then
2389   ac_cv_target=$ac_cv_host
2390 else
2391   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2392     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2393 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2394    { (exit 1); exit 1; }; }
2395 fi
2397 fi
2398 { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2399 $as_echo "$ac_cv_target" >&6; }
2400 case $ac_cv_target in
2401 *-*-*) ;;
2402 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2403 $as_echo "$as_me: error: invalid value of canonical target" >&2;}
2404    { (exit 1); exit 1; }; };;
2405 esac
2406 target=$ac_cv_target
2407 ac_save_IFS=$IFS; IFS='-'
2408 set x $ac_cv_target
2409 shift
2410 target_cpu=$1
2411 target_vendor=$2
2412 shift; shift
2413 # Remember, the first character of IFS is used to create $*,
2414 # except with old shells:
2415 target_os=$*
2416 IFS=$ac_save_IFS
2417 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2420 # The aliases save the names the user supplied, while $host etc.
2421 # will get canonicalized.
2422 test -n "$target_alias" &&
2423   test "$program_prefix$program_suffix$program_transform_name" = \
2424     NONENONEs,x,x, &&
2425   program_prefix=${target_alias}-
2426 ac_ext=c
2427 ac_cpp='$CPP $CPPFLAGS'
2428 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2429 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2430 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2431 if test -n "$ac_tool_prefix"; then
2432   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2433 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2434 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2435 $as_echo_n "checking for $ac_word... " >&6; }
2436 if test "${ac_cv_prog_CC+set}" = set; then
2437   $as_echo_n "(cached) " >&6
2438 else
2439   if test -n "$CC"; then
2440   ac_cv_prog_CC="$CC" # Let the user override the test.
2441 else
2442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2443 for as_dir in $PATH
2444 do
2445   IFS=$as_save_IFS
2446   test -z "$as_dir" && as_dir=.
2447   for ac_exec_ext in '' $ac_executable_extensions; do
2448   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2449     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2450     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2451     break 2
2452   fi
2453 done
2454 done
2455 IFS=$as_save_IFS
2457 fi
2458 fi
2459 CC=$ac_cv_prog_CC
2460 if test -n "$CC"; then
2461   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2462 $as_echo "$CC" >&6; }
2463 else
2464   { $as_echo "$as_me:$LINENO: result: no" >&5
2465 $as_echo "no" >&6; }
2466 fi
2469 fi
2470 if test -z "$ac_cv_prog_CC"; then
2471   ac_ct_CC=$CC
2472   # Extract the first word of "gcc", so it can be a program name with args.
2473 set dummy gcc; ac_word=$2
2474 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2475 $as_echo_n "checking for $ac_word... " >&6; }
2476 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2477   $as_echo_n "(cached) " >&6
2478 else
2479   if test -n "$ac_ct_CC"; then
2480   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2481 else
2482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2483 for as_dir in $PATH
2484 do
2485   IFS=$as_save_IFS
2486   test -z "$as_dir" && as_dir=.
2487   for ac_exec_ext in '' $ac_executable_extensions; do
2488   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2489     ac_cv_prog_ac_ct_CC="gcc"
2490     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2491     break 2
2492   fi
2493 done
2494 done
2495 IFS=$as_save_IFS
2497 fi
2498 fi
2499 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2500 if test -n "$ac_ct_CC"; then
2501   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2502 $as_echo "$ac_ct_CC" >&6; }
2503 else
2504   { $as_echo "$as_me:$LINENO: result: no" >&5
2505 $as_echo "no" >&6; }
2506 fi
2508   if test "x$ac_ct_CC" = x; then
2509     CC=""
2510   else
2511     case $cross_compiling:$ac_tool_warned in
2512 yes:)
2513 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2514 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2515 ac_tool_warned=yes ;;
2516 esac
2517     CC=$ac_ct_CC
2518   fi
2519 else
2520   CC="$ac_cv_prog_CC"
2521 fi
2523 if test -z "$CC"; then
2524           if test -n "$ac_tool_prefix"; then
2525     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2526 set dummy ${ac_tool_prefix}cc; ac_word=$2
2527 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2528 $as_echo_n "checking for $ac_word... " >&6; }
2529 if test "${ac_cv_prog_CC+set}" = set; then
2530   $as_echo_n "(cached) " >&6
2531 else
2532   if test -n "$CC"; then
2533   ac_cv_prog_CC="$CC" # Let the user override the test.
2534 else
2535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2536 for as_dir in $PATH
2537 do
2538   IFS=$as_save_IFS
2539   test -z "$as_dir" && as_dir=.
2540   for ac_exec_ext in '' $ac_executable_extensions; do
2541   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2542     ac_cv_prog_CC="${ac_tool_prefix}cc"
2543     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2544     break 2
2545   fi
2546 done
2547 done
2548 IFS=$as_save_IFS
2550 fi
2551 fi
2552 CC=$ac_cv_prog_CC
2553 if test -n "$CC"; then
2554   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2555 $as_echo "$CC" >&6; }
2556 else
2557   { $as_echo "$as_me:$LINENO: result: no" >&5
2558 $as_echo "no" >&6; }
2559 fi
2562   fi
2563 fi
2564 if test -z "$CC"; then
2565   # Extract the first word of "cc", so it can be a program name with args.
2566 set dummy cc; ac_word=$2
2567 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2568 $as_echo_n "checking for $ac_word... " >&6; }
2569 if test "${ac_cv_prog_CC+set}" = set; then
2570   $as_echo_n "(cached) " >&6
2571 else
2572   if test -n "$CC"; then
2573   ac_cv_prog_CC="$CC" # Let the user override the test.
2574 else
2575   ac_prog_rejected=no
2576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2577 for as_dir in $PATH
2578 do
2579   IFS=$as_save_IFS
2580   test -z "$as_dir" && as_dir=.
2581   for ac_exec_ext in '' $ac_executable_extensions; do
2582   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2583     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2584        ac_prog_rejected=yes
2585        continue
2586      fi
2587     ac_cv_prog_CC="cc"
2588     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2589     break 2
2590   fi
2591 done
2592 done
2593 IFS=$as_save_IFS
2595 if test $ac_prog_rejected = yes; then
2596   # We found a bogon in the path, so make sure we never use it.
2597   set dummy $ac_cv_prog_CC
2598   shift
2599   if test $# != 0; then
2600     # We chose a different compiler from the bogus one.
2601     # However, it has the same basename, so the bogon will be chosen
2602     # first if we set CC to just the basename; use the full file name.
2603     shift
2604     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2605   fi
2606 fi
2607 fi
2608 fi
2609 CC=$ac_cv_prog_CC
2610 if test -n "$CC"; then
2611   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2612 $as_echo "$CC" >&6; }
2613 else
2614   { $as_echo "$as_me:$LINENO: result: no" >&5
2615 $as_echo "no" >&6; }
2616 fi
2619 fi
2620 if test -z "$CC"; then
2621   if test -n "$ac_tool_prefix"; then
2622   for ac_prog in cl.exe
2623   do
2624     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2625 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2626 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2627 $as_echo_n "checking for $ac_word... " >&6; }
2628 if test "${ac_cv_prog_CC+set}" = set; then
2629   $as_echo_n "(cached) " >&6
2630 else
2631   if test -n "$CC"; then
2632   ac_cv_prog_CC="$CC" # Let the user override the test.
2633 else
2634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2635 for as_dir in $PATH
2636 do
2637   IFS=$as_save_IFS
2638   test -z "$as_dir" && as_dir=.
2639   for ac_exec_ext in '' $ac_executable_extensions; do
2640   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2641     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2642     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2643     break 2
2644   fi
2645 done
2646 done
2647 IFS=$as_save_IFS
2649 fi
2650 fi
2651 CC=$ac_cv_prog_CC
2652 if test -n "$CC"; then
2653   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2654 $as_echo "$CC" >&6; }
2655 else
2656   { $as_echo "$as_me:$LINENO: result: no" >&5
2657 $as_echo "no" >&6; }
2658 fi
2661     test -n "$CC" && break
2662   done
2663 fi
2664 if test -z "$CC"; then
2665   ac_ct_CC=$CC
2666   for ac_prog in cl.exe
2667 do
2668   # Extract the first word of "$ac_prog", so it can be a program name with args.
2669 set dummy $ac_prog; ac_word=$2
2670 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2671 $as_echo_n "checking for $ac_word... " >&6; }
2672 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2673   $as_echo_n "(cached) " >&6
2674 else
2675   if test -n "$ac_ct_CC"; then
2676   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2677 else
2678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2679 for as_dir in $PATH
2680 do
2681   IFS=$as_save_IFS
2682   test -z "$as_dir" && as_dir=.
2683   for ac_exec_ext in '' $ac_executable_extensions; do
2684   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2685     ac_cv_prog_ac_ct_CC="$ac_prog"
2686     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2687     break 2
2688   fi
2689 done
2690 done
2691 IFS=$as_save_IFS
2693 fi
2694 fi
2695 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2696 if test -n "$ac_ct_CC"; then
2697   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2698 $as_echo "$ac_ct_CC" >&6; }
2699 else
2700   { $as_echo "$as_me:$LINENO: result: no" >&5
2701 $as_echo "no" >&6; }
2702 fi
2705   test -n "$ac_ct_CC" && break
2706 done
2708   if test "x$ac_ct_CC" = x; then
2709     CC=""
2710   else
2711     case $cross_compiling:$ac_tool_warned in
2712 yes:)
2713 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2714 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2715 ac_tool_warned=yes ;;
2716 esac
2717     CC=$ac_ct_CC
2718   fi
2719 fi
2721 fi
2724 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2725 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2726 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2727 See \`config.log' for more details." >&5
2728 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2729 See \`config.log' for more details." >&2;}
2730    { (exit 1); exit 1; }; }; }
2732 # Provide some information about the compiler.
2733 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2734 set X $ac_compile
2735 ac_compiler=$2
2736 { (ac_try="$ac_compiler --version >&5"
2737 case "(($ac_try" in
2738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2739   *) ac_try_echo=$ac_try;;
2740 esac
2741 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2742 $as_echo "$ac_try_echo") >&5
2743   (eval "$ac_compiler --version >&5") 2>&5
2744   ac_status=$?
2745   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2746   (exit $ac_status); }
2747 { (ac_try="$ac_compiler -v >&5"
2748 case "(($ac_try" in
2749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2750   *) ac_try_echo=$ac_try;;
2751 esac
2752 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2753 $as_echo "$ac_try_echo") >&5
2754   (eval "$ac_compiler -v >&5") 2>&5
2755   ac_status=$?
2756   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2757   (exit $ac_status); }
2758 { (ac_try="$ac_compiler -V >&5"
2759 case "(($ac_try" in
2760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2761   *) ac_try_echo=$ac_try;;
2762 esac
2763 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2764 $as_echo "$ac_try_echo") >&5
2765   (eval "$ac_compiler -V >&5") 2>&5
2766   ac_status=$?
2767   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2768   (exit $ac_status); }
2770 cat >conftest.$ac_ext <<_ACEOF
2771 /* confdefs.h.  */
2772 _ACEOF
2773 cat confdefs.h >>conftest.$ac_ext
2774 cat >>conftest.$ac_ext <<_ACEOF
2775 /* end confdefs.h.  */
2777 int
2778 main ()
2781   ;
2782   return 0;
2784 _ACEOF
2785 ac_clean_files_save=$ac_clean_files
2786 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2787 # Try to create an executable without -o first, disregard a.out.
2788 # It will help us diagnose broken compilers, and finding out an intuition
2789 # of exeext.
2790 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2791 $as_echo_n "checking for C compiler default output file name... " >&6; }
2792 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2794 # The possible output files:
2795 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2797 ac_rmfiles=
2798 for ac_file in $ac_files
2799 do
2800   case $ac_file in
2801     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2802     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2803   esac
2804 done
2805 rm -f $ac_rmfiles
2807 if { (ac_try="$ac_link_default"
2808 case "(($ac_try" in
2809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2810   *) ac_try_echo=$ac_try;;
2811 esac
2812 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2813 $as_echo "$ac_try_echo") >&5
2814   (eval "$ac_link_default") 2>&5
2815   ac_status=$?
2816   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2817   (exit $ac_status); }; then
2818   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2819 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2820 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2821 # so that the user can short-circuit this test for compilers unknown to
2822 # Autoconf.
2823 for ac_file in $ac_files ''
2824 do
2825   test -f "$ac_file" || continue
2826   case $ac_file in
2827     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2828         ;;
2829     [ab].out )
2830         # We found the default executable, but exeext='' is most
2831         # certainly right.
2832         break;;
2833     *.* )
2834         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2835         then :; else
2836            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2837         fi
2838         # We set ac_cv_exeext here because the later test for it is not
2839         # safe: cross compilers may not add the suffix if given an `-o'
2840         # argument, so we may need to know it at that point already.
2841         # Even if this section looks crufty: it has the advantage of
2842         # actually working.
2843         break;;
2844     * )
2845         break;;
2846   esac
2847 done
2848 test "$ac_cv_exeext" = no && ac_cv_exeext=
2850 else
2851   ac_file=''
2852 fi
2854 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2855 $as_echo "$ac_file" >&6; }
2856 if test -z "$ac_file"; then
2857   $as_echo "$as_me: failed program was:" >&5
2858 sed 's/^/| /' conftest.$ac_ext >&5
2860 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2861 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2862 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2863 See \`config.log' for more details." >&5
2864 $as_echo "$as_me: error: C compiler cannot create executables
2865 See \`config.log' for more details." >&2;}
2866    { (exit 77); exit 77; }; }; }
2867 fi
2869 ac_exeext=$ac_cv_exeext
2871 # Check that the compiler produces executables we can run.  If not, either
2872 # the compiler is broken, or we cross compile.
2873 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2874 $as_echo_n "checking whether the C compiler works... " >&6; }
2875 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2876 # If not cross compiling, check that we can run a simple program.
2877 if test "$cross_compiling" != yes; then
2878   if { ac_try='./$ac_file'
2879   { (case "(($ac_try" in
2880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2881   *) ac_try_echo=$ac_try;;
2882 esac
2883 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2884 $as_echo "$ac_try_echo") >&5
2885   (eval "$ac_try") 2>&5
2886   ac_status=$?
2887   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2888   (exit $ac_status); }; }; then
2889     cross_compiling=no
2890   else
2891     if test "$cross_compiling" = maybe; then
2892         cross_compiling=yes
2893     else
2894         { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2895 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2896 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2897 If you meant to cross compile, use \`--host'.
2898 See \`config.log' for more details." >&5
2899 $as_echo "$as_me: error: cannot run C compiled programs.
2900 If you meant to cross compile, use \`--host'.
2901 See \`config.log' for more details." >&2;}
2902    { (exit 1); exit 1; }; }; }
2903     fi
2904   fi
2905 fi
2906 { $as_echo "$as_me:$LINENO: result: yes" >&5
2907 $as_echo "yes" >&6; }
2909 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2910 ac_clean_files=$ac_clean_files_save
2911 # Check that the compiler produces executables we can run.  If not, either
2912 # the compiler is broken, or we cross compile.
2913 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2914 $as_echo_n "checking whether we are cross compiling... " >&6; }
2915 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2916 $as_echo "$cross_compiling" >&6; }
2918 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2919 $as_echo_n "checking for suffix of executables... " >&6; }
2920 if { (ac_try="$ac_link"
2921 case "(($ac_try" in
2922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2923   *) ac_try_echo=$ac_try;;
2924 esac
2925 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2926 $as_echo "$ac_try_echo") >&5
2927   (eval "$ac_link") 2>&5
2928   ac_status=$?
2929   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930   (exit $ac_status); }; then
2931   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2932 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2933 # work properly (i.e., refer to `conftest.exe'), while it won't with
2934 # `rm'.
2935 for ac_file in conftest.exe conftest conftest.*; do
2936   test -f "$ac_file" || continue
2937   case $ac_file in
2938     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2939     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2940           break;;
2941     * ) break;;
2942   esac
2943 done
2944 else
2945   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2946 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2947 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2948 See \`config.log' for more details." >&5
2949 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2950 See \`config.log' for more details." >&2;}
2951    { (exit 1); exit 1; }; }; }
2952 fi
2954 rm -f conftest$ac_cv_exeext
2955 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2956 $as_echo "$ac_cv_exeext" >&6; }
2958 rm -f conftest.$ac_ext
2959 EXEEXT=$ac_cv_exeext
2960 ac_exeext=$EXEEXT
2961 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2962 $as_echo_n "checking for suffix of object files... " >&6; }
2963 if test "${ac_cv_objext+set}" = set; then
2964   $as_echo_n "(cached) " >&6
2965 else
2966   cat >conftest.$ac_ext <<_ACEOF
2967 /* confdefs.h.  */
2968 _ACEOF
2969 cat confdefs.h >>conftest.$ac_ext
2970 cat >>conftest.$ac_ext <<_ACEOF
2971 /* end confdefs.h.  */
2973 int
2974 main ()
2977   ;
2978   return 0;
2980 _ACEOF
2981 rm -f conftest.o conftest.obj
2982 if { (ac_try="$ac_compile"
2983 case "(($ac_try" in
2984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2985   *) ac_try_echo=$ac_try;;
2986 esac
2987 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2988 $as_echo "$ac_try_echo") >&5
2989   (eval "$ac_compile") 2>&5
2990   ac_status=$?
2991   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992   (exit $ac_status); }; then
2993   for ac_file in conftest.o conftest.obj conftest.*; do
2994   test -f "$ac_file" || continue;
2995   case $ac_file in
2996     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2997     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2998        break;;
2999   esac
3000 done
3001 else
3002   $as_echo "$as_me: failed program was:" >&5
3003 sed 's/^/| /' conftest.$ac_ext >&5
3005 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3006 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3007 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3008 See \`config.log' for more details." >&5
3009 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3010 See \`config.log' for more details." >&2;}
3011    { (exit 1); exit 1; }; }; }
3012 fi
3014 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3015 fi
3016 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3017 $as_echo "$ac_cv_objext" >&6; }
3018 OBJEXT=$ac_cv_objext
3019 ac_objext=$OBJEXT
3020 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3021 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3022 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3023   $as_echo_n "(cached) " >&6
3024 else
3025   cat >conftest.$ac_ext <<_ACEOF
3026 /* confdefs.h.  */
3027 _ACEOF
3028 cat confdefs.h >>conftest.$ac_ext
3029 cat >>conftest.$ac_ext <<_ACEOF
3030 /* end confdefs.h.  */
3032 int
3033 main ()
3035 #ifndef __GNUC__
3036        choke me
3037 #endif
3039   ;
3040   return 0;
3042 _ACEOF
3043 rm -f conftest.$ac_objext
3044 if { (ac_try="$ac_compile"
3045 case "(($ac_try" in
3046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3047   *) ac_try_echo=$ac_try;;
3048 esac
3049 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3050 $as_echo "$ac_try_echo") >&5
3051   (eval "$ac_compile") 2>conftest.er1
3052   ac_status=$?
3053   grep -v '^ *+' conftest.er1 >conftest.err
3054   rm -f conftest.er1
3055   cat conftest.err >&5
3056   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3057   (exit $ac_status); } && {
3058          test -z "$ac_c_werror_flag" ||
3059          test ! -s conftest.err
3060        } && test -s conftest.$ac_objext; then
3061   ac_compiler_gnu=yes
3062 else
3063   $as_echo "$as_me: failed program was:" >&5
3064 sed 's/^/| /' conftest.$ac_ext >&5
3066         ac_compiler_gnu=no
3067 fi
3069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3070 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3072 fi
3073 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3074 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3075 if test $ac_compiler_gnu = yes; then
3076   GCC=yes
3077 else
3078   GCC=
3079 fi
3080 ac_test_CFLAGS=${CFLAGS+set}
3081 ac_save_CFLAGS=$CFLAGS
3082 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3083 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3084 if test "${ac_cv_prog_cc_g+set}" = set; then
3085   $as_echo_n "(cached) " >&6
3086 else
3087   ac_save_c_werror_flag=$ac_c_werror_flag
3088    ac_c_werror_flag=yes
3089    ac_cv_prog_cc_g=no
3090    CFLAGS="-g"
3091    cat >conftest.$ac_ext <<_ACEOF
3092 /* confdefs.h.  */
3093 _ACEOF
3094 cat confdefs.h >>conftest.$ac_ext
3095 cat >>conftest.$ac_ext <<_ACEOF
3096 /* end confdefs.h.  */
3098 int
3099 main ()
3102   ;
3103   return 0;
3105 _ACEOF
3106 rm -f conftest.$ac_objext
3107 if { (ac_try="$ac_compile"
3108 case "(($ac_try" in
3109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3110   *) ac_try_echo=$ac_try;;
3111 esac
3112 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3113 $as_echo "$ac_try_echo") >&5
3114   (eval "$ac_compile") 2>conftest.er1
3115   ac_status=$?
3116   grep -v '^ *+' conftest.er1 >conftest.err
3117   rm -f conftest.er1
3118   cat conftest.err >&5
3119   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3120   (exit $ac_status); } && {
3121          test -z "$ac_c_werror_flag" ||
3122          test ! -s conftest.err
3123        } && test -s conftest.$ac_objext; then
3124   ac_cv_prog_cc_g=yes
3125 else
3126   $as_echo "$as_me: failed program was:" >&5
3127 sed 's/^/| /' conftest.$ac_ext >&5
3129         CFLAGS=""
3130       cat >conftest.$ac_ext <<_ACEOF
3131 /* confdefs.h.  */
3132 _ACEOF
3133 cat confdefs.h >>conftest.$ac_ext
3134 cat >>conftest.$ac_ext <<_ACEOF
3135 /* end confdefs.h.  */
3137 int
3138 main ()
3141   ;
3142   return 0;
3144 _ACEOF
3145 rm -f conftest.$ac_objext
3146 if { (ac_try="$ac_compile"
3147 case "(($ac_try" in
3148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3149   *) ac_try_echo=$ac_try;;
3150 esac
3151 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3152 $as_echo "$ac_try_echo") >&5
3153   (eval "$ac_compile") 2>conftest.er1
3154   ac_status=$?
3155   grep -v '^ *+' conftest.er1 >conftest.err
3156   rm -f conftest.er1
3157   cat conftest.err >&5
3158   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3159   (exit $ac_status); } && {
3160          test -z "$ac_c_werror_flag" ||
3161          test ! -s conftest.err
3162        } && test -s conftest.$ac_objext; then
3163   :
3164 else
3165   $as_echo "$as_me: failed program was:" >&5
3166 sed 's/^/| /' conftest.$ac_ext >&5
3168         ac_c_werror_flag=$ac_save_c_werror_flag
3169          CFLAGS="-g"
3170          cat >conftest.$ac_ext <<_ACEOF
3171 /* confdefs.h.  */
3172 _ACEOF
3173 cat confdefs.h >>conftest.$ac_ext
3174 cat >>conftest.$ac_ext <<_ACEOF
3175 /* end confdefs.h.  */
3177 int
3178 main ()
3181   ;
3182   return 0;
3184 _ACEOF
3185 rm -f conftest.$ac_objext
3186 if { (ac_try="$ac_compile"
3187 case "(($ac_try" in
3188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3189   *) ac_try_echo=$ac_try;;
3190 esac
3191 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3192 $as_echo "$ac_try_echo") >&5
3193   (eval "$ac_compile") 2>conftest.er1
3194   ac_status=$?
3195   grep -v '^ *+' conftest.er1 >conftest.err
3196   rm -f conftest.er1
3197   cat conftest.err >&5
3198   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3199   (exit $ac_status); } && {
3200          test -z "$ac_c_werror_flag" ||
3201          test ! -s conftest.err
3202        } && test -s conftest.$ac_objext; then
3203   ac_cv_prog_cc_g=yes
3204 else
3205   $as_echo "$as_me: failed program was:" >&5
3206 sed 's/^/| /' conftest.$ac_ext >&5
3209 fi
3211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3212 fi
3214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3215 fi
3217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3218    ac_c_werror_flag=$ac_save_c_werror_flag
3219 fi
3220 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3221 $as_echo "$ac_cv_prog_cc_g" >&6; }
3222 if test "$ac_test_CFLAGS" = set; then
3223   CFLAGS=$ac_save_CFLAGS
3224 elif test $ac_cv_prog_cc_g = yes; then
3225   if test "$GCC" = yes; then
3226     CFLAGS="-g -O2"
3227   else
3228     CFLAGS="-g"
3229   fi
3230 else
3231   if test "$GCC" = yes; then
3232     CFLAGS="-O2"
3233   else
3234     CFLAGS=
3235   fi
3236 fi
3237 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3238 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3239 if test "${ac_cv_prog_cc_c89+set}" = set; then
3240   $as_echo_n "(cached) " >&6
3241 else
3242   ac_cv_prog_cc_c89=no
3243 ac_save_CC=$CC
3244 cat >conftest.$ac_ext <<_ACEOF
3245 /* confdefs.h.  */
3246 _ACEOF
3247 cat confdefs.h >>conftest.$ac_ext
3248 cat >>conftest.$ac_ext <<_ACEOF
3249 /* end confdefs.h.  */
3250 #include <stdarg.h>
3251 #include <stdio.h>
3252 #include <sys/types.h>
3253 #include <sys/stat.h>
3254 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3255 struct buf { int x; };
3256 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3257 static char *e (p, i)
3258      char **p;
3259      int i;
3261   return p[i];
3263 static char *f (char * (*g) (char **, int), char **p, ...)
3265   char *s;
3266   va_list v;
3267   va_start (v,p);
3268   s = g (p, va_arg (v,int));
3269   va_end (v);
3270   return s;
3273 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3274    function prototypes and stuff, but not '\xHH' hex character constants.
3275    These don't provoke an error unfortunately, instead are silently treated
3276    as 'x'.  The following induces an error, until -std is added to get
3277    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3278    array size at least.  It's necessary to write '\x00'==0 to get something
3279    that's true only with -std.  */
3280 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3282 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3283    inside strings and character constants.  */
3284 #define FOO(x) 'x'
3285 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3287 int test (int i, double x);
3288 struct s1 {int (*f) (int a);};
3289 struct s2 {int (*f) (double a);};
3290 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3291 int argc;
3292 char **argv;
3293 int
3294 main ()
3296 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3297   ;
3298   return 0;
3300 _ACEOF
3301 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3302         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3303 do
3304   CC="$ac_save_CC $ac_arg"
3305   rm -f conftest.$ac_objext
3306 if { (ac_try="$ac_compile"
3307 case "(($ac_try" in
3308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3309   *) ac_try_echo=$ac_try;;
3310 esac
3311 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3312 $as_echo "$ac_try_echo") >&5
3313   (eval "$ac_compile") 2>conftest.er1
3314   ac_status=$?
3315   grep -v '^ *+' conftest.er1 >conftest.err
3316   rm -f conftest.er1
3317   cat conftest.err >&5
3318   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3319   (exit $ac_status); } && {
3320          test -z "$ac_c_werror_flag" ||
3321          test ! -s conftest.err
3322        } && test -s conftest.$ac_objext; then
3323   ac_cv_prog_cc_c89=$ac_arg
3324 else
3325   $as_echo "$as_me: failed program was:" >&5
3326 sed 's/^/| /' conftest.$ac_ext >&5
3329 fi
3331 rm -f core conftest.err conftest.$ac_objext
3332   test "x$ac_cv_prog_cc_c89" != "xno" && break
3333 done
3334 rm -f conftest.$ac_ext
3335 CC=$ac_save_CC
3337 fi
3338 # AC_CACHE_VAL
3339 case "x$ac_cv_prog_cc_c89" in
3340   x)
3341     { $as_echo "$as_me:$LINENO: result: none needed" >&5
3342 $as_echo "none needed" >&6; } ;;
3343   xno)
3344     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3345 $as_echo "unsupported" >&6; } ;;
3346   *)
3347     CC="$CC $ac_cv_prog_cc_c89"
3348     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3349 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3350 esac
3353 ac_ext=c
3354 ac_cpp='$CPP $CPPFLAGS'
3355 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3356 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3357 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3360 ac_ext=c
3361 ac_cpp='$CPP $CPPFLAGS'
3362 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3363 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3364 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3365 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3366 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3367 # On Suns, sometimes $CPP names a directory.
3368 if test -n "$CPP" && test -d "$CPP"; then
3369   CPP=
3370 fi
3371 if test -z "$CPP"; then
3372   if test "${ac_cv_prog_CPP+set}" = set; then
3373   $as_echo_n "(cached) " >&6
3374 else
3375       # Double quotes because CPP needs to be expanded
3376     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3377     do
3378       ac_preproc_ok=false
3379 for ac_c_preproc_warn_flag in '' yes
3380 do
3381   # Use a header file that comes with gcc, so configuring glibc
3382   # with a fresh cross-compiler works.
3383   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3384   # <limits.h> exists even on freestanding compilers.
3385   # On the NeXT, cc -E runs the code through the compiler's parser,
3386   # not just through cpp. "Syntax error" is here to catch this case.
3387   cat >conftest.$ac_ext <<_ACEOF
3388 /* confdefs.h.  */
3389 _ACEOF
3390 cat confdefs.h >>conftest.$ac_ext
3391 cat >>conftest.$ac_ext <<_ACEOF
3392 /* end confdefs.h.  */
3393 #ifdef __STDC__
3394 # include <limits.h>
3395 #else
3396 # include <assert.h>
3397 #endif
3398                      Syntax error
3399 _ACEOF
3400 if { (ac_try="$ac_cpp conftest.$ac_ext"
3401 case "(($ac_try" in
3402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3403   *) ac_try_echo=$ac_try;;
3404 esac
3405 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3406 $as_echo "$ac_try_echo") >&5
3407   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3408   ac_status=$?
3409   grep -v '^ *+' conftest.er1 >conftest.err
3410   rm -f conftest.er1
3411   cat conftest.err >&5
3412   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3413   (exit $ac_status); } >/dev/null && {
3414          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3415          test ! -s conftest.err
3416        }; then
3417   :
3418 else
3419   $as_echo "$as_me: failed program was:" >&5
3420 sed 's/^/| /' conftest.$ac_ext >&5
3422   # Broken: fails on valid input.
3423 continue
3424 fi
3426 rm -f conftest.err conftest.$ac_ext
3428   # OK, works on sane cases.  Now check whether nonexistent headers
3429   # can be detected and how.
3430   cat >conftest.$ac_ext <<_ACEOF
3431 /* confdefs.h.  */
3432 _ACEOF
3433 cat confdefs.h >>conftest.$ac_ext
3434 cat >>conftest.$ac_ext <<_ACEOF
3435 /* end confdefs.h.  */
3436 #include <ac_nonexistent.h>
3437 _ACEOF
3438 if { (ac_try="$ac_cpp conftest.$ac_ext"
3439 case "(($ac_try" in
3440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3441   *) ac_try_echo=$ac_try;;
3442 esac
3443 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3444 $as_echo "$ac_try_echo") >&5
3445   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3446   ac_status=$?
3447   grep -v '^ *+' conftest.er1 >conftest.err
3448   rm -f conftest.er1
3449   cat conftest.err >&5
3450   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3451   (exit $ac_status); } >/dev/null && {
3452          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3453          test ! -s conftest.err
3454        }; then
3455   # Broken: success on invalid input.
3456 continue
3457 else
3458   $as_echo "$as_me: failed program was:" >&5
3459 sed 's/^/| /' conftest.$ac_ext >&5
3461   # Passes both tests.
3462 ac_preproc_ok=:
3463 break
3464 fi
3466 rm -f conftest.err conftest.$ac_ext
3468 done
3469 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3470 rm -f conftest.err conftest.$ac_ext
3471 if $ac_preproc_ok; then
3472   break
3473 fi
3475     done
3476     ac_cv_prog_CPP=$CPP
3478 fi
3479   CPP=$ac_cv_prog_CPP
3480 else
3481   ac_cv_prog_CPP=$CPP
3482 fi
3483 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3484 $as_echo "$CPP" >&6; }
3485 ac_preproc_ok=false
3486 for ac_c_preproc_warn_flag in '' yes
3487 do
3488   # Use a header file that comes with gcc, so configuring glibc
3489   # with a fresh cross-compiler works.
3490   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3491   # <limits.h> exists even on freestanding compilers.
3492   # On the NeXT, cc -E runs the code through the compiler's parser,
3493   # not just through cpp. "Syntax error" is here to catch this case.
3494   cat >conftest.$ac_ext <<_ACEOF
3495 /* confdefs.h.  */
3496 _ACEOF
3497 cat confdefs.h >>conftest.$ac_ext
3498 cat >>conftest.$ac_ext <<_ACEOF
3499 /* end confdefs.h.  */
3500 #ifdef __STDC__
3501 # include <limits.h>
3502 #else
3503 # include <assert.h>
3504 #endif
3505                      Syntax error
3506 _ACEOF
3507 if { (ac_try="$ac_cpp conftest.$ac_ext"
3508 case "(($ac_try" in
3509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3510   *) ac_try_echo=$ac_try;;
3511 esac
3512 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3513 $as_echo "$ac_try_echo") >&5
3514   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3515   ac_status=$?
3516   grep -v '^ *+' conftest.er1 >conftest.err
3517   rm -f conftest.er1
3518   cat conftest.err >&5
3519   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3520   (exit $ac_status); } >/dev/null && {
3521          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3522          test ! -s conftest.err
3523        }; then
3524   :
3525 else
3526   $as_echo "$as_me: failed program was:" >&5
3527 sed 's/^/| /' conftest.$ac_ext >&5
3529   # Broken: fails on valid input.
3530 continue
3531 fi
3533 rm -f conftest.err conftest.$ac_ext
3535   # OK, works on sane cases.  Now check whether nonexistent headers
3536   # can be detected and how.
3537   cat >conftest.$ac_ext <<_ACEOF
3538 /* confdefs.h.  */
3539 _ACEOF
3540 cat confdefs.h >>conftest.$ac_ext
3541 cat >>conftest.$ac_ext <<_ACEOF
3542 /* end confdefs.h.  */
3543 #include <ac_nonexistent.h>
3544 _ACEOF
3545 if { (ac_try="$ac_cpp conftest.$ac_ext"
3546 case "(($ac_try" in
3547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3548   *) ac_try_echo=$ac_try;;
3549 esac
3550 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3551 $as_echo "$ac_try_echo") >&5
3552   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3553   ac_status=$?
3554   grep -v '^ *+' conftest.er1 >conftest.err
3555   rm -f conftest.er1
3556   cat conftest.err >&5
3557   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3558   (exit $ac_status); } >/dev/null && {
3559          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3560          test ! -s conftest.err
3561        }; then
3562   # Broken: success on invalid input.
3563 continue
3564 else
3565   $as_echo "$as_me: failed program was:" >&5
3566 sed 's/^/| /' conftest.$ac_ext >&5
3568   # Passes both tests.
3569 ac_preproc_ok=:
3570 break
3571 fi
3573 rm -f conftest.err conftest.$ac_ext
3575 done
3576 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3577 rm -f conftest.err conftest.$ac_ext
3578 if $ac_preproc_ok; then
3579   :
3580 else
3581   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3582 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3583 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3584 See \`config.log' for more details." >&5
3585 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3586 See \`config.log' for more details." >&2;}
3587    { (exit 1); exit 1; }; }; }
3588 fi
3590 ac_ext=c
3591 ac_cpp='$CPP $CPPFLAGS'
3592 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3593 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3594 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3597 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3598 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3599 if test "${ac_cv_path_GREP+set}" = set; then
3600   $as_echo_n "(cached) " >&6
3601 else
3602   if test -z "$GREP"; then
3603   ac_path_GREP_found=false
3604   # Loop through the user's path and test for each of PROGNAME-LIST
3605   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3606 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3607 do
3608   IFS=$as_save_IFS
3609   test -z "$as_dir" && as_dir=.
3610   for ac_prog in grep ggrep; do
3611     for ac_exec_ext in '' $ac_executable_extensions; do
3612       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3613       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3614 # Check for GNU ac_path_GREP and select it if it is found.
3615   # Check for GNU $ac_path_GREP
3616 case `"$ac_path_GREP" --version 2>&1` in
3617 *GNU*)
3618   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3619 *)
3620   ac_count=0
3621   $as_echo_n 0123456789 >"conftest.in"
3622   while :
3623   do
3624     cat "conftest.in" "conftest.in" >"conftest.tmp"
3625     mv "conftest.tmp" "conftest.in"
3626     cp "conftest.in" "conftest.nl"
3627     $as_echo 'GREP' >> "conftest.nl"
3628     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3629     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3630     ac_count=`expr $ac_count + 1`
3631     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3632       # Best one so far, save it but keep looking for a better one
3633       ac_cv_path_GREP="$ac_path_GREP"
3634       ac_path_GREP_max=$ac_count
3635     fi
3636     # 10*(2^10) chars as input seems more than enough
3637     test $ac_count -gt 10 && break
3638   done
3639   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3640 esac
3642       $ac_path_GREP_found && break 3
3643     done
3644   done
3645 done
3646 IFS=$as_save_IFS
3647   if test -z "$ac_cv_path_GREP"; then
3648     { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3649 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3650    { (exit 1); exit 1; }; }
3651   fi
3652 else
3653   ac_cv_path_GREP=$GREP
3654 fi
3656 fi
3657 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3658 $as_echo "$ac_cv_path_GREP" >&6; }
3659  GREP="$ac_cv_path_GREP"
3662 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3663 $as_echo_n "checking for egrep... " >&6; }
3664 if test "${ac_cv_path_EGREP+set}" = set; then
3665   $as_echo_n "(cached) " >&6
3666 else
3667   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3668    then ac_cv_path_EGREP="$GREP -E"
3669    else
3670      if test -z "$EGREP"; then
3671   ac_path_EGREP_found=false
3672   # Loop through the user's path and test for each of PROGNAME-LIST
3673   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3674 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3675 do
3676   IFS=$as_save_IFS
3677   test -z "$as_dir" && as_dir=.
3678   for ac_prog in egrep; do
3679     for ac_exec_ext in '' $ac_executable_extensions; do
3680       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3681       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3682 # Check for GNU ac_path_EGREP and select it if it is found.
3683   # Check for GNU $ac_path_EGREP
3684 case `"$ac_path_EGREP" --version 2>&1` in
3685 *GNU*)
3686   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3687 *)
3688   ac_count=0
3689   $as_echo_n 0123456789 >"conftest.in"
3690   while :
3691   do
3692     cat "conftest.in" "conftest.in" >"conftest.tmp"
3693     mv "conftest.tmp" "conftest.in"
3694     cp "conftest.in" "conftest.nl"
3695     $as_echo 'EGREP' >> "conftest.nl"
3696     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3697     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3698     ac_count=`expr $ac_count + 1`
3699     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3700       # Best one so far, save it but keep looking for a better one
3701       ac_cv_path_EGREP="$ac_path_EGREP"
3702       ac_path_EGREP_max=$ac_count
3703     fi
3704     # 10*(2^10) chars as input seems more than enough
3705     test $ac_count -gt 10 && break
3706   done
3707   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3708 esac
3710       $ac_path_EGREP_found && break 3
3711     done
3712   done
3713 done
3714 IFS=$as_save_IFS
3715   if test -z "$ac_cv_path_EGREP"; then
3716     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3717 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3718    { (exit 1); exit 1; }; }
3719   fi
3720 else
3721   ac_cv_path_EGREP=$EGREP
3722 fi
3724    fi
3725 fi
3726 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3727 $as_echo "$ac_cv_path_EGREP" >&6; }
3728  EGREP="$ac_cv_path_EGREP"
3731 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3732 $as_echo_n "checking for ANSI C header files... " >&6; }
3733 if test "${ac_cv_header_stdc+set}" = set; then
3734   $as_echo_n "(cached) " >&6
3735 else
3736   cat >conftest.$ac_ext <<_ACEOF
3737 /* confdefs.h.  */
3738 _ACEOF
3739 cat confdefs.h >>conftest.$ac_ext
3740 cat >>conftest.$ac_ext <<_ACEOF
3741 /* end confdefs.h.  */
3742 #include <stdlib.h>
3743 #include <stdarg.h>
3744 #include <string.h>
3745 #include <float.h>
3747 int
3748 main ()
3751   ;
3752   return 0;
3754 _ACEOF
3755 rm -f conftest.$ac_objext
3756 if { (ac_try="$ac_compile"
3757 case "(($ac_try" in
3758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3759   *) ac_try_echo=$ac_try;;
3760 esac
3761 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3762 $as_echo "$ac_try_echo") >&5
3763   (eval "$ac_compile") 2>conftest.er1
3764   ac_status=$?
3765   grep -v '^ *+' conftest.er1 >conftest.err
3766   rm -f conftest.er1
3767   cat conftest.err >&5
3768   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3769   (exit $ac_status); } && {
3770          test -z "$ac_c_werror_flag" ||
3771          test ! -s conftest.err
3772        } && test -s conftest.$ac_objext; then
3773   ac_cv_header_stdc=yes
3774 else
3775   $as_echo "$as_me: failed program was:" >&5
3776 sed 's/^/| /' conftest.$ac_ext >&5
3778         ac_cv_header_stdc=no
3779 fi
3781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3783 if test $ac_cv_header_stdc = yes; then
3784   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3785   cat >conftest.$ac_ext <<_ACEOF
3786 /* confdefs.h.  */
3787 _ACEOF
3788 cat confdefs.h >>conftest.$ac_ext
3789 cat >>conftest.$ac_ext <<_ACEOF
3790 /* end confdefs.h.  */
3791 #include <string.h>
3793 _ACEOF
3794 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3795   $EGREP "memchr" >/dev/null 2>&1; then
3796   :
3797 else
3798   ac_cv_header_stdc=no
3799 fi
3800 rm -f conftest*
3802 fi
3804 if test $ac_cv_header_stdc = yes; then
3805   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3806   cat >conftest.$ac_ext <<_ACEOF
3807 /* confdefs.h.  */
3808 _ACEOF
3809 cat confdefs.h >>conftest.$ac_ext
3810 cat >>conftest.$ac_ext <<_ACEOF
3811 /* end confdefs.h.  */
3812 #include <stdlib.h>
3814 _ACEOF
3815 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3816   $EGREP "free" >/dev/null 2>&1; then
3817   :
3818 else
3819   ac_cv_header_stdc=no
3820 fi
3821 rm -f conftest*
3823 fi
3825 if test $ac_cv_header_stdc = yes; then
3826   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3827   if test "$cross_compiling" = yes; then
3828   :
3829 else
3830   cat >conftest.$ac_ext <<_ACEOF
3831 /* confdefs.h.  */
3832 _ACEOF
3833 cat confdefs.h >>conftest.$ac_ext
3834 cat >>conftest.$ac_ext <<_ACEOF
3835 /* end confdefs.h.  */
3836 #include <ctype.h>
3837 #include <stdlib.h>
3838 #if ((' ' & 0x0FF) == 0x020)
3839 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3840 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3841 #else
3842 # define ISLOWER(c) \
3843                    (('a' <= (c) && (c) <= 'i') \
3844                      || ('j' <= (c) && (c) <= 'r') \
3845                      || ('s' <= (c) && (c) <= 'z'))
3846 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3847 #endif
3849 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3850 int
3851 main ()
3853   int i;
3854   for (i = 0; i < 256; i++)
3855     if (XOR (islower (i), ISLOWER (i))
3856         || toupper (i) != TOUPPER (i))
3857       return 2;
3858   return 0;
3860 _ACEOF
3861 rm -f conftest$ac_exeext
3862 if { (ac_try="$ac_link"
3863 case "(($ac_try" in
3864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3865   *) ac_try_echo=$ac_try;;
3866 esac
3867 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3868 $as_echo "$ac_try_echo") >&5
3869   (eval "$ac_link") 2>&5
3870   ac_status=$?
3871   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3872   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3873   { (case "(($ac_try" in
3874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3875   *) ac_try_echo=$ac_try;;
3876 esac
3877 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3878 $as_echo "$ac_try_echo") >&5
3879   (eval "$ac_try") 2>&5
3880   ac_status=$?
3881   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3882   (exit $ac_status); }; }; then
3883   :
3884 else
3885   $as_echo "$as_me: program exited with status $ac_status" >&5
3886 $as_echo "$as_me: failed program was:" >&5
3887 sed 's/^/| /' conftest.$ac_ext >&5
3889 ( exit $ac_status )
3890 ac_cv_header_stdc=no
3891 fi
3892 rm -rf conftest.dSYM
3893 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3894 fi
3897 fi
3898 fi
3899 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3900 $as_echo "$ac_cv_header_stdc" >&6; }
3901 if test $ac_cv_header_stdc = yes; then
3903 cat >>confdefs.h <<\_ACEOF
3904 #define STDC_HEADERS 1
3905 _ACEOF
3907 fi
3909 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3919 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3920                   inttypes.h stdint.h unistd.h
3921 do
3922 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3923 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
3924 $as_echo_n "checking for $ac_header... " >&6; }
3925 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3926   $as_echo_n "(cached) " >&6
3927 else
3928   cat >conftest.$ac_ext <<_ACEOF
3929 /* confdefs.h.  */
3930 _ACEOF
3931 cat confdefs.h >>conftest.$ac_ext
3932 cat >>conftest.$ac_ext <<_ACEOF
3933 /* end confdefs.h.  */
3934 $ac_includes_default
3936 #include <$ac_header>
3937 _ACEOF
3938 rm -f conftest.$ac_objext
3939 if { (ac_try="$ac_compile"
3940 case "(($ac_try" in
3941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3942   *) ac_try_echo=$ac_try;;
3943 esac
3944 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3945 $as_echo "$ac_try_echo") >&5
3946   (eval "$ac_compile") 2>conftest.er1
3947   ac_status=$?
3948   grep -v '^ *+' conftest.er1 >conftest.err
3949   rm -f conftest.er1
3950   cat conftest.err >&5
3951   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3952   (exit $ac_status); } && {
3953          test -z "$ac_c_werror_flag" ||
3954          test ! -s conftest.err
3955        } && test -s conftest.$ac_objext; then
3956   eval "$as_ac_Header=yes"
3957 else
3958   $as_echo "$as_me: failed program was:" >&5
3959 sed 's/^/| /' conftest.$ac_ext >&5
3961         eval "$as_ac_Header=no"
3962 fi
3964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3965 fi
3966 ac_res=`eval 'as_val=${'$as_ac_Header'}
3967                  $as_echo "$as_val"'`
3968                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
3969 $as_echo "$ac_res" >&6; }
3970 as_val=`eval 'as_val=${'$as_ac_Header'}
3971                  $as_echo "$as_val"'`
3972    if test "x$as_val" = x""yes; then
3973   cat >>confdefs.h <<_ACEOF
3974 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3975 _ACEOF
3977 fi
3979 done
3983   if test "${ac_cv_header_minix_config_h+set}" = set; then
3984   { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
3985 $as_echo_n "checking for minix/config.h... " >&6; }
3986 if test "${ac_cv_header_minix_config_h+set}" = set; then
3987   $as_echo_n "(cached) " >&6
3988 fi
3989 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3990 $as_echo "$ac_cv_header_minix_config_h" >&6; }
3991 else
3992   # Is the header compilable?
3993 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3994 $as_echo_n "checking minix/config.h usability... " >&6; }
3995 cat >conftest.$ac_ext <<_ACEOF
3996 /* confdefs.h.  */
3997 _ACEOF
3998 cat confdefs.h >>conftest.$ac_ext
3999 cat >>conftest.$ac_ext <<_ACEOF
4000 /* end confdefs.h.  */
4001 $ac_includes_default
4002 #include <minix/config.h>
4003 _ACEOF
4004 rm -f conftest.$ac_objext
4005 if { (ac_try="$ac_compile"
4006 case "(($ac_try" in
4007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4008   *) ac_try_echo=$ac_try;;
4009 esac
4010 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4011 $as_echo "$ac_try_echo") >&5
4012   (eval "$ac_compile") 2>conftest.er1
4013   ac_status=$?
4014   grep -v '^ *+' conftest.er1 >conftest.err
4015   rm -f conftest.er1
4016   cat conftest.err >&5
4017   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4018   (exit $ac_status); } && {
4019          test -z "$ac_c_werror_flag" ||
4020          test ! -s conftest.err
4021        } && test -s conftest.$ac_objext; then
4022   ac_header_compiler=yes
4023 else
4024   $as_echo "$as_me: failed program was:" >&5
4025 sed 's/^/| /' conftest.$ac_ext >&5
4027         ac_header_compiler=no
4028 fi
4030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4031 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4032 $as_echo "$ac_header_compiler" >&6; }
4034 # Is the header present?
4035 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4036 $as_echo_n "checking minix/config.h presence... " >&6; }
4037 cat >conftest.$ac_ext <<_ACEOF
4038 /* confdefs.h.  */
4039 _ACEOF
4040 cat confdefs.h >>conftest.$ac_ext
4041 cat >>conftest.$ac_ext <<_ACEOF
4042 /* end confdefs.h.  */
4043 #include <minix/config.h>
4044 _ACEOF
4045 if { (ac_try="$ac_cpp conftest.$ac_ext"
4046 case "(($ac_try" in
4047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4048   *) ac_try_echo=$ac_try;;
4049 esac
4050 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4051 $as_echo "$ac_try_echo") >&5
4052   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4053   ac_status=$?
4054   grep -v '^ *+' conftest.er1 >conftest.err
4055   rm -f conftest.er1
4056   cat conftest.err >&5
4057   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4058   (exit $ac_status); } >/dev/null && {
4059          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4060          test ! -s conftest.err
4061        }; then
4062   ac_header_preproc=yes
4063 else
4064   $as_echo "$as_me: failed program was:" >&5
4065 sed 's/^/| /' conftest.$ac_ext >&5
4067   ac_header_preproc=no
4068 fi
4070 rm -f conftest.err conftest.$ac_ext
4071 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4072 $as_echo "$ac_header_preproc" >&6; }
4074 # So?  What about this header?
4075 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4076   yes:no: )
4077     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4078 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4079     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4080 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4081     ac_header_preproc=yes
4082     ;;
4083   no:yes:* )
4084     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4085 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4086     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
4087 $as_echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
4088     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4089 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4090     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
4091 $as_echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
4092     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4093 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4094     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4095 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4097     ;;
4098 esac
4099 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4100 $as_echo_n "checking for minix/config.h... " >&6; }
4101 if test "${ac_cv_header_minix_config_h+set}" = set; then
4102   $as_echo_n "(cached) " >&6
4103 else
4104   ac_cv_header_minix_config_h=$ac_header_preproc
4105 fi
4106 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4107 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4109 fi
4110 if test "x$ac_cv_header_minix_config_h" = x""yes; then
4111   MINIX=yes
4112 else
4113   MINIX=
4114 fi
4117   if test "$MINIX" = yes; then
4119 cat >>confdefs.h <<\_ACEOF
4120 #define _POSIX_SOURCE 1
4121 _ACEOF
4124 cat >>confdefs.h <<\_ACEOF
4125 #define _POSIX_1_SOURCE 2
4126 _ACEOF
4129 cat >>confdefs.h <<\_ACEOF
4130 #define _MINIX 1
4131 _ACEOF
4133   fi
4137   { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4138 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4139 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4140   $as_echo_n "(cached) " >&6
4141 else
4142   cat >conftest.$ac_ext <<_ACEOF
4143 /* confdefs.h.  */
4144 _ACEOF
4145 cat confdefs.h >>conftest.$ac_ext
4146 cat >>conftest.$ac_ext <<_ACEOF
4147 /* end confdefs.h.  */
4149 #         define __EXTENSIONS__ 1
4150           $ac_includes_default
4151 int
4152 main ()
4155   ;
4156   return 0;
4158 _ACEOF
4159 rm -f conftest.$ac_objext
4160 if { (ac_try="$ac_compile"
4161 case "(($ac_try" in
4162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4163   *) ac_try_echo=$ac_try;;
4164 esac
4165 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4166 $as_echo "$ac_try_echo") >&5
4167   (eval "$ac_compile") 2>conftest.er1
4168   ac_status=$?
4169   grep -v '^ *+' conftest.er1 >conftest.err
4170   rm -f conftest.er1
4171   cat conftest.err >&5
4172   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4173   (exit $ac_status); } && {
4174          test -z "$ac_c_werror_flag" ||
4175          test ! -s conftest.err
4176        } && test -s conftest.$ac_objext; then
4177   ac_cv_safe_to_define___extensions__=yes
4178 else
4179   $as_echo "$as_me: failed program was:" >&5
4180 sed 's/^/| /' conftest.$ac_ext >&5
4182         ac_cv_safe_to_define___extensions__=no
4183 fi
4185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4186 fi
4187 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4188 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4189   test $ac_cv_safe_to_define___extensions__ = yes &&
4190     cat >>confdefs.h <<\_ACEOF
4191 #define __EXTENSIONS__ 1
4192 _ACEOF
4194   cat >>confdefs.h <<\_ACEOF
4195 #define _ALL_SOURCE 1
4196 _ACEOF
4198   cat >>confdefs.h <<\_ACEOF
4199 #define _GNU_SOURCE 1
4200 _ACEOF
4202   cat >>confdefs.h <<\_ACEOF
4203 #define _POSIX_PTHREAD_SEMANTICS 1
4204 _ACEOF
4206   cat >>confdefs.h <<\_ACEOF
4207 #define _TANDEM_SOURCE 1
4208 _ACEOF
4211 am__api_version='1.11'
4213 # Find a good install program.  We prefer a C program (faster),
4214 # so one script is as good as another.  But avoid the broken or
4215 # incompatible versions:
4216 # SysV /etc/install, /usr/sbin/install
4217 # SunOS /usr/etc/install
4218 # IRIX /sbin/install
4219 # AIX /bin/install
4220 # AmigaOS /C/install, which installs bootblocks on floppy discs
4221 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4222 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4223 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4224 # OS/2's system install, which has a completely different semantic
4225 # ./install, which can be erroneously created by make from ./install.sh.
4226 # Reject install programs that cannot install multiple files.
4227 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4228 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4229 if test -z "$INSTALL"; then
4230 if test "${ac_cv_path_install+set}" = set; then
4231   $as_echo_n "(cached) " >&6
4232 else
4233   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4234 for as_dir in $PATH
4235 do
4236   IFS=$as_save_IFS
4237   test -z "$as_dir" && as_dir=.
4238   # Account for people who put trailing slashes in PATH elements.
4239 case $as_dir/ in
4240   ./ | .// | /cC/* | \
4241   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4242   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4243   /usr/ucb/* ) ;;
4244   *)
4245     # OSF1 and SCO ODT 3.0 have their own names for install.
4246     # Don't use installbsd from OSF since it installs stuff as root
4247     # by default.
4248     for ac_prog in ginstall scoinst install; do
4249       for ac_exec_ext in '' $ac_executable_extensions; do
4250         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4251           if test $ac_prog = install &&
4252             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4253             # AIX install.  It has an incompatible calling convention.
4254             :
4255           elif test $ac_prog = install &&
4256             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4257             # program-specific install script used by HP pwplus--don't use.
4258             :
4259           else
4260             rm -rf conftest.one conftest.two conftest.dir
4261             echo one > conftest.one
4262             echo two > conftest.two
4263             mkdir conftest.dir
4264             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4265               test -s conftest.one && test -s conftest.two &&
4266               test -s conftest.dir/conftest.one &&
4267               test -s conftest.dir/conftest.two
4268             then
4269               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4270               break 3
4271             fi
4272           fi
4273         fi
4274       done
4275     done
4276     ;;
4277 esac
4279 done
4280 IFS=$as_save_IFS
4282 rm -rf conftest.one conftest.two conftest.dir
4284 fi
4285   if test "${ac_cv_path_install+set}" = set; then
4286     INSTALL=$ac_cv_path_install
4287   else
4288     # As a last resort, use the slow shell script.  Don't cache a
4289     # value for INSTALL within a source directory, because that will
4290     # break other packages using the cache if that directory is
4291     # removed, or if the value is a relative name.
4292     INSTALL=$ac_install_sh
4293   fi
4294 fi
4295 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
4296 $as_echo "$INSTALL" >&6; }
4298 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4299 # It thinks the first close brace ends the variable substitution.
4300 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4302 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4304 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4306 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
4307 $as_echo_n "checking whether build environment is sane... " >&6; }
4308 # Just in case
4309 sleep 1
4310 echo timestamp > conftest.file
4311 # Reject unsafe characters in $srcdir or the absolute working directory
4312 # name.  Accept space and tab only in the latter.
4313 am_lf='
4315 case `pwd` in
4316   *[\\\"\#\$\&\'\`$am_lf]*)
4317     { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
4318 $as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
4319    { (exit 1); exit 1; }; };;
4320 esac
4321 case $srcdir in
4322   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
4323     { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
4324 $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
4325    { (exit 1); exit 1; }; };;
4326 esac
4328 # Do `set' in a subshell so we don't clobber the current shell's
4329 # arguments.  Must try -L first in case configure is actually a
4330 # symlink; some systems play weird games with the mod time of symlinks
4331 # (eg FreeBSD returns the mod time of the symlink's containing
4332 # directory).
4333 if (
4334    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4335    if test "$*" = "X"; then
4336       # -L didn't work.
4337       set X `ls -t "$srcdir/configure" conftest.file`
4338    fi
4339    rm -f conftest.file
4340    if test "$*" != "X $srcdir/configure conftest.file" \
4341       && test "$*" != "X conftest.file $srcdir/configure"; then
4343       # If neither matched, then we have a broken ls.  This can happen
4344       # if, for instance, CONFIG_SHELL is bash and it inherits a
4345       # broken ls alias from the environment.  This has actually
4346       # happened.  Such a system could not be considered "sane".
4347       { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
4348 alias in your environment" >&5
4349 $as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
4350 alias in your environment" >&2;}
4351    { (exit 1); exit 1; }; }
4352    fi
4354    test "$2" = conftest.file
4355    )
4356 then
4357    # Ok.
4358    :
4359 else
4360    { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
4361 Check your system clock" >&5
4362 $as_echo "$as_me: error: newly created file is older than distributed files!
4363 Check your system clock" >&2;}
4364    { (exit 1); exit 1; }; }
4365 fi
4366 { $as_echo "$as_me:$LINENO: result: yes" >&5
4367 $as_echo "yes" >&6; }
4368 test "$program_prefix" != NONE &&
4369   program_transform_name="s&^&$program_prefix&;$program_transform_name"
4370 # Use a double $ so make ignores it.
4371 test "$program_suffix" != NONE &&
4372   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4373 # Double any \ or $.
4374 # By default was `s,x,x', remove it if useless.
4375 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4376 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4378 # expand $ac_aux_dir to an absolute path
4379 am_aux_dir=`cd $ac_aux_dir && pwd`
4381 if test x"${MISSING+set}" != xset; then
4382   case $am_aux_dir in
4383   *\ * | *\     *)
4384     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4385   *)
4386     MISSING="\${SHELL} $am_aux_dir/missing" ;;
4387   esac
4388 fi
4389 # Use eval to expand $SHELL
4390 if eval "$MISSING --run true"; then
4391   am_missing_run="$MISSING --run "
4392 else
4393   am_missing_run=
4394   { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
4395 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4396 fi
4398 if test x"${install_sh}" != xset; then
4399   case $am_aux_dir in
4400   *\ * | *\     *)
4401     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4402   *)
4403     install_sh="\${SHELL} $am_aux_dir/install-sh"
4404   esac
4405 fi
4407 # Installed binaries are usually stripped using `strip' when the user
4408 # run `make install-strip'.  However `strip' might not be the right
4409 # tool to use in cross-compilation environments, therefore Automake
4410 # will honor the `STRIP' environment variable to overrule this program.
4411 if test "$cross_compiling" != no; then
4412   if test -n "$ac_tool_prefix"; then
4413   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4414 set dummy ${ac_tool_prefix}strip; ac_word=$2
4415 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4416 $as_echo_n "checking for $ac_word... " >&6; }
4417 if test "${ac_cv_prog_STRIP+set}" = set; then
4418   $as_echo_n "(cached) " >&6
4419 else
4420   if test -n "$STRIP"; then
4421   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4422 else
4423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4424 for as_dir in $PATH
4425 do
4426   IFS=$as_save_IFS
4427   test -z "$as_dir" && as_dir=.
4428   for ac_exec_ext in '' $ac_executable_extensions; do
4429   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4430     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4431     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4432     break 2
4433   fi
4434 done
4435 done
4436 IFS=$as_save_IFS
4438 fi
4439 fi
4440 STRIP=$ac_cv_prog_STRIP
4441 if test -n "$STRIP"; then
4442   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
4443 $as_echo "$STRIP" >&6; }
4444 else
4445   { $as_echo "$as_me:$LINENO: result: no" >&5
4446 $as_echo "no" >&6; }
4447 fi
4450 fi
4451 if test -z "$ac_cv_prog_STRIP"; then
4452   ac_ct_STRIP=$STRIP
4453   # Extract the first word of "strip", so it can be a program name with args.
4454 set dummy strip; ac_word=$2
4455 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4456 $as_echo_n "checking for $ac_word... " >&6; }
4457 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4458   $as_echo_n "(cached) " >&6
4459 else
4460   if test -n "$ac_ct_STRIP"; then
4461   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4462 else
4463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4464 for as_dir in $PATH
4465 do
4466   IFS=$as_save_IFS
4467   test -z "$as_dir" && as_dir=.
4468   for ac_exec_ext in '' $ac_executable_extensions; do
4469   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4470     ac_cv_prog_ac_ct_STRIP="strip"
4471     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4472     break 2
4473   fi
4474 done
4475 done
4476 IFS=$as_save_IFS
4478 fi
4479 fi
4480 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4481 if test -n "$ac_ct_STRIP"; then
4482   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4483 $as_echo "$ac_ct_STRIP" >&6; }
4484 else
4485   { $as_echo "$as_me:$LINENO: result: no" >&5
4486 $as_echo "no" >&6; }
4487 fi
4489   if test "x$ac_ct_STRIP" = x; then
4490     STRIP=":"
4491   else
4492     case $cross_compiling:$ac_tool_warned in
4493 yes:)
4494 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4495 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4496 ac_tool_warned=yes ;;
4497 esac
4498     STRIP=$ac_ct_STRIP
4499   fi
4500 else
4501   STRIP="$ac_cv_prog_STRIP"
4502 fi
4504 fi
4505 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4507 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
4508 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4509 if test -z "$MKDIR_P"; then
4510   if test "${ac_cv_path_mkdir+set}" = set; then
4511   $as_echo_n "(cached) " >&6
4512 else
4513   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4514 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4515 do
4516   IFS=$as_save_IFS
4517   test -z "$as_dir" && as_dir=.
4518   for ac_prog in mkdir gmkdir; do
4519          for ac_exec_ext in '' $ac_executable_extensions; do
4520            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4521            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4522              'mkdir (GNU coreutils) '* | \
4523              'mkdir (coreutils) '* | \
4524              'mkdir (fileutils) '4.1*)
4525                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4526                break 3;;
4527            esac
4528          done
4529        done
4530 done
4531 IFS=$as_save_IFS
4533 fi
4535   if test "${ac_cv_path_mkdir+set}" = set; then
4536     MKDIR_P="$ac_cv_path_mkdir -p"
4537   else
4538     # As a last resort, use the slow shell script.  Don't cache a
4539     # value for MKDIR_P within a source directory, because that will
4540     # break other packages using the cache if that directory is
4541     # removed, or if the value is a relative name.
4542     test -d ./--version && rmdir ./--version
4543     MKDIR_P="$ac_install_sh -d"
4544   fi
4545 fi
4546 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
4547 $as_echo "$MKDIR_P" >&6; }
4549 mkdir_p="$MKDIR_P"
4550 case $mkdir_p in
4551   [\\/$]* | ?:[\\/]*) ;;
4552   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
4553 esac
4555 for ac_prog in gawk mawk nawk awk
4556 do
4557   # Extract the first word of "$ac_prog", so it can be a program name with args.
4558 set dummy $ac_prog; ac_word=$2
4559 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4560 $as_echo_n "checking for $ac_word... " >&6; }
4561 if test "${ac_cv_prog_AWK+set}" = set; then
4562   $as_echo_n "(cached) " >&6
4563 else
4564   if test -n "$AWK"; then
4565   ac_cv_prog_AWK="$AWK" # Let the user override the test.
4566 else
4567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4568 for as_dir in $PATH
4569 do
4570   IFS=$as_save_IFS
4571   test -z "$as_dir" && as_dir=.
4572   for ac_exec_ext in '' $ac_executable_extensions; do
4573   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4574     ac_cv_prog_AWK="$ac_prog"
4575     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4576     break 2
4577   fi
4578 done
4579 done
4580 IFS=$as_save_IFS
4582 fi
4583 fi
4584 AWK=$ac_cv_prog_AWK
4585 if test -n "$AWK"; then
4586   { $as_echo "$as_me:$LINENO: result: $AWK" >&5
4587 $as_echo "$AWK" >&6; }
4588 else
4589   { $as_echo "$as_me:$LINENO: result: no" >&5
4590 $as_echo "no" >&6; }
4591 fi
4594   test -n "$AWK" && break
4595 done
4597 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4598 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4599 set x ${MAKE-make}
4600 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4601 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
4602   $as_echo_n "(cached) " >&6
4603 else
4604   cat >conftest.make <<\_ACEOF
4605 SHELL = /bin/sh
4606 all:
4607         @echo '@@@%%%=$(MAKE)=@@@%%%'
4608 _ACEOF
4609 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4610 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4611   *@@@%%%=?*=@@@%%%*)
4612     eval ac_cv_prog_make_${ac_make}_set=yes;;
4613   *)
4614     eval ac_cv_prog_make_${ac_make}_set=no;;
4615 esac
4616 rm -f conftest.make
4617 fi
4618 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4619   { $as_echo "$as_me:$LINENO: result: yes" >&5
4620 $as_echo "yes" >&6; }
4621   SET_MAKE=
4622 else
4623   { $as_echo "$as_me:$LINENO: result: no" >&5
4624 $as_echo "no" >&6; }
4625   SET_MAKE="MAKE=${MAKE-make}"
4626 fi
4628 rm -rf .tst 2>/dev/null
4629 mkdir .tst 2>/dev/null
4630 if test -d .tst; then
4631   am__leading_dot=.
4632 else
4633   am__leading_dot=_
4634 fi
4635 rmdir .tst 2>/dev/null
4637 DEPDIR="${am__leading_dot}deps"
4639 ac_config_commands="$ac_config_commands depfiles"
4642 am_make=${MAKE-make}
4643 cat > confinc << 'END'
4644 am__doit:
4645         @echo this is the am__doit target
4646 .PHONY: am__doit
4647 END
4648 # If we don't find an include directive, just comment out the code.
4649 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4650 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4651 am__include="#"
4652 am__quote=
4653 _am_result=none
4654 # First try GNU make style include.
4655 echo "include confinc" > confmf
4656 # Ignore all kinds of additional output from `make'.
4657 case `$am_make -s -f confmf 2> /dev/null` in #(
4658 *the\ am__doit\ target*)
4659   am__include=include
4660   am__quote=
4661   _am_result=GNU
4662   ;;
4663 esac
4664 # Now try BSD make style include.
4665 if test "$am__include" = "#"; then
4666    echo '.include "confinc"' > confmf
4667    case `$am_make -s -f confmf 2> /dev/null` in #(
4668    *the\ am__doit\ target*)
4669      am__include=.include
4670      am__quote="\""
4671      _am_result=BSD
4672      ;;
4673    esac
4674 fi
4677 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
4678 $as_echo "$_am_result" >&6; }
4679 rm -f confinc confmf
4681 # Check whether --enable-dependency-tracking was given.
4682 if test "${enable_dependency_tracking+set}" = set; then
4683   enableval=$enable_dependency_tracking;
4684 fi
4686 if test "x$enable_dependency_tracking" != xno; then
4687   am_depcomp="$ac_aux_dir/depcomp"
4688   AMDEPBACKSLASH='\'
4689 fi
4690  if test "x$enable_dependency_tracking" != xno; then
4691   AMDEP_TRUE=
4692   AMDEP_FALSE='#'
4693 else
4694   AMDEP_TRUE='#'
4695   AMDEP_FALSE=
4696 fi
4699 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4700   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4701   # is not polluted with repeated "-I."
4702   am__isrc=' -I$(srcdir)'
4703   # test to see if srcdir already configured
4704   if test -f $srcdir/config.status; then
4705     { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
4706 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
4707    { (exit 1); exit 1; }; }
4708   fi
4709 fi
4711 # test whether we have cygpath
4712 if test -z "$CYGPATH_W"; then
4713   if (cygpath --version) >/dev/null 2>/dev/null; then
4714     CYGPATH_W='cygpath -w'
4715   else
4716     CYGPATH_W=echo
4717   fi
4718 fi
4721 # Define the identity of the package.
4722  PACKAGE='rrdtool'
4723  VERSION='1.4.3'
4726 cat >>confdefs.h <<_ACEOF
4727 #define PACKAGE "$PACKAGE"
4728 _ACEOF
4731 cat >>confdefs.h <<_ACEOF
4732 #define VERSION "$VERSION"
4733 _ACEOF
4735 # Some tools Automake needs.
4737 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4740 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4743 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4746 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4749 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4751 # We need awk for the "check" target.  The system "awk" is bad on
4752 # some platforms.
4753 # Always define AMTAR for backward compatibility.
4755 AMTAR=${AMTAR-"${am_missing_run}tar"}
4757 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4762 depcc="$CC"   am_compiler_list=
4764 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4765 $as_echo_n "checking dependency style of $depcc... " >&6; }
4766 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4767   $as_echo_n "(cached) " >&6
4768 else
4769   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4770   # We make a subdir and do the tests there.  Otherwise we can end up
4771   # making bogus files that we don't know about and never remove.  For
4772   # instance it was reported that on HP-UX the gcc test will end up
4773   # making a dummy file named `D' -- because `-MD' means `put the output
4774   # in D'.
4775   mkdir conftest.dir
4776   # Copy depcomp to subdir because otherwise we won't find it if we're
4777   # using a relative directory.
4778   cp "$am_depcomp" conftest.dir
4779   cd conftest.dir
4780   # We will build objects and dependencies in a subdirectory because
4781   # it helps to detect inapplicable dependency modes.  For instance
4782   # both Tru64's cc and ICC support -MD to output dependencies as a
4783   # side effect of compilation, but ICC will put the dependencies in
4784   # the current directory while Tru64 will put them in the object
4785   # directory.
4786   mkdir sub
4788   am_cv_CC_dependencies_compiler_type=none
4789   if test "$am_compiler_list" = ""; then
4790      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4791   fi
4792   am__universal=false
4793   case " $depcc " in #(
4794      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4795      esac
4797   for depmode in $am_compiler_list; do
4798     # Setup a source with many dependencies, because some compilers
4799     # like to wrap large dependency lists on column 80 (with \), and
4800     # we should not choose a depcomp mode which is confused by this.
4801     #
4802     # We need to recreate these files for each test, as the compiler may
4803     # overwrite some of them when testing with obscure command lines.
4804     # This happens at least with the AIX C compiler.
4805     : > sub/conftest.c
4806     for i in 1 2 3 4 5 6; do
4807       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4808       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4809       # Solaris 8's {/usr,}/bin/sh.
4810       touch sub/conftst$i.h
4811     done
4812     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4814     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4815     # mode.  It turns out that the SunPro C++ compiler does not properly
4816     # handle `-M -o', and we need to detect this.  Also, some Intel
4817     # versions had trouble with output in subdirs
4818     am__obj=sub/conftest.${OBJEXT-o}
4819     am__minus_obj="-o $am__obj"
4820     case $depmode in
4821     gcc)
4822       # This depmode causes a compiler race in universal mode.
4823       test "$am__universal" = false || continue
4824       ;;
4825     nosideeffect)
4826       # after this tag, mechanisms are not by side-effect, so they'll
4827       # only be used when explicitly requested
4828       if test "x$enable_dependency_tracking" = xyes; then
4829         continue
4830       else
4831         break
4832       fi
4833       ;;
4834     msvisualcpp | msvcmsys)
4835       # This compiler won't grok `-c -o', but also, the minuso test has
4836       # not run yet.  These depmodes are late enough in the game, and
4837       # so weak that their functioning should not be impacted.
4838       am__obj=conftest.${OBJEXT-o}
4839       am__minus_obj=
4840       ;;
4841     none) break ;;
4842     esac
4843     if depmode=$depmode \
4844        source=sub/conftest.c object=$am__obj \
4845        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4846        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4847          >/dev/null 2>conftest.err &&
4848        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4849        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4850        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4851        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4852       # icc doesn't choke on unknown options, it will just issue warnings
4853       # or remarks (even with -Werror).  So we grep stderr for any message
4854       # that says an option was ignored or not supported.
4855       # When given -MP, icc 7.0 and 7.1 complain thusly:
4856       #   icc: Command line warning: ignoring option '-M'; no argument required
4857       # The diagnosis changed in icc 8.0:
4858       #   icc: Command line remark: option '-MP' not supported
4859       if (grep 'ignoring option' conftest.err ||
4860           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4861         am_cv_CC_dependencies_compiler_type=$depmode
4862         break
4863       fi
4864     fi
4865   done
4867   cd ..
4868   rm -rf conftest.dir
4869 else
4870   am_cv_CC_dependencies_compiler_type=none
4871 fi
4873 fi
4874 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4875 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4876 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4878  if
4879   test "x$enable_dependency_tracking" != xno \
4880   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4881   am__fastdepCC_TRUE=
4882   am__fastdepCC_FALSE='#'
4883 else
4884   am__fastdepCC_TRUE='#'
4885   am__fastdepCC_FALSE=
4886 fi
4891 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4892 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4893     # Check whether --enable-maintainer-mode was given.
4894 if test "${enable_maintainer_mode+set}" = set; then
4895   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4896 else
4897   USE_MAINTAINER_MODE=no
4898 fi
4900   { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4901 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4902    if test $USE_MAINTAINER_MODE = yes; then
4903   MAINTAINER_MODE_TRUE=
4904   MAINTAINER_MODE_FALSE='#'
4905 else
4906   MAINTAINER_MODE_TRUE='#'
4907   MAINTAINER_MODE_FALSE=
4908 fi
4910   MAINT=$MAINTAINER_MODE_TRUE
4913 # Enable silent build rules by default, requires at least
4914 # Automake-1.11. Disable by either passing --disable-silent-rules to
4915 # configure or passing V=1 to make
4916 # Check whether --enable-silent-rules was given.
4917 if test "${enable_silent_rules+set}" = set; then
4918   enableval=$enable_silent_rules;
4919 fi
4921 case $enable_silent_rules in
4922 yes) AM_DEFAULT_VERBOSITY=0;;
4923 no)  AM_DEFAULT_VERBOSITY=1;;
4924 *)   AM_DEFAULT_VERBOSITY=0;;
4925 esac
4926 AM_BACKSLASH='\'
4928 ac_config_headers="$ac_config_headers rrd_config.h"
4949 cat >>confdefs.h <<_ACEOF
4950 #define RRDGRAPH_YLEGEND_ANGLE ${RRDGRAPH_YLEGEND_ANGLE:-90.0}
4951 _ACEOF
4954 # Check whether --enable-rrdcgi was given.
4955 if test "${enable_rrdcgi+set}" = set; then
4956   enableval=$enable_rrdcgi;
4957 else
4958   enable_rrdcgi=yes
4959 fi
4963 # Check whether --with-rrd-default-font was given.
4964 if test "${with_rrd_default_font+set}" = set; then
4965   withval=$with_rrd_default_font; RRD_DEFAULT_FONT=$withval
4966 else
4968   if test -d ${WINDIR:-nodir}/cour.ttf ; then
4969         RRD_DEFAULT_FONT=`cd $WINDIR;pwd`/cour.ttf
4970   else
4971         RRD_DEFAULT_FONT='"DejaVu Sans Mono,Bitstream Vera Sans Mono,monospace,Courier"'
4972   fi
4974 fi
4977 # Check whether --enable-mmap was given.
4978 if test "${enable_mmap+set}" = set; then
4979   enableval=$enable_mmap;
4980 else
4981   enable_mmap=yes
4982 fi
4985 # Check whether --enable-pthread was given.
4986 if test "${enable_pthread+set}" = set; then
4987   enableval=$enable_pthread;
4988 else
4989   enable_pthread=yes
4990 fi
4993 # Check whether --enable-static-programs was given.
4994 if test "${enable_static_programs+set}" = set; then
4995   enableval=$enable_static_programs; case "${enableval}" in
4996        yes) staticprogs=yes ;;
4997        no)  staticprogs=no ;;
4998        *) { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-static-programs" >&5
4999 $as_echo "$as_me: error: bad value ${enableval} for --enable-static-programs" >&2;}
5000    { (exit 1); exit 1; }; } ;;
5001      esac
5002 else
5003   staticprogs=no
5004 fi
5006  if test "x$staticprogs" = "xyes"; then
5007   STATIC_PROGRAMS_TRUE=
5008   STATIC_PROGRAMS_FALSE='#'
5009 else
5010   STATIC_PROGRAMS_TRUE='#'
5011   STATIC_PROGRAMS_FALSE=
5012 fi
5017 case $TERM in
5018        #   for the most important terminal types we directly know the sequences
5019        xterm|xterm*|vt220|vt220*)
5020                T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
5021                T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
5022        ;;
5023        vt100|vt100*|cygwin)
5024                T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
5025                T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
5026        ;;
5027        *)
5028                T_MD=''
5029                T_ME=''
5030        ;;
5031 esac
5032   { $as_echo "$as_me:$LINENO: result: " >&5
5033 $as_echo "" >&6; }
5034   { $as_echo "$as_me:$LINENO: result: ${T_MD}Audit Compilation Environment${T_ME}" >&5
5035 $as_echo "${T_MD}Audit Compilation Environment${T_ME}" >&6; }
5039 ac_ext=c
5040 ac_cpp='$CPP $CPPFLAGS'
5041 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5042 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5043 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5044 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5045 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5046 # On Suns, sometimes $CPP names a directory.
5047 if test -n "$CPP" && test -d "$CPP"; then
5048   CPP=
5049 fi
5050 if test -z "$CPP"; then
5051   if test "${ac_cv_prog_CPP+set}" = set; then
5052   $as_echo_n "(cached) " >&6
5053 else
5054       # Double quotes because CPP needs to be expanded
5055     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5056     do
5057       ac_preproc_ok=false
5058 for ac_c_preproc_warn_flag in '' yes
5059 do
5060   # Use a header file that comes with gcc, so configuring glibc
5061   # with a fresh cross-compiler works.
5062   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5063   # <limits.h> exists even on freestanding compilers.
5064   # On the NeXT, cc -E runs the code through the compiler's parser,
5065   # not just through cpp. "Syntax error" is here to catch this case.
5066   cat >conftest.$ac_ext <<_ACEOF
5067 /* confdefs.h.  */
5068 _ACEOF
5069 cat confdefs.h >>conftest.$ac_ext
5070 cat >>conftest.$ac_ext <<_ACEOF
5071 /* end confdefs.h.  */
5072 #ifdef __STDC__
5073 # include <limits.h>
5074 #else
5075 # include <assert.h>
5076 #endif
5077                      Syntax error
5078 _ACEOF
5079 if { (ac_try="$ac_cpp conftest.$ac_ext"
5080 case "(($ac_try" in
5081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5082   *) ac_try_echo=$ac_try;;
5083 esac
5084 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5085 $as_echo "$ac_try_echo") >&5
5086   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5087   ac_status=$?
5088   grep -v '^ *+' conftest.er1 >conftest.err
5089   rm -f conftest.er1
5090   cat conftest.err >&5
5091   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5092   (exit $ac_status); } >/dev/null && {
5093          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5094          test ! -s conftest.err
5095        }; then
5096   :
5097 else
5098   $as_echo "$as_me: failed program was:" >&5
5099 sed 's/^/| /' conftest.$ac_ext >&5
5101   # Broken: fails on valid input.
5102 continue
5103 fi
5105 rm -f conftest.err conftest.$ac_ext
5107   # OK, works on sane cases.  Now check whether nonexistent headers
5108   # can be detected and how.
5109   cat >conftest.$ac_ext <<_ACEOF
5110 /* confdefs.h.  */
5111 _ACEOF
5112 cat confdefs.h >>conftest.$ac_ext
5113 cat >>conftest.$ac_ext <<_ACEOF
5114 /* end confdefs.h.  */
5115 #include <ac_nonexistent.h>
5116 _ACEOF
5117 if { (ac_try="$ac_cpp conftest.$ac_ext"
5118 case "(($ac_try" in
5119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5120   *) ac_try_echo=$ac_try;;
5121 esac
5122 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5123 $as_echo "$ac_try_echo") >&5
5124   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5125   ac_status=$?
5126   grep -v '^ *+' conftest.er1 >conftest.err
5127   rm -f conftest.er1
5128   cat conftest.err >&5
5129   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5130   (exit $ac_status); } >/dev/null && {
5131          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5132          test ! -s conftest.err
5133        }; then
5134   # Broken: success on invalid input.
5135 continue
5136 else
5137   $as_echo "$as_me: failed program was:" >&5
5138 sed 's/^/| /' conftest.$ac_ext >&5
5140   # Passes both tests.
5141 ac_preproc_ok=:
5142 break
5143 fi
5145 rm -f conftest.err conftest.$ac_ext
5147 done
5148 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5149 rm -f conftest.err conftest.$ac_ext
5150 if $ac_preproc_ok; then
5151   break
5152 fi
5154     done
5155     ac_cv_prog_CPP=$CPP
5157 fi
5158   CPP=$ac_cv_prog_CPP
5159 else
5160   ac_cv_prog_CPP=$CPP
5161 fi
5162 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
5163 $as_echo "$CPP" >&6; }
5164 ac_preproc_ok=false
5165 for ac_c_preproc_warn_flag in '' yes
5166 do
5167   # Use a header file that comes with gcc, so configuring glibc
5168   # with a fresh cross-compiler works.
5169   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5170   # <limits.h> exists even on freestanding compilers.
5171   # On the NeXT, cc -E runs the code through the compiler's parser,
5172   # not just through cpp. "Syntax error" is here to catch this case.
5173   cat >conftest.$ac_ext <<_ACEOF
5174 /* confdefs.h.  */
5175 _ACEOF
5176 cat confdefs.h >>conftest.$ac_ext
5177 cat >>conftest.$ac_ext <<_ACEOF
5178 /* end confdefs.h.  */
5179 #ifdef __STDC__
5180 # include <limits.h>
5181 #else
5182 # include <assert.h>
5183 #endif
5184                      Syntax error
5185 _ACEOF
5186 if { (ac_try="$ac_cpp conftest.$ac_ext"
5187 case "(($ac_try" in
5188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5189   *) ac_try_echo=$ac_try;;
5190 esac
5191 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5192 $as_echo "$ac_try_echo") >&5
5193   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5194   ac_status=$?
5195   grep -v '^ *+' conftest.er1 >conftest.err
5196   rm -f conftest.er1
5197   cat conftest.err >&5
5198   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5199   (exit $ac_status); } >/dev/null && {
5200          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5201          test ! -s conftest.err
5202        }; then
5203   :
5204 else
5205   $as_echo "$as_me: failed program was:" >&5
5206 sed 's/^/| /' conftest.$ac_ext >&5
5208   # Broken: fails on valid input.
5209 continue
5210 fi
5212 rm -f conftest.err conftest.$ac_ext
5214   # OK, works on sane cases.  Now check whether nonexistent headers
5215   # can be detected and how.
5216   cat >conftest.$ac_ext <<_ACEOF
5217 /* confdefs.h.  */
5218 _ACEOF
5219 cat confdefs.h >>conftest.$ac_ext
5220 cat >>conftest.$ac_ext <<_ACEOF
5221 /* end confdefs.h.  */
5222 #include <ac_nonexistent.h>
5223 _ACEOF
5224 if { (ac_try="$ac_cpp conftest.$ac_ext"
5225 case "(($ac_try" in
5226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5227   *) ac_try_echo=$ac_try;;
5228 esac
5229 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5230 $as_echo "$ac_try_echo") >&5
5231   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5232   ac_status=$?
5233   grep -v '^ *+' conftest.er1 >conftest.err
5234   rm -f conftest.er1
5235   cat conftest.err >&5
5236   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5237   (exit $ac_status); } >/dev/null && {
5238          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5239          test ! -s conftest.err
5240        }; then
5241   # Broken: success on invalid input.
5242 continue
5243 else
5244   $as_echo "$as_me: failed program was:" >&5
5245 sed 's/^/| /' conftest.$ac_ext >&5
5247   # Passes both tests.
5248 ac_preproc_ok=:
5249 break
5250 fi
5252 rm -f conftest.err conftest.$ac_ext
5254 done
5255 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5256 rm -f conftest.err conftest.$ac_ext
5257 if $ac_preproc_ok; then
5258   :
5259 else
5260   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5261 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5262 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5263 See \`config.log' for more details." >&5
5264 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5265 See \`config.log' for more details." >&2;}
5266    { (exit 1); exit 1; }; }; }
5267 fi
5269 ac_ext=c
5270 ac_cpp='$CPP $CPPFLAGS'
5271 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5272 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5273 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5275 ac_ext=c
5276 ac_cpp='$CPP $CPPFLAGS'
5277 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5278 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5279 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5280 if test -n "$ac_tool_prefix"; then
5281   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5282 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5283 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5284 $as_echo_n "checking for $ac_word... " >&6; }
5285 if test "${ac_cv_prog_CC+set}" = set; then
5286   $as_echo_n "(cached) " >&6
5287 else
5288   if test -n "$CC"; then
5289   ac_cv_prog_CC="$CC" # Let the user override the test.
5290 else
5291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5292 for as_dir in $PATH
5293 do
5294   IFS=$as_save_IFS
5295   test -z "$as_dir" && as_dir=.
5296   for ac_exec_ext in '' $ac_executable_extensions; do
5297   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5298     ac_cv_prog_CC="${ac_tool_prefix}gcc"
5299     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5300     break 2
5301   fi
5302 done
5303 done
5304 IFS=$as_save_IFS
5306 fi
5307 fi
5308 CC=$ac_cv_prog_CC
5309 if test -n "$CC"; then
5310   { $as_echo "$as_me:$LINENO: result: $CC" >&5
5311 $as_echo "$CC" >&6; }
5312 else
5313   { $as_echo "$as_me:$LINENO: result: no" >&5
5314 $as_echo "no" >&6; }
5315 fi
5318 fi
5319 if test -z "$ac_cv_prog_CC"; then
5320   ac_ct_CC=$CC
5321   # Extract the first word of "gcc", so it can be a program name with args.
5322 set dummy gcc; ac_word=$2
5323 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5324 $as_echo_n "checking for $ac_word... " >&6; }
5325 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5326   $as_echo_n "(cached) " >&6
5327 else
5328   if test -n "$ac_ct_CC"; then
5329   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5330 else
5331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5332 for as_dir in $PATH
5333 do
5334   IFS=$as_save_IFS
5335   test -z "$as_dir" && as_dir=.
5336   for ac_exec_ext in '' $ac_executable_extensions; do
5337   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5338     ac_cv_prog_ac_ct_CC="gcc"
5339     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5340     break 2
5341   fi
5342 done
5343 done
5344 IFS=$as_save_IFS
5346 fi
5347 fi
5348 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5349 if test -n "$ac_ct_CC"; then
5350   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5351 $as_echo "$ac_ct_CC" >&6; }
5352 else
5353   { $as_echo "$as_me:$LINENO: result: no" >&5
5354 $as_echo "no" >&6; }
5355 fi
5357   if test "x$ac_ct_CC" = x; then
5358     CC=""
5359   else
5360     case $cross_compiling:$ac_tool_warned in
5361 yes:)
5362 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5363 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5364 ac_tool_warned=yes ;;
5365 esac
5366     CC=$ac_ct_CC
5367   fi
5368 else
5369   CC="$ac_cv_prog_CC"
5370 fi
5372 if test -z "$CC"; then
5373           if test -n "$ac_tool_prefix"; then
5374     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5375 set dummy ${ac_tool_prefix}cc; ac_word=$2
5376 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5377 $as_echo_n "checking for $ac_word... " >&6; }
5378 if test "${ac_cv_prog_CC+set}" = set; then
5379   $as_echo_n "(cached) " >&6
5380 else
5381   if test -n "$CC"; then
5382   ac_cv_prog_CC="$CC" # Let the user override the test.
5383 else
5384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5385 for as_dir in $PATH
5386 do
5387   IFS=$as_save_IFS
5388   test -z "$as_dir" && as_dir=.
5389   for ac_exec_ext in '' $ac_executable_extensions; do
5390   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5391     ac_cv_prog_CC="${ac_tool_prefix}cc"
5392     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5393     break 2
5394   fi
5395 done
5396 done
5397 IFS=$as_save_IFS
5399 fi
5400 fi
5401 CC=$ac_cv_prog_CC
5402 if test -n "$CC"; then
5403   { $as_echo "$as_me:$LINENO: result: $CC" >&5
5404 $as_echo "$CC" >&6; }
5405 else
5406   { $as_echo "$as_me:$LINENO: result: no" >&5
5407 $as_echo "no" >&6; }
5408 fi
5411   fi
5412 fi
5413 if test -z "$CC"; then
5414   # Extract the first word of "cc", so it can be a program name with args.
5415 set dummy cc; ac_word=$2
5416 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5417 $as_echo_n "checking for $ac_word... " >&6; }
5418 if test "${ac_cv_prog_CC+set}" = set; then
5419   $as_echo_n "(cached) " >&6
5420 else
5421   if test -n "$CC"; then
5422   ac_cv_prog_CC="$CC" # Let the user override the test.
5423 else
5424   ac_prog_rejected=no
5425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5426 for as_dir in $PATH
5427 do
5428   IFS=$as_save_IFS
5429   test -z "$as_dir" && as_dir=.
5430   for ac_exec_ext in '' $ac_executable_extensions; do
5431   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5432     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5433        ac_prog_rejected=yes
5434        continue
5435      fi
5436     ac_cv_prog_CC="cc"
5437     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5438     break 2
5439   fi
5440 done
5441 done
5442 IFS=$as_save_IFS
5444 if test $ac_prog_rejected = yes; then
5445   # We found a bogon in the path, so make sure we never use it.
5446   set dummy $ac_cv_prog_CC
5447   shift
5448   if test $# != 0; then
5449     # We chose a different compiler from the bogus one.
5450     # However, it has the same basename, so the bogon will be chosen
5451     # first if we set CC to just the basename; use the full file name.
5452     shift
5453     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5454   fi
5455 fi
5456 fi
5457 fi
5458 CC=$ac_cv_prog_CC
5459 if test -n "$CC"; then
5460   { $as_echo "$as_me:$LINENO: result: $CC" >&5
5461 $as_echo "$CC" >&6; }
5462 else
5463   { $as_echo "$as_me:$LINENO: result: no" >&5
5464 $as_echo "no" >&6; }
5465 fi
5468 fi
5469 if test -z "$CC"; then
5470   if test -n "$ac_tool_prefix"; then
5471   for ac_prog in cl.exe
5472   do
5473     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5474 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5475 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5476 $as_echo_n "checking for $ac_word... " >&6; }
5477 if test "${ac_cv_prog_CC+set}" = set; then
5478   $as_echo_n "(cached) " >&6
5479 else
5480   if test -n "$CC"; then
5481   ac_cv_prog_CC="$CC" # Let the user override the test.
5482 else
5483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5484 for as_dir in $PATH
5485 do
5486   IFS=$as_save_IFS
5487   test -z "$as_dir" && as_dir=.
5488   for ac_exec_ext in '' $ac_executable_extensions; do
5489   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5490     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5491     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5492     break 2
5493   fi
5494 done
5495 done
5496 IFS=$as_save_IFS
5498 fi
5499 fi
5500 CC=$ac_cv_prog_CC
5501 if test -n "$CC"; then
5502   { $as_echo "$as_me:$LINENO: result: $CC" >&5
5503 $as_echo "$CC" >&6; }
5504 else
5505   { $as_echo "$as_me:$LINENO: result: no" >&5
5506 $as_echo "no" >&6; }
5507 fi
5510     test -n "$CC" && break
5511   done
5512 fi
5513 if test -z "$CC"; then
5514   ac_ct_CC=$CC
5515   for ac_prog in cl.exe
5516 do
5517   # Extract the first word of "$ac_prog", so it can be a program name with args.
5518 set dummy $ac_prog; ac_word=$2
5519 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5520 $as_echo_n "checking for $ac_word... " >&6; }
5521 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5522   $as_echo_n "(cached) " >&6
5523 else
5524   if test -n "$ac_ct_CC"; then
5525   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5526 else
5527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5528 for as_dir in $PATH
5529 do
5530   IFS=$as_save_IFS
5531   test -z "$as_dir" && as_dir=.
5532   for ac_exec_ext in '' $ac_executable_extensions; do
5533   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5534     ac_cv_prog_ac_ct_CC="$ac_prog"
5535     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5536     break 2
5537   fi
5538 done
5539 done
5540 IFS=$as_save_IFS
5542 fi
5543 fi
5544 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5545 if test -n "$ac_ct_CC"; then
5546   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5547 $as_echo "$ac_ct_CC" >&6; }
5548 else
5549   { $as_echo "$as_me:$LINENO: result: no" >&5
5550 $as_echo "no" >&6; }
5551 fi
5554   test -n "$ac_ct_CC" && break
5555 done
5557   if test "x$ac_ct_CC" = x; then
5558     CC=""
5559   else
5560     case $cross_compiling:$ac_tool_warned in
5561 yes:)
5562 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5563 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5564 ac_tool_warned=yes ;;
5565 esac
5566     CC=$ac_ct_CC
5567   fi
5568 fi
5570 fi
5573 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5574 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5575 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5576 See \`config.log' for more details." >&5
5577 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
5578 See \`config.log' for more details." >&2;}
5579    { (exit 1); exit 1; }; }; }
5581 # Provide some information about the compiler.
5582 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
5583 set X $ac_compile
5584 ac_compiler=$2
5585 { (ac_try="$ac_compiler --version >&5"
5586 case "(($ac_try" in
5587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5588   *) ac_try_echo=$ac_try;;
5589 esac
5590 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5591 $as_echo "$ac_try_echo") >&5
5592   (eval "$ac_compiler --version >&5") 2>&5
5593   ac_status=$?
5594   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5595   (exit $ac_status); }
5596 { (ac_try="$ac_compiler -v >&5"
5597 case "(($ac_try" in
5598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5599   *) ac_try_echo=$ac_try;;
5600 esac
5601 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5602 $as_echo "$ac_try_echo") >&5
5603   (eval "$ac_compiler -v >&5") 2>&5
5604   ac_status=$?
5605   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5606   (exit $ac_status); }
5607 { (ac_try="$ac_compiler -V >&5"
5608 case "(($ac_try" in
5609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5610   *) ac_try_echo=$ac_try;;
5611 esac
5612 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5613 $as_echo "$ac_try_echo") >&5
5614   (eval "$ac_compiler -V >&5") 2>&5
5615   ac_status=$?
5616   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5617   (exit $ac_status); }
5619 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5620 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5621 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5622   $as_echo_n "(cached) " >&6
5623 else
5624   cat >conftest.$ac_ext <<_ACEOF
5625 /* confdefs.h.  */
5626 _ACEOF
5627 cat confdefs.h >>conftest.$ac_ext
5628 cat >>conftest.$ac_ext <<_ACEOF
5629 /* end confdefs.h.  */
5631 int
5632 main ()
5634 #ifndef __GNUC__
5635        choke me
5636 #endif
5638   ;
5639   return 0;
5641 _ACEOF
5642 rm -f conftest.$ac_objext
5643 if { (ac_try="$ac_compile"
5644 case "(($ac_try" in
5645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5646   *) ac_try_echo=$ac_try;;
5647 esac
5648 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5649 $as_echo "$ac_try_echo") >&5
5650   (eval "$ac_compile") 2>conftest.er1
5651   ac_status=$?
5652   grep -v '^ *+' conftest.er1 >conftest.err
5653   rm -f conftest.er1
5654   cat conftest.err >&5
5655   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5656   (exit $ac_status); } && {
5657          test -z "$ac_c_werror_flag" ||
5658          test ! -s conftest.err
5659        } && test -s conftest.$ac_objext; then
5660   ac_compiler_gnu=yes
5661 else
5662   $as_echo "$as_me: failed program was:" >&5
5663 sed 's/^/| /' conftest.$ac_ext >&5
5665         ac_compiler_gnu=no
5666 fi
5668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5669 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5671 fi
5672 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5673 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5674 if test $ac_compiler_gnu = yes; then
5675   GCC=yes
5676 else
5677   GCC=
5678 fi
5679 ac_test_CFLAGS=${CFLAGS+set}
5680 ac_save_CFLAGS=$CFLAGS
5681 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5682 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5683 if test "${ac_cv_prog_cc_g+set}" = set; then
5684   $as_echo_n "(cached) " >&6
5685 else
5686   ac_save_c_werror_flag=$ac_c_werror_flag
5687    ac_c_werror_flag=yes
5688    ac_cv_prog_cc_g=no
5689    CFLAGS="-g"
5690    cat >conftest.$ac_ext <<_ACEOF
5691 /* confdefs.h.  */
5692 _ACEOF
5693 cat confdefs.h >>conftest.$ac_ext
5694 cat >>conftest.$ac_ext <<_ACEOF
5695 /* end confdefs.h.  */
5697 int
5698 main ()
5701   ;
5702   return 0;
5704 _ACEOF
5705 rm -f conftest.$ac_objext
5706 if { (ac_try="$ac_compile"
5707 case "(($ac_try" in
5708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5709   *) ac_try_echo=$ac_try;;
5710 esac
5711 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5712 $as_echo "$ac_try_echo") >&5
5713   (eval "$ac_compile") 2>conftest.er1
5714   ac_status=$?
5715   grep -v '^ *+' conftest.er1 >conftest.err
5716   rm -f conftest.er1
5717   cat conftest.err >&5
5718   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5719   (exit $ac_status); } && {
5720          test -z "$ac_c_werror_flag" ||
5721          test ! -s conftest.err
5722        } && test -s conftest.$ac_objext; then
5723   ac_cv_prog_cc_g=yes
5724 else
5725   $as_echo "$as_me: failed program was:" >&5
5726 sed 's/^/| /' conftest.$ac_ext >&5
5728         CFLAGS=""
5729       cat >conftest.$ac_ext <<_ACEOF
5730 /* confdefs.h.  */
5731 _ACEOF
5732 cat confdefs.h >>conftest.$ac_ext
5733 cat >>conftest.$ac_ext <<_ACEOF
5734 /* end confdefs.h.  */
5736 int
5737 main ()
5740   ;
5741   return 0;
5743 _ACEOF
5744 rm -f conftest.$ac_objext
5745 if { (ac_try="$ac_compile"
5746 case "(($ac_try" in
5747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5748   *) ac_try_echo=$ac_try;;
5749 esac
5750 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5751 $as_echo "$ac_try_echo") >&5
5752   (eval "$ac_compile") 2>conftest.er1
5753   ac_status=$?
5754   grep -v '^ *+' conftest.er1 >conftest.err
5755   rm -f conftest.er1
5756   cat conftest.err >&5
5757   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5758   (exit $ac_status); } && {
5759          test -z "$ac_c_werror_flag" ||
5760          test ! -s conftest.err
5761        } && test -s conftest.$ac_objext; then
5762   :
5763 else
5764   $as_echo "$as_me: failed program was:" >&5
5765 sed 's/^/| /' conftest.$ac_ext >&5
5767         ac_c_werror_flag=$ac_save_c_werror_flag
5768          CFLAGS="-g"
5769          cat >conftest.$ac_ext <<_ACEOF
5770 /* confdefs.h.  */
5771 _ACEOF
5772 cat confdefs.h >>conftest.$ac_ext
5773 cat >>conftest.$ac_ext <<_ACEOF
5774 /* end confdefs.h.  */
5776 int
5777 main ()
5780   ;
5781   return 0;
5783 _ACEOF
5784 rm -f conftest.$ac_objext
5785 if { (ac_try="$ac_compile"
5786 case "(($ac_try" in
5787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5788   *) ac_try_echo=$ac_try;;
5789 esac
5790 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5791 $as_echo "$ac_try_echo") >&5
5792   (eval "$ac_compile") 2>conftest.er1
5793   ac_status=$?
5794   grep -v '^ *+' conftest.er1 >conftest.err
5795   rm -f conftest.er1
5796   cat conftest.err >&5
5797   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5798   (exit $ac_status); } && {
5799          test -z "$ac_c_werror_flag" ||
5800          test ! -s conftest.err
5801        } && test -s conftest.$ac_objext; then
5802   ac_cv_prog_cc_g=yes
5803 else
5804   $as_echo "$as_me: failed program was:" >&5
5805 sed 's/^/| /' conftest.$ac_ext >&5
5808 fi
5810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5811 fi
5813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5814 fi
5816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5817    ac_c_werror_flag=$ac_save_c_werror_flag
5818 fi
5819 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5820 $as_echo "$ac_cv_prog_cc_g" >&6; }
5821 if test "$ac_test_CFLAGS" = set; then
5822   CFLAGS=$ac_save_CFLAGS
5823 elif test $ac_cv_prog_cc_g = yes; then
5824   if test "$GCC" = yes; then
5825     CFLAGS="-g -O2"
5826   else
5827     CFLAGS="-g"
5828   fi
5829 else
5830   if test "$GCC" = yes; then
5831     CFLAGS="-O2"
5832   else
5833     CFLAGS=
5834   fi
5835 fi
5836 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5837 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5838 if test "${ac_cv_prog_cc_c89+set}" = set; then
5839   $as_echo_n "(cached) " >&6
5840 else
5841   ac_cv_prog_cc_c89=no
5842 ac_save_CC=$CC
5843 cat >conftest.$ac_ext <<_ACEOF
5844 /* confdefs.h.  */
5845 _ACEOF
5846 cat confdefs.h >>conftest.$ac_ext
5847 cat >>conftest.$ac_ext <<_ACEOF
5848 /* end confdefs.h.  */
5849 #include <stdarg.h>
5850 #include <stdio.h>
5851 #include <sys/types.h>
5852 #include <sys/stat.h>
5853 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5854 struct buf { int x; };
5855 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5856 static char *e (p, i)
5857      char **p;
5858      int i;
5860   return p[i];
5862 static char *f (char * (*g) (char **, int), char **p, ...)
5864   char *s;
5865   va_list v;
5866   va_start (v,p);
5867   s = g (p, va_arg (v,int));
5868   va_end (v);
5869   return s;
5872 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5873    function prototypes and stuff, but not '\xHH' hex character constants.
5874    These don't provoke an error unfortunately, instead are silently treated
5875    as 'x'.  The following induces an error, until -std is added to get
5876    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5877    array size at least.  It's necessary to write '\x00'==0 to get something
5878    that's true only with -std.  */
5879 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5881 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5882    inside strings and character constants.  */
5883 #define FOO(x) 'x'
5884 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5886 int test (int i, double x);
5887 struct s1 {int (*f) (int a);};
5888 struct s2 {int (*f) (double a);};
5889 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5890 int argc;
5891 char **argv;
5892 int
5893 main ()
5895 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5896   ;
5897   return 0;
5899 _ACEOF
5900 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5901         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5902 do
5903   CC="$ac_save_CC $ac_arg"
5904   rm -f conftest.$ac_objext
5905 if { (ac_try="$ac_compile"
5906 case "(($ac_try" in
5907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5908   *) ac_try_echo=$ac_try;;
5909 esac
5910 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5911 $as_echo "$ac_try_echo") >&5
5912   (eval "$ac_compile") 2>conftest.er1
5913   ac_status=$?
5914   grep -v '^ *+' conftest.er1 >conftest.err
5915   rm -f conftest.er1
5916   cat conftest.err >&5
5917   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5918   (exit $ac_status); } && {
5919          test -z "$ac_c_werror_flag" ||
5920          test ! -s conftest.err
5921        } && test -s conftest.$ac_objext; then
5922   ac_cv_prog_cc_c89=$ac_arg
5923 else
5924   $as_echo "$as_me: failed program was:" >&5
5925 sed 's/^/| /' conftest.$ac_ext >&5
5928 fi
5930 rm -f core conftest.err conftest.$ac_objext
5931   test "x$ac_cv_prog_cc_c89" != "xno" && break
5932 done
5933 rm -f conftest.$ac_ext
5934 CC=$ac_save_CC
5936 fi
5937 # AC_CACHE_VAL
5938 case "x$ac_cv_prog_cc_c89" in
5939   x)
5940     { $as_echo "$as_me:$LINENO: result: none needed" >&5
5941 $as_echo "none needed" >&6; } ;;
5942   xno)
5943     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
5944 $as_echo "unsupported" >&6; } ;;
5945   *)
5946     CC="$CC $ac_cv_prog_cc_c89"
5947     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5948 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5949 esac
5952 ac_ext=c
5953 ac_cpp='$CPP $CPPFLAGS'
5954 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5955 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5956 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5958 if test "x$CC" != xcc; then
5959   { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
5960 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5961 else
5962   { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
5963 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5964 fi
5965 set dummy $CC; ac_cc=`$as_echo "$2" |
5966                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5967 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
5968   $as_echo_n "(cached) " >&6
5969 else
5970   cat >conftest.$ac_ext <<_ACEOF
5971 /* confdefs.h.  */
5972 _ACEOF
5973 cat confdefs.h >>conftest.$ac_ext
5974 cat >>conftest.$ac_ext <<_ACEOF
5975 /* end confdefs.h.  */
5977 int
5978 main ()
5981   ;
5982   return 0;
5984 _ACEOF
5985 # Make sure it works both with $CC and with simple cc.
5986 # We do the test twice because some compilers refuse to overwrite an
5987 # existing .o file with -o, though they will create one.
5988 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5989 rm -f conftest2.*
5990 if { (case "(($ac_try" in
5991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5992   *) ac_try_echo=$ac_try;;
5993 esac
5994 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5995 $as_echo "$ac_try_echo") >&5
5996   (eval "$ac_try") 2>&5
5997   ac_status=$?
5998   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5999   (exit $ac_status); } &&
6000    test -f conftest2.$ac_objext && { (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 then
6011   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
6012   if test "x$CC" != xcc; then
6013     # Test first that cc exists at all.
6014     if { ac_try='cc -c conftest.$ac_ext >&5'
6015   { (case "(($ac_try" in
6016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6017   *) ac_try_echo=$ac_try;;
6018 esac
6019 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6020 $as_echo "$ac_try_echo") >&5
6021   (eval "$ac_try") 2>&5
6022   ac_status=$?
6023   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6024   (exit $ac_status); }; }; then
6025       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
6026       rm -f conftest2.*
6027       if { (case "(($ac_try" in
6028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6029   *) ac_try_echo=$ac_try;;
6030 esac
6031 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6032 $as_echo "$ac_try_echo") >&5
6033   (eval "$ac_try") 2>&5
6034   ac_status=$?
6035   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6036   (exit $ac_status); } &&
6037          test -f conftest2.$ac_objext && { (case "(($ac_try" in
6038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6039   *) ac_try_echo=$ac_try;;
6040 esac
6041 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6042 $as_echo "$ac_try_echo") >&5
6043   (eval "$ac_try") 2>&5
6044   ac_status=$?
6045   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6046   (exit $ac_status); };
6047       then
6048         # cc works too.
6049         :
6050       else
6051         # cc exists but doesn't like -o.
6052         eval ac_cv_prog_cc_${ac_cc}_c_o=no
6053       fi
6054     fi
6055   fi
6056 else
6057   eval ac_cv_prog_cc_${ac_cc}_c_o=no
6058 fi
6059 rm -f core conftest*
6061 fi
6062 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
6063   { $as_echo "$as_me:$LINENO: result: yes" >&5
6064 $as_echo "yes" >&6; }
6065 else
6066   { $as_echo "$as_me:$LINENO: result: no" >&5
6067 $as_echo "no" >&6; }
6069 cat >>confdefs.h <<\_ACEOF
6070 #define NO_MINUS_C_MINUS_O 1
6071 _ACEOF
6073 fi
6075 # FIXME: we rely on the cache variable name because
6076 # there is no other way.
6077 set dummy $CC
6078 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6079 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
6080 if test "$am_t" != yes; then
6081    # Losing compiler, so override with the script.
6082    # FIXME: It is wrong to rewrite CC.
6083    # But if we don't then we get into trouble of one sort or another.
6084    # A longer-term fix would be to have automake use am__CC in this case,
6085    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6086    CC="$am_aux_dir/compile $CC"
6087 fi
6090 case `pwd` in
6091   *\ * | *\     *)
6092     { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6093 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6094 esac
6098 macro_version='2.2.6'
6099 macro_revision='1.3012'
6113 ltmain="$ac_aux_dir/ltmain.sh"
6115 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6116 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6117 if test "${ac_cv_path_SED+set}" = set; then
6118   $as_echo_n "(cached) " >&6
6119 else
6120             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6121      for ac_i in 1 2 3 4 5 6 7; do
6122        ac_script="$ac_script$as_nl$ac_script"
6123      done
6124      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6125      $as_unset ac_script || ac_script=
6126      if test -z "$SED"; then
6127   ac_path_SED_found=false
6128   # Loop through the user's path and test for each of PROGNAME-LIST
6129   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6130 for as_dir in $PATH
6131 do
6132   IFS=$as_save_IFS
6133   test -z "$as_dir" && as_dir=.
6134   for ac_prog in sed gsed; do
6135     for ac_exec_ext in '' $ac_executable_extensions; do
6136       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6137       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6138 # Check for GNU ac_path_SED and select it if it is found.
6139   # Check for GNU $ac_path_SED
6140 case `"$ac_path_SED" --version 2>&1` in
6141 *GNU*)
6142   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6143 *)
6144   ac_count=0
6145   $as_echo_n 0123456789 >"conftest.in"
6146   while :
6147   do
6148     cat "conftest.in" "conftest.in" >"conftest.tmp"
6149     mv "conftest.tmp" "conftest.in"
6150     cp "conftest.in" "conftest.nl"
6151     $as_echo '' >> "conftest.nl"
6152     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6153     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6154     ac_count=`expr $ac_count + 1`
6155     if test $ac_count -gt ${ac_path_SED_max-0}; then
6156       # Best one so far, save it but keep looking for a better one
6157       ac_cv_path_SED="$ac_path_SED"
6158       ac_path_SED_max=$ac_count
6159     fi
6160     # 10*(2^10) chars as input seems more than enough
6161     test $ac_count -gt 10 && break
6162   done
6163   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6164 esac
6166       $ac_path_SED_found && break 3
6167     done
6168   done
6169 done
6170 IFS=$as_save_IFS
6171   if test -z "$ac_cv_path_SED"; then
6172     { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
6173 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
6174    { (exit 1); exit 1; }; }
6175   fi
6176 else
6177   ac_cv_path_SED=$SED
6178 fi
6180 fi
6181 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
6182 $as_echo "$ac_cv_path_SED" >&6; }
6183  SED="$ac_cv_path_SED"
6184   rm -f conftest.sed
6186 test -z "$SED" && SED=sed
6187 Xsed="$SED -e 1s/^X//"
6199 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
6200 $as_echo_n "checking for fgrep... " >&6; }
6201 if test "${ac_cv_path_FGREP+set}" = set; then
6202   $as_echo_n "(cached) " >&6
6203 else
6204   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6205    then ac_cv_path_FGREP="$GREP -F"
6206    else
6207      if test -z "$FGREP"; then
6208   ac_path_FGREP_found=false
6209   # Loop through the user's path and test for each of PROGNAME-LIST
6210   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6211 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6212 do
6213   IFS=$as_save_IFS
6214   test -z "$as_dir" && as_dir=.
6215   for ac_prog in fgrep; do
6216     for ac_exec_ext in '' $ac_executable_extensions; do
6217       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6218       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6219 # Check for GNU ac_path_FGREP and select it if it is found.
6220   # Check for GNU $ac_path_FGREP
6221 case `"$ac_path_FGREP" --version 2>&1` in
6222 *GNU*)
6223   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6224 *)
6225   ac_count=0
6226   $as_echo_n 0123456789 >"conftest.in"
6227   while :
6228   do
6229     cat "conftest.in" "conftest.in" >"conftest.tmp"
6230     mv "conftest.tmp" "conftest.in"
6231     cp "conftest.in" "conftest.nl"
6232     $as_echo 'FGREP' >> "conftest.nl"
6233     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6234     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6235     ac_count=`expr $ac_count + 1`
6236     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6237       # Best one so far, save it but keep looking for a better one
6238       ac_cv_path_FGREP="$ac_path_FGREP"
6239       ac_path_FGREP_max=$ac_count
6240     fi
6241     # 10*(2^10) chars as input seems more than enough
6242     test $ac_count -gt 10 && break
6243   done
6244   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6245 esac
6247       $ac_path_FGREP_found && break 3
6248     done
6249   done
6250 done
6251 IFS=$as_save_IFS
6252   if test -z "$ac_cv_path_FGREP"; then
6253     { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6254 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6255    { (exit 1); exit 1; }; }
6256   fi
6257 else
6258   ac_cv_path_FGREP=$FGREP
6259 fi
6261    fi
6262 fi
6263 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
6264 $as_echo "$ac_cv_path_FGREP" >&6; }
6265  FGREP="$ac_cv_path_FGREP"
6268 test -z "$GREP" && GREP=grep
6288 # Check whether --with-gnu-ld was given.
6289 if test "${with_gnu_ld+set}" = set; then
6290   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6291 else
6292   with_gnu_ld=no
6293 fi
6295 ac_prog=ld
6296 if test "$GCC" = yes; then
6297   # Check if gcc -print-prog-name=ld gives a path.
6298   { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6299 $as_echo_n "checking for ld used by $CC... " >&6; }
6300   case $host in
6301   *-*-mingw*)
6302     # gcc leaves a trailing carriage return which upsets mingw
6303     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6304   *)
6305     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6306   esac
6307   case $ac_prog in
6308     # Accept absolute paths.
6309     [\\/]* | ?:[\\/]*)
6310       re_direlt='/[^/][^/]*/\.\./'
6311       # Canonicalize the pathname of ld
6312       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6313       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6314         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6315       done
6316       test -z "$LD" && LD="$ac_prog"
6317       ;;
6318   "")
6319     # If it fails, then pretend we aren't using GCC.
6320     ac_prog=ld
6321     ;;
6322   *)
6323     # If it is relative, then search for the first ld in PATH.
6324     with_gnu_ld=unknown
6325     ;;
6326   esac
6327 elif test "$with_gnu_ld" = yes; then
6328   { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
6329 $as_echo_n "checking for GNU ld... " >&6; }
6330 else
6331   { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6332 $as_echo_n "checking for non-GNU ld... " >&6; }
6333 fi
6334 if test "${lt_cv_path_LD+set}" = set; then
6335   $as_echo_n "(cached) " >&6
6336 else
6337   if test -z "$LD"; then
6338   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6339   for ac_dir in $PATH; do
6340     IFS="$lt_save_ifs"
6341     test -z "$ac_dir" && ac_dir=.
6342     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6343       lt_cv_path_LD="$ac_dir/$ac_prog"
6344       # Check to see if the program is GNU ld.  I'd rather use --version,
6345       # but apparently some variants of GNU ld only accept -v.
6346       # Break only if it was the GNU/non-GNU ld that we prefer.
6347       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6348       *GNU* | *'with BFD'*)
6349         test "$with_gnu_ld" != no && break
6350         ;;
6351       *)
6352         test "$with_gnu_ld" != yes && break
6353         ;;
6354       esac
6355     fi
6356   done
6357   IFS="$lt_save_ifs"
6358 else
6359   lt_cv_path_LD="$LD" # Let the user override the test with a path.
6360 fi
6361 fi
6363 LD="$lt_cv_path_LD"
6364 if test -n "$LD"; then
6365   { $as_echo "$as_me:$LINENO: result: $LD" >&5
6366 $as_echo "$LD" >&6; }
6367 else
6368   { $as_echo "$as_me:$LINENO: result: no" >&5
6369 $as_echo "no" >&6; }
6370 fi
6371 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6372 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6373    { (exit 1); exit 1; }; }
6374 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6375 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6376 if test "${lt_cv_prog_gnu_ld+set}" = set; then
6377   $as_echo_n "(cached) " >&6
6378 else
6379   # I'd rather use --version here, but apparently some GNU lds only accept -v.
6380 case `$LD -v 2>&1 </dev/null` in
6381 *GNU* | *'with BFD'*)
6382   lt_cv_prog_gnu_ld=yes
6383   ;;
6384 *)
6385   lt_cv_prog_gnu_ld=no
6386   ;;
6387 esac
6388 fi
6389 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6390 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6391 with_gnu_ld=$lt_cv_prog_gnu_ld
6401 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
6402 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6403 if test "${lt_cv_path_NM+set}" = set; then
6404   $as_echo_n "(cached) " >&6
6405 else
6406   if test -n "$NM"; then
6407   # Let the user override the test.
6408   lt_cv_path_NM="$NM"
6409 else
6410   lt_nm_to_check="${ac_tool_prefix}nm"
6411   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6412     lt_nm_to_check="$lt_nm_to_check nm"
6413   fi
6414   for lt_tmp_nm in $lt_nm_to_check; do
6415     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6416     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6417       IFS="$lt_save_ifs"
6418       test -z "$ac_dir" && ac_dir=.
6419       tmp_nm="$ac_dir/$lt_tmp_nm"
6420       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6421         # Check to see if the nm accepts a BSD-compat flag.
6422         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6423         #   nm: unknown option "B" ignored
6424         # Tru64's nm complains that /dev/null is an invalid object file
6425         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6426         */dev/null* | *'Invalid file or object type'*)
6427           lt_cv_path_NM="$tmp_nm -B"
6428           break
6429           ;;
6430         *)
6431           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6432           */dev/null*)
6433             lt_cv_path_NM="$tmp_nm -p"
6434             break
6435             ;;
6436           *)
6437             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6438             continue # so that we can try to find one that supports BSD flags
6439             ;;
6440           esac
6441           ;;
6442         esac
6443       fi
6444     done
6445     IFS="$lt_save_ifs"
6446   done
6447   : ${lt_cv_path_NM=no}
6448 fi
6449 fi
6450 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6451 $as_echo "$lt_cv_path_NM" >&6; }
6452 if test "$lt_cv_path_NM" != "no"; then
6453   NM="$lt_cv_path_NM"
6454 else
6455   # Didn't find any BSD compatible name lister, look for dumpbin.
6456   if test -n "$ac_tool_prefix"; then
6457   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6458   do
6459     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6460 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6461 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6462 $as_echo_n "checking for $ac_word... " >&6; }
6463 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
6464   $as_echo_n "(cached) " >&6
6465 else
6466   if test -n "$DUMPBIN"; then
6467   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6468 else
6469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6470 for as_dir in $PATH
6471 do
6472   IFS=$as_save_IFS
6473   test -z "$as_dir" && as_dir=.
6474   for ac_exec_ext in '' $ac_executable_extensions; do
6475   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6476     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6477     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6478     break 2
6479   fi
6480 done
6481 done
6482 IFS=$as_save_IFS
6484 fi
6485 fi
6486 DUMPBIN=$ac_cv_prog_DUMPBIN
6487 if test -n "$DUMPBIN"; then
6488   { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
6489 $as_echo "$DUMPBIN" >&6; }
6490 else
6491   { $as_echo "$as_me:$LINENO: result: no" >&5
6492 $as_echo "no" >&6; }
6493 fi
6496     test -n "$DUMPBIN" && break
6497   done
6498 fi
6499 if test -z "$DUMPBIN"; then
6500   ac_ct_DUMPBIN=$DUMPBIN
6501   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6502 do
6503   # Extract the first word of "$ac_prog", so it can be a program name with args.
6504 set dummy $ac_prog; ac_word=$2
6505 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6506 $as_echo_n "checking for $ac_word... " >&6; }
6507 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
6508   $as_echo_n "(cached) " >&6
6509 else
6510   if test -n "$ac_ct_DUMPBIN"; then
6511   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6512 else
6513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6514 for as_dir in $PATH
6515 do
6516   IFS=$as_save_IFS
6517   test -z "$as_dir" && as_dir=.
6518   for ac_exec_ext in '' $ac_executable_extensions; do
6519   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6520     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6521     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6522     break 2
6523   fi
6524 done
6525 done
6526 IFS=$as_save_IFS
6528 fi
6529 fi
6530 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6531 if test -n "$ac_ct_DUMPBIN"; then
6532   { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
6533 $as_echo "$ac_ct_DUMPBIN" >&6; }
6534 else
6535   { $as_echo "$as_me:$LINENO: result: no" >&5
6536 $as_echo "no" >&6; }
6537 fi
6540   test -n "$ac_ct_DUMPBIN" && break
6541 done
6543   if test "x$ac_ct_DUMPBIN" = x; then
6544     DUMPBIN=":"
6545   else
6546     case $cross_compiling:$ac_tool_warned in
6547 yes:)
6548 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6549 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6550 ac_tool_warned=yes ;;
6551 esac
6552     DUMPBIN=$ac_ct_DUMPBIN
6553   fi
6554 fi
6557   if test "$DUMPBIN" != ":"; then
6558     NM="$DUMPBIN"
6559   fi
6560 fi
6561 test -z "$NM" && NM=nm
6568 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
6569 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6570 if test "${lt_cv_nm_interface+set}" = set; then
6571   $as_echo_n "(cached) " >&6
6572 else
6573   lt_cv_nm_interface="BSD nm"
6574   echo "int some_variable = 0;" > conftest.$ac_ext
6575   (eval echo "\"\$as_me:6575: $ac_compile\"" >&5)
6576   (eval "$ac_compile" 2>conftest.err)
6577   cat conftest.err >&5
6578   (eval echo "\"\$as_me:6578: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6579   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6580   cat conftest.err >&5
6581   (eval echo "\"\$as_me:6581: output\"" >&5)
6582   cat conftest.out >&5
6583   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6584     lt_cv_nm_interface="MS dumpbin"
6585   fi
6586   rm -f conftest*
6587 fi
6588 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
6589 $as_echo "$lt_cv_nm_interface" >&6; }
6591 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
6592 $as_echo_n "checking whether ln -s works... " >&6; }
6593 LN_S=$as_ln_s
6594 if test "$LN_S" = "ln -s"; then
6595   { $as_echo "$as_me:$LINENO: result: yes" >&5
6596 $as_echo "yes" >&6; }
6597 else
6598   { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6599 $as_echo "no, using $LN_S" >&6; }
6600 fi
6602 # find the maximum length of command line arguments
6603 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6604 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6605 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6606   $as_echo_n "(cached) " >&6
6607 else
6608     i=0
6609   teststring="ABCD"
6611   case $build_os in
6612   msdosdjgpp*)
6613     # On DJGPP, this test can blow up pretty badly due to problems in libc
6614     # (any single argument exceeding 2000 bytes causes a buffer overrun
6615     # during glob expansion).  Even if it were fixed, the result of this
6616     # check would be larger than it should be.
6617     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6618     ;;
6620   gnu*)
6621     # Under GNU Hurd, this test is not required because there is
6622     # no limit to the length of command line arguments.
6623     # Libtool will interpret -1 as no limit whatsoever
6624     lt_cv_sys_max_cmd_len=-1;
6625     ;;
6627   cygwin* | mingw* | cegcc*)
6628     # On Win9x/ME, this test blows up -- it succeeds, but takes
6629     # about 5 minutes as the teststring grows exponentially.
6630     # Worse, since 9x/ME are not pre-emptively multitasking,
6631     # you end up with a "frozen" computer, even though with patience
6632     # the test eventually succeeds (with a max line length of 256k).
6633     # Instead, let's just punt: use the minimum linelength reported by
6634     # all of the supported platforms: 8192 (on NT/2K/XP).
6635     lt_cv_sys_max_cmd_len=8192;
6636     ;;
6638   amigaos*)
6639     # On AmigaOS with pdksh, this test takes hours, literally.
6640     # So we just punt and use a minimum line length of 8192.
6641     lt_cv_sys_max_cmd_len=8192;
6642     ;;
6644   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6645     # This has been around since 386BSD, at least.  Likely further.
6646     if test -x /sbin/sysctl; then
6647       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6648     elif test -x /usr/sbin/sysctl; then
6649       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6650     else
6651       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6652     fi
6653     # And add a safety zone
6654     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6655     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6656     ;;
6658   interix*)
6659     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6660     lt_cv_sys_max_cmd_len=196608
6661     ;;
6663   osf*)
6664     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6665     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6666     # nice to cause kernel panics so lets avoid the loop below.
6667     # First set a reasonable default.
6668     lt_cv_sys_max_cmd_len=16384
6669     #
6670     if test -x /sbin/sysconfig; then
6671       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6672         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6673       esac
6674     fi
6675     ;;
6676   sco3.2v5*)
6677     lt_cv_sys_max_cmd_len=102400
6678     ;;
6679   sysv5* | sco5v6* | sysv4.2uw2*)
6680     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6681     if test -n "$kargmax"; then
6682       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6683     else
6684       lt_cv_sys_max_cmd_len=32768
6685     fi
6686     ;;
6687   *)
6688     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6689     if test -n "$lt_cv_sys_max_cmd_len"; then
6690       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6691       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6692     else
6693       # Make teststring a little bigger before we do anything with it.
6694       # a 1K string should be a reasonable start.
6695       for i in 1 2 3 4 5 6 7 8 ; do
6696         teststring=$teststring$teststring
6697       done
6698       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6699       # If test is not a shell built-in, we'll probably end up computing a
6700       # maximum length that is only half of the actual maximum length, but
6701       # we can't tell.
6702       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6703                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6704               test $i != 17 # 1/2 MB should be enough
6705       do
6706         i=`expr $i + 1`
6707         teststring=$teststring$teststring
6708       done
6709       # Only check the string length outside the loop.
6710       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6711       teststring=
6712       # Add a significant safety factor because C++ compilers can tack on
6713       # massive amounts of additional arguments before passing them to the
6714       # linker.  It appears as though 1/2 is a usable value.
6715       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6716     fi
6717     ;;
6718   esac
6720 fi
6722 if test -n $lt_cv_sys_max_cmd_len ; then
6723   { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6724 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6725 else
6726   { $as_echo "$as_me:$LINENO: result: none" >&5
6727 $as_echo "none" >&6; }
6728 fi
6729 max_cmd_len=$lt_cv_sys_max_cmd_len
6736 : ${CP="cp -f"}
6737 : ${MV="mv -f"}
6738 : ${RM="rm -f"}
6740 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
6741 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6742 # Try some XSI features
6743 xsi_shell=no
6744 ( _lt_dummy="a/b/c"
6745   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6746       = c,a/b,, \
6747     && eval 'test $(( 1 + 1 )) -eq 2 \
6748     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6749   && xsi_shell=yes
6750 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
6751 $as_echo "$xsi_shell" >&6; }
6754 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
6755 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6756 lt_shell_append=no
6757 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6758     >/dev/null 2>&1 \
6759   && lt_shell_append=yes
6760 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
6761 $as_echo "$lt_shell_append" >&6; }
6764 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6765   lt_unset=unset
6766 else
6767   lt_unset=false
6768 fi
6774 # test EBCDIC or ASCII
6775 case `echo X|tr X '\101'` in
6776  A) # ASCII based system
6777     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6778   lt_SP2NL='tr \040 \012'
6779   lt_NL2SP='tr \015\012 \040\040'
6780   ;;
6781  *) # EBCDIC based system
6782   lt_SP2NL='tr \100 \n'
6783   lt_NL2SP='tr \r\n \100\100'
6784   ;;
6785 esac
6795 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6796 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6797 if test "${lt_cv_ld_reload_flag+set}" = set; then
6798   $as_echo_n "(cached) " >&6
6799 else
6800   lt_cv_ld_reload_flag='-r'
6801 fi
6802 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6803 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6804 reload_flag=$lt_cv_ld_reload_flag
6805 case $reload_flag in
6806 "" | " "*) ;;
6807 *) reload_flag=" $reload_flag" ;;
6808 esac
6809 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6810 case $host_os in
6811   darwin*)
6812     if test "$GCC" = yes; then
6813       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6814     else
6815       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6816     fi
6817     ;;
6818 esac
6828 if test -n "$ac_tool_prefix"; then
6829   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6830 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6831 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6832 $as_echo_n "checking for $ac_word... " >&6; }
6833 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6834   $as_echo_n "(cached) " >&6
6835 else
6836   if test -n "$OBJDUMP"; then
6837   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6838 else
6839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6840 for as_dir in $PATH
6841 do
6842   IFS=$as_save_IFS
6843   test -z "$as_dir" && as_dir=.
6844   for ac_exec_ext in '' $ac_executable_extensions; do
6845   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6846     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6847     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6848     break 2
6849   fi
6850 done
6851 done
6852 IFS=$as_save_IFS
6854 fi
6855 fi
6856 OBJDUMP=$ac_cv_prog_OBJDUMP
6857 if test -n "$OBJDUMP"; then
6858   { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6859 $as_echo "$OBJDUMP" >&6; }
6860 else
6861   { $as_echo "$as_me:$LINENO: result: no" >&5
6862 $as_echo "no" >&6; }
6863 fi
6866 fi
6867 if test -z "$ac_cv_prog_OBJDUMP"; then
6868   ac_ct_OBJDUMP=$OBJDUMP
6869   # Extract the first word of "objdump", so it can be a program name with args.
6870 set dummy objdump; ac_word=$2
6871 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6872 $as_echo_n "checking for $ac_word... " >&6; }
6873 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6874   $as_echo_n "(cached) " >&6
6875 else
6876   if test -n "$ac_ct_OBJDUMP"; then
6877   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6878 else
6879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6880 for as_dir in $PATH
6881 do
6882   IFS=$as_save_IFS
6883   test -z "$as_dir" && as_dir=.
6884   for ac_exec_ext in '' $ac_executable_extensions; do
6885   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6886     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6887     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6888     break 2
6889   fi
6890 done
6891 done
6892 IFS=$as_save_IFS
6894 fi
6895 fi
6896 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6897 if test -n "$ac_ct_OBJDUMP"; then
6898   { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6899 $as_echo "$ac_ct_OBJDUMP" >&6; }
6900 else
6901   { $as_echo "$as_me:$LINENO: result: no" >&5
6902 $as_echo "no" >&6; }
6903 fi
6905   if test "x$ac_ct_OBJDUMP" = x; then
6906     OBJDUMP="false"
6907   else
6908     case $cross_compiling:$ac_tool_warned in
6909 yes:)
6910 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6911 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6912 ac_tool_warned=yes ;;
6913 esac
6914     OBJDUMP=$ac_ct_OBJDUMP
6915   fi
6916 else
6917   OBJDUMP="$ac_cv_prog_OBJDUMP"
6918 fi
6920 test -z "$OBJDUMP" && OBJDUMP=objdump
6930 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6931 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6932 if test "${lt_cv_deplibs_check_method+set}" = set; then
6933   $as_echo_n "(cached) " >&6
6934 else
6935   lt_cv_file_magic_cmd='$MAGIC_CMD'
6936 lt_cv_file_magic_test_file=
6937 lt_cv_deplibs_check_method='unknown'
6938 # Need to set the preceding variable on all platforms that support
6939 # interlibrary dependencies.
6940 # 'none' -- dependencies not supported.
6941 # `unknown' -- same as none, but documents that we really don't know.
6942 # 'pass_all' -- all dependencies passed with no checks.
6943 # 'test_compile' -- check by making test program.
6944 # 'file_magic [[regex]]' -- check by looking for files in library path
6945 # which responds to the $file_magic_cmd with a given extended regex.
6946 # If you have `file' or equivalent on your system and you're not sure
6947 # whether `pass_all' will *always* work, you probably want this one.
6949 case $host_os in
6950 aix[4-9]*)
6951   lt_cv_deplibs_check_method=pass_all
6952   ;;
6954 beos*)
6955   lt_cv_deplibs_check_method=pass_all
6956   ;;
6958 bsdi[45]*)
6959   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6960   lt_cv_file_magic_cmd='/usr/bin/file -L'
6961   lt_cv_file_magic_test_file=/shlib/libc.so
6962   ;;
6964 cygwin*)
6965   # func_win32_libid is a shell function defined in ltmain.sh
6966   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6967   lt_cv_file_magic_cmd='func_win32_libid'
6968   ;;
6970 mingw* | pw32*)
6971   # Base MSYS/MinGW do not provide the 'file' command needed by
6972   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6973   # unless we find 'file', for example because we are cross-compiling.
6974   if ( file / ) >/dev/null 2>&1; then
6975     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6976     lt_cv_file_magic_cmd='func_win32_libid'
6977   else
6978     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6979     lt_cv_file_magic_cmd='$OBJDUMP -f'
6980   fi
6981   ;;
6983 cegcc)
6984   # use the weaker test based on 'objdump'. See mingw*.
6985   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6986   lt_cv_file_magic_cmd='$OBJDUMP -f'
6987   ;;
6989 darwin* | rhapsody*)
6990   lt_cv_deplibs_check_method=pass_all
6991   ;;
6993 freebsd* | dragonfly*)
6994   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6995     case $host_cpu in
6996     i*86 )
6997       # Not sure whether the presence of OpenBSD here was a mistake.
6998       # Let's accept both of them until this is cleared up.
6999       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7000       lt_cv_file_magic_cmd=/usr/bin/file
7001       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7002       ;;
7003     esac
7004   else
7005     lt_cv_deplibs_check_method=pass_all
7006   fi
7007   ;;
7009 gnu*)
7010   lt_cv_deplibs_check_method=pass_all
7011   ;;
7013 hpux10.20* | hpux11*)
7014   lt_cv_file_magic_cmd=/usr/bin/file
7015   case $host_cpu in
7016   ia64*)
7017     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7018     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7019     ;;
7020   hppa*64*)
7021     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]'
7022     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7023     ;;
7024   *)
7025     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
7026     lt_cv_file_magic_test_file=/usr/lib/libc.sl
7027     ;;
7028   esac
7029   ;;
7031 interix[3-9]*)
7032   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7033   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7034   ;;
7036 irix5* | irix6* | nonstopux*)
7037   case $LD in
7038   *-32|*"-32 ") libmagic=32-bit;;
7039   *-n32|*"-n32 ") libmagic=N32;;
7040   *-64|*"-64 ") libmagic=64-bit;;
7041   *) libmagic=never-match;;
7042   esac
7043   lt_cv_deplibs_check_method=pass_all
7044   ;;
7046 # This must be Linux ELF.
7047 linux* | k*bsd*-gnu)
7048   lt_cv_deplibs_check_method=pass_all
7049   ;;
7051 netbsd*)
7052   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7053     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7054   else
7055     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7056   fi
7057   ;;
7059 newos6*)
7060   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7061   lt_cv_file_magic_cmd=/usr/bin/file
7062   lt_cv_file_magic_test_file=/usr/lib/libnls.so
7063   ;;
7065 *nto* | *qnx*)
7066   lt_cv_deplibs_check_method=pass_all
7067   ;;
7069 openbsd*)
7070   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7071     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7072   else
7073     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7074   fi
7075   ;;
7077 osf3* | osf4* | osf5*)
7078   lt_cv_deplibs_check_method=pass_all
7079   ;;
7081 rdos*)
7082   lt_cv_deplibs_check_method=pass_all
7083   ;;
7085 solaris*)
7086   lt_cv_deplibs_check_method=pass_all
7087   ;;
7089 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7090   lt_cv_deplibs_check_method=pass_all
7091   ;;
7093 sysv4 | sysv4.3*)
7094   case $host_vendor in
7095   motorola)
7096     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]'
7097     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7098     ;;
7099   ncr)
7100     lt_cv_deplibs_check_method=pass_all
7101     ;;
7102   sequent)
7103     lt_cv_file_magic_cmd='/bin/file'
7104     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7105     ;;
7106   sni)
7107     lt_cv_file_magic_cmd='/bin/file'
7108     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7109     lt_cv_file_magic_test_file=/lib/libc.so
7110     ;;
7111   siemens)
7112     lt_cv_deplibs_check_method=pass_all
7113     ;;
7114   pc)
7115     lt_cv_deplibs_check_method=pass_all
7116     ;;
7117   esac
7118   ;;
7120 tpf*)
7121   lt_cv_deplibs_check_method=pass_all
7122   ;;
7123 esac
7125 fi
7126 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
7127 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7128 file_magic_cmd=$lt_cv_file_magic_cmd
7129 deplibs_check_method=$lt_cv_deplibs_check_method
7130 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7143 if test -n "$ac_tool_prefix"; then
7144   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7145 set dummy ${ac_tool_prefix}ar; ac_word=$2
7146 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7147 $as_echo_n "checking for $ac_word... " >&6; }
7148 if test "${ac_cv_prog_AR+set}" = set; then
7149   $as_echo_n "(cached) " >&6
7150 else
7151   if test -n "$AR"; then
7152   ac_cv_prog_AR="$AR" # Let the user override the test.
7153 else
7154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7155 for as_dir in $PATH
7156 do
7157   IFS=$as_save_IFS
7158   test -z "$as_dir" && as_dir=.
7159   for ac_exec_ext in '' $ac_executable_extensions; do
7160   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7161     ac_cv_prog_AR="${ac_tool_prefix}ar"
7162     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7163     break 2
7164   fi
7165 done
7166 done
7167 IFS=$as_save_IFS
7169 fi
7170 fi
7171 AR=$ac_cv_prog_AR
7172 if test -n "$AR"; then
7173   { $as_echo "$as_me:$LINENO: result: $AR" >&5
7174 $as_echo "$AR" >&6; }
7175 else
7176   { $as_echo "$as_me:$LINENO: result: no" >&5
7177 $as_echo "no" >&6; }
7178 fi
7181 fi
7182 if test -z "$ac_cv_prog_AR"; then
7183   ac_ct_AR=$AR
7184   # Extract the first word of "ar", so it can be a program name with args.
7185 set dummy ar; ac_word=$2
7186 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7187 $as_echo_n "checking for $ac_word... " >&6; }
7188 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7189   $as_echo_n "(cached) " >&6
7190 else
7191   if test -n "$ac_ct_AR"; then
7192   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7193 else
7194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7195 for as_dir in $PATH
7196 do
7197   IFS=$as_save_IFS
7198   test -z "$as_dir" && as_dir=.
7199   for ac_exec_ext in '' $ac_executable_extensions; do
7200   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7201     ac_cv_prog_ac_ct_AR="ar"
7202     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7203     break 2
7204   fi
7205 done
7206 done
7207 IFS=$as_save_IFS
7209 fi
7210 fi
7211 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7212 if test -n "$ac_ct_AR"; then
7213   { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7214 $as_echo "$ac_ct_AR" >&6; }
7215 else
7216   { $as_echo "$as_me:$LINENO: result: no" >&5
7217 $as_echo "no" >&6; }
7218 fi
7220   if test "x$ac_ct_AR" = x; then
7221     AR="false"
7222   else
7223     case $cross_compiling:$ac_tool_warned in
7224 yes:)
7225 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7226 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7227 ac_tool_warned=yes ;;
7228 esac
7229     AR=$ac_ct_AR
7230   fi
7231 else
7232   AR="$ac_cv_prog_AR"
7233 fi
7235 test -z "$AR" && AR=ar
7236 test -z "$AR_FLAGS" && AR_FLAGS=cru
7248 if test -n "$ac_tool_prefix"; then
7249   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7250 set dummy ${ac_tool_prefix}strip; ac_word=$2
7251 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7252 $as_echo_n "checking for $ac_word... " >&6; }
7253 if test "${ac_cv_prog_STRIP+set}" = set; then
7254   $as_echo_n "(cached) " >&6
7255 else
7256   if test -n "$STRIP"; then
7257   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7258 else
7259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7260 for as_dir in $PATH
7261 do
7262   IFS=$as_save_IFS
7263   test -z "$as_dir" && as_dir=.
7264   for ac_exec_ext in '' $ac_executable_extensions; do
7265   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7266     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7267     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7268     break 2
7269   fi
7270 done
7271 done
7272 IFS=$as_save_IFS
7274 fi
7275 fi
7276 STRIP=$ac_cv_prog_STRIP
7277 if test -n "$STRIP"; then
7278   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
7279 $as_echo "$STRIP" >&6; }
7280 else
7281   { $as_echo "$as_me:$LINENO: result: no" >&5
7282 $as_echo "no" >&6; }
7283 fi
7286 fi
7287 if test -z "$ac_cv_prog_STRIP"; then
7288   ac_ct_STRIP=$STRIP
7289   # Extract the first word of "strip", so it can be a program name with args.
7290 set dummy strip; ac_word=$2
7291 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7292 $as_echo_n "checking for $ac_word... " >&6; }
7293 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7294   $as_echo_n "(cached) " >&6
7295 else
7296   if test -n "$ac_ct_STRIP"; then
7297   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7298 else
7299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7300 for as_dir in $PATH
7301 do
7302   IFS=$as_save_IFS
7303   test -z "$as_dir" && as_dir=.
7304   for ac_exec_ext in '' $ac_executable_extensions; do
7305   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7306     ac_cv_prog_ac_ct_STRIP="strip"
7307     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7308     break 2
7309   fi
7310 done
7311 done
7312 IFS=$as_save_IFS
7314 fi
7315 fi
7316 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7317 if test -n "$ac_ct_STRIP"; then
7318   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7319 $as_echo "$ac_ct_STRIP" >&6; }
7320 else
7321   { $as_echo "$as_me:$LINENO: result: no" >&5
7322 $as_echo "no" >&6; }
7323 fi
7325   if test "x$ac_ct_STRIP" = x; then
7326     STRIP=":"
7327   else
7328     case $cross_compiling:$ac_tool_warned in
7329 yes:)
7330 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7331 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7332 ac_tool_warned=yes ;;
7333 esac
7334     STRIP=$ac_ct_STRIP
7335   fi
7336 else
7337   STRIP="$ac_cv_prog_STRIP"
7338 fi
7340 test -z "$STRIP" && STRIP=:
7347 if test -n "$ac_tool_prefix"; then
7348   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7349 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7350 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7351 $as_echo_n "checking for $ac_word... " >&6; }
7352 if test "${ac_cv_prog_RANLIB+set}" = set; then
7353   $as_echo_n "(cached) " >&6
7354 else
7355   if test -n "$RANLIB"; then
7356   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7357 else
7358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7359 for as_dir in $PATH
7360 do
7361   IFS=$as_save_IFS
7362   test -z "$as_dir" && as_dir=.
7363   for ac_exec_ext in '' $ac_executable_extensions; do
7364   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7365     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7366     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7367     break 2
7368   fi
7369 done
7370 done
7371 IFS=$as_save_IFS
7373 fi
7374 fi
7375 RANLIB=$ac_cv_prog_RANLIB
7376 if test -n "$RANLIB"; then
7377   { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
7378 $as_echo "$RANLIB" >&6; }
7379 else
7380   { $as_echo "$as_me:$LINENO: result: no" >&5
7381 $as_echo "no" >&6; }
7382 fi
7385 fi
7386 if test -z "$ac_cv_prog_RANLIB"; then
7387   ac_ct_RANLIB=$RANLIB
7388   # Extract the first word of "ranlib", so it can be a program name with args.
7389 set dummy ranlib; ac_word=$2
7390 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7391 $as_echo_n "checking for $ac_word... " >&6; }
7392 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7393   $as_echo_n "(cached) " >&6
7394 else
7395   if test -n "$ac_ct_RANLIB"; then
7396   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7397 else
7398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7399 for as_dir in $PATH
7400 do
7401   IFS=$as_save_IFS
7402   test -z "$as_dir" && as_dir=.
7403   for ac_exec_ext in '' $ac_executable_extensions; do
7404   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7405     ac_cv_prog_ac_ct_RANLIB="ranlib"
7406     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7407     break 2
7408   fi
7409 done
7410 done
7411 IFS=$as_save_IFS
7413 fi
7414 fi
7415 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7416 if test -n "$ac_ct_RANLIB"; then
7417   { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7418 $as_echo "$ac_ct_RANLIB" >&6; }
7419 else
7420   { $as_echo "$as_me:$LINENO: result: no" >&5
7421 $as_echo "no" >&6; }
7422 fi
7424   if test "x$ac_ct_RANLIB" = x; then
7425     RANLIB=":"
7426   else
7427     case $cross_compiling:$ac_tool_warned in
7428 yes:)
7429 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7430 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7431 ac_tool_warned=yes ;;
7432 esac
7433     RANLIB=$ac_ct_RANLIB
7434   fi
7435 else
7436   RANLIB="$ac_cv_prog_RANLIB"
7437 fi
7439 test -z "$RANLIB" && RANLIB=:
7446 # Determine commands to create old-style static archives.
7447 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7448 old_postinstall_cmds='chmod 644 $oldlib'
7449 old_postuninstall_cmds=
7451 if test -n "$RANLIB"; then
7452   case $host_os in
7453   openbsd*)
7454     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7455     ;;
7456   *)
7457     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7458     ;;
7459   esac
7460   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7461 fi
7496 # If no C compiler was specified, use CC.
7497 LTCC=${LTCC-"$CC"}
7499 # If no C compiler flags were specified, use CFLAGS.
7500 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7502 # Allow CC to be a program name with arguments.
7503 compiler=$CC
7506 # Check for command to grab the raw symbol name followed by C symbol from nm.
7507 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7508 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7509 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7510   $as_echo_n "(cached) " >&6
7511 else
7513 # These are sane defaults that work on at least a few old systems.
7514 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7516 # Character class describing NM global symbol codes.
7517 symcode='[BCDEGRST]'
7519 # Regexp to match symbols that can be accessed directly from C.
7520 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7522 # Define system-specific variables.
7523 case $host_os in
7524 aix*)
7525   symcode='[BCDT]'
7526   ;;
7527 cygwin* | mingw* | pw32* | cegcc*)
7528   symcode='[ABCDGISTW]'
7529   ;;
7530 hpux*)
7531   if test "$host_cpu" = ia64; then
7532     symcode='[ABCDEGRST]'
7533   fi
7534   ;;
7535 irix* | nonstopux*)
7536   symcode='[BCDEGRST]'
7537   ;;
7538 osf*)
7539   symcode='[BCDEGQRST]'
7540   ;;
7541 solaris*)
7542   symcode='[BDRT]'
7543   ;;
7544 sco3.2v5*)
7545   symcode='[DT]'
7546   ;;
7547 sysv4.2uw2*)
7548   symcode='[DT]'
7549   ;;
7550 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7551   symcode='[ABDT]'
7552   ;;
7553 sysv4)
7554   symcode='[DFNSTU]'
7555   ;;
7556 esac
7558 # If we're using GNU nm, then use its standard symbol codes.
7559 case `$NM -V 2>&1` in
7560 *GNU* | *'with BFD'*)
7561   symcode='[ABCDGIRSTW]' ;;
7562 esac
7564 # Transform an extracted symbol line into a proper C declaration.
7565 # Some systems (esp. on ia64) link data and code symbols differently,
7566 # so use this general approach.
7567 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7569 # Transform an extracted symbol line into symbol name and symbol address
7570 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7571 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'"
7573 # Handle CRLF in mingw tool chain
7574 opt_cr=
7575 case $build_os in
7576 mingw*)
7577   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7578   ;;
7579 esac
7581 # Try without a prefix underscore, then with it.
7582 for ac_symprfx in "" "_"; do
7584   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7585   symxfrm="\\1 $ac_symprfx\\2 \\2"
7587   # Write the raw and C identifiers.
7588   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7589     # Fake it for dumpbin and say T for any non-static function
7590     # and D for any global variable.
7591     # Also find C++ and __fastcall symbols from MSVC++,
7592     # which start with @ or ?.
7593     lt_cv_sys_global_symbol_pipe="$AWK '"\
7594 "     {last_section=section; section=\$ 3};"\
7595 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7596 "     \$ 0!~/External *\|/{next};"\
7597 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7598 "     {if(hide[section]) next};"\
7599 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7600 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7601 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7602 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7603 "     ' prfx=^$ac_symprfx"
7604   else
7605     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7606   fi
7608   # Check to see that the pipe works correctly.
7609   pipe_works=no
7611   rm -f conftest*
7612   cat > conftest.$ac_ext <<_LT_EOF
7613 #ifdef __cplusplus
7614 extern "C" {
7615 #endif
7616 char nm_test_var;
7617 void nm_test_func(void);
7618 void nm_test_func(void){}
7619 #ifdef __cplusplus
7621 #endif
7622 int main(){nm_test_var='a';nm_test_func();return(0);}
7623 _LT_EOF
7625   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7626   (eval $ac_compile) 2>&5
7627   ac_status=$?
7628   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7629   (exit $ac_status); }; then
7630     # Now try to grab the symbols.
7631     nlist=conftest.nm
7632     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7633   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7634   ac_status=$?
7635   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7636   (exit $ac_status); } && test -s "$nlist"; then
7637       # Try sorting and uniquifying the output.
7638       if sort "$nlist" | uniq > "$nlist"T; then
7639         mv -f "$nlist"T "$nlist"
7640       else
7641         rm -f "$nlist"T
7642       fi
7644       # Make sure that we snagged all the symbols we need.
7645       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7646         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7647           cat <<_LT_EOF > conftest.$ac_ext
7648 #ifdef __cplusplus
7649 extern "C" {
7650 #endif
7652 _LT_EOF
7653           # Now generate the symbol file.
7654           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7656           cat <<_LT_EOF >> conftest.$ac_ext
7658 /* The mapping between symbol names and symbols.  */
7659 const struct {
7660   const char *name;
7661   void       *address;
7663 lt__PROGRAM__LTX_preloaded_symbols[] =
7665   { "@PROGRAM@", (void *) 0 },
7666 _LT_EOF
7667           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7668           cat <<\_LT_EOF >> conftest.$ac_ext
7669   {0, (void *) 0}
7670 };
7672 /* This works around a problem in FreeBSD linker */
7673 #ifdef FREEBSD_WORKAROUND
7674 static const void *lt_preloaded_setup() {
7675   return lt__PROGRAM__LTX_preloaded_symbols;
7677 #endif
7679 #ifdef __cplusplus
7681 #endif
7682 _LT_EOF
7683           # Now try linking the two files.
7684           mv conftest.$ac_objext conftstm.$ac_objext
7685           lt_save_LIBS="$LIBS"
7686           lt_save_CFLAGS="$CFLAGS"
7687           LIBS="conftstm.$ac_objext"
7688           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7689           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7690   (eval $ac_link) 2>&5
7691   ac_status=$?
7692   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7693   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7694             pipe_works=yes
7695           fi
7696           LIBS="$lt_save_LIBS"
7697           CFLAGS="$lt_save_CFLAGS"
7698         else
7699           echo "cannot find nm_test_func in $nlist" >&5
7700         fi
7701       else
7702         echo "cannot find nm_test_var in $nlist" >&5
7703       fi
7704     else
7705       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7706     fi
7707   else
7708     echo "$progname: failed program was:" >&5
7709     cat conftest.$ac_ext >&5
7710   fi
7711   rm -rf conftest* conftst*
7713   # Do not use the global_symbol_pipe unless it works.
7714   if test "$pipe_works" = yes; then
7715     break
7716   else
7717     lt_cv_sys_global_symbol_pipe=
7718   fi
7719 done
7721 fi
7723 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7724   lt_cv_sys_global_symbol_to_cdecl=
7725 fi
7726 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7727   { $as_echo "$as_me:$LINENO: result: failed" >&5
7728 $as_echo "failed" >&6; }
7729 else
7730   { $as_echo "$as_me:$LINENO: result: ok" >&5
7731 $as_echo "ok" >&6; }
7732 fi
7755 # Check whether --enable-libtool-lock was given.
7756 if test "${enable_libtool_lock+set}" = set; then
7757   enableval=$enable_libtool_lock;
7758 fi
7760 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7762 # Some flags need to be propagated to the compiler or linker for good
7763 # libtool support.
7764 case $host in
7765 ia64-*-hpux*)
7766   # Find out which ABI we are using.
7767   echo 'int i;' > conftest.$ac_ext
7768   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7769   (eval $ac_compile) 2>&5
7770   ac_status=$?
7771   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7772   (exit $ac_status); }; then
7773     case `/usr/bin/file conftest.$ac_objext` in
7774       *ELF-32*)
7775         HPUX_IA64_MODE="32"
7776         ;;
7777       *ELF-64*)
7778         HPUX_IA64_MODE="64"
7779         ;;
7780     esac
7781   fi
7782   rm -rf conftest*
7783   ;;
7784 *-*-irix6*)
7785   # Find out which ABI we are using.
7786   echo '#line 7786 "configure"' > conftest.$ac_ext
7787   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7788   (eval $ac_compile) 2>&5
7789   ac_status=$?
7790   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7791   (exit $ac_status); }; then
7792     if test "$lt_cv_prog_gnu_ld" = yes; then
7793       case `/usr/bin/file conftest.$ac_objext` in
7794         *32-bit*)
7795           LD="${LD-ld} -melf32bsmip"
7796           ;;
7797         *N32*)
7798           LD="${LD-ld} -melf32bmipn32"
7799           ;;
7800         *64-bit*)
7801           LD="${LD-ld} -melf64bmip"
7802         ;;
7803       esac
7804     else
7805       case `/usr/bin/file conftest.$ac_objext` in
7806         *32-bit*)
7807           LD="${LD-ld} -32"
7808           ;;
7809         *N32*)
7810           LD="${LD-ld} -n32"
7811           ;;
7812         *64-bit*)
7813           LD="${LD-ld} -64"
7814           ;;
7815       esac
7816     fi
7817   fi
7818   rm -rf conftest*
7819   ;;
7821 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7822 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7823   # Find out which ABI we are using.
7824   echo 'int i;' > conftest.$ac_ext
7825   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7826   (eval $ac_compile) 2>&5
7827   ac_status=$?
7828   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7829   (exit $ac_status); }; then
7830     case `/usr/bin/file conftest.o` in
7831       *32-bit*)
7832         case $host in
7833           x86_64-*kfreebsd*-gnu)
7834             LD="${LD-ld} -m elf_i386_fbsd"
7835             ;;
7836           x86_64-*linux*)
7837             LD="${LD-ld} -m elf_i386"
7838             ;;
7839           ppc64-*linux*|powerpc64-*linux*)
7840             LD="${LD-ld} -m elf32ppclinux"
7841             ;;
7842           s390x-*linux*)
7843             LD="${LD-ld} -m elf_s390"
7844             ;;
7845           sparc64-*linux*)
7846             LD="${LD-ld} -m elf32_sparc"
7847             ;;
7848         esac
7849         ;;
7850       *64-bit*)
7851         case $host in
7852           x86_64-*kfreebsd*-gnu)
7853             LD="${LD-ld} -m elf_x86_64_fbsd"
7854             ;;
7855           x86_64-*linux*)
7856             LD="${LD-ld} -m elf_x86_64"
7857             ;;
7858           ppc*-*linux*|powerpc*-*linux*)
7859             LD="${LD-ld} -m elf64ppc"
7860             ;;
7861           s390*-*linux*|s390*-*tpf*)
7862             LD="${LD-ld} -m elf64_s390"
7863             ;;
7864           sparc*-*linux*)
7865             LD="${LD-ld} -m elf64_sparc"
7866             ;;
7867         esac
7868         ;;
7869     esac
7870   fi
7871   rm -rf conftest*
7872   ;;
7874 *-*-sco3.2v5*)
7875   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7876   SAVE_CFLAGS="$CFLAGS"
7877   CFLAGS="$CFLAGS -belf"
7878   { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7879 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7880 if test "${lt_cv_cc_needs_belf+set}" = set; then
7881   $as_echo_n "(cached) " >&6
7882 else
7883   ac_ext=c
7884 ac_cpp='$CPP $CPPFLAGS'
7885 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7886 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7887 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7889      cat >conftest.$ac_ext <<_ACEOF
7890 /* confdefs.h.  */
7891 _ACEOF
7892 cat confdefs.h >>conftest.$ac_ext
7893 cat >>conftest.$ac_ext <<_ACEOF
7894 /* end confdefs.h.  */
7896 int
7897 main ()
7900   ;
7901   return 0;
7903 _ACEOF
7904 rm -f conftest.$ac_objext conftest$ac_exeext
7905 if { (ac_try="$ac_link"
7906 case "(($ac_try" in
7907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7908   *) ac_try_echo=$ac_try;;
7909 esac
7910 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7911 $as_echo "$ac_try_echo") >&5
7912   (eval "$ac_link") 2>conftest.er1
7913   ac_status=$?
7914   grep -v '^ *+' conftest.er1 >conftest.err
7915   rm -f conftest.er1
7916   cat conftest.err >&5
7917   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7918   (exit $ac_status); } && {
7919          test -z "$ac_c_werror_flag" ||
7920          test ! -s conftest.err
7921        } && test -s conftest$ac_exeext && {
7922          test "$cross_compiling" = yes ||
7923          $as_test_x conftest$ac_exeext
7924        }; then
7925   lt_cv_cc_needs_belf=yes
7926 else
7927   $as_echo "$as_me: failed program was:" >&5
7928 sed 's/^/| /' conftest.$ac_ext >&5
7930         lt_cv_cc_needs_belf=no
7931 fi
7933 rm -rf conftest.dSYM
7934 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7935       conftest$ac_exeext conftest.$ac_ext
7936      ac_ext=c
7937 ac_cpp='$CPP $CPPFLAGS'
7938 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7939 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7940 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7942 fi
7943 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7944 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7945   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7946     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7947     CFLAGS="$SAVE_CFLAGS"
7948   fi
7949   ;;
7950 sparc*-*solaris*)
7951   # Find out which ABI we are using.
7952   echo 'int i;' > conftest.$ac_ext
7953   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7954   (eval $ac_compile) 2>&5
7955   ac_status=$?
7956   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7957   (exit $ac_status); }; then
7958     case `/usr/bin/file conftest.o` in
7959     *64-bit*)
7960       case $lt_cv_prog_gnu_ld in
7961       yes*) LD="${LD-ld} -m elf64_sparc" ;;
7962       *)
7963         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7964           LD="${LD-ld} -64"
7965         fi
7966         ;;
7967       esac
7968       ;;
7969     esac
7970   fi
7971   rm -rf conftest*
7972   ;;
7973 esac
7975 need_locks="$enable_libtool_lock"
7978   case $host_os in
7979     rhapsody* | darwin*)
7980     if test -n "$ac_tool_prefix"; then
7981   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7982 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7983 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7984 $as_echo_n "checking for $ac_word... " >&6; }
7985 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7986   $as_echo_n "(cached) " >&6
7987 else
7988   if test -n "$DSYMUTIL"; then
7989   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7990 else
7991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7992 for as_dir in $PATH
7993 do
7994   IFS=$as_save_IFS
7995   test -z "$as_dir" && as_dir=.
7996   for ac_exec_ext in '' $ac_executable_extensions; do
7997   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7998     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7999     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8000     break 2
8001   fi
8002 done
8003 done
8004 IFS=$as_save_IFS
8006 fi
8007 fi
8008 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8009 if test -n "$DSYMUTIL"; then
8010   { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
8011 $as_echo "$DSYMUTIL" >&6; }
8012 else
8013   { $as_echo "$as_me:$LINENO: result: no" >&5
8014 $as_echo "no" >&6; }
8015 fi
8018 fi
8019 if test -z "$ac_cv_prog_DSYMUTIL"; then
8020   ac_ct_DSYMUTIL=$DSYMUTIL
8021   # Extract the first word of "dsymutil", so it can be a program name with args.
8022 set dummy dsymutil; ac_word=$2
8023 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8024 $as_echo_n "checking for $ac_word... " >&6; }
8025 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
8026   $as_echo_n "(cached) " >&6
8027 else
8028   if test -n "$ac_ct_DSYMUTIL"; then
8029   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8030 else
8031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8032 for as_dir in $PATH
8033 do
8034   IFS=$as_save_IFS
8035   test -z "$as_dir" && as_dir=.
8036   for ac_exec_ext in '' $ac_executable_extensions; do
8037   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8038     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8039     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8040     break 2
8041   fi
8042 done
8043 done
8044 IFS=$as_save_IFS
8046 fi
8047 fi
8048 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8049 if test -n "$ac_ct_DSYMUTIL"; then
8050   { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
8051 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8052 else
8053   { $as_echo "$as_me:$LINENO: result: no" >&5
8054 $as_echo "no" >&6; }
8055 fi
8057   if test "x$ac_ct_DSYMUTIL" = x; then
8058     DSYMUTIL=":"
8059   else
8060     case $cross_compiling:$ac_tool_warned in
8061 yes:)
8062 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8063 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8064 ac_tool_warned=yes ;;
8065 esac
8066     DSYMUTIL=$ac_ct_DSYMUTIL
8067   fi
8068 else
8069   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8070 fi
8072     if test -n "$ac_tool_prefix"; then
8073   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8074 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8075 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8076 $as_echo_n "checking for $ac_word... " >&6; }
8077 if test "${ac_cv_prog_NMEDIT+set}" = set; then
8078   $as_echo_n "(cached) " >&6
8079 else
8080   if test -n "$NMEDIT"; then
8081   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8082 else
8083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8084 for as_dir in $PATH
8085 do
8086   IFS=$as_save_IFS
8087   test -z "$as_dir" && as_dir=.
8088   for ac_exec_ext in '' $ac_executable_extensions; do
8089   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8090     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8091     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8092     break 2
8093   fi
8094 done
8095 done
8096 IFS=$as_save_IFS
8098 fi
8099 fi
8100 NMEDIT=$ac_cv_prog_NMEDIT
8101 if test -n "$NMEDIT"; then
8102   { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
8103 $as_echo "$NMEDIT" >&6; }
8104 else
8105   { $as_echo "$as_me:$LINENO: result: no" >&5
8106 $as_echo "no" >&6; }
8107 fi
8110 fi
8111 if test -z "$ac_cv_prog_NMEDIT"; then
8112   ac_ct_NMEDIT=$NMEDIT
8113   # Extract the first word of "nmedit", so it can be a program name with args.
8114 set dummy nmedit; ac_word=$2
8115 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8116 $as_echo_n "checking for $ac_word... " >&6; }
8117 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
8118   $as_echo_n "(cached) " >&6
8119 else
8120   if test -n "$ac_ct_NMEDIT"; then
8121   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8122 else
8123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8124 for as_dir in $PATH
8125 do
8126   IFS=$as_save_IFS
8127   test -z "$as_dir" && as_dir=.
8128   for ac_exec_ext in '' $ac_executable_extensions; do
8129   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8130     ac_cv_prog_ac_ct_NMEDIT="nmedit"
8131     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8132     break 2
8133   fi
8134 done
8135 done
8136 IFS=$as_save_IFS
8138 fi
8139 fi
8140 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8141 if test -n "$ac_ct_NMEDIT"; then
8142   { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
8143 $as_echo "$ac_ct_NMEDIT" >&6; }
8144 else
8145   { $as_echo "$as_me:$LINENO: result: no" >&5
8146 $as_echo "no" >&6; }
8147 fi
8149   if test "x$ac_ct_NMEDIT" = x; then
8150     NMEDIT=":"
8151   else
8152     case $cross_compiling:$ac_tool_warned in
8153 yes:)
8154 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8155 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8156 ac_tool_warned=yes ;;
8157 esac
8158     NMEDIT=$ac_ct_NMEDIT
8159   fi
8160 else
8161   NMEDIT="$ac_cv_prog_NMEDIT"
8162 fi
8164     if test -n "$ac_tool_prefix"; then
8165   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8166 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8167 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8168 $as_echo_n "checking for $ac_word... " >&6; }
8169 if test "${ac_cv_prog_LIPO+set}" = set; then
8170   $as_echo_n "(cached) " >&6
8171 else
8172   if test -n "$LIPO"; then
8173   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8174 else
8175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8176 for as_dir in $PATH
8177 do
8178   IFS=$as_save_IFS
8179   test -z "$as_dir" && as_dir=.
8180   for ac_exec_ext in '' $ac_executable_extensions; do
8181   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8182     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8183     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8184     break 2
8185   fi
8186 done
8187 done
8188 IFS=$as_save_IFS
8190 fi
8191 fi
8192 LIPO=$ac_cv_prog_LIPO
8193 if test -n "$LIPO"; then
8194   { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
8195 $as_echo "$LIPO" >&6; }
8196 else
8197   { $as_echo "$as_me:$LINENO: result: no" >&5
8198 $as_echo "no" >&6; }
8199 fi
8202 fi
8203 if test -z "$ac_cv_prog_LIPO"; then
8204   ac_ct_LIPO=$LIPO
8205   # Extract the first word of "lipo", so it can be a program name with args.
8206 set dummy lipo; ac_word=$2
8207 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8208 $as_echo_n "checking for $ac_word... " >&6; }
8209 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
8210   $as_echo_n "(cached) " >&6
8211 else
8212   if test -n "$ac_ct_LIPO"; then
8213   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8214 else
8215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8216 for as_dir in $PATH
8217 do
8218   IFS=$as_save_IFS
8219   test -z "$as_dir" && as_dir=.
8220   for ac_exec_ext in '' $ac_executable_extensions; do
8221   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8222     ac_cv_prog_ac_ct_LIPO="lipo"
8223     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8224     break 2
8225   fi
8226 done
8227 done
8228 IFS=$as_save_IFS
8230 fi
8231 fi
8232 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8233 if test -n "$ac_ct_LIPO"; then
8234   { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
8235 $as_echo "$ac_ct_LIPO" >&6; }
8236 else
8237   { $as_echo "$as_me:$LINENO: result: no" >&5
8238 $as_echo "no" >&6; }
8239 fi
8241   if test "x$ac_ct_LIPO" = x; then
8242     LIPO=":"
8243   else
8244     case $cross_compiling:$ac_tool_warned in
8245 yes:)
8246 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8247 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8248 ac_tool_warned=yes ;;
8249 esac
8250     LIPO=$ac_ct_LIPO
8251   fi
8252 else
8253   LIPO="$ac_cv_prog_LIPO"
8254 fi
8256     if test -n "$ac_tool_prefix"; then
8257   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8258 set dummy ${ac_tool_prefix}otool; ac_word=$2
8259 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8260 $as_echo_n "checking for $ac_word... " >&6; }
8261 if test "${ac_cv_prog_OTOOL+set}" = set; then
8262   $as_echo_n "(cached) " >&6
8263 else
8264   if test -n "$OTOOL"; then
8265   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8266 else
8267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8268 for as_dir in $PATH
8269 do
8270   IFS=$as_save_IFS
8271   test -z "$as_dir" && as_dir=.
8272   for ac_exec_ext in '' $ac_executable_extensions; do
8273   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8274     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8275     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8276     break 2
8277   fi
8278 done
8279 done
8280 IFS=$as_save_IFS
8282 fi
8283 fi
8284 OTOOL=$ac_cv_prog_OTOOL
8285 if test -n "$OTOOL"; then
8286   { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
8287 $as_echo "$OTOOL" >&6; }
8288 else
8289   { $as_echo "$as_me:$LINENO: result: no" >&5
8290 $as_echo "no" >&6; }
8291 fi
8294 fi
8295 if test -z "$ac_cv_prog_OTOOL"; then
8296   ac_ct_OTOOL=$OTOOL
8297   # Extract the first word of "otool", so it can be a program name with args.
8298 set dummy otool; ac_word=$2
8299 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8300 $as_echo_n "checking for $ac_word... " >&6; }
8301 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
8302   $as_echo_n "(cached) " >&6
8303 else
8304   if test -n "$ac_ct_OTOOL"; then
8305   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8306 else
8307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8308 for as_dir in $PATH
8309 do
8310   IFS=$as_save_IFS
8311   test -z "$as_dir" && as_dir=.
8312   for ac_exec_ext in '' $ac_executable_extensions; do
8313   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8314     ac_cv_prog_ac_ct_OTOOL="otool"
8315     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8316     break 2
8317   fi
8318 done
8319 done
8320 IFS=$as_save_IFS
8322 fi
8323 fi
8324 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8325 if test -n "$ac_ct_OTOOL"; then
8326   { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
8327 $as_echo "$ac_ct_OTOOL" >&6; }
8328 else
8329   { $as_echo "$as_me:$LINENO: result: no" >&5
8330 $as_echo "no" >&6; }
8331 fi
8333   if test "x$ac_ct_OTOOL" = x; then
8334     OTOOL=":"
8335   else
8336     case $cross_compiling:$ac_tool_warned in
8337 yes:)
8338 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8339 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8340 ac_tool_warned=yes ;;
8341 esac
8342     OTOOL=$ac_ct_OTOOL
8343   fi
8344 else
8345   OTOOL="$ac_cv_prog_OTOOL"
8346 fi
8348     if test -n "$ac_tool_prefix"; then
8349   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8350 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8351 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8352 $as_echo_n "checking for $ac_word... " >&6; }
8353 if test "${ac_cv_prog_OTOOL64+set}" = set; then
8354   $as_echo_n "(cached) " >&6
8355 else
8356   if test -n "$OTOOL64"; then
8357   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8358 else
8359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8360 for as_dir in $PATH
8361 do
8362   IFS=$as_save_IFS
8363   test -z "$as_dir" && as_dir=.
8364   for ac_exec_ext in '' $ac_executable_extensions; do
8365   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8366     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8367     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8368     break 2
8369   fi
8370 done
8371 done
8372 IFS=$as_save_IFS
8374 fi
8375 fi
8376 OTOOL64=$ac_cv_prog_OTOOL64
8377 if test -n "$OTOOL64"; then
8378   { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
8379 $as_echo "$OTOOL64" >&6; }
8380 else
8381   { $as_echo "$as_me:$LINENO: result: no" >&5
8382 $as_echo "no" >&6; }
8383 fi
8386 fi
8387 if test -z "$ac_cv_prog_OTOOL64"; then
8388   ac_ct_OTOOL64=$OTOOL64
8389   # Extract the first word of "otool64", so it can be a program name with args.
8390 set dummy otool64; ac_word=$2
8391 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8392 $as_echo_n "checking for $ac_word... " >&6; }
8393 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
8394   $as_echo_n "(cached) " >&6
8395 else
8396   if test -n "$ac_ct_OTOOL64"; then
8397   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8398 else
8399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8400 for as_dir in $PATH
8401 do
8402   IFS=$as_save_IFS
8403   test -z "$as_dir" && as_dir=.
8404   for ac_exec_ext in '' $ac_executable_extensions; do
8405   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8406     ac_cv_prog_ac_ct_OTOOL64="otool64"
8407     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8408     break 2
8409   fi
8410 done
8411 done
8412 IFS=$as_save_IFS
8414 fi
8415 fi
8416 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8417 if test -n "$ac_ct_OTOOL64"; then
8418   { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
8419 $as_echo "$ac_ct_OTOOL64" >&6; }
8420 else
8421   { $as_echo "$as_me:$LINENO: result: no" >&5
8422 $as_echo "no" >&6; }
8423 fi
8425   if test "x$ac_ct_OTOOL64" = x; then
8426     OTOOL64=":"
8427   else
8428     case $cross_compiling:$ac_tool_warned in
8429 yes:)
8430 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8431 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8432 ac_tool_warned=yes ;;
8433 esac
8434     OTOOL64=$ac_ct_OTOOL64
8435   fi
8436 else
8437   OTOOL64="$ac_cv_prog_OTOOL64"
8438 fi
8466     { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
8467 $as_echo_n "checking for -single_module linker flag... " >&6; }
8468 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
8469   $as_echo_n "(cached) " >&6
8470 else
8471   lt_cv_apple_cc_single_mod=no
8472       if test -z "${LT_MULTI_MODULE}"; then
8473         # By default we will add the -single_module flag. You can override
8474         # by either setting the environment variable LT_MULTI_MODULE
8475         # non-empty at configure time, or by adding -multi_module to the
8476         # link flags.
8477         rm -rf libconftest.dylib*
8478         echo "int foo(void){return 1;}" > conftest.c
8479         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8480 -dynamiclib -Wl,-single_module conftest.c" >&5
8481         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8482           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8483         _lt_result=$?
8484         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8485           lt_cv_apple_cc_single_mod=yes
8486         else
8487           cat conftest.err >&5
8488         fi
8489         rm -rf libconftest.dylib*
8490         rm -f conftest.*
8491       fi
8492 fi
8493 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
8494 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8495     { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
8496 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8497 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
8498   $as_echo_n "(cached) " >&6
8499 else
8500   lt_cv_ld_exported_symbols_list=no
8501       save_LDFLAGS=$LDFLAGS
8502       echo "_main" > conftest.sym
8503       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8504       cat >conftest.$ac_ext <<_ACEOF
8505 /* confdefs.h.  */
8506 _ACEOF
8507 cat confdefs.h >>conftest.$ac_ext
8508 cat >>conftest.$ac_ext <<_ACEOF
8509 /* end confdefs.h.  */
8511 int
8512 main ()
8515   ;
8516   return 0;
8518 _ACEOF
8519 rm -f conftest.$ac_objext conftest$ac_exeext
8520 if { (ac_try="$ac_link"
8521 case "(($ac_try" in
8522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8523   *) ac_try_echo=$ac_try;;
8524 esac
8525 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8526 $as_echo "$ac_try_echo") >&5
8527   (eval "$ac_link") 2>conftest.er1
8528   ac_status=$?
8529   grep -v '^ *+' conftest.er1 >conftest.err
8530   rm -f conftest.er1
8531   cat conftest.err >&5
8532   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8533   (exit $ac_status); } && {
8534          test -z "$ac_c_werror_flag" ||
8535          test ! -s conftest.err
8536        } && test -s conftest$ac_exeext && {
8537          test "$cross_compiling" = yes ||
8538          $as_test_x conftest$ac_exeext
8539        }; then
8540   lt_cv_ld_exported_symbols_list=yes
8541 else
8542   $as_echo "$as_me: failed program was:" >&5
8543 sed 's/^/| /' conftest.$ac_ext >&5
8545         lt_cv_ld_exported_symbols_list=no
8546 fi
8548 rm -rf conftest.dSYM
8549 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8550       conftest$ac_exeext conftest.$ac_ext
8551         LDFLAGS="$save_LDFLAGS"
8553 fi
8554 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
8555 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8556     case $host_os in
8557     rhapsody* | darwin1.[012])
8558       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8559     darwin1.*)
8560       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8561     darwin*) # darwin 5.x on
8562       # if running on 10.5 or later, the deployment target defaults
8563       # to the OS version, if on x86, and 10.4, the deployment
8564       # target defaults to 10.4. Don't you love it?
8565       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8566         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8567           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8568         10.[012]*)
8569           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8570         10.*)
8571           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8572       esac
8573     ;;
8574   esac
8575     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8576       _lt_dar_single_mod='$single_module'
8577     fi
8578     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8579       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8580     else
8581       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8582     fi
8583     if test "$DSYMUTIL" != ":"; then
8584       _lt_dsymutil='~$DSYMUTIL $lib || :'
8585     else
8586       _lt_dsymutil=
8587     fi
8588     ;;
8589   esac
8592 for ac_header in dlfcn.h
8593 do
8594 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8595 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8596 $as_echo_n "checking for $ac_header... " >&6; }
8597 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8598   $as_echo_n "(cached) " >&6
8599 else
8600   cat >conftest.$ac_ext <<_ACEOF
8601 /* confdefs.h.  */
8602 _ACEOF
8603 cat confdefs.h >>conftest.$ac_ext
8604 cat >>conftest.$ac_ext <<_ACEOF
8605 /* end confdefs.h.  */
8606 $ac_includes_default
8608 #include <$ac_header>
8609 _ACEOF
8610 rm -f conftest.$ac_objext
8611 if { (ac_try="$ac_compile"
8612 case "(($ac_try" in
8613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8614   *) ac_try_echo=$ac_try;;
8615 esac
8616 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8617 $as_echo "$ac_try_echo") >&5
8618   (eval "$ac_compile") 2>conftest.er1
8619   ac_status=$?
8620   grep -v '^ *+' conftest.er1 >conftest.err
8621   rm -f conftest.er1
8622   cat conftest.err >&5
8623   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8624   (exit $ac_status); } && {
8625          test -z "$ac_c_werror_flag" ||
8626          test ! -s conftest.err
8627        } && test -s conftest.$ac_objext; then
8628   eval "$as_ac_Header=yes"
8629 else
8630   $as_echo "$as_me: failed program was:" >&5
8631 sed 's/^/| /' conftest.$ac_ext >&5
8633         eval "$as_ac_Header=no"
8634 fi
8636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8637 fi
8638 ac_res=`eval 'as_val=${'$as_ac_Header'}
8639                  $as_echo "$as_val"'`
8640                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8641 $as_echo "$ac_res" >&6; }
8642 as_val=`eval 'as_val=${'$as_ac_Header'}
8643                  $as_echo "$as_val"'`
8644    if test "x$as_val" = x""yes; then
8645   cat >>confdefs.h <<_ACEOF
8646 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8647 _ACEOF
8649 fi
8651 done
8655 # Set options
8659         enable_dlopen=no
8662   enable_win32_dll=no
8665             # Check whether --enable-shared was given.
8666 if test "${enable_shared+set}" = set; then
8667   enableval=$enable_shared; p=${PACKAGE-default}
8668     case $enableval in
8669     yes) enable_shared=yes ;;
8670     no) enable_shared=no ;;
8671     *)
8672       enable_shared=no
8673       # Look at the argument we got.  We use all the common list separators.
8674       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8675       for pkg in $enableval; do
8676         IFS="$lt_save_ifs"
8677         if test "X$pkg" = "X$p"; then
8678           enable_shared=yes
8679         fi
8680       done
8681       IFS="$lt_save_ifs"
8682       ;;
8683     esac
8684 else
8685   enable_shared=yes
8686 fi
8696   # Check whether --enable-static was given.
8697 if test "${enable_static+set}" = set; then
8698   enableval=$enable_static; p=${PACKAGE-default}
8699     case $enableval in
8700     yes) enable_static=yes ;;
8701     no) enable_static=no ;;
8702     *)
8703      enable_static=no
8704       # Look at the argument we got.  We use all the common list separators.
8705       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8706       for pkg in $enableval; do
8707         IFS="$lt_save_ifs"
8708         if test "X$pkg" = "X$p"; then
8709           enable_static=yes
8710         fi
8711       done
8712       IFS="$lt_save_ifs"
8713       ;;
8714     esac
8715 else
8716   enable_static=yes
8717 fi
8728 # Check whether --with-pic was given.
8729 if test "${with_pic+set}" = set; then
8730   withval=$with_pic; pic_mode="$withval"
8731 else
8732   pic_mode=default
8733 fi
8736 test -z "$pic_mode" && pic_mode=default
8744   # Check whether --enable-fast-install was given.
8745 if test "${enable_fast_install+set}" = set; then
8746   enableval=$enable_fast_install; p=${PACKAGE-default}
8747     case $enableval in
8748     yes) enable_fast_install=yes ;;
8749     no) enable_fast_install=no ;;
8750     *)
8751       enable_fast_install=no
8752       # Look at the argument we got.  We use all the common list separators.
8753       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8754       for pkg in $enableval; do
8755         IFS="$lt_save_ifs"
8756         if test "X$pkg" = "X$p"; then
8757           enable_fast_install=yes
8758         fi
8759       done
8760       IFS="$lt_save_ifs"
8761       ;;
8762     esac
8763 else
8764   enable_fast_install=yes
8765 fi
8777 # This can be used to rebuild libtool when needed
8778 LIBTOOL_DEPS="$ltmain"
8780 # Always use our own libtool.
8781 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8807 test -z "$LN_S" && LN_S="ln -s"
8822 if test -n "${ZSH_VERSION+set}" ; then
8823    setopt NO_GLOB_SUBST
8824 fi
8826 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
8827 $as_echo_n "checking for objdir... " >&6; }
8828 if test "${lt_cv_objdir+set}" = set; then
8829   $as_echo_n "(cached) " >&6
8830 else
8831   rm -f .libs 2>/dev/null
8832 mkdir .libs 2>/dev/null
8833 if test -d .libs; then
8834   lt_cv_objdir=.libs
8835 else
8836   # MS-DOS does not allow filenames that begin with a dot.
8837   lt_cv_objdir=_libs
8838 fi
8839 rmdir .libs 2>/dev/null
8840 fi
8841 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8842 $as_echo "$lt_cv_objdir" >&6; }
8843 objdir=$lt_cv_objdir
8849 cat >>confdefs.h <<_ACEOF
8850 #define LT_OBJDIR "$lt_cv_objdir/"
8851 _ACEOF
8869 case $host_os in
8870 aix3*)
8871   # AIX sometimes has problems with the GCC collect2 program.  For some
8872   # reason, if we set the COLLECT_NAMES environment variable, the problems
8873   # vanish in a puff of smoke.
8874   if test "X${COLLECT_NAMES+set}" != Xset; then
8875     COLLECT_NAMES=
8876     export COLLECT_NAMES
8877   fi
8878   ;;
8879 esac
8881 # Sed substitution that helps us do robust quoting.  It backslashifies
8882 # metacharacters that are still active within double-quoted strings.
8883 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8885 # Same as above, but do not quote variable references.
8886 double_quote_subst='s/\(["`\\]\)/\\\1/g'
8888 # Sed substitution to delay expansion of an escaped shell variable in a
8889 # double_quote_subst'ed string.
8890 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8892 # Sed substitution to delay expansion of an escaped single quote.
8893 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8895 # Sed substitution to avoid accidental globbing in evaled expressions
8896 no_glob_subst='s/\*/\\\*/g'
8898 # Global variables:
8899 ofile=libtool
8900 can_build_shared=yes
8902 # All known linkers require a `.a' archive for static linking (except MSVC,
8903 # which needs '.lib').
8904 libext=a
8906 with_gnu_ld="$lt_cv_prog_gnu_ld"
8908 old_CC="$CC"
8909 old_CFLAGS="$CFLAGS"
8911 # Set sane defaults for various variables
8912 test -z "$CC" && CC=cc
8913 test -z "$LTCC" && LTCC=$CC
8914 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8915 test -z "$LD" && LD=ld
8916 test -z "$ac_objext" && ac_objext=o
8918 for cc_temp in $compiler""; do
8919   case $cc_temp in
8920     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8921     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8922     \-*) ;;
8923     *) break;;
8924   esac
8925 done
8926 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8929 # Only perform the check for file, if the check method requires it
8930 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8931 case $deplibs_check_method in
8932 file_magic*)
8933   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8934     { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8935 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8936 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8937   $as_echo_n "(cached) " >&6
8938 else
8939   case $MAGIC_CMD in
8940 [\\/*] |  ?:[\\/]*)
8941   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8942   ;;
8943 *)
8944   lt_save_MAGIC_CMD="$MAGIC_CMD"
8945   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8946   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8947   for ac_dir in $ac_dummy; do
8948     IFS="$lt_save_ifs"
8949     test -z "$ac_dir" && ac_dir=.
8950     if test -f $ac_dir/${ac_tool_prefix}file; then
8951       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8952       if test -n "$file_magic_test_file"; then
8953         case $deplibs_check_method in
8954         "file_magic "*)
8955           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8956           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8957           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8958             $EGREP "$file_magic_regex" > /dev/null; then
8959             :
8960           else
8961             cat <<_LT_EOF 1>&2
8963 *** Warning: the command libtool uses to detect shared libraries,
8964 *** $file_magic_cmd, produces output that libtool cannot recognize.
8965 *** The result is that libtool may fail to recognize shared libraries
8966 *** as such.  This will affect the creation of libtool libraries that
8967 *** depend on shared libraries, but programs linked with such libtool
8968 *** libraries will work regardless of this problem.  Nevertheless, you
8969 *** may want to report the problem to your system manager and/or to
8970 *** bug-libtool@gnu.org
8972 _LT_EOF
8973           fi ;;
8974         esac
8975       fi
8976       break
8977     fi
8978   done
8979   IFS="$lt_save_ifs"
8980   MAGIC_CMD="$lt_save_MAGIC_CMD"
8981   ;;
8982 esac
8983 fi
8985 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8986 if test -n "$MAGIC_CMD"; then
8987   { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8988 $as_echo "$MAGIC_CMD" >&6; }
8989 else
8990   { $as_echo "$as_me:$LINENO: result: no" >&5
8991 $as_echo "no" >&6; }
8992 fi
8998 if test -z "$lt_cv_path_MAGIC_CMD"; then
8999   if test -n "$ac_tool_prefix"; then
9000     { $as_echo "$as_me:$LINENO: checking for file" >&5
9001 $as_echo_n "checking for file... " >&6; }
9002 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9003   $as_echo_n "(cached) " >&6
9004 else
9005   case $MAGIC_CMD in
9006 [\\/*] |  ?:[\\/]*)
9007   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9008   ;;
9009 *)
9010   lt_save_MAGIC_CMD="$MAGIC_CMD"
9011   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9012   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9013   for ac_dir in $ac_dummy; do
9014     IFS="$lt_save_ifs"
9015     test -z "$ac_dir" && ac_dir=.
9016     if test -f $ac_dir/file; then
9017       lt_cv_path_MAGIC_CMD="$ac_dir/file"
9018       if test -n "$file_magic_test_file"; then
9019         case $deplibs_check_method in
9020         "file_magic "*)
9021           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9022           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9023           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9024             $EGREP "$file_magic_regex" > /dev/null; then
9025             :
9026           else
9027             cat <<_LT_EOF 1>&2
9029 *** Warning: the command libtool uses to detect shared libraries,
9030 *** $file_magic_cmd, produces output that libtool cannot recognize.
9031 *** The result is that libtool may fail to recognize shared libraries
9032 *** as such.  This will affect the creation of libtool libraries that
9033 *** depend on shared libraries, but programs linked with such libtool
9034 *** libraries will work regardless of this problem.  Nevertheless, you
9035 *** may want to report the problem to your system manager and/or to
9036 *** bug-libtool@gnu.org
9038 _LT_EOF
9039           fi ;;
9040         esac
9041       fi
9042       break
9043     fi
9044   done
9045   IFS="$lt_save_ifs"
9046   MAGIC_CMD="$lt_save_MAGIC_CMD"
9047   ;;
9048 esac
9049 fi
9051 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9052 if test -n "$MAGIC_CMD"; then
9053   { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9054 $as_echo "$MAGIC_CMD" >&6; }
9055 else
9056   { $as_echo "$as_me:$LINENO: result: no" >&5
9057 $as_echo "no" >&6; }
9058 fi
9061   else
9062     MAGIC_CMD=:
9063   fi
9064 fi
9066   fi
9067   ;;
9068 esac
9070 # Use C for the default configuration in the libtool script
9072 lt_save_CC="$CC"
9073 ac_ext=c
9074 ac_cpp='$CPP $CPPFLAGS'
9075 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9076 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9077 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9080 # Source file extension for C test sources.
9081 ac_ext=c
9083 # Object file extension for compiled C test sources.
9084 objext=o
9085 objext=$objext
9087 # Code to be used in simple compile tests
9088 lt_simple_compile_test_code="int some_variable = 0;"
9090 # Code to be used in simple link tests
9091 lt_simple_link_test_code='int main(){return(0);}'
9099 # If no C compiler was specified, use CC.
9100 LTCC=${LTCC-"$CC"}
9102 # If no C compiler flags were specified, use CFLAGS.
9103 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9105 # Allow CC to be a program name with arguments.
9106 compiler=$CC
9108 # Save the default compiler, since it gets overwritten when the other
9109 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9110 compiler_DEFAULT=$CC
9112 # save warnings/boilerplate of simple test code
9113 ac_outfile=conftest.$ac_objext
9114 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9115 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9116 _lt_compiler_boilerplate=`cat conftest.err`
9117 $RM conftest*
9119 ac_outfile=conftest.$ac_objext
9120 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9121 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9122 _lt_linker_boilerplate=`cat conftest.err`
9123 $RM -r conftest*
9126 ## CAVEAT EMPTOR:
9127 ## There is no encapsulation within the following macros, do not change
9128 ## the running order or otherwise move them around unless you know exactly
9129 ## what you are doing...
9130 if test -n "$compiler"; then
9132 lt_prog_compiler_no_builtin_flag=
9134 if test "$GCC" = yes; then
9135   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9137   { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9138 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9139 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9140   $as_echo_n "(cached) " >&6
9141 else
9142   lt_cv_prog_compiler_rtti_exceptions=no
9143    ac_outfile=conftest.$ac_objext
9144    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9145    lt_compiler_flag="-fno-rtti -fno-exceptions"
9146    # Insert the option either (1) after the last *FLAGS variable, or
9147    # (2) before a word containing "conftest.", or (3) at the end.
9148    # Note that $ac_compile itself does not contain backslashes and begins
9149    # with a dollar sign (not a hyphen), so the echo should work correctly.
9150    # The option is referenced via a variable to avoid confusing sed.
9151    lt_compile=`echo "$ac_compile" | $SED \
9152    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9153    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9154    -e 's:$: $lt_compiler_flag:'`
9155    (eval echo "\"\$as_me:9155: $lt_compile\"" >&5)
9156    (eval "$lt_compile" 2>conftest.err)
9157    ac_status=$?
9158    cat conftest.err >&5
9159    echo "$as_me:9159: \$? = $ac_status" >&5
9160    if (exit $ac_status) && test -s "$ac_outfile"; then
9161      # The compiler can only warn and ignore the option if not recognized
9162      # So say no if there are warnings other than the usual output.
9163      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9164      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9165      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9166        lt_cv_prog_compiler_rtti_exceptions=yes
9167      fi
9168    fi
9169    $RM conftest*
9171 fi
9172 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9173 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9175 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9176     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9177 else
9178     :
9179 fi
9181 fi
9188   lt_prog_compiler_wl=
9189 lt_prog_compiler_pic=
9190 lt_prog_compiler_static=
9192 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9193 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9195   if test "$GCC" = yes; then
9196     lt_prog_compiler_wl='-Wl,'
9197     lt_prog_compiler_static='-static'
9199     case $host_os in
9200       aix*)
9201       # All AIX code is PIC.
9202       if test "$host_cpu" = ia64; then
9203         # AIX 5 now supports IA64 processor
9204         lt_prog_compiler_static='-Bstatic'
9205       fi
9206       ;;
9208     amigaos*)
9209       case $host_cpu in
9210       powerpc)
9211             # see comment about AmigaOS4 .so support
9212             lt_prog_compiler_pic='-fPIC'
9213         ;;
9214       m68k)
9215             # FIXME: we need at least 68020 code to build shared libraries, but
9216             # adding the `-m68020' flag to GCC prevents building anything better,
9217             # like `-m68040'.
9218             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9219         ;;
9220       esac
9221       ;;
9223     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9224       # PIC is the default for these OSes.
9225       ;;
9227     mingw* | cygwin* | pw32* | os2* | cegcc*)
9228       # This hack is so that the source file can tell whether it is being
9229       # built for inclusion in a dll (and should export symbols for example).
9230       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9231       # (--disable-auto-import) libraries
9232       lt_prog_compiler_pic='-DDLL_EXPORT'
9233       ;;
9235     darwin* | rhapsody*)
9236       # PIC is the default on this platform
9237       # Common symbols not allowed in MH_DYLIB files
9238       lt_prog_compiler_pic='-fno-common'
9239       ;;
9241     hpux*)
9242       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9243       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9244       # sets the default TLS model and affects inlining.
9245       case $host_cpu in
9246       hppa*64*)
9247         # +Z the default
9248         ;;
9249       *)
9250         lt_prog_compiler_pic='-fPIC'
9251         ;;
9252       esac
9253       ;;
9255     interix[3-9]*)
9256       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9257       # Instead, we relocate shared libraries at runtime.
9258       ;;
9260     msdosdjgpp*)
9261       # Just because we use GCC doesn't mean we suddenly get shared libraries
9262       # on systems that don't support them.
9263       lt_prog_compiler_can_build_shared=no
9264       enable_shared=no
9265       ;;
9267     *nto* | *qnx*)
9268       # QNX uses GNU C++, but need to define -shared option too, otherwise
9269       # it will coredump.
9270       lt_prog_compiler_pic='-fPIC -shared'
9271       ;;
9273     sysv4*MP*)
9274       if test -d /usr/nec; then
9275         lt_prog_compiler_pic=-Kconform_pic
9276       fi
9277       ;;
9279     *)
9280       lt_prog_compiler_pic='-fPIC'
9281       ;;
9282     esac
9283   else
9284     # PORTME Check for flag to pass linker flags through the system compiler.
9285     case $host_os in
9286     aix*)
9287       lt_prog_compiler_wl='-Wl,'
9288       if test "$host_cpu" = ia64; then
9289         # AIX 5 now supports IA64 processor
9290         lt_prog_compiler_static='-Bstatic'
9291       else
9292         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9293       fi
9294       ;;
9296     mingw* | cygwin* | pw32* | os2* | cegcc*)
9297       # This hack is so that the source file can tell whether it is being
9298       # built for inclusion in a dll (and should export symbols for example).
9299       lt_prog_compiler_pic='-DDLL_EXPORT'
9300       ;;
9302     hpux9* | hpux10* | hpux11*)
9303       lt_prog_compiler_wl='-Wl,'
9304       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9305       # not for PA HP-UX.
9306       case $host_cpu in
9307       hppa*64*|ia64*)
9308         # +Z the default
9309         ;;
9310       *)
9311         lt_prog_compiler_pic='+Z'
9312         ;;
9313       esac
9314       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9315       lt_prog_compiler_static='${wl}-a ${wl}archive'
9316       ;;
9318     irix5* | irix6* | nonstopux*)
9319       lt_prog_compiler_wl='-Wl,'
9320       # PIC (with -KPIC) is the default.
9321       lt_prog_compiler_static='-non_shared'
9322       ;;
9324     linux* | k*bsd*-gnu)
9325       case $cc_basename in
9326       # old Intel for x86_64 which still supported -KPIC.
9327       ecc*)
9328         lt_prog_compiler_wl='-Wl,'
9329         lt_prog_compiler_pic='-KPIC'
9330         lt_prog_compiler_static='-static'
9331         ;;
9332       # icc used to be incompatible with GCC.
9333       # ICC 10 doesn't accept -KPIC any more.
9334       icc* | ifort*)
9335         lt_prog_compiler_wl='-Wl,'
9336         lt_prog_compiler_pic='-fPIC'
9337         lt_prog_compiler_static='-static'
9338         ;;
9339       # Lahey Fortran 8.1.
9340       lf95*)
9341         lt_prog_compiler_wl='-Wl,'
9342         lt_prog_compiler_pic='--shared'
9343         lt_prog_compiler_static='--static'
9344         ;;
9345       pgcc* | pgf77* | pgf90* | pgf95*)
9346         # Portland Group compilers (*not* the Pentium gcc compiler,
9347         # which looks to be a dead project)
9348         lt_prog_compiler_wl='-Wl,'
9349         lt_prog_compiler_pic='-fpic'
9350         lt_prog_compiler_static='-Bstatic'
9351         ;;
9352       ccc*)
9353         lt_prog_compiler_wl='-Wl,'
9354         # All Alpha code is PIC.
9355         lt_prog_compiler_static='-non_shared'
9356         ;;
9357       xl*)
9358         # IBM XL C 8.0/Fortran 10.1 on PPC
9359         lt_prog_compiler_wl='-Wl,'
9360         lt_prog_compiler_pic='-qpic'
9361         lt_prog_compiler_static='-qstaticlink'
9362         ;;
9363       *)
9364         case `$CC -V 2>&1 | sed 5q` in
9365         *Sun\ C*)
9366           # Sun C 5.9
9367           lt_prog_compiler_pic='-KPIC'
9368           lt_prog_compiler_static='-Bstatic'
9369           lt_prog_compiler_wl='-Wl,'
9370           ;;
9371         *Sun\ F*)
9372           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9373           lt_prog_compiler_pic='-KPIC'
9374           lt_prog_compiler_static='-Bstatic'
9375           lt_prog_compiler_wl=''
9376           ;;
9377         esac
9378         ;;
9379       esac
9380       ;;
9382     newsos6)
9383       lt_prog_compiler_pic='-KPIC'
9384       lt_prog_compiler_static='-Bstatic'
9385       ;;
9387     *nto* | *qnx*)
9388       # QNX uses GNU C++, but need to define -shared option too, otherwise
9389       # it will coredump.
9390       lt_prog_compiler_pic='-fPIC -shared'
9391       ;;
9393     osf3* | osf4* | osf5*)
9394       lt_prog_compiler_wl='-Wl,'
9395       # All OSF/1 code is PIC.
9396       lt_prog_compiler_static='-non_shared'
9397       ;;
9399     rdos*)
9400       lt_prog_compiler_static='-non_shared'
9401       ;;
9403     solaris*)
9404       lt_prog_compiler_pic='-KPIC'
9405       lt_prog_compiler_static='-Bstatic'
9406       case $cc_basename in
9407       f77* | f90* | f95*)
9408         lt_prog_compiler_wl='-Qoption ld ';;
9409       *)
9410         lt_prog_compiler_wl='-Wl,';;
9411       esac
9412       ;;
9414     sunos4*)
9415       lt_prog_compiler_wl='-Qoption ld '
9416       lt_prog_compiler_pic='-PIC'
9417       lt_prog_compiler_static='-Bstatic'
9418       ;;
9420     sysv4 | sysv4.2uw2* | sysv4.3*)
9421       lt_prog_compiler_wl='-Wl,'
9422       lt_prog_compiler_pic='-KPIC'
9423       lt_prog_compiler_static='-Bstatic'
9424       ;;
9426     sysv4*MP*)
9427       if test -d /usr/nec ;then
9428         lt_prog_compiler_pic='-Kconform_pic'
9429         lt_prog_compiler_static='-Bstatic'
9430       fi
9431       ;;
9433     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9434       lt_prog_compiler_wl='-Wl,'
9435       lt_prog_compiler_pic='-KPIC'
9436       lt_prog_compiler_static='-Bstatic'
9437       ;;
9439     unicos*)
9440       lt_prog_compiler_wl='-Wl,'
9441       lt_prog_compiler_can_build_shared=no
9442       ;;
9444     uts4*)
9445       lt_prog_compiler_pic='-pic'
9446       lt_prog_compiler_static='-Bstatic'
9447       ;;
9449     *)
9450       lt_prog_compiler_can_build_shared=no
9451       ;;
9452     esac
9453   fi
9455 case $host_os in
9456   # For platforms which do not support PIC, -DPIC is meaningless:
9457   *djgpp*)
9458     lt_prog_compiler_pic=
9459     ;;
9460   *)
9461     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9462     ;;
9463 esac
9464 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9465 $as_echo "$lt_prog_compiler_pic" >&6; }
9473 # Check to make sure the PIC flag actually works.
9475 if test -n "$lt_prog_compiler_pic"; then
9476   { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9477 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9478 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
9479   $as_echo_n "(cached) " >&6
9480 else
9481   lt_cv_prog_compiler_pic_works=no
9482    ac_outfile=conftest.$ac_objext
9483    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9484    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9485    # Insert the option either (1) after the last *FLAGS variable, or
9486    # (2) before a word containing "conftest.", or (3) at the end.
9487    # Note that $ac_compile itself does not contain backslashes and begins
9488    # with a dollar sign (not a hyphen), so the echo should work correctly.
9489    # The option is referenced via a variable to avoid confusing sed.
9490    lt_compile=`echo "$ac_compile" | $SED \
9491    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9492    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9493    -e 's:$: $lt_compiler_flag:'`
9494    (eval echo "\"\$as_me:9494: $lt_compile\"" >&5)
9495    (eval "$lt_compile" 2>conftest.err)
9496    ac_status=$?
9497    cat conftest.err >&5
9498    echo "$as_me:9498: \$? = $ac_status" >&5
9499    if (exit $ac_status) && test -s "$ac_outfile"; then
9500      # The compiler can only warn and ignore the option if not recognized
9501      # So say no if there are warnings other than the usual output.
9502      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9503      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9504      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9505        lt_cv_prog_compiler_pic_works=yes
9506      fi
9507    fi
9508    $RM conftest*
9510 fi
9511 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
9512 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9514 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9515     case $lt_prog_compiler_pic in
9516      "" | " "*) ;;
9517      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9518      esac
9519 else
9520     lt_prog_compiler_pic=
9521      lt_prog_compiler_can_build_shared=no
9522 fi
9524 fi
9532 # Check to make sure the static flag actually works.
9534 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9535 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9536 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9537 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
9538   $as_echo_n "(cached) " >&6
9539 else
9540   lt_cv_prog_compiler_static_works=no
9541    save_LDFLAGS="$LDFLAGS"
9542    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9543    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9544    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9545      # The linker can only warn and ignore the option if not recognized
9546      # So say no if there are warnings
9547      if test -s conftest.err; then
9548        # Append any errors to the config.log.
9549        cat conftest.err 1>&5
9550        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9551        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9552        if diff conftest.exp conftest.er2 >/dev/null; then
9553          lt_cv_prog_compiler_static_works=yes
9554        fi
9555      else
9556        lt_cv_prog_compiler_static_works=yes
9557      fi
9558    fi
9559    $RM -r conftest*
9560    LDFLAGS="$save_LDFLAGS"
9562 fi
9563 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
9564 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9566 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9567     :
9568 else
9569     lt_prog_compiler_static=
9570 fi
9578   { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9579 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9580 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9581   $as_echo_n "(cached) " >&6
9582 else
9583   lt_cv_prog_compiler_c_o=no
9584    $RM -r conftest 2>/dev/null
9585    mkdir conftest
9586    cd conftest
9587    mkdir out
9588    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9590    lt_compiler_flag="-o out/conftest2.$ac_objext"
9591    # Insert the option either (1) after the last *FLAGS variable, or
9592    # (2) before a word containing "conftest.", or (3) at the end.
9593    # Note that $ac_compile itself does not contain backslashes and begins
9594    # with a dollar sign (not a hyphen), so the echo should work correctly.
9595    lt_compile=`echo "$ac_compile" | $SED \
9596    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9597    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9598    -e 's:$: $lt_compiler_flag:'`
9599    (eval echo "\"\$as_me:9599: $lt_compile\"" >&5)
9600    (eval "$lt_compile" 2>out/conftest.err)
9601    ac_status=$?
9602    cat out/conftest.err >&5
9603    echo "$as_me:9603: \$? = $ac_status" >&5
9604    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9605    then
9606      # The compiler can only warn and ignore the option if not recognized
9607      # So say no if there are warnings
9608      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9609      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9610      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9611        lt_cv_prog_compiler_c_o=yes
9612      fi
9613    fi
9614    chmod u+w . 2>&5
9615    $RM conftest*
9616    # SGI C++ compiler will create directory out/ii_files/ for
9617    # template instantiation
9618    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9619    $RM out/* && rmdir out
9620    cd ..
9621    $RM -r conftest
9622    $RM conftest*
9624 fi
9625 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9626 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9633   { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9634 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9635 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9636   $as_echo_n "(cached) " >&6
9637 else
9638   lt_cv_prog_compiler_c_o=no
9639    $RM -r conftest 2>/dev/null
9640    mkdir conftest
9641    cd conftest
9642    mkdir out
9643    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9645    lt_compiler_flag="-o out/conftest2.$ac_objext"
9646    # Insert the option either (1) after the last *FLAGS variable, or
9647    # (2) before a word containing "conftest.", or (3) at the end.
9648    # Note that $ac_compile itself does not contain backslashes and begins
9649    # with a dollar sign (not a hyphen), so the echo should work correctly.
9650    lt_compile=`echo "$ac_compile" | $SED \
9651    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9652    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9653    -e 's:$: $lt_compiler_flag:'`
9654    (eval echo "\"\$as_me:9654: $lt_compile\"" >&5)
9655    (eval "$lt_compile" 2>out/conftest.err)
9656    ac_status=$?
9657    cat out/conftest.err >&5
9658    echo "$as_me:9658: \$? = $ac_status" >&5
9659    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9660    then
9661      # The compiler can only warn and ignore the option if not recognized
9662      # So say no if there are warnings
9663      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9664      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9665      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9666        lt_cv_prog_compiler_c_o=yes
9667      fi
9668    fi
9669    chmod u+w . 2>&5
9670    $RM conftest*
9671    # SGI C++ compiler will create directory out/ii_files/ for
9672    # template instantiation
9673    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9674    $RM out/* && rmdir out
9675    cd ..
9676    $RM -r conftest
9677    $RM conftest*
9679 fi
9680 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9681 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9686 hard_links="nottested"
9687 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9688   # do not overwrite the value of need_locks provided by the user
9689   { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9690 $as_echo_n "checking if we can lock with hard links... " >&6; }
9691   hard_links=yes
9692   $RM conftest*
9693   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9694   touch conftest.a
9695   ln conftest.a conftest.b 2>&5 || hard_links=no
9696   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9697   { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
9698 $as_echo "$hard_links" >&6; }
9699   if test "$hard_links" = no; then
9700     { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9701 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9702     need_locks=warn
9703   fi
9704 else
9705   need_locks=no
9706 fi
9713   { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9714 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9716   runpath_var=
9717   allow_undefined_flag=
9718   always_export_symbols=no
9719   archive_cmds=
9720   archive_expsym_cmds=
9721   compiler_needs_object=no
9722   enable_shared_with_static_runtimes=no
9723   export_dynamic_flag_spec=
9724   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9725   hardcode_automatic=no
9726   hardcode_direct=no
9727   hardcode_direct_absolute=no
9728   hardcode_libdir_flag_spec=
9729   hardcode_libdir_flag_spec_ld=
9730   hardcode_libdir_separator=
9731   hardcode_minus_L=no
9732   hardcode_shlibpath_var=unsupported
9733   inherit_rpath=no
9734   link_all_deplibs=unknown
9735   module_cmds=
9736   module_expsym_cmds=
9737   old_archive_from_new_cmds=
9738   old_archive_from_expsyms_cmds=
9739   thread_safe_flag_spec=
9740   whole_archive_flag_spec=
9741   # include_expsyms should be a list of space-separated symbols to be *always*
9742   # included in the symbol list
9743   include_expsyms=
9744   # exclude_expsyms can be an extended regexp of symbols to exclude
9745   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9746   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9747   # as well as any symbol that contains `d'.
9748   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9749   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9750   # platforms (ab)use it in PIC code, but their linkers get confused if
9751   # the symbol is explicitly referenced.  Since portable code cannot
9752   # rely on this symbol name, it's probably fine to never include it in
9753   # preloaded symbol tables.
9754   # Exclude shared library initialization/finalization symbols.
9755   extract_expsyms_cmds=
9757   case $host_os in
9758   cygwin* | mingw* | pw32* | cegcc*)
9759     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9760     # When not using gcc, we currently assume that we are using
9761     # Microsoft Visual C++.
9762     if test "$GCC" != yes; then
9763       with_gnu_ld=no
9764     fi
9765     ;;
9766   interix*)
9767     # we just hope/assume this is gcc and not c89 (= MSVC++)
9768     with_gnu_ld=yes
9769     ;;
9770   openbsd*)
9771     with_gnu_ld=no
9772     ;;
9773   esac
9775   ld_shlibs=yes
9776   if test "$with_gnu_ld" = yes; then
9777     # If archive_cmds runs LD, not CC, wlarc should be empty
9778     wlarc='${wl}'
9780     # Set some defaults for GNU ld with shared library support. These
9781     # are reset later if shared libraries are not supported. Putting them
9782     # here allows them to be overridden if necessary.
9783     runpath_var=LD_RUN_PATH
9784     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9785     export_dynamic_flag_spec='${wl}--export-dynamic'
9786     # ancient GNU ld didn't support --whole-archive et. al.
9787     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9788       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9789     else
9790       whole_archive_flag_spec=
9791     fi
9792     supports_anon_versioning=no
9793     case `$LD -v 2>&1` in
9794       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9795       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9796       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9797       *\ 2.11.*) ;; # other 2.11 versions
9798       *) supports_anon_versioning=yes ;;
9799     esac
9801     # See if GNU ld supports shared libraries.
9802     case $host_os in
9803     aix[3-9]*)
9804       # On AIX/PPC, the GNU linker is very broken
9805       if test "$host_cpu" != ia64; then
9806         ld_shlibs=no
9807         cat <<_LT_EOF 1>&2
9809 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9810 *** to be unable to reliably create shared libraries on AIX.
9811 *** Therefore, libtool is disabling shared libraries support.  If you
9812 *** really care for shared libraries, you may want to modify your PATH
9813 *** so that a non-GNU linker is found, and then restart.
9815 _LT_EOF
9816       fi
9817       ;;
9819     amigaos*)
9820       case $host_cpu in
9821       powerpc)
9822             # see comment about AmigaOS4 .so support
9823             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9824             archive_expsym_cmds=''
9825         ;;
9826       m68k)
9827             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)'
9828             hardcode_libdir_flag_spec='-L$libdir'
9829             hardcode_minus_L=yes
9830         ;;
9831       esac
9832       ;;
9834     beos*)
9835       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9836         allow_undefined_flag=unsupported
9837         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9838         # support --undefined.  This deserves some investigation.  FIXME
9839         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9840       else
9841         ld_shlibs=no
9842       fi
9843       ;;
9845     cygwin* | mingw* | pw32* | cegcc*)
9846       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9847       # as there is no search path for DLLs.
9848       hardcode_libdir_flag_spec='-L$libdir'
9849       allow_undefined_flag=unsupported
9850       always_export_symbols=no
9851       enable_shared_with_static_runtimes=yes
9852       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9854       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9855         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9856         # If the export-symbols file already is a .def file (1st line
9857         # is EXPORTS), use it as is; otherwise, prepend...
9858         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9859           cp $export_symbols $output_objdir/$soname.def;
9860         else
9861           echo EXPORTS > $output_objdir/$soname.def;
9862           cat $export_symbols >> $output_objdir/$soname.def;
9863         fi~
9864         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9865       else
9866         ld_shlibs=no
9867       fi
9868       ;;
9870     interix[3-9]*)
9871       hardcode_direct=no
9872       hardcode_shlibpath_var=no
9873       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9874       export_dynamic_flag_spec='${wl}-E'
9875       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9876       # Instead, shared libraries are loaded at an image base (0x10000000 by
9877       # default) and relocated if they conflict, which is a slow very memory
9878       # consuming and fragmenting process.  To avoid this, we pick a random,
9879       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9880       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9881       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9882       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'
9883       ;;
9885     gnu* | linux* | tpf* | k*bsd*-gnu)
9886       tmp_diet=no
9887       if test "$host_os" = linux-dietlibc; then
9888         case $cc_basename in
9889           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9890         esac
9891       fi
9892       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9893          && test "$tmp_diet" = no
9894       then
9895         tmp_addflag=
9896         tmp_sharedflag='-shared'
9897         case $cc_basename,$host_cpu in
9898         pgcc*)                          # Portland Group C compiler
9899           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'
9900           tmp_addflag=' $pic_flag'
9901           ;;
9902         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9903           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'
9904           tmp_addflag=' $pic_flag -Mnomain' ;;
9905         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9906           tmp_addflag=' -i_dynamic' ;;
9907         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9908           tmp_addflag=' -i_dynamic -nofor_main' ;;
9909         ifc* | ifort*)                  # Intel Fortran compiler
9910           tmp_addflag=' -nofor_main' ;;
9911         lf95*)                          # Lahey Fortran 8.1
9912           whole_archive_flag_spec=
9913           tmp_sharedflag='--shared' ;;
9914         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
9915           tmp_sharedflag='-qmkshrobj'
9916           tmp_addflag= ;;
9917         esac
9918         case `$CC -V 2>&1 | sed 5q` in
9919         *Sun\ C*)                       # Sun C 5.9
9920           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'
9921           compiler_needs_object=yes
9922           tmp_sharedflag='-G' ;;
9923         *Sun\ F*)                       # Sun Fortran 8.3
9924           tmp_sharedflag='-G' ;;
9925         esac
9926         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9928         if test "x$supports_anon_versioning" = xyes; then
9929           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9930             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9931             echo "local: *; };" >> $output_objdir/$libname.ver~
9932             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9933         fi
9935         case $cc_basename in
9936         xlf*)
9937           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9938           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9939           hardcode_libdir_flag_spec=
9940           hardcode_libdir_flag_spec_ld='-rpath $libdir'
9941           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9942           if test "x$supports_anon_versioning" = xyes; then
9943             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9944               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9945               echo "local: *; };" >> $output_objdir/$libname.ver~
9946               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9947           fi
9948           ;;
9949         esac
9950       else
9951         ld_shlibs=no
9952       fi
9953       ;;
9955     netbsd*)
9956       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9957         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9958         wlarc=
9959       else
9960         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9961         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9962       fi
9963       ;;
9965     solaris*)
9966       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9967         ld_shlibs=no
9968         cat <<_LT_EOF 1>&2
9970 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9971 *** create shared libraries on Solaris systems.  Therefore, libtool
9972 *** is disabling shared libraries support.  We urge you to upgrade GNU
9973 *** binutils to release 2.9.1 or newer.  Another option is to modify
9974 *** your PATH or compiler configuration so that the native linker is
9975 *** used, and then restart.
9977 _LT_EOF
9978       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9979         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9980         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9981       else
9982         ld_shlibs=no
9983       fi
9984       ;;
9986     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9987       case `$LD -v 2>&1` in
9988         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9989         ld_shlibs=no
9990         cat <<_LT_EOF 1>&2
9992 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9993 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9994 *** is disabling shared libraries support.  We urge you to upgrade GNU
9995 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9996 *** your PATH or compiler configuration so that the native linker is
9997 *** used, and then restart.
9999 _LT_EOF
10000         ;;
10001         *)
10002           # For security reasons, it is highly recommended that you always
10003           # use absolute paths for naming shared libraries, and exclude the
10004           # DT_RUNPATH tag from executables and libraries.  But doing so
10005           # requires that you compile everything twice, which is a pain.
10006           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10007             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10008             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10009             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10010           else
10011             ld_shlibs=no
10012           fi
10013         ;;
10014       esac
10015       ;;
10017     sunos4*)
10018       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10019       wlarc=
10020       hardcode_direct=yes
10021       hardcode_shlibpath_var=no
10022       ;;
10024     *)
10025       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10026         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10027         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10028       else
10029         ld_shlibs=no
10030       fi
10031       ;;
10032     esac
10034     if test "$ld_shlibs" = no; then
10035       runpath_var=
10036       hardcode_libdir_flag_spec=
10037       export_dynamic_flag_spec=
10038       whole_archive_flag_spec=
10039     fi
10040   else
10041     # PORTME fill in a description of your system's linker (not GNU ld)
10042     case $host_os in
10043     aix3*)
10044       allow_undefined_flag=unsupported
10045       always_export_symbols=yes
10046       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'
10047       # Note: this linker hardcodes the directories in LIBPATH if there
10048       # are no directories specified by -L.
10049       hardcode_minus_L=yes
10050       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10051         # Neither direct hardcoding nor static linking is supported with a
10052         # broken collect2.
10053         hardcode_direct=unsupported
10054       fi
10055       ;;
10057     aix[4-9]*)
10058       if test "$host_cpu" = ia64; then
10059         # On IA64, the linker does run time linking by default, so we don't
10060         # have to do anything special.
10061         aix_use_runtimelinking=no
10062         exp_sym_flag='-Bexport'
10063         no_entry_flag=""
10064       else
10065         # If we're using GNU nm, then we don't want the "-C" option.
10066         # -C means demangle to AIX nm, but means don't demangle with GNU nm
10067         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10068           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'
10069         else
10070           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'
10071         fi
10072         aix_use_runtimelinking=no
10074         # Test if we are trying to use run time linking or normal
10075         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10076         # need to do runtime linking.
10077         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10078           for ld_flag in $LDFLAGS; do
10079           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10080             aix_use_runtimelinking=yes
10081             break
10082           fi
10083           done
10084           ;;
10085         esac
10087         exp_sym_flag='-bexport'
10088         no_entry_flag='-bnoentry'
10089       fi
10091       # When large executables or shared objects are built, AIX ld can
10092       # have problems creating the table of contents.  If linking a library
10093       # or program results in "error TOC overflow" add -mminimal-toc to
10094       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10095       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10097       archive_cmds=''
10098       hardcode_direct=yes
10099       hardcode_direct_absolute=yes
10100       hardcode_libdir_separator=':'
10101       link_all_deplibs=yes
10102       file_list_spec='${wl}-f,'
10104       if test "$GCC" = yes; then
10105         case $host_os in aix4.[012]|aix4.[012].*)
10106         # We only want to do this on AIX 4.2 and lower, the check
10107         # below for broken collect2 doesn't work under 4.3+
10108           collect2name=`${CC} -print-prog-name=collect2`
10109           if test -f "$collect2name" &&
10110            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10111           then
10112           # We have reworked collect2
10113           :
10114           else
10115           # We have old collect2
10116           hardcode_direct=unsupported
10117           # It fails to find uninstalled libraries when the uninstalled
10118           # path is not listed in the libpath.  Setting hardcode_minus_L
10119           # to unsupported forces relinking
10120           hardcode_minus_L=yes
10121           hardcode_libdir_flag_spec='-L$libdir'
10122           hardcode_libdir_separator=
10123           fi
10124           ;;
10125         esac
10126         shared_flag='-shared'
10127         if test "$aix_use_runtimelinking" = yes; then
10128           shared_flag="$shared_flag "'${wl}-G'
10129         fi
10130       else
10131         # not using gcc
10132         if test "$host_cpu" = ia64; then
10133         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10134         # chokes on -Wl,-G. The following line is correct:
10135           shared_flag='-G'
10136         else
10137           if test "$aix_use_runtimelinking" = yes; then
10138             shared_flag='${wl}-G'
10139           else
10140             shared_flag='${wl}-bM:SRE'
10141           fi
10142         fi
10143       fi
10145       export_dynamic_flag_spec='${wl}-bexpall'
10146       # It seems that -bexpall does not export symbols beginning with
10147       # underscore (_), so it is better to generate a list of symbols to export.
10148       always_export_symbols=yes
10149       if test "$aix_use_runtimelinking" = yes; then
10150         # Warning - without using the other runtime loading flags (-brtl),
10151         # -berok will link without error, but may produce a broken library.
10152         allow_undefined_flag='-berok'
10153         # Determine the default libpath from the value encoded in an
10154         # empty executable.
10155         cat >conftest.$ac_ext <<_ACEOF
10156 /* confdefs.h.  */
10157 _ACEOF
10158 cat confdefs.h >>conftest.$ac_ext
10159 cat >>conftest.$ac_ext <<_ACEOF
10160 /* end confdefs.h.  */
10162 int
10163 main ()
10166   ;
10167   return 0;
10169 _ACEOF
10170 rm -f conftest.$ac_objext conftest$ac_exeext
10171 if { (ac_try="$ac_link"
10172 case "(($ac_try" in
10173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10174   *) ac_try_echo=$ac_try;;
10175 esac
10176 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10177 $as_echo "$ac_try_echo") >&5
10178   (eval "$ac_link") 2>conftest.er1
10179   ac_status=$?
10180   grep -v '^ *+' conftest.er1 >conftest.err
10181   rm -f conftest.er1
10182   cat conftest.err >&5
10183   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10184   (exit $ac_status); } && {
10185          test -z "$ac_c_werror_flag" ||
10186          test ! -s conftest.err
10187        } && test -s conftest$ac_exeext && {
10188          test "$cross_compiling" = yes ||
10189          $as_test_x conftest$ac_exeext
10190        }; then
10192 lt_aix_libpath_sed='
10193     /Import File Strings/,/^$/ {
10194         /^0/ {
10195             s/^0  *\(.*\)$/\1/
10196             p
10197         }
10198     }'
10199 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10200 # Check for a 64-bit object if we didn't find anything.
10201 if test -z "$aix_libpath"; then
10202   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10204 else
10205   $as_echo "$as_me: failed program was:" >&5
10206 sed 's/^/| /' conftest.$ac_ext >&5
10211 rm -rf conftest.dSYM
10212 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10213       conftest$ac_exeext conftest.$ac_ext
10214 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10216         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10217         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"
10218       else
10219         if test "$host_cpu" = ia64; then
10220           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10221           allow_undefined_flag="-z nodefs"
10222           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"
10223         else
10224          # Determine the default libpath from the value encoded in an
10225          # empty executable.
10226          cat >conftest.$ac_ext <<_ACEOF
10227 /* confdefs.h.  */
10228 _ACEOF
10229 cat confdefs.h >>conftest.$ac_ext
10230 cat >>conftest.$ac_ext <<_ACEOF
10231 /* end confdefs.h.  */
10233 int
10234 main ()
10237   ;
10238   return 0;
10240 _ACEOF
10241 rm -f conftest.$ac_objext conftest$ac_exeext
10242 if { (ac_try="$ac_link"
10243 case "(($ac_try" in
10244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10245   *) ac_try_echo=$ac_try;;
10246 esac
10247 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10248 $as_echo "$ac_try_echo") >&5
10249   (eval "$ac_link") 2>conftest.er1
10250   ac_status=$?
10251   grep -v '^ *+' conftest.er1 >conftest.err
10252   rm -f conftest.er1
10253   cat conftest.err >&5
10254   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10255   (exit $ac_status); } && {
10256          test -z "$ac_c_werror_flag" ||
10257          test ! -s conftest.err
10258        } && test -s conftest$ac_exeext && {
10259          test "$cross_compiling" = yes ||
10260          $as_test_x conftest$ac_exeext
10261        }; then
10263 lt_aix_libpath_sed='
10264     /Import File Strings/,/^$/ {
10265         /^0/ {
10266             s/^0  *\(.*\)$/\1/
10267             p
10268         }
10269     }'
10270 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10271 # Check for a 64-bit object if we didn't find anything.
10272 if test -z "$aix_libpath"; then
10273   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10275 else
10276   $as_echo "$as_me: failed program was:" >&5
10277 sed 's/^/| /' conftest.$ac_ext >&5
10282 rm -rf conftest.dSYM
10283 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10284       conftest$ac_exeext conftest.$ac_ext
10285 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10287          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10288           # Warning - without using the other run time loading flags,
10289           # -berok will link without error, but may produce a broken library.
10290           no_undefined_flag=' ${wl}-bernotok'
10291           allow_undefined_flag=' ${wl}-berok'
10292           # Exported symbols can be pulled into shared objects from archives
10293           whole_archive_flag_spec='$convenience'
10294           archive_cmds_need_lc=yes
10295           # This is similar to how AIX traditionally builds its shared libraries.
10296           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'
10297         fi
10298       fi
10299       ;;
10301     amigaos*)
10302       case $host_cpu in
10303       powerpc)
10304             # see comment about AmigaOS4 .so support
10305             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10306             archive_expsym_cmds=''
10307         ;;
10308       m68k)
10309             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)'
10310             hardcode_libdir_flag_spec='-L$libdir'
10311             hardcode_minus_L=yes
10312         ;;
10313       esac
10314       ;;
10316     bsdi[45]*)
10317       export_dynamic_flag_spec=-rdynamic
10318       ;;
10320     cygwin* | mingw* | pw32* | cegcc*)
10321       # When not using gcc, we currently assume that we are using
10322       # Microsoft Visual C++.
10323       # hardcode_libdir_flag_spec is actually meaningless, as there is
10324       # no search path for DLLs.
10325       hardcode_libdir_flag_spec=' '
10326       allow_undefined_flag=unsupported
10327       # Tell ltmain to make .lib files, not .a files.
10328       libext=lib
10329       # Tell ltmain to make .dll files, not .so files.
10330       shrext_cmds=".dll"
10331       # FIXME: Setting linknames here is a bad hack.
10332       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10333       # The linker will automatically build a .lib file if we build a DLL.
10334       old_archive_from_new_cmds='true'
10335       # FIXME: Should let the user specify the lib program.
10336       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10337       fix_srcfile_path='`cygpath -w "$srcfile"`'
10338       enable_shared_with_static_runtimes=yes
10339       ;;
10341     darwin* | rhapsody*)
10344   archive_cmds_need_lc=no
10345   hardcode_direct=no
10346   hardcode_automatic=yes
10347   hardcode_shlibpath_var=unsupported
10348   whole_archive_flag_spec=''
10349   link_all_deplibs=yes
10350   allow_undefined_flag="$_lt_dar_allow_undefined"
10351   case $cc_basename in
10352      ifort*) _lt_dar_can_shared=yes ;;
10353      *) _lt_dar_can_shared=$GCC ;;
10354   esac
10355   if test "$_lt_dar_can_shared" = "yes"; then
10356     output_verbose_link_cmd=echo
10357     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10358     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10359     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}"
10360     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}"
10362   else
10363   ld_shlibs=no
10364   fi
10366       ;;
10368     dgux*)
10369       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10370       hardcode_libdir_flag_spec='-L$libdir'
10371       hardcode_shlibpath_var=no
10372       ;;
10374     freebsd1*)
10375       ld_shlibs=no
10376       ;;
10378     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10379     # support.  Future versions do this automatically, but an explicit c++rt0.o
10380     # does not break anything, and helps significantly (at the cost of a little
10381     # extra space).
10382     freebsd2.2*)
10383       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10384       hardcode_libdir_flag_spec='-R$libdir'
10385       hardcode_direct=yes
10386       hardcode_shlibpath_var=no
10387       ;;
10389     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10390     freebsd2*)
10391       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10392       hardcode_direct=yes
10393       hardcode_minus_L=yes
10394       hardcode_shlibpath_var=no
10395       ;;
10397     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10398     freebsd* | dragonfly*)
10399       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10400       hardcode_libdir_flag_spec='-R$libdir'
10401       hardcode_direct=yes
10402       hardcode_shlibpath_var=no
10403       ;;
10405     hpux9*)
10406       if test "$GCC" = yes; then
10407         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'
10408       else
10409         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'
10410       fi
10411       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10412       hardcode_libdir_separator=:
10413       hardcode_direct=yes
10415       # hardcode_minus_L: Not really in the search PATH,
10416       # but as the default location of the library.
10417       hardcode_minus_L=yes
10418       export_dynamic_flag_spec='${wl}-E'
10419       ;;
10421     hpux10*)
10422       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10423         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10424       else
10425         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10426       fi
10427       if test "$with_gnu_ld" = no; then
10428         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10429         hardcode_libdir_flag_spec_ld='+b $libdir'
10430         hardcode_libdir_separator=:
10431         hardcode_direct=yes
10432         hardcode_direct_absolute=yes
10433         export_dynamic_flag_spec='${wl}-E'
10434         # hardcode_minus_L: Not really in the search PATH,
10435         # but as the default location of the library.
10436         hardcode_minus_L=yes
10437       fi
10438       ;;
10440     hpux11*)
10441       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10442         case $host_cpu in
10443         hppa*64*)
10444           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10445           ;;
10446         ia64*)
10447           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10448           ;;
10449         *)
10450           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10451           ;;
10452         esac
10453       else
10454         case $host_cpu in
10455         hppa*64*)
10456           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10457           ;;
10458         ia64*)
10459           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10460           ;;
10461         *)
10462           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10463           ;;
10464         esac
10465       fi
10466       if test "$with_gnu_ld" = no; then
10467         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10468         hardcode_libdir_separator=:
10470         case $host_cpu in
10471         hppa*64*|ia64*)
10472           hardcode_direct=no
10473           hardcode_shlibpath_var=no
10474           ;;
10475         *)
10476           hardcode_direct=yes
10477           hardcode_direct_absolute=yes
10478           export_dynamic_flag_spec='${wl}-E'
10480           # hardcode_minus_L: Not really in the search PATH,
10481           # but as the default location of the library.
10482           hardcode_minus_L=yes
10483           ;;
10484         esac
10485       fi
10486       ;;
10488     irix5* | irix6* | nonstopux*)
10489       if test "$GCC" = yes; then
10490         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'
10491         # Try to use the -exported_symbol ld option, if it does not
10492         # work, assume that -exports_file does not work either and
10493         # implicitly export all symbols.
10494         save_LDFLAGS="$LDFLAGS"
10495         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10496         cat >conftest.$ac_ext <<_ACEOF
10497 int foo(void) {}
10498 _ACEOF
10499 rm -f conftest.$ac_objext conftest$ac_exeext
10500 if { (ac_try="$ac_link"
10501 case "(($ac_try" in
10502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10503   *) ac_try_echo=$ac_try;;
10504 esac
10505 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10506 $as_echo "$ac_try_echo") >&5
10507   (eval "$ac_link") 2>conftest.er1
10508   ac_status=$?
10509   grep -v '^ *+' conftest.er1 >conftest.err
10510   rm -f conftest.er1
10511   cat conftest.err >&5
10512   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10513   (exit $ac_status); } && {
10514          test -z "$ac_c_werror_flag" ||
10515          test ! -s conftest.err
10516        } && test -s conftest$ac_exeext && {
10517          test "$cross_compiling" = yes ||
10518          $as_test_x conftest$ac_exeext
10519        }; then
10520   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'
10522 else
10523   $as_echo "$as_me: failed program was:" >&5
10524 sed 's/^/| /' conftest.$ac_ext >&5
10529 rm -rf conftest.dSYM
10530 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10531       conftest$ac_exeext conftest.$ac_ext
10532         LDFLAGS="$save_LDFLAGS"
10533       else
10534         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'
10535         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'
10536       fi
10537       archive_cmds_need_lc='no'
10538       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10539       hardcode_libdir_separator=:
10540       inherit_rpath=yes
10541       link_all_deplibs=yes
10542       ;;
10544     netbsd*)
10545       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10546         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10547       else
10548         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10549       fi
10550       hardcode_libdir_flag_spec='-R$libdir'
10551       hardcode_direct=yes
10552       hardcode_shlibpath_var=no
10553       ;;
10555     newsos6)
10556       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10557       hardcode_direct=yes
10558       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10559       hardcode_libdir_separator=:
10560       hardcode_shlibpath_var=no
10561       ;;
10563     *nto* | *qnx*)
10564       ;;
10566     openbsd*)
10567       if test -f /usr/libexec/ld.so; then
10568         hardcode_direct=yes
10569         hardcode_shlibpath_var=no
10570         hardcode_direct_absolute=yes
10571         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10572           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10573           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10574           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10575           export_dynamic_flag_spec='${wl}-E'
10576         else
10577           case $host_os in
10578            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10579              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10580              hardcode_libdir_flag_spec='-R$libdir'
10581              ;;
10582            *)
10583              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10584              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10585              ;;
10586           esac
10587         fi
10588       else
10589         ld_shlibs=no
10590       fi
10591       ;;
10593     os2*)
10594       hardcode_libdir_flag_spec='-L$libdir'
10595       hardcode_minus_L=yes
10596       allow_undefined_flag=unsupported
10597       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'
10598       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10599       ;;
10601     osf3*)
10602       if test "$GCC" = yes; then
10603         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10604         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'
10605       else
10606         allow_undefined_flag=' -expect_unresolved \*'
10607         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'
10608       fi
10609       archive_cmds_need_lc='no'
10610       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10611       hardcode_libdir_separator=:
10612       ;;
10614     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10615       if test "$GCC" = yes; then
10616         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10617         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'
10618         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10619       else
10620         allow_undefined_flag=' -expect_unresolved \*'
10621         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'
10622         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~
10623         $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'
10625         # Both c and cxx compiler support -rpath directly
10626         hardcode_libdir_flag_spec='-rpath $libdir'
10627       fi
10628       archive_cmds_need_lc='no'
10629       hardcode_libdir_separator=:
10630       ;;
10632     solaris*)
10633       no_undefined_flag=' -z defs'
10634       if test "$GCC" = yes; then
10635         wlarc='${wl}'
10636         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10637         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10638           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10639       else
10640         case `$CC -V 2>&1` in
10641         *"Compilers 5.0"*)
10642           wlarc=''
10643           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10644           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10645           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10646           ;;
10647         *)
10648           wlarc='${wl}'
10649           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10650           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10651           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10652           ;;
10653         esac
10654       fi
10655       hardcode_libdir_flag_spec='-R$libdir'
10656       hardcode_shlibpath_var=no
10657       case $host_os in
10658       solaris2.[0-5] | solaris2.[0-5].*) ;;
10659       *)
10660         # The compiler driver will combine and reorder linker options,
10661         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10662         # but is careful enough not to reorder.
10663         # Supported since Solaris 2.6 (maybe 2.5.1?)
10664         if test "$GCC" = yes; then
10665           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10666         else
10667           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10668         fi
10669         ;;
10670       esac
10671       link_all_deplibs=yes
10672       ;;
10674     sunos4*)
10675       if test "x$host_vendor" = xsequent; then
10676         # Use $CC to link under sequent, because it throws in some extra .o
10677         # files that make .init and .fini sections work.
10678         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10679       else
10680         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10681       fi
10682       hardcode_libdir_flag_spec='-L$libdir'
10683       hardcode_direct=yes
10684       hardcode_minus_L=yes
10685       hardcode_shlibpath_var=no
10686       ;;
10688     sysv4)
10689       case $host_vendor in
10690         sni)
10691           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10692           hardcode_direct=yes # is this really true???
10693         ;;
10694         siemens)
10695           ## LD is ld it makes a PLAMLIB
10696           ## CC just makes a GrossModule.
10697           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10698           reload_cmds='$CC -r -o $output$reload_objs'
10699           hardcode_direct=no
10700         ;;
10701         motorola)
10702           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10703           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10704         ;;
10705       esac
10706       runpath_var='LD_RUN_PATH'
10707       hardcode_shlibpath_var=no
10708       ;;
10710     sysv4.3*)
10711       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10712       hardcode_shlibpath_var=no
10713       export_dynamic_flag_spec='-Bexport'
10714       ;;
10716     sysv4*MP*)
10717       if test -d /usr/nec; then
10718         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10719         hardcode_shlibpath_var=no
10720         runpath_var=LD_RUN_PATH
10721         hardcode_runpath_var=yes
10722         ld_shlibs=yes
10723       fi
10724       ;;
10726     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10727       no_undefined_flag='${wl}-z,text'
10728       archive_cmds_need_lc=no
10729       hardcode_shlibpath_var=no
10730       runpath_var='LD_RUN_PATH'
10732       if test "$GCC" = yes; then
10733         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10734         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10735       else
10736         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10737         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10738       fi
10739       ;;
10741     sysv5* | sco3.2v5* | sco5v6*)
10742       # Note: We can NOT use -z defs as we might desire, because we do not
10743       # link with -lc, and that would cause any symbols used from libc to
10744       # always be unresolved, which means just about no library would
10745       # ever link correctly.  If we're not using GNU ld we use -z text
10746       # though, which does catch some bad symbols but isn't as heavy-handed
10747       # as -z defs.
10748       no_undefined_flag='${wl}-z,text'
10749       allow_undefined_flag='${wl}-z,nodefs'
10750       archive_cmds_need_lc=no
10751       hardcode_shlibpath_var=no
10752       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10753       hardcode_libdir_separator=':'
10754       link_all_deplibs=yes
10755       export_dynamic_flag_spec='${wl}-Bexport'
10756       runpath_var='LD_RUN_PATH'
10758       if test "$GCC" = yes; then
10759         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10760         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10761       else
10762         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10763         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10764       fi
10765       ;;
10767     uts4*)
10768       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10769       hardcode_libdir_flag_spec='-L$libdir'
10770       hardcode_shlibpath_var=no
10771       ;;
10773     *)
10774       ld_shlibs=no
10775       ;;
10776     esac
10778     if test x$host_vendor = xsni; then
10779       case $host in
10780       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10781         export_dynamic_flag_spec='${wl}-Blargedynsym'
10782         ;;
10783       esac
10784     fi
10785   fi
10787 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10788 $as_echo "$ld_shlibs" >&6; }
10789 test "$ld_shlibs" = no && can_build_shared=no
10791 with_gnu_ld=$with_gnu_ld
10808 # Do we need to explicitly link libc?
10810 case "x$archive_cmds_need_lc" in
10811 x|xyes)
10812   # Assume -lc should be added
10813   archive_cmds_need_lc=yes
10815   if test "$enable_shared" = yes && test "$GCC" = yes; then
10816     case $archive_cmds in
10817     *'~'*)
10818       # FIXME: we may have to deal with multi-command sequences.
10819       ;;
10820     '$CC '*)
10821       # Test whether the compiler implicitly links with -lc since on some
10822       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10823       # to ld, don't add -lc before -lgcc.
10824       { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10825 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10826       $RM conftest*
10827       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10829       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10830   (eval $ac_compile) 2>&5
10831   ac_status=$?
10832   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10833   (exit $ac_status); } 2>conftest.err; then
10834         soname=conftest
10835         lib=conftest
10836         libobjs=conftest.$ac_objext
10837         deplibs=
10838         wl=$lt_prog_compiler_wl
10839         pic_flag=$lt_prog_compiler_pic
10840         compiler_flags=-v
10841         linker_flags=-v
10842         verstring=
10843         output_objdir=.
10844         libname=conftest
10845         lt_save_allow_undefined_flag=$allow_undefined_flag
10846         allow_undefined_flag=
10847         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
10848   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10849   ac_status=$?
10850   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10851   (exit $ac_status); }
10852         then
10853           archive_cmds_need_lc=no
10854         else
10855           archive_cmds_need_lc=yes
10856         fi
10857         allow_undefined_flag=$lt_save_allow_undefined_flag
10858       else
10859         cat conftest.err 1>&5
10860       fi
10861       $RM conftest*
10862       { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10863 $as_echo "$archive_cmds_need_lc" >&6; }
10864       ;;
10865     esac
10866   fi
10867   ;;
10868 esac
11026   { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11027 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11029 if test "$GCC" = yes; then
11030   case $host_os in
11031     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11032     *) lt_awk_arg="/^libraries:/" ;;
11033   esac
11034   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11035   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11036     # if the path contains ";" then we assume it to be the separator
11037     # otherwise default to the standard path separator (i.e. ":") - it is
11038     # assumed that no part of a normal pathname contains ";" but that should
11039     # okay in the real world where ";" in dirpaths is itself problematic.
11040     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11041   else
11042     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11043   fi
11044   # Ok, now we have the path, separated by spaces, we can step through it
11045   # and add multilib dir if necessary.
11046   lt_tmp_lt_search_path_spec=
11047   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11048   for lt_sys_path in $lt_search_path_spec; do
11049     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11050       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11051     else
11052       test -d "$lt_sys_path" && \
11053         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11054     fi
11055   done
11056   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11057 BEGIN {RS=" "; FS="/|\n";} {
11058   lt_foo="";
11059   lt_count=0;
11060   for (lt_i = NF; lt_i > 0; lt_i--) {
11061     if ($lt_i != "" && $lt_i != ".") {
11062       if ($lt_i == "..") {
11063         lt_count++;
11064       } else {
11065         if (lt_count == 0) {
11066           lt_foo="/" $lt_i lt_foo;
11067         } else {
11068           lt_count--;
11069         }
11070       }
11071     }
11072   }
11073   if (lt_foo != "") { lt_freq[lt_foo]++; }
11074   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11075 }'`
11076   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11077 else
11078   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11080 library_names_spec=
11081 libname_spec='lib$name'
11082 soname_spec=
11083 shrext_cmds=".so"
11084 postinstall_cmds=
11085 postuninstall_cmds=
11086 finish_cmds=
11087 finish_eval=
11088 shlibpath_var=
11089 shlibpath_overrides_runpath=unknown
11090 version_type=none
11091 dynamic_linker="$host_os ld.so"
11092 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11093 need_lib_prefix=unknown
11094 hardcode_into_libs=no
11096 # when you set need_version to no, make sure it does not cause -set_version
11097 # flags to be left without arguments
11098 need_version=unknown
11100 case $host_os in
11101 aix3*)
11102   version_type=linux
11103   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11104   shlibpath_var=LIBPATH
11106   # AIX 3 has no versioning support, so we append a major version to the name.
11107   soname_spec='${libname}${release}${shared_ext}$major'
11108   ;;
11110 aix[4-9]*)
11111   version_type=linux
11112   need_lib_prefix=no
11113   need_version=no
11114   hardcode_into_libs=yes
11115   if test "$host_cpu" = ia64; then
11116     # AIX 5 supports IA64
11117     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11118     shlibpath_var=LD_LIBRARY_PATH
11119   else
11120     # With GCC up to 2.95.x, collect2 would create an import file
11121     # for dependence libraries.  The import file would start with
11122     # the line `#! .'.  This would cause the generated library to
11123     # depend on `.', always an invalid library.  This was fixed in
11124     # development snapshots of GCC prior to 3.0.
11125     case $host_os in
11126       aix4 | aix4.[01] | aix4.[01].*)
11127       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11128            echo ' yes '
11129            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11130         :
11131       else
11132         can_build_shared=no
11133       fi
11134       ;;
11135     esac
11136     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11137     # soname into executable. Probably we can add versioning support to
11138     # collect2, so additional links can be useful in future.
11139     if test "$aix_use_runtimelinking" = yes; then
11140       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11141       # instead of lib<name>.a to let people know that these are not
11142       # typical AIX shared libraries.
11143       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11144     else
11145       # We preserve .a as extension for shared libraries through AIX4.2
11146       # and later when we are not doing run time linking.
11147       library_names_spec='${libname}${release}.a $libname.a'
11148       soname_spec='${libname}${release}${shared_ext}$major'
11149     fi
11150     shlibpath_var=LIBPATH
11151   fi
11152   ;;
11154 amigaos*)
11155   case $host_cpu in
11156   powerpc)
11157     # Since July 2007 AmigaOS4 officially supports .so libraries.
11158     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11159     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11160     ;;
11161   m68k)
11162     library_names_spec='$libname.ixlibrary $libname.a'
11163     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11164     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'
11165     ;;
11166   esac
11167   ;;
11169 beos*)
11170   library_names_spec='${libname}${shared_ext}'
11171   dynamic_linker="$host_os ld.so"
11172   shlibpath_var=LIBRARY_PATH
11173   ;;
11175 bsdi[45]*)
11176   version_type=linux
11177   need_version=no
11178   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11179   soname_spec='${libname}${release}${shared_ext}$major'
11180   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11181   shlibpath_var=LD_LIBRARY_PATH
11182   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11183   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11184   # the default ld.so.conf also contains /usr/contrib/lib and
11185   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11186   # libtool to hard-code these into programs
11187   ;;
11189 cygwin* | mingw* | pw32* | cegcc*)
11190   version_type=windows
11191   shrext_cmds=".dll"
11192   need_version=no
11193   need_lib_prefix=no
11195   case $GCC,$host_os in
11196   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11197     library_names_spec='$libname.dll.a'
11198     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11199     postinstall_cmds='base_file=`basename \${file}`~
11200       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11201       dldir=$destdir/`dirname \$dlpath`~
11202       test -d \$dldir || mkdir -p \$dldir~
11203       $install_prog $dir/$dlname \$dldir/$dlname~
11204       chmod a+x \$dldir/$dlname~
11205       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11206         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11207       fi'
11208     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11209       dlpath=$dir/\$dldll~
11210        $RM \$dlpath'
11211     shlibpath_overrides_runpath=yes
11213     case $host_os in
11214     cygwin*)
11215       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11216       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11217       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11218       ;;
11219     mingw* | cegcc*)
11220       # MinGW DLLs use traditional 'lib' prefix
11221       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11222       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11223       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11224         # It is most probably a Windows format PATH printed by
11225         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11226         # path with ; separators, and with drive letters. We can handle the
11227         # drive letters (cygwin fileutils understands them), so leave them,
11228         # especially as we might pass files found there to a mingw objdump,
11229         # which wouldn't understand a cygwinified path. Ahh.
11230         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11231       else
11232         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11233       fi
11234       ;;
11235     pw32*)
11236       # pw32 DLLs use 'pw' prefix rather than 'lib'
11237       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11238       ;;
11239     esac
11240     ;;
11242   *)
11243     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11244     ;;
11245   esac
11246   dynamic_linker='Win32 ld.exe'
11247   # FIXME: first we should search . and the directory the executable is in
11248   shlibpath_var=PATH
11249   ;;
11251 darwin* | rhapsody*)
11252   dynamic_linker="$host_os dyld"
11253   version_type=darwin
11254   need_lib_prefix=no
11255   need_version=no
11256   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11257   soname_spec='${libname}${release}${major}$shared_ext'
11258   shlibpath_overrides_runpath=yes
11259   shlibpath_var=DYLD_LIBRARY_PATH
11260   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11262   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11263   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11264   ;;
11266 dgux*)
11267   version_type=linux
11268   need_lib_prefix=no
11269   need_version=no
11270   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11271   soname_spec='${libname}${release}${shared_ext}$major'
11272   shlibpath_var=LD_LIBRARY_PATH
11273   ;;
11275 freebsd1*)
11276   dynamic_linker=no
11277   ;;
11279 freebsd* | dragonfly*)
11280   # DragonFly does not have aout.  When/if they implement a new
11281   # versioning mechanism, adjust this.
11282   if test -x /usr/bin/objformat; then
11283     objformat=`/usr/bin/objformat`
11284   else
11285     case $host_os in
11286     freebsd[123]*) objformat=aout ;;
11287     *) objformat=elf ;;
11288     esac
11289   fi
11290   version_type=freebsd-$objformat
11291   case $version_type in
11292     freebsd-elf*)
11293       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11294       need_version=no
11295       need_lib_prefix=no
11296       ;;
11297     freebsd-*)
11298       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11299       need_version=yes
11300       ;;
11301   esac
11302   shlibpath_var=LD_LIBRARY_PATH
11303   case $host_os in
11304   freebsd2*)
11305     shlibpath_overrides_runpath=yes
11306     ;;
11307   freebsd3.[01]* | freebsdelf3.[01]*)
11308     shlibpath_overrides_runpath=yes
11309     hardcode_into_libs=yes
11310     ;;
11311   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11312   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11313     shlibpath_overrides_runpath=no
11314     hardcode_into_libs=yes
11315     ;;
11316   *) # from 4.6 on, and DragonFly
11317     shlibpath_overrides_runpath=yes
11318     hardcode_into_libs=yes
11319     ;;
11320   esac
11321   ;;
11323 gnu*)
11324   version_type=linux
11325   need_lib_prefix=no
11326   need_version=no
11327   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11328   soname_spec='${libname}${release}${shared_ext}$major'
11329   shlibpath_var=LD_LIBRARY_PATH
11330   hardcode_into_libs=yes
11331   ;;
11333 hpux9* | hpux10* | hpux11*)
11334   # Give a soname corresponding to the major version so that dld.sl refuses to
11335   # link against other versions.
11336   version_type=sunos
11337   need_lib_prefix=no
11338   need_version=no
11339   case $host_cpu in
11340   ia64*)
11341     shrext_cmds='.so'
11342     hardcode_into_libs=yes
11343     dynamic_linker="$host_os dld.so"
11344     shlibpath_var=LD_LIBRARY_PATH
11345     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11346     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11347     soname_spec='${libname}${release}${shared_ext}$major'
11348     if test "X$HPUX_IA64_MODE" = X32; then
11349       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11350     else
11351       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11352     fi
11353     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11354     ;;
11355   hppa*64*)
11356     shrext_cmds='.sl'
11357     hardcode_into_libs=yes
11358     dynamic_linker="$host_os dld.sl"
11359     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11360     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11361     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11362     soname_spec='${libname}${release}${shared_ext}$major'
11363     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11364     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11365     ;;
11366   *)
11367     shrext_cmds='.sl'
11368     dynamic_linker="$host_os dld.sl"
11369     shlibpath_var=SHLIB_PATH
11370     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11371     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11372     soname_spec='${libname}${release}${shared_ext}$major'
11373     ;;
11374   esac
11375   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11376   postinstall_cmds='chmod 555 $lib'
11377   ;;
11379 interix[3-9]*)
11380   version_type=linux
11381   need_lib_prefix=no
11382   need_version=no
11383   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11384   soname_spec='${libname}${release}${shared_ext}$major'
11385   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11386   shlibpath_var=LD_LIBRARY_PATH
11387   shlibpath_overrides_runpath=no
11388   hardcode_into_libs=yes
11389   ;;
11391 irix5* | irix6* | nonstopux*)
11392   case $host_os in
11393     nonstopux*) version_type=nonstopux ;;
11394     *)
11395         if test "$lt_cv_prog_gnu_ld" = yes; then
11396                 version_type=linux
11397         else
11398                 version_type=irix
11399         fi ;;
11400   esac
11401   need_lib_prefix=no
11402   need_version=no
11403   soname_spec='${libname}${release}${shared_ext}$major'
11404   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11405   case $host_os in
11406   irix5* | nonstopux*)
11407     libsuff= shlibsuff=
11408     ;;
11409   *)
11410     case $LD in # libtool.m4 will add one of these switches to LD
11411     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11412       libsuff= shlibsuff= libmagic=32-bit;;
11413     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11414       libsuff=32 shlibsuff=N32 libmagic=N32;;
11415     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11416       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11417     *) libsuff= shlibsuff= libmagic=never-match;;
11418     esac
11419     ;;
11420   esac
11421   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11422   shlibpath_overrides_runpath=no
11423   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11424   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11425   hardcode_into_libs=yes
11426   ;;
11428 # No shared lib support for Linux oldld, aout, or coff.
11429 linux*oldld* | linux*aout* | linux*coff*)
11430   dynamic_linker=no
11431   ;;
11433 # This must be Linux ELF.
11434 linux* | k*bsd*-gnu)
11435   version_type=linux
11436   need_lib_prefix=no
11437   need_version=no
11438   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11439   soname_spec='${libname}${release}${shared_ext}$major'
11440   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11441   shlibpath_var=LD_LIBRARY_PATH
11442   shlibpath_overrides_runpath=no
11443   # Some binutils ld are patched to set DT_RUNPATH
11444   save_LDFLAGS=$LDFLAGS
11445   save_libdir=$libdir
11446   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11447        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11448   cat >conftest.$ac_ext <<_ACEOF
11449 /* confdefs.h.  */
11450 _ACEOF
11451 cat confdefs.h >>conftest.$ac_ext
11452 cat >>conftest.$ac_ext <<_ACEOF
11453 /* end confdefs.h.  */
11455 int
11456 main ()
11459   ;
11460   return 0;
11462 _ACEOF
11463 rm -f conftest.$ac_objext conftest$ac_exeext
11464 if { (ac_try="$ac_link"
11465 case "(($ac_try" in
11466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11467   *) ac_try_echo=$ac_try;;
11468 esac
11469 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11470 $as_echo "$ac_try_echo") >&5
11471   (eval "$ac_link") 2>conftest.er1
11472   ac_status=$?
11473   grep -v '^ *+' conftest.er1 >conftest.err
11474   rm -f conftest.er1
11475   cat conftest.err >&5
11476   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11477   (exit $ac_status); } && {
11478          test -z "$ac_c_werror_flag" ||
11479          test ! -s conftest.err
11480        } && test -s conftest$ac_exeext && {
11481          test "$cross_compiling" = yes ||
11482          $as_test_x conftest$ac_exeext
11483        }; then
11484   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
11485   shlibpath_overrides_runpath=yes
11488 else
11489   $as_echo "$as_me: failed program was:" >&5
11490 sed 's/^/| /' conftest.$ac_ext >&5
11495 rm -rf conftest.dSYM
11496 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11497       conftest$ac_exeext conftest.$ac_ext
11498   LDFLAGS=$save_LDFLAGS
11499   libdir=$save_libdir
11501   # This implies no fast_install, which is unacceptable.
11502   # Some rework will be needed to allow for fast_install
11503   # before this can be enabled.
11504   hardcode_into_libs=yes
11506   # Append ld.so.conf contents to the search path
11507   if test -f /etc/ld.so.conf; then
11508     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' ' '`
11509     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11510   fi
11512   # We used to test for /lib/ld.so.1 and disable shared libraries on
11513   # powerpc, because MkLinux only supported shared libraries with the
11514   # GNU dynamic linker.  Since this was broken with cross compilers,
11515   # most powerpc-linux boxes support dynamic linking these days and
11516   # people can always --disable-shared, the test was removed, and we
11517   # assume the GNU/Linux dynamic linker is in use.
11518   dynamic_linker='GNU/Linux ld.so'
11519   ;;
11521 netbsd*)
11522   version_type=sunos
11523   need_lib_prefix=no
11524   need_version=no
11525   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11526     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11527     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11528     dynamic_linker='NetBSD (a.out) ld.so'
11529   else
11530     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11531     soname_spec='${libname}${release}${shared_ext}$major'
11532     dynamic_linker='NetBSD ld.elf_so'
11533   fi
11534   shlibpath_var=LD_LIBRARY_PATH
11535   shlibpath_overrides_runpath=yes
11536   hardcode_into_libs=yes
11537   ;;
11539 newsos6)
11540   version_type=linux
11541   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11542   shlibpath_var=LD_LIBRARY_PATH
11543   shlibpath_overrides_runpath=yes
11544   ;;
11546 *nto* | *qnx*)
11547   version_type=qnx
11548   need_lib_prefix=no
11549   need_version=no
11550   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11551   soname_spec='${libname}${release}${shared_ext}$major'
11552   shlibpath_var=LD_LIBRARY_PATH
11553   shlibpath_overrides_runpath=no
11554   hardcode_into_libs=yes
11555   dynamic_linker='ldqnx.so'
11556   ;;
11558 openbsd*)
11559   version_type=sunos
11560   sys_lib_dlsearch_path_spec="/usr/lib"
11561   need_lib_prefix=no
11562   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11563   case $host_os in
11564     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11565     *)                          need_version=no  ;;
11566   esac
11567   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11568   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11569   shlibpath_var=LD_LIBRARY_PATH
11570   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11571     case $host_os in
11572       openbsd2.[89] | openbsd2.[89].*)
11573         shlibpath_overrides_runpath=no
11574         ;;
11575       *)
11576         shlibpath_overrides_runpath=yes
11577         ;;
11578       esac
11579   else
11580     shlibpath_overrides_runpath=yes
11581   fi
11582   ;;
11584 os2*)
11585   libname_spec='$name'
11586   shrext_cmds=".dll"
11587   need_lib_prefix=no
11588   library_names_spec='$libname${shared_ext} $libname.a'
11589   dynamic_linker='OS/2 ld.exe'
11590   shlibpath_var=LIBPATH
11591   ;;
11593 osf3* | osf4* | osf5*)
11594   version_type=osf
11595   need_lib_prefix=no
11596   need_version=no
11597   soname_spec='${libname}${release}${shared_ext}$major'
11598   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11599   shlibpath_var=LD_LIBRARY_PATH
11600   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11601   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11602   ;;
11604 rdos*)
11605   dynamic_linker=no
11606   ;;
11608 solaris*)
11609   version_type=linux
11610   need_lib_prefix=no
11611   need_version=no
11612   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11613   soname_spec='${libname}${release}${shared_ext}$major'
11614   shlibpath_var=LD_LIBRARY_PATH
11615   shlibpath_overrides_runpath=yes
11616   hardcode_into_libs=yes
11617   # ldd complains unless libraries are executable
11618   postinstall_cmds='chmod +x $lib'
11619   ;;
11621 sunos4*)
11622   version_type=sunos
11623   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11624   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11625   shlibpath_var=LD_LIBRARY_PATH
11626   shlibpath_overrides_runpath=yes
11627   if test "$with_gnu_ld" = yes; then
11628     need_lib_prefix=no
11629   fi
11630   need_version=yes
11631   ;;
11633 sysv4 | sysv4.3*)
11634   version_type=linux
11635   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11636   soname_spec='${libname}${release}${shared_ext}$major'
11637   shlibpath_var=LD_LIBRARY_PATH
11638   case $host_vendor in
11639     sni)
11640       shlibpath_overrides_runpath=no
11641       need_lib_prefix=no
11642       runpath_var=LD_RUN_PATH
11643       ;;
11644     siemens)
11645       need_lib_prefix=no
11646       ;;
11647     motorola)
11648       need_lib_prefix=no
11649       need_version=no
11650       shlibpath_overrides_runpath=no
11651       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11652       ;;
11653   esac
11654   ;;
11656 sysv4*MP*)
11657   if test -d /usr/nec ;then
11658     version_type=linux
11659     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11660     soname_spec='$libname${shared_ext}.$major'
11661     shlibpath_var=LD_LIBRARY_PATH
11662   fi
11663   ;;
11665 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11666   version_type=freebsd-elf
11667   need_lib_prefix=no
11668   need_version=no
11669   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11670   soname_spec='${libname}${release}${shared_ext}$major'
11671   shlibpath_var=LD_LIBRARY_PATH
11672   shlibpath_overrides_runpath=yes
11673   hardcode_into_libs=yes
11674   if test "$with_gnu_ld" = yes; then
11675     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11676   else
11677     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11678     case $host_os in
11679       sco3.2v5*)
11680         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11681         ;;
11682     esac
11683   fi
11684   sys_lib_dlsearch_path_spec='/usr/lib'
11685   ;;
11687 tpf*)
11688   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11689   version_type=linux
11690   need_lib_prefix=no
11691   need_version=no
11692   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11693   shlibpath_var=LD_LIBRARY_PATH
11694   shlibpath_overrides_runpath=no
11695   hardcode_into_libs=yes
11696   ;;
11698 uts4*)
11699   version_type=linux
11700   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11701   soname_spec='${libname}${release}${shared_ext}$major'
11702   shlibpath_var=LD_LIBRARY_PATH
11703   ;;
11706   dynamic_linker=no
11707   ;;
11708 esac
11709 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11710 $as_echo "$dynamic_linker" >&6; }
11711 test "$dynamic_linker" = no && can_build_shared=no
11713 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11714 if test "$GCC" = yes; then
11715   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11718 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11719   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11721 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11722   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11811   { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11812 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11813 hardcode_action=
11814 if test -n "$hardcode_libdir_flag_spec" ||
11815    test -n "$runpath_var" ||
11816    test "X$hardcode_automatic" = "Xyes" ; then
11818   # We can hardcode non-existent directories.
11819   if test "$hardcode_direct" != no &&
11820      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11821      # have to relink, otherwise we might link with an installed library
11822      # when we should be linking with a yet-to-be-installed one
11823      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11824      test "$hardcode_minus_L" != no; then
11825     # Linking always hardcodes the temporary library directory.
11826     hardcode_action=relink
11827   else
11828     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11829     hardcode_action=immediate
11830   fi
11831 else
11832   # We cannot hardcode anything, or else we can only hardcode existing
11833   # directories.
11834   hardcode_action=unsupported
11836 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
11837 $as_echo "$hardcode_action" >&6; }
11839 if test "$hardcode_action" = relink ||
11840    test "$inherit_rpath" = yes; then
11841   # Fast installation is not supported
11842   enable_fast_install=no
11843 elif test "$shlibpath_overrides_runpath" = yes ||
11844      test "$enable_shared" = no; then
11845   # Fast installation is not necessary
11846   enable_fast_install=needless
11854   if test "x$enable_dlopen" != xyes; then
11855   enable_dlopen=unknown
11856   enable_dlopen_self=unknown
11857   enable_dlopen_self_static=unknown
11858 else
11859   lt_cv_dlopen=no
11860   lt_cv_dlopen_libs=
11862   case $host_os in
11863   beos*)
11864     lt_cv_dlopen="load_add_on"
11865     lt_cv_dlopen_libs=
11866     lt_cv_dlopen_self=yes
11867     ;;
11869   mingw* | pw32* | cegcc*)
11870     lt_cv_dlopen="LoadLibrary"
11871     lt_cv_dlopen_libs=
11872     ;;
11874   cygwin*)
11875     lt_cv_dlopen="dlopen"
11876     lt_cv_dlopen_libs=
11877     ;;
11879   darwin*)
11880   # if libdl is installed we need to link against it
11881     { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11882 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11883 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11884   $as_echo_n "(cached) " >&6
11885 else
11886   ac_check_lib_save_LIBS=$LIBS
11887 LIBS="-ldl  $LIBS"
11888 cat >conftest.$ac_ext <<_ACEOF
11889 /* confdefs.h.  */
11890 _ACEOF
11891 cat confdefs.h >>conftest.$ac_ext
11892 cat >>conftest.$ac_ext <<_ACEOF
11893 /* end confdefs.h.  */
11895 /* Override any GCC internal prototype to avoid an error.
11896    Use char because int might match the return type of a GCC
11897    builtin and then its argument prototype would still apply.  */
11898 #ifdef __cplusplus
11899 extern "C"
11900 #endif
11901 char dlopen ();
11902 int
11903 main ()
11905 return dlopen ();
11906   ;
11907   return 0;
11909 _ACEOF
11910 rm -f conftest.$ac_objext conftest$ac_exeext
11911 if { (ac_try="$ac_link"
11912 case "(($ac_try" in
11913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11914   *) ac_try_echo=$ac_try;;
11915 esac
11916 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11917 $as_echo "$ac_try_echo") >&5
11918   (eval "$ac_link") 2>conftest.er1
11919   ac_status=$?
11920   grep -v '^ *+' conftest.er1 >conftest.err
11921   rm -f conftest.er1
11922   cat conftest.err >&5
11923   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11924   (exit $ac_status); } && {
11925          test -z "$ac_c_werror_flag" ||
11926          test ! -s conftest.err
11927        } && test -s conftest$ac_exeext && {
11928          test "$cross_compiling" = yes ||
11929          $as_test_x conftest$ac_exeext
11930        }; then
11931   ac_cv_lib_dl_dlopen=yes
11932 else
11933   $as_echo "$as_me: failed program was:" >&5
11934 sed 's/^/| /' conftest.$ac_ext >&5
11936         ac_cv_lib_dl_dlopen=no
11939 rm -rf conftest.dSYM
11940 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11941       conftest$ac_exeext conftest.$ac_ext
11942 LIBS=$ac_check_lib_save_LIBS
11944 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11945 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11946 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
11947   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11948 else
11950     lt_cv_dlopen="dyld"
11951     lt_cv_dlopen_libs=
11952     lt_cv_dlopen_self=yes
11956     ;;
11958   *)
11959     { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
11960 $as_echo_n "checking for shl_load... " >&6; }
11961 if test "${ac_cv_func_shl_load+set}" = set; then
11962   $as_echo_n "(cached) " >&6
11963 else
11964   cat >conftest.$ac_ext <<_ACEOF
11965 /* confdefs.h.  */
11966 _ACEOF
11967 cat confdefs.h >>conftest.$ac_ext
11968 cat >>conftest.$ac_ext <<_ACEOF
11969 /* end confdefs.h.  */
11970 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11971    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11972 #define shl_load innocuous_shl_load
11974 /* System header to define __stub macros and hopefully few prototypes,
11975     which can conflict with char shl_load (); below.
11976     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11977     <limits.h> exists even on freestanding compilers.  */
11979 #ifdef __STDC__
11980 # include <limits.h>
11981 #else
11982 # include <assert.h>
11983 #endif
11985 #undef shl_load
11987 /* Override any GCC internal prototype to avoid an error.
11988    Use char because int might match the return type of a GCC
11989    builtin and then its argument prototype would still apply.  */
11990 #ifdef __cplusplus
11991 extern "C"
11992 #endif
11993 char shl_load ();
11994 /* The GNU C library defines this for functions which it implements
11995     to always fail with ENOSYS.  Some functions are actually named
11996     something starting with __ and the normal name is an alias.  */
11997 #if defined __stub_shl_load || defined __stub___shl_load
11998 choke me
11999 #endif
12001 int
12002 main ()
12004 return shl_load ();
12005   ;
12006   return 0;
12008 _ACEOF
12009 rm -f conftest.$ac_objext conftest$ac_exeext
12010 if { (ac_try="$ac_link"
12011 case "(($ac_try" in
12012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12013   *) ac_try_echo=$ac_try;;
12014 esac
12015 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12016 $as_echo "$ac_try_echo") >&5
12017   (eval "$ac_link") 2>conftest.er1
12018   ac_status=$?
12019   grep -v '^ *+' conftest.er1 >conftest.err
12020   rm -f conftest.er1
12021   cat conftest.err >&5
12022   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12023   (exit $ac_status); } && {
12024          test -z "$ac_c_werror_flag" ||
12025          test ! -s conftest.err
12026        } && test -s conftest$ac_exeext && {
12027          test "$cross_compiling" = yes ||
12028          $as_test_x conftest$ac_exeext
12029        }; then
12030   ac_cv_func_shl_load=yes
12031 else
12032   $as_echo "$as_me: failed program was:" >&5
12033 sed 's/^/| /' conftest.$ac_ext >&5
12035         ac_cv_func_shl_load=no
12038 rm -rf conftest.dSYM
12039 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12040       conftest$ac_exeext conftest.$ac_ext
12042 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12043 $as_echo "$ac_cv_func_shl_load" >&6; }
12044 if test "x$ac_cv_func_shl_load" = x""yes; then
12045   lt_cv_dlopen="shl_load"
12046 else
12047   { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12048 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12049 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12050   $as_echo_n "(cached) " >&6
12051 else
12052   ac_check_lib_save_LIBS=$LIBS
12053 LIBS="-ldld  $LIBS"
12054 cat >conftest.$ac_ext <<_ACEOF
12055 /* confdefs.h.  */
12056 _ACEOF
12057 cat confdefs.h >>conftest.$ac_ext
12058 cat >>conftest.$ac_ext <<_ACEOF
12059 /* end confdefs.h.  */
12061 /* Override any GCC internal prototype to avoid an error.
12062    Use char because int might match the return type of a GCC
12063    builtin and then its argument prototype would still apply.  */
12064 #ifdef __cplusplus
12065 extern "C"
12066 #endif
12067 char shl_load ();
12068 int
12069 main ()
12071 return shl_load ();
12072   ;
12073   return 0;
12075 _ACEOF
12076 rm -f conftest.$ac_objext conftest$ac_exeext
12077 if { (ac_try="$ac_link"
12078 case "(($ac_try" in
12079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12080   *) ac_try_echo=$ac_try;;
12081 esac
12082 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12083 $as_echo "$ac_try_echo") >&5
12084   (eval "$ac_link") 2>conftest.er1
12085   ac_status=$?
12086   grep -v '^ *+' conftest.er1 >conftest.err
12087   rm -f conftest.er1
12088   cat conftest.err >&5
12089   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12090   (exit $ac_status); } && {
12091          test -z "$ac_c_werror_flag" ||
12092          test ! -s conftest.err
12093        } && test -s conftest$ac_exeext && {
12094          test "$cross_compiling" = yes ||
12095          $as_test_x conftest$ac_exeext
12096        }; then
12097   ac_cv_lib_dld_shl_load=yes
12098 else
12099   $as_echo "$as_me: failed program was:" >&5
12100 sed 's/^/| /' conftest.$ac_ext >&5
12102         ac_cv_lib_dld_shl_load=no
12105 rm -rf conftest.dSYM
12106 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12107       conftest$ac_exeext conftest.$ac_ext
12108 LIBS=$ac_check_lib_save_LIBS
12110 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12111 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12112 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
12113   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12114 else
12115   { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
12116 $as_echo_n "checking for dlopen... " >&6; }
12117 if test "${ac_cv_func_dlopen+set}" = set; then
12118   $as_echo_n "(cached) " >&6
12119 else
12120   cat >conftest.$ac_ext <<_ACEOF
12121 /* confdefs.h.  */
12122 _ACEOF
12123 cat confdefs.h >>conftest.$ac_ext
12124 cat >>conftest.$ac_ext <<_ACEOF
12125 /* end confdefs.h.  */
12126 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12127    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12128 #define dlopen innocuous_dlopen
12130 /* System header to define __stub macros and hopefully few prototypes,
12131     which can conflict with char dlopen (); below.
12132     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12133     <limits.h> exists even on freestanding compilers.  */
12135 #ifdef __STDC__
12136 # include <limits.h>
12137 #else
12138 # include <assert.h>
12139 #endif
12141 #undef dlopen
12143 /* Override any GCC internal prototype to avoid an error.
12144    Use char because int might match the return type of a GCC
12145    builtin and then its argument prototype would still apply.  */
12146 #ifdef __cplusplus
12147 extern "C"
12148 #endif
12149 char dlopen ();
12150 /* The GNU C library defines this for functions which it implements
12151     to always fail with ENOSYS.  Some functions are actually named
12152     something starting with __ and the normal name is an alias.  */
12153 #if defined __stub_dlopen || defined __stub___dlopen
12154 choke me
12155 #endif
12157 int
12158 main ()
12160 return dlopen ();
12161   ;
12162   return 0;
12164 _ACEOF
12165 rm -f conftest.$ac_objext conftest$ac_exeext
12166 if { (ac_try="$ac_link"
12167 case "(($ac_try" in
12168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12169   *) ac_try_echo=$ac_try;;
12170 esac
12171 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12172 $as_echo "$ac_try_echo") >&5
12173   (eval "$ac_link") 2>conftest.er1
12174   ac_status=$?
12175   grep -v '^ *+' conftest.er1 >conftest.err
12176   rm -f conftest.er1
12177   cat conftest.err >&5
12178   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12179   (exit $ac_status); } && {
12180          test -z "$ac_c_werror_flag" ||
12181          test ! -s conftest.err
12182        } && test -s conftest$ac_exeext && {
12183          test "$cross_compiling" = yes ||
12184          $as_test_x conftest$ac_exeext
12185        }; then
12186   ac_cv_func_dlopen=yes
12187 else
12188   $as_echo "$as_me: failed program was:" >&5
12189 sed 's/^/| /' conftest.$ac_ext >&5
12191         ac_cv_func_dlopen=no
12194 rm -rf conftest.dSYM
12195 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12196       conftest$ac_exeext conftest.$ac_ext
12198 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12199 $as_echo "$ac_cv_func_dlopen" >&6; }
12200 if test "x$ac_cv_func_dlopen" = x""yes; then
12201   lt_cv_dlopen="dlopen"
12202 else
12203   { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12204 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12205 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12206   $as_echo_n "(cached) " >&6
12207 else
12208   ac_check_lib_save_LIBS=$LIBS
12209 LIBS="-ldl  $LIBS"
12210 cat >conftest.$ac_ext <<_ACEOF
12211 /* confdefs.h.  */
12212 _ACEOF
12213 cat confdefs.h >>conftest.$ac_ext
12214 cat >>conftest.$ac_ext <<_ACEOF
12215 /* end confdefs.h.  */
12217 /* Override any GCC internal prototype to avoid an error.
12218    Use char because int might match the return type of a GCC
12219    builtin and then its argument prototype would still apply.  */
12220 #ifdef __cplusplus
12221 extern "C"
12222 #endif
12223 char dlopen ();
12224 int
12225 main ()
12227 return dlopen ();
12228   ;
12229   return 0;
12231 _ACEOF
12232 rm -f conftest.$ac_objext conftest$ac_exeext
12233 if { (ac_try="$ac_link"
12234 case "(($ac_try" in
12235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12236   *) ac_try_echo=$ac_try;;
12237 esac
12238 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12239 $as_echo "$ac_try_echo") >&5
12240   (eval "$ac_link") 2>conftest.er1
12241   ac_status=$?
12242   grep -v '^ *+' conftest.er1 >conftest.err
12243   rm -f conftest.er1
12244   cat conftest.err >&5
12245   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12246   (exit $ac_status); } && {
12247          test -z "$ac_c_werror_flag" ||
12248          test ! -s conftest.err
12249        } && test -s conftest$ac_exeext && {
12250          test "$cross_compiling" = yes ||
12251          $as_test_x conftest$ac_exeext
12252        }; then
12253   ac_cv_lib_dl_dlopen=yes
12254 else
12255   $as_echo "$as_me: failed program was:" >&5
12256 sed 's/^/| /' conftest.$ac_ext >&5
12258         ac_cv_lib_dl_dlopen=no
12261 rm -rf conftest.dSYM
12262 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12263       conftest$ac_exeext conftest.$ac_ext
12264 LIBS=$ac_check_lib_save_LIBS
12266 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12267 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12268 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
12269   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12270 else
12271   { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12272 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12273 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12274   $as_echo_n "(cached) " >&6
12275 else
12276   ac_check_lib_save_LIBS=$LIBS
12277 LIBS="-lsvld  $LIBS"
12278 cat >conftest.$ac_ext <<_ACEOF
12279 /* confdefs.h.  */
12280 _ACEOF
12281 cat confdefs.h >>conftest.$ac_ext
12282 cat >>conftest.$ac_ext <<_ACEOF
12283 /* end confdefs.h.  */
12285 /* Override any GCC internal prototype to avoid an error.
12286    Use char because int might match the return type of a GCC
12287    builtin and then its argument prototype would still apply.  */
12288 #ifdef __cplusplus
12289 extern "C"
12290 #endif
12291 char dlopen ();
12292 int
12293 main ()
12295 return dlopen ();
12296   ;
12297   return 0;
12299 _ACEOF
12300 rm -f conftest.$ac_objext conftest$ac_exeext
12301 if { (ac_try="$ac_link"
12302 case "(($ac_try" in
12303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12304   *) ac_try_echo=$ac_try;;
12305 esac
12306 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12307 $as_echo "$ac_try_echo") >&5
12308   (eval "$ac_link") 2>conftest.er1
12309   ac_status=$?
12310   grep -v '^ *+' conftest.er1 >conftest.err
12311   rm -f conftest.er1
12312   cat conftest.err >&5
12313   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12314   (exit $ac_status); } && {
12315          test -z "$ac_c_werror_flag" ||
12316          test ! -s conftest.err
12317        } && test -s conftest$ac_exeext && {
12318          test "$cross_compiling" = yes ||
12319          $as_test_x conftest$ac_exeext
12320        }; then
12321   ac_cv_lib_svld_dlopen=yes
12322 else
12323   $as_echo "$as_me: failed program was:" >&5
12324 sed 's/^/| /' conftest.$ac_ext >&5
12326         ac_cv_lib_svld_dlopen=no
12329 rm -rf conftest.dSYM
12330 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12331       conftest$ac_exeext conftest.$ac_ext
12332 LIBS=$ac_check_lib_save_LIBS
12334 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12335 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12336 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
12337   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12338 else
12339   { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12340 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12341 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12342   $as_echo_n "(cached) " >&6
12343 else
12344   ac_check_lib_save_LIBS=$LIBS
12345 LIBS="-ldld  $LIBS"
12346 cat >conftest.$ac_ext <<_ACEOF
12347 /* confdefs.h.  */
12348 _ACEOF
12349 cat confdefs.h >>conftest.$ac_ext
12350 cat >>conftest.$ac_ext <<_ACEOF
12351 /* end confdefs.h.  */
12353 /* Override any GCC internal prototype to avoid an error.
12354    Use char because int might match the return type of a GCC
12355    builtin and then its argument prototype would still apply.  */
12356 #ifdef __cplusplus
12357 extern "C"
12358 #endif
12359 char dld_link ();
12360 int
12361 main ()
12363 return dld_link ();
12364   ;
12365   return 0;
12367 _ACEOF
12368 rm -f conftest.$ac_objext conftest$ac_exeext
12369 if { (ac_try="$ac_link"
12370 case "(($ac_try" in
12371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12372   *) ac_try_echo=$ac_try;;
12373 esac
12374 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12375 $as_echo "$ac_try_echo") >&5
12376   (eval "$ac_link") 2>conftest.er1
12377   ac_status=$?
12378   grep -v '^ *+' conftest.er1 >conftest.err
12379   rm -f conftest.er1
12380   cat conftest.err >&5
12381   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12382   (exit $ac_status); } && {
12383          test -z "$ac_c_werror_flag" ||
12384          test ! -s conftest.err
12385        } && test -s conftest$ac_exeext && {
12386          test "$cross_compiling" = yes ||
12387          $as_test_x conftest$ac_exeext
12388        }; then
12389   ac_cv_lib_dld_dld_link=yes
12390 else
12391   $as_echo "$as_me: failed program was:" >&5
12392 sed 's/^/| /' conftest.$ac_ext >&5
12394         ac_cv_lib_dld_dld_link=no
12397 rm -rf conftest.dSYM
12398 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12399       conftest$ac_exeext conftest.$ac_ext
12400 LIBS=$ac_check_lib_save_LIBS
12402 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12403 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12404 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
12405   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12423     ;;
12424   esac
12426   if test "x$lt_cv_dlopen" != xno; then
12427     enable_dlopen=yes
12428   else
12429     enable_dlopen=no
12430   fi
12432   case $lt_cv_dlopen in
12433   dlopen)
12434     save_CPPFLAGS="$CPPFLAGS"
12435     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12437     save_LDFLAGS="$LDFLAGS"
12438     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12440     save_LIBS="$LIBS"
12441     LIBS="$lt_cv_dlopen_libs $LIBS"
12443     { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12444 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12445 if test "${lt_cv_dlopen_self+set}" = set; then
12446   $as_echo_n "(cached) " >&6
12447 else
12448           if test "$cross_compiling" = yes; then :
12449   lt_cv_dlopen_self=cross
12450 else
12451   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12452   lt_status=$lt_dlunknown
12453   cat > conftest.$ac_ext <<_LT_EOF
12454 #line 12454 "configure"
12455 #include "confdefs.h"
12457 #if HAVE_DLFCN_H
12458 #include <dlfcn.h>
12459 #endif
12461 #include <stdio.h>
12463 #ifdef RTLD_GLOBAL
12464 #  define LT_DLGLOBAL           RTLD_GLOBAL
12465 #else
12466 #  ifdef DL_GLOBAL
12467 #    define LT_DLGLOBAL         DL_GLOBAL
12468 #  else
12469 #    define LT_DLGLOBAL         0
12470 #  endif
12471 #endif
12473 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12474    find out it does not work in some platform. */
12475 #ifndef LT_DLLAZY_OR_NOW
12476 #  ifdef RTLD_LAZY
12477 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12478 #  else
12479 #    ifdef DL_LAZY
12480 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12481 #    else
12482 #      ifdef RTLD_NOW
12483 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12484 #      else
12485 #        ifdef DL_NOW
12486 #          define LT_DLLAZY_OR_NOW      DL_NOW
12487 #        else
12488 #          define LT_DLLAZY_OR_NOW      0
12489 #        endif
12490 #      endif
12491 #    endif
12492 #  endif
12493 #endif
12495 void fnord() { int i=42;}
12496 int main ()
12498   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12499   int status = $lt_dlunknown;
12501   if (self)
12502     {
12503       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12504       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12505       /* dlclose (self); */
12506     }
12507   else
12508     puts (dlerror ());
12510   return status;
12512 _LT_EOF
12513   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12514   (eval $ac_link) 2>&5
12515   ac_status=$?
12516   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12517   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12518     (./conftest; exit; ) >&5 2>/dev/null
12519     lt_status=$?
12520     case x$lt_status in
12521       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12522       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12523       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12524     esac
12525   else :
12526     # compilation failed
12527     lt_cv_dlopen_self=no
12528   fi
12530 rm -fr conftest*
12534 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12535 $as_echo "$lt_cv_dlopen_self" >&6; }
12537     if test "x$lt_cv_dlopen_self" = xyes; then
12538       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12539       { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12540 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12541 if test "${lt_cv_dlopen_self_static+set}" = set; then
12542   $as_echo_n "(cached) " >&6
12543 else
12544           if test "$cross_compiling" = yes; then :
12545   lt_cv_dlopen_self_static=cross
12546 else
12547   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12548   lt_status=$lt_dlunknown
12549   cat > conftest.$ac_ext <<_LT_EOF
12550 #line 12550 "configure"
12551 #include "confdefs.h"
12553 #if HAVE_DLFCN_H
12554 #include <dlfcn.h>
12555 #endif
12557 #include <stdio.h>
12559 #ifdef RTLD_GLOBAL
12560 #  define LT_DLGLOBAL           RTLD_GLOBAL
12561 #else
12562 #  ifdef DL_GLOBAL
12563 #    define LT_DLGLOBAL         DL_GLOBAL
12564 #  else
12565 #    define LT_DLGLOBAL         0
12566 #  endif
12567 #endif
12569 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12570    find out it does not work in some platform. */
12571 #ifndef LT_DLLAZY_OR_NOW
12572 #  ifdef RTLD_LAZY
12573 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12574 #  else
12575 #    ifdef DL_LAZY
12576 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12577 #    else
12578 #      ifdef RTLD_NOW
12579 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12580 #      else
12581 #        ifdef DL_NOW
12582 #          define LT_DLLAZY_OR_NOW      DL_NOW
12583 #        else
12584 #          define LT_DLLAZY_OR_NOW      0
12585 #        endif
12586 #      endif
12587 #    endif
12588 #  endif
12589 #endif
12591 void fnord() { int i=42;}
12592 int main ()
12594   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12595   int status = $lt_dlunknown;
12597   if (self)
12598     {
12599       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12600       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12601       /* dlclose (self); */
12602     }
12603   else
12604     puts (dlerror ());
12606   return status;
12608 _LT_EOF
12609   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12610   (eval $ac_link) 2>&5
12611   ac_status=$?
12612   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12613   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12614     (./conftest; exit; ) >&5 2>/dev/null
12615     lt_status=$?
12616     case x$lt_status in
12617       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12618       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12619       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12620     esac
12621   else :
12622     # compilation failed
12623     lt_cv_dlopen_self_static=no
12624   fi
12626 rm -fr conftest*
12630 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12631 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12632     fi
12634     CPPFLAGS="$save_CPPFLAGS"
12635     LDFLAGS="$save_LDFLAGS"
12636     LIBS="$save_LIBS"
12637     ;;
12638   esac
12640   case $lt_cv_dlopen_self in
12641   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12642   *) enable_dlopen_self=unknown ;;
12643   esac
12645   case $lt_cv_dlopen_self_static in
12646   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12647   *) enable_dlopen_self_static=unknown ;;
12648   esac
12667 striplib=
12668 old_striplib=
12669 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12670 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12671 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12672   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12673   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12674   { $as_echo "$as_me:$LINENO: result: yes" >&5
12675 $as_echo "yes" >&6; }
12676 else
12677 # FIXME - insert some real tests, host_os isn't really good enough
12678   case $host_os in
12679   darwin*)
12680     if test -n "$STRIP" ; then
12681       striplib="$STRIP -x"
12682       old_striplib="$STRIP -S"
12683       { $as_echo "$as_me:$LINENO: result: yes" >&5
12684 $as_echo "yes" >&6; }
12685     else
12686       { $as_echo "$as_me:$LINENO: result: no" >&5
12687 $as_echo "no" >&6; }
12688     fi
12689     ;;
12690   *)
12691     { $as_echo "$as_me:$LINENO: result: no" >&5
12692 $as_echo "no" >&6; }
12693     ;;
12694   esac
12708   # Report which library types will actually be built
12709   { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12710 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12711   { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
12712 $as_echo "$can_build_shared" >&6; }
12714   { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12715 $as_echo_n "checking whether to build shared libraries... " >&6; }
12716   test "$can_build_shared" = "no" && enable_shared=no
12718   # On AIX, shared libraries and static libraries use the same namespace, and
12719   # are all built from PIC.
12720   case $host_os in
12721   aix3*)
12722     test "$enable_shared" = yes && enable_static=no
12723     if test -n "$RANLIB"; then
12724       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12725       postinstall_cmds='$RANLIB $lib'
12726     fi
12727     ;;
12729   aix[4-9]*)
12730     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12731       test "$enable_shared" = yes && enable_static=no
12732     fi
12733     ;;
12734   esac
12735   { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
12736 $as_echo "$enable_shared" >&6; }
12738   { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12739 $as_echo_n "checking whether to build static libraries... " >&6; }
12740   # Make sure either enable_shared or enable_static is yes.
12741   test "$enable_shared" = yes || enable_static=yes
12742   { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
12743 $as_echo "$enable_static" >&6; }
12749 ac_ext=c
12750 ac_cpp='$CPP $CPPFLAGS'
12751 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12752 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12753 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12755 CC="$lt_save_CC"
12769         ac_config_commands="$ac_config_commands libtool"
12774 # Only expand once:
12778 CFLAGS="$CFLAGS -D_GNU_SOURCE"
12780 { $as_echo "$as_me:$LINENO: checking if gcc likes the -Werror flag" >&5
12781 $as_echo_n "checking if gcc likes the -Werror flag... " >&6; }
12782 if test "${rd_cv_gcc_flag__Werror+set}" = set; then
12783   $as_echo_n "(cached) " >&6
12784 else
12785   cat >conftest.$ac_ext <<_ACEOF
12786 /* confdefs.h.  */
12787 _ACEOF
12788 cat confdefs.h >>conftest.$ac_ext
12789 cat >>conftest.$ac_ext <<_ACEOF
12790 /* end confdefs.h.  */
12792 int
12793 main ()
12795 return 0
12796   ;
12797   return 0;
12799 _ACEOF
12800 rm -f conftest.$ac_objext
12801 if { (ac_try="$ac_compile"
12802 case "(($ac_try" in
12803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12804   *) ac_try_echo=$ac_try;;
12805 esac
12806 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12807 $as_echo "$ac_try_echo") >&5
12808   (eval "$ac_compile") 2>conftest.er1
12809   ac_status=$?
12810   grep -v '^ *+' conftest.er1 >conftest.err
12811   rm -f conftest.er1
12812   cat conftest.err >&5
12813   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12814   (exit $ac_status); } && {
12815          test -z "$ac_c_werror_flag" ||
12816          test ! -s conftest.err
12817        } && test -s conftest.$ac_objext; then
12818   rd_cv_gcc_flag__Werror="yes"
12819 else
12820   $as_echo "$as_me: failed program was:" >&5
12821 sed 's/^/| /' conftest.$ac_ext >&5
12823         rd_cv_gcc_flag__Werror="no"
12826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12828 { $as_echo "$as_me:$LINENO: result: $rd_cv_gcc_flag__Werror" >&5
12829 $as_echo "$rd_cv_gcc_flag__Werror" >&6; }
12830 if test "x$rd_cv_gcc_flag__Werror" = "xyes"; then
12831   WERROR="-Werror"
12832 else
12833   WERROR=""
12837 if test "x$GCC" = "xyes"; then
12838   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
12839     oCFLAGS="$CFLAGS"
12840     CFLAGS="$CFLAGS $flag"
12841     cachename=rd_cv_gcc_flag_`echo $flag|sed 's/[^A-Za-z]/_/g'`
12842     { $as_echo "$as_me:$LINENO: checking if gcc likes the $flag flag" >&5
12843 $as_echo_n "checking if gcc likes the $flag flag... " >&6; }
12844 if { as_var=$cachename; eval "test \"\${$as_var+set}\" = set"; }; then
12845   $as_echo_n "(cached) " >&6
12846 else
12847   cat >conftest.$ac_ext <<_ACEOF
12848 /* confdefs.h.  */
12849 _ACEOF
12850 cat confdefs.h >>conftest.$ac_ext
12851 cat >>conftest.$ac_ext <<_ACEOF
12852 /* end confdefs.h.  */
12854 int
12855 main ()
12857 return 0
12858   ;
12859   return 0;
12861 _ACEOF
12862 rm -f conftest.$ac_objext
12863 if { (ac_try="$ac_compile"
12864 case "(($ac_try" in
12865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12866   *) ac_try_echo=$ac_try;;
12867 esac
12868 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12869 $as_echo "$ac_try_echo") >&5
12870   (eval "$ac_compile") 2>conftest.er1
12871   ac_status=$?
12872   grep -v '^ *+' conftest.er1 >conftest.err
12873   rm -f conftest.er1
12874   cat conftest.err >&5
12875   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12876   (exit $ac_status); } && {
12877          test -z "$ac_c_werror_flag" ||
12878          test ! -s conftest.err
12879        } && test -s conftest.$ac_objext; then
12880   eval $cachename=yes
12881 else
12882   $as_echo "$as_me: failed program was:" >&5
12883 sed 's/^/| /' conftest.$ac_ext >&5
12885         eval $cachename=no
12888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12890 ac_res=`eval 'as_val=${'$cachename'}
12891                  $as_echo "$as_val"'`
12892                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12893 $as_echo "$ac_res" >&6; }
12894     if eval test \$$cachename = no; then
12895          CFLAGS="$oCFLAGS"
12896     fi
12897   done
12905 case $TERM in
12906        #   for the most important terminal types we directly know the sequences
12907        xterm|xterm*|vt220|vt220*)
12908                T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
12909                T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
12910        ;;
12911        vt100|vt100*|cygwin)
12912                T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
12913                T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
12914        ;;
12915        *)
12916                T_MD=''
12917                T_ME=''
12918        ;;
12919 esac
12920   { $as_echo "$as_me:$LINENO: result: " >&5
12921 $as_echo "" >&6; }
12922   { $as_echo "$as_me:$LINENO: result: ${T_MD}Checking for Header Files${T_ME}" >&5
12923 $as_echo "${T_MD}Checking for Header Files${T_ME}" >&6; }
12926 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
12927 $as_echo_n "checking for ANSI C header files... " >&6; }
12928 if test "${ac_cv_header_stdc+set}" = set; then
12929   $as_echo_n "(cached) " >&6
12930 else
12931   cat >conftest.$ac_ext <<_ACEOF
12932 /* confdefs.h.  */
12933 _ACEOF
12934 cat confdefs.h >>conftest.$ac_ext
12935 cat >>conftest.$ac_ext <<_ACEOF
12936 /* end confdefs.h.  */
12937 #include <stdlib.h>
12938 #include <stdarg.h>
12939 #include <string.h>
12940 #include <float.h>
12942 int
12943 main ()
12946   ;
12947   return 0;
12949 _ACEOF
12950 rm -f conftest.$ac_objext
12951 if { (ac_try="$ac_compile"
12952 case "(($ac_try" in
12953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12954   *) ac_try_echo=$ac_try;;
12955 esac
12956 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12957 $as_echo "$ac_try_echo") >&5
12958   (eval "$ac_compile") 2>conftest.er1
12959   ac_status=$?
12960   grep -v '^ *+' conftest.er1 >conftest.err
12961   rm -f conftest.er1
12962   cat conftest.err >&5
12963   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12964   (exit $ac_status); } && {
12965          test -z "$ac_c_werror_flag" ||
12966          test ! -s conftest.err
12967        } && test -s conftest.$ac_objext; then
12968   ac_cv_header_stdc=yes
12969 else
12970   $as_echo "$as_me: failed program was:" >&5
12971 sed 's/^/| /' conftest.$ac_ext >&5
12973         ac_cv_header_stdc=no
12976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12978 if test $ac_cv_header_stdc = yes; then
12979   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12980   cat >conftest.$ac_ext <<_ACEOF
12981 /* confdefs.h.  */
12982 _ACEOF
12983 cat confdefs.h >>conftest.$ac_ext
12984 cat >>conftest.$ac_ext <<_ACEOF
12985 /* end confdefs.h.  */
12986 #include <string.h>
12988 _ACEOF
12989 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12990   $EGREP "memchr" >/dev/null 2>&1; then
12991   :
12992 else
12993   ac_cv_header_stdc=no
12995 rm -f conftest*
12999 if test $ac_cv_header_stdc = yes; then
13000   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13001   cat >conftest.$ac_ext <<_ACEOF
13002 /* confdefs.h.  */
13003 _ACEOF
13004 cat confdefs.h >>conftest.$ac_ext
13005 cat >>conftest.$ac_ext <<_ACEOF
13006 /* end confdefs.h.  */
13007 #include <stdlib.h>
13009 _ACEOF
13010 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13011   $EGREP "free" >/dev/null 2>&1; then
13012   :
13013 else
13014   ac_cv_header_stdc=no
13016 rm -f conftest*
13020 if test $ac_cv_header_stdc = yes; then
13021   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13022   if test "$cross_compiling" = yes; then
13023   :
13024 else
13025   cat >conftest.$ac_ext <<_ACEOF
13026 /* confdefs.h.  */
13027 _ACEOF
13028 cat confdefs.h >>conftest.$ac_ext
13029 cat >>conftest.$ac_ext <<_ACEOF
13030 /* end confdefs.h.  */
13031 #include <ctype.h>
13032 #include <stdlib.h>
13033 #if ((' ' & 0x0FF) == 0x020)
13034 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13035 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13036 #else
13037 # define ISLOWER(c) \
13038                    (('a' <= (c) && (c) <= 'i') \
13039                      || ('j' <= (c) && (c) <= 'r') \
13040                      || ('s' <= (c) && (c) <= 'z'))
13041 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13042 #endif
13044 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13045 int
13046 main ()
13048   int i;
13049   for (i = 0; i < 256; i++)
13050     if (XOR (islower (i), ISLOWER (i))
13051         || toupper (i) != TOUPPER (i))
13052       return 2;
13053   return 0;
13055 _ACEOF
13056 rm -f conftest$ac_exeext
13057 if { (ac_try="$ac_link"
13058 case "(($ac_try" in
13059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13060   *) ac_try_echo=$ac_try;;
13061 esac
13062 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13063 $as_echo "$ac_try_echo") >&5
13064   (eval "$ac_link") 2>&5
13065   ac_status=$?
13066   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13067   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13068   { (case "(($ac_try" in
13069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13070   *) ac_try_echo=$ac_try;;
13071 esac
13072 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13073 $as_echo "$ac_try_echo") >&5
13074   (eval "$ac_try") 2>&5
13075   ac_status=$?
13076   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13077   (exit $ac_status); }; }; then
13078   :
13079 else
13080   $as_echo "$as_me: program exited with status $ac_status" >&5
13081 $as_echo "$as_me: failed program was:" >&5
13082 sed 's/^/| /' conftest.$ac_ext >&5
13084 ( exit $ac_status )
13085 ac_cv_header_stdc=no
13087 rm -rf conftest.dSYM
13088 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13094 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
13095 $as_echo "$ac_cv_header_stdc" >&6; }
13096 if test $ac_cv_header_stdc = yes; then
13098 cat >>confdefs.h <<\_ACEOF
13099 #define STDC_HEADERS 1
13100 _ACEOF
13109 ac_header_dirent=no
13110 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13111   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13112 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13113 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
13114 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13115   $as_echo_n "(cached) " >&6
13116 else
13117   cat >conftest.$ac_ext <<_ACEOF
13118 /* confdefs.h.  */
13119 _ACEOF
13120 cat confdefs.h >>conftest.$ac_ext
13121 cat >>conftest.$ac_ext <<_ACEOF
13122 /* end confdefs.h.  */
13123 #include <sys/types.h>
13124 #include <$ac_hdr>
13126 int
13127 main ()
13129 if ((DIR *) 0)
13130 return 0;
13131   ;
13132   return 0;
13134 _ACEOF
13135 rm -f conftest.$ac_objext
13136 if { (ac_try="$ac_compile"
13137 case "(($ac_try" in
13138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13139   *) ac_try_echo=$ac_try;;
13140 esac
13141 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13142 $as_echo "$ac_try_echo") >&5
13143   (eval "$ac_compile") 2>conftest.er1
13144   ac_status=$?
13145   grep -v '^ *+' conftest.er1 >conftest.err
13146   rm -f conftest.er1
13147   cat conftest.err >&5
13148   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13149   (exit $ac_status); } && {
13150          test -z "$ac_c_werror_flag" ||
13151          test ! -s conftest.err
13152        } && test -s conftest.$ac_objext; then
13153   eval "$as_ac_Header=yes"
13154 else
13155   $as_echo "$as_me: failed program was:" >&5
13156 sed 's/^/| /' conftest.$ac_ext >&5
13158         eval "$as_ac_Header=no"
13161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13163 ac_res=`eval 'as_val=${'$as_ac_Header'}
13164                  $as_echo "$as_val"'`
13165                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13166 $as_echo "$ac_res" >&6; }
13167 as_val=`eval 'as_val=${'$as_ac_Header'}
13168                  $as_echo "$as_val"'`
13169    if test "x$as_val" = x""yes; then
13170   cat >>confdefs.h <<_ACEOF
13171 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13172 _ACEOF
13174 ac_header_dirent=$ac_hdr; break
13177 done
13178 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13179 if test $ac_header_dirent = dirent.h; then
13180   { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
13181 $as_echo_n "checking for library containing opendir... " >&6; }
13182 if test "${ac_cv_search_opendir+set}" = set; then
13183   $as_echo_n "(cached) " >&6
13184 else
13185   ac_func_search_save_LIBS=$LIBS
13186 cat >conftest.$ac_ext <<_ACEOF
13187 /* confdefs.h.  */
13188 _ACEOF
13189 cat confdefs.h >>conftest.$ac_ext
13190 cat >>conftest.$ac_ext <<_ACEOF
13191 /* end confdefs.h.  */
13193 /* Override any GCC internal prototype to avoid an error.
13194    Use char because int might match the return type of a GCC
13195    builtin and then its argument prototype would still apply.  */
13196 #ifdef __cplusplus
13197 extern "C"
13198 #endif
13199 char opendir ();
13200 int
13201 main ()
13203 return opendir ();
13204   ;
13205   return 0;
13207 _ACEOF
13208 for ac_lib in '' dir; do
13209   if test -z "$ac_lib"; then
13210     ac_res="none required"
13211   else
13212     ac_res=-l$ac_lib
13213     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13214   fi
13215   rm -f conftest.$ac_objext conftest$ac_exeext
13216 if { (ac_try="$ac_link"
13217 case "(($ac_try" in
13218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13219   *) ac_try_echo=$ac_try;;
13220 esac
13221 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13222 $as_echo "$ac_try_echo") >&5
13223   (eval "$ac_link") 2>conftest.er1
13224   ac_status=$?
13225   grep -v '^ *+' conftest.er1 >conftest.err
13226   rm -f conftest.er1
13227   cat conftest.err >&5
13228   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13229   (exit $ac_status); } && {
13230          test -z "$ac_c_werror_flag" ||
13231          test ! -s conftest.err
13232        } && test -s conftest$ac_exeext && {
13233          test "$cross_compiling" = yes ||
13234          $as_test_x conftest$ac_exeext
13235        }; then
13236   ac_cv_search_opendir=$ac_res
13237 else
13238   $as_echo "$as_me: failed program was:" >&5
13239 sed 's/^/| /' conftest.$ac_ext >&5
13244 rm -rf conftest.dSYM
13245 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13246       conftest$ac_exeext
13247   if test "${ac_cv_search_opendir+set}" = set; then
13248   break
13250 done
13251 if test "${ac_cv_search_opendir+set}" = set; then
13252   :
13253 else
13254   ac_cv_search_opendir=no
13256 rm conftest.$ac_ext
13257 LIBS=$ac_func_search_save_LIBS
13259 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13260 $as_echo "$ac_cv_search_opendir" >&6; }
13261 ac_res=$ac_cv_search_opendir
13262 if test "$ac_res" != no; then
13263   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13267 else
13268   { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
13269 $as_echo_n "checking for library containing opendir... " >&6; }
13270 if test "${ac_cv_search_opendir+set}" = set; then
13271   $as_echo_n "(cached) " >&6
13272 else
13273   ac_func_search_save_LIBS=$LIBS
13274 cat >conftest.$ac_ext <<_ACEOF
13275 /* confdefs.h.  */
13276 _ACEOF
13277 cat confdefs.h >>conftest.$ac_ext
13278 cat >>conftest.$ac_ext <<_ACEOF
13279 /* end confdefs.h.  */
13281 /* Override any GCC internal prototype to avoid an error.
13282    Use char because int might match the return type of a GCC
13283    builtin and then its argument prototype would still apply.  */
13284 #ifdef __cplusplus
13285 extern "C"
13286 #endif
13287 char opendir ();
13288 int
13289 main ()
13291 return opendir ();
13292   ;
13293   return 0;
13295 _ACEOF
13296 for ac_lib in '' x; do
13297   if test -z "$ac_lib"; then
13298     ac_res="none required"
13299   else
13300     ac_res=-l$ac_lib
13301     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13302   fi
13303   rm -f conftest.$ac_objext conftest$ac_exeext
13304 if { (ac_try="$ac_link"
13305 case "(($ac_try" in
13306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13307   *) ac_try_echo=$ac_try;;
13308 esac
13309 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13310 $as_echo "$ac_try_echo") >&5
13311   (eval "$ac_link") 2>conftest.er1
13312   ac_status=$?
13313   grep -v '^ *+' conftest.er1 >conftest.err
13314   rm -f conftest.er1
13315   cat conftest.err >&5
13316   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13317   (exit $ac_status); } && {
13318          test -z "$ac_c_werror_flag" ||
13319          test ! -s conftest.err
13320        } && test -s conftest$ac_exeext && {
13321          test "$cross_compiling" = yes ||
13322          $as_test_x conftest$ac_exeext
13323        }; then
13324   ac_cv_search_opendir=$ac_res
13325 else
13326   $as_echo "$as_me: failed program was:" >&5
13327 sed 's/^/| /' conftest.$ac_ext >&5
13332 rm -rf conftest.dSYM
13333 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13334       conftest$ac_exeext
13335   if test "${ac_cv_search_opendir+set}" = set; then
13336   break
13338 done
13339 if test "${ac_cv_search_opendir+set}" = set; then
13340   :
13341 else
13342   ac_cv_search_opendir=no
13344 rm conftest.$ac_ext
13345 LIBS=$ac_func_search_save_LIBS
13347 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13348 $as_echo "$ac_cv_search_opendir" >&6; }
13349 ac_res=$ac_cv_search_opendir
13350 if test "$ac_res" != no; then
13351   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13380 for ac_header in langinfo.h 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
13382 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13383 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13384   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13385 $as_echo_n "checking for $ac_header... " >&6; }
13386 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13387   $as_echo_n "(cached) " >&6
13389 ac_res=`eval 'as_val=${'$as_ac_Header'}
13390                  $as_echo "$as_val"'`
13391                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13392 $as_echo "$ac_res" >&6; }
13393 else
13394   # Is the header compilable?
13395 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13396 $as_echo_n "checking $ac_header usability... " >&6; }
13397 cat >conftest.$ac_ext <<_ACEOF
13398 /* confdefs.h.  */
13399 _ACEOF
13400 cat confdefs.h >>conftest.$ac_ext
13401 cat >>conftest.$ac_ext <<_ACEOF
13402 /* end confdefs.h.  */
13403 $ac_includes_default
13404 #include <$ac_header>
13405 _ACEOF
13406 rm -f conftest.$ac_objext
13407 if { (ac_try="$ac_compile"
13408 case "(($ac_try" in
13409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13410   *) ac_try_echo=$ac_try;;
13411 esac
13412 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13413 $as_echo "$ac_try_echo") >&5
13414   (eval "$ac_compile") 2>conftest.er1
13415   ac_status=$?
13416   grep -v '^ *+' conftest.er1 >conftest.err
13417   rm -f conftest.er1
13418   cat conftest.err >&5
13419   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13420   (exit $ac_status); } && {
13421          test -z "$ac_c_werror_flag" ||
13422          test ! -s conftest.err
13423        } && test -s conftest.$ac_objext; then
13424   ac_header_compiler=yes
13425 else
13426   $as_echo "$as_me: failed program was:" >&5
13427 sed 's/^/| /' conftest.$ac_ext >&5
13429         ac_header_compiler=no
13432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13433 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13434 $as_echo "$ac_header_compiler" >&6; }
13436 # Is the header present?
13437 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13438 $as_echo_n "checking $ac_header presence... " >&6; }
13439 cat >conftest.$ac_ext <<_ACEOF
13440 /* confdefs.h.  */
13441 _ACEOF
13442 cat confdefs.h >>conftest.$ac_ext
13443 cat >>conftest.$ac_ext <<_ACEOF
13444 /* end confdefs.h.  */
13445 #include <$ac_header>
13446 _ACEOF
13447 if { (ac_try="$ac_cpp conftest.$ac_ext"
13448 case "(($ac_try" in
13449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13450   *) ac_try_echo=$ac_try;;
13451 esac
13452 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13453 $as_echo "$ac_try_echo") >&5
13454   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13455   ac_status=$?
13456   grep -v '^ *+' conftest.er1 >conftest.err
13457   rm -f conftest.er1
13458   cat conftest.err >&5
13459   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13460   (exit $ac_status); } >/dev/null && {
13461          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13462          test ! -s conftest.err
13463        }; then
13464   ac_header_preproc=yes
13465 else
13466   $as_echo "$as_me: failed program was:" >&5
13467 sed 's/^/| /' conftest.$ac_ext >&5
13469   ac_header_preproc=no
13472 rm -f conftest.err conftest.$ac_ext
13473 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13474 $as_echo "$ac_header_preproc" >&6; }
13476 # So?  What about this header?
13477 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13478   yes:no: )
13479     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13480 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13481     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13482 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13483     ac_header_preproc=yes
13484     ;;
13485   no:yes:* )
13486     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13487 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13488     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13489 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13490     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13491 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13492     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13493 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13494     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13495 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13496     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13497 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13499     ;;
13500 esac
13501 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13502 $as_echo_n "checking for $ac_header... " >&6; }
13503 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13504   $as_echo_n "(cached) " >&6
13505 else
13506   eval "$as_ac_Header=\$ac_header_preproc"
13508 ac_res=`eval 'as_val=${'$as_ac_Header'}
13509                  $as_echo "$as_val"'`
13510                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13511 $as_echo "$ac_res" >&6; }
13514 as_val=`eval 'as_val=${'$as_ac_Header'}
13515                  $as_echo "$as_val"'`
13516    if test "x$as_val" = x""yes; then
13517   cat >>confdefs.h <<_ACEOF
13518 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13519 _ACEOF
13523 done
13526 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
13527 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13528 if test "${ac_cv_c_const+set}" = set; then
13529   $as_echo_n "(cached) " >&6
13530 else
13531   cat >conftest.$ac_ext <<_ACEOF
13532 /* confdefs.h.  */
13533 _ACEOF
13534 cat confdefs.h >>conftest.$ac_ext
13535 cat >>conftest.$ac_ext <<_ACEOF
13536 /* end confdefs.h.  */
13538 int
13539 main ()
13541 /* FIXME: Include the comments suggested by Paul. */
13542 #ifndef __cplusplus
13543   /* Ultrix mips cc rejects this.  */
13544   typedef int charset[2];
13545   const charset cs;
13546   /* SunOS 4.1.1 cc rejects this.  */
13547   char const *const *pcpcc;
13548   char **ppc;
13549   /* NEC SVR4.0.2 mips cc rejects this.  */
13550   struct point {int x, y;};
13551   static struct point const zero = {0,0};
13552   /* AIX XL C 1.02.0.0 rejects this.
13553      It does not let you subtract one const X* pointer from another in
13554      an arm of an if-expression whose if-part is not a constant
13555      expression */
13556   const char *g = "string";
13557   pcpcc = &g + (g ? g-g : 0);
13558   /* HPUX 7.0 cc rejects these. */
13559   ++pcpcc;
13560   ppc = (char**) pcpcc;
13561   pcpcc = (char const *const *) ppc;
13562   { /* SCO 3.2v4 cc rejects this.  */
13563     char *t;
13564     char const *s = 0 ? (char *) 0 : (char const *) 0;
13566     *t++ = 0;
13567     if (s) return 0;
13568   }
13569   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
13570     int x[] = {25, 17};
13571     const int *foo = &x[0];
13572     ++foo;
13573   }
13574   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13575     typedef const int *iptr;
13576     iptr p = 0;
13577     ++p;
13578   }
13579   { /* AIX XL C 1.02.0.0 rejects this saying
13580        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13581     struct s { int j; const int *ap[3]; };
13582     struct s *b; b->j = 5;
13583   }
13584   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13585     const int foo = 10;
13586     if (!foo) return 0;
13587   }
13588   return !cs[0] && !zero.x;
13589 #endif
13591   ;
13592   return 0;
13594 _ACEOF
13595 rm -f conftest.$ac_objext
13596 if { (ac_try="$ac_compile"
13597 case "(($ac_try" in
13598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13599   *) ac_try_echo=$ac_try;;
13600 esac
13601 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13602 $as_echo "$ac_try_echo") >&5
13603   (eval "$ac_compile") 2>conftest.er1
13604   ac_status=$?
13605   grep -v '^ *+' conftest.er1 >conftest.err
13606   rm -f conftest.er1
13607   cat conftest.err >&5
13608   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13609   (exit $ac_status); } && {
13610          test -z "$ac_c_werror_flag" ||
13611          test ! -s conftest.err
13612        } && test -s conftest.$ac_objext; then
13613   ac_cv_c_const=yes
13614 else
13615   $as_echo "$as_me: failed program was:" >&5
13616 sed 's/^/| /' conftest.$ac_ext >&5
13618         ac_cv_c_const=no
13621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13623 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
13624 $as_echo "$ac_cv_c_const" >&6; }
13625 if test $ac_cv_c_const = no; then
13627 cat >>confdefs.h <<\_ACEOF
13628 #define const /**/
13629 _ACEOF
13633 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
13634 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
13635 if test "${ac_cv_header_time+set}" = set; then
13636   $as_echo_n "(cached) " >&6
13637 else
13638   cat >conftest.$ac_ext <<_ACEOF
13639 /* confdefs.h.  */
13640 _ACEOF
13641 cat confdefs.h >>conftest.$ac_ext
13642 cat >>conftest.$ac_ext <<_ACEOF
13643 /* end confdefs.h.  */
13644 #include <sys/types.h>
13645 #include <sys/time.h>
13646 #include <time.h>
13648 int
13649 main ()
13651 if ((struct tm *) 0)
13652 return 0;
13653   ;
13654   return 0;
13656 _ACEOF
13657 rm -f conftest.$ac_objext
13658 if { (ac_try="$ac_compile"
13659 case "(($ac_try" in
13660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13661   *) ac_try_echo=$ac_try;;
13662 esac
13663 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13664 $as_echo "$ac_try_echo") >&5
13665   (eval "$ac_compile") 2>conftest.er1
13666   ac_status=$?
13667   grep -v '^ *+' conftest.er1 >conftest.err
13668   rm -f conftest.er1
13669   cat conftest.err >&5
13670   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13671   (exit $ac_status); } && {
13672          test -z "$ac_c_werror_flag" ||
13673          test ! -s conftest.err
13674        } && test -s conftest.$ac_objext; then
13675   ac_cv_header_time=yes
13676 else
13677   $as_echo "$as_me: failed program was:" >&5
13678 sed 's/^/| /' conftest.$ac_ext >&5
13680         ac_cv_header_time=no
13683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13685 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
13686 $as_echo "$ac_cv_header_time" >&6; }
13687 if test $ac_cv_header_time = yes; then
13689 cat >>confdefs.h <<\_ACEOF
13690 #define TIME_WITH_SYS_TIME 1
13691 _ACEOF
13695 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
13696 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
13697 if test "${ac_cv_struct_tm+set}" = set; then
13698   $as_echo_n "(cached) " >&6
13699 else
13700   cat >conftest.$ac_ext <<_ACEOF
13701 /* confdefs.h.  */
13702 _ACEOF
13703 cat confdefs.h >>conftest.$ac_ext
13704 cat >>conftest.$ac_ext <<_ACEOF
13705 /* end confdefs.h.  */
13706 #include <sys/types.h>
13707 #include <time.h>
13709 int
13710 main ()
13712 struct tm tm;
13713                                      int *p = &tm.tm_sec;
13714                                      return !p;
13715   ;
13716   return 0;
13718 _ACEOF
13719 rm -f conftest.$ac_objext
13720 if { (ac_try="$ac_compile"
13721 case "(($ac_try" in
13722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13723   *) ac_try_echo=$ac_try;;
13724 esac
13725 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13726 $as_echo "$ac_try_echo") >&5
13727   (eval "$ac_compile") 2>conftest.er1
13728   ac_status=$?
13729   grep -v '^ *+' conftest.er1 >conftest.err
13730   rm -f conftest.er1
13731   cat conftest.err >&5
13732   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13733   (exit $ac_status); } && {
13734          test -z "$ac_c_werror_flag" ||
13735          test ! -s conftest.err
13736        } && test -s conftest.$ac_objext; then
13737   ac_cv_struct_tm=time.h
13738 else
13739   $as_echo "$as_me: failed program was:" >&5
13740 sed 's/^/| /' conftest.$ac_ext >&5
13742         ac_cv_struct_tm=sys/time.h
13745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13747 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
13748 $as_echo "$ac_cv_struct_tm" >&6; }
13749 if test $ac_cv_struct_tm = sys/time.h; then
13751 cat >>confdefs.h <<\_ACEOF
13752 #define TM_IN_SYS_TIME 1
13753 _ACEOF
13759 case $TERM in
13760        #   for the most important terminal types we directly know the sequences
13761        xterm|xterm*|vt220|vt220*)
13762                T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
13763                T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
13764        ;;
13765        vt100|vt100*|cygwin)
13766                T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
13767                T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
13768        ;;
13769        *)
13770                T_MD=''
13771                T_ME=''
13772        ;;
13773 esac
13774   { $as_echo "$as_me:$LINENO: result: " >&5
13775 $as_echo "" >&6; }
13776   { $as_echo "$as_me:$LINENO: result: ${T_MD}Test Library Functions${T_ME}" >&5
13777 $as_echo "${T_MD}Test Library Functions${T_ME}" >&6; }
13780 { $as_echo "$as_me:$LINENO: checking for acos" >&5
13781 $as_echo_n "checking for acos... " >&6; }
13782 if test "${ac_cv_func_acos+set}" = set; then
13783   $as_echo_n "(cached) " >&6
13784 else
13785   cat >conftest.$ac_ext <<_ACEOF
13786 /* confdefs.h.  */
13787 _ACEOF
13788 cat confdefs.h >>conftest.$ac_ext
13789 cat >>conftest.$ac_ext <<_ACEOF
13790 /* end confdefs.h.  */
13791 /* Define acos to an innocuous variant, in case <limits.h> declares acos.
13792    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13793 #define acos innocuous_acos
13795 /* System header to define __stub macros and hopefully few prototypes,
13796     which can conflict with char acos (); below.
13797     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13798     <limits.h> exists even on freestanding compilers.  */
13800 #ifdef __STDC__
13801 # include <limits.h>
13802 #else
13803 # include <assert.h>
13804 #endif
13806 #undef acos
13808 /* Override any GCC internal prototype to avoid an error.
13809    Use char because int might match the return type of a GCC
13810    builtin and then its argument prototype would still apply.  */
13811 #ifdef __cplusplus
13812 extern "C"
13813 #endif
13814 char acos ();
13815 /* The GNU C library defines this for functions which it implements
13816     to always fail with ENOSYS.  Some functions are actually named
13817     something starting with __ and the normal name is an alias.  */
13818 #if defined __stub_acos || defined __stub___acos
13819 choke me
13820 #endif
13822 int
13823 main ()
13825 return acos ();
13826   ;
13827   return 0;
13829 _ACEOF
13830 rm -f conftest.$ac_objext conftest$ac_exeext
13831 if { (ac_try="$ac_link"
13832 case "(($ac_try" in
13833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13834   *) ac_try_echo=$ac_try;;
13835 esac
13836 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13837 $as_echo "$ac_try_echo") >&5
13838   (eval "$ac_link") 2>conftest.er1
13839   ac_status=$?
13840   grep -v '^ *+' conftest.er1 >conftest.err
13841   rm -f conftest.er1
13842   cat conftest.err >&5
13843   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13844   (exit $ac_status); } && {
13845          test -z "$ac_c_werror_flag" ||
13846          test ! -s conftest.err
13847        } && test -s conftest$ac_exeext && {
13848          test "$cross_compiling" = yes ||
13849          $as_test_x conftest$ac_exeext
13850        }; then
13851   ac_cv_func_acos=yes
13852 else
13853   $as_echo "$as_me: failed program was:" >&5
13854 sed 's/^/| /' conftest.$ac_ext >&5
13856         ac_cv_func_acos=no
13859 rm -rf conftest.dSYM
13860 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13861       conftest$ac_exeext conftest.$ac_ext
13863 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_acos" >&5
13864 $as_echo "$ac_cv_func_acos" >&6; }
13865 if test "x$ac_cv_func_acos" = x""yes; then
13866   :
13867 else
13869 { $as_echo "$as_me:$LINENO: checking for acos in -lm" >&5
13870 $as_echo_n "checking for acos in -lm... " >&6; }
13871 if test "${ac_cv_lib_m_acos+set}" = set; then
13872   $as_echo_n "(cached) " >&6
13873 else
13874   ac_check_lib_save_LIBS=$LIBS
13875 LIBS="-lm  $LIBS"
13876 cat >conftest.$ac_ext <<_ACEOF
13877 /* confdefs.h.  */
13878 _ACEOF
13879 cat confdefs.h >>conftest.$ac_ext
13880 cat >>conftest.$ac_ext <<_ACEOF
13881 /* end confdefs.h.  */
13883 /* Override any GCC internal prototype to avoid an error.
13884    Use char because int might match the return type of a GCC
13885    builtin and then its argument prototype would still apply.  */
13886 #ifdef __cplusplus
13887 extern "C"
13888 #endif
13889 char acos ();
13890 int
13891 main ()
13893 return acos ();
13894   ;
13895   return 0;
13897 _ACEOF
13898 rm -f conftest.$ac_objext conftest$ac_exeext
13899 if { (ac_try="$ac_link"
13900 case "(($ac_try" in
13901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13902   *) ac_try_echo=$ac_try;;
13903 esac
13904 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13905 $as_echo "$ac_try_echo") >&5
13906   (eval "$ac_link") 2>conftest.er1
13907   ac_status=$?
13908   grep -v '^ *+' conftest.er1 >conftest.err
13909   rm -f conftest.er1
13910   cat conftest.err >&5
13911   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13912   (exit $ac_status); } && {
13913          test -z "$ac_c_werror_flag" ||
13914          test ! -s conftest.err
13915        } && test -s conftest$ac_exeext && {
13916          test "$cross_compiling" = yes ||
13917          $as_test_x conftest$ac_exeext
13918        }; then
13919   ac_cv_lib_m_acos=yes
13920 else
13921   $as_echo "$as_me: failed program was:" >&5
13922 sed 's/^/| /' conftest.$ac_ext >&5
13924         ac_cv_lib_m_acos=no
13927 rm -rf conftest.dSYM
13928 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13929       conftest$ac_exeext conftest.$ac_ext
13930 LIBS=$ac_check_lib_save_LIBS
13932 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_acos" >&5
13933 $as_echo "$ac_cv_lib_m_acos" >&6; }
13934 if test "x$ac_cv_lib_m_acos" = x""yes; then
13935   cat >>confdefs.h <<_ACEOF
13936 #define HAVE_LIBM 1
13937 _ACEOF
13939   LIBS="-lm $LIBS"
13947 eval `./libtool --config | grep pic_flag`
13948 CFLAGS="$CFLAGS $pic_flag"
13952 for ac_func in strftime
13954 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13955 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13956 $as_echo_n "checking for $ac_func... " >&6; }
13957 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13958   $as_echo_n "(cached) " >&6
13959 else
13960   cat >conftest.$ac_ext <<_ACEOF
13961 /* confdefs.h.  */
13962 _ACEOF
13963 cat confdefs.h >>conftest.$ac_ext
13964 cat >>conftest.$ac_ext <<_ACEOF
13965 /* end confdefs.h.  */
13966 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13967    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13968 #define $ac_func innocuous_$ac_func
13970 /* System header to define __stub macros and hopefully few prototypes,
13971     which can conflict with char $ac_func (); below.
13972     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13973     <limits.h> exists even on freestanding compilers.  */
13975 #ifdef __STDC__
13976 # include <limits.h>
13977 #else
13978 # include <assert.h>
13979 #endif
13981 #undef $ac_func
13983 /* Override any GCC internal prototype to avoid an error.
13984    Use char because int might match the return type of a GCC
13985    builtin and then its argument prototype would still apply.  */
13986 #ifdef __cplusplus
13987 extern "C"
13988 #endif
13989 char $ac_func ();
13990 /* The GNU C library defines this for functions which it implements
13991     to always fail with ENOSYS.  Some functions are actually named
13992     something starting with __ and the normal name is an alias.  */
13993 #if defined __stub_$ac_func || defined __stub___$ac_func
13994 choke me
13995 #endif
13997 int
13998 main ()
14000 return $ac_func ();
14001   ;
14002   return 0;
14004 _ACEOF
14005 rm -f conftest.$ac_objext conftest$ac_exeext
14006 if { (ac_try="$ac_link"
14007 case "(($ac_try" in
14008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14009   *) ac_try_echo=$ac_try;;
14010 esac
14011 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14012 $as_echo "$ac_try_echo") >&5
14013   (eval "$ac_link") 2>conftest.er1
14014   ac_status=$?
14015   grep -v '^ *+' conftest.er1 >conftest.err
14016   rm -f conftest.er1
14017   cat conftest.err >&5
14018   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14019   (exit $ac_status); } && {
14020          test -z "$ac_c_werror_flag" ||
14021          test ! -s conftest.err
14022        } && test -s conftest$ac_exeext && {
14023          test "$cross_compiling" = yes ||
14024          $as_test_x conftest$ac_exeext
14025        }; then
14026   eval "$as_ac_var=yes"
14027 else
14028   $as_echo "$as_me: failed program was:" >&5
14029 sed 's/^/| /' conftest.$ac_ext >&5
14031         eval "$as_ac_var=no"
14034 rm -rf conftest.dSYM
14035 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14036       conftest$ac_exeext conftest.$ac_ext
14038 ac_res=`eval 'as_val=${'$as_ac_var'}
14039                  $as_echo "$as_val"'`
14040                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14041 $as_echo "$ac_res" >&6; }
14042 as_val=`eval 'as_val=${'$as_ac_var'}
14043                  $as_echo "$as_val"'`
14044    if test "x$as_val" = x""yes; then
14045   cat >>confdefs.h <<_ACEOF
14046 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14047 _ACEOF
14049 else
14050   # strftime is in -lintl on SCO UNIX.
14051 { $as_echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
14052 $as_echo_n "checking for strftime in -lintl... " >&6; }
14053 if test "${ac_cv_lib_intl_strftime+set}" = set; then
14054   $as_echo_n "(cached) " >&6
14055 else
14056   ac_check_lib_save_LIBS=$LIBS
14057 LIBS="-lintl  $LIBS"
14058 cat >conftest.$ac_ext <<_ACEOF
14059 /* confdefs.h.  */
14060 _ACEOF
14061 cat confdefs.h >>conftest.$ac_ext
14062 cat >>conftest.$ac_ext <<_ACEOF
14063 /* end confdefs.h.  */
14065 /* Override any GCC internal prototype to avoid an error.
14066    Use char because int might match the return type of a GCC
14067    builtin and then its argument prototype would still apply.  */
14068 #ifdef __cplusplus
14069 extern "C"
14070 #endif
14071 char strftime ();
14072 int
14073 main ()
14075 return strftime ();
14076   ;
14077   return 0;
14079 _ACEOF
14080 rm -f conftest.$ac_objext conftest$ac_exeext
14081 if { (ac_try="$ac_link"
14082 case "(($ac_try" in
14083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14084   *) ac_try_echo=$ac_try;;
14085 esac
14086 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14087 $as_echo "$ac_try_echo") >&5
14088   (eval "$ac_link") 2>conftest.er1
14089   ac_status=$?
14090   grep -v '^ *+' conftest.er1 >conftest.err
14091   rm -f conftest.er1
14092   cat conftest.err >&5
14093   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14094   (exit $ac_status); } && {
14095          test -z "$ac_c_werror_flag" ||
14096          test ! -s conftest.err
14097        } && test -s conftest$ac_exeext && {
14098          test "$cross_compiling" = yes ||
14099          $as_test_x conftest$ac_exeext
14100        }; then
14101   ac_cv_lib_intl_strftime=yes
14102 else
14103   $as_echo "$as_me: failed program was:" >&5
14104 sed 's/^/| /' conftest.$ac_ext >&5
14106         ac_cv_lib_intl_strftime=no
14109 rm -rf conftest.dSYM
14110 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14111       conftest$ac_exeext conftest.$ac_ext
14112 LIBS=$ac_check_lib_save_LIBS
14114 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
14115 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
14116 if test "x$ac_cv_lib_intl_strftime" = x""yes; then
14117   cat >>confdefs.h <<\_ACEOF
14118 #define HAVE_STRFTIME 1
14119 _ACEOF
14121 LIBS="-lintl $LIBS"
14125 done
14128 for ac_func in vprintf
14130 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14131 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14132 $as_echo_n "checking for $ac_func... " >&6; }
14133 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14134   $as_echo_n "(cached) " >&6
14135 else
14136   cat >conftest.$ac_ext <<_ACEOF
14137 /* confdefs.h.  */
14138 _ACEOF
14139 cat confdefs.h >>conftest.$ac_ext
14140 cat >>conftest.$ac_ext <<_ACEOF
14141 /* end confdefs.h.  */
14142 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14143    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14144 #define $ac_func innocuous_$ac_func
14146 /* System header to define __stub macros and hopefully few prototypes,
14147     which can conflict with char $ac_func (); below.
14148     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14149     <limits.h> exists even on freestanding compilers.  */
14151 #ifdef __STDC__
14152 # include <limits.h>
14153 #else
14154 # include <assert.h>
14155 #endif
14157 #undef $ac_func
14159 /* Override any GCC internal prototype to avoid an error.
14160    Use char because int might match the return type of a GCC
14161    builtin and then its argument prototype would still apply.  */
14162 #ifdef __cplusplus
14163 extern "C"
14164 #endif
14165 char $ac_func ();
14166 /* The GNU C library defines this for functions which it implements
14167     to always fail with ENOSYS.  Some functions are actually named
14168     something starting with __ and the normal name is an alias.  */
14169 #if defined __stub_$ac_func || defined __stub___$ac_func
14170 choke me
14171 #endif
14173 int
14174 main ()
14176 return $ac_func ();
14177   ;
14178   return 0;
14180 _ACEOF
14181 rm -f conftest.$ac_objext conftest$ac_exeext
14182 if { (ac_try="$ac_link"
14183 case "(($ac_try" in
14184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14185   *) ac_try_echo=$ac_try;;
14186 esac
14187 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14188 $as_echo "$ac_try_echo") >&5
14189   (eval "$ac_link") 2>conftest.er1
14190   ac_status=$?
14191   grep -v '^ *+' conftest.er1 >conftest.err
14192   rm -f conftest.er1
14193   cat conftest.err >&5
14194   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14195   (exit $ac_status); } && {
14196          test -z "$ac_c_werror_flag" ||
14197          test ! -s conftest.err
14198        } && test -s conftest$ac_exeext && {
14199          test "$cross_compiling" = yes ||
14200          $as_test_x conftest$ac_exeext
14201        }; then
14202   eval "$as_ac_var=yes"
14203 else
14204   $as_echo "$as_me: failed program was:" >&5
14205 sed 's/^/| /' conftest.$ac_ext >&5
14207         eval "$as_ac_var=no"
14210 rm -rf conftest.dSYM
14211 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14212       conftest$ac_exeext conftest.$ac_ext
14214 ac_res=`eval 'as_val=${'$as_ac_var'}
14215                  $as_echo "$as_val"'`
14216                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14217 $as_echo "$ac_res" >&6; }
14218 as_val=`eval 'as_val=${'$as_ac_var'}
14219                  $as_echo "$as_val"'`
14220    if test "x$as_val" = x""yes; then
14221   cat >>confdefs.h <<_ACEOF
14222 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14223 _ACEOF
14225 { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
14226 $as_echo_n "checking for _doprnt... " >&6; }
14227 if test "${ac_cv_func__doprnt+set}" = set; then
14228   $as_echo_n "(cached) " >&6
14229 else
14230   cat >conftest.$ac_ext <<_ACEOF
14231 /* confdefs.h.  */
14232 _ACEOF
14233 cat confdefs.h >>conftest.$ac_ext
14234 cat >>conftest.$ac_ext <<_ACEOF
14235 /* end confdefs.h.  */
14236 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
14237    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14238 #define _doprnt innocuous__doprnt
14240 /* System header to define __stub macros and hopefully few prototypes,
14241     which can conflict with char _doprnt (); below.
14242     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14243     <limits.h> exists even on freestanding compilers.  */
14245 #ifdef __STDC__
14246 # include <limits.h>
14247 #else
14248 # include <assert.h>
14249 #endif
14251 #undef _doprnt
14253 /* Override any GCC internal prototype to avoid an error.
14254    Use char because int might match the return type of a GCC
14255    builtin and then its argument prototype would still apply.  */
14256 #ifdef __cplusplus
14257 extern "C"
14258 #endif
14259 char _doprnt ();
14260 /* The GNU C library defines this for functions which it implements
14261     to always fail with ENOSYS.  Some functions are actually named
14262     something starting with __ and the normal name is an alias.  */
14263 #if defined __stub__doprnt || defined __stub____doprnt
14264 choke me
14265 #endif
14267 int
14268 main ()
14270 return _doprnt ();
14271   ;
14272   return 0;
14274 _ACEOF
14275 rm -f conftest.$ac_objext conftest$ac_exeext
14276 if { (ac_try="$ac_link"
14277 case "(($ac_try" in
14278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14279   *) ac_try_echo=$ac_try;;
14280 esac
14281 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14282 $as_echo "$ac_try_echo") >&5
14283   (eval "$ac_link") 2>conftest.er1
14284   ac_status=$?
14285   grep -v '^ *+' conftest.er1 >conftest.err
14286   rm -f conftest.er1
14287   cat conftest.err >&5
14288   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14289   (exit $ac_status); } && {
14290          test -z "$ac_c_werror_flag" ||
14291          test ! -s conftest.err
14292        } && test -s conftest$ac_exeext && {
14293          test "$cross_compiling" = yes ||
14294          $as_test_x conftest$ac_exeext
14295        }; then
14296   ac_cv_func__doprnt=yes
14297 else
14298   $as_echo "$as_me: failed program was:" >&5
14299 sed 's/^/| /' conftest.$ac_ext >&5
14301         ac_cv_func__doprnt=no
14304 rm -rf conftest.dSYM
14305 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14306       conftest$ac_exeext conftest.$ac_ext
14308 { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
14309 $as_echo "$ac_cv_func__doprnt" >&6; }
14310 if test "x$ac_cv_func__doprnt" = x""yes; then
14312 cat >>confdefs.h <<\_ACEOF
14313 #define HAVE_DOPRNT 1
14314 _ACEOF
14319 done
14324  { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
14325 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14326 if test "${ac_cv_c_bigendian+set}" = set; then
14327   $as_echo_n "(cached) " >&6
14328 else
14329   ac_cv_c_bigendian=unknown
14330     # See if we're dealing with a universal compiler.
14331     cat >conftest.$ac_ext <<_ACEOF
14332 /* confdefs.h.  */
14333 _ACEOF
14334 cat confdefs.h >>conftest.$ac_ext
14335 cat >>conftest.$ac_ext <<_ACEOF
14336 /* end confdefs.h.  */
14337 #ifndef __APPLE_CC__
14338                not a universal capable compiler
14339              #endif
14340              typedef int dummy;
14342 _ACEOF
14343 rm -f conftest.$ac_objext
14344 if { (ac_try="$ac_compile"
14345 case "(($ac_try" in
14346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14347   *) ac_try_echo=$ac_try;;
14348 esac
14349 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14350 $as_echo "$ac_try_echo") >&5
14351   (eval "$ac_compile") 2>conftest.er1
14352   ac_status=$?
14353   grep -v '^ *+' conftest.er1 >conftest.err
14354   rm -f conftest.er1
14355   cat conftest.err >&5
14356   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14357   (exit $ac_status); } && {
14358          test -z "$ac_c_werror_flag" ||
14359          test ! -s conftest.err
14360        } && test -s conftest.$ac_objext; then
14362         # Check for potential -arch flags.  It is not universal unless
14363         # there are some -arch flags.  Note that *ppc* also matches
14364         # ppc64.  This check is also rather less than ideal.
14365         case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in  #(
14366           *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
14367         esac
14368 else
14369   $as_echo "$as_me: failed program was:" >&5
14370 sed 's/^/| /' conftest.$ac_ext >&5
14375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14376     if test $ac_cv_c_bigendian = unknown; then
14377       # See if sys/param.h defines the BYTE_ORDER macro.
14378       cat >conftest.$ac_ext <<_ACEOF
14379 /* confdefs.h.  */
14380 _ACEOF
14381 cat confdefs.h >>conftest.$ac_ext
14382 cat >>conftest.$ac_ext <<_ACEOF
14383 /* end confdefs.h.  */
14384 #include <sys/types.h>
14385              #include <sys/param.h>
14387 int
14388 main ()
14390 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14391                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14392                      && LITTLE_ENDIAN)
14393               bogus endian macros
14394              #endif
14396   ;
14397   return 0;
14399 _ACEOF
14400 rm -f conftest.$ac_objext
14401 if { (ac_try="$ac_compile"
14402 case "(($ac_try" in
14403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14404   *) ac_try_echo=$ac_try;;
14405 esac
14406 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14407 $as_echo "$ac_try_echo") >&5
14408   (eval "$ac_compile") 2>conftest.er1
14409   ac_status=$?
14410   grep -v '^ *+' conftest.er1 >conftest.err
14411   rm -f conftest.er1
14412   cat conftest.err >&5
14413   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14414   (exit $ac_status); } && {
14415          test -z "$ac_c_werror_flag" ||
14416          test ! -s conftest.err
14417        } && test -s conftest.$ac_objext; then
14418   # It does; now see whether it defined to BIG_ENDIAN or not.
14419          cat >conftest.$ac_ext <<_ACEOF
14420 /* confdefs.h.  */
14421 _ACEOF
14422 cat confdefs.h >>conftest.$ac_ext
14423 cat >>conftest.$ac_ext <<_ACEOF
14424 /* end confdefs.h.  */
14425 #include <sys/types.h>
14426                 #include <sys/param.h>
14428 int
14429 main ()
14431 #if BYTE_ORDER != BIG_ENDIAN
14432                  not big endian
14433                 #endif
14435   ;
14436   return 0;
14438 _ACEOF
14439 rm -f conftest.$ac_objext
14440 if { (ac_try="$ac_compile"
14441 case "(($ac_try" in
14442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14443   *) ac_try_echo=$ac_try;;
14444 esac
14445 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14446 $as_echo "$ac_try_echo") >&5
14447   (eval "$ac_compile") 2>conftest.er1
14448   ac_status=$?
14449   grep -v '^ *+' conftest.er1 >conftest.err
14450   rm -f conftest.er1
14451   cat conftest.err >&5
14452   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14453   (exit $ac_status); } && {
14454          test -z "$ac_c_werror_flag" ||
14455          test ! -s conftest.err
14456        } && test -s conftest.$ac_objext; then
14457   ac_cv_c_bigendian=yes
14458 else
14459   $as_echo "$as_me: failed program was:" >&5
14460 sed 's/^/| /' conftest.$ac_ext >&5
14462         ac_cv_c_bigendian=no
14465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14466 else
14467   $as_echo "$as_me: failed program was:" >&5
14468 sed 's/^/| /' conftest.$ac_ext >&5
14473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14474     fi
14475     if test $ac_cv_c_bigendian = unknown; then
14476       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14477       cat >conftest.$ac_ext <<_ACEOF
14478 /* confdefs.h.  */
14479 _ACEOF
14480 cat confdefs.h >>conftest.$ac_ext
14481 cat >>conftest.$ac_ext <<_ACEOF
14482 /* end confdefs.h.  */
14483 #include <limits.h>
14485 int
14486 main ()
14488 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14489               bogus endian macros
14490              #endif
14492   ;
14493   return 0;
14495 _ACEOF
14496 rm -f conftest.$ac_objext
14497 if { (ac_try="$ac_compile"
14498 case "(($ac_try" in
14499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14500   *) ac_try_echo=$ac_try;;
14501 esac
14502 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14503 $as_echo "$ac_try_echo") >&5
14504   (eval "$ac_compile") 2>conftest.er1
14505   ac_status=$?
14506   grep -v '^ *+' conftest.er1 >conftest.err
14507   rm -f conftest.er1
14508   cat conftest.err >&5
14509   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14510   (exit $ac_status); } && {
14511          test -z "$ac_c_werror_flag" ||
14512          test ! -s conftest.err
14513        } && test -s conftest.$ac_objext; then
14514   # It does; now see whether it defined to _BIG_ENDIAN or not.
14515          cat >conftest.$ac_ext <<_ACEOF
14516 /* confdefs.h.  */
14517 _ACEOF
14518 cat confdefs.h >>conftest.$ac_ext
14519 cat >>conftest.$ac_ext <<_ACEOF
14520 /* end confdefs.h.  */
14521 #include <limits.h>
14523 int
14524 main ()
14526 #ifndef _BIG_ENDIAN
14527                  not big endian
14528                 #endif
14530   ;
14531   return 0;
14533 _ACEOF
14534 rm -f conftest.$ac_objext
14535 if { (ac_try="$ac_compile"
14536 case "(($ac_try" in
14537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14538   *) ac_try_echo=$ac_try;;
14539 esac
14540 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14541 $as_echo "$ac_try_echo") >&5
14542   (eval "$ac_compile") 2>conftest.er1
14543   ac_status=$?
14544   grep -v '^ *+' conftest.er1 >conftest.err
14545   rm -f conftest.er1
14546   cat conftest.err >&5
14547   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14548   (exit $ac_status); } && {
14549          test -z "$ac_c_werror_flag" ||
14550          test ! -s conftest.err
14551        } && test -s conftest.$ac_objext; then
14552   ac_cv_c_bigendian=yes
14553 else
14554   $as_echo "$as_me: failed program was:" >&5
14555 sed 's/^/| /' conftest.$ac_ext >&5
14557         ac_cv_c_bigendian=no
14560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14561 else
14562   $as_echo "$as_me: failed program was:" >&5
14563 sed 's/^/| /' conftest.$ac_ext >&5
14568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14569     fi
14570     if test $ac_cv_c_bigendian = unknown; then
14571       # Compile a test program.
14572       if test "$cross_compiling" = yes; then
14573   # Try to guess by grepping values from an object file.
14574          cat >conftest.$ac_ext <<_ACEOF
14575 /* confdefs.h.  */
14576 _ACEOF
14577 cat confdefs.h >>conftest.$ac_ext
14578 cat >>conftest.$ac_ext <<_ACEOF
14579 /* end confdefs.h.  */
14580 short int ascii_mm[] =
14581                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14582                 short int ascii_ii[] =
14583                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14584                 int use_ascii (int i) {
14585                   return ascii_mm[i] + ascii_ii[i];
14586                 }
14587                 short int ebcdic_ii[] =
14588                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14589                 short int ebcdic_mm[] =
14590                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14591                 int use_ebcdic (int i) {
14592                   return ebcdic_mm[i] + ebcdic_ii[i];
14593                 }
14594                 extern int foo;
14596 int
14597 main ()
14599 return use_ascii (foo) == use_ebcdic (foo);
14600   ;
14601   return 0;
14603 _ACEOF
14604 rm -f conftest.$ac_objext
14605 if { (ac_try="$ac_compile"
14606 case "(($ac_try" in
14607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14608   *) ac_try_echo=$ac_try;;
14609 esac
14610 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14611 $as_echo "$ac_try_echo") >&5
14612   (eval "$ac_compile") 2>conftest.er1
14613   ac_status=$?
14614   grep -v '^ *+' conftest.er1 >conftest.err
14615   rm -f conftest.er1
14616   cat conftest.err >&5
14617   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14618   (exit $ac_status); } && {
14619          test -z "$ac_c_werror_flag" ||
14620          test ! -s conftest.err
14621        } && test -s conftest.$ac_objext; then
14622   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14623               ac_cv_c_bigendian=yes
14624             fi
14625             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14626               if test "$ac_cv_c_bigendian" = unknown; then
14627                 ac_cv_c_bigendian=no
14628               else
14629                 # finding both strings is unlikely to happen, but who knows?
14630                 ac_cv_c_bigendian=unknown
14631               fi
14632             fi
14633 else
14634   $as_echo "$as_me: failed program was:" >&5
14635 sed 's/^/| /' conftest.$ac_ext >&5
14640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14641 else
14642   cat >conftest.$ac_ext <<_ACEOF
14643 /* confdefs.h.  */
14644 _ACEOF
14645 cat confdefs.h >>conftest.$ac_ext
14646 cat >>conftest.$ac_ext <<_ACEOF
14647 /* end confdefs.h.  */
14648 $ac_includes_default
14649 int
14650 main ()
14653              /* Are we little or big endian?  From Harbison&Steele.  */
14654              union
14655              {
14656                long int l;
14657                char c[sizeof (long int)];
14658              } u;
14659              u.l = 1;
14660              return u.c[sizeof (long int) - 1] == 1;
14662   ;
14663   return 0;
14665 _ACEOF
14666 rm -f conftest$ac_exeext
14667 if { (ac_try="$ac_link"
14668 case "(($ac_try" in
14669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14670   *) ac_try_echo=$ac_try;;
14671 esac
14672 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14673 $as_echo "$ac_try_echo") >&5
14674   (eval "$ac_link") 2>&5
14675   ac_status=$?
14676   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14677   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14678   { (case "(($ac_try" in
14679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14680   *) ac_try_echo=$ac_try;;
14681 esac
14682 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14683 $as_echo "$ac_try_echo") >&5
14684   (eval "$ac_try") 2>&5
14685   ac_status=$?
14686   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14687   (exit $ac_status); }; }; then
14688   ac_cv_c_bigendian=no
14689 else
14690   $as_echo "$as_me: program exited with status $ac_status" >&5
14691 $as_echo "$as_me: failed program was:" >&5
14692 sed 's/^/| /' conftest.$ac_ext >&5
14694 ( exit $ac_status )
14695 ac_cv_c_bigendian=yes
14697 rm -rf conftest.dSYM
14698 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14702     fi
14704 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14705 $as_echo "$ac_cv_c_bigendian" >&6; }
14706  case $ac_cv_c_bigendian in #(
14707    yes)
14708      cat >>confdefs.h <<\_ACEOF
14709 #define WORDS_BIGENDIAN 1
14710 _ACEOF
14711 ;; #(
14712    no)
14713       ;; #(
14714    universal)
14716 cat >>confdefs.h <<\_ACEOF
14717 #define AC_APPLE_UNIVERSAL_BUILD 1
14718 _ACEOF
14720      ;; #(
14721    *)
14722      { { $as_echo "$as_me:$LINENO: error: unknown endianness
14723  presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14724 $as_echo "$as_me: error: unknown endianness
14725  presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14726    { (exit 1); exit 1; }; } ;;
14727  esac
14753 for ac_func in nl_langinfo tzset fsync mbstowcs opendir readdir chdir chroot getuid strerror snprintf vsnprintf vasprintf fpclass class fp_class isnan memmove strchr mktime getrusage gettimeofday
14755 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14756 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14757 $as_echo_n "checking for $ac_func... " >&6; }
14758 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14759   $as_echo_n "(cached) " >&6
14760 else
14761   cat >conftest.$ac_ext <<_ACEOF
14762 /* confdefs.h.  */
14763 _ACEOF
14764 cat confdefs.h >>conftest.$ac_ext
14765 cat >>conftest.$ac_ext <<_ACEOF
14766 /* end confdefs.h.  */
14767 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14768    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14769 #define $ac_func innocuous_$ac_func
14771 /* System header to define __stub macros and hopefully few prototypes,
14772     which can conflict with char $ac_func (); below.
14773     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14774     <limits.h> exists even on freestanding compilers.  */
14776 #ifdef __STDC__
14777 # include <limits.h>
14778 #else
14779 # include <assert.h>
14780 #endif
14782 #undef $ac_func
14784 /* Override any GCC internal prototype to avoid an error.
14785    Use char because int might match the return type of a GCC
14786    builtin and then its argument prototype would still apply.  */
14787 #ifdef __cplusplus
14788 extern "C"
14789 #endif
14790 char $ac_func ();
14791 /* The GNU C library defines this for functions which it implements
14792     to always fail with ENOSYS.  Some functions are actually named
14793     something starting with __ and the normal name is an alias.  */
14794 #if defined __stub_$ac_func || defined __stub___$ac_func
14795 choke me
14796 #endif
14798 int
14799 main ()
14801 return $ac_func ();
14802   ;
14803   return 0;
14805 _ACEOF
14806 rm -f conftest.$ac_objext conftest$ac_exeext
14807 if { (ac_try="$ac_link"
14808 case "(($ac_try" in
14809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14810   *) ac_try_echo=$ac_try;;
14811 esac
14812 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14813 $as_echo "$ac_try_echo") >&5
14814   (eval "$ac_link") 2>conftest.er1
14815   ac_status=$?
14816   grep -v '^ *+' conftest.er1 >conftest.err
14817   rm -f conftest.er1
14818   cat conftest.err >&5
14819   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14820   (exit $ac_status); } && {
14821          test -z "$ac_c_werror_flag" ||
14822          test ! -s conftest.err
14823        } && test -s conftest$ac_exeext && {
14824          test "$cross_compiling" = yes ||
14825          $as_test_x conftest$ac_exeext
14826        }; then
14827   eval "$as_ac_var=yes"
14828 else
14829   $as_echo "$as_me: failed program was:" >&5
14830 sed 's/^/| /' conftest.$ac_ext >&5
14832         eval "$as_ac_var=no"
14835 rm -rf conftest.dSYM
14836 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14837       conftest$ac_exeext conftest.$ac_ext
14839 ac_res=`eval 'as_val=${'$as_ac_var'}
14840                  $as_echo "$as_val"'`
14841                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14842 $as_echo "$ac_res" >&6; }
14843 as_val=`eval 'as_val=${'$as_ac_var'}
14844                  $as_echo "$as_val"'`
14845    if test "x$as_val" = x""yes; then
14846   cat >>confdefs.h <<_ACEOF
14847 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14848 _ACEOF
14851 done
14854 { $as_echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
14855 $as_echo_n "checking whether strerror_r is declared... " >&6; }
14856 if test "${ac_cv_have_decl_strerror_r+set}" = set; then
14857   $as_echo_n "(cached) " >&6
14858 else
14859   cat >conftest.$ac_ext <<_ACEOF
14860 /* confdefs.h.  */
14861 _ACEOF
14862 cat confdefs.h >>conftest.$ac_ext
14863 cat >>conftest.$ac_ext <<_ACEOF
14864 /* end confdefs.h.  */
14865 $ac_includes_default
14866 int
14867 main ()
14869 #ifndef strerror_r
14870   (void) strerror_r;
14871 #endif
14873   ;
14874   return 0;
14876 _ACEOF
14877 rm -f conftest.$ac_objext
14878 if { (ac_try="$ac_compile"
14879 case "(($ac_try" in
14880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14881   *) ac_try_echo=$ac_try;;
14882 esac
14883 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14884 $as_echo "$ac_try_echo") >&5
14885   (eval "$ac_compile") 2>conftest.er1
14886   ac_status=$?
14887   grep -v '^ *+' conftest.er1 >conftest.err
14888   rm -f conftest.er1
14889   cat conftest.err >&5
14890   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14891   (exit $ac_status); } && {
14892          test -z "$ac_c_werror_flag" ||
14893          test ! -s conftest.err
14894        } && test -s conftest.$ac_objext; then
14895   ac_cv_have_decl_strerror_r=yes
14896 else
14897   $as_echo "$as_me: failed program was:" >&5
14898 sed 's/^/| /' conftest.$ac_ext >&5
14900         ac_cv_have_decl_strerror_r=no
14903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14905 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
14906 $as_echo "$ac_cv_have_decl_strerror_r" >&6; }
14907 if test "x$ac_cv_have_decl_strerror_r" = x""yes; then
14909 cat >>confdefs.h <<_ACEOF
14910 #define HAVE_DECL_STRERROR_R 1
14911 _ACEOF
14914 else
14915   cat >>confdefs.h <<_ACEOF
14916 #define HAVE_DECL_STRERROR_R 0
14917 _ACEOF
14924 for ac_func in strerror_r
14926 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14927 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14928 $as_echo_n "checking for $ac_func... " >&6; }
14929 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14930   $as_echo_n "(cached) " >&6
14931 else
14932   cat >conftest.$ac_ext <<_ACEOF
14933 /* confdefs.h.  */
14934 _ACEOF
14935 cat confdefs.h >>conftest.$ac_ext
14936 cat >>conftest.$ac_ext <<_ACEOF
14937 /* end confdefs.h.  */
14938 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14939    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14940 #define $ac_func innocuous_$ac_func
14942 /* System header to define __stub macros and hopefully few prototypes,
14943     which can conflict with char $ac_func (); below.
14944     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14945     <limits.h> exists even on freestanding compilers.  */
14947 #ifdef __STDC__
14948 # include <limits.h>
14949 #else
14950 # include <assert.h>
14951 #endif
14953 #undef $ac_func
14955 /* Override any GCC internal prototype to avoid an error.
14956    Use char because int might match the return type of a GCC
14957    builtin and then its argument prototype would still apply.  */
14958 #ifdef __cplusplus
14959 extern "C"
14960 #endif
14961 char $ac_func ();
14962 /* The GNU C library defines this for functions which it implements
14963     to always fail with ENOSYS.  Some functions are actually named
14964     something starting with __ and the normal name is an alias.  */
14965 #if defined __stub_$ac_func || defined __stub___$ac_func
14966 choke me
14967 #endif
14969 int
14970 main ()
14972 return $ac_func ();
14973   ;
14974   return 0;
14976 _ACEOF
14977 rm -f conftest.$ac_objext conftest$ac_exeext
14978 if { (ac_try="$ac_link"
14979 case "(($ac_try" in
14980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14981   *) ac_try_echo=$ac_try;;
14982 esac
14983 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14984 $as_echo "$ac_try_echo") >&5
14985   (eval "$ac_link") 2>conftest.er1
14986   ac_status=$?
14987   grep -v '^ *+' conftest.er1 >conftest.err
14988   rm -f conftest.er1
14989   cat conftest.err >&5
14990   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14991   (exit $ac_status); } && {
14992          test -z "$ac_c_werror_flag" ||
14993          test ! -s conftest.err
14994        } && test -s conftest$ac_exeext && {
14995          test "$cross_compiling" = yes ||
14996          $as_test_x conftest$ac_exeext
14997        }; then
14998   eval "$as_ac_var=yes"
14999 else
15000   $as_echo "$as_me: failed program was:" >&5
15001 sed 's/^/| /' conftest.$ac_ext >&5
15003         eval "$as_ac_var=no"
15006 rm -rf conftest.dSYM
15007 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15008       conftest$ac_exeext conftest.$ac_ext
15010 ac_res=`eval 'as_val=${'$as_ac_var'}
15011                  $as_echo "$as_val"'`
15012                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15013 $as_echo "$ac_res" >&6; }
15014 as_val=`eval 'as_val=${'$as_ac_var'}
15015                  $as_echo "$as_val"'`
15016    if test "x$as_val" = x""yes; then
15017   cat >>confdefs.h <<_ACEOF
15018 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15019 _ACEOF
15022 done
15024 { $as_echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
15025 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
15026 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
15027   $as_echo_n "(cached) " >&6
15028 else
15030     ac_cv_func_strerror_r_char_p=no
15031     if test $ac_cv_have_decl_strerror_r = yes; then
15032       cat >conftest.$ac_ext <<_ACEOF
15033 /* confdefs.h.  */
15034 _ACEOF
15035 cat confdefs.h >>conftest.$ac_ext
15036 cat >>conftest.$ac_ext <<_ACEOF
15037 /* end confdefs.h.  */
15038 $ac_includes_default
15039 int
15040 main ()
15043           char buf[100];
15044           char x = *strerror_r (0, buf, sizeof buf);
15045           char *p = strerror_r (0, buf, sizeof buf);
15046           return !p || x;
15048   ;
15049   return 0;
15051 _ACEOF
15052 rm -f conftest.$ac_objext
15053 if { (ac_try="$ac_compile"
15054 case "(($ac_try" in
15055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15056   *) ac_try_echo=$ac_try;;
15057 esac
15058 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15059 $as_echo "$ac_try_echo") >&5
15060   (eval "$ac_compile") 2>conftest.er1
15061   ac_status=$?
15062   grep -v '^ *+' conftest.er1 >conftest.err
15063   rm -f conftest.er1
15064   cat conftest.err >&5
15065   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15066   (exit $ac_status); } && {
15067          test -z "$ac_c_werror_flag" ||
15068          test ! -s conftest.err
15069        } && test -s conftest.$ac_objext; then
15070   ac_cv_func_strerror_r_char_p=yes
15071 else
15072   $as_echo "$as_me: failed program was:" >&5
15073 sed 's/^/| /' conftest.$ac_ext >&5
15078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15079     else
15080       # strerror_r is not declared.  Choose between
15081       # systems that have relatively inaccessible declarations for the
15082       # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
15083       # former has a strerror_r that returns char*, while the latter
15084       # has a strerror_r that returns `int'.
15085       # This test should segfault on the DEC system.
15086       if test "$cross_compiling" = yes; then
15087   :
15088 else
15089   cat >conftest.$ac_ext <<_ACEOF
15090 /* confdefs.h.  */
15091 _ACEOF
15092 cat confdefs.h >>conftest.$ac_ext
15093 cat >>conftest.$ac_ext <<_ACEOF
15094 /* end confdefs.h.  */
15095 $ac_includes_default
15096         extern char *strerror_r ();
15097 int
15098 main ()
15100 char buf[100];
15101           char x = *strerror_r (0, buf, sizeof buf);
15102           return ! isalpha (x);
15103   ;
15104   return 0;
15106 _ACEOF
15107 rm -f conftest$ac_exeext
15108 if { (ac_try="$ac_link"
15109 case "(($ac_try" in
15110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15111   *) ac_try_echo=$ac_try;;
15112 esac
15113 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15114 $as_echo "$ac_try_echo") >&5
15115   (eval "$ac_link") 2>&5
15116   ac_status=$?
15117   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15118   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15119   { (case "(($ac_try" in
15120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15121   *) ac_try_echo=$ac_try;;
15122 esac
15123 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15124 $as_echo "$ac_try_echo") >&5
15125   (eval "$ac_try") 2>&5
15126   ac_status=$?
15127   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15128   (exit $ac_status); }; }; then
15129   ac_cv_func_strerror_r_char_p=yes
15130 else
15131   $as_echo "$as_me: program exited with status $ac_status" >&5
15132 $as_echo "$as_me: failed program was:" >&5
15133 sed 's/^/| /' conftest.$ac_ext >&5
15136 rm -rf conftest.dSYM
15137 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15141     fi
15144 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
15145 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
15146 if test $ac_cv_func_strerror_r_char_p = yes; then
15148 cat >>confdefs.h <<\_ACEOF
15149 #define STRERROR_R_CHAR_P 1
15150 _ACEOF
15156 case $TERM in
15157        #   for the most important terminal types we directly know the sequences
15158        xterm|xterm*|vt220|vt220*)
15159                T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
15160                T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
15161        ;;
15162        vt100|vt100*|cygwin)
15163                T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
15164                T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
15165        ;;
15166        *)
15167                T_MD=''
15168                T_ME=''
15169        ;;
15170 esac
15171   { $as_echo "$as_me:$LINENO: result: " >&5
15172 $as_echo "" >&6; }
15173   { $as_echo "$as_me:$LINENO: result: ${T_MD}Map/Fadvis/Madvise checking${T_ME}" >&5
15174 $as_echo "${T_MD}Map/Fadvis/Madvise checking${T_ME}" >&6; }
15180 for ac_func in fdatasync
15182 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15183 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
15184 $as_echo_n "checking for $ac_func... " >&6; }
15185 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15186   $as_echo_n "(cached) " >&6
15187 else
15188   cat >conftest.$ac_ext <<_ACEOF
15189 /* confdefs.h.  */
15190 _ACEOF
15191 cat confdefs.h >>conftest.$ac_ext
15192 cat >>conftest.$ac_ext <<_ACEOF
15193 /* end confdefs.h.  */
15194 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15195    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15196 #define $ac_func innocuous_$ac_func
15198 /* System header to define __stub macros and hopefully few prototypes,
15199     which can conflict with char $ac_func (); below.
15200     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15201     <limits.h> exists even on freestanding compilers.  */
15203 #ifdef __STDC__
15204 # include <limits.h>
15205 #else
15206 # include <assert.h>
15207 #endif
15209 #undef $ac_func
15211 /* Override any GCC internal prototype to avoid an error.
15212    Use char because int might match the return type of a GCC
15213    builtin and then its argument prototype would still apply.  */
15214 #ifdef __cplusplus
15215 extern "C"
15216 #endif
15217 char $ac_func ();
15218 /* The GNU C library defines this for functions which it implements
15219     to always fail with ENOSYS.  Some functions are actually named
15220     something starting with __ and the normal name is an alias.  */
15221 #if defined __stub_$ac_func || defined __stub___$ac_func
15222 choke me
15223 #endif
15225 int
15226 main ()
15228 return $ac_func ();
15229   ;
15230   return 0;
15232 _ACEOF
15233 rm -f conftest.$ac_objext conftest$ac_exeext
15234 if { (ac_try="$ac_link"
15235 case "(($ac_try" in
15236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15237   *) ac_try_echo=$ac_try;;
15238 esac
15239 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15240 $as_echo "$ac_try_echo") >&5
15241   (eval "$ac_link") 2>conftest.er1
15242   ac_status=$?
15243   grep -v '^ *+' conftest.er1 >conftest.err
15244   rm -f conftest.er1
15245   cat conftest.err >&5
15246   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15247   (exit $ac_status); } && {
15248          test -z "$ac_c_werror_flag" ||
15249          test ! -s conftest.err
15250        } && test -s conftest$ac_exeext && {
15251          test "$cross_compiling" = yes ||
15252          $as_test_x conftest$ac_exeext
15253        }; then
15254   eval "$as_ac_var=yes"
15255 else
15256   $as_echo "$as_me: failed program was:" >&5
15257 sed 's/^/| /' conftest.$ac_ext >&5
15259         eval "$as_ac_var=no"
15262 rm -rf conftest.dSYM
15263 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15264       conftest$ac_exeext conftest.$ac_ext
15266 ac_res=`eval 'as_val=${'$as_ac_var'}
15267                  $as_echo "$as_val"'`
15268                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15269 $as_echo "$ac_res" >&6; }
15270 as_val=`eval 'as_val=${'$as_ac_var'}
15271                  $as_echo "$as_val"'`
15272    if test "x$as_val" = x""yes; then
15273   cat >>confdefs.h <<_ACEOF
15274 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15275 _ACEOF
15277 else
15278   { $as_echo "$as_me:$LINENO: checking for fdatasync in -lrt" >&5
15279 $as_echo_n "checking for fdatasync in -lrt... " >&6; }
15280 if test "${ac_cv_lib_rt_fdatasync+set}" = set; then
15281   $as_echo_n "(cached) " >&6
15282 else
15283   ac_check_lib_save_LIBS=$LIBS
15284 LIBS="-lrt  $LIBS"
15285 cat >conftest.$ac_ext <<_ACEOF
15286 /* confdefs.h.  */
15287 _ACEOF
15288 cat confdefs.h >>conftest.$ac_ext
15289 cat >>conftest.$ac_ext <<_ACEOF
15290 /* end confdefs.h.  */
15292 /* Override any GCC internal prototype to avoid an error.
15293    Use char because int might match the return type of a GCC
15294    builtin and then its argument prototype would still apply.  */
15295 #ifdef __cplusplus
15296 extern "C"
15297 #endif
15298 char fdatasync ();
15299 int
15300 main ()
15302 return fdatasync ();
15303   ;
15304   return 0;
15306 _ACEOF
15307 rm -f conftest.$ac_objext conftest$ac_exeext
15308 if { (ac_try="$ac_link"
15309 case "(($ac_try" in
15310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15311   *) ac_try_echo=$ac_try;;
15312 esac
15313 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15314 $as_echo "$ac_try_echo") >&5
15315   (eval "$ac_link") 2>conftest.er1
15316   ac_status=$?
15317   grep -v '^ *+' conftest.er1 >conftest.err
15318   rm -f conftest.er1
15319   cat conftest.err >&5
15320   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15321   (exit $ac_status); } && {
15322          test -z "$ac_c_werror_flag" ||
15323          test ! -s conftest.err
15324        } && test -s conftest$ac_exeext && {
15325          test "$cross_compiling" = yes ||
15326          $as_test_x conftest$ac_exeext
15327        }; then
15328   ac_cv_lib_rt_fdatasync=yes
15329 else
15330   $as_echo "$as_me: failed program was:" >&5
15331 sed 's/^/| /' conftest.$ac_ext >&5
15333         ac_cv_lib_rt_fdatasync=no
15336 rm -rf conftest.dSYM
15337 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15338       conftest$ac_exeext conftest.$ac_ext
15339 LIBS=$ac_check_lib_save_LIBS
15341 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rt_fdatasync" >&5
15342 $as_echo "$ac_cv_lib_rt_fdatasync" >&6; }
15343 if test "x$ac_cv_lib_rt_fdatasync" = x""yes; then
15344   LIBS="${LIBS} -lrt"; cat >>confdefs.h <<\_ACEOF
15345 #define HAVE_FDATASYNC 1
15346 _ACEOF
15351 done
15354 for ac_func in fsync
15356 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15357 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
15358 $as_echo_n "checking for $ac_func... " >&6; }
15359 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15360   $as_echo_n "(cached) " >&6
15361 else
15362   cat >conftest.$ac_ext <<_ACEOF
15363 /* confdefs.h.  */
15364 _ACEOF
15365 cat confdefs.h >>conftest.$ac_ext
15366 cat >>conftest.$ac_ext <<_ACEOF
15367 /* end confdefs.h.  */
15368 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15369    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15370 #define $ac_func innocuous_$ac_func
15372 /* System header to define __stub macros and hopefully few prototypes,
15373     which can conflict with char $ac_func (); below.
15374     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15375     <limits.h> exists even on freestanding compilers.  */
15377 #ifdef __STDC__
15378 # include <limits.h>
15379 #else
15380 # include <assert.h>
15381 #endif
15383 #undef $ac_func
15385 /* Override any GCC internal prototype to avoid an error.
15386    Use char because int might match the return type of a GCC
15387    builtin and then its argument prototype would still apply.  */
15388 #ifdef __cplusplus
15389 extern "C"
15390 #endif
15391 char $ac_func ();
15392 /* The GNU C library defines this for functions which it implements
15393     to always fail with ENOSYS.  Some functions are actually named
15394     something starting with __ and the normal name is an alias.  */
15395 #if defined __stub_$ac_func || defined __stub___$ac_func
15396 choke me
15397 #endif
15399 int
15400 main ()
15402 return $ac_func ();
15403   ;
15404   return 0;
15406 _ACEOF
15407 rm -f conftest.$ac_objext conftest$ac_exeext
15408 if { (ac_try="$ac_link"
15409 case "(($ac_try" in
15410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15411   *) ac_try_echo=$ac_try;;
15412 esac
15413 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15414 $as_echo "$ac_try_echo") >&5
15415   (eval "$ac_link") 2>conftest.er1
15416   ac_status=$?
15417   grep -v '^ *+' conftest.er1 >conftest.err
15418   rm -f conftest.er1
15419   cat conftest.err >&5
15420   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15421   (exit $ac_status); } && {
15422          test -z "$ac_c_werror_flag" ||
15423          test ! -s conftest.err
15424        } && test -s conftest$ac_exeext && {
15425          test "$cross_compiling" = yes ||
15426          $as_test_x conftest$ac_exeext
15427        }; then
15428   eval "$as_ac_var=yes"
15429 else
15430   $as_echo "$as_me: failed program was:" >&5
15431 sed 's/^/| /' conftest.$ac_ext >&5
15433         eval "$as_ac_var=no"
15436 rm -rf conftest.dSYM
15437 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15438       conftest$ac_exeext conftest.$ac_ext
15440 ac_res=`eval 'as_val=${'$as_ac_var'}
15441                  $as_echo "$as_val"'`
15442                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15443 $as_echo "$ac_res" >&6; }
15444 as_val=`eval 'as_val=${'$as_ac_var'}
15445                  $as_echo "$as_val"'`
15446    if test "x$as_val" = x""yes; then
15447   cat >>confdefs.h <<_ACEOF
15448 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15449 _ACEOF
15452 done
15457 for ac_func in socket
15459 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15460 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
15461 $as_echo_n "checking for $ac_func... " >&6; }
15462 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15463   $as_echo_n "(cached) " >&6
15464 else
15465   cat >conftest.$ac_ext <<_ACEOF
15466 /* confdefs.h.  */
15467 _ACEOF
15468 cat confdefs.h >>conftest.$ac_ext
15469 cat >>conftest.$ac_ext <<_ACEOF
15470 /* end confdefs.h.  */
15471 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15472    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15473 #define $ac_func innocuous_$ac_func
15475 /* System header to define __stub macros and hopefully few prototypes,
15476     which can conflict with char $ac_func (); below.
15477     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15478     <limits.h> exists even on freestanding compilers.  */
15480 #ifdef __STDC__
15481 # include <limits.h>
15482 #else
15483 # include <assert.h>
15484 #endif
15486 #undef $ac_func
15488 /* Override any GCC internal prototype to avoid an error.
15489    Use char because int might match the return type of a GCC
15490    builtin and then its argument prototype would still apply.  */
15491 #ifdef __cplusplus
15492 extern "C"
15493 #endif
15494 char $ac_func ();
15495 /* The GNU C library defines this for functions which it implements
15496     to always fail with ENOSYS.  Some functions are actually named
15497     something starting with __ and the normal name is an alias.  */
15498 #if defined __stub_$ac_func || defined __stub___$ac_func
15499 choke me
15500 #endif
15502 int
15503 main ()
15505 return $ac_func ();
15506   ;
15507   return 0;
15509 _ACEOF
15510 rm -f conftest.$ac_objext conftest$ac_exeext
15511 if { (ac_try="$ac_link"
15512 case "(($ac_try" in
15513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15514   *) ac_try_echo=$ac_try;;
15515 esac
15516 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15517 $as_echo "$ac_try_echo") >&5
15518   (eval "$ac_link") 2>conftest.er1
15519   ac_status=$?
15520   grep -v '^ *+' conftest.er1 >conftest.err
15521   rm -f conftest.er1
15522   cat conftest.err >&5
15523   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15524   (exit $ac_status); } && {
15525          test -z "$ac_c_werror_flag" ||
15526          test ! -s conftest.err
15527        } && test -s conftest$ac_exeext && {
15528          test "$cross_compiling" = yes ||
15529          $as_test_x conftest$ac_exeext
15530        }; then
15531   eval "$as_ac_var=yes"
15532 else
15533   $as_echo "$as_me: failed program was:" >&5
15534 sed 's/^/| /' conftest.$ac_ext >&5
15536         eval "$as_ac_var=no"
15539 rm -rf conftest.dSYM
15540 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15541       conftest$ac_exeext conftest.$ac_ext
15543 ac_res=`eval 'as_val=${'$as_ac_var'}
15544                  $as_echo "$as_val"'`
15545                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15546 $as_echo "$ac_res" >&6; }
15547 as_val=`eval 'as_val=${'$as_ac_var'}
15548                  $as_echo "$as_val"'`
15549    if test "x$as_val" = x""yes; then
15550   cat >>confdefs.h <<_ACEOF
15551 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15552 _ACEOF
15554 else
15555   { $as_echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
15556 $as_echo_n "checking for socket in -lsocket... " >&6; }
15557 if test "${ac_cv_lib_socket_socket+set}" = set; then
15558   $as_echo_n "(cached) " >&6
15559 else
15560   ac_check_lib_save_LIBS=$LIBS
15561 LIBS="-lsocket  $LIBS"
15562 cat >conftest.$ac_ext <<_ACEOF
15563 /* confdefs.h.  */
15564 _ACEOF
15565 cat confdefs.h >>conftest.$ac_ext
15566 cat >>conftest.$ac_ext <<_ACEOF
15567 /* end confdefs.h.  */
15569 /* Override any GCC internal prototype to avoid an error.
15570    Use char because int might match the return type of a GCC
15571    builtin and then its argument prototype would still apply.  */
15572 #ifdef __cplusplus
15573 extern "C"
15574 #endif
15575 char socket ();
15576 int
15577 main ()
15579 return socket ();
15580   ;
15581   return 0;
15583 _ACEOF
15584 rm -f conftest.$ac_objext conftest$ac_exeext
15585 if { (ac_try="$ac_link"
15586 case "(($ac_try" in
15587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15588   *) ac_try_echo=$ac_try;;
15589 esac
15590 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15591 $as_echo "$ac_try_echo") >&5
15592   (eval "$ac_link") 2>conftest.er1
15593   ac_status=$?
15594   grep -v '^ *+' conftest.er1 >conftest.err
15595   rm -f conftest.er1
15596   cat conftest.err >&5
15597   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15598   (exit $ac_status); } && {
15599          test -z "$ac_c_werror_flag" ||
15600          test ! -s conftest.err
15601        } && test -s conftest$ac_exeext && {
15602          test "$cross_compiling" = yes ||
15603          $as_test_x conftest$ac_exeext
15604        }; then
15605   ac_cv_lib_socket_socket=yes
15606 else
15607   $as_echo "$as_me: failed program was:" >&5
15608 sed 's/^/| /' conftest.$ac_ext >&5
15610         ac_cv_lib_socket_socket=no
15613 rm -rf conftest.dSYM
15614 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15615       conftest$ac_exeext conftest.$ac_ext
15616 LIBS=$ac_check_lib_save_LIBS
15618 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
15619 $as_echo "$ac_cv_lib_socket_socket" >&6; }
15620 if test "x$ac_cv_lib_socket_socket" = x""yes; then
15621   LIBS="${LIBS} -lsocket"; cat >>confdefs.h <<\_ACEOF
15622 #define HAVE_SOCKET 1
15623 _ACEOF
15628 done
15631 for ac_func in getaddrinfo
15633 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15634 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
15635 $as_echo_n "checking for $ac_func... " >&6; }
15636 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15637   $as_echo_n "(cached) " >&6
15638 else
15639   cat >conftest.$ac_ext <<_ACEOF
15640 /* confdefs.h.  */
15641 _ACEOF
15642 cat confdefs.h >>conftest.$ac_ext
15643 cat >>conftest.$ac_ext <<_ACEOF
15644 /* end confdefs.h.  */
15645 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15646    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15647 #define $ac_func innocuous_$ac_func
15649 /* System header to define __stub macros and hopefully few prototypes,
15650     which can conflict with char $ac_func (); below.
15651     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15652     <limits.h> exists even on freestanding compilers.  */
15654 #ifdef __STDC__
15655 # include <limits.h>
15656 #else
15657 # include <assert.h>
15658 #endif
15660 #undef $ac_func
15662 /* Override any GCC internal prototype to avoid an error.
15663    Use char because int might match the return type of a GCC
15664    builtin and then its argument prototype would still apply.  */
15665 #ifdef __cplusplus
15666 extern "C"
15667 #endif
15668 char $ac_func ();
15669 /* The GNU C library defines this for functions which it implements
15670     to always fail with ENOSYS.  Some functions are actually named
15671     something starting with __ and the normal name is an alias.  */
15672 #if defined __stub_$ac_func || defined __stub___$ac_func
15673 choke me
15674 #endif
15676 int
15677 main ()
15679 return $ac_func ();
15680   ;
15681   return 0;
15683 _ACEOF
15684 rm -f conftest.$ac_objext conftest$ac_exeext
15685 if { (ac_try="$ac_link"
15686 case "(($ac_try" in
15687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15688   *) ac_try_echo=$ac_try;;
15689 esac
15690 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15691 $as_echo "$ac_try_echo") >&5
15692   (eval "$ac_link") 2>conftest.er1
15693   ac_status=$?
15694   grep -v '^ *+' conftest.er1 >conftest.err
15695   rm -f conftest.er1
15696   cat conftest.err >&5
15697   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15698   (exit $ac_status); } && {
15699          test -z "$ac_c_werror_flag" ||
15700          test ! -s conftest.err
15701        } && test -s conftest$ac_exeext && {
15702          test "$cross_compiling" = yes ||
15703          $as_test_x conftest$ac_exeext
15704        }; then
15705   eval "$as_ac_var=yes"
15706 else
15707   $as_echo "$as_me: failed program was:" >&5
15708 sed 's/^/| /' conftest.$ac_ext >&5
15710         eval "$as_ac_var=no"
15713 rm -rf conftest.dSYM
15714 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15715       conftest$ac_exeext conftest.$ac_ext
15717 ac_res=`eval 'as_val=${'$as_ac_var'}
15718                  $as_echo "$as_val"'`
15719                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15720 $as_echo "$ac_res" >&6; }
15721 as_val=`eval 'as_val=${'$as_ac_var'}
15722                  $as_echo "$as_val"'`
15723    if test "x$as_val" = x""yes; then
15724   cat >>confdefs.h <<_ACEOF
15725 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15726 _ACEOF
15728 else
15729   { $as_echo "$as_me:$LINENO: checking for getaddrinfo in -lnsl" >&5
15730 $as_echo_n "checking for getaddrinfo in -lnsl... " >&6; }
15731 if test "${ac_cv_lib_nsl_getaddrinfo+set}" = set; then
15732   $as_echo_n "(cached) " >&6
15733 else
15734   ac_check_lib_save_LIBS=$LIBS
15735 LIBS="-lnsl  $LIBS"
15736 cat >conftest.$ac_ext <<_ACEOF
15737 /* confdefs.h.  */
15738 _ACEOF
15739 cat confdefs.h >>conftest.$ac_ext
15740 cat >>conftest.$ac_ext <<_ACEOF
15741 /* end confdefs.h.  */
15743 /* Override any GCC internal prototype to avoid an error.
15744    Use char because int might match the return type of a GCC
15745    builtin and then its argument prototype would still apply.  */
15746 #ifdef __cplusplus
15747 extern "C"
15748 #endif
15749 char getaddrinfo ();
15750 int
15751 main ()
15753 return getaddrinfo ();
15754   ;
15755   return 0;
15757 _ACEOF
15758 rm -f conftest.$ac_objext conftest$ac_exeext
15759 if { (ac_try="$ac_link"
15760 case "(($ac_try" in
15761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15762   *) ac_try_echo=$ac_try;;
15763 esac
15764 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15765 $as_echo "$ac_try_echo") >&5
15766   (eval "$ac_link") 2>conftest.er1
15767   ac_status=$?
15768   grep -v '^ *+' conftest.er1 >conftest.err
15769   rm -f conftest.er1
15770   cat conftest.err >&5
15771   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15772   (exit $ac_status); } && {
15773          test -z "$ac_c_werror_flag" ||
15774          test ! -s conftest.err
15775        } && test -s conftest$ac_exeext && {
15776          test "$cross_compiling" = yes ||
15777          $as_test_x conftest$ac_exeext
15778        }; then
15779   ac_cv_lib_nsl_getaddrinfo=yes
15780 else
15781   $as_echo "$as_me: failed program was:" >&5
15782 sed 's/^/| /' conftest.$ac_ext >&5
15784         ac_cv_lib_nsl_getaddrinfo=no
15787 rm -rf conftest.dSYM
15788 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15789       conftest$ac_exeext conftest.$ac_ext
15790 LIBS=$ac_check_lib_save_LIBS
15792 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_getaddrinfo" >&5
15793 $as_echo "$ac_cv_lib_nsl_getaddrinfo" >&6; }
15794 if test "x$ac_cv_lib_nsl_getaddrinfo" = x""yes; then
15795   LIBS="${LIBS} -lnsl"; cat >>confdefs.h <<\_ACEOF
15796 #define HAVE_GETADDRINFO 1
15797 _ACEOF
15802 done
15807 if test "x$enable_mmap" = "xyes"; then
15808   case "$host" in
15809   *cygwin*)
15810     # the normal mmap test does not work in cygwin
15812 for ac_func in mmap
15814 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15815 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
15816 $as_echo_n "checking for $ac_func... " >&6; }
15817 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15818   $as_echo_n "(cached) " >&6
15819 else
15820   cat >conftest.$ac_ext <<_ACEOF
15821 /* confdefs.h.  */
15822 _ACEOF
15823 cat confdefs.h >>conftest.$ac_ext
15824 cat >>conftest.$ac_ext <<_ACEOF
15825 /* end confdefs.h.  */
15826 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15827    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15828 #define $ac_func innocuous_$ac_func
15830 /* System header to define __stub macros and hopefully few prototypes,
15831     which can conflict with char $ac_func (); below.
15832     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15833     <limits.h> exists even on freestanding compilers.  */
15835 #ifdef __STDC__
15836 # include <limits.h>
15837 #else
15838 # include <assert.h>
15839 #endif
15841 #undef $ac_func
15843 /* Override any GCC internal prototype to avoid an error.
15844    Use char because int might match the return type of a GCC
15845    builtin and then its argument prototype would still apply.  */
15846 #ifdef __cplusplus
15847 extern "C"
15848 #endif
15849 char $ac_func ();
15850 /* The GNU C library defines this for functions which it implements
15851     to always fail with ENOSYS.  Some functions are actually named
15852     something starting with __ and the normal name is an alias.  */
15853 #if defined __stub_$ac_func || defined __stub___$ac_func
15854 choke me
15855 #endif
15857 int
15858 main ()
15860 return $ac_func ();
15861   ;
15862   return 0;
15864 _ACEOF
15865 rm -f conftest.$ac_objext conftest$ac_exeext
15866 if { (ac_try="$ac_link"
15867 case "(($ac_try" in
15868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15869   *) ac_try_echo=$ac_try;;
15870 esac
15871 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15872 $as_echo "$ac_try_echo") >&5
15873   (eval "$ac_link") 2>conftest.er1
15874   ac_status=$?
15875   grep -v '^ *+' conftest.er1 >conftest.err
15876   rm -f conftest.er1
15877   cat conftest.err >&5
15878   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15879   (exit $ac_status); } && {
15880          test -z "$ac_c_werror_flag" ||
15881          test ! -s conftest.err
15882        } && test -s conftest$ac_exeext && {
15883          test "$cross_compiling" = yes ||
15884          $as_test_x conftest$ac_exeext
15885        }; then
15886   eval "$as_ac_var=yes"
15887 else
15888   $as_echo "$as_me: failed program was:" >&5
15889 sed 's/^/| /' conftest.$ac_ext >&5
15891         eval "$as_ac_var=no"
15894 rm -rf conftest.dSYM
15895 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15896       conftest$ac_exeext conftest.$ac_ext
15898 ac_res=`eval 'as_val=${'$as_ac_var'}
15899                  $as_echo "$as_val"'`
15900                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15901 $as_echo "$ac_res" >&6; }
15902 as_val=`eval 'as_val=${'$as_ac_var'}
15903                  $as_echo "$as_val"'`
15904    if test "x$as_val" = x""yes; then
15905   cat >>confdefs.h <<_ACEOF
15906 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15907 _ACEOF
15910 done
15912     if test "x$ac_cv_func_mmap" = "xyes"; then
15913       ac_cv_func_mmap_fixed_mapped=yes
15914     fi
15915   ;;
15916   *)
15918 for ac_header in sys/mman.h
15920 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15921 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15922   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15923 $as_echo_n "checking for $ac_header... " >&6; }
15924 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15925   $as_echo_n "(cached) " >&6
15927 ac_res=`eval 'as_val=${'$as_ac_Header'}
15928                  $as_echo "$as_val"'`
15929                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15930 $as_echo "$ac_res" >&6; }
15931 else
15932   # Is the header compilable?
15933 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15934 $as_echo_n "checking $ac_header usability... " >&6; }
15935 cat >conftest.$ac_ext <<_ACEOF
15936 /* confdefs.h.  */
15937 _ACEOF
15938 cat confdefs.h >>conftest.$ac_ext
15939 cat >>conftest.$ac_ext <<_ACEOF
15940 /* end confdefs.h.  */
15941 $ac_includes_default
15942 #include <$ac_header>
15943 _ACEOF
15944 rm -f conftest.$ac_objext
15945 if { (ac_try="$ac_compile"
15946 case "(($ac_try" in
15947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15948   *) ac_try_echo=$ac_try;;
15949 esac
15950 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15951 $as_echo "$ac_try_echo") >&5
15952   (eval "$ac_compile") 2>conftest.er1
15953   ac_status=$?
15954   grep -v '^ *+' conftest.er1 >conftest.err
15955   rm -f conftest.er1
15956   cat conftest.err >&5
15957   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15958   (exit $ac_status); } && {
15959          test -z "$ac_c_werror_flag" ||
15960          test ! -s conftest.err
15961        } && test -s conftest.$ac_objext; then
15962   ac_header_compiler=yes
15963 else
15964   $as_echo "$as_me: failed program was:" >&5
15965 sed 's/^/| /' conftest.$ac_ext >&5
15967         ac_header_compiler=no
15970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15971 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15972 $as_echo "$ac_header_compiler" >&6; }
15974 # Is the header present?
15975 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15976 $as_echo_n "checking $ac_header presence... " >&6; }
15977 cat >conftest.$ac_ext <<_ACEOF
15978 /* confdefs.h.  */
15979 _ACEOF
15980 cat confdefs.h >>conftest.$ac_ext
15981 cat >>conftest.$ac_ext <<_ACEOF
15982 /* end confdefs.h.  */
15983 #include <$ac_header>
15984 _ACEOF
15985 if { (ac_try="$ac_cpp conftest.$ac_ext"
15986 case "(($ac_try" in
15987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15988   *) ac_try_echo=$ac_try;;
15989 esac
15990 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15991 $as_echo "$ac_try_echo") >&5
15992   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15993   ac_status=$?
15994   grep -v '^ *+' conftest.er1 >conftest.err
15995   rm -f conftest.er1
15996   cat conftest.err >&5
15997   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15998   (exit $ac_status); } >/dev/null && {
15999          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16000          test ! -s conftest.err
16001        }; then
16002   ac_header_preproc=yes
16003 else
16004   $as_echo "$as_me: failed program was:" >&5
16005 sed 's/^/| /' conftest.$ac_ext >&5
16007   ac_header_preproc=no
16010 rm -f conftest.err conftest.$ac_ext
16011 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16012 $as_echo "$ac_header_preproc" >&6; }
16014 # So?  What about this header?
16015 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16016   yes:no: )
16017     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16018 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16019     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16020 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16021     ac_header_preproc=yes
16022     ;;
16023   no:yes:* )
16024     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16025 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16026     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16027 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16028     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16029 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16030     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16031 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16032     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16033 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16034     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16035 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16037     ;;
16038 esac
16039 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16040 $as_echo_n "checking for $ac_header... " >&6; }
16041 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16042   $as_echo_n "(cached) " >&6
16043 else
16044   eval "$as_ac_Header=\$ac_header_preproc"
16046 ac_res=`eval 'as_val=${'$as_ac_Header'}
16047                  $as_echo "$as_val"'`
16048                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16049 $as_echo "$ac_res" >&6; }
16052 as_val=`eval 'as_val=${'$as_ac_Header'}
16053                  $as_echo "$as_val"'`
16054    if test "x$as_val" = x""yes; then
16055   cat >>confdefs.h <<_ACEOF
16056 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16057 _ACEOF
16061 done
16065 for ac_header in stdlib.h unistd.h
16067 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16068 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16069   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16070 $as_echo_n "checking for $ac_header... " >&6; }
16071 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16072   $as_echo_n "(cached) " >&6
16074 ac_res=`eval 'as_val=${'$as_ac_Header'}
16075                  $as_echo "$as_val"'`
16076                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16077 $as_echo "$ac_res" >&6; }
16078 else
16079   # Is the header compilable?
16080 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16081 $as_echo_n "checking $ac_header usability... " >&6; }
16082 cat >conftest.$ac_ext <<_ACEOF
16083 /* confdefs.h.  */
16084 _ACEOF
16085 cat confdefs.h >>conftest.$ac_ext
16086 cat >>conftest.$ac_ext <<_ACEOF
16087 /* end confdefs.h.  */
16088 $ac_includes_default
16089 #include <$ac_header>
16090 _ACEOF
16091 rm -f conftest.$ac_objext
16092 if { (ac_try="$ac_compile"
16093 case "(($ac_try" in
16094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16095   *) ac_try_echo=$ac_try;;
16096 esac
16097 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16098 $as_echo "$ac_try_echo") >&5
16099   (eval "$ac_compile") 2>conftest.er1
16100   ac_status=$?
16101   grep -v '^ *+' conftest.er1 >conftest.err
16102   rm -f conftest.er1
16103   cat conftest.err >&5
16104   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16105   (exit $ac_status); } && {
16106          test -z "$ac_c_werror_flag" ||
16107          test ! -s conftest.err
16108        } && test -s conftest.$ac_objext; then
16109   ac_header_compiler=yes
16110 else
16111   $as_echo "$as_me: failed program was:" >&5
16112 sed 's/^/| /' conftest.$ac_ext >&5
16114         ac_header_compiler=no
16117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16118 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16119 $as_echo "$ac_header_compiler" >&6; }
16121 # Is the header present?
16122 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16123 $as_echo_n "checking $ac_header presence... " >&6; }
16124 cat >conftest.$ac_ext <<_ACEOF
16125 /* confdefs.h.  */
16126 _ACEOF
16127 cat confdefs.h >>conftest.$ac_ext
16128 cat >>conftest.$ac_ext <<_ACEOF
16129 /* end confdefs.h.  */
16130 #include <$ac_header>
16131 _ACEOF
16132 if { (ac_try="$ac_cpp conftest.$ac_ext"
16133 case "(($ac_try" in
16134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16135   *) ac_try_echo=$ac_try;;
16136 esac
16137 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16138 $as_echo "$ac_try_echo") >&5
16139   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16140   ac_status=$?
16141   grep -v '^ *+' conftest.er1 >conftest.err
16142   rm -f conftest.er1
16143   cat conftest.err >&5
16144   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16145   (exit $ac_status); } >/dev/null && {
16146          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16147          test ! -s conftest.err
16148        }; then
16149   ac_header_preproc=yes
16150 else
16151   $as_echo "$as_me: failed program was:" >&5
16152 sed 's/^/| /' conftest.$ac_ext >&5
16154   ac_header_preproc=no
16157 rm -f conftest.err conftest.$ac_ext
16158 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16159 $as_echo "$ac_header_preproc" >&6; }
16161 # So?  What about this header?
16162 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16163   yes:no: )
16164     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16165 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16166     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16167 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16168     ac_header_preproc=yes
16169     ;;
16170   no:yes:* )
16171     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16172 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16173     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16174 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16175     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16176 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16177     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16178 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16179     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16180 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16181     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16182 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16184     ;;
16185 esac
16186 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16187 $as_echo_n "checking for $ac_header... " >&6; }
16188 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16189   $as_echo_n "(cached) " >&6
16190 else
16191   eval "$as_ac_Header=\$ac_header_preproc"
16193 ac_res=`eval 'as_val=${'$as_ac_Header'}
16194                  $as_echo "$as_val"'`
16195                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16196 $as_echo "$ac_res" >&6; }
16199 as_val=`eval 'as_val=${'$as_ac_Header'}
16200                  $as_echo "$as_val"'`
16201    if test "x$as_val" = x""yes; then
16202   cat >>confdefs.h <<_ACEOF
16203 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16204 _ACEOF
16208 done
16211 for ac_func in getpagesize
16213 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16214 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16215 $as_echo_n "checking for $ac_func... " >&6; }
16216 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16217   $as_echo_n "(cached) " >&6
16218 else
16219   cat >conftest.$ac_ext <<_ACEOF
16220 /* confdefs.h.  */
16221 _ACEOF
16222 cat confdefs.h >>conftest.$ac_ext
16223 cat >>conftest.$ac_ext <<_ACEOF
16224 /* end confdefs.h.  */
16225 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16226    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16227 #define $ac_func innocuous_$ac_func
16229 /* System header to define __stub macros and hopefully few prototypes,
16230     which can conflict with char $ac_func (); below.
16231     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16232     <limits.h> exists even on freestanding compilers.  */
16234 #ifdef __STDC__
16235 # include <limits.h>
16236 #else
16237 # include <assert.h>
16238 #endif
16240 #undef $ac_func
16242 /* Override any GCC internal prototype to avoid an error.
16243    Use char because int might match the return type of a GCC
16244    builtin and then its argument prototype would still apply.  */
16245 #ifdef __cplusplus
16246 extern "C"
16247 #endif
16248 char $ac_func ();
16249 /* The GNU C library defines this for functions which it implements
16250     to always fail with ENOSYS.  Some functions are actually named
16251     something starting with __ and the normal name is an alias.  */
16252 #if defined __stub_$ac_func || defined __stub___$ac_func
16253 choke me
16254 #endif
16256 int
16257 main ()
16259 return $ac_func ();
16260   ;
16261   return 0;
16263 _ACEOF
16264 rm -f conftest.$ac_objext conftest$ac_exeext
16265 if { (ac_try="$ac_link"
16266 case "(($ac_try" in
16267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16268   *) ac_try_echo=$ac_try;;
16269 esac
16270 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16271 $as_echo "$ac_try_echo") >&5
16272   (eval "$ac_link") 2>conftest.er1
16273   ac_status=$?
16274   grep -v '^ *+' conftest.er1 >conftest.err
16275   rm -f conftest.er1
16276   cat conftest.err >&5
16277   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16278   (exit $ac_status); } && {
16279          test -z "$ac_c_werror_flag" ||
16280          test ! -s conftest.err
16281        } && test -s conftest$ac_exeext && {
16282          test "$cross_compiling" = yes ||
16283          $as_test_x conftest$ac_exeext
16284        }; then
16285   eval "$as_ac_var=yes"
16286 else
16287   $as_echo "$as_me: failed program was:" >&5
16288 sed 's/^/| /' conftest.$ac_ext >&5
16290         eval "$as_ac_var=no"
16293 rm -rf conftest.dSYM
16294 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16295       conftest$ac_exeext conftest.$ac_ext
16297 ac_res=`eval 'as_val=${'$as_ac_var'}
16298                  $as_echo "$as_val"'`
16299                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16300 $as_echo "$ac_res" >&6; }
16301 as_val=`eval 'as_val=${'$as_ac_var'}
16302                  $as_echo "$as_val"'`
16303    if test "x$as_val" = x""yes; then
16304   cat >>confdefs.h <<_ACEOF
16305 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16306 _ACEOF
16309 done
16311 { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
16312 $as_echo_n "checking for working mmap... " >&6; }
16313 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
16314   $as_echo_n "(cached) " >&6
16315 else
16316   if test "$cross_compiling" = yes; then
16317   ac_cv_func_mmap_fixed_mapped=no
16318 else
16319   cat >conftest.$ac_ext <<_ACEOF
16320 /* confdefs.h.  */
16321 _ACEOF
16322 cat confdefs.h >>conftest.$ac_ext
16323 cat >>conftest.$ac_ext <<_ACEOF
16324 /* end confdefs.h.  */
16325 $ac_includes_default
16326 /* malloc might have been renamed as rpl_malloc. */
16327 #undef malloc
16329 /* Thanks to Mike Haertel and Jim Avera for this test.
16330    Here is a matrix of mmap possibilities:
16331         mmap private not fixed
16332         mmap private fixed at somewhere currently unmapped
16333         mmap private fixed at somewhere already mapped
16334         mmap shared not fixed
16335         mmap shared fixed at somewhere currently unmapped
16336         mmap shared fixed at somewhere already mapped
16337    For private mappings, we should verify that changes cannot be read()
16338    back from the file, nor mmap's back from the file at a different
16339    address.  (There have been systems where private was not correctly
16340    implemented like the infamous i386 svr4.0, and systems where the
16341    VM page cache was not coherent with the file system buffer cache
16342    like early versions of FreeBSD and possibly contemporary NetBSD.)
16343    For shared mappings, we should conversely verify that changes get
16344    propagated back to all the places they're supposed to be.
16346    Grep wants private fixed already mapped.
16347    The main things grep needs to know about mmap are:
16348    * does it exist and is it safe to write into the mmap'd area
16349    * how to use it (BSD variants)  */
16351 #include <fcntl.h>
16352 #include <sys/mman.h>
16354 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
16355 char *malloc ();
16356 #endif
16358 /* This mess was copied from the GNU getpagesize.h.  */
16359 #ifndef HAVE_GETPAGESIZE
16360 /* Assume that all systems that can run configure have sys/param.h.  */
16361 # ifndef HAVE_SYS_PARAM_H
16362 #  define HAVE_SYS_PARAM_H 1
16363 # endif
16365 # ifdef _SC_PAGESIZE
16366 #  define getpagesize() sysconf(_SC_PAGESIZE)
16367 # else /* no _SC_PAGESIZE */
16368 #  ifdef HAVE_SYS_PARAM_H
16369 #   include <sys/param.h>
16370 #   ifdef EXEC_PAGESIZE
16371 #    define getpagesize() EXEC_PAGESIZE
16372 #   else /* no EXEC_PAGESIZE */
16373 #    ifdef NBPG
16374 #     define getpagesize() NBPG * CLSIZE
16375 #     ifndef CLSIZE
16376 #      define CLSIZE 1
16377 #     endif /* no CLSIZE */
16378 #    else /* no NBPG */
16379 #     ifdef NBPC
16380 #      define getpagesize() NBPC
16381 #     else /* no NBPC */
16382 #      ifdef PAGESIZE
16383 #       define getpagesize() PAGESIZE
16384 #      endif /* PAGESIZE */
16385 #     endif /* no NBPC */
16386 #    endif /* no NBPG */
16387 #   endif /* no EXEC_PAGESIZE */
16388 #  else /* no HAVE_SYS_PARAM_H */
16389 #   define getpagesize() 8192   /* punt totally */
16390 #  endif /* no HAVE_SYS_PARAM_H */
16391 # endif /* no _SC_PAGESIZE */
16393 #endif /* no HAVE_GETPAGESIZE */
16395 int
16396 main ()
16398   char *data, *data2, *data3;
16399   int i, pagesize;
16400   int fd;
16402   pagesize = getpagesize ();
16404   /* First, make a file with some known garbage in it. */
16405   data = (char *) malloc (pagesize);
16406   if (!data)
16407     return 1;
16408   for (i = 0; i < pagesize; ++i)
16409     *(data + i) = rand ();
16410   umask (0);
16411   fd = creat ("conftest.mmap", 0600);
16412   if (fd < 0)
16413     return 1;
16414   if (write (fd, data, pagesize) != pagesize)
16415     return 1;
16416   close (fd);
16418   /* Next, try to mmap the file at a fixed address which already has
16419      something else allocated at it.  If we can, also make sure that
16420      we see the same garbage.  */
16421   fd = open ("conftest.mmap", O_RDWR);
16422   if (fd < 0)
16423     return 1;
16424   data2 = (char *) malloc (2 * pagesize);
16425   if (!data2)
16426     return 1;
16427   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
16428   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
16429                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
16430     return 1;
16431   for (i = 0; i < pagesize; ++i)
16432     if (*(data + i) != *(data2 + i))
16433       return 1;
16435   /* Finally, make sure that changes to the mapped area do not
16436      percolate back to the file as seen by read().  (This is a bug on
16437      some variants of i386 svr4.0.)  */
16438   for (i = 0; i < pagesize; ++i)
16439     *(data2 + i) = *(data2 + i) + 1;
16440   data3 = (char *) malloc (pagesize);
16441   if (!data3)
16442     return 1;
16443   if (read (fd, data3, pagesize) != pagesize)
16444     return 1;
16445   for (i = 0; i < pagesize; ++i)
16446     if (*(data + i) != *(data3 + i))
16447       return 1;
16448   close (fd);
16449   return 0;
16451 _ACEOF
16452 rm -f conftest$ac_exeext
16453 if { (ac_try="$ac_link"
16454 case "(($ac_try" in
16455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16456   *) ac_try_echo=$ac_try;;
16457 esac
16458 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16459 $as_echo "$ac_try_echo") >&5
16460   (eval "$ac_link") 2>&5
16461   ac_status=$?
16462   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16463   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16464   { (case "(($ac_try" in
16465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16466   *) ac_try_echo=$ac_try;;
16467 esac
16468 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16469 $as_echo "$ac_try_echo") >&5
16470   (eval "$ac_try") 2>&5
16471   ac_status=$?
16472   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16473   (exit $ac_status); }; }; then
16474   ac_cv_func_mmap_fixed_mapped=yes
16475 else
16476   $as_echo "$as_me: program exited with status $ac_status" >&5
16477 $as_echo "$as_me: failed program was:" >&5
16478 sed 's/^/| /' conftest.$ac_ext >&5
16480 ( exit $ac_status )
16481 ac_cv_func_mmap_fixed_mapped=no
16483 rm -rf conftest.dSYM
16484 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16489 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
16490 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
16491 if test $ac_cv_func_mmap_fixed_mapped = yes; then
16493 cat >>confdefs.h <<\_ACEOF
16494 #define HAVE_MMAP 1
16495 _ACEOF
16498 rm -f conftest.mmap
16503 for ac_func in mmap munmap msync
16505 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16506 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16507 $as_echo_n "checking for $ac_func... " >&6; }
16508 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16509   $as_echo_n "(cached) " >&6
16510 else
16511   cat >conftest.$ac_ext <<_ACEOF
16512 /* confdefs.h.  */
16513 _ACEOF
16514 cat confdefs.h >>conftest.$ac_ext
16515 cat >>conftest.$ac_ext <<_ACEOF
16516 /* end confdefs.h.  */
16517 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16518    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16519 #define $ac_func innocuous_$ac_func
16521 /* System header to define __stub macros and hopefully few prototypes,
16522     which can conflict with char $ac_func (); below.
16523     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16524     <limits.h> exists even on freestanding compilers.  */
16526 #ifdef __STDC__
16527 # include <limits.h>
16528 #else
16529 # include <assert.h>
16530 #endif
16532 #undef $ac_func
16534 /* Override any GCC internal prototype to avoid an error.
16535    Use char because int might match the return type of a GCC
16536    builtin and then its argument prototype would still apply.  */
16537 #ifdef __cplusplus
16538 extern "C"
16539 #endif
16540 char $ac_func ();
16541 /* The GNU C library defines this for functions which it implements
16542     to always fail with ENOSYS.  Some functions are actually named
16543     something starting with __ and the normal name is an alias.  */
16544 #if defined __stub_$ac_func || defined __stub___$ac_func
16545 choke me
16546 #endif
16548 int
16549 main ()
16551 return $ac_func ();
16552   ;
16553   return 0;
16555 _ACEOF
16556 rm -f conftest.$ac_objext conftest$ac_exeext
16557 if { (ac_try="$ac_link"
16558 case "(($ac_try" in
16559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16560   *) ac_try_echo=$ac_try;;
16561 esac
16562 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16563 $as_echo "$ac_try_echo") >&5
16564   (eval "$ac_link") 2>conftest.er1
16565   ac_status=$?
16566   grep -v '^ *+' conftest.er1 >conftest.err
16567   rm -f conftest.er1
16568   cat conftest.err >&5
16569   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16570   (exit $ac_status); } && {
16571          test -z "$ac_c_werror_flag" ||
16572          test ! -s conftest.err
16573        } && test -s conftest$ac_exeext && {
16574          test "$cross_compiling" = yes ||
16575          $as_test_x conftest$ac_exeext
16576        }; then
16577   eval "$as_ac_var=yes"
16578 else
16579   $as_echo "$as_me: failed program was:" >&5
16580 sed 's/^/| /' conftest.$ac_ext >&5
16582         eval "$as_ac_var=no"
16585 rm -rf conftest.dSYM
16586 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16587       conftest$ac_exeext conftest.$ac_ext
16589 ac_res=`eval 'as_val=${'$as_ac_var'}
16590                  $as_echo "$as_val"'`
16591                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16592 $as_echo "$ac_res" >&6; }
16593 as_val=`eval 'as_val=${'$as_ac_var'}
16594                  $as_echo "$as_val"'`
16595    if test "x$as_val" = x""yes; then
16596   cat >>confdefs.h <<_ACEOF
16597 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16598 _ACEOF
16601 done
16603     { $as_echo "$as_me:$LINENO: checking whether madvise is declared" >&5
16604 $as_echo_n "checking whether madvise is declared... " >&6; }
16605 if test "${ac_cv_have_decl_madvise+set}" = set; then
16606   $as_echo_n "(cached) " >&6
16607 else
16608   cat >conftest.$ac_ext <<_ACEOF
16609 /* confdefs.h.  */
16610 _ACEOF
16611 cat confdefs.h >>conftest.$ac_ext
16612 cat >>conftest.$ac_ext <<_ACEOF
16613 /* end confdefs.h.  */
16614 #ifdef HAVE_SYS_MMAN_H
16615                                      # include <sys/mman.h>
16616                                      #endif
16618 int
16619 main ()
16621 #ifndef madvise
16622   (void) madvise;
16623 #endif
16625   ;
16626   return 0;
16628 _ACEOF
16629 rm -f conftest.$ac_objext
16630 if { (ac_try="$ac_compile"
16631 case "(($ac_try" in
16632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16633   *) ac_try_echo=$ac_try;;
16634 esac
16635 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16636 $as_echo "$ac_try_echo") >&5
16637   (eval "$ac_compile") 2>conftest.er1
16638   ac_status=$?
16639   grep -v '^ *+' conftest.er1 >conftest.err
16640   rm -f conftest.er1
16641   cat conftest.err >&5
16642   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16643   (exit $ac_status); } && {
16644          test -z "$ac_c_werror_flag" ||
16645          test ! -s conftest.err
16646        } && test -s conftest.$ac_objext; then
16647   ac_cv_have_decl_madvise=yes
16648 else
16649   $as_echo "$as_me: failed program was:" >&5
16650 sed 's/^/| /' conftest.$ac_ext >&5
16652         ac_cv_have_decl_madvise=no
16655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16657 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_madvise" >&5
16658 $as_echo "$ac_cv_have_decl_madvise" >&6; }
16659 if test "x$ac_cv_have_decl_madvise" = x""yes; then
16661 cat >>confdefs.h <<_ACEOF
16662 #define HAVE_DECL_MADVISE 1
16663 _ACEOF
16666 else
16667   cat >>confdefs.h <<_ACEOF
16668 #define HAVE_DECL_MADVISE 0
16669 _ACEOF
16675     if test "x$ac_cv_have_decl_madvise" = "xyes";
16676     then
16678 for ac_func in madvise
16680 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16681 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16682 $as_echo_n "checking for $ac_func... " >&6; }
16683 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16684   $as_echo_n "(cached) " >&6
16685 else
16686   cat >conftest.$ac_ext <<_ACEOF
16687 /* confdefs.h.  */
16688 _ACEOF
16689 cat confdefs.h >>conftest.$ac_ext
16690 cat >>conftest.$ac_ext <<_ACEOF
16691 /* end confdefs.h.  */
16692 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16693    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16694 #define $ac_func innocuous_$ac_func
16696 /* System header to define __stub macros and hopefully few prototypes,
16697     which can conflict with char $ac_func (); below.
16698     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16699     <limits.h> exists even on freestanding compilers.  */
16701 #ifdef __STDC__
16702 # include <limits.h>
16703 #else
16704 # include <assert.h>
16705 #endif
16707 #undef $ac_func
16709 /* Override any GCC internal prototype to avoid an error.
16710    Use char because int might match the return type of a GCC
16711    builtin and then its argument prototype would still apply.  */
16712 #ifdef __cplusplus
16713 extern "C"
16714 #endif
16715 char $ac_func ();
16716 /* The GNU C library defines this for functions which it implements
16717     to always fail with ENOSYS.  Some functions are actually named
16718     something starting with __ and the normal name is an alias.  */
16719 #if defined __stub_$ac_func || defined __stub___$ac_func
16720 choke me
16721 #endif
16723 int
16724 main ()
16726 return $ac_func ();
16727   ;
16728   return 0;
16730 _ACEOF
16731 rm -f conftest.$ac_objext conftest$ac_exeext
16732 if { (ac_try="$ac_link"
16733 case "(($ac_try" in
16734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16735   *) ac_try_echo=$ac_try;;
16736 esac
16737 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16738 $as_echo "$ac_try_echo") >&5
16739   (eval "$ac_link") 2>conftest.er1
16740   ac_status=$?
16741   grep -v '^ *+' conftest.er1 >conftest.err
16742   rm -f conftest.er1
16743   cat conftest.err >&5
16744   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16745   (exit $ac_status); } && {
16746          test -z "$ac_c_werror_flag" ||
16747          test ! -s conftest.err
16748        } && test -s conftest$ac_exeext && {
16749          test "$cross_compiling" = yes ||
16750          $as_test_x conftest$ac_exeext
16751        }; then
16752   eval "$as_ac_var=yes"
16753 else
16754   $as_echo "$as_me: failed program was:" >&5
16755 sed 's/^/| /' conftest.$ac_ext >&5
16757         eval "$as_ac_var=no"
16760 rm -rf conftest.dSYM
16761 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16762       conftest$ac_exeext conftest.$ac_ext
16764 ac_res=`eval 'as_val=${'$as_ac_var'}
16765                  $as_echo "$as_val"'`
16766                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16767 $as_echo "$ac_res" >&6; }
16768 as_val=`eval 'as_val=${'$as_ac_var'}
16769                  $as_echo "$as_val"'`
16770    if test "x$as_val" = x""yes; then
16771   cat >>confdefs.h <<_ACEOF
16772 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16773 _ACEOF
16776 done
16778     else
16780 for ac_func in posix_madvise
16782 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16783 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16784 $as_echo_n "checking for $ac_func... " >&6; }
16785 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16786   $as_echo_n "(cached) " >&6
16787 else
16788   cat >conftest.$ac_ext <<_ACEOF
16789 /* confdefs.h.  */
16790 _ACEOF
16791 cat confdefs.h >>conftest.$ac_ext
16792 cat >>conftest.$ac_ext <<_ACEOF
16793 /* end confdefs.h.  */
16794 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16795    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16796 #define $ac_func innocuous_$ac_func
16798 /* System header to define __stub macros and hopefully few prototypes,
16799     which can conflict with char $ac_func (); below.
16800     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16801     <limits.h> exists even on freestanding compilers.  */
16803 #ifdef __STDC__
16804 # include <limits.h>
16805 #else
16806 # include <assert.h>
16807 #endif
16809 #undef $ac_func
16811 /* Override any GCC internal prototype to avoid an error.
16812    Use char because int might match the return type of a GCC
16813    builtin and then its argument prototype would still apply.  */
16814 #ifdef __cplusplus
16815 extern "C"
16816 #endif
16817 char $ac_func ();
16818 /* The GNU C library defines this for functions which it implements
16819     to always fail with ENOSYS.  Some functions are actually named
16820     something starting with __ and the normal name is an alias.  */
16821 #if defined __stub_$ac_func || defined __stub___$ac_func
16822 choke me
16823 #endif
16825 int
16826 main ()
16828 return $ac_func ();
16829   ;
16830   return 0;
16832 _ACEOF
16833 rm -f conftest.$ac_objext conftest$ac_exeext
16834 if { (ac_try="$ac_link"
16835 case "(($ac_try" in
16836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16837   *) ac_try_echo=$ac_try;;
16838 esac
16839 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16840 $as_echo "$ac_try_echo") >&5
16841   (eval "$ac_link") 2>conftest.er1
16842   ac_status=$?
16843   grep -v '^ *+' conftest.er1 >conftest.err
16844   rm -f conftest.er1
16845   cat conftest.err >&5
16846   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16847   (exit $ac_status); } && {
16848          test -z "$ac_c_werror_flag" ||
16849          test ! -s conftest.err
16850        } && test -s conftest$ac_exeext && {
16851          test "$cross_compiling" = yes ||
16852          $as_test_x conftest$ac_exeext
16853        }; then
16854   eval "$as_ac_var=yes"
16855 else
16856   $as_echo "$as_me: failed program was:" >&5
16857 sed 's/^/| /' conftest.$ac_ext >&5
16859         eval "$as_ac_var=no"
16862 rm -rf conftest.dSYM
16863 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16864       conftest$ac_exeext conftest.$ac_ext
16866 ac_res=`eval 'as_val=${'$as_ac_var'}
16867                  $as_echo "$as_val"'`
16868                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16869 $as_echo "$ac_res" >&6; }
16870 as_val=`eval 'as_val=${'$as_ac_var'}
16871                  $as_echo "$as_val"'`
16872    if test "x$as_val" = x""yes; then
16873   cat >>confdefs.h <<_ACEOF
16874 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16875 _ACEOF
16878 done
16880       if test "x$ac_cv_func_posix_madvise" != "xyes"; then
16881         { $as_echo "$as_me:$LINENO: WARNING: madvise() nor posix_madvise() found." >&5
16882 $as_echo "$as_me: WARNING: madvise() nor posix_madvise() found." >&2;}
16883       fi
16884     fi
16885   ;;
16886   esac
16887   if test "x$ac_cv_func_mmap" != "xyes";
16888   then
16889     { { $as_echo "$as_me:$LINENO: error: --enable-mmap requested but mmap() was not detected" >&5
16890 $as_echo "$as_me: error: --enable-mmap requested but mmap() was not detected" >&2;}
16891    { (exit 1); exit 1; }; }
16892   fi
16895 { $as_echo "$as_me:$LINENO: checking whether posix_fadvise is declared" >&5
16896 $as_echo_n "checking whether posix_fadvise is declared... " >&6; }
16897 if test "${ac_cv_have_decl_posix_fadvise+set}" = set; then
16898   $as_echo_n "(cached) " >&6
16899 else
16900   cat >conftest.$ac_ext <<_ACEOF
16901 /* confdefs.h.  */
16902 _ACEOF
16903 cat confdefs.h >>conftest.$ac_ext
16904 cat >>conftest.$ac_ext <<_ACEOF
16905 /* end confdefs.h.  */
16906 #define _XOPEN_SOURCE 600
16907 #include <fcntl.h>
16909 int
16910 main ()
16912 #ifndef posix_fadvise
16913   (void) posix_fadvise;
16914 #endif
16916   ;
16917   return 0;
16919 _ACEOF
16920 rm -f conftest.$ac_objext
16921 if { (ac_try="$ac_compile"
16922 case "(($ac_try" in
16923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16924   *) ac_try_echo=$ac_try;;
16925 esac
16926 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16927 $as_echo "$ac_try_echo") >&5
16928   (eval "$ac_compile") 2>conftest.er1
16929   ac_status=$?
16930   grep -v '^ *+' conftest.er1 >conftest.err
16931   rm -f conftest.er1
16932   cat conftest.err >&5
16933   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16934   (exit $ac_status); } && {
16935          test -z "$ac_c_werror_flag" ||
16936          test ! -s conftest.err
16937        } && test -s conftest.$ac_objext; then
16938   ac_cv_have_decl_posix_fadvise=yes
16939 else
16940   $as_echo "$as_me: failed program was:" >&5
16941 sed 's/^/| /' conftest.$ac_ext >&5
16943         ac_cv_have_decl_posix_fadvise=no
16946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16948 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_posix_fadvise" >&5
16949 $as_echo "$ac_cv_have_decl_posix_fadvise" >&6; }
16950 if test "x$ac_cv_have_decl_posix_fadvise" = x""yes; then
16952 cat >>confdefs.h <<_ACEOF
16953 #define HAVE_DECL_POSIX_FADVISE 1
16954 _ACEOF
16957 else
16958   cat >>confdefs.h <<_ACEOF
16959 #define HAVE_DECL_POSIX_FADVISE 0
16960 _ACEOF
16967 for ac_func in posix_fadvise
16969 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16970 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16971 $as_echo_n "checking for $ac_func... " >&6; }
16972 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16973   $as_echo_n "(cached) " >&6
16974 else
16975   cat >conftest.$ac_ext <<_ACEOF
16976 /* confdefs.h.  */
16977 _ACEOF
16978 cat confdefs.h >>conftest.$ac_ext
16979 cat >>conftest.$ac_ext <<_ACEOF
16980 /* end confdefs.h.  */
16981 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16982    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16983 #define $ac_func innocuous_$ac_func
16985 /* System header to define __stub macros and hopefully few prototypes,
16986     which can conflict with char $ac_func (); below.
16987     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16988     <limits.h> exists even on freestanding compilers.  */
16990 #ifdef __STDC__
16991 # include <limits.h>
16992 #else
16993 # include <assert.h>
16994 #endif
16996 #undef $ac_func
16998 /* Override any GCC internal prototype to avoid an error.
16999    Use char because int might match the return type of a GCC
17000    builtin and then its argument prototype would still apply.  */
17001 #ifdef __cplusplus
17002 extern "C"
17003 #endif
17004 char $ac_func ();
17005 /* The GNU C library defines this for functions which it implements
17006     to always fail with ENOSYS.  Some functions are actually named
17007     something starting with __ and the normal name is an alias.  */
17008 #if defined __stub_$ac_func || defined __stub___$ac_func
17009 choke me
17010 #endif
17012 int
17013 main ()
17015 return $ac_func ();
17016   ;
17017   return 0;
17019 _ACEOF
17020 rm -f conftest.$ac_objext conftest$ac_exeext
17021 if { (ac_try="$ac_link"
17022 case "(($ac_try" in
17023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17024   *) ac_try_echo=$ac_try;;
17025 esac
17026 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17027 $as_echo "$ac_try_echo") >&5
17028   (eval "$ac_link") 2>conftest.er1
17029   ac_status=$?
17030   grep -v '^ *+' conftest.er1 >conftest.err
17031   rm -f conftest.er1
17032   cat conftest.err >&5
17033   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17034   (exit $ac_status); } && {
17035          test -z "$ac_c_werror_flag" ||
17036          test ! -s conftest.err
17037        } && test -s conftest$ac_exeext && {
17038          test "$cross_compiling" = yes ||
17039          $as_test_x conftest$ac_exeext
17040        }; then
17041   eval "$as_ac_var=yes"
17042 else
17043   $as_echo "$as_me: failed program was:" >&5
17044 sed 's/^/| /' conftest.$ac_ext >&5
17046         eval "$as_ac_var=no"
17049 rm -rf conftest.dSYM
17050 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17051       conftest$ac_exeext conftest.$ac_ext
17053 ac_res=`eval 'as_val=${'$as_ac_var'}
17054                  $as_echo "$as_val"'`
17055                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17056 $as_echo "$ac_res" >&6; }
17057 as_val=`eval 'as_val=${'$as_ac_var'}
17058                  $as_echo "$as_val"'`
17059    if test "x$as_val" = x""yes; then
17060   cat >>confdefs.h <<_ACEOF
17061 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17062 _ACEOF
17065 done
17069 case $TERM in
17070        #   for the most important terminal types we directly know the sequences
17071        xterm|xterm*|vt220|vt220*)
17072                T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
17073                T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
17074        ;;
17075        vt100|vt100*|cygwin)
17076                T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
17077                T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
17078        ;;
17079        *)
17080                T_MD=''
17081                T_ME=''
17082        ;;
17083 esac
17084   { $as_echo "$as_me:$LINENO: result: " >&5
17085 $as_echo "" >&6; }
17086   { $as_echo "$as_me:$LINENO: result: ${T_MD}Libintl Processing${T_ME}" >&5
17087 $as_echo "${T_MD}Libintl Processing${T_ME}" >&6; }
17092   { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
17093 $as_echo_n "checking whether NLS is requested... " >&6; }
17094     # Check whether --enable-nls was given.
17095 if test "${enable_nls+set}" = set; then
17096   enableval=$enable_nls; USE_NLS=$enableval
17097 else
17098   USE_NLS=yes
17101   { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
17102 $as_echo "$USE_NLS" >&6; }
17107       GETTEXT_MACRO_VERSION=0.17
17112 # Prepare PATH_SEPARATOR.
17113 # The user is always right.
17114 if test "${PATH_SEPARATOR+set}" != set; then
17115   echo "#! /bin/sh" >conf$$.sh
17116   echo  "exit 0"   >>conf$$.sh
17117   chmod +x conf$$.sh
17118   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17119     PATH_SEPARATOR=';'
17120   else
17121     PATH_SEPARATOR=:
17122   fi
17123   rm -f conf$$.sh
17126 # Find out how to test for executable files. Don't use a zero-byte file,
17127 # as systems may use methods other than mode bits to determine executability.
17128 cat >conf$$.file <<_ASEOF
17129 #! /bin/sh
17130 exit 0
17131 _ASEOF
17132 chmod +x conf$$.file
17133 if test -x conf$$.file >/dev/null 2>&1; then
17134   ac_executable_p="test -x"
17135 else
17136   ac_executable_p="test -f"
17138 rm -f conf$$.file
17140 # Extract the first word of "msgfmt", so it can be a program name with args.
17141 set dummy msgfmt; ac_word=$2
17142 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
17143 $as_echo_n "checking for $ac_word... " >&6; }
17144 if test "${ac_cv_path_MSGFMT+set}" = set; then
17145   $as_echo_n "(cached) " >&6
17146 else
17147   case "$MSGFMT" in
17148   [\\/]* | ?:[\\/]*)
17149     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
17150     ;;
17151   *)
17152     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17153     for ac_dir in $PATH; do
17154       IFS="$ac_save_IFS"
17155       test -z "$ac_dir" && ac_dir=.
17156       for ac_exec_ext in '' $ac_executable_extensions; do
17157         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17158           echo "$as_me: trying $ac_dir/$ac_word..." >&5
17159           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
17160      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
17161             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
17162             break 2
17163           fi
17164         fi
17165       done
17166     done
17167     IFS="$ac_save_IFS"
17168   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
17169     ;;
17170 esac
17172 MSGFMT="$ac_cv_path_MSGFMT"
17173 if test "$MSGFMT" != ":"; then
17174   { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
17175 $as_echo "$MSGFMT" >&6; }
17176 else
17177   { $as_echo "$as_me:$LINENO: result: no" >&5
17178 $as_echo "no" >&6; }
17181   # Extract the first word of "gmsgfmt", so it can be a program name with args.
17182 set dummy gmsgfmt; ac_word=$2
17183 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
17184 $as_echo_n "checking for $ac_word... " >&6; }
17185 if test "${ac_cv_path_GMSGFMT+set}" = set; then
17186   $as_echo_n "(cached) " >&6
17187 else
17188   case $GMSGFMT in
17189   [\\/]* | ?:[\\/]*)
17190   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
17191   ;;
17192   *)
17193   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17194 for as_dir in $PATH
17196   IFS=$as_save_IFS
17197   test -z "$as_dir" && as_dir=.
17198   for ac_exec_ext in '' $ac_executable_extensions; do
17199   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17200     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
17201     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17202     break 2
17203   fi
17204 done
17205 done
17206 IFS=$as_save_IFS
17208   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
17209   ;;
17210 esac
17212 GMSGFMT=$ac_cv_path_GMSGFMT
17213 if test -n "$GMSGFMT"; then
17214   { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
17215 $as_echo "$GMSGFMT" >&6; }
17216 else
17217   { $as_echo "$as_me:$LINENO: result: no" >&5
17218 $as_echo "no" >&6; }
17223     case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
17224     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
17225     *) MSGFMT_015=$MSGFMT ;;
17226   esac
17228   case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
17229     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
17230     *) GMSGFMT_015=$GMSGFMT ;;
17231   esac
17235 # Prepare PATH_SEPARATOR.
17236 # The user is always right.
17237 if test "${PATH_SEPARATOR+set}" != set; then
17238   echo "#! /bin/sh" >conf$$.sh
17239   echo  "exit 0"   >>conf$$.sh
17240   chmod +x conf$$.sh
17241   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17242     PATH_SEPARATOR=';'
17243   else
17244     PATH_SEPARATOR=:
17245   fi
17246   rm -f conf$$.sh
17249 # Find out how to test for executable files. Don't use a zero-byte file,
17250 # as systems may use methods other than mode bits to determine executability.
17251 cat >conf$$.file <<_ASEOF
17252 #! /bin/sh
17253 exit 0
17254 _ASEOF
17255 chmod +x conf$$.file
17256 if test -x conf$$.file >/dev/null 2>&1; then
17257   ac_executable_p="test -x"
17258 else
17259   ac_executable_p="test -f"
17261 rm -f conf$$.file
17263 # Extract the first word of "xgettext", so it can be a program name with args.
17264 set dummy xgettext; ac_word=$2
17265 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
17266 $as_echo_n "checking for $ac_word... " >&6; }
17267 if test "${ac_cv_path_XGETTEXT+set}" = set; then
17268   $as_echo_n "(cached) " >&6
17269 else
17270   case "$XGETTEXT" in
17271   [\\/]* | ?:[\\/]*)
17272     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
17273     ;;
17274   *)
17275     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17276     for ac_dir in $PATH; do
17277       IFS="$ac_save_IFS"
17278       test -z "$ac_dir" && ac_dir=.
17279       for ac_exec_ext in '' $ac_executable_extensions; do
17280         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17281           echo "$as_me: trying $ac_dir/$ac_word..." >&5
17282           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
17283      (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
17284             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
17285             break 2
17286           fi
17287         fi
17288       done
17289     done
17290     IFS="$ac_save_IFS"
17291   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
17292     ;;
17293 esac
17295 XGETTEXT="$ac_cv_path_XGETTEXT"
17296 if test "$XGETTEXT" != ":"; then
17297   { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
17298 $as_echo "$XGETTEXT" >&6; }
17299 else
17300   { $as_echo "$as_me:$LINENO: result: no" >&5
17301 $as_echo "no" >&6; }
17304     rm -f messages.po
17306     case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
17307     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
17308     *) XGETTEXT_015=$XGETTEXT ;;
17309   esac
17313 # Prepare PATH_SEPARATOR.
17314 # The user is always right.
17315 if test "${PATH_SEPARATOR+set}" != set; then
17316   echo "#! /bin/sh" >conf$$.sh
17317   echo  "exit 0"   >>conf$$.sh
17318   chmod +x conf$$.sh
17319   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17320     PATH_SEPARATOR=';'
17321   else
17322     PATH_SEPARATOR=:
17323   fi
17324   rm -f conf$$.sh
17327 # Find out how to test for executable files. Don't use a zero-byte file,
17328 # as systems may use methods other than mode bits to determine executability.
17329 cat >conf$$.file <<_ASEOF
17330 #! /bin/sh
17331 exit 0
17332 _ASEOF
17333 chmod +x conf$$.file
17334 if test -x conf$$.file >/dev/null 2>&1; then
17335   ac_executable_p="test -x"
17336 else
17337   ac_executable_p="test -f"
17339 rm -f conf$$.file
17341 # Extract the first word of "msgmerge", so it can be a program name with args.
17342 set dummy msgmerge; ac_word=$2
17343 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
17344 $as_echo_n "checking for $ac_word... " >&6; }
17345 if test "${ac_cv_path_MSGMERGE+set}" = set; then
17346   $as_echo_n "(cached) " >&6
17347 else
17348   case "$MSGMERGE" in
17349   [\\/]* | ?:[\\/]*)
17350     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
17351     ;;
17352   *)
17353     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17354     for ac_dir in $PATH; do
17355       IFS="$ac_save_IFS"
17356       test -z "$ac_dir" && ac_dir=.
17357       for ac_exec_ext in '' $ac_executable_extensions; do
17358         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17359           echo "$as_me: trying $ac_dir/$ac_word..." >&5
17360           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
17361             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
17362             break 2
17363           fi
17364         fi
17365       done
17366     done
17367     IFS="$ac_save_IFS"
17368   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
17369     ;;
17370 esac
17372 MSGMERGE="$ac_cv_path_MSGMERGE"
17373 if test "$MSGMERGE" != ":"; then
17374   { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
17375 $as_echo "$MSGMERGE" >&6; }
17376 else
17377   { $as_echo "$as_me:$LINENO: result: no" >&5
17378 $as_echo "no" >&6; }
17382         test -n "$localedir" || localedir='${datadir}/locale'
17385     test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
17388   ac_config_commands="$ac_config_commands po-directories"
17392     { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
17393 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
17394 if test "${ac_cv_gnu_library_2+set}" = set; then
17395   $as_echo_n "(cached) " >&6
17396 else
17397   cat >conftest.$ac_ext <<_ACEOF
17398 /* confdefs.h.  */
17399 _ACEOF
17400 cat confdefs.h >>conftest.$ac_ext
17401 cat >>conftest.$ac_ext <<_ACEOF
17402 /* end confdefs.h.  */
17404 #include <features.h>
17405 #ifdef __GNU_LIBRARY__
17406  #if (__GLIBC__ >= 2)
17407   Lucky GNU user
17408  #endif
17409 #endif
17411 _ACEOF
17412 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17413   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
17414   ac_cv_gnu_library_2=yes
17415 else
17416   ac_cv_gnu_library_2=no
17418 rm -f conftest*
17423 { $as_echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
17424 $as_echo "$ac_cv_gnu_library_2" >&6; }
17426     GLIBC2="$ac_cv_gnu_library_2"
17429 if test -n "$ac_tool_prefix"; then
17430   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
17431 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
17432 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
17433 $as_echo_n "checking for $ac_word... " >&6; }
17434 if test "${ac_cv_prog_RANLIB+set}" = set; then
17435   $as_echo_n "(cached) " >&6
17436 else
17437   if test -n "$RANLIB"; then
17438   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
17439 else
17440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17441 for as_dir in $PATH
17443   IFS=$as_save_IFS
17444   test -z "$as_dir" && as_dir=.
17445   for ac_exec_ext in '' $ac_executable_extensions; do
17446   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17447     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
17448     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17449     break 2
17450   fi
17451 done
17452 done
17453 IFS=$as_save_IFS
17457 RANLIB=$ac_cv_prog_RANLIB
17458 if test -n "$RANLIB"; then
17459   { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
17460 $as_echo "$RANLIB" >&6; }
17461 else
17462   { $as_echo "$as_me:$LINENO: result: no" >&5
17463 $as_echo "no" >&6; }
17468 if test -z "$ac_cv_prog_RANLIB"; then
17469   ac_ct_RANLIB=$RANLIB
17470   # Extract the first word of "ranlib", so it can be a program name with args.
17471 set dummy ranlib; ac_word=$2
17472 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
17473 $as_echo_n "checking for $ac_word... " >&6; }
17474 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
17475   $as_echo_n "(cached) " >&6
17476 else
17477   if test -n "$ac_ct_RANLIB"; then
17478   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
17479 else
17480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17481 for as_dir in $PATH
17483   IFS=$as_save_IFS
17484   test -z "$as_dir" && as_dir=.
17485   for ac_exec_ext in '' $ac_executable_extensions; do
17486   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17487     ac_cv_prog_ac_ct_RANLIB="ranlib"
17488     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17489     break 2
17490   fi
17491 done
17492 done
17493 IFS=$as_save_IFS
17497 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
17498 if test -n "$ac_ct_RANLIB"; then
17499   { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
17500 $as_echo "$ac_ct_RANLIB" >&6; }
17501 else
17502   { $as_echo "$as_me:$LINENO: result: no" >&5
17503 $as_echo "no" >&6; }
17506   if test "x$ac_ct_RANLIB" = x; then
17507     RANLIB=":"
17508   else
17509     case $cross_compiling:$ac_tool_warned in
17510 yes:)
17511 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
17512 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17513 ac_tool_warned=yes ;;
17514 esac
17515     RANLIB=$ac_ct_RANLIB
17516   fi
17517 else
17518   RANLIB="$ac_cv_prog_RANLIB"
17523   CFLAG_VISIBILITY=
17524   HAVE_VISIBILITY=0
17525   if test -n "$GCC"; then
17526     { $as_echo "$as_me:$LINENO: checking for simple visibility declarations" >&5
17527 $as_echo_n "checking for simple visibility declarations... " >&6; }
17528     if test "${gl_cv_cc_visibility+set}" = set; then
17529   $as_echo_n "(cached) " >&6
17530 else
17532       gl_save_CFLAGS="$CFLAGS"
17533       CFLAGS="$CFLAGS -fvisibility=hidden"
17534       cat >conftest.$ac_ext <<_ACEOF
17535 /* confdefs.h.  */
17536 _ACEOF
17537 cat confdefs.h >>conftest.$ac_ext
17538 cat >>conftest.$ac_ext <<_ACEOF
17539 /* end confdefs.h.  */
17540 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
17541          extern __attribute__((__visibility__("default"))) int exportedvar;
17542          extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
17543          extern __attribute__((__visibility__("default"))) int exportedfunc (void);
17544 int
17545 main ()
17548   ;
17549   return 0;
17551 _ACEOF
17552 rm -f conftest.$ac_objext
17553 if { (ac_try="$ac_compile"
17554 case "(($ac_try" in
17555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17556   *) ac_try_echo=$ac_try;;
17557 esac
17558 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17559 $as_echo "$ac_try_echo") >&5
17560   (eval "$ac_compile") 2>conftest.er1
17561   ac_status=$?
17562   grep -v '^ *+' conftest.er1 >conftest.err
17563   rm -f conftest.er1
17564   cat conftest.err >&5
17565   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17566   (exit $ac_status); } && {
17567          test -z "$ac_c_werror_flag" ||
17568          test ! -s conftest.err
17569        } && test -s conftest.$ac_objext; then
17570   gl_cv_cc_visibility=yes
17571 else
17572   $as_echo "$as_me: failed program was:" >&5
17573 sed 's/^/| /' conftest.$ac_ext >&5
17575         gl_cv_cc_visibility=no
17578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17579       CFLAGS="$gl_save_CFLAGS"
17582     { $as_echo "$as_me:$LINENO: result: $gl_cv_cc_visibility" >&5
17583 $as_echo "$gl_cv_cc_visibility" >&6; }
17584     if test $gl_cv_cc_visibility = yes; then
17585       CFLAG_VISIBILITY="-fvisibility=hidden"
17586       HAVE_VISIBILITY=1
17587     fi
17588   fi
17592 cat >>confdefs.h <<_ACEOF
17593 #define HAVE_VISIBILITY $HAVE_VISIBILITY
17594 _ACEOF
17597 { $as_echo "$as_me:$LINENO: checking for inline" >&5
17598 $as_echo_n "checking for inline... " >&6; }
17599 if test "${ac_cv_c_inline+set}" = set; then
17600   $as_echo_n "(cached) " >&6
17601 else
17602   ac_cv_c_inline=no
17603 for ac_kw in inline __inline__ __inline; do
17604   cat >conftest.$ac_ext <<_ACEOF
17605 /* confdefs.h.  */
17606 _ACEOF
17607 cat confdefs.h >>conftest.$ac_ext
17608 cat >>conftest.$ac_ext <<_ACEOF
17609 /* end confdefs.h.  */
17610 #ifndef __cplusplus
17611 typedef int foo_t;
17612 static $ac_kw foo_t static_foo () {return 0; }
17613 $ac_kw foo_t foo () {return 0; }
17614 #endif
17616 _ACEOF
17617 rm -f conftest.$ac_objext
17618 if { (ac_try="$ac_compile"
17619 case "(($ac_try" in
17620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17621   *) ac_try_echo=$ac_try;;
17622 esac
17623 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17624 $as_echo "$ac_try_echo") >&5
17625   (eval "$ac_compile") 2>conftest.er1
17626   ac_status=$?
17627   grep -v '^ *+' conftest.er1 >conftest.err
17628   rm -f conftest.er1
17629   cat conftest.err >&5
17630   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17631   (exit $ac_status); } && {
17632          test -z "$ac_c_werror_flag" ||
17633          test ! -s conftest.err
17634        } && test -s conftest.$ac_objext; then
17635   ac_cv_c_inline=$ac_kw
17636 else
17637   $as_echo "$as_me: failed program was:" >&5
17638 sed 's/^/| /' conftest.$ac_ext >&5
17643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17644   test "$ac_cv_c_inline" != no && break
17645 done
17648 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
17649 $as_echo "$ac_cv_c_inline" >&6; }
17652 case $ac_cv_c_inline in
17653   inline | yes) ;;
17654   *)
17655     case $ac_cv_c_inline in
17656       no) ac_val=;;
17657       *) ac_val=$ac_cv_c_inline;;
17658     esac
17659     cat >>confdefs.h <<_ACEOF
17660 #ifndef __cplusplus
17661 #define inline $ac_val
17662 #endif
17663 _ACEOF
17664     ;;
17665 esac
17667 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
17668 $as_echo_n "checking for size_t... " >&6; }
17669 if test "${ac_cv_type_size_t+set}" = set; then
17670   $as_echo_n "(cached) " >&6
17671 else
17672   ac_cv_type_size_t=no
17673 cat >conftest.$ac_ext <<_ACEOF
17674 /* confdefs.h.  */
17675 _ACEOF
17676 cat confdefs.h >>conftest.$ac_ext
17677 cat >>conftest.$ac_ext <<_ACEOF
17678 /* end confdefs.h.  */
17679 $ac_includes_default
17680 int
17681 main ()
17683 if (sizeof (size_t))
17684        return 0;
17685   ;
17686   return 0;
17688 _ACEOF
17689 rm -f conftest.$ac_objext
17690 if { (ac_try="$ac_compile"
17691 case "(($ac_try" in
17692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17693   *) ac_try_echo=$ac_try;;
17694 esac
17695 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17696 $as_echo "$ac_try_echo") >&5
17697   (eval "$ac_compile") 2>conftest.er1
17698   ac_status=$?
17699   grep -v '^ *+' conftest.er1 >conftest.err
17700   rm -f conftest.er1
17701   cat conftest.err >&5
17702   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17703   (exit $ac_status); } && {
17704          test -z "$ac_c_werror_flag" ||
17705          test ! -s conftest.err
17706        } && test -s conftest.$ac_objext; then
17707   cat >conftest.$ac_ext <<_ACEOF
17708 /* confdefs.h.  */
17709 _ACEOF
17710 cat confdefs.h >>conftest.$ac_ext
17711 cat >>conftest.$ac_ext <<_ACEOF
17712 /* end confdefs.h.  */
17713 $ac_includes_default
17714 int
17715 main ()
17717 if (sizeof ((size_t)))
17718           return 0;
17719   ;
17720   return 0;
17722 _ACEOF
17723 rm -f conftest.$ac_objext
17724 if { (ac_try="$ac_compile"
17725 case "(($ac_try" in
17726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17727   *) ac_try_echo=$ac_try;;
17728 esac
17729 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17730 $as_echo "$ac_try_echo") >&5
17731   (eval "$ac_compile") 2>conftest.er1
17732   ac_status=$?
17733   grep -v '^ *+' conftest.er1 >conftest.err
17734   rm -f conftest.er1
17735   cat conftest.err >&5
17736   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17737   (exit $ac_status); } && {
17738          test -z "$ac_c_werror_flag" ||
17739          test ! -s conftest.err
17740        } && test -s conftest.$ac_objext; then
17741   :
17742 else
17743   $as_echo "$as_me: failed program was:" >&5
17744 sed 's/^/| /' conftest.$ac_ext >&5
17746         ac_cv_type_size_t=yes
17749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17750 else
17751   $as_echo "$as_me: failed program was:" >&5
17752 sed 's/^/| /' conftest.$ac_ext >&5
17757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17759 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17760 $as_echo "$ac_cv_type_size_t" >&6; }
17761 if test "x$ac_cv_type_size_t" = x""yes; then
17762   :
17763 else
17765 cat >>confdefs.h <<_ACEOF
17766 #define size_t unsigned int
17767 _ACEOF
17772   { $as_echo "$as_me:$LINENO: checking for stdint.h" >&5
17773 $as_echo_n "checking for stdint.h... " >&6; }
17774 if test "${gl_cv_header_stdint_h+set}" = set; then
17775   $as_echo_n "(cached) " >&6
17776 else
17777   cat >conftest.$ac_ext <<_ACEOF
17778 /* confdefs.h.  */
17779 _ACEOF
17780 cat confdefs.h >>conftest.$ac_ext
17781 cat >>conftest.$ac_ext <<_ACEOF
17782 /* end confdefs.h.  */
17783 #include <sys/types.h>
17784 #include <stdint.h>
17785 int
17786 main ()
17788 uintmax_t i = (uintmax_t) -1; return !i;
17789   ;
17790   return 0;
17792 _ACEOF
17793 rm -f conftest.$ac_objext
17794 if { (ac_try="$ac_compile"
17795 case "(($ac_try" in
17796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17797   *) ac_try_echo=$ac_try;;
17798 esac
17799 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17800 $as_echo "$ac_try_echo") >&5
17801   (eval "$ac_compile") 2>conftest.er1
17802   ac_status=$?
17803   grep -v '^ *+' conftest.er1 >conftest.err
17804   rm -f conftest.er1
17805   cat conftest.err >&5
17806   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17807   (exit $ac_status); } && {
17808          test -z "$ac_c_werror_flag" ||
17809          test ! -s conftest.err
17810        } && test -s conftest.$ac_objext; then
17811   gl_cv_header_stdint_h=yes
17812 else
17813   $as_echo "$as_me: failed program was:" >&5
17814 sed 's/^/| /' conftest.$ac_ext >&5
17816         gl_cv_header_stdint_h=no
17819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17821 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
17822 $as_echo "$gl_cv_header_stdint_h" >&6; }
17823   if test $gl_cv_header_stdint_h = yes; then
17825 cat >>confdefs.h <<_ACEOF
17826 #define HAVE_STDINT_H_WITH_UINTMAX 1
17827 _ACEOF
17829   fi
17831 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
17832 # for constant arguments.  Useless!
17833 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
17834 $as_echo_n "checking for working alloca.h... " >&6; }
17835 if test "${ac_cv_working_alloca_h+set}" = set; then
17836   $as_echo_n "(cached) " >&6
17837 else
17838   cat >conftest.$ac_ext <<_ACEOF
17839 /* confdefs.h.  */
17840 _ACEOF
17841 cat confdefs.h >>conftest.$ac_ext
17842 cat >>conftest.$ac_ext <<_ACEOF
17843 /* end confdefs.h.  */
17844 #include <alloca.h>
17845 int
17846 main ()
17848 char *p = (char *) alloca (2 * sizeof (int));
17849                           if (p) return 0;
17850   ;
17851   return 0;
17853 _ACEOF
17854 rm -f conftest.$ac_objext conftest$ac_exeext
17855 if { (ac_try="$ac_link"
17856 case "(($ac_try" in
17857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17858   *) ac_try_echo=$ac_try;;
17859 esac
17860 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17861 $as_echo "$ac_try_echo") >&5
17862   (eval "$ac_link") 2>conftest.er1
17863   ac_status=$?
17864   grep -v '^ *+' conftest.er1 >conftest.err
17865   rm -f conftest.er1
17866   cat conftest.err >&5
17867   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17868   (exit $ac_status); } && {
17869          test -z "$ac_c_werror_flag" ||
17870          test ! -s conftest.err
17871        } && test -s conftest$ac_exeext && {
17872          test "$cross_compiling" = yes ||
17873          $as_test_x conftest$ac_exeext
17874        }; then
17875   ac_cv_working_alloca_h=yes
17876 else
17877   $as_echo "$as_me: failed program was:" >&5
17878 sed 's/^/| /' conftest.$ac_ext >&5
17880         ac_cv_working_alloca_h=no
17883 rm -rf conftest.dSYM
17884 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17885       conftest$ac_exeext conftest.$ac_ext
17887 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
17888 $as_echo "$ac_cv_working_alloca_h" >&6; }
17889 if test $ac_cv_working_alloca_h = yes; then
17891 cat >>confdefs.h <<\_ACEOF
17892 #define HAVE_ALLOCA_H 1
17893 _ACEOF
17897 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
17898 $as_echo_n "checking for alloca... " >&6; }
17899 if test "${ac_cv_func_alloca_works+set}" = set; then
17900   $as_echo_n "(cached) " >&6
17901 else
17902   cat >conftest.$ac_ext <<_ACEOF
17903 /* confdefs.h.  */
17904 _ACEOF
17905 cat confdefs.h >>conftest.$ac_ext
17906 cat >>conftest.$ac_ext <<_ACEOF
17907 /* end confdefs.h.  */
17908 #ifdef __GNUC__
17909 # define alloca __builtin_alloca
17910 #else
17911 # ifdef _MSC_VER
17912 #  include <malloc.h>
17913 #  define alloca _alloca
17914 # else
17915 #  ifdef HAVE_ALLOCA_H
17916 #   include <alloca.h>
17917 #  else
17918 #   ifdef _AIX
17919  #pragma alloca
17920 #   else
17921 #    ifndef alloca /* predefined by HP cc +Olibcalls */
17922 char *alloca ();
17923 #    endif
17924 #   endif
17925 #  endif
17926 # endif
17927 #endif
17929 int
17930 main ()
17932 char *p = (char *) alloca (1);
17933                                     if (p) return 0;
17934   ;
17935   return 0;
17937 _ACEOF
17938 rm -f conftest.$ac_objext conftest$ac_exeext
17939 if { (ac_try="$ac_link"
17940 case "(($ac_try" in
17941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17942   *) ac_try_echo=$ac_try;;
17943 esac
17944 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17945 $as_echo "$ac_try_echo") >&5
17946   (eval "$ac_link") 2>conftest.er1
17947   ac_status=$?
17948   grep -v '^ *+' conftest.er1 >conftest.err
17949   rm -f conftest.er1
17950   cat conftest.err >&5
17951   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17952   (exit $ac_status); } && {
17953          test -z "$ac_c_werror_flag" ||
17954          test ! -s conftest.err
17955        } && test -s conftest$ac_exeext && {
17956          test "$cross_compiling" = yes ||
17957          $as_test_x conftest$ac_exeext
17958        }; then
17959   ac_cv_func_alloca_works=yes
17960 else
17961   $as_echo "$as_me: failed program was:" >&5
17962 sed 's/^/| /' conftest.$ac_ext >&5
17964         ac_cv_func_alloca_works=no
17967 rm -rf conftest.dSYM
17968 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17969       conftest$ac_exeext conftest.$ac_ext
17971 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
17972 $as_echo "$ac_cv_func_alloca_works" >&6; }
17974 if test $ac_cv_func_alloca_works = yes; then
17976 cat >>confdefs.h <<\_ACEOF
17977 #define HAVE_ALLOCA 1
17978 _ACEOF
17980 else
17981   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
17982 # that cause trouble.  Some versions do not even contain alloca or
17983 # contain a buggy version.  If you still want to use their alloca,
17984 # use ar to extract alloca.o from them instead of compiling alloca.c.
17986 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
17988 cat >>confdefs.h <<\_ACEOF
17989 #define C_ALLOCA 1
17990 _ACEOF
17993 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
17994 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
17995 if test "${ac_cv_os_cray+set}" = set; then
17996   $as_echo_n "(cached) " >&6
17997 else
17998   cat >conftest.$ac_ext <<_ACEOF
17999 /* confdefs.h.  */
18000 _ACEOF
18001 cat confdefs.h >>conftest.$ac_ext
18002 cat >>conftest.$ac_ext <<_ACEOF
18003 /* end confdefs.h.  */
18004 #if defined CRAY && ! defined CRAY2
18005 webecray
18006 #else
18007 wenotbecray
18008 #endif
18010 _ACEOF
18011 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18012   $EGREP "webecray" >/dev/null 2>&1; then
18013   ac_cv_os_cray=yes
18014 else
18015   ac_cv_os_cray=no
18017 rm -f conftest*
18020 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
18021 $as_echo "$ac_cv_os_cray" >&6; }
18022 if test $ac_cv_os_cray = yes; then
18023   for ac_func in _getb67 GETB67 getb67; do
18024     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18025 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18026 $as_echo_n "checking for $ac_func... " >&6; }
18027 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18028   $as_echo_n "(cached) " >&6
18029 else
18030   cat >conftest.$ac_ext <<_ACEOF
18031 /* confdefs.h.  */
18032 _ACEOF
18033 cat confdefs.h >>conftest.$ac_ext
18034 cat >>conftest.$ac_ext <<_ACEOF
18035 /* end confdefs.h.  */
18036 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18037    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18038 #define $ac_func innocuous_$ac_func
18040 /* System header to define __stub macros and hopefully few prototypes,
18041     which can conflict with char $ac_func (); below.
18042     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18043     <limits.h> exists even on freestanding compilers.  */
18045 #ifdef __STDC__
18046 # include <limits.h>
18047 #else
18048 # include <assert.h>
18049 #endif
18051 #undef $ac_func
18053 /* Override any GCC internal prototype to avoid an error.
18054    Use char because int might match the return type of a GCC
18055    builtin and then its argument prototype would still apply.  */
18056 #ifdef __cplusplus
18057 extern "C"
18058 #endif
18059 char $ac_func ();
18060 /* The GNU C library defines this for functions which it implements
18061     to always fail with ENOSYS.  Some functions are actually named
18062     something starting with __ and the normal name is an alias.  */
18063 #if defined __stub_$ac_func || defined __stub___$ac_func
18064 choke me
18065 #endif
18067 int
18068 main ()
18070 return $ac_func ();
18071   ;
18072   return 0;
18074 _ACEOF
18075 rm -f conftest.$ac_objext conftest$ac_exeext
18076 if { (ac_try="$ac_link"
18077 case "(($ac_try" in
18078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18079   *) ac_try_echo=$ac_try;;
18080 esac
18081 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18082 $as_echo "$ac_try_echo") >&5
18083   (eval "$ac_link") 2>conftest.er1
18084   ac_status=$?
18085   grep -v '^ *+' conftest.er1 >conftest.err
18086   rm -f conftest.er1
18087   cat conftest.err >&5
18088   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18089   (exit $ac_status); } && {
18090          test -z "$ac_c_werror_flag" ||
18091          test ! -s conftest.err
18092        } && test -s conftest$ac_exeext && {
18093          test "$cross_compiling" = yes ||
18094          $as_test_x conftest$ac_exeext
18095        }; then
18096   eval "$as_ac_var=yes"
18097 else
18098   $as_echo "$as_me: failed program was:" >&5
18099 sed 's/^/| /' conftest.$ac_ext >&5
18101         eval "$as_ac_var=no"
18104 rm -rf conftest.dSYM
18105 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18106       conftest$ac_exeext conftest.$ac_ext
18108 ac_res=`eval 'as_val=${'$as_ac_var'}
18109                  $as_echo "$as_val"'`
18110                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18111 $as_echo "$ac_res" >&6; }
18112 as_val=`eval 'as_val=${'$as_ac_var'}
18113                  $as_echo "$as_val"'`
18114    if test "x$as_val" = x""yes; then
18116 cat >>confdefs.h <<_ACEOF
18117 #define CRAY_STACKSEG_END $ac_func
18118 _ACEOF
18120     break
18123   done
18126 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
18127 $as_echo_n "checking stack direction for C alloca... " >&6; }
18128 if test "${ac_cv_c_stack_direction+set}" = set; then
18129   $as_echo_n "(cached) " >&6
18130 else
18131   if test "$cross_compiling" = yes; then
18132   ac_cv_c_stack_direction=0
18133 else
18134   cat >conftest.$ac_ext <<_ACEOF
18135 /* confdefs.h.  */
18136 _ACEOF
18137 cat confdefs.h >>conftest.$ac_ext
18138 cat >>conftest.$ac_ext <<_ACEOF
18139 /* end confdefs.h.  */
18140 $ac_includes_default
18141 int
18142 find_stack_direction ()
18144   static char *addr = 0;
18145   auto char dummy;
18146   if (addr == 0)
18147     {
18148       addr = &dummy;
18149       return find_stack_direction ();
18150     }
18151   else
18152     return (&dummy > addr) ? 1 : -1;
18155 int
18156 main ()
18158   return find_stack_direction () < 0;
18160 _ACEOF
18161 rm -f conftest$ac_exeext
18162 if { (ac_try="$ac_link"
18163 case "(($ac_try" in
18164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18165   *) ac_try_echo=$ac_try;;
18166 esac
18167 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18168 $as_echo "$ac_try_echo") >&5
18169   (eval "$ac_link") 2>&5
18170   ac_status=$?
18171   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18172   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18173   { (case "(($ac_try" in
18174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18175   *) ac_try_echo=$ac_try;;
18176 esac
18177 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18178 $as_echo "$ac_try_echo") >&5
18179   (eval "$ac_try") 2>&5
18180   ac_status=$?
18181   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18182   (exit $ac_status); }; }; then
18183   ac_cv_c_stack_direction=1
18184 else
18185   $as_echo "$as_me: program exited with status $ac_status" >&5
18186 $as_echo "$as_me: failed program was:" >&5
18187 sed 's/^/| /' conftest.$ac_ext >&5
18189 ( exit $ac_status )
18190 ac_cv_c_stack_direction=-1
18192 rm -rf conftest.dSYM
18193 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18198 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
18199 $as_echo "$ac_cv_c_stack_direction" >&6; }
18201 cat >>confdefs.h <<_ACEOF
18202 #define STACK_DIRECTION $ac_cv_c_stack_direction
18203 _ACEOF
18210   { $as_echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
18211 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
18212 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
18213   $as_echo_n "(cached) " >&6
18214 else
18216       gt_cv_int_divbyzero_sigfpe=
18217       case "$host_os" in
18218         macos* | darwin[6-9]* | darwin[1-9][0-9]*)
18219           # On MacOS X 10.2 or newer, just assume the same as when cross-
18220           # compiling. If we were to perform the real test, 1 Crash Report
18221           # dialog window would pop up.
18222           case "$host_cpu" in
18223             i[34567]86 | x86_64)
18224               gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
18225           esac
18226           ;;
18227       esac
18228       if test -z "$gt_cv_int_divbyzero_sigfpe"; then
18229         if test "$cross_compiling" = yes; then
18231             # Guess based on the CPU.
18232             case "$host_cpu" in
18233               alpha* | i[34567]86 | x86_64 | m68k | s390*)
18234                 gt_cv_int_divbyzero_sigfpe="guessing yes";;
18235               *)
18236                 gt_cv_int_divbyzero_sigfpe="guessing no";;
18237             esac
18239 else
18240   cat >conftest.$ac_ext <<_ACEOF
18241 /* confdefs.h.  */
18242 _ACEOF
18243 cat confdefs.h >>conftest.$ac_ext
18244 cat >>conftest.$ac_ext <<_ACEOF
18245 /* end confdefs.h.  */
18247 #include <stdlib.h>
18248 #include <signal.h>
18250 static void
18251 sigfpe_handler (int sig)
18253   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
18254   exit (sig != SIGFPE);
18257 int x = 1;
18258 int y = 0;
18259 int z;
18260 int nan;
18262 int main ()
18264   signal (SIGFPE, sigfpe_handler);
18265 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
18266 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
18267   signal (SIGTRAP, sigfpe_handler);
18268 #endif
18269 /* Linux/SPARC yields signal SIGILL.  */
18270 #if defined (__sparc__) && defined (__linux__)
18271   signal (SIGILL, sigfpe_handler);
18272 #endif
18274   z = x / y;
18275   nan = y / y;
18276   exit (1);
18279 _ACEOF
18280 rm -f conftest$ac_exeext
18281 if { (ac_try="$ac_link"
18282 case "(($ac_try" in
18283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18284   *) ac_try_echo=$ac_try;;
18285 esac
18286 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18287 $as_echo "$ac_try_echo") >&5
18288   (eval "$ac_link") 2>&5
18289   ac_status=$?
18290   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18291   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18292   { (case "(($ac_try" in
18293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18294   *) ac_try_echo=$ac_try;;
18295 esac
18296 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18297 $as_echo "$ac_try_echo") >&5
18298   (eval "$ac_try") 2>&5
18299   ac_status=$?
18300   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18301   (exit $ac_status); }; }; then
18302   gt_cv_int_divbyzero_sigfpe=yes
18303 else
18304   $as_echo "$as_me: program exited with status $ac_status" >&5
18305 $as_echo "$as_me: failed program was:" >&5
18306 sed 's/^/| /' conftest.$ac_ext >&5
18308 ( exit $ac_status )
18309 gt_cv_int_divbyzero_sigfpe=no
18311 rm -rf conftest.dSYM
18312 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18316       fi
18319 { $as_echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
18320 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
18321   case "$gt_cv_int_divbyzero_sigfpe" in
18322     *yes) value=1;;
18323     *) value=0;;
18324   esac
18326 cat >>confdefs.h <<_ACEOF
18327 #define INTDIV0_RAISES_SIGFPE $value
18328 _ACEOF
18332   { $as_echo "$as_me:$LINENO: checking for inttypes.h" >&5
18333 $as_echo_n "checking for inttypes.h... " >&6; }
18334 if test "${gl_cv_header_inttypes_h+set}" = set; then
18335   $as_echo_n "(cached) " >&6
18336 else
18337   cat >conftest.$ac_ext <<_ACEOF
18338 /* confdefs.h.  */
18339 _ACEOF
18340 cat confdefs.h >>conftest.$ac_ext
18341 cat >>conftest.$ac_ext <<_ACEOF
18342 /* end confdefs.h.  */
18343 #include <sys/types.h>
18344 #include <inttypes.h>
18345 int
18346 main ()
18348 uintmax_t i = (uintmax_t) -1; return !i;
18349   ;
18350   return 0;
18352 _ACEOF
18353 rm -f conftest.$ac_objext
18354 if { (ac_try="$ac_compile"
18355 case "(($ac_try" in
18356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18357   *) ac_try_echo=$ac_try;;
18358 esac
18359 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18360 $as_echo "$ac_try_echo") >&5
18361   (eval "$ac_compile") 2>conftest.er1
18362   ac_status=$?
18363   grep -v '^ *+' conftest.er1 >conftest.err
18364   rm -f conftest.er1
18365   cat conftest.err >&5
18366   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18367   (exit $ac_status); } && {
18368          test -z "$ac_c_werror_flag" ||
18369          test ! -s conftest.err
18370        } && test -s conftest.$ac_objext; then
18371   gl_cv_header_inttypes_h=yes
18372 else
18373   $as_echo "$as_me: failed program was:" >&5
18374 sed 's/^/| /' conftest.$ac_ext >&5
18376         gl_cv_header_inttypes_h=no
18379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18381 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
18382 $as_echo "$gl_cv_header_inttypes_h" >&6; }
18383   if test $gl_cv_header_inttypes_h = yes; then
18385 cat >>confdefs.h <<_ACEOF
18386 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
18387 _ACEOF
18389   fi
18392   { $as_echo "$as_me:$LINENO: checking for unsigned long long int" >&5
18393 $as_echo_n "checking for unsigned long long int... " >&6; }
18394 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
18395   $as_echo_n "(cached) " >&6
18396 else
18397   cat >conftest.$ac_ext <<_ACEOF
18399   /* confdefs.h.  */
18400 _ACEOF
18401 cat confdefs.h >>conftest.$ac_ext
18402 cat >>conftest.$ac_ext <<_ACEOF
18403 /* end confdefs.h.  */
18404 /* Test preprocessor.  */
18405       #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
18406         error in preprocessor;
18407       #endif
18408       #if ! (18446744073709551615ULL <= -1ull)
18409         error in preprocessor;
18410       #endif
18411       /* Test literals.  */
18412       long long int ll = 9223372036854775807ll;
18413       long long int nll = -9223372036854775807LL;
18414       unsigned long long int ull = 18446744073709551615ULL;
18415       /* Test constant expressions.   */
18416       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
18417                      ? 1 : -1)];
18418       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
18419                      ? 1 : -1)];
18420       int i = 63;
18421 int
18422 main ()
18424 /* Test availability of runtime routines for shift and division.  */
18425       long long int llmax = 9223372036854775807ll;
18426       unsigned long long int ullmax = 18446744073709551615ull;
18427       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
18428               | (llmax / ll) | (llmax % ll)
18429               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
18430               | (ullmax / ull) | (ullmax % ull));
18431   ;
18432   return 0;
18435 _ACEOF
18436 rm -f conftest.$ac_objext conftest$ac_exeext
18437 if { (ac_try="$ac_link"
18438 case "(($ac_try" in
18439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18440   *) ac_try_echo=$ac_try;;
18441 esac
18442 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18443 $as_echo "$ac_try_echo") >&5
18444   (eval "$ac_link") 2>conftest.er1
18445   ac_status=$?
18446   grep -v '^ *+' conftest.er1 >conftest.err
18447   rm -f conftest.er1
18448   cat conftest.err >&5
18449   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18450   (exit $ac_status); } && {
18451          test -z "$ac_c_werror_flag" ||
18452          test ! -s conftest.err
18453        } && test -s conftest$ac_exeext && {
18454          test "$cross_compiling" = yes ||
18455          $as_test_x conftest$ac_exeext
18456        }; then
18457   ac_cv_type_unsigned_long_long_int=yes
18458 else
18459   $as_echo "$as_me: failed program was:" >&5
18460 sed 's/^/| /' conftest.$ac_ext >&5
18462         ac_cv_type_unsigned_long_long_int=no
18465 rm -rf conftest.dSYM
18466 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18467       conftest$ac_exeext conftest.$ac_ext
18469 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
18470 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
18471   if test $ac_cv_type_unsigned_long_long_int = yes; then
18473 cat >>confdefs.h <<\_ACEOF
18474 #define HAVE_UNSIGNED_LONG_LONG_INT 1
18475 _ACEOF
18477   fi
18482   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
18484     test $ac_cv_type_unsigned_long_long_int = yes \
18485       && ac_type='unsigned long long' \
18486       || ac_type='unsigned long'
18488 cat >>confdefs.h <<_ACEOF
18489 #define uintmax_t $ac_type
18490 _ACEOF
18492   else
18494 cat >>confdefs.h <<\_ACEOF
18495 #define HAVE_UINTMAX_T 1
18496 _ACEOF
18498   fi
18502 for ac_header in inttypes.h
18504 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18505 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18506   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
18507 $as_echo_n "checking for $ac_header... " >&6; }
18508 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18509   $as_echo_n "(cached) " >&6
18511 ac_res=`eval 'as_val=${'$as_ac_Header'}
18512                  $as_echo "$as_val"'`
18513                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18514 $as_echo "$ac_res" >&6; }
18515 else
18516   # Is the header compilable?
18517 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
18518 $as_echo_n "checking $ac_header usability... " >&6; }
18519 cat >conftest.$ac_ext <<_ACEOF
18520 /* confdefs.h.  */
18521 _ACEOF
18522 cat confdefs.h >>conftest.$ac_ext
18523 cat >>conftest.$ac_ext <<_ACEOF
18524 /* end confdefs.h.  */
18525 $ac_includes_default
18526 #include <$ac_header>
18527 _ACEOF
18528 rm -f conftest.$ac_objext
18529 if { (ac_try="$ac_compile"
18530 case "(($ac_try" in
18531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18532   *) ac_try_echo=$ac_try;;
18533 esac
18534 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18535 $as_echo "$ac_try_echo") >&5
18536   (eval "$ac_compile") 2>conftest.er1
18537   ac_status=$?
18538   grep -v '^ *+' conftest.er1 >conftest.err
18539   rm -f conftest.er1
18540   cat conftest.err >&5
18541   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18542   (exit $ac_status); } && {
18543          test -z "$ac_c_werror_flag" ||
18544          test ! -s conftest.err
18545        } && test -s conftest.$ac_objext; then
18546   ac_header_compiler=yes
18547 else
18548   $as_echo "$as_me: failed program was:" >&5
18549 sed 's/^/| /' conftest.$ac_ext >&5
18551         ac_header_compiler=no
18554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18555 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18556 $as_echo "$ac_header_compiler" >&6; }
18558 # Is the header present?
18559 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
18560 $as_echo_n "checking $ac_header presence... " >&6; }
18561 cat >conftest.$ac_ext <<_ACEOF
18562 /* confdefs.h.  */
18563 _ACEOF
18564 cat confdefs.h >>conftest.$ac_ext
18565 cat >>conftest.$ac_ext <<_ACEOF
18566 /* end confdefs.h.  */
18567 #include <$ac_header>
18568 _ACEOF
18569 if { (ac_try="$ac_cpp conftest.$ac_ext"
18570 case "(($ac_try" in
18571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18572   *) ac_try_echo=$ac_try;;
18573 esac
18574 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18575 $as_echo "$ac_try_echo") >&5
18576   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18577   ac_status=$?
18578   grep -v '^ *+' conftest.er1 >conftest.err
18579   rm -f conftest.er1
18580   cat conftest.err >&5
18581   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18582   (exit $ac_status); } >/dev/null && {
18583          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18584          test ! -s conftest.err
18585        }; then
18586   ac_header_preproc=yes
18587 else
18588   $as_echo "$as_me: failed program was:" >&5
18589 sed 's/^/| /' conftest.$ac_ext >&5
18591   ac_header_preproc=no
18594 rm -f conftest.err conftest.$ac_ext
18595 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18596 $as_echo "$ac_header_preproc" >&6; }
18598 # So?  What about this header?
18599 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18600   yes:no: )
18601     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18602 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18603     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18604 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18605     ac_header_preproc=yes
18606     ;;
18607   no:yes:* )
18608     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18609 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18610     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18611 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18612     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18613 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18614     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18615 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18616     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18617 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18618     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18619 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18621     ;;
18622 esac
18623 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
18624 $as_echo_n "checking for $ac_header... " >&6; }
18625 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18626   $as_echo_n "(cached) " >&6
18627 else
18628   eval "$as_ac_Header=\$ac_header_preproc"
18630 ac_res=`eval 'as_val=${'$as_ac_Header'}
18631                  $as_echo "$as_val"'`
18632                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18633 $as_echo "$ac_res" >&6; }
18636 as_val=`eval 'as_val=${'$as_ac_Header'}
18637                  $as_echo "$as_val"'`
18638    if test "x$as_val" = x""yes; then
18639   cat >>confdefs.h <<_ACEOF
18640 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18641 _ACEOF
18645 done
18647   if test $ac_cv_header_inttypes_h = yes; then
18648     { $as_echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
18649 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
18650 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
18651   $as_echo_n "(cached) " >&6
18652 else
18654         cat >conftest.$ac_ext <<_ACEOF
18655 /* confdefs.h.  */
18656 _ACEOF
18657 cat confdefs.h >>conftest.$ac_ext
18658 cat >>conftest.$ac_ext <<_ACEOF
18659 /* end confdefs.h.  */
18660 #include <inttypes.h>
18661 #ifdef PRId32
18662 char *p = PRId32;
18663 #endif
18665 int
18666 main ()
18669   ;
18670   return 0;
18672 _ACEOF
18673 rm -f conftest.$ac_objext
18674 if { (ac_try="$ac_compile"
18675 case "(($ac_try" in
18676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18677   *) ac_try_echo=$ac_try;;
18678 esac
18679 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18680 $as_echo "$ac_try_echo") >&5
18681   (eval "$ac_compile") 2>conftest.er1
18682   ac_status=$?
18683   grep -v '^ *+' conftest.er1 >conftest.err
18684   rm -f conftest.er1
18685   cat conftest.err >&5
18686   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18687   (exit $ac_status); } && {
18688          test -z "$ac_c_werror_flag" ||
18689          test ! -s conftest.err
18690        } && test -s conftest.$ac_objext; then
18691   gt_cv_inttypes_pri_broken=no
18692 else
18693   $as_echo "$as_me: failed program was:" >&5
18694 sed 's/^/| /' conftest.$ac_ext >&5
18696         gt_cv_inttypes_pri_broken=yes
18699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18702 { $as_echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
18703 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
18704   fi
18705   if test "$gt_cv_inttypes_pri_broken" = yes; then
18707 cat >>confdefs.h <<_ACEOF
18708 #define PRI_MACROS_BROKEN 1
18709 _ACEOF
18711     PRI_MACROS_BROKEN=1
18712   else
18713     PRI_MACROS_BROKEN=0
18714   fi
18721     # Check whether --enable-threads was given.
18722 if test "${enable_threads+set}" = set; then
18723   enableval=$enable_threads; gl_use_threads=$enableval
18724 else
18725   case "$host_os" in
18726                             osf*) gl_use_threads=no ;;
18727        *)    gl_use_threads=yes ;;
18728      esac
18732   if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
18733     # For using <pthread.h>:
18734     case "$host_os" in
18735       osf*)
18736         # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
18737         # groks <pthread.h>. cc also understands the flag -pthread, but
18738         # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
18739         # 2. putting a flag into CPPFLAGS that has an effect on the linker
18740         # causes the AC_TRY_LINK test below to succeed unexpectedly,
18741         # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
18742         CPPFLAGS="$CPPFLAGS -D_REENTRANT"
18743         ;;
18744     esac
18745     # Some systems optimize for single-threaded programs by default, and
18746     # need special flags to disable these optimizations. For example, the
18747     # definition of 'errno' in <errno.h>.
18748     case "$host_os" in
18749       aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
18750       solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
18751     esac
18752   fi
18758       if test "X$prefix" = "XNONE"; then
18759     acl_final_prefix="$ac_default_prefix"
18760   else
18761     acl_final_prefix="$prefix"
18762   fi
18763   if test "X$exec_prefix" = "XNONE"; then
18764     acl_final_exec_prefix='${prefix}'
18765   else
18766     acl_final_exec_prefix="$exec_prefix"
18767   fi
18768   acl_save_prefix="$prefix"
18769   prefix="$acl_final_prefix"
18770   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
18771   prefix="$acl_save_prefix"
18774 # Check whether --with-gnu-ld was given.
18775 if test "${with_gnu_ld+set}" = set; then
18776   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18777 else
18778   with_gnu_ld=no
18781 # Prepare PATH_SEPARATOR.
18782 # The user is always right.
18783 if test "${PATH_SEPARATOR+set}" != set; then
18784   echo "#! /bin/sh" >conf$$.sh
18785   echo  "exit 0"   >>conf$$.sh
18786   chmod +x conf$$.sh
18787   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18788     PATH_SEPARATOR=';'
18789   else
18790     PATH_SEPARATOR=:
18791   fi
18792   rm -f conf$$.sh
18794 ac_prog=ld
18795 if test "$GCC" = yes; then
18796   # Check if gcc -print-prog-name=ld gives a path.
18797   { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
18798 $as_echo_n "checking for ld used by GCC... " >&6; }
18799   case $host in
18800   *-*-mingw*)
18801     # gcc leaves a trailing carriage return which upsets mingw
18802     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18803   *)
18804     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18805   esac
18806   case $ac_prog in
18807     # Accept absolute paths.
18808     [\\/]* | [A-Za-z]:[\\/]*)
18809       re_direlt='/[^/][^/]*/\.\./'
18810       # Canonicalize the path of ld
18811       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
18812       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18813         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
18814       done
18815       test -z "$LD" && LD="$ac_prog"
18816       ;;
18817   "")
18818     # If it fails, then pretend we aren't using GCC.
18819     ac_prog=ld
18820     ;;
18821   *)
18822     # If it is relative, then search for the first ld in PATH.
18823     with_gnu_ld=unknown
18824     ;;
18825   esac
18826 elif test "$with_gnu_ld" = yes; then
18827   { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
18828 $as_echo_n "checking for GNU ld... " >&6; }
18829 else
18830   { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18831 $as_echo_n "checking for non-GNU ld... " >&6; }
18833 if test "${acl_cv_path_LD+set}" = set; then
18834   $as_echo_n "(cached) " >&6
18835 else
18836   if test -z "$LD"; then
18837   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
18838   for ac_dir in $PATH; do
18839     test -z "$ac_dir" && ac_dir=.
18840     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18841       acl_cv_path_LD="$ac_dir/$ac_prog"
18842       # Check to see if the program is GNU ld.  I'd rather use --version,
18843       # but apparently some GNU ld's only accept -v.
18844       # Break only if it was the GNU/non-GNU ld that we prefer.
18845       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
18846       *GNU* | *'with BFD'*)
18847         test "$with_gnu_ld" != no && break ;;
18848       *)
18849         test "$with_gnu_ld" != yes && break ;;
18850       esac
18851     fi
18852   done
18853   IFS="$ac_save_ifs"
18854 else
18855   acl_cv_path_LD="$LD" # Let the user override the test with a path.
18859 LD="$acl_cv_path_LD"
18860 if test -n "$LD"; then
18861   { $as_echo "$as_me:$LINENO: result: $LD" >&5
18862 $as_echo "$LD" >&6; }
18863 else
18864   { $as_echo "$as_me:$LINENO: result: no" >&5
18865 $as_echo "no" >&6; }
18867 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18868 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18869    { (exit 1); exit 1; }; }
18870 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18871 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18872 if test "${acl_cv_prog_gnu_ld+set}" = set; then
18873   $as_echo_n "(cached) " >&6
18874 else
18875   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
18876 case `$LD -v 2>&1 </dev/null` in
18877 *GNU* | *'with BFD'*)
18878   acl_cv_prog_gnu_ld=yes ;;
18880   acl_cv_prog_gnu_ld=no ;;
18881 esac
18883 { $as_echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
18884 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
18885 with_gnu_ld=$acl_cv_prog_gnu_ld
18890                                                 { $as_echo "$as_me:$LINENO: checking for shared library run path origin" >&5
18891 $as_echo_n "checking for shared library run path origin... " >&6; }
18892 if test "${acl_cv_rpath+set}" = set; then
18893   $as_echo_n "(cached) " >&6
18894 else
18896     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
18897     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
18898     . ./conftest.sh
18899     rm -f ./conftest.sh
18900     acl_cv_rpath=done
18903 { $as_echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
18904 $as_echo "$acl_cv_rpath" >&6; }
18905   wl="$acl_cv_wl"
18906   acl_libext="$acl_cv_libext"
18907   acl_shlibext="$acl_cv_shlibext"
18908   acl_libname_spec="$acl_cv_libname_spec"
18909   acl_library_names_spec="$acl_cv_library_names_spec"
18910   acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
18911   acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
18912   acl_hardcode_direct="$acl_cv_hardcode_direct"
18913   acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
18914     # Check whether --enable-rpath was given.
18915 if test "${enable_rpath+set}" = set; then
18916   enableval=$enable_rpath; :
18917 else
18918   enable_rpath=yes
18923                   acl_libdirstem=lib
18924   searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
18925   if test -n "$searchpath"; then
18926     acl_save_IFS="${IFS=        }"; IFS=":"
18927     for searchdir in $searchpath; do
18928       if test -d "$searchdir"; then
18929         case "$searchdir" in
18930           */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
18931           *) searchdir=`cd "$searchdir" && pwd`
18932              case "$searchdir" in
18933                */lib64 ) acl_libdirstem=lib64 ;;
18934              esac ;;
18935         esac
18936       fi
18937     done
18938     IFS="$acl_save_IFS"
18939   fi
18943   gl_threads_api=none
18944   LIBTHREAD=
18945   LTLIBTHREAD=
18946   LIBMULTITHREAD=
18947   LTLIBMULTITHREAD=
18948   if test "$gl_use_threads" != no; then
18949         { $as_echo "$as_me:$LINENO: checking whether imported symbols can be declared weak" >&5
18950 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
18951     gl_have_weak=no
18952     cat >conftest.$ac_ext <<_ACEOF
18953 /* confdefs.h.  */
18954 _ACEOF
18955 cat confdefs.h >>conftest.$ac_ext
18956 cat >>conftest.$ac_ext <<_ACEOF
18957 /* end confdefs.h.  */
18958 extern void xyzzy ();
18959 #pragma weak xyzzy
18960 int
18961 main ()
18963 xyzzy();
18964   ;
18965   return 0;
18967 _ACEOF
18968 rm -f conftest.$ac_objext conftest$ac_exeext
18969 if { (ac_try="$ac_link"
18970 case "(($ac_try" in
18971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18972   *) ac_try_echo=$ac_try;;
18973 esac
18974 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18975 $as_echo "$ac_try_echo") >&5
18976   (eval "$ac_link") 2>conftest.er1
18977   ac_status=$?
18978   grep -v '^ *+' conftest.er1 >conftest.err
18979   rm -f conftest.er1
18980   cat conftest.err >&5
18981   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18982   (exit $ac_status); } && {
18983          test -z "$ac_c_werror_flag" ||
18984          test ! -s conftest.err
18985        } && test -s conftest$ac_exeext && {
18986          test "$cross_compiling" = yes ||
18987          $as_test_x conftest$ac_exeext
18988        }; then
18989   gl_have_weak=yes
18990 else
18991   $as_echo "$as_me: failed program was:" >&5
18992 sed 's/^/| /' conftest.$ac_ext >&5
18997 rm -rf conftest.dSYM
18998 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18999       conftest$ac_exeext conftest.$ac_ext
19000     { $as_echo "$as_me:$LINENO: result: $gl_have_weak" >&5
19001 $as_echo "$gl_have_weak" >&6; }
19002     if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
19003       # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
19004       # it groks <pthread.h>. It's added above, in gl_LOCK_EARLY_BODY.
19005       if test "${ac_cv_header_pthread_h+set}" = set; then
19006   { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
19007 $as_echo_n "checking for pthread.h... " >&6; }
19008 if test "${ac_cv_header_pthread_h+set}" = set; then
19009   $as_echo_n "(cached) " >&6
19011 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
19012 $as_echo "$ac_cv_header_pthread_h" >&6; }
19013 else
19014   # Is the header compilable?
19015 { $as_echo "$as_me:$LINENO: checking pthread.h usability" >&5
19016 $as_echo_n "checking pthread.h usability... " >&6; }
19017 cat >conftest.$ac_ext <<_ACEOF
19018 /* confdefs.h.  */
19019 _ACEOF
19020 cat confdefs.h >>conftest.$ac_ext
19021 cat >>conftest.$ac_ext <<_ACEOF
19022 /* end confdefs.h.  */
19023 $ac_includes_default
19024 #include <pthread.h>
19025 _ACEOF
19026 rm -f conftest.$ac_objext
19027 if { (ac_try="$ac_compile"
19028 case "(($ac_try" in
19029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19030   *) ac_try_echo=$ac_try;;
19031 esac
19032 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19033 $as_echo "$ac_try_echo") >&5
19034   (eval "$ac_compile") 2>conftest.er1
19035   ac_status=$?
19036   grep -v '^ *+' conftest.er1 >conftest.err
19037   rm -f conftest.er1
19038   cat conftest.err >&5
19039   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19040   (exit $ac_status); } && {
19041          test -z "$ac_c_werror_flag" ||
19042          test ! -s conftest.err
19043        } && test -s conftest.$ac_objext; then
19044   ac_header_compiler=yes
19045 else
19046   $as_echo "$as_me: failed program was:" >&5
19047 sed 's/^/| /' conftest.$ac_ext >&5
19049         ac_header_compiler=no
19052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19053 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19054 $as_echo "$ac_header_compiler" >&6; }
19056 # Is the header present?
19057 { $as_echo "$as_me:$LINENO: checking pthread.h presence" >&5
19058 $as_echo_n "checking pthread.h presence... " >&6; }
19059 cat >conftest.$ac_ext <<_ACEOF
19060 /* confdefs.h.  */
19061 _ACEOF
19062 cat confdefs.h >>conftest.$ac_ext
19063 cat >>conftest.$ac_ext <<_ACEOF
19064 /* end confdefs.h.  */
19065 #include <pthread.h>
19066 _ACEOF
19067 if { (ac_try="$ac_cpp conftest.$ac_ext"
19068 case "(($ac_try" in
19069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19070   *) ac_try_echo=$ac_try;;
19071 esac
19072 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19073 $as_echo "$ac_try_echo") >&5
19074   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19075   ac_status=$?
19076   grep -v '^ *+' conftest.er1 >conftest.err
19077   rm -f conftest.er1
19078   cat conftest.err >&5
19079   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19080   (exit $ac_status); } >/dev/null && {
19081          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19082          test ! -s conftest.err
19083        }; then
19084   ac_header_preproc=yes
19085 else
19086   $as_echo "$as_me: failed program was:" >&5
19087 sed 's/^/| /' conftest.$ac_ext >&5
19089   ac_header_preproc=no
19092 rm -f conftest.err conftest.$ac_ext
19093 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19094 $as_echo "$ac_header_preproc" >&6; }
19096 # So?  What about this header?
19097 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19098   yes:no: )
19099     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
19100 $as_echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19101     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
19102 $as_echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
19103     ac_header_preproc=yes
19104     ;;
19105   no:yes:* )
19106     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
19107 $as_echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
19108     { $as_echo "$as_me:$LINENO: WARNING: pthread.h:     check for missing prerequisite headers?" >&5
19109 $as_echo "$as_me: WARNING: pthread.h:     check for missing prerequisite headers?" >&2;}
19110     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
19111 $as_echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
19112     { $as_echo "$as_me:$LINENO: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&5
19113 $as_echo "$as_me: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&2;}
19114     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
19115 $as_echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
19116     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
19117 $as_echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
19119     ;;
19120 esac
19121 { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
19122 $as_echo_n "checking for pthread.h... " >&6; }
19123 if test "${ac_cv_header_pthread_h+set}" = set; then
19124   $as_echo_n "(cached) " >&6
19125 else
19126   ac_cv_header_pthread_h=$ac_header_preproc
19128 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
19129 $as_echo "$ac_cv_header_pthread_h" >&6; }
19132 if test "x$ac_cv_header_pthread_h" = x""yes; then
19133   gl_have_pthread_h=yes
19134 else
19135   gl_have_pthread_h=no
19139       if test "$gl_have_pthread_h" = yes; then
19140         # Other possible tests:
19141         #   -lpthreads (FSU threads, PCthreads)
19142         #   -lgthreads
19143         gl_have_pthread=
19144         # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
19145         # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
19146         # the second one only in libpthread, and lock.c needs it.
19147         cat >conftest.$ac_ext <<_ACEOF
19148 /* confdefs.h.  */
19149 _ACEOF
19150 cat confdefs.h >>conftest.$ac_ext
19151 cat >>conftest.$ac_ext <<_ACEOF
19152 /* end confdefs.h.  */
19153 #include <pthread.h>
19154 int
19155 main ()
19157 pthread_mutex_lock((pthread_mutex_t*)0);
19158            pthread_mutexattr_init((pthread_mutexattr_t*)0);
19159   ;
19160   return 0;
19162 _ACEOF
19163 rm -f conftest.$ac_objext conftest$ac_exeext
19164 if { (ac_try="$ac_link"
19165 case "(($ac_try" in
19166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19167   *) ac_try_echo=$ac_try;;
19168 esac
19169 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19170 $as_echo "$ac_try_echo") >&5
19171   (eval "$ac_link") 2>conftest.er1
19172   ac_status=$?
19173   grep -v '^ *+' conftest.er1 >conftest.err
19174   rm -f conftest.er1
19175   cat conftest.err >&5
19176   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19177   (exit $ac_status); } && {
19178          test -z "$ac_c_werror_flag" ||
19179          test ! -s conftest.err
19180        } && test -s conftest$ac_exeext && {
19181          test "$cross_compiling" = yes ||
19182          $as_test_x conftest$ac_exeext
19183        }; then
19184   gl_have_pthread=yes
19185 else
19186   $as_echo "$as_me: failed program was:" >&5
19187 sed 's/^/| /' conftest.$ac_ext >&5
19192 rm -rf conftest.dSYM
19193 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19194       conftest$ac_exeext conftest.$ac_ext
19195         # Test for libpthread by looking for pthread_kill. (Not pthread_self,
19196         # since it is defined as a macro on OSF/1.)
19197         if test -n "$gl_have_pthread"; then
19198           # The program links fine without libpthread. But it may actually
19199           # need to link with libpthread in order to create multiple threads.
19200           { $as_echo "$as_me:$LINENO: checking for pthread_kill in -lpthread" >&5
19201 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
19202 if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then
19203   $as_echo_n "(cached) " >&6
19204 else
19205   ac_check_lib_save_LIBS=$LIBS
19206 LIBS="-lpthread  $LIBS"
19207 cat >conftest.$ac_ext <<_ACEOF
19208 /* confdefs.h.  */
19209 _ACEOF
19210 cat confdefs.h >>conftest.$ac_ext
19211 cat >>conftest.$ac_ext <<_ACEOF
19212 /* end confdefs.h.  */
19214 /* Override any GCC internal prototype to avoid an error.
19215    Use char because int might match the return type of a GCC
19216    builtin and then its argument prototype would still apply.  */
19217 #ifdef __cplusplus
19218 extern "C"
19219 #endif
19220 char pthread_kill ();
19221 int
19222 main ()
19224 return pthread_kill ();
19225   ;
19226   return 0;
19228 _ACEOF
19229 rm -f conftest.$ac_objext conftest$ac_exeext
19230 if { (ac_try="$ac_link"
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_link") 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_exeext && {
19247          test "$cross_compiling" = yes ||
19248          $as_test_x conftest$ac_exeext
19249        }; then
19250   ac_cv_lib_pthread_pthread_kill=yes
19251 else
19252   $as_echo "$as_me: failed program was:" >&5
19253 sed 's/^/| /' conftest.$ac_ext >&5
19255         ac_cv_lib_pthread_pthread_kill=no
19258 rm -rf conftest.dSYM
19259 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19260       conftest$ac_exeext conftest.$ac_ext
19261 LIBS=$ac_check_lib_save_LIBS
19263 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_kill" >&5
19264 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
19265 if test "x$ac_cv_lib_pthread_pthread_kill" = x""yes; then
19266   LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
19267              # On Solaris and HP-UX, most pthread functions exist also in libc.
19268              # Therefore pthread_in_use() needs to actually try to create a
19269              # thread: pthread_create from libc will fail, whereas
19270              # pthread_create will actually create a thread.
19271              case "$host_os" in
19272                solaris* | hpux*)
19274 cat >>confdefs.h <<\_ACEOF
19275 #define PTHREAD_IN_USE_DETECTION_HARD 1
19276 _ACEOF
19278              esac
19282         else
19283           # Some library is needed. Try libpthread and libc_r.
19284           { $as_echo "$as_me:$LINENO: checking for pthread_kill in -lpthread" >&5
19285 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
19286 if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then
19287   $as_echo_n "(cached) " >&6
19288 else
19289   ac_check_lib_save_LIBS=$LIBS
19290 LIBS="-lpthread  $LIBS"
19291 cat >conftest.$ac_ext <<_ACEOF
19292 /* confdefs.h.  */
19293 _ACEOF
19294 cat confdefs.h >>conftest.$ac_ext
19295 cat >>conftest.$ac_ext <<_ACEOF
19296 /* end confdefs.h.  */
19298 /* Override any GCC internal prototype to avoid an error.
19299    Use char because int might match the return type of a GCC
19300    builtin and then its argument prototype would still apply.  */
19301 #ifdef __cplusplus
19302 extern "C"
19303 #endif
19304 char pthread_kill ();
19305 int
19306 main ()
19308 return pthread_kill ();
19309   ;
19310   return 0;
19312 _ACEOF
19313 rm -f conftest.$ac_objext conftest$ac_exeext
19314 if { (ac_try="$ac_link"
19315 case "(($ac_try" in
19316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19317   *) ac_try_echo=$ac_try;;
19318 esac
19319 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19320 $as_echo "$ac_try_echo") >&5
19321   (eval "$ac_link") 2>conftest.er1
19322   ac_status=$?
19323   grep -v '^ *+' conftest.er1 >conftest.err
19324   rm -f conftest.er1
19325   cat conftest.err >&5
19326   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19327   (exit $ac_status); } && {
19328          test -z "$ac_c_werror_flag" ||
19329          test ! -s conftest.err
19330        } && test -s conftest$ac_exeext && {
19331          test "$cross_compiling" = yes ||
19332          $as_test_x conftest$ac_exeext
19333        }; then
19334   ac_cv_lib_pthread_pthread_kill=yes
19335 else
19336   $as_echo "$as_me: failed program was:" >&5
19337 sed 's/^/| /' conftest.$ac_ext >&5
19339         ac_cv_lib_pthread_pthread_kill=no
19342 rm -rf conftest.dSYM
19343 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19344       conftest$ac_exeext conftest.$ac_ext
19345 LIBS=$ac_check_lib_save_LIBS
19347 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_kill" >&5
19348 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
19349 if test "x$ac_cv_lib_pthread_pthread_kill" = x""yes; then
19350   gl_have_pthread=yes
19351              LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
19352              LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
19355           if test -z "$gl_have_pthread"; then
19356             # For FreeBSD 4.
19357             { $as_echo "$as_me:$LINENO: checking for pthread_kill in -lc_r" >&5
19358 $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
19359 if test "${ac_cv_lib_c_r_pthread_kill+set}" = set; then
19360   $as_echo_n "(cached) " >&6
19361 else
19362   ac_check_lib_save_LIBS=$LIBS
19363 LIBS="-lc_r  $LIBS"
19364 cat >conftest.$ac_ext <<_ACEOF
19365 /* confdefs.h.  */
19366 _ACEOF
19367 cat confdefs.h >>conftest.$ac_ext
19368 cat >>conftest.$ac_ext <<_ACEOF
19369 /* end confdefs.h.  */
19371 /* Override any GCC internal prototype to avoid an error.
19372    Use char because int might match the return type of a GCC
19373    builtin and then its argument prototype would still apply.  */
19374 #ifdef __cplusplus
19375 extern "C"
19376 #endif
19377 char pthread_kill ();
19378 int
19379 main ()
19381 return pthread_kill ();
19382   ;
19383   return 0;
19385 _ACEOF
19386 rm -f conftest.$ac_objext conftest$ac_exeext
19387 if { (ac_try="$ac_link"
19388 case "(($ac_try" in
19389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19390   *) ac_try_echo=$ac_try;;
19391 esac
19392 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19393 $as_echo "$ac_try_echo") >&5
19394   (eval "$ac_link") 2>conftest.er1
19395   ac_status=$?
19396   grep -v '^ *+' conftest.er1 >conftest.err
19397   rm -f conftest.er1
19398   cat conftest.err >&5
19399   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19400   (exit $ac_status); } && {
19401          test -z "$ac_c_werror_flag" ||
19402          test ! -s conftest.err
19403        } && test -s conftest$ac_exeext && {
19404          test "$cross_compiling" = yes ||
19405          $as_test_x conftest$ac_exeext
19406        }; then
19407   ac_cv_lib_c_r_pthread_kill=yes
19408 else
19409   $as_echo "$as_me: failed program was:" >&5
19410 sed 's/^/| /' conftest.$ac_ext >&5
19412         ac_cv_lib_c_r_pthread_kill=no
19415 rm -rf conftest.dSYM
19416 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19417       conftest$ac_exeext conftest.$ac_ext
19418 LIBS=$ac_check_lib_save_LIBS
19420 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_kill" >&5
19421 $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
19422 if test "x$ac_cv_lib_c_r_pthread_kill" = x""yes; then
19423   gl_have_pthread=yes
19424                LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
19425                LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
19428           fi
19429         fi
19430         if test -n "$gl_have_pthread"; then
19431           gl_threads_api=posix
19433 cat >>confdefs.h <<\_ACEOF
19434 #define USE_POSIX_THREADS 1
19435 _ACEOF
19437           if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
19438             if test $gl_have_weak = yes; then
19440 cat >>confdefs.h <<\_ACEOF
19441 #define USE_POSIX_THREADS_WEAK 1
19442 _ACEOF
19444               LIBTHREAD=
19445               LTLIBTHREAD=
19446             fi
19447           fi
19448           # OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the
19449           # pthread_rwlock_* functions.
19450           { $as_echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5
19451 $as_echo_n "checking for pthread_rwlock_t... " >&6; }
19452 if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then
19453   $as_echo_n "(cached) " >&6
19454 else
19455   ac_cv_type_pthread_rwlock_t=no
19456 cat >conftest.$ac_ext <<_ACEOF
19457 /* confdefs.h.  */
19458 _ACEOF
19459 cat confdefs.h >>conftest.$ac_ext
19460 cat >>conftest.$ac_ext <<_ACEOF
19461 /* end confdefs.h.  */
19462 #include <pthread.h>
19464 int
19465 main ()
19467 if (sizeof (pthread_rwlock_t))
19468        return 0;
19469   ;
19470   return 0;
19472 _ACEOF
19473 rm -f conftest.$ac_objext
19474 if { (ac_try="$ac_compile"
19475 case "(($ac_try" in
19476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19477   *) ac_try_echo=$ac_try;;
19478 esac
19479 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19480 $as_echo "$ac_try_echo") >&5
19481   (eval "$ac_compile") 2>conftest.er1
19482   ac_status=$?
19483   grep -v '^ *+' conftest.er1 >conftest.err
19484   rm -f conftest.er1
19485   cat conftest.err >&5
19486   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19487   (exit $ac_status); } && {
19488          test -z "$ac_c_werror_flag" ||
19489          test ! -s conftest.err
19490        } && test -s conftest.$ac_objext; then
19491   cat >conftest.$ac_ext <<_ACEOF
19492 /* confdefs.h.  */
19493 _ACEOF
19494 cat confdefs.h >>conftest.$ac_ext
19495 cat >>conftest.$ac_ext <<_ACEOF
19496 /* end confdefs.h.  */
19497 #include <pthread.h>
19499 int
19500 main ()
19502 if (sizeof ((pthread_rwlock_t)))
19503           return 0;
19504   ;
19505   return 0;
19507 _ACEOF
19508 rm -f conftest.$ac_objext
19509 if { (ac_try="$ac_compile"
19510 case "(($ac_try" in
19511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19512   *) ac_try_echo=$ac_try;;
19513 esac
19514 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19515 $as_echo "$ac_try_echo") >&5
19516   (eval "$ac_compile") 2>conftest.er1
19517   ac_status=$?
19518   grep -v '^ *+' conftest.er1 >conftest.err
19519   rm -f conftest.er1
19520   cat conftest.err >&5
19521   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19522   (exit $ac_status); } && {
19523          test -z "$ac_c_werror_flag" ||
19524          test ! -s conftest.err
19525        } && test -s conftest.$ac_objext; then
19526   :
19527 else
19528   $as_echo "$as_me: failed program was:" >&5
19529 sed 's/^/| /' conftest.$ac_ext >&5
19531         ac_cv_type_pthread_rwlock_t=yes
19534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19535 else
19536   $as_echo "$as_me: failed program was:" >&5
19537 sed 's/^/| /' conftest.$ac_ext >&5
19542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19544 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5
19545 $as_echo "$ac_cv_type_pthread_rwlock_t" >&6; }
19546 if test "x$ac_cv_type_pthread_rwlock_t" = x""yes; then
19548 cat >>confdefs.h <<\_ACEOF
19549 #define HAVE_PTHREAD_RWLOCK 1
19550 _ACEOF
19554           # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
19555           cat >conftest.$ac_ext <<_ACEOF
19556 /* confdefs.h.  */
19557 _ACEOF
19558 cat confdefs.h >>conftest.$ac_ext
19559 cat >>conftest.$ac_ext <<_ACEOF
19560 /* end confdefs.h.  */
19561 #include <pthread.h>
19562 int
19563 main ()
19565 #if __FreeBSD__ == 4
19566 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
19567 #else
19568 int x = (int)PTHREAD_MUTEX_RECURSIVE;
19569 return !x;
19570 #endif
19571   ;
19572   return 0;
19574 _ACEOF
19575 rm -f conftest.$ac_objext
19576 if { (ac_try="$ac_compile"
19577 case "(($ac_try" in
19578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19579   *) ac_try_echo=$ac_try;;
19580 esac
19581 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19582 $as_echo "$ac_try_echo") >&5
19583   (eval "$ac_compile") 2>conftest.er1
19584   ac_status=$?
19585   grep -v '^ *+' conftest.er1 >conftest.err
19586   rm -f conftest.er1
19587   cat conftest.err >&5
19588   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19589   (exit $ac_status); } && {
19590          test -z "$ac_c_werror_flag" ||
19591          test ! -s conftest.err
19592        } && test -s conftest.$ac_objext; then
19594 cat >>confdefs.h <<\_ACEOF
19595 #define HAVE_PTHREAD_MUTEX_RECURSIVE 1
19596 _ACEOF
19598 else
19599   $as_echo "$as_me: failed program was:" >&5
19600 sed 's/^/| /' conftest.$ac_ext >&5
19605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19606         fi
19607       fi
19608     fi
19609     if test -z "$gl_have_pthread"; then
19610       if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
19611         gl_have_solaristhread=
19612         gl_save_LIBS="$LIBS"
19613         LIBS="$LIBS -lthread"
19614         cat >conftest.$ac_ext <<_ACEOF
19615 /* confdefs.h.  */
19616 _ACEOF
19617 cat confdefs.h >>conftest.$ac_ext
19618 cat >>conftest.$ac_ext <<_ACEOF
19619 /* end confdefs.h.  */
19620 #include <thread.h>
19621 #include <synch.h>
19622 int
19623 main ()
19625 thr_self();
19626   ;
19627   return 0;
19629 _ACEOF
19630 rm -f conftest.$ac_objext conftest$ac_exeext
19631 if { (ac_try="$ac_link"
19632 case "(($ac_try" in
19633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19634   *) ac_try_echo=$ac_try;;
19635 esac
19636 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19637 $as_echo "$ac_try_echo") >&5
19638   (eval "$ac_link") 2>conftest.er1
19639   ac_status=$?
19640   grep -v '^ *+' conftest.er1 >conftest.err
19641   rm -f conftest.er1
19642   cat conftest.err >&5
19643   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19644   (exit $ac_status); } && {
19645          test -z "$ac_c_werror_flag" ||
19646          test ! -s conftest.err
19647        } && test -s conftest$ac_exeext && {
19648          test "$cross_compiling" = yes ||
19649          $as_test_x conftest$ac_exeext
19650        }; then
19651   gl_have_solaristhread=yes
19652 else
19653   $as_echo "$as_me: failed program was:" >&5
19654 sed 's/^/| /' conftest.$ac_ext >&5
19659 rm -rf conftest.dSYM
19660 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19661       conftest$ac_exeext conftest.$ac_ext
19662         LIBS="$gl_save_LIBS"
19663         if test -n "$gl_have_solaristhread"; then
19664           gl_threads_api=solaris
19665           LIBTHREAD=-lthread
19666           LTLIBTHREAD=-lthread
19667           LIBMULTITHREAD="$LIBTHREAD"
19668           LTLIBMULTITHREAD="$LTLIBTHREAD"
19670 cat >>confdefs.h <<\_ACEOF
19671 #define USE_SOLARIS_THREADS 1
19672 _ACEOF
19674           if test $gl_have_weak = yes; then
19676 cat >>confdefs.h <<\_ACEOF
19677 #define USE_SOLARIS_THREADS_WEAK 1
19678 _ACEOF
19680             LIBTHREAD=
19681             LTLIBTHREAD=
19682           fi
19683         fi
19684       fi
19685     fi
19686     if test "$gl_use_threads" = pth; then
19687       gl_save_CPPFLAGS="$CPPFLAGS"
19693   { $as_echo "$as_me:$LINENO: checking how to link with libpth" >&5
19694 $as_echo_n "checking how to link with libpth... " >&6; }
19695 if test "${ac_cv_libpth_libs+set}" = set; then
19696   $as_echo_n "(cached) " >&6
19697 else
19703     use_additional=yes
19705   acl_save_prefix="$prefix"
19706   prefix="$acl_final_prefix"
19707   acl_save_exec_prefix="$exec_prefix"
19708   exec_prefix="$acl_final_exec_prefix"
19710     eval additional_includedir=\"$includedir\"
19711     eval additional_libdir=\"$libdir\"
19713   exec_prefix="$acl_save_exec_prefix"
19714   prefix="$acl_save_prefix"
19717 # Check whether --with-libpth-prefix was given.
19718 if test "${with_libpth_prefix+set}" = set; then
19719   withval=$with_libpth_prefix;
19720     if test "X$withval" = "Xno"; then
19721       use_additional=no
19722     else
19723       if test "X$withval" = "X"; then
19725   acl_save_prefix="$prefix"
19726   prefix="$acl_final_prefix"
19727   acl_save_exec_prefix="$exec_prefix"
19728   exec_prefix="$acl_final_exec_prefix"
19730           eval additional_includedir=\"$includedir\"
19731           eval additional_libdir=\"$libdir\"
19733   exec_prefix="$acl_save_exec_prefix"
19734   prefix="$acl_save_prefix"
19736       else
19737         additional_includedir="$withval/include"
19738         additional_libdir="$withval/$acl_libdirstem"
19739       fi
19740     fi
19744       LIBPTH=
19745   LTLIBPTH=
19746   INCPTH=
19747   LIBPTH_PREFIX=
19748   rpathdirs=
19749   ltrpathdirs=
19750   names_already_handled=
19751   names_next_round='pth '
19752   while test -n "$names_next_round"; do
19753     names_this_round="$names_next_round"
19754     names_next_round=
19755     for name in $names_this_round; do
19756       already_handled=
19757       for n in $names_already_handled; do
19758         if test "$n" = "$name"; then
19759           already_handled=yes
19760           break
19761         fi
19762       done
19763       if test -z "$already_handled"; then
19764         names_already_handled="$names_already_handled $name"
19765                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
19766         eval value=\"\$HAVE_LIB$uppername\"
19767         if test -n "$value"; then
19768           if test "$value" = yes; then
19769             eval value=\"\$LIB$uppername\"
19770             test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
19771             eval value=\"\$LTLIB$uppername\"
19772             test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
19773           else
19774                                     :
19775           fi
19776         else
19777                               found_dir=
19778           found_la=
19779           found_so=
19780           found_a=
19781           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
19782           if test -n "$acl_shlibext"; then
19783             shrext=".$acl_shlibext"             # typically: shrext=.so
19784           else
19785             shrext=
19786           fi
19787           if test $use_additional = yes; then
19788             dir="$additional_libdir"
19789                                     if test -n "$acl_shlibext"; then
19790               if test -f "$dir/$libname$shrext"; then
19791                 found_dir="$dir"
19792                 found_so="$dir/$libname$shrext"
19793               else
19794                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
19795                   ver=`(cd "$dir" && \
19796                         for f in "$libname$shrext".*; do echo "$f"; done \
19797                         | sed -e "s,^$libname$shrext\\\\.,," \
19798                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
19799                         | sed 1q ) 2>/dev/null`
19800                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
19801                     found_dir="$dir"
19802                     found_so="$dir/$libname$shrext.$ver"
19803                   fi
19804                 else
19805                   eval library_names=\"$acl_library_names_spec\"
19806                   for f in $library_names; do
19807                     if test -f "$dir/$f"; then
19808                       found_dir="$dir"
19809                       found_so="$dir/$f"
19810                       break
19811                     fi
19812                   done
19813                 fi
19814               fi
19815             fi
19816                         if test "X$found_dir" = "X"; then
19817               if test -f "$dir/$libname.$acl_libext"; then
19818                 found_dir="$dir"
19819                 found_a="$dir/$libname.$acl_libext"
19820               fi
19821             fi
19822             if test "X$found_dir" != "X"; then
19823               if test -f "$dir/$libname.la"; then
19824                 found_la="$dir/$libname.la"
19825               fi
19826             fi
19827           fi
19828           if test "X$found_dir" = "X"; then
19829             for x in $LDFLAGS $LTLIBPTH; do
19831   acl_save_prefix="$prefix"
19832   prefix="$acl_final_prefix"
19833   acl_save_exec_prefix="$exec_prefix"
19834   exec_prefix="$acl_final_exec_prefix"
19835   eval x=\"$x\"
19836   exec_prefix="$acl_save_exec_prefix"
19837   prefix="$acl_save_prefix"
19839               case "$x" in
19840                 -L*)
19841                   dir=`echo "X$x" | sed -e 's/^X-L//'`
19842                                     if test -n "$acl_shlibext"; then
19843                     if test -f "$dir/$libname$shrext"; then
19844                       found_dir="$dir"
19845                       found_so="$dir/$libname$shrext"
19846                     else
19847                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
19848                         ver=`(cd "$dir" && \
19849                               for f in "$libname$shrext".*; do echo "$f"; done \
19850                               | sed -e "s,^$libname$shrext\\\\.,," \
19851                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
19852                               | sed 1q ) 2>/dev/null`
19853                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
19854                           found_dir="$dir"
19855                           found_so="$dir/$libname$shrext.$ver"
19856                         fi
19857                       else
19858                         eval library_names=\"$acl_library_names_spec\"
19859                         for f in $library_names; do
19860                           if test -f "$dir/$f"; then
19861                             found_dir="$dir"
19862                             found_so="$dir/$f"
19863                             break
19864                           fi
19865                         done
19866                       fi
19867                     fi
19868                   fi
19869                                     if test "X$found_dir" = "X"; then
19870                     if test -f "$dir/$libname.$acl_libext"; then
19871                       found_dir="$dir"
19872                       found_a="$dir/$libname.$acl_libext"
19873                     fi
19874                   fi
19875                   if test "X$found_dir" != "X"; then
19876                     if test -f "$dir/$libname.la"; then
19877                       found_la="$dir/$libname.la"
19878                     fi
19879                   fi
19880                   ;;
19881               esac
19882               if test "X$found_dir" != "X"; then
19883                 break
19884               fi
19885             done
19886           fi
19887           if test "X$found_dir" != "X"; then
19888                         LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
19889             if test "X$found_so" != "X"; then
19890                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
19891                                 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
19892               else
19893                                                                                 haveit=
19894                 for x in $ltrpathdirs; do
19895                   if test "X$x" = "X$found_dir"; then
19896                     haveit=yes
19897                     break
19898                   fi
19899                 done
19900                 if test -z "$haveit"; then
19901                   ltrpathdirs="$ltrpathdirs $found_dir"
19902                 fi
19903                                 if test "$acl_hardcode_direct" = yes; then
19904                                                       LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
19905                 else
19906                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
19907                                                             LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
19908                                                             haveit=
19909                     for x in $rpathdirs; do
19910                       if test "X$x" = "X$found_dir"; then
19911                         haveit=yes
19912                         break
19913                       fi
19914                     done
19915                     if test -z "$haveit"; then
19916                       rpathdirs="$rpathdirs $found_dir"
19917                     fi
19918                   else
19919                                                                                 haveit=
19920                     for x in $LDFLAGS $LIBPTH; do
19922   acl_save_prefix="$prefix"
19923   prefix="$acl_final_prefix"
19924   acl_save_exec_prefix="$exec_prefix"
19925   exec_prefix="$acl_final_exec_prefix"
19926   eval x=\"$x\"
19927   exec_prefix="$acl_save_exec_prefix"
19928   prefix="$acl_save_prefix"
19930                       if test "X$x" = "X-L$found_dir"; then
19931                         haveit=yes
19932                         break
19933                       fi
19934                     done
19935                     if test -z "$haveit"; then
19936                       LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
19937                     fi
19938                     if test "$acl_hardcode_minus_L" != no; then
19939                                                                                         LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
19940                     else
19941                                                                                                                                                                                 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
19942                     fi
19943                   fi
19944                 fi
19945               fi
19946             else
19947               if test "X$found_a" != "X"; then
19948                                 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
19949               else
19950                                                 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
19951               fi
19952             fi
19953                         additional_includedir=
19954             case "$found_dir" in
19955               */$acl_libdirstem | */$acl_libdirstem/)
19956                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
19957                 LIBPTH_PREFIX="$basedir"
19958                 additional_includedir="$basedir/include"
19959                 ;;
19960             esac
19961             if test "X$additional_includedir" != "X"; then
19962                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
19963                 haveit=
19964                 if test "X$additional_includedir" = "X/usr/local/include"; then
19965                   if test -n "$GCC"; then
19966                     case $host_os in
19967                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
19968                     esac
19969                   fi
19970                 fi
19971                 if test -z "$haveit"; then
19972                   for x in $CPPFLAGS $INCPTH; do
19974   acl_save_prefix="$prefix"
19975   prefix="$acl_final_prefix"
19976   acl_save_exec_prefix="$exec_prefix"
19977   exec_prefix="$acl_final_exec_prefix"
19978   eval x=\"$x\"
19979   exec_prefix="$acl_save_exec_prefix"
19980   prefix="$acl_save_prefix"
19982                     if test "X$x" = "X-I$additional_includedir"; then
19983                       haveit=yes
19984                       break
19985                     fi
19986                   done
19987                   if test -z "$haveit"; then
19988                     if test -d "$additional_includedir"; then
19989                                             INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
19990                     fi
19991                   fi
19992                 fi
19993               fi
19994             fi
19995                         if test -n "$found_la"; then
19996                                                         save_libdir="$libdir"
19997               case "$found_la" in
19998                 */* | *\\*) . "$found_la" ;;
19999                 *) . "./$found_la" ;;
20000               esac
20001               libdir="$save_libdir"
20002                             for dep in $dependency_libs; do
20003                 case "$dep" in
20004                   -L*)
20005                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
20006                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
20007                       haveit=
20008                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
20009                         if test -n "$GCC"; then
20010                           case $host_os in
20011                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
20012                           esac
20013                         fi
20014                       fi
20015                       if test -z "$haveit"; then
20016                         haveit=
20017                         for x in $LDFLAGS $LIBPTH; do
20019   acl_save_prefix="$prefix"
20020   prefix="$acl_final_prefix"
20021   acl_save_exec_prefix="$exec_prefix"
20022   exec_prefix="$acl_final_exec_prefix"
20023   eval x=\"$x\"
20024   exec_prefix="$acl_save_exec_prefix"
20025   prefix="$acl_save_prefix"
20027                           if test "X$x" = "X-L$additional_libdir"; then
20028                             haveit=yes
20029                             break
20030                           fi
20031                         done
20032                         if test -z "$haveit"; then
20033                           if test -d "$additional_libdir"; then
20034                                                         LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
20035                           fi
20036                         fi
20037                         haveit=
20038                         for x in $LDFLAGS $LTLIBPTH; do
20040   acl_save_prefix="$prefix"
20041   prefix="$acl_final_prefix"
20042   acl_save_exec_prefix="$exec_prefix"
20043   exec_prefix="$acl_final_exec_prefix"
20044   eval x=\"$x\"
20045   exec_prefix="$acl_save_exec_prefix"
20046   prefix="$acl_save_prefix"
20048                           if test "X$x" = "X-L$additional_libdir"; then
20049                             haveit=yes
20050                             break
20051                           fi
20052                         done
20053                         if test -z "$haveit"; then
20054                           if test -d "$additional_libdir"; then
20055                                                         LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
20056                           fi
20057                         fi
20058                       fi
20059                     fi
20060                     ;;
20061                   -R*)
20062                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
20063                     if test "$enable_rpath" != no; then
20064                                                                   haveit=
20065                       for x in $rpathdirs; do
20066                         if test "X$x" = "X$dir"; then
20067                           haveit=yes
20068                           break
20069                         fi
20070                       done
20071                       if test -z "$haveit"; then
20072                         rpathdirs="$rpathdirs $dir"
20073                       fi
20074                                                                   haveit=
20075                       for x in $ltrpathdirs; do
20076                         if test "X$x" = "X$dir"; then
20077                           haveit=yes
20078                           break
20079                         fi
20080                       done
20081                       if test -z "$haveit"; then
20082                         ltrpathdirs="$ltrpathdirs $dir"
20083                       fi
20084                     fi
20085                     ;;
20086                   -l*)
20087                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
20088                     ;;
20089                   *.la)
20090                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
20091                     ;;
20092                   *)
20093                                         LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
20094                     LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
20095                     ;;
20096                 esac
20097               done
20098             fi
20099           else
20100                                                             LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
20101             LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
20102           fi
20103         fi
20104       fi
20105     done
20106   done
20107   if test "X$rpathdirs" != "X"; then
20108     if test -n "$acl_hardcode_libdir_separator"; then
20109                         alldirs=
20110       for found_dir in $rpathdirs; do
20111         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
20112       done
20113             acl_save_libdir="$libdir"
20114       libdir="$alldirs"
20115       eval flag=\"$acl_hardcode_libdir_flag_spec\"
20116       libdir="$acl_save_libdir"
20117       LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
20118     else
20119             for found_dir in $rpathdirs; do
20120         acl_save_libdir="$libdir"
20121         libdir="$found_dir"
20122         eval flag=\"$acl_hardcode_libdir_flag_spec\"
20123         libdir="$acl_save_libdir"
20124         LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
20125       done
20126     fi
20127   fi
20128   if test "X$ltrpathdirs" != "X"; then
20129             for found_dir in $ltrpathdirs; do
20130       LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
20131     done
20132   fi
20134     ac_cv_libpth_libs="$LIBPTH"
20135     ac_cv_libpth_ltlibs="$LTLIBPTH"
20136     ac_cv_libpth_cppflags="$INCPTH"
20137     ac_cv_libpth_prefix="$LIBPTH_PREFIX"
20140 { $as_echo "$as_me:$LINENO: result: $ac_cv_libpth_libs" >&5
20141 $as_echo "$ac_cv_libpth_libs" >&6; }
20142   LIBPTH="$ac_cv_libpth_libs"
20143   LTLIBPTH="$ac_cv_libpth_ltlibs"
20144   INCPTH="$ac_cv_libpth_cppflags"
20145   LIBPTH_PREFIX="$ac_cv_libpth_prefix"
20147   for element in $INCPTH; do
20148     haveit=
20149     for x in $CPPFLAGS; do
20151   acl_save_prefix="$prefix"
20152   prefix="$acl_final_prefix"
20153   acl_save_exec_prefix="$exec_prefix"
20154   exec_prefix="$acl_final_exec_prefix"
20155   eval x=\"$x\"
20156   exec_prefix="$acl_save_exec_prefix"
20157   prefix="$acl_save_prefix"
20159       if test "X$x" = "X$element"; then
20160         haveit=yes
20161         break
20162       fi
20163     done
20164     if test -z "$haveit"; then
20165       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
20166     fi
20167   done
20172       HAVE_LIBPTH=yes
20176       gl_have_pth=
20177       gl_save_LIBS="$LIBS"
20178       LIBS="$LIBS -lpth"
20179       cat >conftest.$ac_ext <<_ACEOF
20180 /* confdefs.h.  */
20181 _ACEOF
20182 cat confdefs.h >>conftest.$ac_ext
20183 cat >>conftest.$ac_ext <<_ACEOF
20184 /* end confdefs.h.  */
20185 #include <pth.h>
20186 int
20187 main ()
20189 pth_self();
20190   ;
20191   return 0;
20193 _ACEOF
20194 rm -f conftest.$ac_objext conftest$ac_exeext
20195 if { (ac_try="$ac_link"
20196 case "(($ac_try" in
20197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20198   *) ac_try_echo=$ac_try;;
20199 esac
20200 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20201 $as_echo "$ac_try_echo") >&5
20202   (eval "$ac_link") 2>conftest.er1
20203   ac_status=$?
20204   grep -v '^ *+' conftest.er1 >conftest.err
20205   rm -f conftest.er1
20206   cat conftest.err >&5
20207   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20208   (exit $ac_status); } && {
20209          test -z "$ac_c_werror_flag" ||
20210          test ! -s conftest.err
20211        } && test -s conftest$ac_exeext && {
20212          test "$cross_compiling" = yes ||
20213          $as_test_x conftest$ac_exeext
20214        }; then
20215   gl_have_pth=yes
20216 else
20217   $as_echo "$as_me: failed program was:" >&5
20218 sed 's/^/| /' conftest.$ac_ext >&5
20223 rm -rf conftest.dSYM
20224 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20225       conftest$ac_exeext conftest.$ac_ext
20226       LIBS="$gl_save_LIBS"
20227       if test -n "$gl_have_pth"; then
20228         gl_threads_api=pth
20229         LIBTHREAD="$LIBPTH"
20230         LTLIBTHREAD="$LTLIBPTH"
20231         LIBMULTITHREAD="$LIBTHREAD"
20232         LTLIBMULTITHREAD="$LTLIBTHREAD"
20234 cat >>confdefs.h <<\_ACEOF
20235 #define USE_PTH_THREADS 1
20236 _ACEOF
20238         if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
20239           if test $gl_have_weak = yes; then
20241 cat >>confdefs.h <<\_ACEOF
20242 #define USE_PTH_THREADS_WEAK 1
20243 _ACEOF
20245             LIBTHREAD=
20246             LTLIBTHREAD=
20247           fi
20248         fi
20249       else
20250         CPPFLAGS="$gl_save_CPPFLAGS"
20251       fi
20252     fi
20253     if test -z "$gl_have_pthread"; then
20254       if test "$gl_use_threads" = yes || test "$gl_use_threads" = win32; then
20255         if { case "$host_os" in
20256                mingw*) true;;
20257                *) false;;
20258              esac
20259            }; then
20260           gl_threads_api=win32
20262 cat >>confdefs.h <<\_ACEOF
20263 #define USE_WIN32_THREADS 1
20264 _ACEOF
20266         fi
20267       fi
20268     fi
20269   fi
20270   { $as_echo "$as_me:$LINENO: checking for multithread API to use" >&5
20271 $as_echo_n "checking for multithread API to use... " >&6; }
20272   { $as_echo "$as_me:$LINENO: result: $gl_threads_api" >&5
20273 $as_echo "$gl_threads_api" >&6; }
20294     use_additional=yes
20296   acl_save_prefix="$prefix"
20297   prefix="$acl_final_prefix"
20298   acl_save_exec_prefix="$exec_prefix"
20299   exec_prefix="$acl_final_exec_prefix"
20301     eval additional_includedir=\"$includedir\"
20302     eval additional_libdir=\"$libdir\"
20304   exec_prefix="$acl_save_exec_prefix"
20305   prefix="$acl_save_prefix"
20308 # Check whether --with-libiconv-prefix was given.
20309 if test "${with_libiconv_prefix+set}" = set; then
20310   withval=$with_libiconv_prefix;
20311     if test "X$withval" = "Xno"; then
20312       use_additional=no
20313     else
20314       if test "X$withval" = "X"; then
20316   acl_save_prefix="$prefix"
20317   prefix="$acl_final_prefix"
20318   acl_save_exec_prefix="$exec_prefix"
20319   exec_prefix="$acl_final_exec_prefix"
20321           eval additional_includedir=\"$includedir\"
20322           eval additional_libdir=\"$libdir\"
20324   exec_prefix="$acl_save_exec_prefix"
20325   prefix="$acl_save_prefix"
20327       else
20328         additional_includedir="$withval/include"
20329         additional_libdir="$withval/$acl_libdirstem"
20330       fi
20331     fi
20335       LIBICONV=
20336   LTLIBICONV=
20337   INCICONV=
20338   LIBICONV_PREFIX=
20339   rpathdirs=
20340   ltrpathdirs=
20341   names_already_handled=
20342   names_next_round='iconv '
20343   while test -n "$names_next_round"; do
20344     names_this_round="$names_next_round"
20345     names_next_round=
20346     for name in $names_this_round; do
20347       already_handled=
20348       for n in $names_already_handled; do
20349         if test "$n" = "$name"; then
20350           already_handled=yes
20351           break
20352         fi
20353       done
20354       if test -z "$already_handled"; then
20355         names_already_handled="$names_already_handled $name"
20356                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
20357         eval value=\"\$HAVE_LIB$uppername\"
20358         if test -n "$value"; then
20359           if test "$value" = yes; then
20360             eval value=\"\$LIB$uppername\"
20361             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
20362             eval value=\"\$LTLIB$uppername\"
20363             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
20364           else
20365                                     :
20366           fi
20367         else
20368                               found_dir=
20369           found_la=
20370           found_so=
20371           found_a=
20372           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
20373           if test -n "$acl_shlibext"; then
20374             shrext=".$acl_shlibext"             # typically: shrext=.so
20375           else
20376             shrext=
20377           fi
20378           if test $use_additional = yes; then
20379             dir="$additional_libdir"
20380                                     if test -n "$acl_shlibext"; then
20381               if test -f "$dir/$libname$shrext"; then
20382                 found_dir="$dir"
20383                 found_so="$dir/$libname$shrext"
20384               else
20385                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
20386                   ver=`(cd "$dir" && \
20387                         for f in "$libname$shrext".*; do echo "$f"; done \
20388                         | sed -e "s,^$libname$shrext\\\\.,," \
20389                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
20390                         | sed 1q ) 2>/dev/null`
20391                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
20392                     found_dir="$dir"
20393                     found_so="$dir/$libname$shrext.$ver"
20394                   fi
20395                 else
20396                   eval library_names=\"$acl_library_names_spec\"
20397                   for f in $library_names; do
20398                     if test -f "$dir/$f"; then
20399                       found_dir="$dir"
20400                       found_so="$dir/$f"
20401                       break
20402                     fi
20403                   done
20404                 fi
20405               fi
20406             fi
20407                         if test "X$found_dir" = "X"; then
20408               if test -f "$dir/$libname.$acl_libext"; then
20409                 found_dir="$dir"
20410                 found_a="$dir/$libname.$acl_libext"
20411               fi
20412             fi
20413             if test "X$found_dir" != "X"; then
20414               if test -f "$dir/$libname.la"; then
20415                 found_la="$dir/$libname.la"
20416               fi
20417             fi
20418           fi
20419           if test "X$found_dir" = "X"; then
20420             for x in $LDFLAGS $LTLIBICONV; do
20422   acl_save_prefix="$prefix"
20423   prefix="$acl_final_prefix"
20424   acl_save_exec_prefix="$exec_prefix"
20425   exec_prefix="$acl_final_exec_prefix"
20426   eval x=\"$x\"
20427   exec_prefix="$acl_save_exec_prefix"
20428   prefix="$acl_save_prefix"
20430               case "$x" in
20431                 -L*)
20432                   dir=`echo "X$x" | sed -e 's/^X-L//'`
20433                                     if test -n "$acl_shlibext"; then
20434                     if test -f "$dir/$libname$shrext"; then
20435                       found_dir="$dir"
20436                       found_so="$dir/$libname$shrext"
20437                     else
20438                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
20439                         ver=`(cd "$dir" && \
20440                               for f in "$libname$shrext".*; do echo "$f"; done \
20441                               | sed -e "s,^$libname$shrext\\\\.,," \
20442                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
20443                               | sed 1q ) 2>/dev/null`
20444                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
20445                           found_dir="$dir"
20446                           found_so="$dir/$libname$shrext.$ver"
20447                         fi
20448                       else
20449                         eval library_names=\"$acl_library_names_spec\"
20450                         for f in $library_names; do
20451                           if test -f "$dir/$f"; then
20452                             found_dir="$dir"
20453                             found_so="$dir/$f"
20454                             break
20455                           fi
20456                         done
20457                       fi
20458                     fi
20459                   fi
20460                                     if test "X$found_dir" = "X"; then
20461                     if test -f "$dir/$libname.$acl_libext"; then
20462                       found_dir="$dir"
20463                       found_a="$dir/$libname.$acl_libext"
20464                     fi
20465                   fi
20466                   if test "X$found_dir" != "X"; then
20467                     if test -f "$dir/$libname.la"; then
20468                       found_la="$dir/$libname.la"
20469                     fi
20470                   fi
20471                   ;;
20472               esac
20473               if test "X$found_dir" != "X"; then
20474                 break
20475               fi
20476             done
20477           fi
20478           if test "X$found_dir" != "X"; then
20479                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
20480             if test "X$found_so" != "X"; then
20481                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
20482                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
20483               else
20484                                                                                 haveit=
20485                 for x in $ltrpathdirs; do
20486                   if test "X$x" = "X$found_dir"; then
20487                     haveit=yes
20488                     break
20489                   fi
20490                 done
20491                 if test -z "$haveit"; then
20492                   ltrpathdirs="$ltrpathdirs $found_dir"
20493                 fi
20494                                 if test "$acl_hardcode_direct" = yes; then
20495                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
20496                 else
20497                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
20498                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
20499                                                             haveit=
20500                     for x in $rpathdirs; do
20501                       if test "X$x" = "X$found_dir"; then
20502                         haveit=yes
20503                         break
20504                       fi
20505                     done
20506                     if test -z "$haveit"; then
20507                       rpathdirs="$rpathdirs $found_dir"
20508                     fi
20509                   else
20510                                                                                 haveit=
20511                     for x in $LDFLAGS $LIBICONV; do
20513   acl_save_prefix="$prefix"
20514   prefix="$acl_final_prefix"
20515   acl_save_exec_prefix="$exec_prefix"
20516   exec_prefix="$acl_final_exec_prefix"
20517   eval x=\"$x\"
20518   exec_prefix="$acl_save_exec_prefix"
20519   prefix="$acl_save_prefix"
20521                       if test "X$x" = "X-L$found_dir"; then
20522                         haveit=yes
20523                         break
20524                       fi
20525                     done
20526                     if test -z "$haveit"; then
20527                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
20528                     fi
20529                     if test "$acl_hardcode_minus_L" != no; then
20530                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
20531                     else
20532                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
20533                     fi
20534                   fi
20535                 fi
20536               fi
20537             else
20538               if test "X$found_a" != "X"; then
20539                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
20540               else
20541                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
20542               fi
20543             fi
20544                         additional_includedir=
20545             case "$found_dir" in
20546               */$acl_libdirstem | */$acl_libdirstem/)
20547                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
20548                 LIBICONV_PREFIX="$basedir"
20549                 additional_includedir="$basedir/include"
20550                 ;;
20551             esac
20552             if test "X$additional_includedir" != "X"; then
20553                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
20554                 haveit=
20555                 if test "X$additional_includedir" = "X/usr/local/include"; then
20556                   if test -n "$GCC"; then
20557                     case $host_os in
20558                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
20559                     esac
20560                   fi
20561                 fi
20562                 if test -z "$haveit"; then
20563                   for x in $CPPFLAGS $INCICONV; do
20565   acl_save_prefix="$prefix"
20566   prefix="$acl_final_prefix"
20567   acl_save_exec_prefix="$exec_prefix"
20568   exec_prefix="$acl_final_exec_prefix"
20569   eval x=\"$x\"
20570   exec_prefix="$acl_save_exec_prefix"
20571   prefix="$acl_save_prefix"
20573                     if test "X$x" = "X-I$additional_includedir"; then
20574                       haveit=yes
20575                       break
20576                     fi
20577                   done
20578                   if test -z "$haveit"; then
20579                     if test -d "$additional_includedir"; then
20580                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
20581                     fi
20582                   fi
20583                 fi
20584               fi
20585             fi
20586                         if test -n "$found_la"; then
20587                                                         save_libdir="$libdir"
20588               case "$found_la" in
20589                 */* | *\\*) . "$found_la" ;;
20590                 *) . "./$found_la" ;;
20591               esac
20592               libdir="$save_libdir"
20593                             for dep in $dependency_libs; do
20594                 case "$dep" in
20595                   -L*)
20596                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
20597                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
20598                       haveit=
20599                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
20600                         if test -n "$GCC"; then
20601                           case $host_os in
20602                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
20603                           esac
20604                         fi
20605                       fi
20606                       if test -z "$haveit"; then
20607                         haveit=
20608                         for x in $LDFLAGS $LIBICONV; do
20610   acl_save_prefix="$prefix"
20611   prefix="$acl_final_prefix"
20612   acl_save_exec_prefix="$exec_prefix"
20613   exec_prefix="$acl_final_exec_prefix"
20614   eval x=\"$x\"
20615   exec_prefix="$acl_save_exec_prefix"
20616   prefix="$acl_save_prefix"
20618                           if test "X$x" = "X-L$additional_libdir"; then
20619                             haveit=yes
20620                             break
20621                           fi
20622                         done
20623                         if test -z "$haveit"; then
20624                           if test -d "$additional_libdir"; then
20625                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
20626                           fi
20627                         fi
20628                         haveit=
20629                         for x in $LDFLAGS $LTLIBICONV; do
20631   acl_save_prefix="$prefix"
20632   prefix="$acl_final_prefix"
20633   acl_save_exec_prefix="$exec_prefix"
20634   exec_prefix="$acl_final_exec_prefix"
20635   eval x=\"$x\"
20636   exec_prefix="$acl_save_exec_prefix"
20637   prefix="$acl_save_prefix"
20639                           if test "X$x" = "X-L$additional_libdir"; then
20640                             haveit=yes
20641                             break
20642                           fi
20643                         done
20644                         if test -z "$haveit"; then
20645                           if test -d "$additional_libdir"; then
20646                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
20647                           fi
20648                         fi
20649                       fi
20650                     fi
20651                     ;;
20652                   -R*)
20653                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
20654                     if test "$enable_rpath" != no; then
20655                                                                   haveit=
20656                       for x in $rpathdirs; do
20657                         if test "X$x" = "X$dir"; then
20658                           haveit=yes
20659                           break
20660                         fi
20661                       done
20662                       if test -z "$haveit"; then
20663                         rpathdirs="$rpathdirs $dir"
20664                       fi
20665                                                                   haveit=
20666                       for x in $ltrpathdirs; do
20667                         if test "X$x" = "X$dir"; then
20668                           haveit=yes
20669                           break
20670                         fi
20671                       done
20672                       if test -z "$haveit"; then
20673                         ltrpathdirs="$ltrpathdirs $dir"
20674                       fi
20675                     fi
20676                     ;;
20677                   -l*)
20678                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
20679                     ;;
20680                   *.la)
20681                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
20682                     ;;
20683                   *)
20684                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
20685                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
20686                     ;;
20687                 esac
20688               done
20689             fi
20690           else
20691                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
20692             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
20693           fi
20694         fi
20695       fi
20696     done
20697   done
20698   if test "X$rpathdirs" != "X"; then
20699     if test -n "$acl_hardcode_libdir_separator"; then
20700                         alldirs=
20701       for found_dir in $rpathdirs; do
20702         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
20703       done
20704             acl_save_libdir="$libdir"
20705       libdir="$alldirs"
20706       eval flag=\"$acl_hardcode_libdir_flag_spec\"
20707       libdir="$acl_save_libdir"
20708       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
20709     else
20710             for found_dir in $rpathdirs; do
20711         acl_save_libdir="$libdir"
20712         libdir="$found_dir"
20713         eval flag=\"$acl_hardcode_libdir_flag_spec\"
20714         libdir="$acl_save_libdir"
20715         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
20716       done
20717     fi
20718   fi
20719   if test "X$ltrpathdirs" != "X"; then
20720             for found_dir in $ltrpathdirs; do
20721       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
20722     done
20723   fi
20729   cat >conftest.$ac_ext <<_ACEOF
20730 /* confdefs.h.  */
20731 _ACEOF
20732 cat confdefs.h >>conftest.$ac_ext
20733 cat >>conftest.$ac_ext <<_ACEOF
20734 /* end confdefs.h.  */
20735 int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
20736 int
20737 main ()
20740   ;
20741   return 0;
20743 _ACEOF
20744 rm -f conftest.$ac_objext conftest$ac_exeext
20745 if { (ac_try="$ac_link"
20746 case "(($ac_try" in
20747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20748   *) ac_try_echo=$ac_try;;
20749 esac
20750 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20751 $as_echo "$ac_try_echo") >&5
20752   (eval "$ac_link") 2>conftest.er1
20753   ac_status=$?
20754   grep -v '^ *+' conftest.er1 >conftest.err
20755   rm -f conftest.er1
20756   cat conftest.err >&5
20757   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20758   (exit $ac_status); } && {
20759          test -z "$ac_c_werror_flag" ||
20760          test ! -s conftest.err
20761        } && test -s conftest$ac_exeext && {
20762          test "$cross_compiling" = yes ||
20763          $as_test_x conftest$ac_exeext
20764        }; then
20766 cat >>confdefs.h <<\_ACEOF
20767 #define HAVE_BUILTIN_EXPECT 1
20768 _ACEOF
20770 else
20771   $as_echo "$as_me: failed program was:" >&5
20772 sed 's/^/| /' conftest.$ac_ext >&5
20777 rm -rf conftest.dSYM
20778 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20779       conftest$ac_exeext conftest.$ac_ext
20786 for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
20788 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20789 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20790   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20791 $as_echo_n "checking for $ac_header... " >&6; }
20792 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20793   $as_echo_n "(cached) " >&6
20795 ac_res=`eval 'as_val=${'$as_ac_Header'}
20796                  $as_echo "$as_val"'`
20797                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20798 $as_echo "$ac_res" >&6; }
20799 else
20800   # Is the header compilable?
20801 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20802 $as_echo_n "checking $ac_header usability... " >&6; }
20803 cat >conftest.$ac_ext <<_ACEOF
20804 /* confdefs.h.  */
20805 _ACEOF
20806 cat confdefs.h >>conftest.$ac_ext
20807 cat >>conftest.$ac_ext <<_ACEOF
20808 /* end confdefs.h.  */
20809 $ac_includes_default
20810 #include <$ac_header>
20811 _ACEOF
20812 rm -f conftest.$ac_objext
20813 if { (ac_try="$ac_compile"
20814 case "(($ac_try" in
20815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20816   *) ac_try_echo=$ac_try;;
20817 esac
20818 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20819 $as_echo "$ac_try_echo") >&5
20820   (eval "$ac_compile") 2>conftest.er1
20821   ac_status=$?
20822   grep -v '^ *+' conftest.er1 >conftest.err
20823   rm -f conftest.er1
20824   cat conftest.err >&5
20825   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20826   (exit $ac_status); } && {
20827          test -z "$ac_c_werror_flag" ||
20828          test ! -s conftest.err
20829        } && test -s conftest.$ac_objext; then
20830   ac_header_compiler=yes
20831 else
20832   $as_echo "$as_me: failed program was:" >&5
20833 sed 's/^/| /' conftest.$ac_ext >&5
20835         ac_header_compiler=no
20838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20839 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20840 $as_echo "$ac_header_compiler" >&6; }
20842 # Is the header present?
20843 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20844 $as_echo_n "checking $ac_header presence... " >&6; }
20845 cat >conftest.$ac_ext <<_ACEOF
20846 /* confdefs.h.  */
20847 _ACEOF
20848 cat confdefs.h >>conftest.$ac_ext
20849 cat >>conftest.$ac_ext <<_ACEOF
20850 /* end confdefs.h.  */
20851 #include <$ac_header>
20852 _ACEOF
20853 if { (ac_try="$ac_cpp conftest.$ac_ext"
20854 case "(($ac_try" in
20855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20856   *) ac_try_echo=$ac_try;;
20857 esac
20858 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20859 $as_echo "$ac_try_echo") >&5
20860   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20861   ac_status=$?
20862   grep -v '^ *+' conftest.er1 >conftest.err
20863   rm -f conftest.er1
20864   cat conftest.err >&5
20865   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20866   (exit $ac_status); } >/dev/null && {
20867          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20868          test ! -s conftest.err
20869        }; then
20870   ac_header_preproc=yes
20871 else
20872   $as_echo "$as_me: failed program was:" >&5
20873 sed 's/^/| /' conftest.$ac_ext >&5
20875   ac_header_preproc=no
20878 rm -f conftest.err conftest.$ac_ext
20879 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20880 $as_echo "$ac_header_preproc" >&6; }
20882 # So?  What about this header?
20883 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20884   yes:no: )
20885     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20886 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20887     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20888 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20889     ac_header_preproc=yes
20890     ;;
20891   no:yes:* )
20892     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20893 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20894     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20895 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20896     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20897 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20898     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20899 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20900     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20901 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20902     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20903 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20905     ;;
20906 esac
20907 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20908 $as_echo_n "checking for $ac_header... " >&6; }
20909 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20910   $as_echo_n "(cached) " >&6
20911 else
20912   eval "$as_ac_Header=\$ac_header_preproc"
20914 ac_res=`eval 'as_val=${'$as_ac_Header'}
20915                  $as_echo "$as_val"'`
20916                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20917 $as_echo "$ac_res" >&6; }
20920 as_val=`eval 'as_val=${'$as_ac_Header'}
20921                  $as_echo "$as_val"'`
20922    if test "x$as_val" = x""yes; then
20923   cat >>confdefs.h <<_ACEOF
20924 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20925 _ACEOF
20929 done
20947 for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
20948     stpcpy strcasecmp strdup strtoul tsearch argz_count argz_stringify \
20949     argz_next __fsetlocking
20951 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20952 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20953 $as_echo_n "checking for $ac_func... " >&6; }
20954 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20955   $as_echo_n "(cached) " >&6
20956 else
20957   cat >conftest.$ac_ext <<_ACEOF
20958 /* confdefs.h.  */
20959 _ACEOF
20960 cat confdefs.h >>conftest.$ac_ext
20961 cat >>conftest.$ac_ext <<_ACEOF
20962 /* end confdefs.h.  */
20963 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20964    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20965 #define $ac_func innocuous_$ac_func
20967 /* System header to define __stub macros and hopefully few prototypes,
20968     which can conflict with char $ac_func (); below.
20969     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20970     <limits.h> exists even on freestanding compilers.  */
20972 #ifdef __STDC__
20973 # include <limits.h>
20974 #else
20975 # include <assert.h>
20976 #endif
20978 #undef $ac_func
20980 /* Override any GCC internal prototype to avoid an error.
20981    Use char because int might match the return type of a GCC
20982    builtin and then its argument prototype would still apply.  */
20983 #ifdef __cplusplus
20984 extern "C"
20985 #endif
20986 char $ac_func ();
20987 /* The GNU C library defines this for functions which it implements
20988     to always fail with ENOSYS.  Some functions are actually named
20989     something starting with __ and the normal name is an alias.  */
20990 #if defined __stub_$ac_func || defined __stub___$ac_func
20991 choke me
20992 #endif
20994 int
20995 main ()
20997 return $ac_func ();
20998   ;
20999   return 0;
21001 _ACEOF
21002 rm -f conftest.$ac_objext conftest$ac_exeext
21003 if { (ac_try="$ac_link"
21004 case "(($ac_try" in
21005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21006   *) ac_try_echo=$ac_try;;
21007 esac
21008 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21009 $as_echo "$ac_try_echo") >&5
21010   (eval "$ac_link") 2>conftest.er1
21011   ac_status=$?
21012   grep -v '^ *+' conftest.er1 >conftest.err
21013   rm -f conftest.er1
21014   cat conftest.err >&5
21015   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21016   (exit $ac_status); } && {
21017          test -z "$ac_c_werror_flag" ||
21018          test ! -s conftest.err
21019        } && test -s conftest$ac_exeext && {
21020          test "$cross_compiling" = yes ||
21021          $as_test_x conftest$ac_exeext
21022        }; then
21023   eval "$as_ac_var=yes"
21024 else
21025   $as_echo "$as_me: failed program was:" >&5
21026 sed 's/^/| /' conftest.$ac_ext >&5
21028         eval "$as_ac_var=no"
21031 rm -rf conftest.dSYM
21032 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21033       conftest$ac_exeext conftest.$ac_ext
21035 ac_res=`eval 'as_val=${'$as_ac_var'}
21036                  $as_echo "$as_val"'`
21037                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21038 $as_echo "$ac_res" >&6; }
21039 as_val=`eval 'as_val=${'$as_ac_var'}
21040                  $as_echo "$as_val"'`
21041    if test "x$as_val" = x""yes; then
21042   cat >>confdefs.h <<_ACEOF
21043 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21044 _ACEOF
21047 done
21051   { $as_echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
21052 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
21053 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
21054   $as_echo_n "(cached) " >&6
21055 else
21056   cat >conftest.$ac_ext <<_ACEOF
21057 /* confdefs.h.  */
21058 _ACEOF
21059 cat confdefs.h >>conftest.$ac_ext
21060 cat >>conftest.$ac_ext <<_ACEOF
21061 /* end confdefs.h.  */
21062 #include <stdio.h>
21063 int
21064 main ()
21067 #ifndef feof_unlocked
21068   char *p = (char *) feof_unlocked;
21069 #endif
21071   ;
21072   return 0;
21074 _ACEOF
21075 rm -f conftest.$ac_objext
21076 if { (ac_try="$ac_compile"
21077 case "(($ac_try" in
21078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21079   *) ac_try_echo=$ac_try;;
21080 esac
21081 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21082 $as_echo "$ac_try_echo") >&5
21083   (eval "$ac_compile") 2>conftest.er1
21084   ac_status=$?
21085   grep -v '^ *+' conftest.er1 >conftest.err
21086   rm -f conftest.er1
21087   cat conftest.err >&5
21088   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21089   (exit $ac_status); } && {
21090          test -z "$ac_c_werror_flag" ||
21091          test ! -s conftest.err
21092        } && test -s conftest.$ac_objext; then
21093   ac_cv_have_decl_feof_unlocked=yes
21094 else
21095   $as_echo "$as_me: failed program was:" >&5
21096 sed 's/^/| /' conftest.$ac_ext >&5
21098         ac_cv_have_decl_feof_unlocked=no
21101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21103 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
21104 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
21105   if test $ac_cv_have_decl_feof_unlocked = yes; then
21106     gt_value=1
21107   else
21108     gt_value=0
21109   fi
21111 cat >>confdefs.h <<_ACEOF
21112 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
21113 _ACEOF
21117   { $as_echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
21118 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
21119 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
21120   $as_echo_n "(cached) " >&6
21121 else
21122   cat >conftest.$ac_ext <<_ACEOF
21123 /* confdefs.h.  */
21124 _ACEOF
21125 cat confdefs.h >>conftest.$ac_ext
21126 cat >>conftest.$ac_ext <<_ACEOF
21127 /* end confdefs.h.  */
21128 #include <stdio.h>
21129 int
21130 main ()
21133 #ifndef fgets_unlocked
21134   char *p = (char *) fgets_unlocked;
21135 #endif
21137   ;
21138   return 0;
21140 _ACEOF
21141 rm -f conftest.$ac_objext
21142 if { (ac_try="$ac_compile"
21143 case "(($ac_try" in
21144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21145   *) ac_try_echo=$ac_try;;
21146 esac
21147 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21148 $as_echo "$ac_try_echo") >&5
21149   (eval "$ac_compile") 2>conftest.er1
21150   ac_status=$?
21151   grep -v '^ *+' conftest.er1 >conftest.err
21152   rm -f conftest.er1
21153   cat conftest.err >&5
21154   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21155   (exit $ac_status); } && {
21156          test -z "$ac_c_werror_flag" ||
21157          test ! -s conftest.err
21158        } && test -s conftest.$ac_objext; then
21159   ac_cv_have_decl_fgets_unlocked=yes
21160 else
21161   $as_echo "$as_me: failed program was:" >&5
21162 sed 's/^/| /' conftest.$ac_ext >&5
21164         ac_cv_have_decl_fgets_unlocked=no
21167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21169 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
21170 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
21171   if test $ac_cv_have_decl_fgets_unlocked = yes; then
21172     gt_value=1
21173   else
21174     gt_value=0
21175   fi
21177 cat >>confdefs.h <<_ACEOF
21178 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
21179 _ACEOF
21188           am_save_CPPFLAGS="$CPPFLAGS"
21190   for element in $INCICONV; do
21191     haveit=
21192     for x in $CPPFLAGS; do
21194   acl_save_prefix="$prefix"
21195   prefix="$acl_final_prefix"
21196   acl_save_exec_prefix="$exec_prefix"
21197   exec_prefix="$acl_final_exec_prefix"
21198   eval x=\"$x\"
21199   exec_prefix="$acl_save_exec_prefix"
21200   prefix="$acl_save_prefix"
21202       if test "X$x" = "X$element"; then
21203         haveit=yes
21204         break
21205       fi
21206     done
21207     if test -z "$haveit"; then
21208       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
21209     fi
21210   done
21213   { $as_echo "$as_me:$LINENO: checking for iconv" >&5
21214 $as_echo_n "checking for iconv... " >&6; }
21215 if test "${am_cv_func_iconv+set}" = set; then
21216   $as_echo_n "(cached) " >&6
21217 else
21219     am_cv_func_iconv="no, consider installing GNU libiconv"
21220     am_cv_lib_iconv=no
21221     cat >conftest.$ac_ext <<_ACEOF
21222 /* confdefs.h.  */
21223 _ACEOF
21224 cat confdefs.h >>conftest.$ac_ext
21225 cat >>conftest.$ac_ext <<_ACEOF
21226 /* end confdefs.h.  */
21227 #include <stdlib.h>
21228 #include <iconv.h>
21229 int
21230 main ()
21232 iconv_t cd = iconv_open("","");
21233        iconv(cd,NULL,NULL,NULL,NULL);
21234        iconv_close(cd);
21235   ;
21236   return 0;
21238 _ACEOF
21239 rm -f conftest.$ac_objext conftest$ac_exeext
21240 if { (ac_try="$ac_link"
21241 case "(($ac_try" in
21242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21243   *) ac_try_echo=$ac_try;;
21244 esac
21245 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21246 $as_echo "$ac_try_echo") >&5
21247   (eval "$ac_link") 2>conftest.er1
21248   ac_status=$?
21249   grep -v '^ *+' conftest.er1 >conftest.err
21250   rm -f conftest.er1
21251   cat conftest.err >&5
21252   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21253   (exit $ac_status); } && {
21254          test -z "$ac_c_werror_flag" ||
21255          test ! -s conftest.err
21256        } && test -s conftest$ac_exeext && {
21257          test "$cross_compiling" = yes ||
21258          $as_test_x conftest$ac_exeext
21259        }; then
21260   am_cv_func_iconv=yes
21261 else
21262   $as_echo "$as_me: failed program was:" >&5
21263 sed 's/^/| /' conftest.$ac_ext >&5
21268 rm -rf conftest.dSYM
21269 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21270       conftest$ac_exeext conftest.$ac_ext
21271     if test "$am_cv_func_iconv" != yes; then
21272       am_save_LIBS="$LIBS"
21273       LIBS="$LIBS $LIBICONV"
21274       cat >conftest.$ac_ext <<_ACEOF
21275 /* confdefs.h.  */
21276 _ACEOF
21277 cat confdefs.h >>conftest.$ac_ext
21278 cat >>conftest.$ac_ext <<_ACEOF
21279 /* end confdefs.h.  */
21280 #include <stdlib.h>
21281 #include <iconv.h>
21282 int
21283 main ()
21285 iconv_t cd = iconv_open("","");
21286          iconv(cd,NULL,NULL,NULL,NULL);
21287          iconv_close(cd);
21288   ;
21289   return 0;
21291 _ACEOF
21292 rm -f conftest.$ac_objext conftest$ac_exeext
21293 if { (ac_try="$ac_link"
21294 case "(($ac_try" in
21295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21296   *) ac_try_echo=$ac_try;;
21297 esac
21298 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21299 $as_echo "$ac_try_echo") >&5
21300   (eval "$ac_link") 2>conftest.er1
21301   ac_status=$?
21302   grep -v '^ *+' conftest.er1 >conftest.err
21303   rm -f conftest.er1
21304   cat conftest.err >&5
21305   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21306   (exit $ac_status); } && {
21307          test -z "$ac_c_werror_flag" ||
21308          test ! -s conftest.err
21309        } && test -s conftest$ac_exeext && {
21310          test "$cross_compiling" = yes ||
21311          $as_test_x conftest$ac_exeext
21312        }; then
21313   am_cv_lib_iconv=yes
21314         am_cv_func_iconv=yes
21315 else
21316   $as_echo "$as_me: failed program was:" >&5
21317 sed 's/^/| /' conftest.$ac_ext >&5
21322 rm -rf conftest.dSYM
21323 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21324       conftest$ac_exeext conftest.$ac_ext
21325       LIBS="$am_save_LIBS"
21326     fi
21329 { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
21330 $as_echo "$am_cv_func_iconv" >&6; }
21331   if test "$am_cv_func_iconv" = yes; then
21332     { $as_echo "$as_me:$LINENO: checking for working iconv" >&5
21333 $as_echo_n "checking for working iconv... " >&6; }
21334 if test "${am_cv_func_iconv_works+set}" = set; then
21335   $as_echo_n "(cached) " >&6
21336 else
21338             am_save_LIBS="$LIBS"
21339       if test $am_cv_lib_iconv = yes; then
21340         LIBS="$LIBS $LIBICONV"
21341       fi
21342       if test "$cross_compiling" = yes; then
21343   case "$host_os" in
21344            aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
21345            *)            am_cv_func_iconv_works="guessing yes" ;;
21346          esac
21347 else
21348   cat >conftest.$ac_ext <<_ACEOF
21349 /* confdefs.h.  */
21350 _ACEOF
21351 cat confdefs.h >>conftest.$ac_ext
21352 cat >>conftest.$ac_ext <<_ACEOF
21353 /* end confdefs.h.  */
21355 #include <iconv.h>
21356 #include <string.h>
21357 int main ()
21359   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
21360      returns.  */
21361   {
21362     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
21363     if (cd_utf8_to_88591 != (iconv_t)(-1))
21364       {
21365         static const char input[] = "\342\202\254"; /* EURO SIGN */
21366         char buf[10];
21367         const char *inptr = input;
21368         size_t inbytesleft = strlen (input);
21369         char *outptr = buf;
21370         size_t outbytesleft = sizeof (buf);
21371         size_t res = iconv (cd_utf8_to_88591,
21372                             (char **) &inptr, &inbytesleft,
21373                             &outptr, &outbytesleft);
21374         if (res == 0)
21375           return 1;
21376       }
21377   }
21378 #if 0 /* This bug could be worked around by the caller.  */
21379   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
21380   {
21381     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
21382     if (cd_88591_to_utf8 != (iconv_t)(-1))
21383       {
21384         static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
21385         char buf[50];
21386         const char *inptr = input;
21387         size_t inbytesleft = strlen (input);
21388         char *outptr = buf;
21389         size_t outbytesleft = sizeof (buf);
21390         size_t res = iconv (cd_88591_to_utf8,
21391                             (char **) &inptr, &inbytesleft,
21392                             &outptr, &outbytesleft);
21393         if ((int)res > 0)
21394           return 1;
21395       }
21396   }
21397 #endif
21398   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
21399      provided.  */
21400   if (/* Try standardized names.  */
21401       iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
21402       /* Try IRIX, OSF/1 names.  */
21403       && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
21404       /* Try AIX names.  */
21405       && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
21406       /* Try HP-UX names.  */
21407       && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
21408     return 1;
21409   return 0;
21411 _ACEOF
21412 rm -f conftest$ac_exeext
21413 if { (ac_try="$ac_link"
21414 case "(($ac_try" in
21415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21416   *) ac_try_echo=$ac_try;;
21417 esac
21418 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21419 $as_echo "$ac_try_echo") >&5
21420   (eval "$ac_link") 2>&5
21421   ac_status=$?
21422   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21423   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21424   { (case "(($ac_try" in
21425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21426   *) ac_try_echo=$ac_try;;
21427 esac
21428 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21429 $as_echo "$ac_try_echo") >&5
21430   (eval "$ac_try") 2>&5
21431   ac_status=$?
21432   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21433   (exit $ac_status); }; }; then
21434   am_cv_func_iconv_works=yes
21435 else
21436   $as_echo "$as_me: program exited with status $ac_status" >&5
21437 $as_echo "$as_me: failed program was:" >&5
21438 sed 's/^/| /' conftest.$ac_ext >&5
21440 ( exit $ac_status )
21441 am_cv_func_iconv_works=no
21443 rm -rf conftest.dSYM
21444 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21448       LIBS="$am_save_LIBS"
21451 { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv_works" >&5
21452 $as_echo "$am_cv_func_iconv_works" >&6; }
21453     case "$am_cv_func_iconv_works" in
21454       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
21455       *)   am_func_iconv=yes ;;
21456     esac
21457   else
21458     am_func_iconv=no am_cv_lib_iconv=no
21459   fi
21460   if test "$am_func_iconv" = yes; then
21462 cat >>confdefs.h <<\_ACEOF
21463 #define HAVE_ICONV 1
21464 _ACEOF
21466   fi
21467   if test "$am_cv_lib_iconv" = yes; then
21468     { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
21469 $as_echo_n "checking how to link with libiconv... " >&6; }
21470     { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
21471 $as_echo "$LIBICONV" >&6; }
21472   else
21473             CPPFLAGS="$am_save_CPPFLAGS"
21474     LIBICONV=
21475     LTLIBICONV=
21476   fi
21480   if test "$am_cv_func_iconv" = yes; then
21481     { $as_echo "$as_me:$LINENO: checking for iconv declaration" >&5
21482 $as_echo_n "checking for iconv declaration... " >&6; }
21483     if test "${am_cv_proto_iconv+set}" = set; then
21484   $as_echo_n "(cached) " >&6
21485 else
21487       cat >conftest.$ac_ext <<_ACEOF
21488 /* confdefs.h.  */
21489 _ACEOF
21490 cat confdefs.h >>conftest.$ac_ext
21491 cat >>conftest.$ac_ext <<_ACEOF
21492 /* end confdefs.h.  */
21494 #include <stdlib.h>
21495 #include <iconv.h>
21496 extern
21497 #ifdef __cplusplus
21498 "C"
21499 #endif
21500 #if defined(__STDC__) || defined(__cplusplus)
21501 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
21502 #else
21503 size_t iconv();
21504 #endif
21506 int
21507 main ()
21510   ;
21511   return 0;
21513 _ACEOF
21514 rm -f conftest.$ac_objext
21515 if { (ac_try="$ac_compile"
21516 case "(($ac_try" in
21517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21518   *) ac_try_echo=$ac_try;;
21519 esac
21520 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21521 $as_echo "$ac_try_echo") >&5
21522   (eval "$ac_compile") 2>conftest.er1
21523   ac_status=$?
21524   grep -v '^ *+' conftest.er1 >conftest.err
21525   rm -f conftest.er1
21526   cat conftest.err >&5
21527   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21528   (exit $ac_status); } && {
21529          test -z "$ac_c_werror_flag" ||
21530          test ! -s conftest.err
21531        } && test -s conftest.$ac_objext; then
21532   am_cv_proto_iconv_arg1=""
21533 else
21534   $as_echo "$as_me: failed program was:" >&5
21535 sed 's/^/| /' conftest.$ac_ext >&5
21537         am_cv_proto_iconv_arg1="const"
21540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21541       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);"
21544     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
21545     { $as_echo "$as_me:$LINENO: result: ${ac_t:-
21546          }$am_cv_proto_iconv" >&5
21547 $as_echo "${ac_t:-
21548          }$am_cv_proto_iconv" >&6; }
21550 cat >>confdefs.h <<_ACEOF
21551 #define ICONV_CONST $am_cv_proto_iconv_arg1
21552 _ACEOF
21554   fi
21557       { $as_echo "$as_me:$LINENO: checking for NL_LOCALE_NAME macro" >&5
21558 $as_echo_n "checking for NL_LOCALE_NAME macro... " >&6; }
21559 if test "${gt_cv_nl_locale_name+set}" = set; then
21560   $as_echo_n "(cached) " >&6
21561 else
21562   cat >conftest.$ac_ext <<_ACEOF
21563 /* confdefs.h.  */
21564 _ACEOF
21565 cat confdefs.h >>conftest.$ac_ext
21566 cat >>conftest.$ac_ext <<_ACEOF
21567 /* end confdefs.h.  */
21568 #include <langinfo.h>
21569 #include <locale.h>
21570 int
21571 main ()
21573 char* cs = nl_langinfo(_NL_LOCALE_NAME(LC_MESSAGES));
21574        return !cs;
21576   ;
21577   return 0;
21579 _ACEOF
21580 rm -f conftest.$ac_objext conftest$ac_exeext
21581 if { (ac_try="$ac_link"
21582 case "(($ac_try" in
21583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21584   *) ac_try_echo=$ac_try;;
21585 esac
21586 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21587 $as_echo "$ac_try_echo") >&5
21588   (eval "$ac_link") 2>conftest.er1
21589   ac_status=$?
21590   grep -v '^ *+' conftest.er1 >conftest.err
21591   rm -f conftest.er1
21592   cat conftest.err >&5
21593   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21594   (exit $ac_status); } && {
21595          test -z "$ac_c_werror_flag" ||
21596          test ! -s conftest.err
21597        } && test -s conftest$ac_exeext && {
21598          test "$cross_compiling" = yes ||
21599          $as_test_x conftest$ac_exeext
21600        }; then
21601   gt_cv_nl_locale_name=yes
21602 else
21603   $as_echo "$as_me: failed program was:" >&5
21604 sed 's/^/| /' conftest.$ac_ext >&5
21606         gt_cv_nl_locale_name=no
21609 rm -rf conftest.dSYM
21610 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21611       conftest$ac_exeext conftest.$ac_ext
21614 { $as_echo "$as_me:$LINENO: result: $gt_cv_nl_locale_name" >&5
21615 $as_echo "$gt_cv_nl_locale_name" >&6; }
21616   if test $gt_cv_nl_locale_name = yes; then
21618 cat >>confdefs.h <<\_ACEOF
21619 #define HAVE_NL_LOCALE_NAME 1
21620 _ACEOF
21622   fi
21624                       for ac_prog in bison
21626   # Extract the first word of "$ac_prog", so it can be a program name with args.
21627 set dummy $ac_prog; ac_word=$2
21628 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
21629 $as_echo_n "checking for $ac_word... " >&6; }
21630 if test "${ac_cv_prog_INTLBISON+set}" = set; then
21631   $as_echo_n "(cached) " >&6
21632 else
21633   if test -n "$INTLBISON"; then
21634   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
21635 else
21636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21637 for as_dir in $PATH
21639   IFS=$as_save_IFS
21640   test -z "$as_dir" && as_dir=.
21641   for ac_exec_ext in '' $ac_executable_extensions; do
21642   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21643     ac_cv_prog_INTLBISON="$ac_prog"
21644     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21645     break 2
21646   fi
21647 done
21648 done
21649 IFS=$as_save_IFS
21653 INTLBISON=$ac_cv_prog_INTLBISON
21654 if test -n "$INTLBISON"; then
21655   { $as_echo "$as_me:$LINENO: result: $INTLBISON" >&5
21656 $as_echo "$INTLBISON" >&6; }
21657 else
21658   { $as_echo "$as_me:$LINENO: result: no" >&5
21659 $as_echo "no" >&6; }
21663   test -n "$INTLBISON" && break
21664 done
21666   if test -z "$INTLBISON"; then
21667     ac_verc_fail=yes
21668   else
21669         { $as_echo "$as_me:$LINENO: checking version of bison" >&5
21670 $as_echo_n "checking version of bison... " >&6; }
21671     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
21672     case $ac_prog_version in
21673       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
21674       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
21675          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
21676       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
21677     esac
21678     { $as_echo "$as_me:$LINENO: result: $ac_prog_version" >&5
21679 $as_echo "$ac_prog_version" >&6; }
21680   fi
21681   if test $ac_verc_fail = yes; then
21682     INTLBISON=:
21683   fi
21686   { $as_echo "$as_me:$LINENO: checking for long long int" >&5
21687 $as_echo_n "checking for long long int... " >&6; }
21688 if test "${ac_cv_type_long_long_int+set}" = set; then
21689   $as_echo_n "(cached) " >&6
21690 else
21691   cat >conftest.$ac_ext <<_ACEOF
21693   /* confdefs.h.  */
21694 _ACEOF
21695 cat confdefs.h >>conftest.$ac_ext
21696 cat >>conftest.$ac_ext <<_ACEOF
21697 /* end confdefs.h.  */
21698 /* Test preprocessor.  */
21699       #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
21700         error in preprocessor;
21701       #endif
21702       #if ! (18446744073709551615ULL <= -1ull)
21703         error in preprocessor;
21704       #endif
21705       /* Test literals.  */
21706       long long int ll = 9223372036854775807ll;
21707       long long int nll = -9223372036854775807LL;
21708       unsigned long long int ull = 18446744073709551615ULL;
21709       /* Test constant expressions.   */
21710       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
21711                      ? 1 : -1)];
21712       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
21713                      ? 1 : -1)];
21714       int i = 63;
21715 int
21716 main ()
21718 /* Test availability of runtime routines for shift and division.  */
21719       long long int llmax = 9223372036854775807ll;
21720       unsigned long long int ullmax = 18446744073709551615ull;
21721       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
21722               | (llmax / ll) | (llmax % ll)
21723               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
21724               | (ullmax / ull) | (ullmax % ull));
21725   ;
21726   return 0;
21729 _ACEOF
21730 rm -f conftest.$ac_objext conftest$ac_exeext
21731 if { (ac_try="$ac_link"
21732 case "(($ac_try" in
21733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21734   *) ac_try_echo=$ac_try;;
21735 esac
21736 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21737 $as_echo "$ac_try_echo") >&5
21738   (eval "$ac_link") 2>conftest.er1
21739   ac_status=$?
21740   grep -v '^ *+' conftest.er1 >conftest.err
21741   rm -f conftest.er1
21742   cat conftest.err >&5
21743   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21744   (exit $ac_status); } && {
21745          test -z "$ac_c_werror_flag" ||
21746          test ! -s conftest.err
21747        } && test -s conftest$ac_exeext && {
21748          test "$cross_compiling" = yes ||
21749          $as_test_x conftest$ac_exeext
21750        }; then
21751                         if test "$cross_compiling" = yes; then
21752   ac_cv_type_long_long_int=yes
21753 else
21754   cat >conftest.$ac_ext <<_ACEOF
21755 /* confdefs.h.  */
21756 _ACEOF
21757 cat confdefs.h >>conftest.$ac_ext
21758 cat >>conftest.$ac_ext <<_ACEOF
21759 /* end confdefs.h.  */
21760 #include <limits.h>
21761                #ifndef LLONG_MAX
21762                # define HALF \
21763                         (1LL << (sizeof (long long int) * CHAR_BIT - 2))
21764                # define LLONG_MAX (HALF - 1 + HALF)
21765                #endif
21766 int
21767 main ()
21769 long long int n = 1;
21770                int i;
21771                for (i = 0; ; i++)
21772                  {
21773                    long long int m = n << i;
21774                    if (m >> i != n)
21775                      return 1;
21776                    if (LLONG_MAX / 2 < m)
21777                      break;
21778                  }
21779                return 0;
21780   ;
21781   return 0;
21783 _ACEOF
21784 rm -f conftest$ac_exeext
21785 if { (ac_try="$ac_link"
21786 case "(($ac_try" in
21787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21788   *) ac_try_echo=$ac_try;;
21789 esac
21790 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21791 $as_echo "$ac_try_echo") >&5
21792   (eval "$ac_link") 2>&5
21793   ac_status=$?
21794   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21795   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21796   { (case "(($ac_try" in
21797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21798   *) ac_try_echo=$ac_try;;
21799 esac
21800 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21801 $as_echo "$ac_try_echo") >&5
21802   (eval "$ac_try") 2>&5
21803   ac_status=$?
21804   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21805   (exit $ac_status); }; }; then
21806   ac_cv_type_long_long_int=yes
21807 else
21808   $as_echo "$as_me: program exited with status $ac_status" >&5
21809 $as_echo "$as_me: failed program was:" >&5
21810 sed 's/^/| /' conftest.$ac_ext >&5
21812 ( exit $ac_status )
21813 ac_cv_type_long_long_int=no
21815 rm -rf conftest.dSYM
21816 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21820 else
21821   $as_echo "$as_me: failed program was:" >&5
21822 sed 's/^/| /' conftest.$ac_ext >&5
21824         ac_cv_type_long_long_int=no
21827 rm -rf conftest.dSYM
21828 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21829       conftest$ac_exeext conftest.$ac_ext
21831 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
21832 $as_echo "$ac_cv_type_long_long_int" >&6; }
21833   if test $ac_cv_type_long_long_int = yes; then
21835 cat >>confdefs.h <<\_ACEOF
21836 #define HAVE_LONG_LONG_INT 1
21837 _ACEOF
21839   fi
21842   { $as_echo "$as_me:$LINENO: checking for wchar_t" >&5
21843 $as_echo_n "checking for wchar_t... " >&6; }
21844 if test "${gt_cv_c_wchar_t+set}" = set; then
21845   $as_echo_n "(cached) " >&6
21846 else
21847   cat >conftest.$ac_ext <<_ACEOF
21848 /* confdefs.h.  */
21849 _ACEOF
21850 cat confdefs.h >>conftest.$ac_ext
21851 cat >>conftest.$ac_ext <<_ACEOF
21852 /* end confdefs.h.  */
21853 #include <stddef.h>
21854        wchar_t foo = (wchar_t)'\0';
21855 int
21856 main ()
21859   ;
21860   return 0;
21862 _ACEOF
21863 rm -f conftest.$ac_objext
21864 if { (ac_try="$ac_compile"
21865 case "(($ac_try" in
21866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21867   *) ac_try_echo=$ac_try;;
21868 esac
21869 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21870 $as_echo "$ac_try_echo") >&5
21871   (eval "$ac_compile") 2>conftest.er1
21872   ac_status=$?
21873   grep -v '^ *+' conftest.er1 >conftest.err
21874   rm -f conftest.er1
21875   cat conftest.err >&5
21876   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21877   (exit $ac_status); } && {
21878          test -z "$ac_c_werror_flag" ||
21879          test ! -s conftest.err
21880        } && test -s conftest.$ac_objext; then
21881   gt_cv_c_wchar_t=yes
21882 else
21883   $as_echo "$as_me: failed program was:" >&5
21884 sed 's/^/| /' conftest.$ac_ext >&5
21886         gt_cv_c_wchar_t=no
21889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21891 { $as_echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
21892 $as_echo "$gt_cv_c_wchar_t" >&6; }
21893   if test $gt_cv_c_wchar_t = yes; then
21895 cat >>confdefs.h <<\_ACEOF
21896 #define HAVE_WCHAR_T 1
21897 _ACEOF
21899   fi
21902   { $as_echo "$as_me:$LINENO: checking for wint_t" >&5
21903 $as_echo_n "checking for wint_t... " >&6; }
21904 if test "${gt_cv_c_wint_t+set}" = set; then
21905   $as_echo_n "(cached) " >&6
21906 else
21907   cat >conftest.$ac_ext <<_ACEOF
21908 /* confdefs.h.  */
21909 _ACEOF
21910 cat confdefs.h >>conftest.$ac_ext
21911 cat >>conftest.$ac_ext <<_ACEOF
21912 /* end confdefs.h.  */
21914 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
21915    <wchar.h>.
21916    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
21917    before <wchar.h>.  */
21918 #include <stddef.h>
21919 #include <stdio.h>
21920 #include <time.h>
21921 #include <wchar.h>
21922        wint_t foo = (wchar_t)'\0';
21923 int
21924 main ()
21927   ;
21928   return 0;
21930 _ACEOF
21931 rm -f conftest.$ac_objext
21932 if { (ac_try="$ac_compile"
21933 case "(($ac_try" in
21934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21935   *) ac_try_echo=$ac_try;;
21936 esac
21937 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21938 $as_echo "$ac_try_echo") >&5
21939   (eval "$ac_compile") 2>conftest.er1
21940   ac_status=$?
21941   grep -v '^ *+' conftest.er1 >conftest.err
21942   rm -f conftest.er1
21943   cat conftest.err >&5
21944   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21945   (exit $ac_status); } && {
21946          test -z "$ac_c_werror_flag" ||
21947          test ! -s conftest.err
21948        } && test -s conftest.$ac_objext; then
21949   gt_cv_c_wint_t=yes
21950 else
21951   $as_echo "$as_me: failed program was:" >&5
21952 sed 's/^/| /' conftest.$ac_ext >&5
21954         gt_cv_c_wint_t=no
21957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21959 { $as_echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
21960 $as_echo "$gt_cv_c_wint_t" >&6; }
21961   if test $gt_cv_c_wint_t = yes; then
21963 cat >>confdefs.h <<\_ACEOF
21964 #define HAVE_WINT_T 1
21965 _ACEOF
21967   fi
21972   { $as_echo "$as_me:$LINENO: checking for intmax_t" >&5
21973 $as_echo_n "checking for intmax_t... " >&6; }
21974 if test "${gt_cv_c_intmax_t+set}" = set; then
21975   $as_echo_n "(cached) " >&6
21976 else
21977   cat >conftest.$ac_ext <<_ACEOF
21978 /* confdefs.h.  */
21979 _ACEOF
21980 cat confdefs.h >>conftest.$ac_ext
21981 cat >>conftest.$ac_ext <<_ACEOF
21982 /* end confdefs.h.  */
21984 #include <stddef.h>
21985 #include <stdlib.h>
21986 #if HAVE_STDINT_H_WITH_UINTMAX
21987 #include <stdint.h>
21988 #endif
21989 #if HAVE_INTTYPES_H_WITH_UINTMAX
21990 #include <inttypes.h>
21991 #endif
21993 int
21994 main ()
21996 intmax_t x = -1;
21997         return !x;
21998   ;
21999   return 0;
22001 _ACEOF
22002 rm -f conftest.$ac_objext
22003 if { (ac_try="$ac_compile"
22004 case "(($ac_try" in
22005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22006   *) ac_try_echo=$ac_try;;
22007 esac
22008 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22009 $as_echo "$ac_try_echo") >&5
22010   (eval "$ac_compile") 2>conftest.er1
22011   ac_status=$?
22012   grep -v '^ *+' conftest.er1 >conftest.err
22013   rm -f conftest.er1
22014   cat conftest.err >&5
22015   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22016   (exit $ac_status); } && {
22017          test -z "$ac_c_werror_flag" ||
22018          test ! -s conftest.err
22019        } && test -s conftest.$ac_objext; then
22020   gt_cv_c_intmax_t=yes
22021 else
22022   $as_echo "$as_me: failed program was:" >&5
22023 sed 's/^/| /' conftest.$ac_ext >&5
22025         gt_cv_c_intmax_t=no
22028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22030 { $as_echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
22031 $as_echo "$gt_cv_c_intmax_t" >&6; }
22032   if test $gt_cv_c_intmax_t = yes; then
22034 cat >>confdefs.h <<\_ACEOF
22035 #define HAVE_INTMAX_T 1
22036 _ACEOF
22038   fi
22042   { $as_echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
22043 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
22044 if test "${gt_cv_func_printf_posix+set}" = set; then
22045   $as_echo_n "(cached) " >&6
22046 else
22048       if test "$cross_compiling" = yes; then
22050         cat >conftest.$ac_ext <<_ACEOF
22051 /* confdefs.h.  */
22052 _ACEOF
22053 cat confdefs.h >>conftest.$ac_ext
22054 cat >>conftest.$ac_ext <<_ACEOF
22055 /* end confdefs.h.  */
22057 #if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
22058   notposix
22059 #endif
22061 _ACEOF
22062 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22063   $EGREP "notposix" >/dev/null 2>&1; then
22064   gt_cv_func_printf_posix="guessing no"
22065 else
22066   gt_cv_func_printf_posix="guessing yes"
22068 rm -f conftest*
22071 else
22072   cat >conftest.$ac_ext <<_ACEOF
22073 /* confdefs.h.  */
22074 _ACEOF
22075 cat confdefs.h >>conftest.$ac_ext
22076 cat >>conftest.$ac_ext <<_ACEOF
22077 /* end confdefs.h.  */
22079 #include <stdio.h>
22080 #include <string.h>
22081 /* The string "%2$d %1$d", with dollar characters protected from the shell's
22082    dollar expansion (possibly an autoconf bug).  */
22083 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
22084 static char buf[100];
22085 int main ()
22087   sprintf (buf, format, 33, 55);
22088   return (strcmp (buf, "55 33") != 0);
22090 _ACEOF
22091 rm -f conftest$ac_exeext
22092 if { (ac_try="$ac_link"
22093 case "(($ac_try" in
22094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22095   *) ac_try_echo=$ac_try;;
22096 esac
22097 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22098 $as_echo "$ac_try_echo") >&5
22099   (eval "$ac_link") 2>&5
22100   ac_status=$?
22101   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22102   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22103   { (case "(($ac_try" in
22104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22105   *) ac_try_echo=$ac_try;;
22106 esac
22107 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22108 $as_echo "$ac_try_echo") >&5
22109   (eval "$ac_try") 2>&5
22110   ac_status=$?
22111   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22112   (exit $ac_status); }; }; then
22113   gt_cv_func_printf_posix=yes
22114 else
22115   $as_echo "$as_me: program exited with status $ac_status" >&5
22116 $as_echo "$as_me: failed program was:" >&5
22117 sed 's/^/| /' conftest.$ac_ext >&5
22119 ( exit $ac_status )
22120 gt_cv_func_printf_posix=no
22122 rm -rf conftest.dSYM
22123 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22129 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
22130 $as_echo "$gt_cv_func_printf_posix" >&6; }
22131   case $gt_cv_func_printf_posix in
22132     *yes)
22134 cat >>confdefs.h <<\_ACEOF
22135 #define HAVE_POSIX_PRINTF 1
22136 _ACEOF
22138       ;;
22139   esac
22142     { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
22143 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
22144 if test "${ac_cv_gnu_library_2_1+set}" = set; then
22145   $as_echo_n "(cached) " >&6
22146 else
22147   cat >conftest.$ac_ext <<_ACEOF
22148 /* confdefs.h.  */
22149 _ACEOF
22150 cat confdefs.h >>conftest.$ac_ext
22151 cat >>conftest.$ac_ext <<_ACEOF
22152 /* end confdefs.h.  */
22154 #include <features.h>
22155 #ifdef __GNU_LIBRARY__
22156  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
22157   Lucky GNU user
22158  #endif
22159 #endif
22161 _ACEOF
22162 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22163   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
22164   ac_cv_gnu_library_2_1=yes
22165 else
22166   ac_cv_gnu_library_2_1=no
22168 rm -f conftest*
22173 { $as_echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
22174 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
22176     GLIBC21="$ac_cv_gnu_library_2_1"
22181 for ac_header in stdint.h
22183 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22184 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22185   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22186 $as_echo_n "checking for $ac_header... " >&6; }
22187 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22188   $as_echo_n "(cached) " >&6
22190 ac_res=`eval 'as_val=${'$as_ac_Header'}
22191                  $as_echo "$as_val"'`
22192                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22193 $as_echo "$ac_res" >&6; }
22194 else
22195   # Is the header compilable?
22196 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22197 $as_echo_n "checking $ac_header usability... " >&6; }
22198 cat >conftest.$ac_ext <<_ACEOF
22199 /* confdefs.h.  */
22200 _ACEOF
22201 cat confdefs.h >>conftest.$ac_ext
22202 cat >>conftest.$ac_ext <<_ACEOF
22203 /* end confdefs.h.  */
22204 $ac_includes_default
22205 #include <$ac_header>
22206 _ACEOF
22207 rm -f conftest.$ac_objext
22208 if { (ac_try="$ac_compile"
22209 case "(($ac_try" in
22210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22211   *) ac_try_echo=$ac_try;;
22212 esac
22213 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22214 $as_echo "$ac_try_echo") >&5
22215   (eval "$ac_compile") 2>conftest.er1
22216   ac_status=$?
22217   grep -v '^ *+' conftest.er1 >conftest.err
22218   rm -f conftest.er1
22219   cat conftest.err >&5
22220   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22221   (exit $ac_status); } && {
22222          test -z "$ac_c_werror_flag" ||
22223          test ! -s conftest.err
22224        } && test -s conftest.$ac_objext; then
22225   ac_header_compiler=yes
22226 else
22227   $as_echo "$as_me: failed program was:" >&5
22228 sed 's/^/| /' conftest.$ac_ext >&5
22230         ac_header_compiler=no
22233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22234 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22235 $as_echo "$ac_header_compiler" >&6; }
22237 # Is the header present?
22238 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22239 $as_echo_n "checking $ac_header presence... " >&6; }
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 <$ac_header>
22247 _ACEOF
22248 if { (ac_try="$ac_cpp conftest.$ac_ext"
22249 case "(($ac_try" in
22250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22251   *) ac_try_echo=$ac_try;;
22252 esac
22253 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22254 $as_echo "$ac_try_echo") >&5
22255   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22256   ac_status=$?
22257   grep -v '^ *+' conftest.er1 >conftest.err
22258   rm -f conftest.er1
22259   cat conftest.err >&5
22260   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22261   (exit $ac_status); } >/dev/null && {
22262          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22263          test ! -s conftest.err
22264        }; then
22265   ac_header_preproc=yes
22266 else
22267   $as_echo "$as_me: failed program was:" >&5
22268 sed 's/^/| /' conftest.$ac_ext >&5
22270   ac_header_preproc=no
22273 rm -f conftest.err conftest.$ac_ext
22274 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22275 $as_echo "$ac_header_preproc" >&6; }
22277 # So?  What about this header?
22278 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22279   yes:no: )
22280     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22281 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22282     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22283 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22284     ac_header_preproc=yes
22285     ;;
22286   no:yes:* )
22287     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22288 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22289     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22290 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22291     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22292 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22293     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22294 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22295     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22296 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22297     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22298 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22300     ;;
22301 esac
22302 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22303 $as_echo_n "checking for $ac_header... " >&6; }
22304 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22305   $as_echo_n "(cached) " >&6
22306 else
22307   eval "$as_ac_Header=\$ac_header_preproc"
22309 ac_res=`eval 'as_val=${'$as_ac_Header'}
22310                  $as_echo "$as_val"'`
22311                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22312 $as_echo "$ac_res" >&6; }
22315 as_val=`eval 'as_val=${'$as_ac_Header'}
22316                  $as_echo "$as_val"'`
22317    if test "x$as_val" = x""yes; then
22318   cat >>confdefs.h <<_ACEOF
22319 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22320 _ACEOF
22324 done
22326     { $as_echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
22327 $as_echo_n "checking for SIZE_MAX... " >&6; }
22328   if test "${gl_cv_size_max+set}" = set; then
22329   $as_echo_n "(cached) " >&6
22330 else
22332     gl_cv_size_max=
22333     cat >conftest.$ac_ext <<_ACEOF
22334 /* confdefs.h.  */
22335 _ACEOF
22336 cat confdefs.h >>conftest.$ac_ext
22337 cat >>conftest.$ac_ext <<_ACEOF
22338 /* end confdefs.h.  */
22340 #include <limits.h>
22341 #if HAVE_STDINT_H
22342 #include <stdint.h>
22343 #endif
22344 #ifdef SIZE_MAX
22345 Found it
22346 #endif
22348 _ACEOF
22349 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22350   $EGREP "Found it" >/dev/null 2>&1; then
22351   gl_cv_size_max=yes
22353 rm -f conftest*
22355     if test -z "$gl_cv_size_max"; then
22356                         if test "$cross_compiling" = yes; then
22357   # Depending upon the size, compute the lo and hi bounds.
22358 cat >conftest.$ac_ext <<_ACEOF
22359 /* confdefs.h.  */
22360 _ACEOF
22361 cat confdefs.h >>conftest.$ac_ext
22362 cat >>conftest.$ac_ext <<_ACEOF
22363 /* end confdefs.h.  */
22364 #include <stddef.h>
22365 #include <limits.h>
22366 int
22367 main ()
22369 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= 0)];
22370 test_array [0] = 0
22372   ;
22373   return 0;
22375 _ACEOF
22376 rm -f conftest.$ac_objext
22377 if { (ac_try="$ac_compile"
22378 case "(($ac_try" in
22379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22380   *) ac_try_echo=$ac_try;;
22381 esac
22382 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22383 $as_echo "$ac_try_echo") >&5
22384   (eval "$ac_compile") 2>conftest.er1
22385   ac_status=$?
22386   grep -v '^ *+' conftest.er1 >conftest.err
22387   rm -f conftest.er1
22388   cat conftest.err >&5
22389   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22390   (exit $ac_status); } && {
22391          test -z "$ac_c_werror_flag" ||
22392          test ! -s conftest.err
22393        } && test -s conftest.$ac_objext; then
22394   ac_lo=0 ac_mid=0
22395   while :; do
22396     cat >conftest.$ac_ext <<_ACEOF
22397 /* confdefs.h.  */
22398 _ACEOF
22399 cat confdefs.h >>conftest.$ac_ext
22400 cat >>conftest.$ac_ext <<_ACEOF
22401 /* end confdefs.h.  */
22402 #include <stddef.h>
22403 #include <limits.h>
22404 int
22405 main ()
22407 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
22408 test_array [0] = 0
22410   ;
22411   return 0;
22413 _ACEOF
22414 rm -f conftest.$ac_objext
22415 if { (ac_try="$ac_compile"
22416 case "(($ac_try" in
22417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22418   *) ac_try_echo=$ac_try;;
22419 esac
22420 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22421 $as_echo "$ac_try_echo") >&5
22422   (eval "$ac_compile") 2>conftest.er1
22423   ac_status=$?
22424   grep -v '^ *+' conftest.er1 >conftest.err
22425   rm -f conftest.er1
22426   cat conftest.err >&5
22427   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22428   (exit $ac_status); } && {
22429          test -z "$ac_c_werror_flag" ||
22430          test ! -s conftest.err
22431        } && test -s conftest.$ac_objext; then
22432   ac_hi=$ac_mid; break
22433 else
22434   $as_echo "$as_me: failed program was:" >&5
22435 sed 's/^/| /' conftest.$ac_ext >&5
22437         ac_lo=`expr $ac_mid + 1`
22438                         if test $ac_lo -le $ac_mid; then
22439                           ac_lo= ac_hi=
22440                           break
22441                         fi
22442                         ac_mid=`expr 2 '*' $ac_mid + 1`
22445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22446   done
22447 else
22448   $as_echo "$as_me: failed program was:" >&5
22449 sed 's/^/| /' conftest.$ac_ext >&5
22451         cat >conftest.$ac_ext <<_ACEOF
22452 /* confdefs.h.  */
22453 _ACEOF
22454 cat confdefs.h >>conftest.$ac_ext
22455 cat >>conftest.$ac_ext <<_ACEOF
22456 /* end confdefs.h.  */
22457 #include <stddef.h>
22458 #include <limits.h>
22459 int
22460 main ()
22462 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) < 0)];
22463 test_array [0] = 0
22465   ;
22466   return 0;
22468 _ACEOF
22469 rm -f conftest.$ac_objext
22470 if { (ac_try="$ac_compile"
22471 case "(($ac_try" in
22472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22473   *) ac_try_echo=$ac_try;;
22474 esac
22475 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22476 $as_echo "$ac_try_echo") >&5
22477   (eval "$ac_compile") 2>conftest.er1
22478   ac_status=$?
22479   grep -v '^ *+' conftest.er1 >conftest.err
22480   rm -f conftest.er1
22481   cat conftest.err >&5
22482   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22483   (exit $ac_status); } && {
22484          test -z "$ac_c_werror_flag" ||
22485          test ! -s conftest.err
22486        } && test -s conftest.$ac_objext; then
22487   ac_hi=-1 ac_mid=-1
22488   while :; do
22489     cat >conftest.$ac_ext <<_ACEOF
22490 /* confdefs.h.  */
22491 _ACEOF
22492 cat confdefs.h >>conftest.$ac_ext
22493 cat >>conftest.$ac_ext <<_ACEOF
22494 /* end confdefs.h.  */
22495 #include <stddef.h>
22496 #include <limits.h>
22497 int
22498 main ()
22500 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= $ac_mid)];
22501 test_array [0] = 0
22503   ;
22504   return 0;
22506 _ACEOF
22507 rm -f conftest.$ac_objext
22508 if { (ac_try="$ac_compile"
22509 case "(($ac_try" in
22510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22511   *) ac_try_echo=$ac_try;;
22512 esac
22513 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22514 $as_echo "$ac_try_echo") >&5
22515   (eval "$ac_compile") 2>conftest.er1
22516   ac_status=$?
22517   grep -v '^ *+' conftest.er1 >conftest.err
22518   rm -f conftest.er1
22519   cat conftest.err >&5
22520   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22521   (exit $ac_status); } && {
22522          test -z "$ac_c_werror_flag" ||
22523          test ! -s conftest.err
22524        } && test -s conftest.$ac_objext; then
22525   ac_lo=$ac_mid; break
22526 else
22527   $as_echo "$as_me: failed program was:" >&5
22528 sed 's/^/| /' conftest.$ac_ext >&5
22530         ac_hi=`expr '(' $ac_mid ')' - 1`
22531                         if test $ac_mid -le $ac_hi; then
22532                           ac_lo= ac_hi=
22533                           break
22534                         fi
22535                         ac_mid=`expr 2 '*' $ac_mid`
22538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22539   done
22540 else
22541   $as_echo "$as_me: failed program was:" >&5
22542 sed 's/^/| /' conftest.$ac_ext >&5
22544         ac_lo= ac_hi=
22547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22551 # Binary search between lo and hi bounds.
22552 while test "x$ac_lo" != "x$ac_hi"; do
22553   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22554   cat >conftest.$ac_ext <<_ACEOF
22555 /* confdefs.h.  */
22556 _ACEOF
22557 cat confdefs.h >>conftest.$ac_ext
22558 cat >>conftest.$ac_ext <<_ACEOF
22559 /* end confdefs.h.  */
22560 #include <stddef.h>
22561 #include <limits.h>
22562 int
22563 main ()
22565 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
22566 test_array [0] = 0
22568   ;
22569   return 0;
22571 _ACEOF
22572 rm -f conftest.$ac_objext
22573 if { (ac_try="$ac_compile"
22574 case "(($ac_try" in
22575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22576   *) ac_try_echo=$ac_try;;
22577 esac
22578 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22579 $as_echo "$ac_try_echo") >&5
22580   (eval "$ac_compile") 2>conftest.er1
22581   ac_status=$?
22582   grep -v '^ *+' conftest.er1 >conftest.err
22583   rm -f conftest.er1
22584   cat conftest.err >&5
22585   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22586   (exit $ac_status); } && {
22587          test -z "$ac_c_werror_flag" ||
22588          test ! -s conftest.err
22589        } && test -s conftest.$ac_objext; then
22590   ac_hi=$ac_mid
22591 else
22592   $as_echo "$as_me: failed program was:" >&5
22593 sed 's/^/| /' conftest.$ac_ext >&5
22595         ac_lo=`expr '(' $ac_mid ')' + 1`
22598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22599 done
22600 case $ac_lo in
22601 ?*) size_t_bits_minus_1=$ac_lo;;
22602 '') size_t_bits_minus_1= ;;
22603 esac
22604 else
22605   cat >conftest.$ac_ext <<_ACEOF
22606 /* confdefs.h.  */
22607 _ACEOF
22608 cat confdefs.h >>conftest.$ac_ext
22609 cat >>conftest.$ac_ext <<_ACEOF
22610 /* end confdefs.h.  */
22611 #include <stddef.h>
22612 #include <limits.h>
22613 static long int longval () { return sizeof (size_t) * CHAR_BIT - 1; }
22614 static unsigned long int ulongval () { return sizeof (size_t) * CHAR_BIT - 1; }
22615 #include <stdio.h>
22616 #include <stdlib.h>
22617 int
22618 main ()
22621   FILE *f = fopen ("conftest.val", "w");
22622   if (! f)
22623     return 1;
22624   if ((sizeof (size_t) * CHAR_BIT - 1) < 0)
22625     {
22626       long int i = longval ();
22627       if (i != (sizeof (size_t) * CHAR_BIT - 1))
22628         return 1;
22629       fprintf (f, "%ld", i);
22630     }
22631   else
22632     {
22633       unsigned long int i = ulongval ();
22634       if (i != (sizeof (size_t) * CHAR_BIT - 1))
22635         return 1;
22636       fprintf (f, "%lu", i);
22637     }
22638   /* Do not output a trailing newline, as this causes \r\n confusion
22639      on some platforms.  */
22640   return ferror (f) || fclose (f) != 0;
22642   ;
22643   return 0;
22645 _ACEOF
22646 rm -f conftest$ac_exeext
22647 if { (ac_try="$ac_link"
22648 case "(($ac_try" in
22649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22650   *) ac_try_echo=$ac_try;;
22651 esac
22652 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22653 $as_echo "$ac_try_echo") >&5
22654   (eval "$ac_link") 2>&5
22655   ac_status=$?
22656   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22657   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22658   { (case "(($ac_try" in
22659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22660   *) ac_try_echo=$ac_try;;
22661 esac
22662 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22663 $as_echo "$ac_try_echo") >&5
22664   (eval "$ac_try") 2>&5
22665   ac_status=$?
22666   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22667   (exit $ac_status); }; }; then
22668   size_t_bits_minus_1=`cat conftest.val`
22669 else
22670   $as_echo "$as_me: program exited with status $ac_status" >&5
22671 $as_echo "$as_me: failed program was:" >&5
22672 sed 's/^/| /' conftest.$ac_ext >&5
22674 ( exit $ac_status )
22675 size_t_bits_minus_1=
22677 rm -rf conftest.dSYM
22678 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22680 rm -f conftest.val
22681       if test "$cross_compiling" = yes; then
22682   # Depending upon the size, compute the lo and hi bounds.
22683 cat >conftest.$ac_ext <<_ACEOF
22684 /* confdefs.h.  */
22685 _ACEOF
22686 cat confdefs.h >>conftest.$ac_ext
22687 cat >>conftest.$ac_ext <<_ACEOF
22688 /* end confdefs.h.  */
22689 #include <stddef.h>
22690 int
22691 main ()
22693 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
22694 test_array [0] = 0
22696   ;
22697   return 0;
22699 _ACEOF
22700 rm -f conftest.$ac_objext
22701 if { (ac_try="$ac_compile"
22702 case "(($ac_try" in
22703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22704   *) ac_try_echo=$ac_try;;
22705 esac
22706 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22707 $as_echo "$ac_try_echo") >&5
22708   (eval "$ac_compile") 2>conftest.er1
22709   ac_status=$?
22710   grep -v '^ *+' conftest.er1 >conftest.err
22711   rm -f conftest.er1
22712   cat conftest.err >&5
22713   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22714   (exit $ac_status); } && {
22715          test -z "$ac_c_werror_flag" ||
22716          test ! -s conftest.err
22717        } && test -s conftest.$ac_objext; then
22718   ac_lo=0 ac_mid=0
22719   while :; do
22720     cat >conftest.$ac_ext <<_ACEOF
22721 /* confdefs.h.  */
22722 _ACEOF
22723 cat confdefs.h >>conftest.$ac_ext
22724 cat >>conftest.$ac_ext <<_ACEOF
22725 /* end confdefs.h.  */
22726 #include <stddef.h>
22727 int
22728 main ()
22730 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
22731 test_array [0] = 0
22733   ;
22734   return 0;
22736 _ACEOF
22737 rm -f conftest.$ac_objext
22738 if { (ac_try="$ac_compile"
22739 case "(($ac_try" in
22740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22741   *) ac_try_echo=$ac_try;;
22742 esac
22743 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22744 $as_echo "$ac_try_echo") >&5
22745   (eval "$ac_compile") 2>conftest.er1
22746   ac_status=$?
22747   grep -v '^ *+' conftest.er1 >conftest.err
22748   rm -f conftest.er1
22749   cat conftest.err >&5
22750   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22751   (exit $ac_status); } && {
22752          test -z "$ac_c_werror_flag" ||
22753          test ! -s conftest.err
22754        } && test -s conftest.$ac_objext; then
22755   ac_hi=$ac_mid; break
22756 else
22757   $as_echo "$as_me: failed program was:" >&5
22758 sed 's/^/| /' conftest.$ac_ext >&5
22760         ac_lo=`expr $ac_mid + 1`
22761                         if test $ac_lo -le $ac_mid; then
22762                           ac_lo= ac_hi=
22763                           break
22764                         fi
22765                         ac_mid=`expr 2 '*' $ac_mid + 1`
22768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22769   done
22770 else
22771   $as_echo "$as_me: failed program was:" >&5
22772 sed 's/^/| /' conftest.$ac_ext >&5
22774         cat >conftest.$ac_ext <<_ACEOF
22775 /* confdefs.h.  */
22776 _ACEOF
22777 cat confdefs.h >>conftest.$ac_ext
22778 cat >>conftest.$ac_ext <<_ACEOF
22779 /* end confdefs.h.  */
22780 #include <stddef.h>
22781 int
22782 main ()
22784 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
22785 test_array [0] = 0
22787   ;
22788   return 0;
22790 _ACEOF
22791 rm -f conftest.$ac_objext
22792 if { (ac_try="$ac_compile"
22793 case "(($ac_try" in
22794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22795   *) ac_try_echo=$ac_try;;
22796 esac
22797 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22798 $as_echo "$ac_try_echo") >&5
22799   (eval "$ac_compile") 2>conftest.er1
22800   ac_status=$?
22801   grep -v '^ *+' conftest.er1 >conftest.err
22802   rm -f conftest.er1
22803   cat conftest.err >&5
22804   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22805   (exit $ac_status); } && {
22806          test -z "$ac_c_werror_flag" ||
22807          test ! -s conftest.err
22808        } && test -s conftest.$ac_objext; then
22809   ac_hi=-1 ac_mid=-1
22810   while :; do
22811     cat >conftest.$ac_ext <<_ACEOF
22812 /* confdefs.h.  */
22813 _ACEOF
22814 cat confdefs.h >>conftest.$ac_ext
22815 cat >>conftest.$ac_ext <<_ACEOF
22816 /* end confdefs.h.  */
22817 #include <stddef.h>
22818 int
22819 main ()
22821 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
22822 test_array [0] = 0
22824   ;
22825   return 0;
22827 _ACEOF
22828 rm -f conftest.$ac_objext
22829 if { (ac_try="$ac_compile"
22830 case "(($ac_try" in
22831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22832   *) ac_try_echo=$ac_try;;
22833 esac
22834 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22835 $as_echo "$ac_try_echo") >&5
22836   (eval "$ac_compile") 2>conftest.er1
22837   ac_status=$?
22838   grep -v '^ *+' conftest.er1 >conftest.err
22839   rm -f conftest.er1
22840   cat conftest.err >&5
22841   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22842   (exit $ac_status); } && {
22843          test -z "$ac_c_werror_flag" ||
22844          test ! -s conftest.err
22845        } && test -s conftest.$ac_objext; then
22846   ac_lo=$ac_mid; break
22847 else
22848   $as_echo "$as_me: failed program was:" >&5
22849 sed 's/^/| /' conftest.$ac_ext >&5
22851         ac_hi=`expr '(' $ac_mid ')' - 1`
22852                         if test $ac_mid -le $ac_hi; then
22853                           ac_lo= ac_hi=
22854                           break
22855                         fi
22856                         ac_mid=`expr 2 '*' $ac_mid`
22859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22860   done
22861 else
22862   $as_echo "$as_me: failed program was:" >&5
22863 sed 's/^/| /' conftest.$ac_ext >&5
22865         ac_lo= ac_hi=
22868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22872 # Binary search between lo and hi bounds.
22873 while test "x$ac_lo" != "x$ac_hi"; do
22874   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22875   cat >conftest.$ac_ext <<_ACEOF
22876 /* confdefs.h.  */
22877 _ACEOF
22878 cat confdefs.h >>conftest.$ac_ext
22879 cat >>conftest.$ac_ext <<_ACEOF
22880 /* end confdefs.h.  */
22881 #include <stddef.h>
22882 int
22883 main ()
22885 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
22886 test_array [0] = 0
22888   ;
22889   return 0;
22891 _ACEOF
22892 rm -f conftest.$ac_objext
22893 if { (ac_try="$ac_compile"
22894 case "(($ac_try" in
22895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22896   *) ac_try_echo=$ac_try;;
22897 esac
22898 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22899 $as_echo "$ac_try_echo") >&5
22900   (eval "$ac_compile") 2>conftest.er1
22901   ac_status=$?
22902   grep -v '^ *+' conftest.er1 >conftest.err
22903   rm -f conftest.er1
22904   cat conftest.err >&5
22905   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22906   (exit $ac_status); } && {
22907          test -z "$ac_c_werror_flag" ||
22908          test ! -s conftest.err
22909        } && test -s conftest.$ac_objext; then
22910   ac_hi=$ac_mid
22911 else
22912   $as_echo "$as_me: failed program was:" >&5
22913 sed 's/^/| /' conftest.$ac_ext >&5
22915         ac_lo=`expr '(' $ac_mid ')' + 1`
22918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22919 done
22920 case $ac_lo in
22921 ?*) fits_in_uint=$ac_lo;;
22922 '') fits_in_uint= ;;
22923 esac
22924 else
22925   cat >conftest.$ac_ext <<_ACEOF
22926 /* confdefs.h.  */
22927 _ACEOF
22928 cat confdefs.h >>conftest.$ac_ext
22929 cat >>conftest.$ac_ext <<_ACEOF
22930 /* end confdefs.h.  */
22931 #include <stddef.h>
22932 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
22933 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
22934 #include <stdio.h>
22935 #include <stdlib.h>
22936 int
22937 main ()
22940   FILE *f = fopen ("conftest.val", "w");
22941   if (! f)
22942     return 1;
22943   if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
22944     {
22945       long int i = longval ();
22946       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
22947         return 1;
22948       fprintf (f, "%ld", i);
22949     }
22950   else
22951     {
22952       unsigned long int i = ulongval ();
22953       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
22954         return 1;
22955       fprintf (f, "%lu", i);
22956     }
22957   /* Do not output a trailing newline, as this causes \r\n confusion
22958      on some platforms.  */
22959   return ferror (f) || fclose (f) != 0;
22961   ;
22962   return 0;
22964 _ACEOF
22965 rm -f conftest$ac_exeext
22966 if { (ac_try="$ac_link"
22967 case "(($ac_try" in
22968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22969   *) ac_try_echo=$ac_try;;
22970 esac
22971 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22972 $as_echo "$ac_try_echo") >&5
22973   (eval "$ac_link") 2>&5
22974   ac_status=$?
22975   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22976   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22977   { (case "(($ac_try" in
22978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22979   *) ac_try_echo=$ac_try;;
22980 esac
22981 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22982 $as_echo "$ac_try_echo") >&5
22983   (eval "$ac_try") 2>&5
22984   ac_status=$?
22985   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22986   (exit $ac_status); }; }; then
22987   fits_in_uint=`cat conftest.val`
22988 else
22989   $as_echo "$as_me: program exited with status $ac_status" >&5
22990 $as_echo "$as_me: failed program was:" >&5
22991 sed 's/^/| /' conftest.$ac_ext >&5
22993 ( exit $ac_status )
22994 fits_in_uint=
22996 rm -rf conftest.dSYM
22997 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22999 rm -f conftest.val
23000       if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
23001         if test $fits_in_uint = 1; then
23002                               cat >conftest.$ac_ext <<_ACEOF
23003 /* confdefs.h.  */
23004 _ACEOF
23005 cat confdefs.h >>conftest.$ac_ext
23006 cat >>conftest.$ac_ext <<_ACEOF
23007 /* end confdefs.h.  */
23008 #include <stddef.h>
23009             extern size_t foo;
23010             extern unsigned long foo;
23012 int
23013 main ()
23016   ;
23017   return 0;
23019 _ACEOF
23020 rm -f conftest.$ac_objext
23021 if { (ac_try="$ac_compile"
23022 case "(($ac_try" in
23023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23024   *) ac_try_echo=$ac_try;;
23025 esac
23026 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23027 $as_echo "$ac_try_echo") >&5
23028   (eval "$ac_compile") 2>conftest.er1
23029   ac_status=$?
23030   grep -v '^ *+' conftest.er1 >conftest.err
23031   rm -f conftest.er1
23032   cat conftest.err >&5
23033   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23034   (exit $ac_status); } && {
23035          test -z "$ac_c_werror_flag" ||
23036          test ! -s conftest.err
23037        } && test -s conftest.$ac_objext; then
23038   fits_in_uint=0
23039 else
23040   $as_echo "$as_me: failed program was:" >&5
23041 sed 's/^/| /' conftest.$ac_ext >&5
23046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23047         fi
23048                                 if test $fits_in_uint = 1; then
23049           gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
23050         else
23051           gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
23052         fi
23053       else
23054                 gl_cv_size_max='((size_t)~(size_t)0)'
23055       fi
23056     fi
23060   { $as_echo "$as_me:$LINENO: result: $gl_cv_size_max" >&5
23061 $as_echo "$gl_cv_size_max" >&6; }
23062   if test "$gl_cv_size_max" != yes; then
23064 cat >>confdefs.h <<_ACEOF
23065 #define SIZE_MAX $gl_cv_size_max
23066 _ACEOF
23068   fi
23074 for ac_header in stdint.h
23076 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23077 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23078   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23079 $as_echo_n "checking for $ac_header... " >&6; }
23080 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23081   $as_echo_n "(cached) " >&6
23083 ac_res=`eval 'as_val=${'$as_ac_Header'}
23084                  $as_echo "$as_val"'`
23085                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23086 $as_echo "$ac_res" >&6; }
23087 else
23088   # Is the header compilable?
23089 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23090 $as_echo_n "checking $ac_header usability... " >&6; }
23091 cat >conftest.$ac_ext <<_ACEOF
23092 /* confdefs.h.  */
23093 _ACEOF
23094 cat confdefs.h >>conftest.$ac_ext
23095 cat >>conftest.$ac_ext <<_ACEOF
23096 /* end confdefs.h.  */
23097 $ac_includes_default
23098 #include <$ac_header>
23099 _ACEOF
23100 rm -f conftest.$ac_objext
23101 if { (ac_try="$ac_compile"
23102 case "(($ac_try" in
23103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23104   *) ac_try_echo=$ac_try;;
23105 esac
23106 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23107 $as_echo "$ac_try_echo") >&5
23108   (eval "$ac_compile") 2>conftest.er1
23109   ac_status=$?
23110   grep -v '^ *+' conftest.er1 >conftest.err
23111   rm -f conftest.er1
23112   cat conftest.err >&5
23113   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23114   (exit $ac_status); } && {
23115          test -z "$ac_c_werror_flag" ||
23116          test ! -s conftest.err
23117        } && test -s conftest.$ac_objext; then
23118   ac_header_compiler=yes
23119 else
23120   $as_echo "$as_me: failed program was:" >&5
23121 sed 's/^/| /' conftest.$ac_ext >&5
23123         ac_header_compiler=no
23126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23127 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23128 $as_echo "$ac_header_compiler" >&6; }
23130 # Is the header present?
23131 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23132 $as_echo_n "checking $ac_header presence... " >&6; }
23133 cat >conftest.$ac_ext <<_ACEOF
23134 /* confdefs.h.  */
23135 _ACEOF
23136 cat confdefs.h >>conftest.$ac_ext
23137 cat >>conftest.$ac_ext <<_ACEOF
23138 /* end confdefs.h.  */
23139 #include <$ac_header>
23140 _ACEOF
23141 if { (ac_try="$ac_cpp conftest.$ac_ext"
23142 case "(($ac_try" in
23143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23144   *) ac_try_echo=$ac_try;;
23145 esac
23146 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23147 $as_echo "$ac_try_echo") >&5
23148   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23149   ac_status=$?
23150   grep -v '^ *+' conftest.er1 >conftest.err
23151   rm -f conftest.er1
23152   cat conftest.err >&5
23153   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23154   (exit $ac_status); } >/dev/null && {
23155          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23156          test ! -s conftest.err
23157        }; then
23158   ac_header_preproc=yes
23159 else
23160   $as_echo "$as_me: failed program was:" >&5
23161 sed 's/^/| /' conftest.$ac_ext >&5
23163   ac_header_preproc=no
23166 rm -f conftest.err conftest.$ac_ext
23167 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23168 $as_echo "$ac_header_preproc" >&6; }
23170 # So?  What about this header?
23171 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23172   yes:no: )
23173     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23174 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23175     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23176 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23177     ac_header_preproc=yes
23178     ;;
23179   no:yes:* )
23180     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23181 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23182     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23183 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23184     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23185 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23186     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23187 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23188     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23189 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23190     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23191 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23193     ;;
23194 esac
23195 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23196 $as_echo_n "checking for $ac_header... " >&6; }
23197 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23198   $as_echo_n "(cached) " >&6
23199 else
23200   eval "$as_ac_Header=\$ac_header_preproc"
23202 ac_res=`eval 'as_val=${'$as_ac_Header'}
23203                  $as_echo "$as_val"'`
23204                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23205 $as_echo "$ac_res" >&6; }
23208 as_val=`eval 'as_val=${'$as_ac_Header'}
23209                  $as_echo "$as_val"'`
23210    if test "x$as_val" = x""yes; then
23211   cat >>confdefs.h <<_ACEOF
23212 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23213 _ACEOF
23217 done
23221     { $as_echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
23222 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
23223 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
23224   $as_echo_n "(cached) " >&6
23225 else
23226   gt_save_LIBS="$LIBS"
23227      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
23228      cat >conftest.$ac_ext <<_ACEOF
23229 /* confdefs.h.  */
23230 _ACEOF
23231 cat confdefs.h >>conftest.$ac_ext
23232 cat >>conftest.$ac_ext <<_ACEOF
23233 /* end confdefs.h.  */
23234 #include <CoreFoundation/CFPreferences.h>
23235 int
23236 main ()
23238 CFPreferencesCopyAppValue(NULL, NULL)
23239   ;
23240   return 0;
23242 _ACEOF
23243 rm -f conftest.$ac_objext conftest$ac_exeext
23244 if { (ac_try="$ac_link"
23245 case "(($ac_try" in
23246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23247   *) ac_try_echo=$ac_try;;
23248 esac
23249 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23250 $as_echo "$ac_try_echo") >&5
23251   (eval "$ac_link") 2>conftest.er1
23252   ac_status=$?
23253   grep -v '^ *+' conftest.er1 >conftest.err
23254   rm -f conftest.er1
23255   cat conftest.err >&5
23256   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23257   (exit $ac_status); } && {
23258          test -z "$ac_c_werror_flag" ||
23259          test ! -s conftest.err
23260        } && test -s conftest$ac_exeext && {
23261          test "$cross_compiling" = yes ||
23262          $as_test_x conftest$ac_exeext
23263        }; then
23264   gt_cv_func_CFPreferencesCopyAppValue=yes
23265 else
23266   $as_echo "$as_me: failed program was:" >&5
23267 sed 's/^/| /' conftest.$ac_ext >&5
23269         gt_cv_func_CFPreferencesCopyAppValue=no
23272 rm -rf conftest.dSYM
23273 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23274       conftest$ac_exeext conftest.$ac_ext
23275      LIBS="$gt_save_LIBS"
23277 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
23278 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
23279   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
23281 cat >>confdefs.h <<\_ACEOF
23282 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
23283 _ACEOF
23285   fi
23286     { $as_echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
23287 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
23288 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
23289   $as_echo_n "(cached) " >&6
23290 else
23291   gt_save_LIBS="$LIBS"
23292      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
23293      cat >conftest.$ac_ext <<_ACEOF
23294 /* confdefs.h.  */
23295 _ACEOF
23296 cat confdefs.h >>conftest.$ac_ext
23297 cat >>conftest.$ac_ext <<_ACEOF
23298 /* end confdefs.h.  */
23299 #include <CoreFoundation/CFLocale.h>
23300 int
23301 main ()
23303 CFLocaleCopyCurrent();
23304   ;
23305   return 0;
23307 _ACEOF
23308 rm -f conftest.$ac_objext conftest$ac_exeext
23309 if { (ac_try="$ac_link"
23310 case "(($ac_try" in
23311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23312   *) ac_try_echo=$ac_try;;
23313 esac
23314 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23315 $as_echo "$ac_try_echo") >&5
23316   (eval "$ac_link") 2>conftest.er1
23317   ac_status=$?
23318   grep -v '^ *+' conftest.er1 >conftest.err
23319   rm -f conftest.er1
23320   cat conftest.err >&5
23321   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23322   (exit $ac_status); } && {
23323          test -z "$ac_c_werror_flag" ||
23324          test ! -s conftest.err
23325        } && test -s conftest$ac_exeext && {
23326          test "$cross_compiling" = yes ||
23327          $as_test_x conftest$ac_exeext
23328        }; then
23329   gt_cv_func_CFLocaleCopyCurrent=yes
23330 else
23331   $as_echo "$as_me: failed program was:" >&5
23332 sed 's/^/| /' conftest.$ac_ext >&5
23334         gt_cv_func_CFLocaleCopyCurrent=no
23337 rm -rf conftest.dSYM
23338 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23339       conftest$ac_exeext conftest.$ac_ext
23340      LIBS="$gt_save_LIBS"
23342 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
23343 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
23344   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
23346 cat >>confdefs.h <<\_ACEOF
23347 #define HAVE_CFLOCALECOPYCURRENT 1
23348 _ACEOF
23350   fi
23351   INTL_MACOSX_LIBS=
23352   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
23353     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
23354   fi
23362   { $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
23363 $as_echo_n "checking for ptrdiff_t... " >&6; }
23364 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
23365   $as_echo_n "(cached) " >&6
23366 else
23367   ac_cv_type_ptrdiff_t=no
23368 cat >conftest.$ac_ext <<_ACEOF
23369 /* confdefs.h.  */
23370 _ACEOF
23371 cat confdefs.h >>conftest.$ac_ext
23372 cat >>conftest.$ac_ext <<_ACEOF
23373 /* end confdefs.h.  */
23374 $ac_includes_default
23375 int
23376 main ()
23378 if (sizeof (ptrdiff_t))
23379        return 0;
23380   ;
23381   return 0;
23383 _ACEOF
23384 rm -f conftest.$ac_objext
23385 if { (ac_try="$ac_compile"
23386 case "(($ac_try" in
23387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23388   *) ac_try_echo=$ac_try;;
23389 esac
23390 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23391 $as_echo "$ac_try_echo") >&5
23392   (eval "$ac_compile") 2>conftest.er1
23393   ac_status=$?
23394   grep -v '^ *+' conftest.er1 >conftest.err
23395   rm -f conftest.er1
23396   cat conftest.err >&5
23397   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23398   (exit $ac_status); } && {
23399          test -z "$ac_c_werror_flag" ||
23400          test ! -s conftest.err
23401        } && test -s conftest.$ac_objext; then
23402   cat >conftest.$ac_ext <<_ACEOF
23403 /* confdefs.h.  */
23404 _ACEOF
23405 cat confdefs.h >>conftest.$ac_ext
23406 cat >>conftest.$ac_ext <<_ACEOF
23407 /* end confdefs.h.  */
23408 $ac_includes_default
23409 int
23410 main ()
23412 if (sizeof ((ptrdiff_t)))
23413           return 0;
23414   ;
23415   return 0;
23417 _ACEOF
23418 rm -f conftest.$ac_objext
23419 if { (ac_try="$ac_compile"
23420 case "(($ac_try" in
23421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23422   *) ac_try_echo=$ac_try;;
23423 esac
23424 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23425 $as_echo "$ac_try_echo") >&5
23426   (eval "$ac_compile") 2>conftest.er1
23427   ac_status=$?
23428   grep -v '^ *+' conftest.er1 >conftest.err
23429   rm -f conftest.er1
23430   cat conftest.err >&5
23431   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23432   (exit $ac_status); } && {
23433          test -z "$ac_c_werror_flag" ||
23434          test ! -s conftest.err
23435        } && test -s conftest.$ac_objext; then
23436   :
23437 else
23438   $as_echo "$as_me: failed program was:" >&5
23439 sed 's/^/| /' conftest.$ac_ext >&5
23441         ac_cv_type_ptrdiff_t=yes
23444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23445 else
23446   $as_echo "$as_me: failed program was:" >&5
23447 sed 's/^/| /' conftest.$ac_ext >&5
23452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23454 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
23455 $as_echo "$ac_cv_type_ptrdiff_t" >&6; }
23456 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then
23457   :
23458 else
23460 cat >>confdefs.h <<\_ACEOF
23461 #define ptrdiff_t long
23462 _ACEOF
23470 for ac_header in stddef.h stdlib.h string.h
23472 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23473 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23474   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23475 $as_echo_n "checking for $ac_header... " >&6; }
23476 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23477   $as_echo_n "(cached) " >&6
23479 ac_res=`eval 'as_val=${'$as_ac_Header'}
23480                  $as_echo "$as_val"'`
23481                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23482 $as_echo "$ac_res" >&6; }
23483 else
23484   # Is the header compilable?
23485 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23486 $as_echo_n "checking $ac_header usability... " >&6; }
23487 cat >conftest.$ac_ext <<_ACEOF
23488 /* confdefs.h.  */
23489 _ACEOF
23490 cat confdefs.h >>conftest.$ac_ext
23491 cat >>conftest.$ac_ext <<_ACEOF
23492 /* end confdefs.h.  */
23493 $ac_includes_default
23494 #include <$ac_header>
23495 _ACEOF
23496 rm -f conftest.$ac_objext
23497 if { (ac_try="$ac_compile"
23498 case "(($ac_try" in
23499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23500   *) ac_try_echo=$ac_try;;
23501 esac
23502 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23503 $as_echo "$ac_try_echo") >&5
23504   (eval "$ac_compile") 2>conftest.er1
23505   ac_status=$?
23506   grep -v '^ *+' conftest.er1 >conftest.err
23507   rm -f conftest.er1
23508   cat conftest.err >&5
23509   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23510   (exit $ac_status); } && {
23511          test -z "$ac_c_werror_flag" ||
23512          test ! -s conftest.err
23513        } && test -s conftest.$ac_objext; then
23514   ac_header_compiler=yes
23515 else
23516   $as_echo "$as_me: failed program was:" >&5
23517 sed 's/^/| /' conftest.$ac_ext >&5
23519         ac_header_compiler=no
23522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23523 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23524 $as_echo "$ac_header_compiler" >&6; }
23526 # Is the header present?
23527 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23528 $as_echo_n "checking $ac_header presence... " >&6; }
23529 cat >conftest.$ac_ext <<_ACEOF
23530 /* confdefs.h.  */
23531 _ACEOF
23532 cat confdefs.h >>conftest.$ac_ext
23533 cat >>conftest.$ac_ext <<_ACEOF
23534 /* end confdefs.h.  */
23535 #include <$ac_header>
23536 _ACEOF
23537 if { (ac_try="$ac_cpp conftest.$ac_ext"
23538 case "(($ac_try" in
23539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23540   *) ac_try_echo=$ac_try;;
23541 esac
23542 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23543 $as_echo "$ac_try_echo") >&5
23544   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23545   ac_status=$?
23546   grep -v '^ *+' conftest.er1 >conftest.err
23547   rm -f conftest.er1
23548   cat conftest.err >&5
23549   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23550   (exit $ac_status); } >/dev/null && {
23551          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23552          test ! -s conftest.err
23553        }; then
23554   ac_header_preproc=yes
23555 else
23556   $as_echo "$as_me: failed program was:" >&5
23557 sed 's/^/| /' conftest.$ac_ext >&5
23559   ac_header_preproc=no
23562 rm -f conftest.err conftest.$ac_ext
23563 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23564 $as_echo "$ac_header_preproc" >&6; }
23566 # So?  What about this header?
23567 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23568   yes:no: )
23569     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23570 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23571     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23572 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23573     ac_header_preproc=yes
23574     ;;
23575   no:yes:* )
23576     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23577 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23578     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23579 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23580     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23581 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23582     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23583 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23584     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23585 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23586     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23587 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23589     ;;
23590 esac
23591 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23592 $as_echo_n "checking for $ac_header... " >&6; }
23593 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23594   $as_echo_n "(cached) " >&6
23595 else
23596   eval "$as_ac_Header=\$ac_header_preproc"
23598 ac_res=`eval 'as_val=${'$as_ac_Header'}
23599                  $as_echo "$as_val"'`
23600                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23601 $as_echo "$ac_res" >&6; }
23604 as_val=`eval 'as_val=${'$as_ac_Header'}
23605                  $as_echo "$as_val"'`
23606    if test "x$as_val" = x""yes; then
23607   cat >>confdefs.h <<_ACEOF
23608 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23609 _ACEOF
23613 done
23622 for ac_func in asprintf fwprintf putenv setenv setlocale snprintf wcslen
23624 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23625 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
23626 $as_echo_n "checking for $ac_func... " >&6; }
23627 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23628   $as_echo_n "(cached) " >&6
23629 else
23630   cat >conftest.$ac_ext <<_ACEOF
23631 /* confdefs.h.  */
23632 _ACEOF
23633 cat confdefs.h >>conftest.$ac_ext
23634 cat >>conftest.$ac_ext <<_ACEOF
23635 /* end confdefs.h.  */
23636 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23637    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23638 #define $ac_func innocuous_$ac_func
23640 /* System header to define __stub macros and hopefully few prototypes,
23641     which can conflict with char $ac_func (); below.
23642     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23643     <limits.h> exists even on freestanding compilers.  */
23645 #ifdef __STDC__
23646 # include <limits.h>
23647 #else
23648 # include <assert.h>
23649 #endif
23651 #undef $ac_func
23653 /* Override any GCC internal prototype to avoid an error.
23654    Use char because int might match the return type of a GCC
23655    builtin and then its argument prototype would still apply.  */
23656 #ifdef __cplusplus
23657 extern "C"
23658 #endif
23659 char $ac_func ();
23660 /* The GNU C library defines this for functions which it implements
23661     to always fail with ENOSYS.  Some functions are actually named
23662     something starting with __ and the normal name is an alias.  */
23663 #if defined __stub_$ac_func || defined __stub___$ac_func
23664 choke me
23665 #endif
23667 int
23668 main ()
23670 return $ac_func ();
23671   ;
23672   return 0;
23674 _ACEOF
23675 rm -f conftest.$ac_objext conftest$ac_exeext
23676 if { (ac_try="$ac_link"
23677 case "(($ac_try" in
23678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23679   *) ac_try_echo=$ac_try;;
23680 esac
23681 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23682 $as_echo "$ac_try_echo") >&5
23683   (eval "$ac_link") 2>conftest.er1
23684   ac_status=$?
23685   grep -v '^ *+' conftest.er1 >conftest.err
23686   rm -f conftest.er1
23687   cat conftest.err >&5
23688   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23689   (exit $ac_status); } && {
23690          test -z "$ac_c_werror_flag" ||
23691          test ! -s conftest.err
23692        } && test -s conftest$ac_exeext && {
23693          test "$cross_compiling" = yes ||
23694          $as_test_x conftest$ac_exeext
23695        }; then
23696   eval "$as_ac_var=yes"
23697 else
23698   $as_echo "$as_me: failed program was:" >&5
23699 sed 's/^/| /' conftest.$ac_ext >&5
23701         eval "$as_ac_var=no"
23704 rm -rf conftest.dSYM
23705 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23706       conftest$ac_exeext conftest.$ac_ext
23708 ac_res=`eval 'as_val=${'$as_ac_var'}
23709                  $as_echo "$as_val"'`
23710                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23711 $as_echo "$ac_res" >&6; }
23712 as_val=`eval 'as_val=${'$as_ac_var'}
23713                  $as_echo "$as_val"'`
23714    if test "x$as_val" = x""yes; then
23715   cat >>confdefs.h <<_ACEOF
23716 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23717 _ACEOF
23720 done
23724   { $as_echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
23725 $as_echo_n "checking whether _snprintf is declared... " >&6; }
23726 if test "${ac_cv_have_decl__snprintf+set}" = set; then
23727   $as_echo_n "(cached) " >&6
23728 else
23729   cat >conftest.$ac_ext <<_ACEOF
23730 /* confdefs.h.  */
23731 _ACEOF
23732 cat confdefs.h >>conftest.$ac_ext
23733 cat >>conftest.$ac_ext <<_ACEOF
23734 /* end confdefs.h.  */
23735 #include <stdio.h>
23736 int
23737 main ()
23740 #ifndef _snprintf
23741   char *p = (char *) _snprintf;
23742 #endif
23744   ;
23745   return 0;
23747 _ACEOF
23748 rm -f conftest.$ac_objext
23749 if { (ac_try="$ac_compile"
23750 case "(($ac_try" in
23751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23752   *) ac_try_echo=$ac_try;;
23753 esac
23754 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23755 $as_echo "$ac_try_echo") >&5
23756   (eval "$ac_compile") 2>conftest.er1
23757   ac_status=$?
23758   grep -v '^ *+' conftest.er1 >conftest.err
23759   rm -f conftest.er1
23760   cat conftest.err >&5
23761   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23762   (exit $ac_status); } && {
23763          test -z "$ac_c_werror_flag" ||
23764          test ! -s conftest.err
23765        } && test -s conftest.$ac_objext; then
23766   ac_cv_have_decl__snprintf=yes
23767 else
23768   $as_echo "$as_me: failed program was:" >&5
23769 sed 's/^/| /' conftest.$ac_ext >&5
23771         ac_cv_have_decl__snprintf=no
23774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23776 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
23777 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
23778   if test $ac_cv_have_decl__snprintf = yes; then
23779     gt_value=1
23780   else
23781     gt_value=0
23782   fi
23784 cat >>confdefs.h <<_ACEOF
23785 #define HAVE_DECL__SNPRINTF $gt_value
23786 _ACEOF
23790   { $as_echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
23791 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
23792 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
23793   $as_echo_n "(cached) " >&6
23794 else
23795   cat >conftest.$ac_ext <<_ACEOF
23796 /* confdefs.h.  */
23797 _ACEOF
23798 cat confdefs.h >>conftest.$ac_ext
23799 cat >>conftest.$ac_ext <<_ACEOF
23800 /* end confdefs.h.  */
23801 #include <stdio.h>
23802 int
23803 main ()
23806 #ifndef _snwprintf
23807   char *p = (char *) _snwprintf;
23808 #endif
23810   ;
23811   return 0;
23813 _ACEOF
23814 rm -f conftest.$ac_objext
23815 if { (ac_try="$ac_compile"
23816 case "(($ac_try" in
23817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23818   *) ac_try_echo=$ac_try;;
23819 esac
23820 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23821 $as_echo "$ac_try_echo") >&5
23822   (eval "$ac_compile") 2>conftest.er1
23823   ac_status=$?
23824   grep -v '^ *+' conftest.er1 >conftest.err
23825   rm -f conftest.er1
23826   cat conftest.err >&5
23827   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23828   (exit $ac_status); } && {
23829          test -z "$ac_c_werror_flag" ||
23830          test ! -s conftest.err
23831        } && test -s conftest.$ac_objext; then
23832   ac_cv_have_decl__snwprintf=yes
23833 else
23834   $as_echo "$as_me: failed program was:" >&5
23835 sed 's/^/| /' conftest.$ac_ext >&5
23837         ac_cv_have_decl__snwprintf=no
23840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23842 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
23843 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
23844   if test $ac_cv_have_decl__snwprintf = yes; then
23845     gt_value=1
23846   else
23847     gt_value=0
23848   fi
23850 cat >>confdefs.h <<_ACEOF
23851 #define HAVE_DECL__SNWPRINTF $gt_value
23852 _ACEOF
23857   { $as_echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
23858 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
23859 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
23860   $as_echo_n "(cached) " >&6
23861 else
23862   cat >conftest.$ac_ext <<_ACEOF
23863 /* confdefs.h.  */
23864 _ACEOF
23865 cat confdefs.h >>conftest.$ac_ext
23866 cat >>conftest.$ac_ext <<_ACEOF
23867 /* end confdefs.h.  */
23868 #include <stdio.h>
23869 int
23870 main ()
23873 #ifndef getc_unlocked
23874   char *p = (char *) getc_unlocked;
23875 #endif
23877   ;
23878   return 0;
23880 _ACEOF
23881 rm -f conftest.$ac_objext
23882 if { (ac_try="$ac_compile"
23883 case "(($ac_try" in
23884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23885   *) ac_try_echo=$ac_try;;
23886 esac
23887 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23888 $as_echo "$ac_try_echo") >&5
23889   (eval "$ac_compile") 2>conftest.er1
23890   ac_status=$?
23891   grep -v '^ *+' conftest.er1 >conftest.err
23892   rm -f conftest.er1
23893   cat conftest.err >&5
23894   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23895   (exit $ac_status); } && {
23896          test -z "$ac_c_werror_flag" ||
23897          test ! -s conftest.err
23898        } && test -s conftest.$ac_objext; then
23899   ac_cv_have_decl_getc_unlocked=yes
23900 else
23901   $as_echo "$as_me: failed program was:" >&5
23902 sed 's/^/| /' conftest.$ac_ext >&5
23904         ac_cv_have_decl_getc_unlocked=no
23907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23909 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
23910 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
23911   if test $ac_cv_have_decl_getc_unlocked = yes; then
23912     gt_value=1
23913   else
23914     gt_value=0
23915   fi
23917 cat >>confdefs.h <<_ACEOF
23918 #define HAVE_DECL_GETC_UNLOCKED $gt_value
23919 _ACEOF
23923   case $gt_cv_func_printf_posix in
23924     *yes) HAVE_POSIX_PRINTF=1 ;;
23925     *) HAVE_POSIX_PRINTF=0 ;;
23926   esac
23928   if test "$ac_cv_func_asprintf" = yes; then
23929     HAVE_ASPRINTF=1
23930   else
23931     HAVE_ASPRINTF=0
23932   fi
23934   if test "$ac_cv_func_snprintf" = yes; then
23935     HAVE_SNPRINTF=1
23936   else
23937     HAVE_SNPRINTF=0
23938   fi
23940   if test "$ac_cv_func_wprintf" = yes; then
23941     HAVE_WPRINTF=1
23942   else
23943     HAVE_WPRINTF=0
23944   fi
23948   { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
23949 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
23950 if test "${am_cv_langinfo_codeset+set}" = set; then
23951   $as_echo_n "(cached) " >&6
23952 else
23953   cat >conftest.$ac_ext <<_ACEOF
23954 /* confdefs.h.  */
23955 _ACEOF
23956 cat confdefs.h >>conftest.$ac_ext
23957 cat >>conftest.$ac_ext <<_ACEOF
23958 /* end confdefs.h.  */
23959 #include <langinfo.h>
23960 int
23961 main ()
23963 char* cs = nl_langinfo(CODESET); return !cs;
23964   ;
23965   return 0;
23967 _ACEOF
23968 rm -f conftest.$ac_objext conftest$ac_exeext
23969 if { (ac_try="$ac_link"
23970 case "(($ac_try" in
23971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23972   *) ac_try_echo=$ac_try;;
23973 esac
23974 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23975 $as_echo "$ac_try_echo") >&5
23976   (eval "$ac_link") 2>conftest.er1
23977   ac_status=$?
23978   grep -v '^ *+' conftest.er1 >conftest.err
23979   rm -f conftest.er1
23980   cat conftest.err >&5
23981   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23982   (exit $ac_status); } && {
23983          test -z "$ac_c_werror_flag" ||
23984          test ! -s conftest.err
23985        } && test -s conftest$ac_exeext && {
23986          test "$cross_compiling" = yes ||
23987          $as_test_x conftest$ac_exeext
23988        }; then
23989   am_cv_langinfo_codeset=yes
23990 else
23991   $as_echo "$as_me: failed program was:" >&5
23992 sed 's/^/| /' conftest.$ac_ext >&5
23994         am_cv_langinfo_codeset=no
23997 rm -rf conftest.dSYM
23998 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23999       conftest$ac_exeext conftest.$ac_ext
24002 { $as_echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
24003 $as_echo "$am_cv_langinfo_codeset" >&6; }
24004   if test $am_cv_langinfo_codeset = yes; then
24006 cat >>confdefs.h <<\_ACEOF
24007 #define HAVE_LANGINFO_CODESET 1
24008 _ACEOF
24010   fi
24013   { $as_echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
24014 $as_echo_n "checking for LC_MESSAGES... " >&6; }
24015 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
24016   $as_echo_n "(cached) " >&6
24017 else
24018   cat >conftest.$ac_ext <<_ACEOF
24019 /* confdefs.h.  */
24020 _ACEOF
24021 cat confdefs.h >>conftest.$ac_ext
24022 cat >>conftest.$ac_ext <<_ACEOF
24023 /* end confdefs.h.  */
24024 #include <locale.h>
24025 int
24026 main ()
24028 return LC_MESSAGES
24029   ;
24030   return 0;
24032 _ACEOF
24033 rm -f conftest.$ac_objext conftest$ac_exeext
24034 if { (ac_try="$ac_link"
24035 case "(($ac_try" in
24036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24037   *) ac_try_echo=$ac_try;;
24038 esac
24039 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24040 $as_echo "$ac_try_echo") >&5
24041   (eval "$ac_link") 2>conftest.er1
24042   ac_status=$?
24043   grep -v '^ *+' conftest.er1 >conftest.err
24044   rm -f conftest.er1
24045   cat conftest.err >&5
24046   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24047   (exit $ac_status); } && {
24048          test -z "$ac_c_werror_flag" ||
24049          test ! -s conftest.err
24050        } && test -s conftest$ac_exeext && {
24051          test "$cross_compiling" = yes ||
24052          $as_test_x conftest$ac_exeext
24053        }; then
24054   gt_cv_val_LC_MESSAGES=yes
24055 else
24056   $as_echo "$as_me: failed program was:" >&5
24057 sed 's/^/| /' conftest.$ac_ext >&5
24059         gt_cv_val_LC_MESSAGES=no
24062 rm -rf conftest.dSYM
24063 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24064       conftest$ac_exeext conftest.$ac_ext
24066 { $as_echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
24067 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
24068   if test $gt_cv_val_LC_MESSAGES = yes; then
24070 cat >>confdefs.h <<\_ACEOF
24071 #define HAVE_LC_MESSAGES 1
24072 _ACEOF
24074   fi
24077                 if test "$enable_shared" = yes; then
24078     case "$host_os" in
24079       mingw* | cygwin*) is_woe32dll=yes ;;
24080       *) is_woe32dll=no ;;
24081     esac
24082   else
24083     is_woe32dll=no
24084   fi
24085   WOE32DLL=$is_woe32dll
24088       case "$host_os" in
24089     mingw* | cygwin*) is_woe32=yes ;;
24090     *) is_woe32=no ;;
24091   esac
24092   WOE32=$is_woe32
24094   if test $WOE32 = yes; then
24095         if test -n "$ac_tool_prefix"; then
24096   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
24097 set dummy ${ac_tool_prefix}windres; ac_word=$2
24098 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
24099 $as_echo_n "checking for $ac_word... " >&6; }
24100 if test "${ac_cv_prog_WINDRES+set}" = set; then
24101   $as_echo_n "(cached) " >&6
24102 else
24103   if test -n "$WINDRES"; then
24104   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
24105 else
24106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24107 for as_dir in $PATH
24109   IFS=$as_save_IFS
24110   test -z "$as_dir" && as_dir=.
24111   for ac_exec_ext in '' $ac_executable_extensions; do
24112   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24113     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
24114     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24115     break 2
24116   fi
24117 done
24118 done
24119 IFS=$as_save_IFS
24123 WINDRES=$ac_cv_prog_WINDRES
24124 if test -n "$WINDRES"; then
24125   { $as_echo "$as_me:$LINENO: result: $WINDRES" >&5
24126 $as_echo "$WINDRES" >&6; }
24127 else
24128   { $as_echo "$as_me:$LINENO: result: no" >&5
24129 $as_echo "no" >&6; }
24134 if test -z "$ac_cv_prog_WINDRES"; then
24135   ac_ct_WINDRES=$WINDRES
24136   # Extract the first word of "windres", so it can be a program name with args.
24137 set dummy windres; ac_word=$2
24138 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
24139 $as_echo_n "checking for $ac_word... " >&6; }
24140 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
24141   $as_echo_n "(cached) " >&6
24142 else
24143   if test -n "$ac_ct_WINDRES"; then
24144   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
24145 else
24146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24147 for as_dir in $PATH
24149   IFS=$as_save_IFS
24150   test -z "$as_dir" && as_dir=.
24151   for ac_exec_ext in '' $ac_executable_extensions; do
24152   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24153     ac_cv_prog_ac_ct_WINDRES="windres"
24154     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24155     break 2
24156   fi
24157 done
24158 done
24159 IFS=$as_save_IFS
24163 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
24164 if test -n "$ac_ct_WINDRES"; then
24165   { $as_echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
24166 $as_echo "$ac_ct_WINDRES" >&6; }
24167 else
24168   { $as_echo "$as_me:$LINENO: result: no" >&5
24169 $as_echo "no" >&6; }
24172   if test "x$ac_ct_WINDRES" = x; then
24173     WINDRES=""
24174   else
24175     case $cross_compiling:$ac_tool_warned in
24176 yes:)
24177 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
24178 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24179 ac_tool_warned=yes ;;
24180 esac
24181     WINDRES=$ac_ct_WINDRES
24182   fi
24183 else
24184   WINDRES="$ac_cv_prog_WINDRES"
24187   fi
24189               case "$host_os" in
24190     hpux*) LTLIBC="" ;;
24191     *)     LTLIBC="-lc" ;;
24192   esac
24220     { $as_echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
24221 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
24222 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
24223   $as_echo_n "(cached) " >&6
24224 else
24225   gt_save_LIBS="$LIBS"
24226      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
24227      cat >conftest.$ac_ext <<_ACEOF
24228 /* confdefs.h.  */
24229 _ACEOF
24230 cat confdefs.h >>conftest.$ac_ext
24231 cat >>conftest.$ac_ext <<_ACEOF
24232 /* end confdefs.h.  */
24233 #include <CoreFoundation/CFPreferences.h>
24234 int
24235 main ()
24237 CFPreferencesCopyAppValue(NULL, NULL)
24238   ;
24239   return 0;
24241 _ACEOF
24242 rm -f conftest.$ac_objext conftest$ac_exeext
24243 if { (ac_try="$ac_link"
24244 case "(($ac_try" in
24245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24246   *) ac_try_echo=$ac_try;;
24247 esac
24248 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24249 $as_echo "$ac_try_echo") >&5
24250   (eval "$ac_link") 2>conftest.er1
24251   ac_status=$?
24252   grep -v '^ *+' conftest.er1 >conftest.err
24253   rm -f conftest.er1
24254   cat conftest.err >&5
24255   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24256   (exit $ac_status); } && {
24257          test -z "$ac_c_werror_flag" ||
24258          test ! -s conftest.err
24259        } && test -s conftest$ac_exeext && {
24260          test "$cross_compiling" = yes ||
24261          $as_test_x conftest$ac_exeext
24262        }; then
24263   gt_cv_func_CFPreferencesCopyAppValue=yes
24264 else
24265   $as_echo "$as_me: failed program was:" >&5
24266 sed 's/^/| /' conftest.$ac_ext >&5
24268         gt_cv_func_CFPreferencesCopyAppValue=no
24271 rm -rf conftest.dSYM
24272 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24273       conftest$ac_exeext conftest.$ac_ext
24274      LIBS="$gt_save_LIBS"
24276 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
24277 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
24278   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
24280 cat >>confdefs.h <<\_ACEOF
24281 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
24282 _ACEOF
24284   fi
24285     { $as_echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
24286 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
24287 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
24288   $as_echo_n "(cached) " >&6
24289 else
24290   gt_save_LIBS="$LIBS"
24291      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
24292      cat >conftest.$ac_ext <<_ACEOF
24293 /* confdefs.h.  */
24294 _ACEOF
24295 cat confdefs.h >>conftest.$ac_ext
24296 cat >>conftest.$ac_ext <<_ACEOF
24297 /* end confdefs.h.  */
24298 #include <CoreFoundation/CFLocale.h>
24299 int
24300 main ()
24302 CFLocaleCopyCurrent();
24303   ;
24304   return 0;
24306 _ACEOF
24307 rm -f conftest.$ac_objext conftest$ac_exeext
24308 if { (ac_try="$ac_link"
24309 case "(($ac_try" in
24310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24311   *) ac_try_echo=$ac_try;;
24312 esac
24313 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24314 $as_echo "$ac_try_echo") >&5
24315   (eval "$ac_link") 2>conftest.er1
24316   ac_status=$?
24317   grep -v '^ *+' conftest.er1 >conftest.err
24318   rm -f conftest.er1
24319   cat conftest.err >&5
24320   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24321   (exit $ac_status); } && {
24322          test -z "$ac_c_werror_flag" ||
24323          test ! -s conftest.err
24324        } && test -s conftest$ac_exeext && {
24325          test "$cross_compiling" = yes ||
24326          $as_test_x conftest$ac_exeext
24327        }; then
24328   gt_cv_func_CFLocaleCopyCurrent=yes
24329 else
24330   $as_echo "$as_me: failed program was:" >&5
24331 sed 's/^/| /' conftest.$ac_ext >&5
24333         gt_cv_func_CFLocaleCopyCurrent=no
24336 rm -rf conftest.dSYM
24337 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24338       conftest$ac_exeext conftest.$ac_ext
24339      LIBS="$gt_save_LIBS"
24341 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
24342 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
24343   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
24345 cat >>confdefs.h <<\_ACEOF
24346 #define HAVE_CFLOCALECOPYCURRENT 1
24347 _ACEOF
24349   fi
24350   INTL_MACOSX_LIBS=
24351   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
24352     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
24353   fi
24360     BUILD_INCLUDED_LIBINTL=no
24361     USE_INCLUDED_LIBINTL=no
24363   LIBINTL=
24364   LTLIBINTL=
24365   POSUB=
24367     case " $gt_needs " in
24368     *" need-formatstring-macros "*) gt_api_version=3 ;;
24369     *" need-ngettext "*) gt_api_version=2 ;;
24370     *) gt_api_version=1 ;;
24371   esac
24372   gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
24373   gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
24375     if test "$USE_NLS" = "yes"; then
24376     gt_use_preinstalled_gnugettext=no
24378       { $as_echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
24379 $as_echo_n "checking whether included gettext is requested... " >&6; }
24381 # Check whether --with-included-gettext was given.
24382 if test "${with_included_gettext+set}" = set; then
24383   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
24384 else
24385   nls_cv_force_use_gnu_gettext=no
24388       { $as_echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
24389 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
24391       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
24392       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
24395         if test $gt_api_version -ge 3; then
24396           gt_revision_test_code='
24397 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
24398 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
24399 #endif
24400 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
24402         else
24403           gt_revision_test_code=
24404         fi
24405         if test $gt_api_version -ge 2; then
24406           gt_expression_test_code=' + * ngettext ("", "", 0)'
24407         else
24408           gt_expression_test_code=
24409         fi
24411         { $as_echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
24412 $as_echo_n "checking for GNU gettext in libc... " >&6; }
24413 if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then
24414   $as_echo_n "(cached) " >&6
24415 else
24416   cat >conftest.$ac_ext <<_ACEOF
24417 /* confdefs.h.  */
24418 _ACEOF
24419 cat confdefs.h >>conftest.$ac_ext
24420 cat >>conftest.$ac_ext <<_ACEOF
24421 /* end confdefs.h.  */
24422 #include <libintl.h>
24423 $gt_revision_test_code
24424 extern int _nl_msg_cat_cntr;
24425 extern int *_nl_domain_bindings;
24426 int
24427 main ()
24429 bindtextdomain ("", "");
24430 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
24431   ;
24432   return 0;
24434 _ACEOF
24435 rm -f conftest.$ac_objext conftest$ac_exeext
24436 if { (ac_try="$ac_link"
24437 case "(($ac_try" in
24438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24439   *) ac_try_echo=$ac_try;;
24440 esac
24441 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24442 $as_echo "$ac_try_echo") >&5
24443   (eval "$ac_link") 2>conftest.er1
24444   ac_status=$?
24445   grep -v '^ *+' conftest.er1 >conftest.err
24446   rm -f conftest.er1
24447   cat conftest.err >&5
24448   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24449   (exit $ac_status); } && {
24450          test -z "$ac_c_werror_flag" ||
24451          test ! -s conftest.err
24452        } && test -s conftest$ac_exeext && {
24453          test "$cross_compiling" = yes ||
24454          $as_test_x conftest$ac_exeext
24455        }; then
24456   eval "$gt_func_gnugettext_libc=yes"
24457 else
24458   $as_echo "$as_me: failed program was:" >&5
24459 sed 's/^/| /' conftest.$ac_ext >&5
24461         eval "$gt_func_gnugettext_libc=no"
24464 rm -rf conftest.dSYM
24465 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24466       conftest$ac_exeext conftest.$ac_ext
24468 ac_res=`eval 'as_val=${'$gt_func_gnugettext_libc'}
24469                  $as_echo "$as_val"'`
24470                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24471 $as_echo "$ac_res" >&6; }
24473         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
24479     use_additional=yes
24481   acl_save_prefix="$prefix"
24482   prefix="$acl_final_prefix"
24483   acl_save_exec_prefix="$exec_prefix"
24484   exec_prefix="$acl_final_exec_prefix"
24486     eval additional_includedir=\"$includedir\"
24487     eval additional_libdir=\"$libdir\"
24489   exec_prefix="$acl_save_exec_prefix"
24490   prefix="$acl_save_prefix"
24493 # Check whether --with-libintl-prefix was given.
24494 if test "${with_libintl_prefix+set}" = set; then
24495   withval=$with_libintl_prefix;
24496     if test "X$withval" = "Xno"; then
24497       use_additional=no
24498     else
24499       if test "X$withval" = "X"; then
24501   acl_save_prefix="$prefix"
24502   prefix="$acl_final_prefix"
24503   acl_save_exec_prefix="$exec_prefix"
24504   exec_prefix="$acl_final_exec_prefix"
24506           eval additional_includedir=\"$includedir\"
24507           eval additional_libdir=\"$libdir\"
24509   exec_prefix="$acl_save_exec_prefix"
24510   prefix="$acl_save_prefix"
24512       else
24513         additional_includedir="$withval/include"
24514         additional_libdir="$withval/$acl_libdirstem"
24515       fi
24516     fi
24520       LIBINTL=
24521   LTLIBINTL=
24522   INCINTL=
24523   LIBINTL_PREFIX=
24524   rpathdirs=
24525   ltrpathdirs=
24526   names_already_handled=
24527   names_next_round='intl '
24528   while test -n "$names_next_round"; do
24529     names_this_round="$names_next_round"
24530     names_next_round=
24531     for name in $names_this_round; do
24532       already_handled=
24533       for n in $names_already_handled; do
24534         if test "$n" = "$name"; then
24535           already_handled=yes
24536           break
24537         fi
24538       done
24539       if test -z "$already_handled"; then
24540         names_already_handled="$names_already_handled $name"
24541                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
24542         eval value=\"\$HAVE_LIB$uppername\"
24543         if test -n "$value"; then
24544           if test "$value" = yes; then
24545             eval value=\"\$LIB$uppername\"
24546             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
24547             eval value=\"\$LTLIB$uppername\"
24548             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
24549           else
24550                                     :
24551           fi
24552         else
24553                               found_dir=
24554           found_la=
24555           found_so=
24556           found_a=
24557           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
24558           if test -n "$acl_shlibext"; then
24559             shrext=".$acl_shlibext"             # typically: shrext=.so
24560           else
24561             shrext=
24562           fi
24563           if test $use_additional = yes; then
24564             dir="$additional_libdir"
24565                                     if test -n "$acl_shlibext"; then
24566               if test -f "$dir/$libname$shrext"; then
24567                 found_dir="$dir"
24568                 found_so="$dir/$libname$shrext"
24569               else
24570                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
24571                   ver=`(cd "$dir" && \
24572                         for f in "$libname$shrext".*; do echo "$f"; done \
24573                         | sed -e "s,^$libname$shrext\\\\.,," \
24574                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
24575                         | sed 1q ) 2>/dev/null`
24576                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
24577                     found_dir="$dir"
24578                     found_so="$dir/$libname$shrext.$ver"
24579                   fi
24580                 else
24581                   eval library_names=\"$acl_library_names_spec\"
24582                   for f in $library_names; do
24583                     if test -f "$dir/$f"; then
24584                       found_dir="$dir"
24585                       found_so="$dir/$f"
24586                       break
24587                     fi
24588                   done
24589                 fi
24590               fi
24591             fi
24592                         if test "X$found_dir" = "X"; then
24593               if test -f "$dir/$libname.$acl_libext"; then
24594                 found_dir="$dir"
24595                 found_a="$dir/$libname.$acl_libext"
24596               fi
24597             fi
24598             if test "X$found_dir" != "X"; then
24599               if test -f "$dir/$libname.la"; then
24600                 found_la="$dir/$libname.la"
24601               fi
24602             fi
24603           fi
24604           if test "X$found_dir" = "X"; then
24605             for x in $LDFLAGS $LTLIBINTL; do
24607   acl_save_prefix="$prefix"
24608   prefix="$acl_final_prefix"
24609   acl_save_exec_prefix="$exec_prefix"
24610   exec_prefix="$acl_final_exec_prefix"
24611   eval x=\"$x\"
24612   exec_prefix="$acl_save_exec_prefix"
24613   prefix="$acl_save_prefix"
24615               case "$x" in
24616                 -L*)
24617                   dir=`echo "X$x" | sed -e 's/^X-L//'`
24618                                     if test -n "$acl_shlibext"; then
24619                     if test -f "$dir/$libname$shrext"; then
24620                       found_dir="$dir"
24621                       found_so="$dir/$libname$shrext"
24622                     else
24623                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
24624                         ver=`(cd "$dir" && \
24625                               for f in "$libname$shrext".*; do echo "$f"; done \
24626                               | sed -e "s,^$libname$shrext\\\\.,," \
24627                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
24628                               | sed 1q ) 2>/dev/null`
24629                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
24630                           found_dir="$dir"
24631                           found_so="$dir/$libname$shrext.$ver"
24632                         fi
24633                       else
24634                         eval library_names=\"$acl_library_names_spec\"
24635                         for f in $library_names; do
24636                           if test -f "$dir/$f"; then
24637                             found_dir="$dir"
24638                             found_so="$dir/$f"
24639                             break
24640                           fi
24641                         done
24642                       fi
24643                     fi
24644                   fi
24645                                     if test "X$found_dir" = "X"; then
24646                     if test -f "$dir/$libname.$acl_libext"; then
24647                       found_dir="$dir"
24648                       found_a="$dir/$libname.$acl_libext"
24649                     fi
24650                   fi
24651                   if test "X$found_dir" != "X"; then
24652                     if test -f "$dir/$libname.la"; then
24653                       found_la="$dir/$libname.la"
24654                     fi
24655                   fi
24656                   ;;
24657               esac
24658               if test "X$found_dir" != "X"; then
24659                 break
24660               fi
24661             done
24662           fi
24663           if test "X$found_dir" != "X"; then
24664                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
24665             if test "X$found_so" != "X"; then
24666                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
24667                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
24668               else
24669                                                                                 haveit=
24670                 for x in $ltrpathdirs; do
24671                   if test "X$x" = "X$found_dir"; then
24672                     haveit=yes
24673                     break
24674                   fi
24675                 done
24676                 if test -z "$haveit"; then
24677                   ltrpathdirs="$ltrpathdirs $found_dir"
24678                 fi
24679                                 if test "$acl_hardcode_direct" = yes; then
24680                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
24681                 else
24682                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
24683                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
24684                                                             haveit=
24685                     for x in $rpathdirs; do
24686                       if test "X$x" = "X$found_dir"; then
24687                         haveit=yes
24688                         break
24689                       fi
24690                     done
24691                     if test -z "$haveit"; then
24692                       rpathdirs="$rpathdirs $found_dir"
24693                     fi
24694                   else
24695                                                                                 haveit=
24696                     for x in $LDFLAGS $LIBINTL; do
24698   acl_save_prefix="$prefix"
24699   prefix="$acl_final_prefix"
24700   acl_save_exec_prefix="$exec_prefix"
24701   exec_prefix="$acl_final_exec_prefix"
24702   eval x=\"$x\"
24703   exec_prefix="$acl_save_exec_prefix"
24704   prefix="$acl_save_prefix"
24706                       if test "X$x" = "X-L$found_dir"; then
24707                         haveit=yes
24708                         break
24709                       fi
24710                     done
24711                     if test -z "$haveit"; then
24712                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
24713                     fi
24714                     if test "$acl_hardcode_minus_L" != no; then
24715                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
24716                     else
24717                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
24718                     fi
24719                   fi
24720                 fi
24721               fi
24722             else
24723               if test "X$found_a" != "X"; then
24724                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
24725               else
24726                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
24727               fi
24728             fi
24729                         additional_includedir=
24730             case "$found_dir" in
24731               */$acl_libdirstem | */$acl_libdirstem/)
24732                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
24733                 LIBINTL_PREFIX="$basedir"
24734                 additional_includedir="$basedir/include"
24735                 ;;
24736             esac
24737             if test "X$additional_includedir" != "X"; then
24738                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
24739                 haveit=
24740                 if test "X$additional_includedir" = "X/usr/local/include"; then
24741                   if test -n "$GCC"; then
24742                     case $host_os in
24743                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
24744                     esac
24745                   fi
24746                 fi
24747                 if test -z "$haveit"; then
24748                   for x in $CPPFLAGS $INCINTL; do
24750   acl_save_prefix="$prefix"
24751   prefix="$acl_final_prefix"
24752   acl_save_exec_prefix="$exec_prefix"
24753   exec_prefix="$acl_final_exec_prefix"
24754   eval x=\"$x\"
24755   exec_prefix="$acl_save_exec_prefix"
24756   prefix="$acl_save_prefix"
24758                     if test "X$x" = "X-I$additional_includedir"; then
24759                       haveit=yes
24760                       break
24761                     fi
24762                   done
24763                   if test -z "$haveit"; then
24764                     if test -d "$additional_includedir"; then
24765                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
24766                     fi
24767                   fi
24768                 fi
24769               fi
24770             fi
24771                         if test -n "$found_la"; then
24772                                                         save_libdir="$libdir"
24773               case "$found_la" in
24774                 */* | *\\*) . "$found_la" ;;
24775                 *) . "./$found_la" ;;
24776               esac
24777               libdir="$save_libdir"
24778                             for dep in $dependency_libs; do
24779                 case "$dep" in
24780                   -L*)
24781                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
24782                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
24783                       haveit=
24784                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
24785                         if test -n "$GCC"; then
24786                           case $host_os in
24787                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
24788                           esac
24789                         fi
24790                       fi
24791                       if test -z "$haveit"; then
24792                         haveit=
24793                         for x in $LDFLAGS $LIBINTL; do
24795   acl_save_prefix="$prefix"
24796   prefix="$acl_final_prefix"
24797   acl_save_exec_prefix="$exec_prefix"
24798   exec_prefix="$acl_final_exec_prefix"
24799   eval x=\"$x\"
24800   exec_prefix="$acl_save_exec_prefix"
24801   prefix="$acl_save_prefix"
24803                           if test "X$x" = "X-L$additional_libdir"; then
24804                             haveit=yes
24805                             break
24806                           fi
24807                         done
24808                         if test -z "$haveit"; then
24809                           if test -d "$additional_libdir"; then
24810                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
24811                           fi
24812                         fi
24813                         haveit=
24814                         for x in $LDFLAGS $LTLIBINTL; do
24816   acl_save_prefix="$prefix"
24817   prefix="$acl_final_prefix"
24818   acl_save_exec_prefix="$exec_prefix"
24819   exec_prefix="$acl_final_exec_prefix"
24820   eval x=\"$x\"
24821   exec_prefix="$acl_save_exec_prefix"
24822   prefix="$acl_save_prefix"
24824                           if test "X$x" = "X-L$additional_libdir"; then
24825                             haveit=yes
24826                             break
24827                           fi
24828                         done
24829                         if test -z "$haveit"; then
24830                           if test -d "$additional_libdir"; then
24831                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
24832                           fi
24833                         fi
24834                       fi
24835                     fi
24836                     ;;
24837                   -R*)
24838                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
24839                     if test "$enable_rpath" != no; then
24840                                                                   haveit=
24841                       for x in $rpathdirs; do
24842                         if test "X$x" = "X$dir"; then
24843                           haveit=yes
24844                           break
24845                         fi
24846                       done
24847                       if test -z "$haveit"; then
24848                         rpathdirs="$rpathdirs $dir"
24849                       fi
24850                                                                   haveit=
24851                       for x in $ltrpathdirs; do
24852                         if test "X$x" = "X$dir"; then
24853                           haveit=yes
24854                           break
24855                         fi
24856                       done
24857                       if test -z "$haveit"; then
24858                         ltrpathdirs="$ltrpathdirs $dir"
24859                       fi
24860                     fi
24861                     ;;
24862                   -l*)
24863                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
24864                     ;;
24865                   *.la)
24866                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
24867                     ;;
24868                   *)
24869                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
24870                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
24871                     ;;
24872                 esac
24873               done
24874             fi
24875           else
24876                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
24877             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
24878           fi
24879         fi
24880       fi
24881     done
24882   done
24883   if test "X$rpathdirs" != "X"; then
24884     if test -n "$acl_hardcode_libdir_separator"; then
24885                         alldirs=
24886       for found_dir in $rpathdirs; do
24887         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
24888       done
24889             acl_save_libdir="$libdir"
24890       libdir="$alldirs"
24891       eval flag=\"$acl_hardcode_libdir_flag_spec\"
24892       libdir="$acl_save_libdir"
24893       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
24894     else
24895             for found_dir in $rpathdirs; do
24896         acl_save_libdir="$libdir"
24897         libdir="$found_dir"
24898         eval flag=\"$acl_hardcode_libdir_flag_spec\"
24899         libdir="$acl_save_libdir"
24900         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
24901       done
24902     fi
24903   fi
24904   if test "X$ltrpathdirs" != "X"; then
24905             for found_dir in $ltrpathdirs; do
24906       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
24907     done
24908   fi
24910           { $as_echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
24911 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
24912 if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then
24913   $as_echo_n "(cached) " >&6
24914 else
24915   gt_save_CPPFLAGS="$CPPFLAGS"
24916             CPPFLAGS="$CPPFLAGS $INCINTL"
24917             gt_save_LIBS="$LIBS"
24918             LIBS="$LIBS $LIBINTL"
24919                         cat >conftest.$ac_ext <<_ACEOF
24920 /* confdefs.h.  */
24921 _ACEOF
24922 cat confdefs.h >>conftest.$ac_ext
24923 cat >>conftest.$ac_ext <<_ACEOF
24924 /* end confdefs.h.  */
24925 #include <libintl.h>
24926 $gt_revision_test_code
24927 extern int _nl_msg_cat_cntr;
24928 extern
24929 #ifdef __cplusplus
24930 "C"
24931 #endif
24932 const char *_nl_expand_alias (const char *);
24933 int
24934 main ()
24936 bindtextdomain ("", "");
24937 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
24938   ;
24939   return 0;
24941 _ACEOF
24942 rm -f conftest.$ac_objext conftest$ac_exeext
24943 if { (ac_try="$ac_link"
24944 case "(($ac_try" in
24945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24946   *) ac_try_echo=$ac_try;;
24947 esac
24948 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24949 $as_echo "$ac_try_echo") >&5
24950   (eval "$ac_link") 2>conftest.er1
24951   ac_status=$?
24952   grep -v '^ *+' conftest.er1 >conftest.err
24953   rm -f conftest.er1
24954   cat conftest.err >&5
24955   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24956   (exit $ac_status); } && {
24957          test -z "$ac_c_werror_flag" ||
24958          test ! -s conftest.err
24959        } && test -s conftest$ac_exeext && {
24960          test "$cross_compiling" = yes ||
24961          $as_test_x conftest$ac_exeext
24962        }; then
24963   eval "$gt_func_gnugettext_libintl=yes"
24964 else
24965   $as_echo "$as_me: failed program was:" >&5
24966 sed 's/^/| /' conftest.$ac_ext >&5
24968         eval "$gt_func_gnugettext_libintl=no"
24971 rm -rf conftest.dSYM
24972 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24973       conftest$ac_exeext conftest.$ac_ext
24974                         if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
24975               LIBS="$LIBS $LIBICONV"
24976               cat >conftest.$ac_ext <<_ACEOF
24977 /* confdefs.h.  */
24978 _ACEOF
24979 cat confdefs.h >>conftest.$ac_ext
24980 cat >>conftest.$ac_ext <<_ACEOF
24981 /* end confdefs.h.  */
24982 #include <libintl.h>
24983 $gt_revision_test_code
24984 extern int _nl_msg_cat_cntr;
24985 extern
24986 #ifdef __cplusplus
24987 "C"
24988 #endif
24989 const char *_nl_expand_alias (const char *);
24990 int
24991 main ()
24993 bindtextdomain ("", "");
24994 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
24995   ;
24996   return 0;
24998 _ACEOF
24999 rm -f conftest.$ac_objext conftest$ac_exeext
25000 if { (ac_try="$ac_link"
25001 case "(($ac_try" in
25002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25003   *) ac_try_echo=$ac_try;;
25004 esac
25005 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25006 $as_echo "$ac_try_echo") >&5
25007   (eval "$ac_link") 2>conftest.er1
25008   ac_status=$?
25009   grep -v '^ *+' conftest.er1 >conftest.err
25010   rm -f conftest.er1
25011   cat conftest.err >&5
25012   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25013   (exit $ac_status); } && {
25014          test -z "$ac_c_werror_flag" ||
25015          test ! -s conftest.err
25016        } && test -s conftest$ac_exeext && {
25017          test "$cross_compiling" = yes ||
25018          $as_test_x conftest$ac_exeext
25019        }; then
25020   LIBINTL="$LIBINTL $LIBICONV"
25021                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
25022                 eval "$gt_func_gnugettext_libintl=yes"
25024 else
25025   $as_echo "$as_me: failed program was:" >&5
25026 sed 's/^/| /' conftest.$ac_ext >&5
25031 rm -rf conftest.dSYM
25032 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25033       conftest$ac_exeext conftest.$ac_ext
25034             fi
25035             CPPFLAGS="$gt_save_CPPFLAGS"
25036             LIBS="$gt_save_LIBS"
25038 ac_res=`eval 'as_val=${'$gt_func_gnugettext_libintl'}
25039                  $as_echo "$as_val"'`
25040                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25041 $as_echo "$ac_res" >&6; }
25042         fi
25044                                         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
25045            || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
25046                 && test "$PACKAGE" != gettext-runtime \
25047                 && test "$PACKAGE" != gettext-tools; }; then
25048           gt_use_preinstalled_gnugettext=yes
25049         else
25050                     LIBINTL=
25051           LTLIBINTL=
25052           INCINTL=
25053         fi
25056         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
25057                               nls_cv_use_gnu_gettext=yes
25058         fi
25059       fi
25061       if test "$nls_cv_use_gnu_gettext" = "yes"; then
25062                 BUILD_INCLUDED_LIBINTL=yes
25063         USE_INCLUDED_LIBINTL=yes
25064         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
25065         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
25066         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
25067       fi
25069       CATOBJEXT=
25070       if test "$gt_use_preinstalled_gnugettext" = "yes" \
25071          || test "$nls_cv_use_gnu_gettext" = "yes"; then
25072                 CATOBJEXT=.gmo
25073       fi
25076     if test -n "$INTL_MACOSX_LIBS"; then
25077       if test "$gt_use_preinstalled_gnugettext" = "yes" \
25078          || test "$nls_cv_use_gnu_gettext" = "yes"; then
25079                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
25080         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
25081       fi
25082     fi
25084     if test "$gt_use_preinstalled_gnugettext" = "yes" \
25085        || test "$nls_cv_use_gnu_gettext" = "yes"; then
25087 cat >>confdefs.h <<\_ACEOF
25088 #define ENABLE_NLS 1
25089 _ACEOF
25091     else
25092       USE_NLS=no
25093     fi
25094   fi
25096   { $as_echo "$as_me:$LINENO: checking whether to use NLS" >&5
25097 $as_echo_n "checking whether to use NLS... " >&6; }
25098   { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
25099 $as_echo "$USE_NLS" >&6; }
25100   if test "$USE_NLS" = "yes"; then
25101     { $as_echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
25102 $as_echo_n "checking where the gettext function comes from... " >&6; }
25103     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
25104       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
25105         gt_source="external libintl"
25106       else
25107         gt_source="libc"
25108       fi
25109     else
25110       gt_source="included intl directory"
25111     fi
25112     { $as_echo "$as_me:$LINENO: result: $gt_source" >&5
25113 $as_echo "$gt_source" >&6; }
25114   fi
25116   if test "$USE_NLS" = "yes"; then
25118     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
25119       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
25120         { $as_echo "$as_me:$LINENO: checking how to link with libintl" >&5
25121 $as_echo_n "checking how to link with libintl... " >&6; }
25122         { $as_echo "$as_me:$LINENO: result: $LIBINTL" >&5
25123 $as_echo "$LIBINTL" >&6; }
25125   for element in $INCINTL; do
25126     haveit=
25127     for x in $CPPFLAGS; do
25129   acl_save_prefix="$prefix"
25130   prefix="$acl_final_prefix"
25131   acl_save_exec_prefix="$exec_prefix"
25132   exec_prefix="$acl_final_exec_prefix"
25133   eval x=\"$x\"
25134   exec_prefix="$acl_save_exec_prefix"
25135   prefix="$acl_save_prefix"
25137       if test "X$x" = "X$element"; then
25138         haveit=yes
25139         break
25140       fi
25141     done
25142     if test -z "$haveit"; then
25143       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
25144     fi
25145   done
25147       fi
25150 cat >>confdefs.h <<\_ACEOF
25151 #define HAVE_GETTEXT 1
25152 _ACEOF
25155 cat >>confdefs.h <<\_ACEOF
25156 #define HAVE_DCGETTEXT 1
25157 _ACEOF
25159     fi
25161         POSUB=po
25162   fi
25165             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
25166       BUILD_INCLUDED_LIBINTL=yes
25167     fi
25173         nls_cv_header_intl=
25174     nls_cv_header_libgt=
25176         DATADIRNAME=share
25179         INSTOBJEXT=.mo
25182         GENCAT=gencat
25185         INTLOBJS=
25186     if test "$USE_INCLUDED_LIBINTL" = yes; then
25187       INTLOBJS="\$(GETTOBJS)"
25188     fi
25191         INTL_LIBTOOL_SUFFIX_PREFIX=
25195     INTLLIBS="$LIBINTL"
25204 case $TERM in
25205        #   for the most important terminal types we directly know the sequences
25206        xterm|xterm*|vt220|vt220*)
25207                T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
25208                T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
25209        ;;
25210        vt100|vt100*|cygwin)
25211                T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
25212                T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
25213        ;;
25214        *)
25215                T_MD=''
25216                T_ME=''
25217        ;;
25218 esac
25219   { $as_echo "$as_me:$LINENO: result: " >&5
25220 $as_echo "" >&6; }
25221   { $as_echo "$as_me:$LINENO: result: ${T_MD}IEEE Math Checks${T_ME}" >&5
25222 $as_echo "${T_MD}IEEE Math Checks${T_ME}" >&6; }
25227 for ac_func in fpclassify
25229 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25230 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
25231 $as_echo_n "checking for $ac_func... " >&6; }
25232 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25233   $as_echo_n "(cached) " >&6
25234 else
25235   cat >conftest.$ac_ext <<_ACEOF
25236 /* confdefs.h.  */
25237 _ACEOF
25238 cat confdefs.h >>conftest.$ac_ext
25239 cat >>conftest.$ac_ext <<_ACEOF
25240 /* end confdefs.h.  */
25241 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25242    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25243 #define $ac_func innocuous_$ac_func
25245 /* System header to define __stub macros and hopefully few prototypes,
25246     which can conflict with char $ac_func (); below.
25247     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25248     <limits.h> exists even on freestanding compilers.  */
25250 #ifdef __STDC__
25251 # include <limits.h>
25252 #else
25253 # include <assert.h>
25254 #endif
25256 #undef $ac_func
25258 /* Override any GCC internal prototype to avoid an error.
25259    Use char because int might match the return type of a GCC
25260    builtin and then its argument prototype would still apply.  */
25261 #ifdef __cplusplus
25262 extern "C"
25263 #endif
25264 char $ac_func ();
25265 /* The GNU C library defines this for functions which it implements
25266     to always fail with ENOSYS.  Some functions are actually named
25267     something starting with __ and the normal name is an alias.  */
25268 #if defined __stub_$ac_func || defined __stub___$ac_func
25269 choke me
25270 #endif
25272 int
25273 main ()
25275 return $ac_func ();
25276   ;
25277   return 0;
25279 _ACEOF
25280 rm -f conftest.$ac_objext conftest$ac_exeext
25281 if { (ac_try="$ac_link"
25282 case "(($ac_try" in
25283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25284   *) ac_try_echo=$ac_try;;
25285 esac
25286 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25287 $as_echo "$ac_try_echo") >&5
25288   (eval "$ac_link") 2>conftest.er1
25289   ac_status=$?
25290   grep -v '^ *+' conftest.er1 >conftest.err
25291   rm -f conftest.er1
25292   cat conftest.err >&5
25293   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25294   (exit $ac_status); } && {
25295          test -z "$ac_c_werror_flag" ||
25296          test ! -s conftest.err
25297        } && test -s conftest$ac_exeext && {
25298          test "$cross_compiling" = yes ||
25299          $as_test_x conftest$ac_exeext
25300        }; then
25301   eval "$as_ac_var=yes"
25302 else
25303   $as_echo "$as_me: failed program was:" >&5
25304 sed 's/^/| /' conftest.$ac_ext >&5
25306         eval "$as_ac_var=no"
25309 rm -rf conftest.dSYM
25310 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25311       conftest$ac_exeext conftest.$ac_ext
25313 ac_res=`eval 'as_val=${'$as_ac_var'}
25314                  $as_echo "$as_val"'`
25315                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25316 $as_echo "$ac_res" >&6; }
25317 as_val=`eval 'as_val=${'$as_ac_var'}
25318                  $as_echo "$as_val"'`
25319    if test "x$as_val" = x""yes; then
25320   cat >>confdefs.h <<_ACEOF
25321 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25322 _ACEOF
25324 else
25325   { $as_echo "$as_me:$LINENO: checking for fpclassify with <math.h>" >&5
25326 $as_echo_n "checking for fpclassify with <math.h>... " >&6; }
25327     cat >conftest.$ac_ext <<_ACEOF
25328 /* confdefs.h.  */
25329 _ACEOF
25330 cat confdefs.h >>conftest.$ac_ext
25331 cat >>conftest.$ac_ext <<_ACEOF
25332 /* end confdefs.h.  */
25333 #include <math.h>
25334 volatile int x;volatile float f;
25335 int
25336 main ()
25338 x = fpclassify(f)
25339   ;
25340   return 0;
25342 _ACEOF
25343 rm -f conftest.$ac_objext conftest$ac_exeext
25344 if { (ac_try="$ac_link"
25345 case "(($ac_try" in
25346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25347   *) ac_try_echo=$ac_try;;
25348 esac
25349 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25350 $as_echo "$ac_try_echo") >&5
25351   (eval "$ac_link") 2>conftest.er1
25352   ac_status=$?
25353   grep -v '^ *+' conftest.er1 >conftest.err
25354   rm -f conftest.er1
25355   cat conftest.err >&5
25356   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25357   (exit $ac_status); } && {
25358          test -z "$ac_c_werror_flag" ||
25359          test ! -s conftest.err
25360        } && test -s conftest$ac_exeext && {
25361          test "$cross_compiling" = yes ||
25362          $as_test_x conftest$ac_exeext
25363        }; then
25364   { $as_echo "$as_me:$LINENO: result: yes" >&5
25365 $as_echo "yes" >&6; }
25366       cat >>confdefs.h <<\_ACEOF
25367 #define HAVE_FPCLASSIFY 1
25368 _ACEOF
25370 else
25371   $as_echo "$as_me: failed program was:" >&5
25372 sed 's/^/| /' conftest.$ac_ext >&5
25374         { $as_echo "$as_me:$LINENO: result: no" >&5
25375 $as_echo "no" >&6; }
25378 rm -rf conftest.dSYM
25379 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25380       conftest$ac_exeext conftest.$ac_ext
25382 done
25386 for ac_func in isinf
25388 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25389 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
25390 $as_echo_n "checking for $ac_func... " >&6; }
25391 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25392   $as_echo_n "(cached) " >&6
25393 else
25394   cat >conftest.$ac_ext <<_ACEOF
25395 /* confdefs.h.  */
25396 _ACEOF
25397 cat confdefs.h >>conftest.$ac_ext
25398 cat >>conftest.$ac_ext <<_ACEOF
25399 /* end confdefs.h.  */
25400 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25401    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25402 #define $ac_func innocuous_$ac_func
25404 /* System header to define __stub macros and hopefully few prototypes,
25405     which can conflict with char $ac_func (); below.
25406     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25407     <limits.h> exists even on freestanding compilers.  */
25409 #ifdef __STDC__
25410 # include <limits.h>
25411 #else
25412 # include <assert.h>
25413 #endif
25415 #undef $ac_func
25417 /* Override any GCC internal prototype to avoid an error.
25418    Use char because int might match the return type of a GCC
25419    builtin and then its argument prototype would still apply.  */
25420 #ifdef __cplusplus
25421 extern "C"
25422 #endif
25423 char $ac_func ();
25424 /* The GNU C library defines this for functions which it implements
25425     to always fail with ENOSYS.  Some functions are actually named
25426     something starting with __ and the normal name is an alias.  */
25427 #if defined __stub_$ac_func || defined __stub___$ac_func
25428 choke me
25429 #endif
25431 int
25432 main ()
25434 return $ac_func ();
25435   ;
25436   return 0;
25438 _ACEOF
25439 rm -f conftest.$ac_objext conftest$ac_exeext
25440 if { (ac_try="$ac_link"
25441 case "(($ac_try" in
25442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25443   *) ac_try_echo=$ac_try;;
25444 esac
25445 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25446 $as_echo "$ac_try_echo") >&5
25447   (eval "$ac_link") 2>conftest.er1
25448   ac_status=$?
25449   grep -v '^ *+' conftest.er1 >conftest.err
25450   rm -f conftest.er1
25451   cat conftest.err >&5
25452   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25453   (exit $ac_status); } && {
25454          test -z "$ac_c_werror_flag" ||
25455          test ! -s conftest.err
25456        } && test -s conftest$ac_exeext && {
25457          test "$cross_compiling" = yes ||
25458          $as_test_x conftest$ac_exeext
25459        }; then
25460   eval "$as_ac_var=yes"
25461 else
25462   $as_echo "$as_me: failed program was:" >&5
25463 sed 's/^/| /' conftest.$ac_ext >&5
25465         eval "$as_ac_var=no"
25468 rm -rf conftest.dSYM
25469 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25470       conftest$ac_exeext conftest.$ac_ext
25472 ac_res=`eval 'as_val=${'$as_ac_var'}
25473                  $as_echo "$as_val"'`
25474                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25475 $as_echo "$ac_res" >&6; }
25476 as_val=`eval 'as_val=${'$as_ac_var'}
25477                  $as_echo "$as_val"'`
25478    if test "x$as_val" = x""yes; then
25479   cat >>confdefs.h <<_ACEOF
25480 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25481 _ACEOF
25483 else
25484   { $as_echo "$as_me:$LINENO: checking for isinf with <math.h>" >&5
25485 $as_echo_n "checking for isinf with <math.h>... " >&6; }
25486     cat >conftest.$ac_ext <<_ACEOF
25487 /* confdefs.h.  */
25488 _ACEOF
25489 cat confdefs.h >>conftest.$ac_ext
25490 cat >>conftest.$ac_ext <<_ACEOF
25491 /* end confdefs.h.  */
25492 #include <math.h>
25493 volatile int x;volatile float f;
25494 int
25495 main ()
25497 x = isinf(f)
25498   ;
25499   return 0;
25501 _ACEOF
25502 rm -f conftest.$ac_objext conftest$ac_exeext
25503 if { (ac_try="$ac_link"
25504 case "(($ac_try" in
25505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25506   *) ac_try_echo=$ac_try;;
25507 esac
25508 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25509 $as_echo "$ac_try_echo") >&5
25510   (eval "$ac_link") 2>conftest.er1
25511   ac_status=$?
25512   grep -v '^ *+' conftest.er1 >conftest.err
25513   rm -f conftest.er1
25514   cat conftest.err >&5
25515   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25516   (exit $ac_status); } && {
25517          test -z "$ac_c_werror_flag" ||
25518          test ! -s conftest.err
25519        } && test -s conftest$ac_exeext && {
25520          test "$cross_compiling" = yes ||
25521          $as_test_x conftest$ac_exeext
25522        }; then
25523   { $as_echo "$as_me:$LINENO: result: yes" >&5
25524 $as_echo "yes" >&6; }
25525       cat >>confdefs.h <<\_ACEOF
25526 #define HAVE_ISINF 1
25527 _ACEOF
25529 else
25530   $as_echo "$as_me: failed program was:" >&5
25531 sed 's/^/| /' conftest.$ac_ext >&5
25533         { $as_echo "$as_me:$LINENO: result: no" >&5
25534 $as_echo "no" >&6; }
25537 rm -rf conftest.dSYM
25538 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25539       conftest$ac_exeext conftest.$ac_ext
25541 done
25544 { $as_echo "$as_me:$LINENO: checking whether isfinite is broken" >&5
25545 $as_echo_n "checking whether isfinite is broken... " >&6; }
25546 if test "${ac_cv_have_broken_isfinite+set}" = set; then
25547   $as_echo_n "(cached) " >&6
25548 else
25550 if test "$cross_compiling" = yes; then
25552 case "${target}" in
25553   hppa*-*-hpux*) ac_cv_have_broken_isfinite=yes ;;
25554   *-solaris2.8) ac_cv_have_broken_isfinite=yes ;;
25555   *-solaris2.9) ac_cv_have_broken_isfinite=yes ;;
25556   *) ac_cv_have_broken_isfinite=no ;;
25557 esac
25558 else
25559   cat >conftest.$ac_ext <<_ACEOF
25560 /* confdefs.h.  */
25561 _ACEOF
25562 cat confdefs.h >>conftest.$ac_ext
25563 cat >>conftest.$ac_ext <<_ACEOF
25564 /* end confdefs.h.  */
25566 #ifdef HAVE_MATH_H
25567 #include <math.h>
25568 #endif
25569 #ifdef HAVE_FLOAT_H
25570 #include <float.h>
25571 #endif
25572 int main ()
25574 #ifdef isfinite
25575 #ifdef LDBL_MAX
25576   if (!isfinite(LDBL_MAX)) return 1;
25577 #endif
25578 #ifdef DBL_MAX
25579   if (!isfinite(DBL_MAX)) return 1;
25580 #endif
25581 #endif
25582 return 0;
25584 _ACEOF
25585 rm -f conftest$ac_exeext
25586 if { (ac_try="$ac_link"
25587 case "(($ac_try" in
25588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25589   *) ac_try_echo=$ac_try;;
25590 esac
25591 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25592 $as_echo "$ac_try_echo") >&5
25593   (eval "$ac_link") 2>&5
25594   ac_status=$?
25595   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25596   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25597   { (case "(($ac_try" in
25598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25599   *) ac_try_echo=$ac_try;;
25600 esac
25601 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25602 $as_echo "$ac_try_echo") >&5
25603   (eval "$ac_try") 2>&5
25604   ac_status=$?
25605   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25606   (exit $ac_status); }; }; then
25607   ac_cv_have_broken_isfinite=no
25608 else
25609   $as_echo "$as_me: program exited with status $ac_status" >&5
25610 $as_echo "$as_me: failed program was:" >&5
25611 sed 's/^/| /' conftest.$ac_ext >&5
25613 ( exit $ac_status )
25614 ac_cv_have_broken_isfinite=yes
25616 rm -rf conftest.dSYM
25617 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25623 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_broken_isfinite" >&5
25624 $as_echo "$ac_cv_have_broken_isfinite" >&6; }
25626 case "${target}" in
25627   *-solaris2.8) ac_cv_have_broken_isfinite=yes ;;
25628   *-solaris2.9) ac_cv_have_broken_isfinite=yes ;;
25629 esac
25631 if test "x$ac_cv_have_broken_isfinite" = "xno"; then
25632   cat >>confdefs.h <<\_ACEOF
25633 #define HAVE_ISFINITE 1
25634 _ACEOF
25636 else
25638 for ac_func in finite
25640 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25641 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
25642 $as_echo_n "checking for $ac_func... " >&6; }
25643 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25644   $as_echo_n "(cached) " >&6
25645 else
25646   cat >conftest.$ac_ext <<_ACEOF
25647 /* confdefs.h.  */
25648 _ACEOF
25649 cat confdefs.h >>conftest.$ac_ext
25650 cat >>conftest.$ac_ext <<_ACEOF
25651 /* end confdefs.h.  */
25652 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25653    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25654 #define $ac_func innocuous_$ac_func
25656 /* System header to define __stub macros and hopefully few prototypes,
25657     which can conflict with char $ac_func (); below.
25658     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25659     <limits.h> exists even on freestanding compilers.  */
25661 #ifdef __STDC__
25662 # include <limits.h>
25663 #else
25664 # include <assert.h>
25665 #endif
25667 #undef $ac_func
25669 /* Override any GCC internal prototype to avoid an error.
25670    Use char because int might match the return type of a GCC
25671    builtin and then its argument prototype would still apply.  */
25672 #ifdef __cplusplus
25673 extern "C"
25674 #endif
25675 char $ac_func ();
25676 /* The GNU C library defines this for functions which it implements
25677     to always fail with ENOSYS.  Some functions are actually named
25678     something starting with __ and the normal name is an alias.  */
25679 #if defined __stub_$ac_func || defined __stub___$ac_func
25680 choke me
25681 #endif
25683 int
25684 main ()
25686 return $ac_func ();
25687   ;
25688   return 0;
25690 _ACEOF
25691 rm -f conftest.$ac_objext conftest$ac_exeext
25692 if { (ac_try="$ac_link"
25693 case "(($ac_try" in
25694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25695   *) ac_try_echo=$ac_try;;
25696 esac
25697 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25698 $as_echo "$ac_try_echo") >&5
25699   (eval "$ac_link") 2>conftest.er1
25700   ac_status=$?
25701   grep -v '^ *+' conftest.er1 >conftest.err
25702   rm -f conftest.er1
25703   cat conftest.err >&5
25704   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25705   (exit $ac_status); } && {
25706          test -z "$ac_c_werror_flag" ||
25707          test ! -s conftest.err
25708        } && test -s conftest$ac_exeext && {
25709          test "$cross_compiling" = yes ||
25710          $as_test_x conftest$ac_exeext
25711        }; then
25712   eval "$as_ac_var=yes"
25713 else
25714   $as_echo "$as_me: failed program was:" >&5
25715 sed 's/^/| /' conftest.$ac_ext >&5
25717         eval "$as_ac_var=no"
25720 rm -rf conftest.dSYM
25721 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25722       conftest$ac_exeext conftest.$ac_ext
25724 ac_res=`eval 'as_val=${'$as_ac_var'}
25725                  $as_echo "$as_val"'`
25726                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25727 $as_echo "$ac_res" >&6; }
25728 as_val=`eval 'as_val=${'$as_ac_var'}
25729                  $as_echo "$as_val"'`
25730    if test "x$as_val" = x""yes; then
25731   cat >>confdefs.h <<_ACEOF
25732 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25733 _ACEOF
25735 else
25737 for ac_func in isfinite
25739 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25740 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
25741 $as_echo_n "checking for $ac_func... " >&6; }
25742 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25743   $as_echo_n "(cached) " >&6
25744 else
25745   cat >conftest.$ac_ext <<_ACEOF
25746 /* confdefs.h.  */
25747 _ACEOF
25748 cat confdefs.h >>conftest.$ac_ext
25749 cat >>conftest.$ac_ext <<_ACEOF
25750 /* end confdefs.h.  */
25751 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25752    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25753 #define $ac_func innocuous_$ac_func
25755 /* System header to define __stub macros and hopefully few prototypes,
25756     which can conflict with char $ac_func (); below.
25757     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25758     <limits.h> exists even on freestanding compilers.  */
25760 #ifdef __STDC__
25761 # include <limits.h>
25762 #else
25763 # include <assert.h>
25764 #endif
25766 #undef $ac_func
25768 /* Override any GCC internal prototype to avoid an error.
25769    Use char because int might match the return type of a GCC
25770    builtin and then its argument prototype would still apply.  */
25771 #ifdef __cplusplus
25772 extern "C"
25773 #endif
25774 char $ac_func ();
25775 /* The GNU C library defines this for functions which it implements
25776     to always fail with ENOSYS.  Some functions are actually named
25777     something starting with __ and the normal name is an alias.  */
25778 #if defined __stub_$ac_func || defined __stub___$ac_func
25779 choke me
25780 #endif
25782 int
25783 main ()
25785 return $ac_func ();
25786   ;
25787   return 0;
25789 _ACEOF
25790 rm -f conftest.$ac_objext conftest$ac_exeext
25791 if { (ac_try="$ac_link"
25792 case "(($ac_try" in
25793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25794   *) ac_try_echo=$ac_try;;
25795 esac
25796 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25797 $as_echo "$ac_try_echo") >&5
25798   (eval "$ac_link") 2>conftest.er1
25799   ac_status=$?
25800   grep -v '^ *+' conftest.er1 >conftest.err
25801   rm -f conftest.er1
25802   cat conftest.err >&5
25803   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25804   (exit $ac_status); } && {
25805          test -z "$ac_c_werror_flag" ||
25806          test ! -s conftest.err
25807        } && test -s conftest$ac_exeext && {
25808          test "$cross_compiling" = yes ||
25809          $as_test_x conftest$ac_exeext
25810        }; then
25811   eval "$as_ac_var=yes"
25812 else
25813   $as_echo "$as_me: failed program was:" >&5
25814 sed 's/^/| /' conftest.$ac_ext >&5
25816         eval "$as_ac_var=no"
25819 rm -rf conftest.dSYM
25820 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25821       conftest$ac_exeext conftest.$ac_ext
25823 ac_res=`eval 'as_val=${'$as_ac_var'}
25824                  $as_echo "$as_val"'`
25825                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25826 $as_echo "$ac_res" >&6; }
25827 as_val=`eval 'as_val=${'$as_ac_var'}
25828                  $as_echo "$as_val"'`
25829    if test "x$as_val" = x""yes; then
25830   cat >>confdefs.h <<_ACEOF
25831 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25832 _ACEOF
25834 else
25835   { $as_echo "$as_me:$LINENO: checking for isfinite with <math.h>" >&5
25836 $as_echo_n "checking for isfinite with <math.h>... " >&6; }
25837           cat >conftest.$ac_ext <<_ACEOF
25838 /* confdefs.h.  */
25839 _ACEOF
25840 cat confdefs.h >>conftest.$ac_ext
25841 cat >>conftest.$ac_ext <<_ACEOF
25842 /* end confdefs.h.  */
25843 #include <math.h>
25844 volatile int x;volatile float f;
25845 int
25846 main ()
25848 x = isfinite(f)
25849   ;
25850   return 0;
25852 _ACEOF
25853 rm -f conftest.$ac_objext 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>conftest.er1
25862   ac_status=$?
25863   grep -v '^ *+' conftest.er1 >conftest.err
25864   rm -f conftest.er1
25865   cat conftest.err >&5
25866   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25867   (exit $ac_status); } && {
25868          test -z "$ac_c_werror_flag" ||
25869          test ! -s conftest.err
25870        } && test -s conftest$ac_exeext && {
25871          test "$cross_compiling" = yes ||
25872          $as_test_x conftest$ac_exeext
25873        }; then
25874   { $as_echo "$as_me:$LINENO: result: yes" >&5
25875 $as_echo "yes" >&6; }
25876                 cat >>confdefs.h <<\_ACEOF
25877 #define HAVE_ISFINITE 1
25878 _ACEOF
25880 else
25881   $as_echo "$as_me: failed program was:" >&5
25882 sed 's/^/| /' conftest.$ac_ext >&5
25884         { $as_echo "$as_me:$LINENO: result: no" >&5
25885 $as_echo "no" >&6; }
25888 rm -rf conftest.dSYM
25889 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25890       conftest$ac_exeext conftest.$ac_ext
25892 done
25895 done
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 _cflags=${CFLAGS}
25908 { $as_echo "$as_me:$LINENO: checking if IEEE math works out of the box" >&5
25909 $as_echo_n "checking if IEEE math works out of the box... " >&6; }
25910 if test "${rd_cv_ieee_works+set}" = set; then
25911   $as_echo_n "(cached) " >&6
25912 else
25913   if test "$cross_compiling" = yes; then
25914   :
25915 else
25916   cat >conftest.$ac_ext <<_ACEOF
25917 /* confdefs.h.  */
25918 _ACEOF
25919 cat confdefs.h >>conftest.$ac_ext
25920 cat >>conftest.$ac_ext <<_ACEOF
25921 /* end confdefs.h.  */
25924 #if HAVE_MATH_H
25925 #  include <math.h>
25926 #endif
25928 #if HAVE_FLOAT_H
25929 #  include <float.h>
25930 #endif
25932 #if HAVE_IEEEFP_H
25933 #  include <ieeefp.h>
25934 #endif
25936 #if HAVE_FP_CLASS_H
25937 #  include <fp_class.h>
25938 #endif
25940 /* Solaris */
25941 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS))
25942 #  define HAVE_ISINF 1
25943 #  define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF)
25944 #endif
25946 /* solaris 10 it defines isnan such that only forte can compile it ... bad bad  */
25947 #if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS) && defined(FP_SNAN) && defined(FP_QNAN))
25948 #  undef isnan
25949 #  define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN)
25950 #endif
25952 /* Digital UNIX */
25953 #if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H) && defined(FP_NEG_INF) && defined( FP_POS_INF) )
25954 #  define HAVE_ISINF 1
25955 #  define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
25956 #endif
25958 /* AIX */
25959 #if (! defined(HAVE_ISINF) && defined(HAVE_CLASS))
25960 #  define HAVE_ISINF 1
25961 #  define isinf(a) (class(a) == FP_MINUS_INF || class(a) == FP_PLUS_INF)
25962 #endif
25964 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_PLUS_INF) && defined(FP_MINUS_INF))
25965 #  define HAVE_ISINF 1
25966 #  define isinf(a) (fpclassify(a) == FP_MINUS_INF || fpclassify(a) == FP_PLUS_INF)
25967 #endif
25969 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_INFINITE))
25970 #  define HAVE_ISINF 1
25971 #  define isinf(a) (fpclassify(a) == FP_INFINITE)
25972 #endif
25974 #if HAVE_MATH_H
25975 #include <math.h>
25976 #endif
25978 #include <stdio.h>
25979 int main(void){
25980     double rrdnan,rrdinf,rrdc,rrdzero;
25981     ;
25982     /* some math to see if we get a floating point exception */
25983     rrdzero=sin(0.0); /* don't let the compiler optimize us away */
25984     rrdnan=0.0/rrdzero; /* especially here */
25985     rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
25986                   /* at run time without sig fpe */
25987     rrdc = rrdinf + rrdnan;
25988     rrdc = rrdinf / rrdnan;
25989     if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
25990     if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
25991     if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
25992     if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
25993     if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
25994     if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
25995     return 0;
25996  }
25997 _ACEOF
25998 rm -f conftest$ac_exeext
25999 if { (ac_try="$ac_link"
26000 case "(($ac_try" in
26001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26002   *) ac_try_echo=$ac_try;;
26003 esac
26004 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26005 $as_echo "$ac_try_echo") >&5
26006   (eval "$ac_link") 2>&5
26007   ac_status=$?
26008   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26009   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26010   { (case "(($ac_try" in
26011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26012   *) ac_try_echo=$ac_try;;
26013 esac
26014 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26015 $as_echo "$ac_try_echo") >&5
26016   (eval "$ac_try") 2>&5
26017   ac_status=$?
26018   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26019   (exit $ac_status); }; }; then
26020   rd_cv_ieee_works=yes
26021 else
26022   $as_echo "$as_me: program exited with status $ac_status" >&5
26023 $as_echo "$as_me: failed program was:" >&5
26024 sed 's/^/| /' conftest.$ac_ext >&5
26026 ( exit $ac_status )
26027 rd_cv_ieee_works=no
26029 rm -rf conftest.dSYM
26030 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26036 if test x${rd_cv_ieee_works} = "xyes"; then
26037  { $as_echo "$as_me:$LINENO: result: yes" >&5
26038 $as_echo "yes" >&6; }
26040 else
26041  { $as_echo "$as_me:$LINENO: result: no" >&5
26042 $as_echo "no" >&6; }
26043  CFLAGS="$_cflags -ieee"
26045 { $as_echo "$as_me:$LINENO: checking if IEEE math works with the -ieee switch" >&5
26046 $as_echo_n "checking if IEEE math works with the -ieee switch... " >&6; }
26047 if test "${rd_cv_ieee_switch+set}" = set; then
26048   $as_echo_n "(cached) " >&6
26049 else
26050   if test "$cross_compiling" = yes; then
26051   :
26052 else
26053   cat >conftest.$ac_ext <<_ACEOF
26054 /* confdefs.h.  */
26055 _ACEOF
26056 cat confdefs.h >>conftest.$ac_ext
26057 cat >>conftest.$ac_ext <<_ACEOF
26058 /* end confdefs.h.  */
26061 #if HAVE_MATH_H
26062 #  include <math.h>
26063 #endif
26065 #if HAVE_FLOAT_H
26066 #  include <float.h>
26067 #endif
26069 #if HAVE_IEEEFP_H
26070 #  include <ieeefp.h>
26071 #endif
26073 #if HAVE_FP_CLASS_H
26074 #  include <fp_class.h>
26075 #endif
26077 /* Solaris */
26078 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS))
26079 #  define HAVE_ISINF 1
26080 #  define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF)
26081 #endif
26083 /* solaris 10 it defines isnan such that only forte can compile it ... bad bad  */
26084 #if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS) && defined(FP_SNAN) && defined(FP_QNAN))
26085 #  undef isnan
26086 #  define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN)
26087 #endif
26089 /* Digital UNIX */
26090 #if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H) && defined(FP_NEG_INF) && defined( FP_POS_INF) )
26091 #  define HAVE_ISINF 1
26092 #  define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
26093 #endif
26095 /* AIX */
26096 #if (! defined(HAVE_ISINF) && defined(HAVE_CLASS))
26097 #  define HAVE_ISINF 1
26098 #  define isinf(a) (class(a) == FP_MINUS_INF || class(a) == FP_PLUS_INF)
26099 #endif
26101 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_PLUS_INF) && defined(FP_MINUS_INF))
26102 #  define HAVE_ISINF 1
26103 #  define isinf(a) (fpclassify(a) == FP_MINUS_INF || fpclassify(a) == FP_PLUS_INF)
26104 #endif
26106 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_INFINITE))
26107 #  define HAVE_ISINF 1
26108 #  define isinf(a) (fpclassify(a) == FP_INFINITE)
26109 #endif
26111 #if HAVE_MATH_H
26112 #include <math.h>
26113 #endif
26115 #include <stdio.h>
26116 int main(void){
26117     double rrdnan,rrdinf,rrdc,rrdzero;
26118     ;
26119     /* some math to see if we get a floating point exception */
26120     rrdzero=sin(0.0); /* don't let the compiler optimize us away */
26121     rrdnan=0.0/rrdzero; /* especially here */
26122     rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
26123                   /* at run time without sig fpe */
26124     rrdc = rrdinf + rrdnan;
26125     rrdc = rrdinf / rrdnan;
26126     if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
26127     if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
26128     if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
26129     if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
26130     if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
26131     if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
26132     return 0;
26133  }
26134 _ACEOF
26135 rm -f conftest$ac_exeext
26136 if { (ac_try="$ac_link"
26137 case "(($ac_try" in
26138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26139   *) ac_try_echo=$ac_try;;
26140 esac
26141 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26142 $as_echo "$ac_try_echo") >&5
26143   (eval "$ac_link") 2>&5
26144   ac_status=$?
26145   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26146   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26147   { (case "(($ac_try" in
26148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26149   *) ac_try_echo=$ac_try;;
26150 esac
26151 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26152 $as_echo "$ac_try_echo") >&5
26153   (eval "$ac_try") 2>&5
26154   ac_status=$?
26155   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26156   (exit $ac_status); }; }; then
26157   rd_cv_ieee_switch=yes
26158 else
26159   $as_echo "$as_me: program exited with status $ac_status" >&5
26160 $as_echo "$as_me: failed program was:" >&5
26161 sed 's/^/| /' conftest.$ac_ext >&5
26163 ( exit $ac_status )
26164 rd_cv_ieee_switch=no
26166 rm -rf conftest.dSYM
26167 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26173 if test x${rd_cv_ieee_switch} = "xyes"; then
26174  { $as_echo "$as_me:$LINENO: result: yes" >&5
26175 $as_echo "yes" >&6; }
26177 else
26178  { $as_echo "$as_me:$LINENO: result: no" >&5
26179 $as_echo "no" >&6; }
26180  CFLAGS="$_cflags -qfloat=nofold"
26182 { $as_echo "$as_me:$LINENO: checking if IEEE math works with the -qfloat=nofold switch" >&5
26183 $as_echo_n "checking if IEEE math works with the -qfloat=nofold switch... " >&6; }
26184 if test "${rd_cv_ieee_nofold+set}" = set; then
26185   $as_echo_n "(cached) " >&6
26186 else
26187   if test "$cross_compiling" = yes; then
26188   :
26189 else
26190   cat >conftest.$ac_ext <<_ACEOF
26191 /* confdefs.h.  */
26192 _ACEOF
26193 cat confdefs.h >>conftest.$ac_ext
26194 cat >>conftest.$ac_ext <<_ACEOF
26195 /* end confdefs.h.  */
26198 #if HAVE_MATH_H
26199 #  include <math.h>
26200 #endif
26202 #if HAVE_FLOAT_H
26203 #  include <float.h>
26204 #endif
26206 #if HAVE_IEEEFP_H
26207 #  include <ieeefp.h>
26208 #endif
26210 #if HAVE_FP_CLASS_H
26211 #  include <fp_class.h>
26212 #endif
26214 /* Solaris */
26215 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS))
26216 #  define HAVE_ISINF 1
26217 #  define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF)
26218 #endif
26220 /* solaris 10 it defines isnan such that only forte can compile it ... bad bad  */
26221 #if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS) && defined(FP_SNAN) && defined(FP_QNAN))
26222 #  undef isnan
26223 #  define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN)
26224 #endif
26226 /* Digital UNIX */
26227 #if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H) && defined(FP_NEG_INF) && defined( FP_POS_INF) )
26228 #  define HAVE_ISINF 1
26229 #  define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
26230 #endif
26232 /* AIX */
26233 #if (! defined(HAVE_ISINF) && defined(HAVE_CLASS))
26234 #  define HAVE_ISINF 1
26235 #  define isinf(a) (class(a) == FP_MINUS_INF || class(a) == FP_PLUS_INF)
26236 #endif
26238 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_PLUS_INF) && defined(FP_MINUS_INF))
26239 #  define HAVE_ISINF 1
26240 #  define isinf(a) (fpclassify(a) == FP_MINUS_INF || fpclassify(a) == FP_PLUS_INF)
26241 #endif
26243 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_INFINITE))
26244 #  define HAVE_ISINF 1
26245 #  define isinf(a) (fpclassify(a) == FP_INFINITE)
26246 #endif
26248 #if HAVE_MATH_H
26249 #include <math.h>
26250 #endif
26252 #include <stdio.h>
26253 int main(void){
26254     double rrdnan,rrdinf,rrdc,rrdzero;
26255     ;
26256     /* some math to see if we get a floating point exception */
26257     rrdzero=sin(0.0); /* don't let the compiler optimize us away */
26258     rrdnan=0.0/rrdzero; /* especially here */
26259     rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
26260                   /* at run time without sig fpe */
26261     rrdc = rrdinf + rrdnan;
26262     rrdc = rrdinf / rrdnan;
26263     if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
26264     if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
26265     if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
26266     if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
26267     if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
26268     if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
26269     return 0;
26270  }
26271 _ACEOF
26272 rm -f conftest$ac_exeext
26273 if { (ac_try="$ac_link"
26274 case "(($ac_try" in
26275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26276   *) ac_try_echo=$ac_try;;
26277 esac
26278 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26279 $as_echo "$ac_try_echo") >&5
26280   (eval "$ac_link") 2>&5
26281   ac_status=$?
26282   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26283   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26284   { (case "(($ac_try" in
26285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26286   *) ac_try_echo=$ac_try;;
26287 esac
26288 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26289 $as_echo "$ac_try_echo") >&5
26290   (eval "$ac_try") 2>&5
26291   ac_status=$?
26292   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26293   (exit $ac_status); }; }; then
26294   rd_cv_ieee_nofold=yes
26295 else
26296   $as_echo "$as_me: program exited with status $ac_status" >&5
26297 $as_echo "$as_me: failed program was:" >&5
26298 sed 's/^/| /' conftest.$ac_ext >&5
26300 ( exit $ac_status )
26301 rd_cv_ieee_nofold=no
26303 rm -rf conftest.dSYM
26304 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26310 if test x${rd_cv_ieee_nofold} = "xyes"; then
26311  { $as_echo "$as_me:$LINENO: result: yes" >&5
26312 $as_echo "yes" >&6; }
26314 else
26315  { $as_echo "$as_me:$LINENO: result: no" >&5
26316 $as_echo "no" >&6; }
26317  CFLAGS="$_cflags -w -qflttrap=enable:zerodivide"
26319 { $as_echo "$as_me:$LINENO: checking if IEEE math works with the -w -qflttrap=enable:zerodivide" >&5
26320 $as_echo_n "checking if IEEE math works with the -w -qflttrap=enable:zerodivide... " >&6; }
26321 if test "${rd_cv_ieee_flttrap+set}" = set; then
26322   $as_echo_n "(cached) " >&6
26323 else
26324   if test "$cross_compiling" = yes; then
26325   :
26326 else
26327   cat >conftest.$ac_ext <<_ACEOF
26328 /* confdefs.h.  */
26329 _ACEOF
26330 cat confdefs.h >>conftest.$ac_ext
26331 cat >>conftest.$ac_ext <<_ACEOF
26332 /* end confdefs.h.  */
26335 #if HAVE_MATH_H
26336 #  include <math.h>
26337 #endif
26339 #if HAVE_FLOAT_H
26340 #  include <float.h>
26341 #endif
26343 #if HAVE_IEEEFP_H
26344 #  include <ieeefp.h>
26345 #endif
26347 #if HAVE_FP_CLASS_H
26348 #  include <fp_class.h>
26349 #endif
26351 /* Solaris */
26352 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS))
26353 #  define HAVE_ISINF 1
26354 #  define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF)
26355 #endif
26357 /* solaris 10 it defines isnan such that only forte can compile it ... bad bad  */
26358 #if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS) && defined(FP_SNAN) && defined(FP_QNAN))
26359 #  undef isnan
26360 #  define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN)
26361 #endif
26363 /* Digital UNIX */
26364 #if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H) && defined(FP_NEG_INF) && defined( FP_POS_INF) )
26365 #  define HAVE_ISINF 1
26366 #  define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
26367 #endif
26369 /* AIX */
26370 #if (! defined(HAVE_ISINF) && defined(HAVE_CLASS))
26371 #  define HAVE_ISINF 1
26372 #  define isinf(a) (class(a) == FP_MINUS_INF || class(a) == FP_PLUS_INF)
26373 #endif
26375 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_PLUS_INF) && defined(FP_MINUS_INF))
26376 #  define HAVE_ISINF 1
26377 #  define isinf(a) (fpclassify(a) == FP_MINUS_INF || fpclassify(a) == FP_PLUS_INF)
26378 #endif
26380 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_INFINITE))
26381 #  define HAVE_ISINF 1
26382 #  define isinf(a) (fpclassify(a) == FP_INFINITE)
26383 #endif
26385 #if HAVE_MATH_H
26386 #include <math.h>
26387 #endif
26389 #include <stdio.h>
26390 int main(void){
26391     double rrdnan,rrdinf,rrdc,rrdzero;
26392     ;
26393     /* some math to see if we get a floating point exception */
26394     rrdzero=sin(0.0); /* don't let the compiler optimize us away */
26395     rrdnan=0.0/rrdzero; /* especially here */
26396     rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
26397                   /* at run time without sig fpe */
26398     rrdc = rrdinf + rrdnan;
26399     rrdc = rrdinf / rrdnan;
26400     if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
26401     if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
26402     if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
26403     if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
26404     if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
26405     if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
26406     return 0;
26407  }
26408 _ACEOF
26409 rm -f conftest$ac_exeext
26410 if { (ac_try="$ac_link"
26411 case "(($ac_try" in
26412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26413   *) ac_try_echo=$ac_try;;
26414 esac
26415 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26416 $as_echo "$ac_try_echo") >&5
26417   (eval "$ac_link") 2>&5
26418   ac_status=$?
26419   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26420   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26421   { (case "(($ac_try" in
26422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26423   *) ac_try_echo=$ac_try;;
26424 esac
26425 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26426 $as_echo "$ac_try_echo") >&5
26427   (eval "$ac_try") 2>&5
26428   ac_status=$?
26429   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26430   (exit $ac_status); }; }; then
26431   rd_cv_ieee_flttrap=yes
26432 else
26433   $as_echo "$as_me: program exited with status $ac_status" >&5
26434 $as_echo "$as_me: failed program was:" >&5
26435 sed 's/^/| /' conftest.$ac_ext >&5
26437 ( exit $ac_status )
26438 rd_cv_ieee_flttrap=no
26440 rm -rf conftest.dSYM
26441 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26447 if test x${rd_cv_ieee_flttrap} = "xyes"; then
26448  { $as_echo "$as_me:$LINENO: result: yes" >&5
26449 $as_echo "yes" >&6; }
26451 else
26452  { $as_echo "$as_me:$LINENO: result: no" >&5
26453 $as_echo "no" >&6; }
26454  CFLAGS="$_cflags -mieee"
26456 { $as_echo "$as_me:$LINENO: checking if IEEE math works with the -mieee switch" >&5
26457 $as_echo_n "checking if IEEE math works with the -mieee switch... " >&6; }
26458 if test "${rd_cv_ieee_mswitch+set}" = set; then
26459   $as_echo_n "(cached) " >&6
26460 else
26461   if test "$cross_compiling" = yes; then
26462   :
26463 else
26464   cat >conftest.$ac_ext <<_ACEOF
26465 /* confdefs.h.  */
26466 _ACEOF
26467 cat confdefs.h >>conftest.$ac_ext
26468 cat >>conftest.$ac_ext <<_ACEOF
26469 /* end confdefs.h.  */
26472 #if HAVE_MATH_H
26473 #  include <math.h>
26474 #endif
26476 #if HAVE_FLOAT_H
26477 #  include <float.h>
26478 #endif
26480 #if HAVE_IEEEFP_H
26481 #  include <ieeefp.h>
26482 #endif
26484 #if HAVE_FP_CLASS_H
26485 #  include <fp_class.h>
26486 #endif
26488 /* Solaris */
26489 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS))
26490 #  define HAVE_ISINF 1
26491 #  define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF)
26492 #endif
26494 /* solaris 10 it defines isnan such that only forte can compile it ... bad bad  */
26495 #if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS) && defined(FP_SNAN) && defined(FP_QNAN))
26496 #  undef isnan
26497 #  define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN)
26498 #endif
26500 /* Digital UNIX */
26501 #if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H) && defined(FP_NEG_INF) && defined( FP_POS_INF) )
26502 #  define HAVE_ISINF 1
26503 #  define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
26504 #endif
26506 /* AIX */
26507 #if (! defined(HAVE_ISINF) && defined(HAVE_CLASS))
26508 #  define HAVE_ISINF 1
26509 #  define isinf(a) (class(a) == FP_MINUS_INF || class(a) == FP_PLUS_INF)
26510 #endif
26512 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_PLUS_INF) && defined(FP_MINUS_INF))
26513 #  define HAVE_ISINF 1
26514 #  define isinf(a) (fpclassify(a) == FP_MINUS_INF || fpclassify(a) == FP_PLUS_INF)
26515 #endif
26517 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_INFINITE))
26518 #  define HAVE_ISINF 1
26519 #  define isinf(a) (fpclassify(a) == FP_INFINITE)
26520 #endif
26522 #if HAVE_MATH_H
26523 #include <math.h>
26524 #endif
26526 #include <stdio.h>
26527 int main(void){
26528     double rrdnan,rrdinf,rrdc,rrdzero;
26529     ;
26530     /* some math to see if we get a floating point exception */
26531     rrdzero=sin(0.0); /* don't let the compiler optimize us away */
26532     rrdnan=0.0/rrdzero; /* especially here */
26533     rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
26534                   /* at run time without sig fpe */
26535     rrdc = rrdinf + rrdnan;
26536     rrdc = rrdinf / rrdnan;
26537     if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
26538     if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
26539     if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
26540     if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
26541     if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
26542     if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
26543     return 0;
26544  }
26545 _ACEOF
26546 rm -f conftest$ac_exeext
26547 if { (ac_try="$ac_link"
26548 case "(($ac_try" in
26549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26550   *) ac_try_echo=$ac_try;;
26551 esac
26552 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26553 $as_echo "$ac_try_echo") >&5
26554   (eval "$ac_link") 2>&5
26555   ac_status=$?
26556   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26557   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26558   { (case "(($ac_try" in
26559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26560   *) ac_try_echo=$ac_try;;
26561 esac
26562 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26563 $as_echo "$ac_try_echo") >&5
26564   (eval "$ac_try") 2>&5
26565   ac_status=$?
26566   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26567   (exit $ac_status); }; }; then
26568   rd_cv_ieee_mswitch=yes
26569 else
26570   $as_echo "$as_me: program exited with status $ac_status" >&5
26571 $as_echo "$as_me: failed program was:" >&5
26572 sed 's/^/| /' conftest.$ac_ext >&5
26574 ( exit $ac_status )
26575 rd_cv_ieee_mswitch=no
26577 rm -rf conftest.dSYM
26578 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26584 if test x${rd_cv_ieee_mswitch} = "xyes"; then
26585  { $as_echo "$as_me:$LINENO: result: yes" >&5
26586 $as_echo "yes" >&6; }
26588 else
26589  { $as_echo "$as_me:$LINENO: result: no" >&5
26590 $as_echo "no" >&6; }
26591  CFLAGS="$_cflags -q float=rndsngl"
26593 { $as_echo "$as_me:$LINENO: checking if IEEE math works with the -q float=rndsngl switch" >&5
26594 $as_echo_n "checking if IEEE math works with the -q float=rndsngl switch... " >&6; }
26595 if test "${rd_cv_ieee_qswitch+set}" = set; then
26596   $as_echo_n "(cached) " >&6
26597 else
26598   if test "$cross_compiling" = yes; then
26599   :
26600 else
26601   cat >conftest.$ac_ext <<_ACEOF
26602 /* confdefs.h.  */
26603 _ACEOF
26604 cat confdefs.h >>conftest.$ac_ext
26605 cat >>conftest.$ac_ext <<_ACEOF
26606 /* end confdefs.h.  */
26609 #if HAVE_MATH_H
26610 #  include <math.h>
26611 #endif
26613 #if HAVE_FLOAT_H
26614 #  include <float.h>
26615 #endif
26617 #if HAVE_IEEEFP_H
26618 #  include <ieeefp.h>
26619 #endif
26621 #if HAVE_FP_CLASS_H
26622 #  include <fp_class.h>
26623 #endif
26625 /* Solaris */
26626 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS))
26627 #  define HAVE_ISINF 1
26628 #  define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF)
26629 #endif
26631 /* solaris 10 it defines isnan such that only forte can compile it ... bad bad  */
26632 #if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS) && defined(FP_SNAN) && defined(FP_QNAN))
26633 #  undef isnan
26634 #  define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN)
26635 #endif
26637 /* Digital UNIX */
26638 #if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H) && defined(FP_NEG_INF) && defined( FP_POS_INF) )
26639 #  define HAVE_ISINF 1
26640 #  define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
26641 #endif
26643 /* AIX */
26644 #if (! defined(HAVE_ISINF) && defined(HAVE_CLASS))
26645 #  define HAVE_ISINF 1
26646 #  define isinf(a) (class(a) == FP_MINUS_INF || class(a) == FP_PLUS_INF)
26647 #endif
26649 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_PLUS_INF) && defined(FP_MINUS_INF))
26650 #  define HAVE_ISINF 1
26651 #  define isinf(a) (fpclassify(a) == FP_MINUS_INF || fpclassify(a) == FP_PLUS_INF)
26652 #endif
26654 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_INFINITE))
26655 #  define HAVE_ISINF 1
26656 #  define isinf(a) (fpclassify(a) == FP_INFINITE)
26657 #endif
26659 #if HAVE_MATH_H
26660 #include <math.h>
26661 #endif
26663 #include <stdio.h>
26664 int main(void){
26665     double rrdnan,rrdinf,rrdc,rrdzero;
26666     ;
26667     /* some math to see if we get a floating point exception */
26668     rrdzero=sin(0.0); /* don't let the compiler optimize us away */
26669     rrdnan=0.0/rrdzero; /* especially here */
26670     rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
26671                   /* at run time without sig fpe */
26672     rrdc = rrdinf + rrdnan;
26673     rrdc = rrdinf / rrdnan;
26674     if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
26675     if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
26676     if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
26677     if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
26678     if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
26679     if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
26680     return 0;
26681  }
26682 _ACEOF
26683 rm -f conftest$ac_exeext
26684 if { (ac_try="$ac_link"
26685 case "(($ac_try" in
26686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26687   *) ac_try_echo=$ac_try;;
26688 esac
26689 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26690 $as_echo "$ac_try_echo") >&5
26691   (eval "$ac_link") 2>&5
26692   ac_status=$?
26693   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26694   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26695   { (case "(($ac_try" in
26696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26697   *) ac_try_echo=$ac_try;;
26698 esac
26699 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26700 $as_echo "$ac_try_echo") >&5
26701   (eval "$ac_try") 2>&5
26702   ac_status=$?
26703   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26704   (exit $ac_status); }; }; then
26705   rd_cv_ieee_qswitch=yes
26706 else
26707   $as_echo "$as_me: program exited with status $ac_status" >&5
26708 $as_echo "$as_me: failed program was:" >&5
26709 sed 's/^/| /' conftest.$ac_ext >&5
26711 ( exit $ac_status )
26712 rd_cv_ieee_qswitch=no
26714 rm -rf conftest.dSYM
26715 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26721 if test x${rd_cv_ieee_qswitch} = "xyes"; then
26722  { $as_echo "$as_me:$LINENO: result: yes" >&5
26723 $as_echo "yes" >&6; }
26725 else
26726  { $as_echo "$as_me:$LINENO: result: no" >&5
26727 $as_echo "no" >&6; }
26728  CFLAGS="$_cflags -OPT:IEEE_NaN_inf=ON"
26730 { $as_echo "$as_me:$LINENO: checking if IEEE math works with the -OPT:IEEE_NaN_inf=ON switch" >&5
26731 $as_echo_n "checking if IEEE math works with the -OPT:IEEE_NaN_inf=ON switch... " >&6; }
26732 if test "${rd_cv_ieee_ieeenaninfswitch+set}" = set; then
26733   $as_echo_n "(cached) " >&6
26734 else
26735   if test "$cross_compiling" = yes; then
26736   :
26737 else
26738   cat >conftest.$ac_ext <<_ACEOF
26739 /* confdefs.h.  */
26740 _ACEOF
26741 cat confdefs.h >>conftest.$ac_ext
26742 cat >>conftest.$ac_ext <<_ACEOF
26743 /* end confdefs.h.  */
26746 #if HAVE_MATH_H
26747 #  include <math.h>
26748 #endif
26750 #if HAVE_FLOAT_H
26751 #  include <float.h>
26752 #endif
26754 #if HAVE_IEEEFP_H
26755 #  include <ieeefp.h>
26756 #endif
26758 #if HAVE_FP_CLASS_H
26759 #  include <fp_class.h>
26760 #endif
26762 /* Solaris */
26763 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS))
26764 #  define HAVE_ISINF 1
26765 #  define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF)
26766 #endif
26768 /* solaris 10 it defines isnan such that only forte can compile it ... bad bad  */
26769 #if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS) && defined(FP_SNAN) && defined(FP_QNAN))
26770 #  undef isnan
26771 #  define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN)
26772 #endif
26774 /* Digital UNIX */
26775 #if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H) && defined(FP_NEG_INF) && defined( FP_POS_INF) )
26776 #  define HAVE_ISINF 1
26777 #  define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
26778 #endif
26780 /* AIX */
26781 #if (! defined(HAVE_ISINF) && defined(HAVE_CLASS))
26782 #  define HAVE_ISINF 1
26783 #  define isinf(a) (class(a) == FP_MINUS_INF || class(a) == FP_PLUS_INF)
26784 #endif
26786 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_PLUS_INF) && defined(FP_MINUS_INF))
26787 #  define HAVE_ISINF 1
26788 #  define isinf(a) (fpclassify(a) == FP_MINUS_INF || fpclassify(a) == FP_PLUS_INF)
26789 #endif
26791 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_INFINITE))
26792 #  define HAVE_ISINF 1
26793 #  define isinf(a) (fpclassify(a) == FP_INFINITE)
26794 #endif
26796 #if HAVE_MATH_H
26797 #include <math.h>
26798 #endif
26800 #include <stdio.h>
26801 int main(void){
26802     double rrdnan,rrdinf,rrdc,rrdzero;
26803     ;
26804     /* some math to see if we get a floating point exception */
26805     rrdzero=sin(0.0); /* don't let the compiler optimize us away */
26806     rrdnan=0.0/rrdzero; /* especially here */
26807     rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
26808                   /* at run time without sig fpe */
26809     rrdc = rrdinf + rrdnan;
26810     rrdc = rrdinf / rrdnan;
26811     if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
26812     if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
26813     if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
26814     if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
26815     if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
26816     if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
26817     return 0;
26818  }
26819 _ACEOF
26820 rm -f conftest$ac_exeext
26821 if { (ac_try="$ac_link"
26822 case "(($ac_try" in
26823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26824   *) ac_try_echo=$ac_try;;
26825 esac
26826 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26827 $as_echo "$ac_try_echo") >&5
26828   (eval "$ac_link") 2>&5
26829   ac_status=$?
26830   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26831   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26832   { (case "(($ac_try" in
26833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26834   *) ac_try_echo=$ac_try;;
26835 esac
26836 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26837 $as_echo "$ac_try_echo") >&5
26838   (eval "$ac_try") 2>&5
26839   ac_status=$?
26840   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26841   (exit $ac_status); }; }; then
26842   rd_cv_ieee_ieeenaninfswitch=yes
26843 else
26844   $as_echo "$as_me: program exited with status $ac_status" >&5
26845 $as_echo "$as_me: failed program was:" >&5
26846 sed 's/^/| /' conftest.$ac_ext >&5
26848 ( exit $ac_status )
26849 rd_cv_ieee_ieeenaninfswitch=no
26851 rm -rf conftest.dSYM
26852 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26858 if test x${rd_cv_ieee_ieeenaninfswitch} = "xyes"; then
26859  { $as_echo "$as_me:$LINENO: result: yes" >&5
26860 $as_echo "yes" >&6; }
26862 else
26863  { $as_echo "$as_me:$LINENO: result: no" >&5
26864 $as_echo "no" >&6; }
26865  CFLAGS="$_cflags -OPT:IEEE_comparisons=ON"
26867 { $as_echo "$as_me:$LINENO: checking if IEEE math works with the -OPT:IEEE_comparisons=ON switch" >&5
26868 $as_echo_n "checking if IEEE math works with the -OPT:IEEE_comparisons=ON switch... " >&6; }
26869 if test "${rd_cv_ieee_ieeecmpswitch+set}" = set; then
26870   $as_echo_n "(cached) " >&6
26871 else
26872   if test "$cross_compiling" = yes; then
26873   :
26874 else
26875   cat >conftest.$ac_ext <<_ACEOF
26876 /* confdefs.h.  */
26877 _ACEOF
26878 cat confdefs.h >>conftest.$ac_ext
26879 cat >>conftest.$ac_ext <<_ACEOF
26880 /* end confdefs.h.  */
26883 #if HAVE_MATH_H
26884 #  include <math.h>
26885 #endif
26887 #if HAVE_FLOAT_H
26888 #  include <float.h>
26889 #endif
26891 #if HAVE_IEEEFP_H
26892 #  include <ieeefp.h>
26893 #endif
26895 #if HAVE_FP_CLASS_H
26896 #  include <fp_class.h>
26897 #endif
26899 /* Solaris */
26900 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS))
26901 #  define HAVE_ISINF 1
26902 #  define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF)
26903 #endif
26905 /* solaris 10 it defines isnan such that only forte can compile it ... bad bad  */
26906 #if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS) && defined(FP_SNAN) && defined(FP_QNAN))
26907 #  undef isnan
26908 #  define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN)
26909 #endif
26911 /* Digital UNIX */
26912 #if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H) && defined(FP_NEG_INF) && defined( FP_POS_INF) )
26913 #  define HAVE_ISINF 1
26914 #  define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
26915 #endif
26917 /* AIX */
26918 #if (! defined(HAVE_ISINF) && defined(HAVE_CLASS))
26919 #  define HAVE_ISINF 1
26920 #  define isinf(a) (class(a) == FP_MINUS_INF || class(a) == FP_PLUS_INF)
26921 #endif
26923 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_PLUS_INF) && defined(FP_MINUS_INF))
26924 #  define HAVE_ISINF 1
26925 #  define isinf(a) (fpclassify(a) == FP_MINUS_INF || fpclassify(a) == FP_PLUS_INF)
26926 #endif
26928 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_INFINITE))
26929 #  define HAVE_ISINF 1
26930 #  define isinf(a) (fpclassify(a) == FP_INFINITE)
26931 #endif
26933 #if HAVE_MATH_H
26934 #include <math.h>
26935 #endif
26937 #include <stdio.h>
26938 int main(void){
26939     double rrdnan,rrdinf,rrdc,rrdzero;
26940     ;
26941     /* some math to see if we get a floating point exception */
26942     rrdzero=sin(0.0); /* don't let the compiler optimize us away */
26943     rrdnan=0.0/rrdzero; /* especially here */
26944     rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
26945                   /* at run time without sig fpe */
26946     rrdc = rrdinf + rrdnan;
26947     rrdc = rrdinf / rrdnan;
26948     if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
26949     if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
26950     if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
26951     if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
26952     if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
26953     if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
26954     return 0;
26955  }
26956 _ACEOF
26957 rm -f conftest$ac_exeext
26958 if { (ac_try="$ac_link"
26959 case "(($ac_try" in
26960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26961   *) ac_try_echo=$ac_try;;
26962 esac
26963 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26964 $as_echo "$ac_try_echo") >&5
26965   (eval "$ac_link") 2>&5
26966   ac_status=$?
26967   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26968   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26969   { (case "(($ac_try" in
26970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26971   *) ac_try_echo=$ac_try;;
26972 esac
26973 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26974 $as_echo "$ac_try_echo") >&5
26975   (eval "$ac_try") 2>&5
26976   ac_status=$?
26977   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26978   (exit $ac_status); }; }; then
26979   rd_cv_ieee_ieeecmpswitch=yes
26980 else
26981   $as_echo "$as_me: program exited with status $ac_status" >&5
26982 $as_echo "$as_me: failed program was:" >&5
26983 sed 's/^/| /' conftest.$ac_ext >&5
26985 ( exit $ac_status )
26986 rd_cv_ieee_ieeecmpswitch=no
26988 rm -rf conftest.dSYM
26989 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26995 if test x${rd_cv_ieee_ieeecmpswitch} = "xyes"; then
26996  { $as_echo "$as_me:$LINENO: result: yes" >&5
26997 $as_echo "yes" >&6; }
26999 else
27000  { $as_echo "$as_me:$LINENO: result: no" >&5
27001 $as_echo "no" >&6; }
27002  CFLAGS=$_cflags
27004 { $as_echo "$as_me:$LINENO: checking if IEEE math works with fpsetmask(0)" >&5
27005 $as_echo_n "checking if IEEE math works with fpsetmask(0)... " >&6; }
27006 if test "${rd_cv_ieee_mask+set}" = set; then
27007   $as_echo_n "(cached) " >&6
27008 else
27009   if test "$cross_compiling" = yes; then
27010   :
27011 else
27012   cat >conftest.$ac_ext <<_ACEOF
27013 /* confdefs.h.  */
27014 _ACEOF
27015 cat confdefs.h >>conftest.$ac_ext
27016 cat >>conftest.$ac_ext <<_ACEOF
27017 /* end confdefs.h.  */
27018 #include <floatingpoint.h>
27020 #if HAVE_MATH_H
27021 #  include <math.h>
27022 #endif
27024 #if HAVE_FLOAT_H
27025 #  include <float.h>
27026 #endif
27028 #if HAVE_IEEEFP_H
27029 #  include <ieeefp.h>
27030 #endif
27032 #if HAVE_FP_CLASS_H
27033 #  include <fp_class.h>
27034 #endif
27036 /* Solaris */
27037 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS))
27038 #  define HAVE_ISINF 1
27039 #  define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF)
27040 #endif
27042 /* solaris 10 it defines isnan such that only forte can compile it ... bad bad  */
27043 #if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS) && defined(FP_SNAN) && defined(FP_QNAN))
27044 #  undef isnan
27045 #  define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN)
27046 #endif
27048 /* Digital UNIX */
27049 #if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H) && defined(FP_NEG_INF) && defined( FP_POS_INF) )
27050 #  define HAVE_ISINF 1
27051 #  define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
27052 #endif
27054 /* AIX */
27055 #if (! defined(HAVE_ISINF) && defined(HAVE_CLASS))
27056 #  define HAVE_ISINF 1
27057 #  define isinf(a) (class(a) == FP_MINUS_INF || class(a) == FP_PLUS_INF)
27058 #endif
27060 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_PLUS_INF) && defined(FP_MINUS_INF))
27061 #  define HAVE_ISINF 1
27062 #  define isinf(a) (fpclassify(a) == FP_MINUS_INF || fpclassify(a) == FP_PLUS_INF)
27063 #endif
27065 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_INFINITE))
27066 #  define HAVE_ISINF 1
27067 #  define isinf(a) (fpclassify(a) == FP_INFINITE)
27068 #endif
27070 #if HAVE_MATH_H
27071 #include <math.h>
27072 #endif
27074 #include <stdio.h>
27075 int main(void){
27076     double rrdnan,rrdinf,rrdc,rrdzero;
27077     fpsetmask(0);
27078     /* some math to see if we get a floating point exception */
27079     rrdzero=sin(0.0); /* don't let the compiler optimize us away */
27080     rrdnan=0.0/rrdzero; /* especially here */
27081     rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
27082                   /* at run time without sig fpe */
27083     rrdc = rrdinf + rrdnan;
27084     rrdc = rrdinf / rrdnan;
27085     if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
27086     if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
27087     if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
27088     if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
27089     if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
27090     if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
27091     return 0;
27092  }
27093 _ACEOF
27094 rm -f conftest$ac_exeext
27095 if { (ac_try="$ac_link"
27096 case "(($ac_try" in
27097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27098   *) ac_try_echo=$ac_try;;
27099 esac
27100 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27101 $as_echo "$ac_try_echo") >&5
27102   (eval "$ac_link") 2>&5
27103   ac_status=$?
27104   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27105   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27106   { (case "(($ac_try" in
27107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27108   *) ac_try_echo=$ac_try;;
27109 esac
27110 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27111 $as_echo "$ac_try_echo") >&5
27112   (eval "$ac_try") 2>&5
27113   ac_status=$?
27114   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27115   (exit $ac_status); }; }; then
27116   rd_cv_ieee_mask=yes
27117 else
27118   $as_echo "$as_me: program exited with status $ac_status" >&5
27119 $as_echo "$as_me: failed program was:" >&5
27120 sed 's/^/| /' conftest.$ac_ext >&5
27122 ( exit $ac_status )
27123 rd_cv_ieee_mask=no
27125 rm -rf conftest.dSYM
27126 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27132 if test x${rd_cv_ieee_mask} = "xyes"; then
27133  { $as_echo "$as_me:$LINENO: result: yes" >&5
27134 $as_echo "yes" >&6; }
27135  cat >>confdefs.h <<\_ACEOF
27136 #define MUST_DISABLE_FPMASK 1
27137 _ACEOF
27139                  PERLFLAGS="CCFLAGS=-DMUST_DISABLE_FPMASK"
27140 else
27141  { $as_echo "$as_me:$LINENO: result: no" >&5
27142 $as_echo "no" >&6; }
27144 { $as_echo "$as_me:$LINENO: checking if IEEE math works with signal(SIGFPE,SIG_IGN)" >&5
27145 $as_echo_n "checking if IEEE math works with signal(SIGFPE,SIG_IGN)... " >&6; }
27146 if test "${rd_cv_ieee_sigfpe+set}" = set; then
27147   $as_echo_n "(cached) " >&6
27148 else
27149   if test "$cross_compiling" = yes; then
27150   :
27151 else
27152   cat >conftest.$ac_ext <<_ACEOF
27153 /* confdefs.h.  */
27154 _ACEOF
27155 cat confdefs.h >>conftest.$ac_ext
27156 cat >>conftest.$ac_ext <<_ACEOF
27157 /* end confdefs.h.  */
27158 #include <signal.h>
27160 #if HAVE_MATH_H
27161 #  include <math.h>
27162 #endif
27164 #if HAVE_FLOAT_H
27165 #  include <float.h>
27166 #endif
27168 #if HAVE_IEEEFP_H
27169 #  include <ieeefp.h>
27170 #endif
27172 #if HAVE_FP_CLASS_H
27173 #  include <fp_class.h>
27174 #endif
27176 /* Solaris */
27177 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS))
27178 #  define HAVE_ISINF 1
27179 #  define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF)
27180 #endif
27182 /* solaris 10 it defines isnan such that only forte can compile it ... bad bad  */
27183 #if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS) && defined(FP_SNAN) && defined(FP_QNAN))
27184 #  undef isnan
27185 #  define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN)
27186 #endif
27188 /* Digital UNIX */
27189 #if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H) && defined(FP_NEG_INF) && defined( FP_POS_INF) )
27190 #  define HAVE_ISINF 1
27191 #  define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
27192 #endif
27194 /* AIX */
27195 #if (! defined(HAVE_ISINF) && defined(HAVE_CLASS))
27196 #  define HAVE_ISINF 1
27197 #  define isinf(a) (class(a) == FP_MINUS_INF || class(a) == FP_PLUS_INF)
27198 #endif
27200 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_PLUS_INF) && defined(FP_MINUS_INF))
27201 #  define HAVE_ISINF 1
27202 #  define isinf(a) (fpclassify(a) == FP_MINUS_INF || fpclassify(a) == FP_PLUS_INF)
27203 #endif
27205 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_INFINITE))
27206 #  define HAVE_ISINF 1
27207 #  define isinf(a) (fpclassify(a) == FP_INFINITE)
27208 #endif
27210 #if HAVE_MATH_H
27211 #include <math.h>
27212 #endif
27214 #include <stdio.h>
27215 int main(void){
27216     double rrdnan,rrdinf,rrdc,rrdzero;
27217     signal(SIGFPE,SIG_IGN);
27218     /* some math to see if we get a floating point exception */
27219     rrdzero=sin(0.0); /* don't let the compiler optimize us away */
27220     rrdnan=0.0/rrdzero; /* especially here */
27221     rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
27222                   /* at run time without sig fpe */
27223     rrdc = rrdinf + rrdnan;
27224     rrdc = rrdinf / rrdnan;
27225     if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
27226     if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
27227     if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
27228     if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
27229     if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
27230     if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
27231     return 0;
27232  }
27233 _ACEOF
27234 rm -f conftest$ac_exeext
27235 if { (ac_try="$ac_link"
27236 case "(($ac_try" in
27237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27238   *) ac_try_echo=$ac_try;;
27239 esac
27240 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27241 $as_echo "$ac_try_echo") >&5
27242   (eval "$ac_link") 2>&5
27243   ac_status=$?
27244   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27245   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27246   { (case "(($ac_try" in
27247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27248   *) ac_try_echo=$ac_try;;
27249 esac
27250 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27251 $as_echo "$ac_try_echo") >&5
27252   (eval "$ac_try") 2>&5
27253   ac_status=$?
27254   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27255   (exit $ac_status); }; }; then
27256   rd_cv_ieee_sigfpe=yes
27257 else
27258   $as_echo "$as_me: program exited with status $ac_status" >&5
27259 $as_echo "$as_me: failed program was:" >&5
27260 sed 's/^/| /' conftest.$ac_ext >&5
27262 ( exit $ac_status )
27263 rd_cv_ieee_sigfpe=no
27265 rm -rf conftest.dSYM
27266 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27272 if test x${rd_cv_ieee_sigfpe} = "xyes"; then
27273  { $as_echo "$as_me:$LINENO: result: yes" >&5
27274 $as_echo "yes" >&6; }
27275  cat >>confdefs.h <<\_ACEOF
27276 #define MUST_DISABLE_SIGFPE 1
27277 _ACEOF
27279                    PERLFLAGS="CCFLAGS=-DMUST_DISABLE_SIGFPE"
27280 else
27281  { $as_echo "$as_me:$LINENO: result: no" >&5
27282 $as_echo "no" >&6; }
27283  { { $as_echo "$as_me:$LINENO: error:
27284 Your Compiler does not do propper IEEE math ... Please find out how to
27285 make IEEE math work with your compiler and let me know (tobi@oetiker.ch).
27286 Check config.log to see what went wrong ...
27287 " >&5
27288 $as_echo "$as_me: error:
27289 Your Compiler does not do propper IEEE math ... Please find out how to
27290 make IEEE math work with your compiler and let me know (tobi@oetiker.ch).
27291 Check config.log to see what went wrong ...
27292 " >&2;}
27293    { (exit 1); exit 1; }; }
27325 ac_ext=c
27326 ac_cpp='$CPP $CPPFLAGS'
27327 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27328 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27329 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27335 case $TERM in
27336        #   for the most important terminal types we directly know the sequences
27337        xterm|xterm*|vt220|vt220*)
27338                T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
27339                T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
27340        ;;
27341        vt100|vt100*|cygwin)
27342                T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
27343                T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
27344        ;;
27345        *)
27346                T_MD=''
27347                T_ME=''
27348        ;;
27349 esac
27350   { $as_echo "$as_me:$LINENO: result: " >&5
27351 $as_echo "" >&6; }
27352   { $as_echo "$as_me:$LINENO: result: ${T_MD}Resolve Portability Issues${T_ME}" >&5
27353 $as_echo "${T_MD}Resolve Portability Issues${T_ME}" >&6; }
27357 { $as_echo "$as_me:$LINENO: checking if msync with MS_ASYNC updates the files mtime" >&5
27358 $as_echo_n "checking if msync with MS_ASYNC updates the files mtime... " >&6; }
27359 if test "${rd_cv_ms_async+set}" = set; then
27360   $as_echo_n "(cached) " >&6
27361 else
27362   if test "$cross_compiling" = yes; then
27363   :
27364 else
27365   cat >conftest.$ac_ext <<_ACEOF
27366 /* confdefs.h.  */
27367 _ACEOF
27368 cat confdefs.h >>conftest.$ac_ext
27369 cat >>conftest.$ac_ext <<_ACEOF
27370 /* end confdefs.h.  */
27372 #include <fcntl.h>
27373 #include <sys/types.h>
27374 #include <sys/stat.h>
27375 #include <unistd.h>
27376 #include <stdio.h>
27377 #include <sys/mman.h>
27378 #include <stdlib.h>
27379 #include <utime.h>
27380 #include <signal.h>
27381 void timeout (int i) { exit (1); }
27382 int main(void){
27383         int fd;
27384         struct stat stbuf;
27385         char *addr;
27386         int res;
27387         char temp[] = "mmaptestXXXXXX";
27388         struct utimbuf newtime;
27389         time_t create_ts;
27390         fd = mkstemp(temp);
27391         if (fd == -1){
27392             perror(temp);
27393             return 1;
27394         }
27395         write(fd,"12345\n", 6);
27396         stat(temp, &stbuf);
27397         create_ts = stbuf.st_mtime;
27398         newtime.actime = 0;
27399         newtime.modtime = 0;
27400         utime(temp,&newtime);
27401         addr = mmap(NULL, 4096, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0);
27402         if (addr == MAP_FAILED) {
27403             perror("mmap");
27404             goto bad_exit;
27405         }
27406         addr[0]='x';
27407         res = msync(addr, 4, MS_ASYNC);
27408         if (res == -1) {
27409            perror("msync");
27410            goto bad_exit;
27411         }
27412         res = close(fd);
27413         if (res == -1) {
27414            perror("close");
27415            goto bad_exit;
27416         }
27417         /* there were reports of sync hanging
27418            so we better set an alarm */
27419         signal(SIGALRM,&timeout);
27420         alarm(5);
27421         /* The ASYNC means that we schedule the msync and return immediately.
27422            Since we want to see if the modification time is updated upon
27423            msync(), we have to make sure that our asynchronous request
27424            completes before we stat below. In a real application, the
27425            request would be completed at a random time in the future
27426            but for this test we do not want to wait an arbitrary amount of
27427            time, so force a commit now.  */
27428         sync();
27429         stat(temp, &stbuf);
27430         if (create_ts > stbuf.st_mtime){
27431            goto bad_exit;
27432         }
27433         unlink(temp);
27434         return 0;
27435      bad_exit:
27436         unlink(temp);
27437         return 1;
27440 _ACEOF
27441 rm -f conftest$ac_exeext
27442 if { (ac_try="$ac_link"
27443 case "(($ac_try" in
27444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27445   *) ac_try_echo=$ac_try;;
27446 esac
27447 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27448 $as_echo "$ac_try_echo") >&5
27449   (eval "$ac_link") 2>&5
27450   ac_status=$?
27451   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27452   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27453   { (case "(($ac_try" in
27454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27455   *) ac_try_echo=$ac_try;;
27456 esac
27457 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27458 $as_echo "$ac_try_echo") >&5
27459   (eval "$ac_try") 2>&5
27460   ac_status=$?
27461   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27462   (exit $ac_status); }; }; then
27463   rd_cv_ms_async=ok
27464 else
27465   $as_echo "$as_me: program exited with status $ac_status" >&5
27466 $as_echo "$as_me: failed program was:" >&5
27467 sed 's/^/| /' conftest.$ac_ext >&5
27469 ( exit $ac_status )
27470 rd_cv_ms_async=broken
27472 rm -rf conftest.dSYM
27473 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27481 if test "${rd_cv_ms_async}" = "ok"; then
27482  { $as_echo "$as_me:$LINENO: result: yes" >&5
27483 $as_echo "yes" >&6; }
27484 else
27486 cat >>confdefs.h <<_ACEOF
27487 #define HAVE_BROKEN_MS_ASYNC 1
27488 _ACEOF
27490  { $as_echo "$as_me:$LINENO: result: no" >&5
27491 $as_echo "no" >&6; }
27492  { $as_echo "$as_me:$LINENO: WARNING: With mmap access, your platform fails to update the files" >&5
27493 $as_echo "$as_me: WARNING: With mmap access, your platform fails to update the files" >&2;}
27494  { $as_echo "$as_me:$LINENO: WARNING: mtime. RRDtool will work around this problem by calling utime on each" >&5
27495 $as_echo "$as_me: WARNING: mtime. RRDtool will work around this problem by calling utime on each" >&2;}
27496  { $as_echo "$as_me:$LINENO: WARNING: file it opens for rw access." >&5
27497 $as_echo "$as_me: WARNING: file it opens for rw access." >&2;}
27498  sleep 2
27504 for ac_func in _NL_TIME_WEEK_1STDAY
27506 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27507 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
27508 $as_echo_n "checking for $ac_func... " >&6; }
27509 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27510   $as_echo_n "(cached) " >&6
27511 else
27512   cat >conftest.$ac_ext <<_ACEOF
27513 /* confdefs.h.  */
27514 _ACEOF
27515 cat confdefs.h >>conftest.$ac_ext
27516 cat >>conftest.$ac_ext <<_ACEOF
27517 /* end confdefs.h.  */
27518 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27519    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27520 #define $ac_func innocuous_$ac_func
27522 /* System header to define __stub macros and hopefully few prototypes,
27523     which can conflict with char $ac_func (); below.
27524     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27525     <limits.h> exists even on freestanding compilers.  */
27527 #ifdef __STDC__
27528 # include <limits.h>
27529 #else
27530 # include <assert.h>
27531 #endif
27533 #undef $ac_func
27535 /* Override any GCC internal prototype to avoid an error.
27536    Use char because int might match the return type of a GCC
27537    builtin and then its argument prototype would still apply.  */
27538 #ifdef __cplusplus
27539 extern "C"
27540 #endif
27541 char $ac_func ();
27542 /* The GNU C library defines this for functions which it implements
27543     to always fail with ENOSYS.  Some functions are actually named
27544     something starting with __ and the normal name is an alias.  */
27545 #if defined __stub_$ac_func || defined __stub___$ac_func
27546 choke me
27547 #endif
27549 int
27550 main ()
27552 return $ac_func ();
27553   ;
27554   return 0;
27556 _ACEOF
27557 rm -f conftest.$ac_objext conftest$ac_exeext
27558 if { (ac_try="$ac_link"
27559 case "(($ac_try" in
27560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27561   *) ac_try_echo=$ac_try;;
27562 esac
27563 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27564 $as_echo "$ac_try_echo") >&5
27565   (eval "$ac_link") 2>conftest.er1
27566   ac_status=$?
27567   grep -v '^ *+' conftest.er1 >conftest.err
27568   rm -f conftest.er1
27569   cat conftest.err >&5
27570   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27571   (exit $ac_status); } && {
27572          test -z "$ac_c_werror_flag" ||
27573          test ! -s conftest.err
27574        } && test -s conftest$ac_exeext && {
27575          test "$cross_compiling" = yes ||
27576          $as_test_x conftest$ac_exeext
27577        }; then
27578   eval "$as_ac_var=yes"
27579 else
27580   $as_echo "$as_me: failed program was:" >&5
27581 sed 's/^/| /' conftest.$ac_ext >&5
27583         eval "$as_ac_var=no"
27586 rm -rf conftest.dSYM
27587 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27588       conftest$ac_exeext conftest.$ac_ext
27590 ac_res=`eval 'as_val=${'$as_ac_var'}
27591                  $as_echo "$as_val"'`
27592                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
27593 $as_echo "$ac_res" >&6; }
27594 as_val=`eval 'as_val=${'$as_ac_var'}
27595                  $as_echo "$as_val"'`
27596    if test "x$as_val" = x""yes; then
27597   cat >>confdefs.h <<_ACEOF
27598 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27599 _ACEOF
27601 else
27602   { $as_echo "$as_me:$LINENO: checking for nl_langinfo(_NL_TIME_WEEK_1STDAY) with langinfo.h" >&5
27603 $as_echo_n "checking for nl_langinfo(_NL_TIME_WEEK_1STDAY) with langinfo.h... " >&6; }
27604     cat >conftest.$ac_ext <<_ACEOF
27605 /* confdefs.h.  */
27606 _ACEOF
27607 cat confdefs.h >>conftest.$ac_ext
27608 cat >>conftest.$ac_ext <<_ACEOF
27609 /* end confdefs.h.  */
27610 #include <langinfo.h>
27611 int
27612 main ()
27614 nl_langinfo(_NL_TIME_WEEK_1STDAY)
27615   ;
27616   return 0;
27618 _ACEOF
27619 rm -f conftest.$ac_objext conftest$ac_exeext
27620 if { (ac_try="$ac_link"
27621 case "(($ac_try" in
27622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27623   *) ac_try_echo=$ac_try;;
27624 esac
27625 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27626 $as_echo "$ac_try_echo") >&5
27627   (eval "$ac_link") 2>conftest.er1
27628   ac_status=$?
27629   grep -v '^ *+' conftest.er1 >conftest.err
27630   rm -f conftest.er1
27631   cat conftest.err >&5
27632   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27633   (exit $ac_status); } && {
27634          test -z "$ac_c_werror_flag" ||
27635          test ! -s conftest.err
27636        } && test -s conftest$ac_exeext && {
27637          test "$cross_compiling" = yes ||
27638          $as_test_x conftest$ac_exeext
27639        }; then
27640   { $as_echo "$as_me:$LINENO: result: yes" >&5
27641 $as_echo "yes" >&6; }
27642       cat >>confdefs.h <<\_ACEOF
27643 #define HAVE__NL_TIME_WEEK_1STDAY 1
27644 _ACEOF
27646 else
27647   $as_echo "$as_me: failed program was:" >&5
27648 sed 's/^/| /' conftest.$ac_ext >&5
27650         { $as_echo "$as_me:$LINENO: result: no" >&5
27651 $as_echo "no" >&6; }
27654 rm -rf conftest.dSYM
27655 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27656       conftest$ac_exeext conftest.$ac_ext
27658 done
27663 { $as_echo "$as_me:$LINENO: checking for opterr" >&5
27664 $as_echo_n "checking for opterr... " >&6; }
27665 if test "${rd_cv_var_int_opterr+set}" = set; then
27666   $as_echo_n "(cached) " >&6
27667 else
27668   cat >conftest.$ac_ext <<_ACEOF
27669 /* confdefs.h.  */
27670 _ACEOF
27671 cat confdefs.h >>conftest.$ac_ext
27672 cat >>conftest.$ac_ext <<_ACEOF
27673 /* end confdefs.h.  */
27674 #include <unistd.h>
27675 int
27676 main ()
27678 extern int opterr; opterr = 1;
27679   ;
27680   return 0;
27682 _ACEOF
27683 rm -f conftest.$ac_objext conftest$ac_exeext
27684 if { (ac_try="$ac_link"
27685 case "(($ac_try" in
27686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27687   *) ac_try_echo=$ac_try;;
27688 esac
27689 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27690 $as_echo "$ac_try_echo") >&5
27691   (eval "$ac_link") 2>conftest.er1
27692   ac_status=$?
27693   grep -v '^ *+' conftest.er1 >conftest.err
27694   rm -f conftest.er1
27695   cat conftest.err >&5
27696   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27697   (exit $ac_status); } && {
27698          test -z "$ac_c_werror_flag" ||
27699          test ! -s conftest.err
27700        } && test -s conftest$ac_exeext && {
27701          test "$cross_compiling" = yes ||
27702          $as_test_x conftest$ac_exeext
27703        }; then
27704   rd_cv_var_int_opterr=yes
27705 else
27706   $as_echo "$as_me: failed program was:" >&5
27707 sed 's/^/| /' conftest.$ac_ext >&5
27709         rd_cv_var_int_opterr=no
27712 rm -rf conftest.dSYM
27713 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27714       conftest$ac_exeext conftest.$ac_ext
27716 { $as_echo "$as_me:$LINENO: result: $rd_cv_var_int_opterr" >&5
27717 $as_echo "$rd_cv_var_int_opterr" >&6; }
27718 if test x"$rd_cv_var_int_opterr" = x"yes"; then
27720 cat >>confdefs.h <<\_ACEOF
27721 #define HAVE_INT_OPTERR 1
27722 _ACEOF
27726 build_getopt=no
27727 RRD_GETOPT_LONG="LIBC_HAS_GETOPT_LONG"
27728 { $as_echo "$as_me:$LINENO: checking for getopt_long" >&5
27729 $as_echo_n "checking for getopt_long... " >&6; }
27730 if test "${ac_cv_func_getopt_long+set}" = set; then
27731   $as_echo_n "(cached) " >&6
27732 else
27733   cat >conftest.$ac_ext <<_ACEOF
27734 /* confdefs.h.  */
27735 _ACEOF
27736 cat confdefs.h >>conftest.$ac_ext
27737 cat >>conftest.$ac_ext <<_ACEOF
27738 /* end confdefs.h.  */
27739 /* Define getopt_long to an innocuous variant, in case <limits.h> declares getopt_long.
27740    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27741 #define getopt_long innocuous_getopt_long
27743 /* System header to define __stub macros and hopefully few prototypes,
27744     which can conflict with char getopt_long (); below.
27745     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27746     <limits.h> exists even on freestanding compilers.  */
27748 #ifdef __STDC__
27749 # include <limits.h>
27750 #else
27751 # include <assert.h>
27752 #endif
27754 #undef getopt_long
27756 /* Override any GCC internal prototype to avoid an error.
27757    Use char because int might match the return type of a GCC
27758    builtin and then its argument prototype would still apply.  */
27759 #ifdef __cplusplus
27760 extern "C"
27761 #endif
27762 char getopt_long ();
27763 /* The GNU C library defines this for functions which it implements
27764     to always fail with ENOSYS.  Some functions are actually named
27765     something starting with __ and the normal name is an alias.  */
27766 #if defined __stub_getopt_long || defined __stub___getopt_long
27767 choke me
27768 #endif
27770 int
27771 main ()
27773 return getopt_long ();
27774   ;
27775   return 0;
27777 _ACEOF
27778 rm -f conftest.$ac_objext conftest$ac_exeext
27779 if { (ac_try="$ac_link"
27780 case "(($ac_try" in
27781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27782   *) ac_try_echo=$ac_try;;
27783 esac
27784 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27785 $as_echo "$ac_try_echo") >&5
27786   (eval "$ac_link") 2>conftest.er1
27787   ac_status=$?
27788   grep -v '^ *+' conftest.er1 >conftest.err
27789   rm -f conftest.er1
27790   cat conftest.err >&5
27791   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27792   (exit $ac_status); } && {
27793          test -z "$ac_c_werror_flag" ||
27794          test ! -s conftest.err
27795        } && test -s conftest$ac_exeext && {
27796          test "$cross_compiling" = yes ||
27797          $as_test_x conftest$ac_exeext
27798        }; then
27799   ac_cv_func_getopt_long=yes
27800 else
27801   $as_echo "$as_me: failed program was:" >&5
27802 sed 's/^/| /' conftest.$ac_ext >&5
27804         ac_cv_func_getopt_long=no
27807 rm -rf conftest.dSYM
27808 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27809       conftest$ac_exeext conftest.$ac_ext
27811 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getopt_long" >&5
27812 $as_echo "$ac_cv_func_getopt_long" >&6; }
27813 if test "x$ac_cv_func_getopt_long" = x""yes; then
27814   :
27815 else
27817 RRD_GETOPT_LONG="getopt_long"
27818 build_getopt=yes
27823  if test $build_getopt = yes; then
27824   BUILD_GETOPT_TRUE=
27825   BUILD_GETOPT_FALSE='#'
27826 else
27827   BUILD_GETOPT_TRUE='#'
27828   BUILD_GETOPT_FALSE=
27833 { $as_echo "$as_me:$LINENO: checking if realloc can deal with NULL" >&5
27834 $as_echo_n "checking if realloc can deal with NULL... " >&6; }
27835 if test "${rd_cv_null_realloc+set}" = set; then
27836   $as_echo_n "(cached) " >&6
27837 else
27838   if test "$cross_compiling" = yes; then
27839   :
27840 else
27841   cat >conftest.$ac_ext <<_ACEOF
27842 /* confdefs.h.  */
27843 _ACEOF
27844 cat confdefs.h >>conftest.$ac_ext
27845 cat >>conftest.$ac_ext <<_ACEOF
27846 /* end confdefs.h.  */
27847 #include <stdlib.h>
27848               int main(void){
27849               char *x = NULL;
27850               x = realloc (x,10);
27851               if (x==NULL) return 1;
27852               return 0;
27853              }
27854 _ACEOF
27855 rm -f conftest$ac_exeext
27856 if { (ac_try="$ac_link"
27857 case "(($ac_try" in
27858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27859   *) ac_try_echo=$ac_try;;
27860 esac
27861 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27862 $as_echo "$ac_try_echo") >&5
27863   (eval "$ac_link") 2>&5
27864   ac_status=$?
27865   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27866   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27867   { (case "(($ac_try" in
27868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27869   *) ac_try_echo=$ac_try;;
27870 esac
27871 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27872 $as_echo "$ac_try_echo") >&5
27873   (eval "$ac_try") 2>&5
27874   ac_status=$?
27875   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27876   (exit $ac_status); }; }; then
27877   rd_cv_null_realloc=yes
27878 else
27879   $as_echo "$as_me: program exited with status $ac_status" >&5
27880 $as_echo "$as_me: failed program was:" >&5
27881 sed 's/^/| /' conftest.$ac_ext >&5
27883 ( exit $ac_status )
27884 rd_cv_null_realloc=nope
27886 rm -rf conftest.dSYM
27887 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27892 { $as_echo "$as_me:$LINENO: result: $rd_cv_null_realloc" >&5
27893 $as_echo "$rd_cv_null_realloc" >&6; }
27895 if test x"$rd_cv_null_realloc" = xnope; then
27896 cat >>confdefs.h <<\_ACEOF
27897 #define NO_NULL_REALLOC 1
27898 _ACEOF
27902 ac_ext=c
27903 ac_cpp='$CPP $CPPFLAGS'
27904 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27905 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27906 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27908 { $as_echo "$as_me:$LINENO: checking if ctime_r need special care to act posixly correct" >&5
27909 $as_echo_n "checking if ctime_r need special care to act posixly correct... " >&6; }
27910 cat >conftest.$ac_ext <<_ACEOF
27911 /* confdefs.h.  */
27912 _ACEOF
27913 cat confdefs.h >>conftest.$ac_ext
27914 cat >>conftest.$ac_ext <<_ACEOF
27915 /* end confdefs.h.  */
27916 #include <time.h>
27917 int
27918 main ()
27920 ctime_r(NULL,NULL,0)
27922   ;
27923   return 0;
27925 _ACEOF
27926 rm -f conftest.$ac_objext conftest$ac_exeext
27927 if { (ac_try="$ac_link"
27928 case "(($ac_try" in
27929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27930   *) ac_try_echo=$ac_try;;
27931 esac
27932 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27933 $as_echo "$ac_try_echo") >&5
27934   (eval "$ac_link") 2>conftest.er1
27935   ac_status=$?
27936   grep -v '^ *+' conftest.er1 >conftest.err
27937   rm -f conftest.er1
27938   cat conftest.err >&5
27939   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27940   (exit $ac_status); } && {
27941          test -z "$ac_c_werror_flag" ||
27942          test ! -s conftest.err
27943        } && test -s conftest$ac_exeext && {
27944          test "$cross_compiling" = yes ||
27945          $as_test_x conftest$ac_exeext
27946        }; then
27947    CPPFLAGS="$CPPFLAGS -D_POSIX_PTHREAD_SEMANTICS"
27948       cat >conftest.$ac_ext <<_ACEOF
27949 /* confdefs.h.  */
27950 _ACEOF
27951 cat confdefs.h >>conftest.$ac_ext
27952 cat >>conftest.$ac_ext <<_ACEOF
27953 /* end confdefs.h.  */
27954 #include <time.h>
27955 int
27956 main ()
27958 ctime_r(NULL,NULL)
27960   ;
27961   return 0;
27963 _ACEOF
27964 rm -f conftest.$ac_objext conftest$ac_exeext
27965 if { (ac_try="$ac_link"
27966 case "(($ac_try" in
27967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27968   *) ac_try_echo=$ac_try;;
27969 esac
27970 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27971 $as_echo "$ac_try_echo") >&5
27972   (eval "$ac_link") 2>conftest.er1
27973   ac_status=$?
27974   grep -v '^ *+' conftest.er1 >conftest.err
27975   rm -f conftest.er1
27976   cat conftest.err >&5
27977   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27978   (exit $ac_status); } && {
27979          test -z "$ac_c_werror_flag" ||
27980          test ! -s conftest.err
27981        } && test -s conftest$ac_exeext && {
27982          test "$cross_compiling" = yes ||
27983          $as_test_x conftest$ac_exeext
27984        }; then
27985   { $as_echo "$as_me:$LINENO: result: yes, this seems to be solaris style" >&5
27986 $as_echo "yes, this seems to be solaris style" >&6; }
27987 else
27988   $as_echo "$as_me: failed program was:" >&5
27989 sed 's/^/| /' conftest.$ac_ext >&5
27991         { { $as_echo "$as_me:$LINENO: error: Can't figure how to compile ctime_r" >&5
27992 $as_echo "$as_me: error: Can't figure how to compile ctime_r" >&2;}
27993    { (exit 1); exit 1; }; }
27997 rm -rf conftest.dSYM
27998 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27999       conftest$ac_exeext conftest.$ac_ext
28001 else
28002   $as_echo "$as_me: failed program was:" >&5
28003 sed 's/^/| /' conftest.$ac_ext >&5
28005          cat >conftest.$ac_ext <<_ACEOF
28006 /* confdefs.h.  */
28007 _ACEOF
28008 cat confdefs.h >>conftest.$ac_ext
28009 cat >>conftest.$ac_ext <<_ACEOF
28010 /* end confdefs.h.  */
28011 #include <time.h>
28012 int
28013 main ()
28015 ctime_r(NULL,NULL)
28017   ;
28018   return 0;
28020 _ACEOF
28021 rm -f conftest.$ac_objext conftest$ac_exeext
28022 if { (ac_try="$ac_link"
28023 case "(($ac_try" in
28024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28025   *) ac_try_echo=$ac_try;;
28026 esac
28027 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28028 $as_echo "$ac_try_echo") >&5
28029   (eval "$ac_link") 2>conftest.er1
28030   ac_status=$?
28031   grep -v '^ *+' conftest.er1 >conftest.err
28032   rm -f conftest.er1
28033   cat conftest.err >&5
28034   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28035   (exit $ac_status); } && {
28036          test -z "$ac_c_werror_flag" ||
28037          test ! -s conftest.err
28038        } && test -s conftest$ac_exeext && {
28039          test "$cross_compiling" = yes ||
28040          $as_test_x conftest$ac_exeext
28041        }; then
28042   { $as_echo "$as_me:$LINENO: result: no" >&5
28043 $as_echo "no" >&6; }
28044 else
28045   $as_echo "$as_me: failed program was:" >&5
28046 sed 's/^/| /' conftest.$ac_ext >&5
28048         { { $as_echo "$as_me:$LINENO: error: Can't figure how to compile ctime_r" >&5
28049 $as_echo "$as_me: error: Can't figure how to compile ctime_r" >&2;}
28050    { (exit 1); exit 1; }; }
28054 rm -rf conftest.dSYM
28055 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28056       conftest$ac_exeext conftest.$ac_ext
28061 rm -rf conftest.dSYM
28062 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28063       conftest$ac_exeext conftest.$ac_ext
28064 ac_ext=c
28065 ac_cpp='$CPP $CPPFLAGS'
28066 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28067 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28068 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28075 if test $enable_pthread != no; then
28078 ac_ext=c
28079 ac_cpp='$CPP $CPPFLAGS'
28080 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28081 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28082 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28084 acx_pthread_ok=no
28086 # We used to check for pthread.h first, but this fails if pthread.h
28087 # requires special compiler flags (e.g. on True64 or Sequent).
28088 # It gets checked for in the link test anyway.
28090 # First of all, check if the user has set any of the PTHREAD_LIBS,
28091 # etcetera environment variables, and if threads linking works using
28092 # them:
28093 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
28094         save_CFLAGS="$CFLAGS"
28095         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
28096         save_LIBS="$LIBS"
28097         LIBS="$PTHREAD_LIBS $LIBS"
28098         { $as_echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
28099 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
28100         cat >conftest.$ac_ext <<_ACEOF
28101 /* confdefs.h.  */
28102 _ACEOF
28103 cat confdefs.h >>conftest.$ac_ext
28104 cat >>conftest.$ac_ext <<_ACEOF
28105 /* end confdefs.h.  */
28107 /* Override any GCC internal prototype to avoid an error.
28108    Use char because int might match the return type of a GCC
28109    builtin and then its argument prototype would still apply.  */
28110 #ifdef __cplusplus
28111 extern "C"
28112 #endif
28113 char pthread_join ();
28114 int
28115 main ()
28117 return pthread_join ();
28118   ;
28119   return 0;
28121 _ACEOF
28122 rm -f conftest.$ac_objext conftest$ac_exeext
28123 if { (ac_try="$ac_link"
28124 case "(($ac_try" in
28125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28126   *) ac_try_echo=$ac_try;;
28127 esac
28128 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28129 $as_echo "$ac_try_echo") >&5
28130   (eval "$ac_link") 2>conftest.er1
28131   ac_status=$?
28132   grep -v '^ *+' conftest.er1 >conftest.err
28133   rm -f conftest.er1
28134   cat conftest.err >&5
28135   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28136   (exit $ac_status); } && {
28137          test -z "$ac_c_werror_flag" ||
28138          test ! -s conftest.err
28139        } && test -s conftest$ac_exeext && {
28140          test "$cross_compiling" = yes ||
28141          $as_test_x conftest$ac_exeext
28142        }; then
28143   acx_pthread_ok=yes
28144 else
28145   $as_echo "$as_me: failed program was:" >&5
28146 sed 's/^/| /' conftest.$ac_ext >&5
28151 rm -rf conftest.dSYM
28152 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28153       conftest$ac_exeext conftest.$ac_ext
28154         { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
28155 $as_echo "$acx_pthread_ok" >&6; }
28156         if test x"$acx_pthread_ok" = xno; then
28157                 PTHREAD_LIBS=""
28158                 PTHREAD_CFLAGS=""
28159         fi
28160         LIBS="$save_LIBS"
28161         CFLAGS="$save_CFLAGS"
28164 # We must check for the threads library under a number of different
28165 # names; the ordering is very important because some systems
28166 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
28167 # libraries is broken (non-POSIX).
28169 # Create a list of thread flags to try.  Items starting with a "-" are
28170 # C compiler flags, and other items are library names, except for "none"
28171 # which indicates that we try without any flags at all, and "pthread-config"
28172 # which is a program returning the flags for the Pth emulation library.
28174 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
28176 # The ordering *is* (sometimes) important.  Some notes on the
28177 # individual items follow:
28179 # pthreads: AIX (must check this before -lpthread)
28180 # none: in case threads are in libc; should be tried before -Kthread and
28181 #       other compiler flags to prevent continual compiler warnings
28182 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
28183 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
28184 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
28185 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
28186 # -pthreads: Solaris/gcc
28187 # -mthreads: Mingw32/gcc, Lynx/gcc
28188 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
28189 #      doesn't hurt to check since this sometimes defines pthreads too;
28190 #      also defines -D_REENTRANT)
28191 # pthread: Linux, etcetera
28192 # --thread-safe: KAI C++
28193 # pthread-config: use pthread-config program (for GNU Pth library)
28195 case "${host_cpu}-${host_os}" in
28196         *solaris*)
28198         # On Solaris (at least, for some versions), libc contains stubbed
28199         # (non-functional) versions of the pthreads routines, so link-based
28200         # tests will erroneously succeed.  (We need to link with -pthread or
28201         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
28202         # a function called by this macro, so we could check for that, but
28203         # who knows whether they'll stub that too in a future libc.)  So,
28204         # we'll just look for -pthreads and -lpthread first:
28206         acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
28207         ;;
28208 esac
28210 if test x"$acx_pthread_ok" = xno; then
28211 for flag in $acx_pthread_flags; do
28213         case $flag in
28214                 none)
28215                 { $as_echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
28216 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
28217                 ;;
28219                 -*)
28220                 { $as_echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
28221 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
28222                 PTHREAD_CFLAGS="$flag"
28223                 ;;
28225                 pthread-config)
28226                 # Extract the first word of "pthread-config", so it can be a program name with args.
28227 set dummy pthread-config; ac_word=$2
28228 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28229 $as_echo_n "checking for $ac_word... " >&6; }
28230 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
28231   $as_echo_n "(cached) " >&6
28232 else
28233   if test -n "$acx_pthread_config"; then
28234   ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
28235 else
28236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28237 for as_dir in $PATH
28239   IFS=$as_save_IFS
28240   test -z "$as_dir" && as_dir=.
28241   for ac_exec_ext in '' $ac_executable_extensions; do
28242   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28243     ac_cv_prog_acx_pthread_config="yes"
28244     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28245     break 2
28246   fi
28247 done
28248 done
28249 IFS=$as_save_IFS
28251   test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
28254 acx_pthread_config=$ac_cv_prog_acx_pthread_config
28255 if test -n "$acx_pthread_config"; then
28256   { $as_echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
28257 $as_echo "$acx_pthread_config" >&6; }
28258 else
28259   { $as_echo "$as_me:$LINENO: result: no" >&5
28260 $as_echo "no" >&6; }
28264                 if test x"$acx_pthread_config" = xno; then continue; fi
28265                 PTHREAD_CFLAGS="`pthread-config --cflags`"
28266                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
28267                 ;;
28269                 *)
28270                 { $as_echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
28271 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
28272                 PTHREAD_LIBS="-l$flag"
28273                 ;;
28274         esac
28276         save_LIBS="$LIBS"
28277         save_CFLAGS="$CFLAGS"
28278         LIBS="$PTHREAD_LIBS $LIBS"
28279         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
28281         # Check for various functions.  We must include pthread.h,
28282         # since some functions may be macros.  (On the Sequent, we
28283         # need a special flag -Kthread to make this header compile.)
28284         # We check for pthread_join because it is in -lpthread on IRIX
28285         # while pthread_create is in libc.  We check for pthread_attr_init
28286         # due to DEC craziness with -lpthreads.  We check for
28287         # pthread_cleanup_push because it is one of the few pthread
28288         # functions on Solaris that doesn't have a non-functional libc stub.
28289         # We try pthread_create on general principles.
28290         cat >conftest.$ac_ext <<_ACEOF
28291 /* confdefs.h.  */
28292 _ACEOF
28293 cat confdefs.h >>conftest.$ac_ext
28294 cat >>conftest.$ac_ext <<_ACEOF
28295 /* end confdefs.h.  */
28296 #include <pthread.h>
28297 int
28298 main ()
28300 pthread_t th; pthread_join(th, 0);
28301                      pthread_attr_init(0); pthread_cleanup_push(0, 0);
28302                      pthread_create(0,0,0,0); pthread_cleanup_pop(0);
28303   ;
28304   return 0;
28306 _ACEOF
28307 rm -f conftest.$ac_objext conftest$ac_exeext
28308 if { (ac_try="$ac_link"
28309 case "(($ac_try" in
28310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28311   *) ac_try_echo=$ac_try;;
28312 esac
28313 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28314 $as_echo "$ac_try_echo") >&5
28315   (eval "$ac_link") 2>conftest.er1
28316   ac_status=$?
28317   grep -v '^ *+' conftest.er1 >conftest.err
28318   rm -f conftest.er1
28319   cat conftest.err >&5
28320   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28321   (exit $ac_status); } && {
28322          test -z "$ac_c_werror_flag" ||
28323          test ! -s conftest.err
28324        } && test -s conftest$ac_exeext && {
28325          test "$cross_compiling" = yes ||
28326          $as_test_x conftest$ac_exeext
28327        }; then
28328   acx_pthread_ok=yes
28329 else
28330   $as_echo "$as_me: failed program was:" >&5
28331 sed 's/^/| /' conftest.$ac_ext >&5
28336 rm -rf conftest.dSYM
28337 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28338       conftest$ac_exeext conftest.$ac_ext
28340         LIBS="$save_LIBS"
28341         CFLAGS="$save_CFLAGS"
28343         { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
28344 $as_echo "$acx_pthread_ok" >&6; }
28345         if test "x$acx_pthread_ok" = xyes; then
28346                 break;
28347         fi
28349         PTHREAD_LIBS=""
28350         PTHREAD_CFLAGS=""
28351 done
28354 # Various other checks:
28355 if test "x$acx_pthread_ok" = xyes; then
28356         save_LIBS="$LIBS"
28357         LIBS="$PTHREAD_LIBS $LIBS"
28358         save_CFLAGS="$CFLAGS"
28359         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
28361         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
28362         { $as_echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
28363 $as_echo_n "checking for joinable pthread attribute... " >&6; }
28364         attr_name=unknown
28365         for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
28366             cat >conftest.$ac_ext <<_ACEOF
28367 /* confdefs.h.  */
28368 _ACEOF
28369 cat confdefs.h >>conftest.$ac_ext
28370 cat >>conftest.$ac_ext <<_ACEOF
28371 /* end confdefs.h.  */
28372 #include <pthread.h>
28373 int
28374 main ()
28376 int attr=$attr;
28377   ;
28378   return 0;
28380 _ACEOF
28381 rm -f conftest.$ac_objext conftest$ac_exeext
28382 if { (ac_try="$ac_link"
28383 case "(($ac_try" in
28384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28385   *) ac_try_echo=$ac_try;;
28386 esac
28387 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28388 $as_echo "$ac_try_echo") >&5
28389   (eval "$ac_link") 2>conftest.er1
28390   ac_status=$?
28391   grep -v '^ *+' conftest.er1 >conftest.err
28392   rm -f conftest.er1
28393   cat conftest.err >&5
28394   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28395   (exit $ac_status); } && {
28396          test -z "$ac_c_werror_flag" ||
28397          test ! -s conftest.err
28398        } && test -s conftest$ac_exeext && {
28399          test "$cross_compiling" = yes ||
28400          $as_test_x conftest$ac_exeext
28401        }; then
28402   attr_name=$attr; break
28403 else
28404   $as_echo "$as_me: failed program was:" >&5
28405 sed 's/^/| /' conftest.$ac_ext >&5
28410 rm -rf conftest.dSYM
28411 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28412       conftest$ac_exeext conftest.$ac_ext
28413         done
28414         { $as_echo "$as_me:$LINENO: result: $attr_name" >&5
28415 $as_echo "$attr_name" >&6; }
28416         if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
28418 cat >>confdefs.h <<_ACEOF
28419 #define PTHREAD_CREATE_JOINABLE $attr_name
28420 _ACEOF
28422         fi
28424         { $as_echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
28425 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
28426         x_rflag=no
28427         case "${host_cpu}-${host_os}" in
28428             *-aix* | *-freebsd* | *-darwin*) x_rflag="-D_THREAD_SAFE";;
28429             *solaris* | *-osf* | *-hpux*) x_rflag="-D_REENTRANT";;
28430             *-linux* | *-k*bsd*-gnu*)
28431             if test x"$PTHREAD_CFLAGS" = "x-pthread"; then
28432                 # For Linux/gcc "-pthread" implies "-lpthread". We need, however, to make this explicit
28433                 # in PTHREAD_LIBS such that a shared library to be built properly depends on libpthread.
28434                 PTHREAD_LIBS="-lpthread $PTHREAD_LIBS"
28435             fi;;
28436         esac
28437         { $as_echo "$as_me:$LINENO: result: ${x_rflag}" >&5
28438 $as_echo "${x_rflag}" >&6; }
28439         if test "x$x_rflag" != xno; then
28440             PTHREAD_CFLAGS="$x_rflag $PTHREAD_CFLAGS"
28441         fi
28443         LIBS="$save_LIBS"
28444         CFLAGS="$save_CFLAGS"
28446         # More AIX lossage: must compile with cc_r
28447         # Extract the first word of "cc_r", so it can be a program name with args.
28448 set dummy cc_r; ac_word=$2
28449 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28450 $as_echo_n "checking for $ac_word... " >&6; }
28451 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
28452   $as_echo_n "(cached) " >&6
28453 else
28454   if test -n "$PTHREAD_CC"; then
28455   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
28456 else
28457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28458 for as_dir in $PATH
28460   IFS=$as_save_IFS
28461   test -z "$as_dir" && as_dir=.
28462   for ac_exec_ext in '' $ac_executable_extensions; do
28463   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28464     ac_cv_prog_PTHREAD_CC="cc_r"
28465     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28466     break 2
28467   fi
28468 done
28469 done
28470 IFS=$as_save_IFS
28472   test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
28475 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
28476 if test -n "$PTHREAD_CC"; then
28477   { $as_echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
28478 $as_echo "$PTHREAD_CC" >&6; }
28479 else
28480   { $as_echo "$as_me:$LINENO: result: no" >&5
28481 $as_echo "no" >&6; }
28485 else
28486         PTHREAD_CC="$CC"
28493 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
28494 if test x"$acx_pthread_ok" = xyes; then
28496     MULTITHREAD_CFLAGS=$PTHREAD_CFLAGS
28497     MULTITHREAD_LDFLAGS=$PTHREAD_LIBS
28499         :
28500 else
28501         acx_pthread_ok=no
28504 ac_ext=c
28505 ac_cpp='$CPP $CPPFLAGS'
28506 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28507 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28508 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28514 if test  "x$x_rflag" != "xno"; then
28515    CPPFLAGS="$CPPFLAGS $x_rflag"
28518  if test $enable_pthread != no; then
28519   BUILD_MULTITHREAD_TRUE=
28520   BUILD_MULTITHREAD_FALSE='#'
28521 else
28522   BUILD_MULTITHREAD_TRUE='#'
28523   BUILD_MULTITHREAD_FALSE=
28527 ac_ext=c
28528 ac_cpp='$CPP $CPPFLAGS'
28529 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28530 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28531 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28533 { $as_echo "$as_me:$LINENO: checking do we need malloc/malloc.h" >&5
28534 $as_echo_n "checking do we need malloc/malloc.h... " >&6; }
28535 cat >conftest.$ac_ext <<_ACEOF
28536 /* confdefs.h.  */
28537 _ACEOF
28538 cat confdefs.h >>conftest.$ac_ext
28539 cat >>conftest.$ac_ext <<_ACEOF
28540 /* end confdefs.h.  */
28541 #include <stdlib.h>
28542 int
28543 main ()
28545 malloc(1)
28547   ;
28548   return 0;
28550 _ACEOF
28551 rm -f conftest.$ac_objext conftest$ac_exeext
28552 if { (ac_try="$ac_link"
28553 case "(($ac_try" in
28554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28555   *) ac_try_echo=$ac_try;;
28556 esac
28557 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28558 $as_echo "$ac_try_echo") >&5
28559   (eval "$ac_link") 2>conftest.er1
28560   ac_status=$?
28561   grep -v '^ *+' conftest.er1 >conftest.err
28562   rm -f conftest.er1
28563   cat conftest.err >&5
28564   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28565   (exit $ac_status); } && {
28566          test -z "$ac_c_werror_flag" ||
28567          test ! -s conftest.err
28568        } && test -s conftest$ac_exeext && {
28569          test "$cross_compiling" = yes ||
28570          $as_test_x conftest$ac_exeext
28571        }; then
28572    { $as_echo "$as_me:$LINENO: result: nope, works out of the box" >&5
28573 $as_echo "nope, works out of the box" >&6; }
28574 else
28575   $as_echo "$as_me: failed program was:" >&5
28576 sed 's/^/| /' conftest.$ac_ext >&5
28578          cat >conftest.$ac_ext <<_ACEOF
28579 /* confdefs.h.  */
28580 _ACEOF
28581 cat confdefs.h >>conftest.$ac_ext
28582 cat >>conftest.$ac_ext <<_ACEOF
28583 /* end confdefs.h.  */
28584 #include <stdlib.h>
28585                   #include <malloc/malloc.h>
28586 int
28587 main ()
28589 malloc(1)
28591   ;
28592   return 0;
28594 _ACEOF
28595 rm -f conftest.$ac_objext conftest$ac_exeext
28596 if { (ac_try="$ac_link"
28597 case "(($ac_try" in
28598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28599   *) ac_try_echo=$ac_try;;
28600 esac
28601 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28602 $as_echo "$ac_try_echo") >&5
28603   (eval "$ac_link") 2>conftest.er1
28604   ac_status=$?
28605   grep -v '^ *+' conftest.er1 >conftest.err
28606   rm -f conftest.er1
28607   cat conftest.err >&5
28608   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28609   (exit $ac_status); } && {
28610          test -z "$ac_c_werror_flag" ||
28611          test ! -s conftest.err
28612        } && test -s conftest$ac_exeext && {
28613          test "$cross_compiling" = yes ||
28614          $as_test_x conftest$ac_exeext
28615        }; then
28617            cat >>confdefs.h <<\_ACEOF
28618 #define MUST_HAVE_MALLOC_MALLOC_H 1
28619 _ACEOF
28621            { $as_echo "$as_me:$LINENO: result: yes we do" >&5
28622 $as_echo "yes we do" >&6; }
28623 else
28624   $as_echo "$as_me: failed program was:" >&5
28625 sed 's/^/| /' conftest.$ac_ext >&5
28627         { { $as_echo "$as_me:$LINENO: error: Can not figure how to compile malloc" >&5
28628 $as_echo "$as_me: error: Can not figure how to compile malloc" >&2;}
28629    { (exit 1); exit 1; }; }
28633 rm -rf conftest.dSYM
28634 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28635       conftest$ac_exeext conftest.$ac_ext
28640 rm -rf conftest.dSYM
28641 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28642       conftest$ac_exeext conftest.$ac_ext
28645 cat >>confdefs.h <<\_ACEOF
28646 #define TIME_T_IS_32BIT /**/
28647 _ACEOF
28650 cat >>confdefs.h <<\_ACEOF
28651 #define TIME_T_IS_64BIT /**/
28652 _ACEOF
28654 { $as_echo "$as_me:$LINENO: checking the type of time_t" >&5
28655 $as_echo_n "checking the type of time_t... " >&6; }
28656 if test "$cross_compiling" = yes; then
28657   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
28658 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28659 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
28660 See \`config.log' for more details." >&5
28661 $as_echo "$as_me: error: cannot run test program while cross compiling
28662 See \`config.log' for more details." >&2;}
28663    { (exit 1); exit 1; }; }; }
28664 else
28665   cat >conftest.$ac_ext <<_ACEOF
28666 /* confdefs.h.  */
28667 _ACEOF
28668 cat confdefs.h >>conftest.$ac_ext
28669 cat >>conftest.$ac_ext <<_ACEOF
28670 /* end confdefs.h.  */
28671 #include <time.h>
28672 int
28673 main ()
28675 if (sizeof(time_t) != 4) return 1;
28677   ;
28678   return 0;
28680 _ACEOF
28681 rm -f conftest$ac_exeext
28682 if { (ac_try="$ac_link"
28683 case "(($ac_try" in
28684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28685   *) ac_try_echo=$ac_try;;
28686 esac
28687 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28688 $as_echo "$ac_try_echo") >&5
28689   (eval "$ac_link") 2>&5
28690   ac_status=$?
28691   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28692   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28693   { (case "(($ac_try" in
28694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28695   *) ac_try_echo=$ac_try;;
28696 esac
28697 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28698 $as_echo "$ac_try_echo") >&5
28699   (eval "$ac_try") 2>&5
28700   ac_status=$?
28701   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28702   (exit $ac_status); }; }; then
28703    { $as_echo "$as_me:$LINENO: result: time_t is 32 bit" >&5
28704 $as_echo "time_t is 32 bit" >&6; }
28705       cat >>confdefs.h <<\_ACEOF
28706 #define TIME_T_IS_32BIT 1
28707 _ACEOF
28710 else
28711   $as_echo "$as_me: program exited with status $ac_status" >&5
28712 $as_echo "$as_me: failed program was:" >&5
28713 sed 's/^/| /' conftest.$ac_ext >&5
28715 ( exit $ac_status )
28716  if test "$cross_compiling" = yes; then
28717   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
28718 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28719 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
28720 See \`config.log' for more details." >&5
28721 $as_echo "$as_me: error: cannot run test program while cross compiling
28722 See \`config.log' for more details." >&2;}
28723    { (exit 1); exit 1; }; }; }
28724 else
28725   cat >conftest.$ac_ext <<_ACEOF
28726 /* confdefs.h.  */
28727 _ACEOF
28728 cat confdefs.h >>conftest.$ac_ext
28729 cat >>conftest.$ac_ext <<_ACEOF
28730 /* end confdefs.h.  */
28731 #include <time.h>
28732 int
28733 main ()
28735 if (sizeof(time_t) != 8) return 1;
28737   ;
28738   return 0;
28740 _ACEOF
28741 rm -f conftest$ac_exeext
28742 if { (ac_try="$ac_link"
28743 case "(($ac_try" in
28744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28745   *) ac_try_echo=$ac_try;;
28746 esac
28747 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28748 $as_echo "$ac_try_echo") >&5
28749   (eval "$ac_link") 2>&5
28750   ac_status=$?
28751   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28752   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28753   { (case "(($ac_try" in
28754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28755   *) ac_try_echo=$ac_try;;
28756 esac
28757 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28758 $as_echo "$ac_try_echo") >&5
28759   (eval "$ac_try") 2>&5
28760   ac_status=$?
28761   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28762   (exit $ac_status); }; }; then
28764           { $as_echo "$as_me:$LINENO: result: time_t is 64 bit" >&5
28765 $as_echo "time_t is 64 bit" >&6; }
28766           cat >>confdefs.h <<\_ACEOF
28767 #define TIME_T_IS_64BIT 1
28768 _ACEOF
28771 else
28772   $as_echo "$as_me: program exited with status $ac_status" >&5
28773 $as_echo "$as_me: failed program was:" >&5
28774 sed 's/^/| /' conftest.$ac_ext >&5
28776 ( exit $ac_status )
28777 { { $as_echo "$as_me:$LINENO: error: can not figure type of time_t" >&5
28778 $as_echo "$as_me: error: can not figure type of time_t" >&2;}
28779    { (exit 1); exit 1; }; }
28782 rm -rf conftest.dSYM
28783 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28790 rm -rf conftest.dSYM
28791 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28796 ac_ext=c
28797 ac_cpp='$CPP $CPPFLAGS'
28798 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28799 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28800 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28804 case $TERM in
28805        #   for the most important terminal types we directly know the sequences
28806        xterm|xterm*|vt220|vt220*)
28807                T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
28808                T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
28809        ;;
28810        vt100|vt100*|cygwin)
28811                T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
28812                T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
28813        ;;
28814        *)
28815                T_MD=''
28816                T_ME=''
28817        ;;
28818 esac
28819   { $as_echo "$as_me:$LINENO: result: " >&5
28820 $as_echo "" >&6; }
28821   { $as_echo "$as_me:$LINENO: result: ${T_MD}Find 3rd-Party Libraries${T_ME}" >&5
28822 $as_echo "${T_MD}Find 3rd-Party Libraries${T_ME}" >&6; }
28825 # Check whether --enable-libdbi was given.
28826 if test "${enable_libdbi+set}" = set; then
28827   enableval=$enable_libdbi; have_libdbi=no
28828 else
28830   XXX=$LIBS
28831   LIBS="$LIBS -ldbi -ldl"
28832   { $as_echo "$as_me:$LINENO: checking for libdbi" >&5
28833 $as_echo_n "checking for libdbi... " >&6; }
28834   cat >conftest.$ac_ext <<_ACEOF
28835 /* confdefs.h.  */
28836 _ACEOF
28837 cat confdefs.h >>conftest.$ac_ext
28838 cat >>conftest.$ac_ext <<_ACEOF
28839 /* end confdefs.h.  */
28840 #include <dbi/dbi.h>
28841 int
28842 main ()
28844 dbi_initialize(NULL)
28846   ;
28847   return 0;
28850 _ACEOF
28851 rm -f conftest.$ac_objext conftest$ac_exeext
28852 if { (ac_try="$ac_link"
28853 case "(($ac_try" in
28854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28855   *) ac_try_echo=$ac_try;;
28856 esac
28857 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28858 $as_echo "$ac_try_echo") >&5
28859   (eval "$ac_link") 2>conftest.er1
28860   ac_status=$?
28861   grep -v '^ *+' conftest.er1 >conftest.err
28862   rm -f conftest.er1
28863   cat conftest.err >&5
28864   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28865   (exit $ac_status); } && {
28866          test -z "$ac_c_werror_flag" ||
28867          test ! -s conftest.err
28868        } && test -s conftest$ac_exeext && {
28869          test "$cross_compiling" = yes ||
28870          $as_test_x conftest$ac_exeext
28871        }; then
28873 cat >>confdefs.h <<\_ACEOF
28874 #define HAVE_LIBDBI 1
28875 _ACEOF
28877        { $as_echo "$as_me:$LINENO: result: yes" >&5
28878 $as_echo "yes" >&6; }
28879        have_libdbi=yes
28881 else
28882   $as_echo "$as_me: failed program was:" >&5
28883 sed 's/^/| /' conftest.$ac_ext >&5
28885         LIBS=$XXX
28886        { $as_echo "$as_me:$LINENO: result: no" >&5
28887 $as_echo "no" >&6; }
28888        have_libdbi=no
28893 rm -rf conftest.dSYM
28894 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28895       conftest$ac_exeext conftest.$ac_ext
28899  if test $have_libdbi != no; then
28900   BUILD_LIBDBI_TRUE=
28901   BUILD_LIBDBI_FALSE='#'
28902 else
28903   BUILD_LIBDBI_TRUE='#'
28904   BUILD_LIBDBI_FALSE=
28908  if test $enable_rrdcgi != no; then
28909   BUILD_RRDCGI_TRUE=
28910   BUILD_RRDCGI_FALSE='#'
28911 else
28912   BUILD_RRDCGI_TRUE='#'
28913   BUILD_RRDCGI_FALSE=
28918 CORE_LIBS="$LIBS"
28921  ac_ext=c
28922 ac_cpp='$CPP $CPPFLAGS'
28923 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28924 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28925 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28927  EX_CHECK_STATE=NO
28928  ex_check_save_LIBS=${LIBS}
28929  ex_check_save_CPPFLAGS=${CPPFLAGS}
28930  ex_check_save_LDFLAGS=${LDFLAGS}
28931  if test "x""" != "x"; then
28932    CPPFLAGS="$CPPFLAGS -I"""
28933  fi
28934   { $as_echo "$as_me:$LINENO: checking for cairo_font_options_create in -lcairo" >&5
28935 $as_echo_n "checking for cairo_font_options_create in -lcairo... " >&6; }
28936 if test "${ac_cv_lib_cairo_cairo_font_options_create+set}" = set; then
28937   $as_echo_n "(cached) " >&6
28938 else
28939   ac_check_lib_save_LIBS=$LIBS
28940 LIBS="-lcairo  $LIBS"
28941 cat >conftest.$ac_ext <<_ACEOF
28942 /* confdefs.h.  */
28943 _ACEOF
28944 cat confdefs.h >>conftest.$ac_ext
28945 cat >>conftest.$ac_ext <<_ACEOF
28946 /* end confdefs.h.  */
28948 /* Override any GCC internal prototype to avoid an error.
28949    Use char because int might match the return type of a GCC
28950    builtin and then its argument prototype would still apply.  */
28951 #ifdef __cplusplus
28952 extern "C"
28953 #endif
28954 char cairo_font_options_create ();
28955 int
28956 main ()
28958 return cairo_font_options_create ();
28959   ;
28960   return 0;
28962 _ACEOF
28963 rm -f conftest.$ac_objext conftest$ac_exeext
28964 if { (ac_try="$ac_link"
28965 case "(($ac_try" in
28966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28967   *) ac_try_echo=$ac_try;;
28968 esac
28969 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28970 $as_echo "$ac_try_echo") >&5
28971   (eval "$ac_link") 2>conftest.er1
28972   ac_status=$?
28973   grep -v '^ *+' conftest.er1 >conftest.err
28974   rm -f conftest.er1
28975   cat conftest.err >&5
28976   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28977   (exit $ac_status); } && {
28978          test -z "$ac_c_werror_flag" ||
28979          test ! -s conftest.err
28980        } && test -s conftest$ac_exeext && {
28981          test "$cross_compiling" = yes ||
28982          $as_test_x conftest$ac_exeext
28983        }; then
28984   ac_cv_lib_cairo_cairo_font_options_create=yes
28985 else
28986   $as_echo "$as_me: failed program was:" >&5
28987 sed 's/^/| /' conftest.$ac_ext >&5
28989         ac_cv_lib_cairo_cairo_font_options_create=no
28992 rm -rf conftest.dSYM
28993 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28994       conftest$ac_exeext conftest.$ac_ext
28995 LIBS=$ac_check_lib_save_LIBS
28997 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cairo_cairo_font_options_create" >&5
28998 $as_echo "$ac_cv_lib_cairo_cairo_font_options_create" >&6; }
28999 if test "x$ac_cv_lib_cairo_cairo_font_options_create" = x""yes; then
29001     if test "${ac_cv_header_cairo_h+set}" = set; then
29002   { $as_echo "$as_me:$LINENO: checking for cairo.h" >&5
29003 $as_echo_n "checking for cairo.h... " >&6; }
29004 if test "${ac_cv_header_cairo_h+set}" = set; then
29005   $as_echo_n "(cached) " >&6
29007 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_cairo_h" >&5
29008 $as_echo "$ac_cv_header_cairo_h" >&6; }
29009 else
29010   # Is the header compilable?
29011 { $as_echo "$as_me:$LINENO: checking cairo.h usability" >&5
29012 $as_echo_n "checking cairo.h usability... " >&6; }
29013 cat >conftest.$ac_ext <<_ACEOF
29014 /* confdefs.h.  */
29015 _ACEOF
29016 cat confdefs.h >>conftest.$ac_ext
29017 cat >>conftest.$ac_ext <<_ACEOF
29018 /* end confdefs.h.  */
29019 $ac_includes_default
29020 #include <cairo.h>
29021 _ACEOF
29022 rm -f conftest.$ac_objext
29023 if { (ac_try="$ac_compile"
29024 case "(($ac_try" in
29025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29026   *) ac_try_echo=$ac_try;;
29027 esac
29028 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29029 $as_echo "$ac_try_echo") >&5
29030   (eval "$ac_compile") 2>conftest.er1
29031   ac_status=$?
29032   grep -v '^ *+' conftest.er1 >conftest.err
29033   rm -f conftest.er1
29034   cat conftest.err >&5
29035   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29036   (exit $ac_status); } && {
29037          test -z "$ac_c_werror_flag" ||
29038          test ! -s conftest.err
29039        } && test -s conftest.$ac_objext; then
29040   ac_header_compiler=yes
29041 else
29042   $as_echo "$as_me: failed program was:" >&5
29043 sed 's/^/| /' conftest.$ac_ext >&5
29045         ac_header_compiler=no
29048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29049 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29050 $as_echo "$ac_header_compiler" >&6; }
29052 # Is the header present?
29053 { $as_echo "$as_me:$LINENO: checking cairo.h presence" >&5
29054 $as_echo_n "checking cairo.h presence... " >&6; }
29055 cat >conftest.$ac_ext <<_ACEOF
29056 /* confdefs.h.  */
29057 _ACEOF
29058 cat confdefs.h >>conftest.$ac_ext
29059 cat >>conftest.$ac_ext <<_ACEOF
29060 /* end confdefs.h.  */
29061 #include <cairo.h>
29062 _ACEOF
29063 if { (ac_try="$ac_cpp conftest.$ac_ext"
29064 case "(($ac_try" in
29065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29066   *) ac_try_echo=$ac_try;;
29067 esac
29068 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29069 $as_echo "$ac_try_echo") >&5
29070   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29071   ac_status=$?
29072   grep -v '^ *+' conftest.er1 >conftest.err
29073   rm -f conftest.er1
29074   cat conftest.err >&5
29075   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29076   (exit $ac_status); } >/dev/null && {
29077          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29078          test ! -s conftest.err
29079        }; then
29080   ac_header_preproc=yes
29081 else
29082   $as_echo "$as_me: failed program was:" >&5
29083 sed 's/^/| /' conftest.$ac_ext >&5
29085   ac_header_preproc=no
29088 rm -f conftest.err conftest.$ac_ext
29089 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29090 $as_echo "$ac_header_preproc" >&6; }
29092 # So?  What about this header?
29093 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29094   yes:no: )
29095     { $as_echo "$as_me:$LINENO: WARNING: cairo.h: accepted by the compiler, rejected by the preprocessor!" >&5
29096 $as_echo "$as_me: WARNING: cairo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29097     { $as_echo "$as_me:$LINENO: WARNING: cairo.h: proceeding with the compiler's result" >&5
29098 $as_echo "$as_me: WARNING: cairo.h: proceeding with the compiler's result" >&2;}
29099     ac_header_preproc=yes
29100     ;;
29101   no:yes:* )
29102     { $as_echo "$as_me:$LINENO: WARNING: cairo.h: present but cannot be compiled" >&5
29103 $as_echo "$as_me: WARNING: cairo.h: present but cannot be compiled" >&2;}
29104     { $as_echo "$as_me:$LINENO: WARNING: cairo.h:     check for missing prerequisite headers?" >&5
29105 $as_echo "$as_me: WARNING: cairo.h:     check for missing prerequisite headers?" >&2;}
29106     { $as_echo "$as_me:$LINENO: WARNING: cairo.h: see the Autoconf documentation" >&5
29107 $as_echo "$as_me: WARNING: cairo.h: see the Autoconf documentation" >&2;}
29108     { $as_echo "$as_me:$LINENO: WARNING: cairo.h:     section \"Present But Cannot Be Compiled\"" >&5
29109 $as_echo "$as_me: WARNING: cairo.h:     section \"Present But Cannot Be Compiled\"" >&2;}
29110     { $as_echo "$as_me:$LINENO: WARNING: cairo.h: proceeding with the preprocessor's result" >&5
29111 $as_echo "$as_me: WARNING: cairo.h: proceeding with the preprocessor's result" >&2;}
29112     { $as_echo "$as_me:$LINENO: WARNING: cairo.h: in the future, the compiler will take precedence" >&5
29113 $as_echo "$as_me: WARNING: cairo.h: in the future, the compiler will take precedence" >&2;}
29115     ;;
29116 esac
29117 { $as_echo "$as_me:$LINENO: checking for cairo.h" >&5
29118 $as_echo_n "checking for cairo.h... " >&6; }
29119 if test "${ac_cv_header_cairo_h+set}" = set; then
29120   $as_echo_n "(cached) " >&6
29121 else
29122   ac_cv_header_cairo_h=$ac_header_preproc
29124 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_cairo_h" >&5
29125 $as_echo "$ac_cv_header_cairo_h" >&6; }
29128 if test "x$ac_cv_header_cairo_h" = x""yes; then
29129   LIBS="-lcairo ${LIBS}";EX_CHECK_STATE=YES
29135  if test $EX_CHECK_STATE = NO; then
29136         for ac_prog in pkg-config
29138   # Extract the first word of "$ac_prog", so it can be a program name with args.
29139 set dummy $ac_prog; ac_word=$2
29140 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29141 $as_echo_n "checking for $ac_word... " >&6; }
29142 if test "${ac_cv_prog_PKGCONFIG+set}" = set; then
29143   $as_echo_n "(cached) " >&6
29144 else
29145   if test -n "$PKGCONFIG"; then
29146   ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
29147 else
29148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29149 for as_dir in $PATH
29151   IFS=$as_save_IFS
29152   test -z "$as_dir" && as_dir=.
29153   for ac_exec_ext in '' $ac_executable_extensions; do
29154   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29155     ac_cv_prog_PKGCONFIG="$ac_prog"
29156     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29157     break 2
29158   fi
29159 done
29160 done
29161 IFS=$as_save_IFS
29165 PKGCONFIG=$ac_cv_prog_PKGCONFIG
29166 if test -n "$PKGCONFIG"; then
29167   { $as_echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
29168 $as_echo "$PKGCONFIG" >&6; }
29169 else
29170   { $as_echo "$as_me:$LINENO: result: no" >&5
29171 $as_echo "no" >&6; }
29175   test -n "$PKGCONFIG" && break
29176 done
29177 test -n "$PKGCONFIG" || PKGCONFIG="no"
29179     if test "$PKGCONFIG" != "no"; then
29180           if $PKGCONFIG --exists cairo-png; then
29181              CPPFLAGS=${CPPFLAGS}" "`$PKGCONFIG --cflags cairo-png`
29182              LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-L cairo-png`
29183              LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-other cairo-png`
29184              LIBS=${LIBS}" "`$PKGCONFIG --libs-only-l cairo-png`
29185                              unset ac_cv_lib_`echo cairo | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`_cairo_font_options_create
29186              { $as_echo "$as_me:$LINENO: checking for cairo_font_options_create in -lcairo" >&5
29187 $as_echo_n "checking for cairo_font_options_create in -lcairo... " >&6; }
29188 if test "${ac_cv_lib_cairo_cairo_font_options_create+set}" = set; then
29189   $as_echo_n "(cached) " >&6
29190 else
29191   ac_check_lib_save_LIBS=$LIBS
29192 LIBS="-lcairo  $LIBS"
29193 cat >conftest.$ac_ext <<_ACEOF
29194 /* confdefs.h.  */
29195 _ACEOF
29196 cat confdefs.h >>conftest.$ac_ext
29197 cat >>conftest.$ac_ext <<_ACEOF
29198 /* end confdefs.h.  */
29200 /* Override any GCC internal prototype to avoid an error.
29201    Use char because int might match the return type of a GCC
29202    builtin and then its argument prototype would still apply.  */
29203 #ifdef __cplusplus
29204 extern "C"
29205 #endif
29206 char cairo_font_options_create ();
29207 int
29208 main ()
29210 return cairo_font_options_create ();
29211   ;
29212   return 0;
29214 _ACEOF
29215 rm -f conftest.$ac_objext conftest$ac_exeext
29216 if { (ac_try="$ac_link"
29217 case "(($ac_try" in
29218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29219   *) ac_try_echo=$ac_try;;
29220 esac
29221 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29222 $as_echo "$ac_try_echo") >&5
29223   (eval "$ac_link") 2>conftest.er1
29224   ac_status=$?
29225   grep -v '^ *+' conftest.er1 >conftest.err
29226   rm -f conftest.er1
29227   cat conftest.err >&5
29228   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29229   (exit $ac_status); } && {
29230          test -z "$ac_c_werror_flag" ||
29231          test ! -s conftest.err
29232        } && test -s conftest$ac_exeext && {
29233          test "$cross_compiling" = yes ||
29234          $as_test_x conftest$ac_exeext
29235        }; then
29236   ac_cv_lib_cairo_cairo_font_options_create=yes
29237 else
29238   $as_echo "$as_me: failed program was:" >&5
29239 sed 's/^/| /' conftest.$ac_ext >&5
29241         ac_cv_lib_cairo_cairo_font_options_create=no
29244 rm -rf conftest.dSYM
29245 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29246       conftest$ac_exeext conftest.$ac_ext
29247 LIBS=$ac_check_lib_save_LIBS
29249 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cairo_cairo_font_options_create" >&5
29250 $as_echo "$ac_cv_lib_cairo_cairo_font_options_create" >&6; }
29251 if test "x$ac_cv_lib_cairo_cairo_font_options_create" = x""yes; then
29253                  unset ac_cv_header_`echo cairo.h | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`
29254                  if test "${ac_cv_header_cairo_h+set}" = set; then
29255   { $as_echo "$as_me:$LINENO: checking for cairo.h" >&5
29256 $as_echo_n "checking for cairo.h... " >&6; }
29257 if test "${ac_cv_header_cairo_h+set}" = set; then
29258   $as_echo_n "(cached) " >&6
29260 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_cairo_h" >&5
29261 $as_echo "$ac_cv_header_cairo_h" >&6; }
29262 else
29263   # Is the header compilable?
29264 { $as_echo "$as_me:$LINENO: checking cairo.h usability" >&5
29265 $as_echo_n "checking cairo.h usability... " >&6; }
29266 cat >conftest.$ac_ext <<_ACEOF
29267 /* confdefs.h.  */
29268 _ACEOF
29269 cat confdefs.h >>conftest.$ac_ext
29270 cat >>conftest.$ac_ext <<_ACEOF
29271 /* end confdefs.h.  */
29272 $ac_includes_default
29273 #include <cairo.h>
29274 _ACEOF
29275 rm -f conftest.$ac_objext
29276 if { (ac_try="$ac_compile"
29277 case "(($ac_try" in
29278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29279   *) ac_try_echo=$ac_try;;
29280 esac
29281 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29282 $as_echo "$ac_try_echo") >&5
29283   (eval "$ac_compile") 2>conftest.er1
29284   ac_status=$?
29285   grep -v '^ *+' conftest.er1 >conftest.err
29286   rm -f conftest.er1
29287   cat conftest.err >&5
29288   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29289   (exit $ac_status); } && {
29290          test -z "$ac_c_werror_flag" ||
29291          test ! -s conftest.err
29292        } && test -s conftest.$ac_objext; then
29293   ac_header_compiler=yes
29294 else
29295   $as_echo "$as_me: failed program was:" >&5
29296 sed 's/^/| /' conftest.$ac_ext >&5
29298         ac_header_compiler=no
29301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29302 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29303 $as_echo "$ac_header_compiler" >&6; }
29305 # Is the header present?
29306 { $as_echo "$as_me:$LINENO: checking cairo.h presence" >&5
29307 $as_echo_n "checking cairo.h presence... " >&6; }
29308 cat >conftest.$ac_ext <<_ACEOF
29309 /* confdefs.h.  */
29310 _ACEOF
29311 cat confdefs.h >>conftest.$ac_ext
29312 cat >>conftest.$ac_ext <<_ACEOF
29313 /* end confdefs.h.  */
29314 #include <cairo.h>
29315 _ACEOF
29316 if { (ac_try="$ac_cpp conftest.$ac_ext"
29317 case "(($ac_try" in
29318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29319   *) ac_try_echo=$ac_try;;
29320 esac
29321 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29322 $as_echo "$ac_try_echo") >&5
29323   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29324   ac_status=$?
29325   grep -v '^ *+' conftest.er1 >conftest.err
29326   rm -f conftest.er1
29327   cat conftest.err >&5
29328   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29329   (exit $ac_status); } >/dev/null && {
29330          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29331          test ! -s conftest.err
29332        }; then
29333   ac_header_preproc=yes
29334 else
29335   $as_echo "$as_me: failed program was:" >&5
29336 sed 's/^/| /' conftest.$ac_ext >&5
29338   ac_header_preproc=no
29341 rm -f conftest.err conftest.$ac_ext
29342 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29343 $as_echo "$ac_header_preproc" >&6; }
29345 # So?  What about this header?
29346 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29347   yes:no: )
29348     { $as_echo "$as_me:$LINENO: WARNING: cairo.h: accepted by the compiler, rejected by the preprocessor!" >&5
29349 $as_echo "$as_me: WARNING: cairo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29350     { $as_echo "$as_me:$LINENO: WARNING: cairo.h: proceeding with the compiler's result" >&5
29351 $as_echo "$as_me: WARNING: cairo.h: proceeding with the compiler's result" >&2;}
29352     ac_header_preproc=yes
29353     ;;
29354   no:yes:* )
29355     { $as_echo "$as_me:$LINENO: WARNING: cairo.h: present but cannot be compiled" >&5
29356 $as_echo "$as_me: WARNING: cairo.h: present but cannot be compiled" >&2;}
29357     { $as_echo "$as_me:$LINENO: WARNING: cairo.h:     check for missing prerequisite headers?" >&5
29358 $as_echo "$as_me: WARNING: cairo.h:     check for missing prerequisite headers?" >&2;}
29359     { $as_echo "$as_me:$LINENO: WARNING: cairo.h: see the Autoconf documentation" >&5
29360 $as_echo "$as_me: WARNING: cairo.h: see the Autoconf documentation" >&2;}
29361     { $as_echo "$as_me:$LINENO: WARNING: cairo.h:     section \"Present But Cannot Be Compiled\"" >&5
29362 $as_echo "$as_me: WARNING: cairo.h:     section \"Present But Cannot Be Compiled\"" >&2;}
29363     { $as_echo "$as_me:$LINENO: WARNING: cairo.h: proceeding with the preprocessor's result" >&5
29364 $as_echo "$as_me: WARNING: cairo.h: proceeding with the preprocessor's result" >&2;}
29365     { $as_echo "$as_me:$LINENO: WARNING: cairo.h: in the future, the compiler will take precedence" >&5
29366 $as_echo "$as_me: WARNING: cairo.h: in the future, the compiler will take precedence" >&2;}
29368     ;;
29369 esac
29370 { $as_echo "$as_me:$LINENO: checking for cairo.h" >&5
29371 $as_echo_n "checking for cairo.h... " >&6; }
29372 if test "${ac_cv_header_cairo_h+set}" = set; then
29373   $as_echo_n "(cached) " >&6
29374 else
29375   ac_cv_header_cairo_h=$ac_header_preproc
29377 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_cairo_h" >&5
29378 $as_echo "$ac_cv_header_cairo_h" >&6; }
29381 if test "x$ac_cv_header_cairo_h" = x""yes; then
29382   EX_CHECK_STATE=YES
29389           else
29390              { $as_echo "$as_me:$LINENO: WARNING:
29391 ----------------------------------------------------------------------------
29392 * I found a copy of pkgconfig, but there is no cairo-png.pc file around.
29393   You may want to set the PKG_CONFIG_PATH variable to point to its
29394   location.
29395 ----------------------------------------------------------------------------
29396                         " >&5
29397 $as_echo "$as_me: WARNING:
29398 ----------------------------------------------------------------------------
29399 * I found a copy of pkgconfig, but there is no cairo-png.pc file around.
29400   You may want to set the PKG_CONFIG_PATH variable to point to its
29401   location.
29402 ----------------------------------------------------------------------------
29403                         " >&2;}
29404            fi
29405      fi
29406   fi
29408   if test ${EX_CHECK_STATE} = NO; then
29409      { $as_echo "$as_me:$LINENO: WARNING:
29410 ----------------------------------------------------------------------------
29411 * I could not find a working copy of cairo-png. Check config.log for hints on why
29412   this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
29413   so that compiler and the linker can find libcairo and its header files. If
29414   you have not installed cairo-png, you can get it either from its original home on
29416      http://cairographics.org/releases/
29418   You can find also find an archive copy on
29420      http://oss.oetiker.ch/rrdtool/pub/libs
29422   The last tested version of cairo-png is 1.4.6.
29424        LIBS=$LIBS
29425    LDFLAGS=$LDFLAGS
29426   CPPFLAGS=$CPPFLAGS
29428 ----------------------------------------------------------------------------
29429                 " >&5
29430 $as_echo "$as_me: WARNING:
29431 ----------------------------------------------------------------------------
29432 * I could not find a working copy of cairo-png. Check config.log for hints on why
29433   this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
29434   so that compiler and the linker can find libcairo and its header files. If
29435   you have not installed cairo-png, you can get it either from its original home on
29437      http://cairographics.org/releases/
29439   You can find also find an archive copy on
29441      http://oss.oetiker.ch/rrdtool/pub/libs
29443   The last tested version of cairo-png is 1.4.6.
29445        LIBS=$LIBS
29446    LDFLAGS=$LDFLAGS
29447   CPPFLAGS=$CPPFLAGS
29449 ----------------------------------------------------------------------------
29450                 " >&2;}
29451        EX_CHECK_ALL_ERR=YES
29452        LIBS="${ex_check_save_LIBS}"
29453        CPPFLAGS="${ex_check_save_CPPFLAGS}"
29454        LDFLAGS="${ex_check_save_LDFLAGS}"
29455     fi
29456     ac_ext=c
29457 ac_cpp='$CPP $CPPFLAGS'
29458 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29459 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29460 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29465  ac_ext=c
29466 ac_cpp='$CPP $CPPFLAGS'
29467 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29468 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29469 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29471  EX_CHECK_STATE=NO
29472  ex_check_save_LIBS=${LIBS}
29473  ex_check_save_CPPFLAGS=${CPPFLAGS}
29474  ex_check_save_LDFLAGS=${LDFLAGS}
29475  if test "x""" != "x"; then
29476    CPPFLAGS="$CPPFLAGS -I"""
29477  fi
29478   { $as_echo "$as_me:$LINENO: checking for cairo_svg_surface_create in -lcairo" >&5
29479 $as_echo_n "checking for cairo_svg_surface_create in -lcairo... " >&6; }
29480 if test "${ac_cv_lib_cairo_cairo_svg_surface_create+set}" = set; then
29481   $as_echo_n "(cached) " >&6
29482 else
29483   ac_check_lib_save_LIBS=$LIBS
29484 LIBS="-lcairo  $LIBS"
29485 cat >conftest.$ac_ext <<_ACEOF
29486 /* confdefs.h.  */
29487 _ACEOF
29488 cat confdefs.h >>conftest.$ac_ext
29489 cat >>conftest.$ac_ext <<_ACEOF
29490 /* end confdefs.h.  */
29492 /* Override any GCC internal prototype to avoid an error.
29493    Use char because int might match the return type of a GCC
29494    builtin and then its argument prototype would still apply.  */
29495 #ifdef __cplusplus
29496 extern "C"
29497 #endif
29498 char cairo_svg_surface_create ();
29499 int
29500 main ()
29502 return cairo_svg_surface_create ();
29503   ;
29504   return 0;
29506 _ACEOF
29507 rm -f conftest.$ac_objext conftest$ac_exeext
29508 if { (ac_try="$ac_link"
29509 case "(($ac_try" in
29510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29511   *) ac_try_echo=$ac_try;;
29512 esac
29513 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29514 $as_echo "$ac_try_echo") >&5
29515   (eval "$ac_link") 2>conftest.er1
29516   ac_status=$?
29517   grep -v '^ *+' conftest.er1 >conftest.err
29518   rm -f conftest.er1
29519   cat conftest.err >&5
29520   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29521   (exit $ac_status); } && {
29522          test -z "$ac_c_werror_flag" ||
29523          test ! -s conftest.err
29524        } && test -s conftest$ac_exeext && {
29525          test "$cross_compiling" = yes ||
29526          $as_test_x conftest$ac_exeext
29527        }; then
29528   ac_cv_lib_cairo_cairo_svg_surface_create=yes
29529 else
29530   $as_echo "$as_me: failed program was:" >&5
29531 sed 's/^/| /' conftest.$ac_ext >&5
29533         ac_cv_lib_cairo_cairo_svg_surface_create=no
29536 rm -rf conftest.dSYM
29537 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29538       conftest$ac_exeext conftest.$ac_ext
29539 LIBS=$ac_check_lib_save_LIBS
29541 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cairo_cairo_svg_surface_create" >&5
29542 $as_echo "$ac_cv_lib_cairo_cairo_svg_surface_create" >&6; }
29543 if test "x$ac_cv_lib_cairo_cairo_svg_surface_create" = x""yes; then
29545     if test "${ac_cv_header_cairo_svg_h+set}" = set; then
29546   { $as_echo "$as_me:$LINENO: checking for cairo-svg.h" >&5
29547 $as_echo_n "checking for cairo-svg.h... " >&6; }
29548 if test "${ac_cv_header_cairo_svg_h+set}" = set; then
29549   $as_echo_n "(cached) " >&6
29551 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_cairo_svg_h" >&5
29552 $as_echo "$ac_cv_header_cairo_svg_h" >&6; }
29553 else
29554   # Is the header compilable?
29555 { $as_echo "$as_me:$LINENO: checking cairo-svg.h usability" >&5
29556 $as_echo_n "checking cairo-svg.h usability... " >&6; }
29557 cat >conftest.$ac_ext <<_ACEOF
29558 /* confdefs.h.  */
29559 _ACEOF
29560 cat confdefs.h >>conftest.$ac_ext
29561 cat >>conftest.$ac_ext <<_ACEOF
29562 /* end confdefs.h.  */
29563 $ac_includes_default
29564 #include <cairo-svg.h>
29565 _ACEOF
29566 rm -f conftest.$ac_objext
29567 if { (ac_try="$ac_compile"
29568 case "(($ac_try" in
29569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29570   *) ac_try_echo=$ac_try;;
29571 esac
29572 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29573 $as_echo "$ac_try_echo") >&5
29574   (eval "$ac_compile") 2>conftest.er1
29575   ac_status=$?
29576   grep -v '^ *+' conftest.er1 >conftest.err
29577   rm -f conftest.er1
29578   cat conftest.err >&5
29579   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29580   (exit $ac_status); } && {
29581          test -z "$ac_c_werror_flag" ||
29582          test ! -s conftest.err
29583        } && test -s conftest.$ac_objext; then
29584   ac_header_compiler=yes
29585 else
29586   $as_echo "$as_me: failed program was:" >&5
29587 sed 's/^/| /' conftest.$ac_ext >&5
29589         ac_header_compiler=no
29592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29593 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29594 $as_echo "$ac_header_compiler" >&6; }
29596 # Is the header present?
29597 { $as_echo "$as_me:$LINENO: checking cairo-svg.h presence" >&5
29598 $as_echo_n "checking cairo-svg.h presence... " >&6; }
29599 cat >conftest.$ac_ext <<_ACEOF
29600 /* confdefs.h.  */
29601 _ACEOF
29602 cat confdefs.h >>conftest.$ac_ext
29603 cat >>conftest.$ac_ext <<_ACEOF
29604 /* end confdefs.h.  */
29605 #include <cairo-svg.h>
29606 _ACEOF
29607 if { (ac_try="$ac_cpp conftest.$ac_ext"
29608 case "(($ac_try" in
29609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29610   *) ac_try_echo=$ac_try;;
29611 esac
29612 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29613 $as_echo "$ac_try_echo") >&5
29614   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29615   ac_status=$?
29616   grep -v '^ *+' conftest.er1 >conftest.err
29617   rm -f conftest.er1
29618   cat conftest.err >&5
29619   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29620   (exit $ac_status); } >/dev/null && {
29621          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29622          test ! -s conftest.err
29623        }; then
29624   ac_header_preproc=yes
29625 else
29626   $as_echo "$as_me: failed program was:" >&5
29627 sed 's/^/| /' conftest.$ac_ext >&5
29629   ac_header_preproc=no
29632 rm -f conftest.err conftest.$ac_ext
29633 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29634 $as_echo "$ac_header_preproc" >&6; }
29636 # So?  What about this header?
29637 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29638   yes:no: )
29639     { $as_echo "$as_me:$LINENO: WARNING: cairo-svg.h: accepted by the compiler, rejected by the preprocessor!" >&5
29640 $as_echo "$as_me: WARNING: cairo-svg.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29641     { $as_echo "$as_me:$LINENO: WARNING: cairo-svg.h: proceeding with the compiler's result" >&5
29642 $as_echo "$as_me: WARNING: cairo-svg.h: proceeding with the compiler's result" >&2;}
29643     ac_header_preproc=yes
29644     ;;
29645   no:yes:* )
29646     { $as_echo "$as_me:$LINENO: WARNING: cairo-svg.h: present but cannot be compiled" >&5
29647 $as_echo "$as_me: WARNING: cairo-svg.h: present but cannot be compiled" >&2;}
29648     { $as_echo "$as_me:$LINENO: WARNING: cairo-svg.h:     check for missing prerequisite headers?" >&5
29649 $as_echo "$as_me: WARNING: cairo-svg.h:     check for missing prerequisite headers?" >&2;}
29650     { $as_echo "$as_me:$LINENO: WARNING: cairo-svg.h: see the Autoconf documentation" >&5
29651 $as_echo "$as_me: WARNING: cairo-svg.h: see the Autoconf documentation" >&2;}
29652     { $as_echo "$as_me:$LINENO: WARNING: cairo-svg.h:     section \"Present But Cannot Be Compiled\"" >&5
29653 $as_echo "$as_me: WARNING: cairo-svg.h:     section \"Present But Cannot Be Compiled\"" >&2;}
29654     { $as_echo "$as_me:$LINENO: WARNING: cairo-svg.h: proceeding with the preprocessor's result" >&5
29655 $as_echo "$as_me: WARNING: cairo-svg.h: proceeding with the preprocessor's result" >&2;}
29656     { $as_echo "$as_me:$LINENO: WARNING: cairo-svg.h: in the future, the compiler will take precedence" >&5
29657 $as_echo "$as_me: WARNING: cairo-svg.h: in the future, the compiler will take precedence" >&2;}
29659     ;;
29660 esac
29661 { $as_echo "$as_me:$LINENO: checking for cairo-svg.h" >&5
29662 $as_echo_n "checking for cairo-svg.h... " >&6; }
29663 if test "${ac_cv_header_cairo_svg_h+set}" = set; then
29664   $as_echo_n "(cached) " >&6
29665 else
29666   ac_cv_header_cairo_svg_h=$ac_header_preproc
29668 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_cairo_svg_h" >&5
29669 $as_echo "$ac_cv_header_cairo_svg_h" >&6; }
29672 if test "x$ac_cv_header_cairo_svg_h" = x""yes; then
29673   LIBS="-lcairo ${LIBS}";EX_CHECK_STATE=YES
29679  if test $EX_CHECK_STATE = NO; then
29680         for ac_prog in pkg-config
29682   # Extract the first word of "$ac_prog", so it can be a program name with args.
29683 set dummy $ac_prog; ac_word=$2
29684 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29685 $as_echo_n "checking for $ac_word... " >&6; }
29686 if test "${ac_cv_prog_PKGCONFIG+set}" = set; then
29687   $as_echo_n "(cached) " >&6
29688 else
29689   if test -n "$PKGCONFIG"; then
29690   ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
29691 else
29692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29693 for as_dir in $PATH
29695   IFS=$as_save_IFS
29696   test -z "$as_dir" && as_dir=.
29697   for ac_exec_ext in '' $ac_executable_extensions; do
29698   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29699     ac_cv_prog_PKGCONFIG="$ac_prog"
29700     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29701     break 2
29702   fi
29703 done
29704 done
29705 IFS=$as_save_IFS
29709 PKGCONFIG=$ac_cv_prog_PKGCONFIG
29710 if test -n "$PKGCONFIG"; then
29711   { $as_echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
29712 $as_echo "$PKGCONFIG" >&6; }
29713 else
29714   { $as_echo "$as_me:$LINENO: result: no" >&5
29715 $as_echo "no" >&6; }
29719   test -n "$PKGCONFIG" && break
29720 done
29721 test -n "$PKGCONFIG" || PKGCONFIG="no"
29723     if test "$PKGCONFIG" != "no"; then
29724           if $PKGCONFIG --exists cairo-svg; then
29725              CPPFLAGS=${CPPFLAGS}" "`$PKGCONFIG --cflags cairo-svg`
29726              LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-L cairo-svg`
29727              LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-other cairo-svg`
29728              LIBS=${LIBS}" "`$PKGCONFIG --libs-only-l cairo-svg`
29729                              unset ac_cv_lib_`echo cairo | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`_cairo_svg_surface_create
29730              { $as_echo "$as_me:$LINENO: checking for cairo_svg_surface_create in -lcairo" >&5
29731 $as_echo_n "checking for cairo_svg_surface_create in -lcairo... " >&6; }
29732 if test "${ac_cv_lib_cairo_cairo_svg_surface_create+set}" = set; then
29733   $as_echo_n "(cached) " >&6
29734 else
29735   ac_check_lib_save_LIBS=$LIBS
29736 LIBS="-lcairo  $LIBS"
29737 cat >conftest.$ac_ext <<_ACEOF
29738 /* confdefs.h.  */
29739 _ACEOF
29740 cat confdefs.h >>conftest.$ac_ext
29741 cat >>conftest.$ac_ext <<_ACEOF
29742 /* end confdefs.h.  */
29744 /* Override any GCC internal prototype to avoid an error.
29745    Use char because int might match the return type of a GCC
29746    builtin and then its argument prototype would still apply.  */
29747 #ifdef __cplusplus
29748 extern "C"
29749 #endif
29750 char cairo_svg_surface_create ();
29751 int
29752 main ()
29754 return cairo_svg_surface_create ();
29755   ;
29756   return 0;
29758 _ACEOF
29759 rm -f conftest.$ac_objext conftest$ac_exeext
29760 if { (ac_try="$ac_link"
29761 case "(($ac_try" in
29762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29763   *) ac_try_echo=$ac_try;;
29764 esac
29765 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29766 $as_echo "$ac_try_echo") >&5
29767   (eval "$ac_link") 2>conftest.er1
29768   ac_status=$?
29769   grep -v '^ *+' conftest.er1 >conftest.err
29770   rm -f conftest.er1
29771   cat conftest.err >&5
29772   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29773   (exit $ac_status); } && {
29774          test -z "$ac_c_werror_flag" ||
29775          test ! -s conftest.err
29776        } && test -s conftest$ac_exeext && {
29777          test "$cross_compiling" = yes ||
29778          $as_test_x conftest$ac_exeext
29779        }; then
29780   ac_cv_lib_cairo_cairo_svg_surface_create=yes
29781 else
29782   $as_echo "$as_me: failed program was:" >&5
29783 sed 's/^/| /' conftest.$ac_ext >&5
29785         ac_cv_lib_cairo_cairo_svg_surface_create=no
29788 rm -rf conftest.dSYM
29789 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29790       conftest$ac_exeext conftest.$ac_ext
29791 LIBS=$ac_check_lib_save_LIBS
29793 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cairo_cairo_svg_surface_create" >&5
29794 $as_echo "$ac_cv_lib_cairo_cairo_svg_surface_create" >&6; }
29795 if test "x$ac_cv_lib_cairo_cairo_svg_surface_create" = x""yes; then
29797                  unset ac_cv_header_`echo cairo-svg.h | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`
29798                  if test "${ac_cv_header_cairo_svg_h+set}" = set; then
29799   { $as_echo "$as_me:$LINENO: checking for cairo-svg.h" >&5
29800 $as_echo_n "checking for cairo-svg.h... " >&6; }
29801 if test "${ac_cv_header_cairo_svg_h+set}" = set; then
29802   $as_echo_n "(cached) " >&6
29804 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_cairo_svg_h" >&5
29805 $as_echo "$ac_cv_header_cairo_svg_h" >&6; }
29806 else
29807   # Is the header compilable?
29808 { $as_echo "$as_me:$LINENO: checking cairo-svg.h usability" >&5
29809 $as_echo_n "checking cairo-svg.h usability... " >&6; }
29810 cat >conftest.$ac_ext <<_ACEOF
29811 /* confdefs.h.  */
29812 _ACEOF
29813 cat confdefs.h >>conftest.$ac_ext
29814 cat >>conftest.$ac_ext <<_ACEOF
29815 /* end confdefs.h.  */
29816 $ac_includes_default
29817 #include <cairo-svg.h>
29818 _ACEOF
29819 rm -f conftest.$ac_objext
29820 if { (ac_try="$ac_compile"
29821 case "(($ac_try" in
29822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29823   *) ac_try_echo=$ac_try;;
29824 esac
29825 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29826 $as_echo "$ac_try_echo") >&5
29827   (eval "$ac_compile") 2>conftest.er1
29828   ac_status=$?
29829   grep -v '^ *+' conftest.er1 >conftest.err
29830   rm -f conftest.er1
29831   cat conftest.err >&5
29832   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29833   (exit $ac_status); } && {
29834          test -z "$ac_c_werror_flag" ||
29835          test ! -s conftest.err
29836        } && test -s conftest.$ac_objext; then
29837   ac_header_compiler=yes
29838 else
29839   $as_echo "$as_me: failed program was:" >&5
29840 sed 's/^/| /' conftest.$ac_ext >&5
29842         ac_header_compiler=no
29845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29846 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29847 $as_echo "$ac_header_compiler" >&6; }
29849 # Is the header present?
29850 { $as_echo "$as_me:$LINENO: checking cairo-svg.h presence" >&5
29851 $as_echo_n "checking cairo-svg.h presence... " >&6; }
29852 cat >conftest.$ac_ext <<_ACEOF
29853 /* confdefs.h.  */
29854 _ACEOF
29855 cat confdefs.h >>conftest.$ac_ext
29856 cat >>conftest.$ac_ext <<_ACEOF
29857 /* end confdefs.h.  */
29858 #include <cairo-svg.h>
29859 _ACEOF
29860 if { (ac_try="$ac_cpp conftest.$ac_ext"
29861 case "(($ac_try" in
29862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29863   *) ac_try_echo=$ac_try;;
29864 esac
29865 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29866 $as_echo "$ac_try_echo") >&5
29867   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29868   ac_status=$?
29869   grep -v '^ *+' conftest.er1 >conftest.err
29870   rm -f conftest.er1
29871   cat conftest.err >&5
29872   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29873   (exit $ac_status); } >/dev/null && {
29874          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29875          test ! -s conftest.err
29876        }; then
29877   ac_header_preproc=yes
29878 else
29879   $as_echo "$as_me: failed program was:" >&5
29880 sed 's/^/| /' conftest.$ac_ext >&5
29882   ac_header_preproc=no
29885 rm -f conftest.err conftest.$ac_ext
29886 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29887 $as_echo "$ac_header_preproc" >&6; }
29889 # So?  What about this header?
29890 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29891   yes:no: )
29892     { $as_echo "$as_me:$LINENO: WARNING: cairo-svg.h: accepted by the compiler, rejected by the preprocessor!" >&5
29893 $as_echo "$as_me: WARNING: cairo-svg.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29894     { $as_echo "$as_me:$LINENO: WARNING: cairo-svg.h: proceeding with the compiler's result" >&5
29895 $as_echo "$as_me: WARNING: cairo-svg.h: proceeding with the compiler's result" >&2;}
29896     ac_header_preproc=yes
29897     ;;
29898   no:yes:* )
29899     { $as_echo "$as_me:$LINENO: WARNING: cairo-svg.h: present but cannot be compiled" >&5
29900 $as_echo "$as_me: WARNING: cairo-svg.h: present but cannot be compiled" >&2;}
29901     { $as_echo "$as_me:$LINENO: WARNING: cairo-svg.h:     check for missing prerequisite headers?" >&5
29902 $as_echo "$as_me: WARNING: cairo-svg.h:     check for missing prerequisite headers?" >&2;}
29903     { $as_echo "$as_me:$LINENO: WARNING: cairo-svg.h: see the Autoconf documentation" >&5
29904 $as_echo "$as_me: WARNING: cairo-svg.h: see the Autoconf documentation" >&2;}
29905     { $as_echo "$as_me:$LINENO: WARNING: cairo-svg.h:     section \"Present But Cannot Be Compiled\"" >&5
29906 $as_echo "$as_me: WARNING: cairo-svg.h:     section \"Present But Cannot Be Compiled\"" >&2;}
29907     { $as_echo "$as_me:$LINENO: WARNING: cairo-svg.h: proceeding with the preprocessor's result" >&5
29908 $as_echo "$as_me: WARNING: cairo-svg.h: proceeding with the preprocessor's result" >&2;}
29909     { $as_echo "$as_me:$LINENO: WARNING: cairo-svg.h: in the future, the compiler will take precedence" >&5
29910 $as_echo "$as_me: WARNING: cairo-svg.h: in the future, the compiler will take precedence" >&2;}
29912     ;;
29913 esac
29914 { $as_echo "$as_me:$LINENO: checking for cairo-svg.h" >&5
29915 $as_echo_n "checking for cairo-svg.h... " >&6; }
29916 if test "${ac_cv_header_cairo_svg_h+set}" = set; then
29917   $as_echo_n "(cached) " >&6
29918 else
29919   ac_cv_header_cairo_svg_h=$ac_header_preproc
29921 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_cairo_svg_h" >&5
29922 $as_echo "$ac_cv_header_cairo_svg_h" >&6; }
29925 if test "x$ac_cv_header_cairo_svg_h" = x""yes; then
29926   EX_CHECK_STATE=YES
29933           else
29934              { $as_echo "$as_me:$LINENO: WARNING:
29935 ----------------------------------------------------------------------------
29936 * I found a copy of pkgconfig, but there is no cairo-svg.pc file around.
29937   You may want to set the PKG_CONFIG_PATH variable to point to its
29938   location.
29939 ----------------------------------------------------------------------------
29940                         " >&5
29941 $as_echo "$as_me: WARNING:
29942 ----------------------------------------------------------------------------
29943 * I found a copy of pkgconfig, but there is no cairo-svg.pc file around.
29944   You may want to set the PKG_CONFIG_PATH variable to point to its
29945   location.
29946 ----------------------------------------------------------------------------
29947                         " >&2;}
29948            fi
29949      fi
29950   fi
29952   if test ${EX_CHECK_STATE} = NO; then
29953      { $as_echo "$as_me:$LINENO: WARNING:
29954 ----------------------------------------------------------------------------
29955 * I could not find a working copy of cairo-svg. Check config.log for hints on why
29956   this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
29957   so that compiler and the linker can find libcairo and its header files. If
29958   you have not installed cairo-svg, you can get it either from its original home on
29960      http://cairographics.org/releases/
29962   You can find also find an archive copy on
29964      http://oss.oetiker.ch/rrdtool/pub/libs
29966   The last tested version of cairo-svg is 1.4.6.
29968        LIBS=$LIBS
29969    LDFLAGS=$LDFLAGS
29970   CPPFLAGS=$CPPFLAGS
29972 ----------------------------------------------------------------------------
29973                 " >&5
29974 $as_echo "$as_me: WARNING:
29975 ----------------------------------------------------------------------------
29976 * I could not find a working copy of cairo-svg. Check config.log for hints on why
29977   this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
29978   so that compiler and the linker can find libcairo and its header files. If
29979   you have not installed cairo-svg, you can get it either from its original home on
29981      http://cairographics.org/releases/
29983   You can find also find an archive copy on
29985      http://oss.oetiker.ch/rrdtool/pub/libs
29987   The last tested version of cairo-svg is 1.4.6.
29989        LIBS=$LIBS
29990    LDFLAGS=$LDFLAGS
29991   CPPFLAGS=$CPPFLAGS
29993 ----------------------------------------------------------------------------
29994                 " >&2;}
29995        EX_CHECK_ALL_ERR=YES
29996        LIBS="${ex_check_save_LIBS}"
29997        CPPFLAGS="${ex_check_save_CPPFLAGS}"
29998        LDFLAGS="${ex_check_save_LDFLAGS}"
29999     fi
30000     ac_ext=c
30001 ac_cpp='$CPP $CPPFLAGS'
30002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30009  ac_ext=c
30010 ac_cpp='$CPP $CPPFLAGS'
30011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30013 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30015  EX_CHECK_STATE=NO
30016  ex_check_save_LIBS=${LIBS}
30017  ex_check_save_CPPFLAGS=${CPPFLAGS}
30018  ex_check_save_LDFLAGS=${LDFLAGS}
30019  if test "x""" != "x"; then
30020    CPPFLAGS="$CPPFLAGS -I"""
30021  fi
30022   { $as_echo "$as_me:$LINENO: checking for cairo_pdf_surface_create in -lcairo" >&5
30023 $as_echo_n "checking for cairo_pdf_surface_create in -lcairo... " >&6; }
30024 if test "${ac_cv_lib_cairo_cairo_pdf_surface_create+set}" = set; then
30025   $as_echo_n "(cached) " >&6
30026 else
30027   ac_check_lib_save_LIBS=$LIBS
30028 LIBS="-lcairo  $LIBS"
30029 cat >conftest.$ac_ext <<_ACEOF
30030 /* confdefs.h.  */
30031 _ACEOF
30032 cat confdefs.h >>conftest.$ac_ext
30033 cat >>conftest.$ac_ext <<_ACEOF
30034 /* end confdefs.h.  */
30036 /* Override any GCC internal prototype to avoid an error.
30037    Use char because int might match the return type of a GCC
30038    builtin and then its argument prototype would still apply.  */
30039 #ifdef __cplusplus
30040 extern "C"
30041 #endif
30042 char cairo_pdf_surface_create ();
30043 int
30044 main ()
30046 return cairo_pdf_surface_create ();
30047   ;
30048   return 0;
30050 _ACEOF
30051 rm -f conftest.$ac_objext conftest$ac_exeext
30052 if { (ac_try="$ac_link"
30053 case "(($ac_try" in
30054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30055   *) ac_try_echo=$ac_try;;
30056 esac
30057 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30058 $as_echo "$ac_try_echo") >&5
30059   (eval "$ac_link") 2>conftest.er1
30060   ac_status=$?
30061   grep -v '^ *+' conftest.er1 >conftest.err
30062   rm -f conftest.er1
30063   cat conftest.err >&5
30064   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30065   (exit $ac_status); } && {
30066          test -z "$ac_c_werror_flag" ||
30067          test ! -s conftest.err
30068        } && test -s conftest$ac_exeext && {
30069          test "$cross_compiling" = yes ||
30070          $as_test_x conftest$ac_exeext
30071        }; then
30072   ac_cv_lib_cairo_cairo_pdf_surface_create=yes
30073 else
30074   $as_echo "$as_me: failed program was:" >&5
30075 sed 's/^/| /' conftest.$ac_ext >&5
30077         ac_cv_lib_cairo_cairo_pdf_surface_create=no
30080 rm -rf conftest.dSYM
30081 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30082       conftest$ac_exeext conftest.$ac_ext
30083 LIBS=$ac_check_lib_save_LIBS
30085 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cairo_cairo_pdf_surface_create" >&5
30086 $as_echo "$ac_cv_lib_cairo_cairo_pdf_surface_create" >&6; }
30087 if test "x$ac_cv_lib_cairo_cairo_pdf_surface_create" = x""yes; then
30089     if test "${ac_cv_header_cairo_pdf_h+set}" = set; then
30090   { $as_echo "$as_me:$LINENO: checking for cairo-pdf.h" >&5
30091 $as_echo_n "checking for cairo-pdf.h... " >&6; }
30092 if test "${ac_cv_header_cairo_pdf_h+set}" = set; then
30093   $as_echo_n "(cached) " >&6
30095 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_cairo_pdf_h" >&5
30096 $as_echo "$ac_cv_header_cairo_pdf_h" >&6; }
30097 else
30098   # Is the header compilable?
30099 { $as_echo "$as_me:$LINENO: checking cairo-pdf.h usability" >&5
30100 $as_echo_n "checking cairo-pdf.h usability... " >&6; }
30101 cat >conftest.$ac_ext <<_ACEOF
30102 /* confdefs.h.  */
30103 _ACEOF
30104 cat confdefs.h >>conftest.$ac_ext
30105 cat >>conftest.$ac_ext <<_ACEOF
30106 /* end confdefs.h.  */
30107 $ac_includes_default
30108 #include <cairo-pdf.h>
30109 _ACEOF
30110 rm -f conftest.$ac_objext
30111 if { (ac_try="$ac_compile"
30112 case "(($ac_try" in
30113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30114   *) ac_try_echo=$ac_try;;
30115 esac
30116 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30117 $as_echo "$ac_try_echo") >&5
30118   (eval "$ac_compile") 2>conftest.er1
30119   ac_status=$?
30120   grep -v '^ *+' conftest.er1 >conftest.err
30121   rm -f conftest.er1
30122   cat conftest.err >&5
30123   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30124   (exit $ac_status); } && {
30125          test -z "$ac_c_werror_flag" ||
30126          test ! -s conftest.err
30127        } && test -s conftest.$ac_objext; then
30128   ac_header_compiler=yes
30129 else
30130   $as_echo "$as_me: failed program was:" >&5
30131 sed 's/^/| /' conftest.$ac_ext >&5
30133         ac_header_compiler=no
30136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30137 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30138 $as_echo "$ac_header_compiler" >&6; }
30140 # Is the header present?
30141 { $as_echo "$as_me:$LINENO: checking cairo-pdf.h presence" >&5
30142 $as_echo_n "checking cairo-pdf.h presence... " >&6; }
30143 cat >conftest.$ac_ext <<_ACEOF
30144 /* confdefs.h.  */
30145 _ACEOF
30146 cat confdefs.h >>conftest.$ac_ext
30147 cat >>conftest.$ac_ext <<_ACEOF
30148 /* end confdefs.h.  */
30149 #include <cairo-pdf.h>
30150 _ACEOF
30151 if { (ac_try="$ac_cpp conftest.$ac_ext"
30152 case "(($ac_try" in
30153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30154   *) ac_try_echo=$ac_try;;
30155 esac
30156 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30157 $as_echo "$ac_try_echo") >&5
30158   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30159   ac_status=$?
30160   grep -v '^ *+' conftest.er1 >conftest.err
30161   rm -f conftest.er1
30162   cat conftest.err >&5
30163   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30164   (exit $ac_status); } >/dev/null && {
30165          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30166          test ! -s conftest.err
30167        }; then
30168   ac_header_preproc=yes
30169 else
30170   $as_echo "$as_me: failed program was:" >&5
30171 sed 's/^/| /' conftest.$ac_ext >&5
30173   ac_header_preproc=no
30176 rm -f conftest.err conftest.$ac_ext
30177 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30178 $as_echo "$ac_header_preproc" >&6; }
30180 # So?  What about this header?
30181 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30182   yes:no: )
30183     { $as_echo "$as_me:$LINENO: WARNING: cairo-pdf.h: accepted by the compiler, rejected by the preprocessor!" >&5
30184 $as_echo "$as_me: WARNING: cairo-pdf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30185     { $as_echo "$as_me:$LINENO: WARNING: cairo-pdf.h: proceeding with the compiler's result" >&5
30186 $as_echo "$as_me: WARNING: cairo-pdf.h: proceeding with the compiler's result" >&2;}
30187     ac_header_preproc=yes
30188     ;;
30189   no:yes:* )
30190     { $as_echo "$as_me:$LINENO: WARNING: cairo-pdf.h: present but cannot be compiled" >&5
30191 $as_echo "$as_me: WARNING: cairo-pdf.h: present but cannot be compiled" >&2;}
30192     { $as_echo "$as_me:$LINENO: WARNING: cairo-pdf.h:     check for missing prerequisite headers?" >&5
30193 $as_echo "$as_me: WARNING: cairo-pdf.h:     check for missing prerequisite headers?" >&2;}
30194     { $as_echo "$as_me:$LINENO: WARNING: cairo-pdf.h: see the Autoconf documentation" >&5
30195 $as_echo "$as_me: WARNING: cairo-pdf.h: see the Autoconf documentation" >&2;}
30196     { $as_echo "$as_me:$LINENO: WARNING: cairo-pdf.h:     section \"Present But Cannot Be Compiled\"" >&5
30197 $as_echo "$as_me: WARNING: cairo-pdf.h:     section \"Present But Cannot Be Compiled\"" >&2;}
30198     { $as_echo "$as_me:$LINENO: WARNING: cairo-pdf.h: proceeding with the preprocessor's result" >&5
30199 $as_echo "$as_me: WARNING: cairo-pdf.h: proceeding with the preprocessor's result" >&2;}
30200     { $as_echo "$as_me:$LINENO: WARNING: cairo-pdf.h: in the future, the compiler will take precedence" >&5
30201 $as_echo "$as_me: WARNING: cairo-pdf.h: in the future, the compiler will take precedence" >&2;}
30203     ;;
30204 esac
30205 { $as_echo "$as_me:$LINENO: checking for cairo-pdf.h" >&5
30206 $as_echo_n "checking for cairo-pdf.h... " >&6; }
30207 if test "${ac_cv_header_cairo_pdf_h+set}" = set; then
30208   $as_echo_n "(cached) " >&6
30209 else
30210   ac_cv_header_cairo_pdf_h=$ac_header_preproc
30212 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_cairo_pdf_h" >&5
30213 $as_echo "$ac_cv_header_cairo_pdf_h" >&6; }
30216 if test "x$ac_cv_header_cairo_pdf_h" = x""yes; then
30217   LIBS="-lcairo ${LIBS}";EX_CHECK_STATE=YES
30223  if test $EX_CHECK_STATE = NO; then
30224         for ac_prog in pkg-config
30226   # Extract the first word of "$ac_prog", so it can be a program name with args.
30227 set dummy $ac_prog; ac_word=$2
30228 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
30229 $as_echo_n "checking for $ac_word... " >&6; }
30230 if test "${ac_cv_prog_PKGCONFIG+set}" = set; then
30231   $as_echo_n "(cached) " >&6
30232 else
30233   if test -n "$PKGCONFIG"; then
30234   ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
30235 else
30236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30237 for as_dir in $PATH
30239   IFS=$as_save_IFS
30240   test -z "$as_dir" && as_dir=.
30241   for ac_exec_ext in '' $ac_executable_extensions; do
30242   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30243     ac_cv_prog_PKGCONFIG="$ac_prog"
30244     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30245     break 2
30246   fi
30247 done
30248 done
30249 IFS=$as_save_IFS
30253 PKGCONFIG=$ac_cv_prog_PKGCONFIG
30254 if test -n "$PKGCONFIG"; then
30255   { $as_echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
30256 $as_echo "$PKGCONFIG" >&6; }
30257 else
30258   { $as_echo "$as_me:$LINENO: result: no" >&5
30259 $as_echo "no" >&6; }
30263   test -n "$PKGCONFIG" && break
30264 done
30265 test -n "$PKGCONFIG" || PKGCONFIG="no"
30267     if test "$PKGCONFIG" != "no"; then
30268           if $PKGCONFIG --exists cairo-pdf; then
30269              CPPFLAGS=${CPPFLAGS}" "`$PKGCONFIG --cflags cairo-pdf`
30270              LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-L cairo-pdf`
30271              LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-other cairo-pdf`
30272              LIBS=${LIBS}" "`$PKGCONFIG --libs-only-l cairo-pdf`
30273                              unset ac_cv_lib_`echo cairo | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`_cairo_pdf_surface_create
30274              { $as_echo "$as_me:$LINENO: checking for cairo_pdf_surface_create in -lcairo" >&5
30275 $as_echo_n "checking for cairo_pdf_surface_create in -lcairo... " >&6; }
30276 if test "${ac_cv_lib_cairo_cairo_pdf_surface_create+set}" = set; then
30277   $as_echo_n "(cached) " >&6
30278 else
30279   ac_check_lib_save_LIBS=$LIBS
30280 LIBS="-lcairo  $LIBS"
30281 cat >conftest.$ac_ext <<_ACEOF
30282 /* confdefs.h.  */
30283 _ACEOF
30284 cat confdefs.h >>conftest.$ac_ext
30285 cat >>conftest.$ac_ext <<_ACEOF
30286 /* end confdefs.h.  */
30288 /* Override any GCC internal prototype to avoid an error.
30289    Use char because int might match the return type of a GCC
30290    builtin and then its argument prototype would still apply.  */
30291 #ifdef __cplusplus
30292 extern "C"
30293 #endif
30294 char cairo_pdf_surface_create ();
30295 int
30296 main ()
30298 return cairo_pdf_surface_create ();
30299   ;
30300   return 0;
30302 _ACEOF
30303 rm -f conftest.$ac_objext conftest$ac_exeext
30304 if { (ac_try="$ac_link"
30305 case "(($ac_try" in
30306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30307   *) ac_try_echo=$ac_try;;
30308 esac
30309 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30310 $as_echo "$ac_try_echo") >&5
30311   (eval "$ac_link") 2>conftest.er1
30312   ac_status=$?
30313   grep -v '^ *+' conftest.er1 >conftest.err
30314   rm -f conftest.er1
30315   cat conftest.err >&5
30316   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30317   (exit $ac_status); } && {
30318          test -z "$ac_c_werror_flag" ||
30319          test ! -s conftest.err
30320        } && test -s conftest$ac_exeext && {
30321          test "$cross_compiling" = yes ||
30322          $as_test_x conftest$ac_exeext
30323        }; then
30324   ac_cv_lib_cairo_cairo_pdf_surface_create=yes
30325 else
30326   $as_echo "$as_me: failed program was:" >&5
30327 sed 's/^/| /' conftest.$ac_ext >&5
30329         ac_cv_lib_cairo_cairo_pdf_surface_create=no
30332 rm -rf conftest.dSYM
30333 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30334       conftest$ac_exeext conftest.$ac_ext
30335 LIBS=$ac_check_lib_save_LIBS
30337 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cairo_cairo_pdf_surface_create" >&5
30338 $as_echo "$ac_cv_lib_cairo_cairo_pdf_surface_create" >&6; }
30339 if test "x$ac_cv_lib_cairo_cairo_pdf_surface_create" = x""yes; then
30341                  unset ac_cv_header_`echo cairo-pdf.h | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`
30342                  if test "${ac_cv_header_cairo_pdf_h+set}" = set; then
30343   { $as_echo "$as_me:$LINENO: checking for cairo-pdf.h" >&5
30344 $as_echo_n "checking for cairo-pdf.h... " >&6; }
30345 if test "${ac_cv_header_cairo_pdf_h+set}" = set; then
30346   $as_echo_n "(cached) " >&6
30348 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_cairo_pdf_h" >&5
30349 $as_echo "$ac_cv_header_cairo_pdf_h" >&6; }
30350 else
30351   # Is the header compilable?
30352 { $as_echo "$as_me:$LINENO: checking cairo-pdf.h usability" >&5
30353 $as_echo_n "checking cairo-pdf.h usability... " >&6; }
30354 cat >conftest.$ac_ext <<_ACEOF
30355 /* confdefs.h.  */
30356 _ACEOF
30357 cat confdefs.h >>conftest.$ac_ext
30358 cat >>conftest.$ac_ext <<_ACEOF
30359 /* end confdefs.h.  */
30360 $ac_includes_default
30361 #include <cairo-pdf.h>
30362 _ACEOF
30363 rm -f conftest.$ac_objext
30364 if { (ac_try="$ac_compile"
30365 case "(($ac_try" in
30366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30367   *) ac_try_echo=$ac_try;;
30368 esac
30369 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30370 $as_echo "$ac_try_echo") >&5
30371   (eval "$ac_compile") 2>conftest.er1
30372   ac_status=$?
30373   grep -v '^ *+' conftest.er1 >conftest.err
30374   rm -f conftest.er1
30375   cat conftest.err >&5
30376   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30377   (exit $ac_status); } && {
30378          test -z "$ac_c_werror_flag" ||
30379          test ! -s conftest.err
30380        } && test -s conftest.$ac_objext; then
30381   ac_header_compiler=yes
30382 else
30383   $as_echo "$as_me: failed program was:" >&5
30384 sed 's/^/| /' conftest.$ac_ext >&5
30386         ac_header_compiler=no
30389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30390 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30391 $as_echo "$ac_header_compiler" >&6; }
30393 # Is the header present?
30394 { $as_echo "$as_me:$LINENO: checking cairo-pdf.h presence" >&5
30395 $as_echo_n "checking cairo-pdf.h presence... " >&6; }
30396 cat >conftest.$ac_ext <<_ACEOF
30397 /* confdefs.h.  */
30398 _ACEOF
30399 cat confdefs.h >>conftest.$ac_ext
30400 cat >>conftest.$ac_ext <<_ACEOF
30401 /* end confdefs.h.  */
30402 #include <cairo-pdf.h>
30403 _ACEOF
30404 if { (ac_try="$ac_cpp conftest.$ac_ext"
30405 case "(($ac_try" in
30406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30407   *) ac_try_echo=$ac_try;;
30408 esac
30409 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30410 $as_echo "$ac_try_echo") >&5
30411   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30412   ac_status=$?
30413   grep -v '^ *+' conftest.er1 >conftest.err
30414   rm -f conftest.er1
30415   cat conftest.err >&5
30416   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30417   (exit $ac_status); } >/dev/null && {
30418          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30419          test ! -s conftest.err
30420        }; then
30421   ac_header_preproc=yes
30422 else
30423   $as_echo "$as_me: failed program was:" >&5
30424 sed 's/^/| /' conftest.$ac_ext >&5
30426   ac_header_preproc=no
30429 rm -f conftest.err conftest.$ac_ext
30430 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30431 $as_echo "$ac_header_preproc" >&6; }
30433 # So?  What about this header?
30434 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30435   yes:no: )
30436     { $as_echo "$as_me:$LINENO: WARNING: cairo-pdf.h: accepted by the compiler, rejected by the preprocessor!" >&5
30437 $as_echo "$as_me: WARNING: cairo-pdf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30438     { $as_echo "$as_me:$LINENO: WARNING: cairo-pdf.h: proceeding with the compiler's result" >&5
30439 $as_echo "$as_me: WARNING: cairo-pdf.h: proceeding with the compiler's result" >&2;}
30440     ac_header_preproc=yes
30441     ;;
30442   no:yes:* )
30443     { $as_echo "$as_me:$LINENO: WARNING: cairo-pdf.h: present but cannot be compiled" >&5
30444 $as_echo "$as_me: WARNING: cairo-pdf.h: present but cannot be compiled" >&2;}
30445     { $as_echo "$as_me:$LINENO: WARNING: cairo-pdf.h:     check for missing prerequisite headers?" >&5
30446 $as_echo "$as_me: WARNING: cairo-pdf.h:     check for missing prerequisite headers?" >&2;}
30447     { $as_echo "$as_me:$LINENO: WARNING: cairo-pdf.h: see the Autoconf documentation" >&5
30448 $as_echo "$as_me: WARNING: cairo-pdf.h: see the Autoconf documentation" >&2;}
30449     { $as_echo "$as_me:$LINENO: WARNING: cairo-pdf.h:     section \"Present But Cannot Be Compiled\"" >&5
30450 $as_echo "$as_me: WARNING: cairo-pdf.h:     section \"Present But Cannot Be Compiled\"" >&2;}
30451     { $as_echo "$as_me:$LINENO: WARNING: cairo-pdf.h: proceeding with the preprocessor's result" >&5
30452 $as_echo "$as_me: WARNING: cairo-pdf.h: proceeding with the preprocessor's result" >&2;}
30453     { $as_echo "$as_me:$LINENO: WARNING: cairo-pdf.h: in the future, the compiler will take precedence" >&5
30454 $as_echo "$as_me: WARNING: cairo-pdf.h: in the future, the compiler will take precedence" >&2;}
30456     ;;
30457 esac
30458 { $as_echo "$as_me:$LINENO: checking for cairo-pdf.h" >&5
30459 $as_echo_n "checking for cairo-pdf.h... " >&6; }
30460 if test "${ac_cv_header_cairo_pdf_h+set}" = set; then
30461   $as_echo_n "(cached) " >&6
30462 else
30463   ac_cv_header_cairo_pdf_h=$ac_header_preproc
30465 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_cairo_pdf_h" >&5
30466 $as_echo "$ac_cv_header_cairo_pdf_h" >&6; }
30469 if test "x$ac_cv_header_cairo_pdf_h" = x""yes; then
30470   EX_CHECK_STATE=YES
30477           else
30478              { $as_echo "$as_me:$LINENO: WARNING:
30479 ----------------------------------------------------------------------------
30480 * I found a copy of pkgconfig, but there is no cairo-pdf.pc file around.
30481   You may want to set the PKG_CONFIG_PATH variable to point to its
30482   location.
30483 ----------------------------------------------------------------------------
30484                         " >&5
30485 $as_echo "$as_me: WARNING:
30486 ----------------------------------------------------------------------------
30487 * I found a copy of pkgconfig, but there is no cairo-pdf.pc file around.
30488   You may want to set the PKG_CONFIG_PATH variable to point to its
30489   location.
30490 ----------------------------------------------------------------------------
30491                         " >&2;}
30492            fi
30493      fi
30494   fi
30496   if test ${EX_CHECK_STATE} = NO; then
30497      { $as_echo "$as_me:$LINENO: WARNING:
30498 ----------------------------------------------------------------------------
30499 * I could not find a working copy of cairo-pdf. Check config.log for hints on why
30500   this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
30501   so that compiler and the linker can find libcairo and its header files. If
30502   you have not installed cairo-pdf, you can get it either from its original home on
30504      http://cairographics.org/releases/
30506   You can find also find an archive copy on
30508      http://oss.oetiker.ch/rrdtool/pub/libs
30510   The last tested version of cairo-pdf is 1.4.6.
30512        LIBS=$LIBS
30513    LDFLAGS=$LDFLAGS
30514   CPPFLAGS=$CPPFLAGS
30516 ----------------------------------------------------------------------------
30517                 " >&5
30518 $as_echo "$as_me: WARNING:
30519 ----------------------------------------------------------------------------
30520 * I could not find a working copy of cairo-pdf. Check config.log for hints on why
30521   this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
30522   so that compiler and the linker can find libcairo and its header files. If
30523   you have not installed cairo-pdf, you can get it either from its original home on
30525      http://cairographics.org/releases/
30527   You can find also find an archive copy on
30529      http://oss.oetiker.ch/rrdtool/pub/libs
30531   The last tested version of cairo-pdf is 1.4.6.
30533        LIBS=$LIBS
30534    LDFLAGS=$LDFLAGS
30535   CPPFLAGS=$CPPFLAGS
30537 ----------------------------------------------------------------------------
30538                 " >&2;}
30539        EX_CHECK_ALL_ERR=YES
30540        LIBS="${ex_check_save_LIBS}"
30541        CPPFLAGS="${ex_check_save_CPPFLAGS}"
30542        LDFLAGS="${ex_check_save_LDFLAGS}"
30543     fi
30544     ac_ext=c
30545 ac_cpp='$CPP $CPPFLAGS'
30546 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30547 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30548 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30553  ac_ext=c
30554 ac_cpp='$CPP $CPPFLAGS'
30555 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30556 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30557 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30559  EX_CHECK_STATE=NO
30560  ex_check_save_LIBS=${LIBS}
30561  ex_check_save_CPPFLAGS=${CPPFLAGS}
30562  ex_check_save_LDFLAGS=${LDFLAGS}
30563  if test "x""" != "x"; then
30564    CPPFLAGS="$CPPFLAGS -I"""
30565  fi
30566   { $as_echo "$as_me:$LINENO: checking for cairo_ps_surface_create in -lcairo" >&5
30567 $as_echo_n "checking for cairo_ps_surface_create in -lcairo... " >&6; }
30568 if test "${ac_cv_lib_cairo_cairo_ps_surface_create+set}" = set; then
30569   $as_echo_n "(cached) " >&6
30570 else
30571   ac_check_lib_save_LIBS=$LIBS
30572 LIBS="-lcairo  $LIBS"
30573 cat >conftest.$ac_ext <<_ACEOF
30574 /* confdefs.h.  */
30575 _ACEOF
30576 cat confdefs.h >>conftest.$ac_ext
30577 cat >>conftest.$ac_ext <<_ACEOF
30578 /* end confdefs.h.  */
30580 /* Override any GCC internal prototype to avoid an error.
30581    Use char because int might match the return type of a GCC
30582    builtin and then its argument prototype would still apply.  */
30583 #ifdef __cplusplus
30584 extern "C"
30585 #endif
30586 char cairo_ps_surface_create ();
30587 int
30588 main ()
30590 return cairo_ps_surface_create ();
30591   ;
30592   return 0;
30594 _ACEOF
30595 rm -f conftest.$ac_objext conftest$ac_exeext
30596 if { (ac_try="$ac_link"
30597 case "(($ac_try" in
30598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30599   *) ac_try_echo=$ac_try;;
30600 esac
30601 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30602 $as_echo "$ac_try_echo") >&5
30603   (eval "$ac_link") 2>conftest.er1
30604   ac_status=$?
30605   grep -v '^ *+' conftest.er1 >conftest.err
30606   rm -f conftest.er1
30607   cat conftest.err >&5
30608   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30609   (exit $ac_status); } && {
30610          test -z "$ac_c_werror_flag" ||
30611          test ! -s conftest.err
30612        } && test -s conftest$ac_exeext && {
30613          test "$cross_compiling" = yes ||
30614          $as_test_x conftest$ac_exeext
30615        }; then
30616   ac_cv_lib_cairo_cairo_ps_surface_create=yes
30617 else
30618   $as_echo "$as_me: failed program was:" >&5
30619 sed 's/^/| /' conftest.$ac_ext >&5
30621         ac_cv_lib_cairo_cairo_ps_surface_create=no
30624 rm -rf conftest.dSYM
30625 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30626       conftest$ac_exeext conftest.$ac_ext
30627 LIBS=$ac_check_lib_save_LIBS
30629 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cairo_cairo_ps_surface_create" >&5
30630 $as_echo "$ac_cv_lib_cairo_cairo_ps_surface_create" >&6; }
30631 if test "x$ac_cv_lib_cairo_cairo_ps_surface_create" = x""yes; then
30633     if test "${ac_cv_header_cairo_ps_h+set}" = set; then
30634   { $as_echo "$as_me:$LINENO: checking for cairo-ps.h" >&5
30635 $as_echo_n "checking for cairo-ps.h... " >&6; }
30636 if test "${ac_cv_header_cairo_ps_h+set}" = set; then
30637   $as_echo_n "(cached) " >&6
30639 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_cairo_ps_h" >&5
30640 $as_echo "$ac_cv_header_cairo_ps_h" >&6; }
30641 else
30642   # Is the header compilable?
30643 { $as_echo "$as_me:$LINENO: checking cairo-ps.h usability" >&5
30644 $as_echo_n "checking cairo-ps.h usability... " >&6; }
30645 cat >conftest.$ac_ext <<_ACEOF
30646 /* confdefs.h.  */
30647 _ACEOF
30648 cat confdefs.h >>conftest.$ac_ext
30649 cat >>conftest.$ac_ext <<_ACEOF
30650 /* end confdefs.h.  */
30651 $ac_includes_default
30652 #include <cairo-ps.h>
30653 _ACEOF
30654 rm -f conftest.$ac_objext
30655 if { (ac_try="$ac_compile"
30656 case "(($ac_try" in
30657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30658   *) ac_try_echo=$ac_try;;
30659 esac
30660 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30661 $as_echo "$ac_try_echo") >&5
30662   (eval "$ac_compile") 2>conftest.er1
30663   ac_status=$?
30664   grep -v '^ *+' conftest.er1 >conftest.err
30665   rm -f conftest.er1
30666   cat conftest.err >&5
30667   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30668   (exit $ac_status); } && {
30669          test -z "$ac_c_werror_flag" ||
30670          test ! -s conftest.err
30671        } && test -s conftest.$ac_objext; then
30672   ac_header_compiler=yes
30673 else
30674   $as_echo "$as_me: failed program was:" >&5
30675 sed 's/^/| /' conftest.$ac_ext >&5
30677         ac_header_compiler=no
30680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30681 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30682 $as_echo "$ac_header_compiler" >&6; }
30684 # Is the header present?
30685 { $as_echo "$as_me:$LINENO: checking cairo-ps.h presence" >&5
30686 $as_echo_n "checking cairo-ps.h presence... " >&6; }
30687 cat >conftest.$ac_ext <<_ACEOF
30688 /* confdefs.h.  */
30689 _ACEOF
30690 cat confdefs.h >>conftest.$ac_ext
30691 cat >>conftest.$ac_ext <<_ACEOF
30692 /* end confdefs.h.  */
30693 #include <cairo-ps.h>
30694 _ACEOF
30695 if { (ac_try="$ac_cpp conftest.$ac_ext"
30696 case "(($ac_try" in
30697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30698   *) ac_try_echo=$ac_try;;
30699 esac
30700 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30701 $as_echo "$ac_try_echo") >&5
30702   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30703   ac_status=$?
30704   grep -v '^ *+' conftest.er1 >conftest.err
30705   rm -f conftest.er1
30706   cat conftest.err >&5
30707   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30708   (exit $ac_status); } >/dev/null && {
30709          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30710          test ! -s conftest.err
30711        }; then
30712   ac_header_preproc=yes
30713 else
30714   $as_echo "$as_me: failed program was:" >&5
30715 sed 's/^/| /' conftest.$ac_ext >&5
30717   ac_header_preproc=no
30720 rm -f conftest.err conftest.$ac_ext
30721 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30722 $as_echo "$ac_header_preproc" >&6; }
30724 # So?  What about this header?
30725 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30726   yes:no: )
30727     { $as_echo "$as_me:$LINENO: WARNING: cairo-ps.h: accepted by the compiler, rejected by the preprocessor!" >&5
30728 $as_echo "$as_me: WARNING: cairo-ps.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30729     { $as_echo "$as_me:$LINENO: WARNING: cairo-ps.h: proceeding with the compiler's result" >&5
30730 $as_echo "$as_me: WARNING: cairo-ps.h: proceeding with the compiler's result" >&2;}
30731     ac_header_preproc=yes
30732     ;;
30733   no:yes:* )
30734     { $as_echo "$as_me:$LINENO: WARNING: cairo-ps.h: present but cannot be compiled" >&5
30735 $as_echo "$as_me: WARNING: cairo-ps.h: present but cannot be compiled" >&2;}
30736     { $as_echo "$as_me:$LINENO: WARNING: cairo-ps.h:     check for missing prerequisite headers?" >&5
30737 $as_echo "$as_me: WARNING: cairo-ps.h:     check for missing prerequisite headers?" >&2;}
30738     { $as_echo "$as_me:$LINENO: WARNING: cairo-ps.h: see the Autoconf documentation" >&5
30739 $as_echo "$as_me: WARNING: cairo-ps.h: see the Autoconf documentation" >&2;}
30740     { $as_echo "$as_me:$LINENO: WARNING: cairo-ps.h:     section \"Present But Cannot Be Compiled\"" >&5
30741 $as_echo "$as_me: WARNING: cairo-ps.h:     section \"Present But Cannot Be Compiled\"" >&2;}
30742     { $as_echo "$as_me:$LINENO: WARNING: cairo-ps.h: proceeding with the preprocessor's result" >&5
30743 $as_echo "$as_me: WARNING: cairo-ps.h: proceeding with the preprocessor's result" >&2;}
30744     { $as_echo "$as_me:$LINENO: WARNING: cairo-ps.h: in the future, the compiler will take precedence" >&5
30745 $as_echo "$as_me: WARNING: cairo-ps.h: in the future, the compiler will take precedence" >&2;}
30747     ;;
30748 esac
30749 { $as_echo "$as_me:$LINENO: checking for cairo-ps.h" >&5
30750 $as_echo_n "checking for cairo-ps.h... " >&6; }
30751 if test "${ac_cv_header_cairo_ps_h+set}" = set; then
30752   $as_echo_n "(cached) " >&6
30753 else
30754   ac_cv_header_cairo_ps_h=$ac_header_preproc
30756 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_cairo_ps_h" >&5
30757 $as_echo "$ac_cv_header_cairo_ps_h" >&6; }
30760 if test "x$ac_cv_header_cairo_ps_h" = x""yes; then
30761   LIBS="-lcairo ${LIBS}";EX_CHECK_STATE=YES
30767  if test $EX_CHECK_STATE = NO; then
30768         for ac_prog in pkg-config
30770   # Extract the first word of "$ac_prog", so it can be a program name with args.
30771 set dummy $ac_prog; ac_word=$2
30772 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
30773 $as_echo_n "checking for $ac_word... " >&6; }
30774 if test "${ac_cv_prog_PKGCONFIG+set}" = set; then
30775   $as_echo_n "(cached) " >&6
30776 else
30777   if test -n "$PKGCONFIG"; then
30778   ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
30779 else
30780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30781 for as_dir in $PATH
30783   IFS=$as_save_IFS
30784   test -z "$as_dir" && as_dir=.
30785   for ac_exec_ext in '' $ac_executable_extensions; do
30786   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30787     ac_cv_prog_PKGCONFIG="$ac_prog"
30788     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30789     break 2
30790   fi
30791 done
30792 done
30793 IFS=$as_save_IFS
30797 PKGCONFIG=$ac_cv_prog_PKGCONFIG
30798 if test -n "$PKGCONFIG"; then
30799   { $as_echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
30800 $as_echo "$PKGCONFIG" >&6; }
30801 else
30802   { $as_echo "$as_me:$LINENO: result: no" >&5
30803 $as_echo "no" >&6; }
30807   test -n "$PKGCONFIG" && break
30808 done
30809 test -n "$PKGCONFIG" || PKGCONFIG="no"
30811     if test "$PKGCONFIG" != "no"; then
30812           if $PKGCONFIG --exists cairo-ps; then
30813              CPPFLAGS=${CPPFLAGS}" "`$PKGCONFIG --cflags cairo-ps`
30814              LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-L cairo-ps`
30815              LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-other cairo-ps`
30816              LIBS=${LIBS}" "`$PKGCONFIG --libs-only-l cairo-ps`
30817                              unset ac_cv_lib_`echo cairo | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`_cairo_ps_surface_create
30818              { $as_echo "$as_me:$LINENO: checking for cairo_ps_surface_create in -lcairo" >&5
30819 $as_echo_n "checking for cairo_ps_surface_create in -lcairo... " >&6; }
30820 if test "${ac_cv_lib_cairo_cairo_ps_surface_create+set}" = set; then
30821   $as_echo_n "(cached) " >&6
30822 else
30823   ac_check_lib_save_LIBS=$LIBS
30824 LIBS="-lcairo  $LIBS"
30825 cat >conftest.$ac_ext <<_ACEOF
30826 /* confdefs.h.  */
30827 _ACEOF
30828 cat confdefs.h >>conftest.$ac_ext
30829 cat >>conftest.$ac_ext <<_ACEOF
30830 /* end confdefs.h.  */
30832 /* Override any GCC internal prototype to avoid an error.
30833    Use char because int might match the return type of a GCC
30834    builtin and then its argument prototype would still apply.  */
30835 #ifdef __cplusplus
30836 extern "C"
30837 #endif
30838 char cairo_ps_surface_create ();
30839 int
30840 main ()
30842 return cairo_ps_surface_create ();
30843   ;
30844   return 0;
30846 _ACEOF
30847 rm -f conftest.$ac_objext conftest$ac_exeext
30848 if { (ac_try="$ac_link"
30849 case "(($ac_try" in
30850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30851   *) ac_try_echo=$ac_try;;
30852 esac
30853 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30854 $as_echo "$ac_try_echo") >&5
30855   (eval "$ac_link") 2>conftest.er1
30856   ac_status=$?
30857   grep -v '^ *+' conftest.er1 >conftest.err
30858   rm -f conftest.er1
30859   cat conftest.err >&5
30860   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30861   (exit $ac_status); } && {
30862          test -z "$ac_c_werror_flag" ||
30863          test ! -s conftest.err
30864        } && test -s conftest$ac_exeext && {
30865          test "$cross_compiling" = yes ||
30866          $as_test_x conftest$ac_exeext
30867        }; then
30868   ac_cv_lib_cairo_cairo_ps_surface_create=yes
30869 else
30870   $as_echo "$as_me: failed program was:" >&5
30871 sed 's/^/| /' conftest.$ac_ext >&5
30873         ac_cv_lib_cairo_cairo_ps_surface_create=no
30876 rm -rf conftest.dSYM
30877 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30878       conftest$ac_exeext conftest.$ac_ext
30879 LIBS=$ac_check_lib_save_LIBS
30881 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cairo_cairo_ps_surface_create" >&5
30882 $as_echo "$ac_cv_lib_cairo_cairo_ps_surface_create" >&6; }
30883 if test "x$ac_cv_lib_cairo_cairo_ps_surface_create" = x""yes; then
30885                  unset ac_cv_header_`echo cairo-ps.h | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`
30886                  if test "${ac_cv_header_cairo_ps_h+set}" = set; then
30887   { $as_echo "$as_me:$LINENO: checking for cairo-ps.h" >&5
30888 $as_echo_n "checking for cairo-ps.h... " >&6; }
30889 if test "${ac_cv_header_cairo_ps_h+set}" = set; then
30890   $as_echo_n "(cached) " >&6
30892 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_cairo_ps_h" >&5
30893 $as_echo "$ac_cv_header_cairo_ps_h" >&6; }
30894 else
30895   # Is the header compilable?
30896 { $as_echo "$as_me:$LINENO: checking cairo-ps.h usability" >&5
30897 $as_echo_n "checking cairo-ps.h usability... " >&6; }
30898 cat >conftest.$ac_ext <<_ACEOF
30899 /* confdefs.h.  */
30900 _ACEOF
30901 cat confdefs.h >>conftest.$ac_ext
30902 cat >>conftest.$ac_ext <<_ACEOF
30903 /* end confdefs.h.  */
30904 $ac_includes_default
30905 #include <cairo-ps.h>
30906 _ACEOF
30907 rm -f conftest.$ac_objext
30908 if { (ac_try="$ac_compile"
30909 case "(($ac_try" in
30910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30911   *) ac_try_echo=$ac_try;;
30912 esac
30913 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30914 $as_echo "$ac_try_echo") >&5
30915   (eval "$ac_compile") 2>conftest.er1
30916   ac_status=$?
30917   grep -v '^ *+' conftest.er1 >conftest.err
30918   rm -f conftest.er1
30919   cat conftest.err >&5
30920   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30921   (exit $ac_status); } && {
30922          test -z "$ac_c_werror_flag" ||
30923          test ! -s conftest.err
30924        } && test -s conftest.$ac_objext; then
30925   ac_header_compiler=yes
30926 else
30927   $as_echo "$as_me: failed program was:" >&5
30928 sed 's/^/| /' conftest.$ac_ext >&5
30930         ac_header_compiler=no
30933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30934 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30935 $as_echo "$ac_header_compiler" >&6; }
30937 # Is the header present?
30938 { $as_echo "$as_me:$LINENO: checking cairo-ps.h presence" >&5
30939 $as_echo_n "checking cairo-ps.h presence... " >&6; }
30940 cat >conftest.$ac_ext <<_ACEOF
30941 /* confdefs.h.  */
30942 _ACEOF
30943 cat confdefs.h >>conftest.$ac_ext
30944 cat >>conftest.$ac_ext <<_ACEOF
30945 /* end confdefs.h.  */
30946 #include <cairo-ps.h>
30947 _ACEOF
30948 if { (ac_try="$ac_cpp conftest.$ac_ext"
30949 case "(($ac_try" in
30950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30951   *) ac_try_echo=$ac_try;;
30952 esac
30953 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30954 $as_echo "$ac_try_echo") >&5
30955   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30956   ac_status=$?
30957   grep -v '^ *+' conftest.er1 >conftest.err
30958   rm -f conftest.er1
30959   cat conftest.err >&5
30960   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30961   (exit $ac_status); } >/dev/null && {
30962          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30963          test ! -s conftest.err
30964        }; then
30965   ac_header_preproc=yes
30966 else
30967   $as_echo "$as_me: failed program was:" >&5
30968 sed 's/^/| /' conftest.$ac_ext >&5
30970   ac_header_preproc=no
30973 rm -f conftest.err conftest.$ac_ext
30974 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30975 $as_echo "$ac_header_preproc" >&6; }
30977 # So?  What about this header?
30978 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30979   yes:no: )
30980     { $as_echo "$as_me:$LINENO: WARNING: cairo-ps.h: accepted by the compiler, rejected by the preprocessor!" >&5
30981 $as_echo "$as_me: WARNING: cairo-ps.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30982     { $as_echo "$as_me:$LINENO: WARNING: cairo-ps.h: proceeding with the compiler's result" >&5
30983 $as_echo "$as_me: WARNING: cairo-ps.h: proceeding with the compiler's result" >&2;}
30984     ac_header_preproc=yes
30985     ;;
30986   no:yes:* )
30987     { $as_echo "$as_me:$LINENO: WARNING: cairo-ps.h: present but cannot be compiled" >&5
30988 $as_echo "$as_me: WARNING: cairo-ps.h: present but cannot be compiled" >&2;}
30989     { $as_echo "$as_me:$LINENO: WARNING: cairo-ps.h:     check for missing prerequisite headers?" >&5
30990 $as_echo "$as_me: WARNING: cairo-ps.h:     check for missing prerequisite headers?" >&2;}
30991     { $as_echo "$as_me:$LINENO: WARNING: cairo-ps.h: see the Autoconf documentation" >&5
30992 $as_echo "$as_me: WARNING: cairo-ps.h: see the Autoconf documentation" >&2;}
30993     { $as_echo "$as_me:$LINENO: WARNING: cairo-ps.h:     section \"Present But Cannot Be Compiled\"" >&5
30994 $as_echo "$as_me: WARNING: cairo-ps.h:     section \"Present But Cannot Be Compiled\"" >&2;}
30995     { $as_echo "$as_me:$LINENO: WARNING: cairo-ps.h: proceeding with the preprocessor's result" >&5
30996 $as_echo "$as_me: WARNING: cairo-ps.h: proceeding with the preprocessor's result" >&2;}
30997     { $as_echo "$as_me:$LINENO: WARNING: cairo-ps.h: in the future, the compiler will take precedence" >&5
30998 $as_echo "$as_me: WARNING: cairo-ps.h: in the future, the compiler will take precedence" >&2;}
31000     ;;
31001 esac
31002 { $as_echo "$as_me:$LINENO: checking for cairo-ps.h" >&5
31003 $as_echo_n "checking for cairo-ps.h... " >&6; }
31004 if test "${ac_cv_header_cairo_ps_h+set}" = set; then
31005   $as_echo_n "(cached) " >&6
31006 else
31007   ac_cv_header_cairo_ps_h=$ac_header_preproc
31009 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_cairo_ps_h" >&5
31010 $as_echo "$ac_cv_header_cairo_ps_h" >&6; }
31013 if test "x$ac_cv_header_cairo_ps_h" = x""yes; then
31014   EX_CHECK_STATE=YES
31021           else
31022              { $as_echo "$as_me:$LINENO: WARNING:
31023 ----------------------------------------------------------------------------
31024 * I found a copy of pkgconfig, but there is no cairo-ps.pc file around.
31025   You may want to set the PKG_CONFIG_PATH variable to point to its
31026   location.
31027 ----------------------------------------------------------------------------
31028                         " >&5
31029 $as_echo "$as_me: WARNING:
31030 ----------------------------------------------------------------------------
31031 * I found a copy of pkgconfig, but there is no cairo-ps.pc file around.
31032   You may want to set the PKG_CONFIG_PATH variable to point to its
31033   location.
31034 ----------------------------------------------------------------------------
31035                         " >&2;}
31036            fi
31037      fi
31038   fi
31040   if test ${EX_CHECK_STATE} = NO; then
31041      { $as_echo "$as_me:$LINENO: WARNING:
31042 ----------------------------------------------------------------------------
31043 * I could not find a working copy of cairo-ps. Check config.log for hints on why
31044   this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
31045   so that compiler and the linker can find libcairo and its header files. If
31046   you have not installed cairo-ps, you can get it either from its original home on
31048      http://cairographics.org/releases/
31050   You can find also find an archive copy on
31052      http://oss.oetiker.ch/rrdtool/pub/libs
31054   The last tested version of cairo-ps is 1.4.6.
31056        LIBS=$LIBS
31057    LDFLAGS=$LDFLAGS
31058   CPPFLAGS=$CPPFLAGS
31060 ----------------------------------------------------------------------------
31061                 " >&5
31062 $as_echo "$as_me: WARNING:
31063 ----------------------------------------------------------------------------
31064 * I could not find a working copy of cairo-ps. Check config.log for hints on why
31065   this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
31066   so that compiler and the linker can find libcairo and its header files. If
31067   you have not installed cairo-ps, you can get it either from its original home on
31069      http://cairographics.org/releases/
31071   You can find also find an archive copy on
31073      http://oss.oetiker.ch/rrdtool/pub/libs
31075   The last tested version of cairo-ps is 1.4.6.
31077        LIBS=$LIBS
31078    LDFLAGS=$LDFLAGS
31079   CPPFLAGS=$CPPFLAGS
31081 ----------------------------------------------------------------------------
31082                 " >&2;}
31083        EX_CHECK_ALL_ERR=YES
31084        LIBS="${ex_check_save_LIBS}"
31085        CPPFLAGS="${ex_check_save_CPPFLAGS}"
31086        LDFLAGS="${ex_check_save_LDFLAGS}"
31087     fi
31088     ac_ext=c
31089 ac_cpp='$CPP $CPPFLAGS'
31090 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31091 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31092 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31097  ac_ext=c
31098 ac_cpp='$CPP $CPPFLAGS'
31099 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31100 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31101 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31103  EX_CHECK_STATE=NO
31104  ex_check_save_LIBS=${LIBS}
31105  ex_check_save_CPPFLAGS=${CPPFLAGS}
31106  ex_check_save_LDFLAGS=${LDFLAGS}
31107  if test "x""" != "x"; then
31108    CPPFLAGS="$CPPFLAGS -I"""
31109  fi
31110   { $as_echo "$as_me:$LINENO: checking for glib_check_version in -lglib-2.0" >&5
31111 $as_echo_n "checking for glib_check_version in -lglib-2.0... " >&6; }
31112 if test "${ac_cv_lib_glib_2_0_glib_check_version+set}" = set; then
31113   $as_echo_n "(cached) " >&6
31114 else
31115   ac_check_lib_save_LIBS=$LIBS
31116 LIBS="-lglib-2.0  $LIBS"
31117 cat >conftest.$ac_ext <<_ACEOF
31118 /* confdefs.h.  */
31119 _ACEOF
31120 cat confdefs.h >>conftest.$ac_ext
31121 cat >>conftest.$ac_ext <<_ACEOF
31122 /* end confdefs.h.  */
31124 /* Override any GCC internal prototype to avoid an error.
31125    Use char because int might match the return type of a GCC
31126    builtin and then its argument prototype would still apply.  */
31127 #ifdef __cplusplus
31128 extern "C"
31129 #endif
31130 char glib_check_version ();
31131 int
31132 main ()
31134 return glib_check_version ();
31135   ;
31136   return 0;
31138 _ACEOF
31139 rm -f conftest.$ac_objext conftest$ac_exeext
31140 if { (ac_try="$ac_link"
31141 case "(($ac_try" in
31142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31143   *) ac_try_echo=$ac_try;;
31144 esac
31145 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31146 $as_echo "$ac_try_echo") >&5
31147   (eval "$ac_link") 2>conftest.er1
31148   ac_status=$?
31149   grep -v '^ *+' conftest.er1 >conftest.err
31150   rm -f conftest.er1
31151   cat conftest.err >&5
31152   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31153   (exit $ac_status); } && {
31154          test -z "$ac_c_werror_flag" ||
31155          test ! -s conftest.err
31156        } && test -s conftest$ac_exeext && {
31157          test "$cross_compiling" = yes ||
31158          $as_test_x conftest$ac_exeext
31159        }; then
31160   ac_cv_lib_glib_2_0_glib_check_version=yes
31161 else
31162   $as_echo "$as_me: failed program was:" >&5
31163 sed 's/^/| /' conftest.$ac_ext >&5
31165         ac_cv_lib_glib_2_0_glib_check_version=no
31168 rm -rf conftest.dSYM
31169 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31170       conftest$ac_exeext conftest.$ac_ext
31171 LIBS=$ac_check_lib_save_LIBS
31173 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_glib_2_0_glib_check_version" >&5
31174 $as_echo "$ac_cv_lib_glib_2_0_glib_check_version" >&6; }
31175 if test "x$ac_cv_lib_glib_2_0_glib_check_version" = x""yes; then
31177     if test "${ac_cv_header_glib_h+set}" = set; then
31178   { $as_echo "$as_me:$LINENO: checking for glib.h" >&5
31179 $as_echo_n "checking for glib.h... " >&6; }
31180 if test "${ac_cv_header_glib_h+set}" = set; then
31181   $as_echo_n "(cached) " >&6
31183 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_glib_h" >&5
31184 $as_echo "$ac_cv_header_glib_h" >&6; }
31185 else
31186   # Is the header compilable?
31187 { $as_echo "$as_me:$LINENO: checking glib.h usability" >&5
31188 $as_echo_n "checking glib.h usability... " >&6; }
31189 cat >conftest.$ac_ext <<_ACEOF
31190 /* confdefs.h.  */
31191 _ACEOF
31192 cat confdefs.h >>conftest.$ac_ext
31193 cat >>conftest.$ac_ext <<_ACEOF
31194 /* end confdefs.h.  */
31195 $ac_includes_default
31196 #include <glib.h>
31197 _ACEOF
31198 rm -f conftest.$ac_objext
31199 if { (ac_try="$ac_compile"
31200 case "(($ac_try" in
31201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31202   *) ac_try_echo=$ac_try;;
31203 esac
31204 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31205 $as_echo "$ac_try_echo") >&5
31206   (eval "$ac_compile") 2>conftest.er1
31207   ac_status=$?
31208   grep -v '^ *+' conftest.er1 >conftest.err
31209   rm -f conftest.er1
31210   cat conftest.err >&5
31211   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31212   (exit $ac_status); } && {
31213          test -z "$ac_c_werror_flag" ||
31214          test ! -s conftest.err
31215        } && test -s conftest.$ac_objext; then
31216   ac_header_compiler=yes
31217 else
31218   $as_echo "$as_me: failed program was:" >&5
31219 sed 's/^/| /' conftest.$ac_ext >&5
31221         ac_header_compiler=no
31224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31225 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31226 $as_echo "$ac_header_compiler" >&6; }
31228 # Is the header present?
31229 { $as_echo "$as_me:$LINENO: checking glib.h presence" >&5
31230 $as_echo_n "checking glib.h presence... " >&6; }
31231 cat >conftest.$ac_ext <<_ACEOF
31232 /* confdefs.h.  */
31233 _ACEOF
31234 cat confdefs.h >>conftest.$ac_ext
31235 cat >>conftest.$ac_ext <<_ACEOF
31236 /* end confdefs.h.  */
31237 #include <glib.h>
31238 _ACEOF
31239 if { (ac_try="$ac_cpp conftest.$ac_ext"
31240 case "(($ac_try" in
31241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31242   *) ac_try_echo=$ac_try;;
31243 esac
31244 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31245 $as_echo "$ac_try_echo") >&5
31246   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31247   ac_status=$?
31248   grep -v '^ *+' conftest.er1 >conftest.err
31249   rm -f conftest.er1
31250   cat conftest.err >&5
31251   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31252   (exit $ac_status); } >/dev/null && {
31253          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31254          test ! -s conftest.err
31255        }; then
31256   ac_header_preproc=yes
31257 else
31258   $as_echo "$as_me: failed program was:" >&5
31259 sed 's/^/| /' conftest.$ac_ext >&5
31261   ac_header_preproc=no
31264 rm -f conftest.err conftest.$ac_ext
31265 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31266 $as_echo "$ac_header_preproc" >&6; }
31268 # So?  What about this header?
31269 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31270   yes:no: )
31271     { $as_echo "$as_me:$LINENO: WARNING: glib.h: accepted by the compiler, rejected by the preprocessor!" >&5
31272 $as_echo "$as_me: WARNING: glib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31273     { $as_echo "$as_me:$LINENO: WARNING: glib.h: proceeding with the compiler's result" >&5
31274 $as_echo "$as_me: WARNING: glib.h: proceeding with the compiler's result" >&2;}
31275     ac_header_preproc=yes
31276     ;;
31277   no:yes:* )
31278     { $as_echo "$as_me:$LINENO: WARNING: glib.h: present but cannot be compiled" >&5
31279 $as_echo "$as_me: WARNING: glib.h: present but cannot be compiled" >&2;}
31280     { $as_echo "$as_me:$LINENO: WARNING: glib.h:     check for missing prerequisite headers?" >&5
31281 $as_echo "$as_me: WARNING: glib.h:     check for missing prerequisite headers?" >&2;}
31282     { $as_echo "$as_me:$LINENO: WARNING: glib.h: see the Autoconf documentation" >&5
31283 $as_echo "$as_me: WARNING: glib.h: see the Autoconf documentation" >&2;}
31284     { $as_echo "$as_me:$LINENO: WARNING: glib.h:     section \"Present But Cannot Be Compiled\"" >&5
31285 $as_echo "$as_me: WARNING: glib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
31286     { $as_echo "$as_me:$LINENO: WARNING: glib.h: proceeding with the preprocessor's result" >&5
31287 $as_echo "$as_me: WARNING: glib.h: proceeding with the preprocessor's result" >&2;}
31288     { $as_echo "$as_me:$LINENO: WARNING: glib.h: in the future, the compiler will take precedence" >&5
31289 $as_echo "$as_me: WARNING: glib.h: in the future, the compiler will take precedence" >&2;}
31291     ;;
31292 esac
31293 { $as_echo "$as_me:$LINENO: checking for glib.h" >&5
31294 $as_echo_n "checking for glib.h... " >&6; }
31295 if test "${ac_cv_header_glib_h+set}" = set; then
31296   $as_echo_n "(cached) " >&6
31297 else
31298   ac_cv_header_glib_h=$ac_header_preproc
31300 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_glib_h" >&5
31301 $as_echo "$ac_cv_header_glib_h" >&6; }
31304 if test "x$ac_cv_header_glib_h" = x""yes; then
31305   LIBS="-lglib-2.0 ${LIBS}";EX_CHECK_STATE=YES
31311  if test $EX_CHECK_STATE = NO; then
31312         for ac_prog in pkg-config
31314   # Extract the first word of "$ac_prog", so it can be a program name with args.
31315 set dummy $ac_prog; ac_word=$2
31316 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
31317 $as_echo_n "checking for $ac_word... " >&6; }
31318 if test "${ac_cv_prog_PKGCONFIG+set}" = set; then
31319   $as_echo_n "(cached) " >&6
31320 else
31321   if test -n "$PKGCONFIG"; then
31322   ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
31323 else
31324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31325 for as_dir in $PATH
31327   IFS=$as_save_IFS
31328   test -z "$as_dir" && as_dir=.
31329   for ac_exec_ext in '' $ac_executable_extensions; do
31330   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31331     ac_cv_prog_PKGCONFIG="$ac_prog"
31332     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31333     break 2
31334   fi
31335 done
31336 done
31337 IFS=$as_save_IFS
31341 PKGCONFIG=$ac_cv_prog_PKGCONFIG
31342 if test -n "$PKGCONFIG"; then
31343   { $as_echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
31344 $as_echo "$PKGCONFIG" >&6; }
31345 else
31346   { $as_echo "$as_me:$LINENO: result: no" >&5
31347 $as_echo "no" >&6; }
31351   test -n "$PKGCONFIG" && break
31352 done
31353 test -n "$PKGCONFIG" || PKGCONFIG="no"
31355     if test "$PKGCONFIG" != "no"; then
31356           if $PKGCONFIG --exists glib-2.0; then
31357              CPPFLAGS=${CPPFLAGS}" "`$PKGCONFIG --cflags glib-2.0`
31358              LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-L glib-2.0`
31359              LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-other glib-2.0`
31360              LIBS=${LIBS}" "`$PKGCONFIG --libs-only-l glib-2.0`
31361                              unset ac_cv_lib_`echo glib-2.0 | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`_glib_check_version
31362              { $as_echo "$as_me:$LINENO: checking for glib_check_version in -lglib-2.0" >&5
31363 $as_echo_n "checking for glib_check_version in -lglib-2.0... " >&6; }
31364 if test "${ac_cv_lib_glib_2_0_glib_check_version+set}" = set; then
31365   $as_echo_n "(cached) " >&6
31366 else
31367   ac_check_lib_save_LIBS=$LIBS
31368 LIBS="-lglib-2.0  $LIBS"
31369 cat >conftest.$ac_ext <<_ACEOF
31370 /* confdefs.h.  */
31371 _ACEOF
31372 cat confdefs.h >>conftest.$ac_ext
31373 cat >>conftest.$ac_ext <<_ACEOF
31374 /* end confdefs.h.  */
31376 /* Override any GCC internal prototype to avoid an error.
31377    Use char because int might match the return type of a GCC
31378    builtin and then its argument prototype would still apply.  */
31379 #ifdef __cplusplus
31380 extern "C"
31381 #endif
31382 char glib_check_version ();
31383 int
31384 main ()
31386 return glib_check_version ();
31387   ;
31388   return 0;
31390 _ACEOF
31391 rm -f conftest.$ac_objext conftest$ac_exeext
31392 if { (ac_try="$ac_link"
31393 case "(($ac_try" in
31394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31395   *) ac_try_echo=$ac_try;;
31396 esac
31397 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31398 $as_echo "$ac_try_echo") >&5
31399   (eval "$ac_link") 2>conftest.er1
31400   ac_status=$?
31401   grep -v '^ *+' conftest.er1 >conftest.err
31402   rm -f conftest.er1
31403   cat conftest.err >&5
31404   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31405   (exit $ac_status); } && {
31406          test -z "$ac_c_werror_flag" ||
31407          test ! -s conftest.err
31408        } && test -s conftest$ac_exeext && {
31409          test "$cross_compiling" = yes ||
31410          $as_test_x conftest$ac_exeext
31411        }; then
31412   ac_cv_lib_glib_2_0_glib_check_version=yes
31413 else
31414   $as_echo "$as_me: failed program was:" >&5
31415 sed 's/^/| /' conftest.$ac_ext >&5
31417         ac_cv_lib_glib_2_0_glib_check_version=no
31420 rm -rf conftest.dSYM
31421 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31422       conftest$ac_exeext conftest.$ac_ext
31423 LIBS=$ac_check_lib_save_LIBS
31425 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_glib_2_0_glib_check_version" >&5
31426 $as_echo "$ac_cv_lib_glib_2_0_glib_check_version" >&6; }
31427 if test "x$ac_cv_lib_glib_2_0_glib_check_version" = x""yes; then
31429                  unset ac_cv_header_`echo glib.h | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`
31430                  if test "${ac_cv_header_glib_h+set}" = set; then
31431   { $as_echo "$as_me:$LINENO: checking for glib.h" >&5
31432 $as_echo_n "checking for glib.h... " >&6; }
31433 if test "${ac_cv_header_glib_h+set}" = set; then
31434   $as_echo_n "(cached) " >&6
31436 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_glib_h" >&5
31437 $as_echo "$ac_cv_header_glib_h" >&6; }
31438 else
31439   # Is the header compilable?
31440 { $as_echo "$as_me:$LINENO: checking glib.h usability" >&5
31441 $as_echo_n "checking glib.h usability... " >&6; }
31442 cat >conftest.$ac_ext <<_ACEOF
31443 /* confdefs.h.  */
31444 _ACEOF
31445 cat confdefs.h >>conftest.$ac_ext
31446 cat >>conftest.$ac_ext <<_ACEOF
31447 /* end confdefs.h.  */
31448 $ac_includes_default
31449 #include <glib.h>
31450 _ACEOF
31451 rm -f conftest.$ac_objext
31452 if { (ac_try="$ac_compile"
31453 case "(($ac_try" in
31454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31455   *) ac_try_echo=$ac_try;;
31456 esac
31457 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31458 $as_echo "$ac_try_echo") >&5
31459   (eval "$ac_compile") 2>conftest.er1
31460   ac_status=$?
31461   grep -v '^ *+' conftest.er1 >conftest.err
31462   rm -f conftest.er1
31463   cat conftest.err >&5
31464   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31465   (exit $ac_status); } && {
31466          test -z "$ac_c_werror_flag" ||
31467          test ! -s conftest.err
31468        } && test -s conftest.$ac_objext; then
31469   ac_header_compiler=yes
31470 else
31471   $as_echo "$as_me: failed program was:" >&5
31472 sed 's/^/| /' conftest.$ac_ext >&5
31474         ac_header_compiler=no
31477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31478 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31479 $as_echo "$ac_header_compiler" >&6; }
31481 # Is the header present?
31482 { $as_echo "$as_me:$LINENO: checking glib.h presence" >&5
31483 $as_echo_n "checking glib.h presence... " >&6; }
31484 cat >conftest.$ac_ext <<_ACEOF
31485 /* confdefs.h.  */
31486 _ACEOF
31487 cat confdefs.h >>conftest.$ac_ext
31488 cat >>conftest.$ac_ext <<_ACEOF
31489 /* end confdefs.h.  */
31490 #include <glib.h>
31491 _ACEOF
31492 if { (ac_try="$ac_cpp conftest.$ac_ext"
31493 case "(($ac_try" in
31494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31495   *) ac_try_echo=$ac_try;;
31496 esac
31497 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31498 $as_echo "$ac_try_echo") >&5
31499   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31500   ac_status=$?
31501   grep -v '^ *+' conftest.er1 >conftest.err
31502   rm -f conftest.er1
31503   cat conftest.err >&5
31504   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31505   (exit $ac_status); } >/dev/null && {
31506          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31507          test ! -s conftest.err
31508        }; then
31509   ac_header_preproc=yes
31510 else
31511   $as_echo "$as_me: failed program was:" >&5
31512 sed 's/^/| /' conftest.$ac_ext >&5
31514   ac_header_preproc=no
31517 rm -f conftest.err conftest.$ac_ext
31518 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31519 $as_echo "$ac_header_preproc" >&6; }
31521 # So?  What about this header?
31522 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31523   yes:no: )
31524     { $as_echo "$as_me:$LINENO: WARNING: glib.h: accepted by the compiler, rejected by the preprocessor!" >&5
31525 $as_echo "$as_me: WARNING: glib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31526     { $as_echo "$as_me:$LINENO: WARNING: glib.h: proceeding with the compiler's result" >&5
31527 $as_echo "$as_me: WARNING: glib.h: proceeding with the compiler's result" >&2;}
31528     ac_header_preproc=yes
31529     ;;
31530   no:yes:* )
31531     { $as_echo "$as_me:$LINENO: WARNING: glib.h: present but cannot be compiled" >&5
31532 $as_echo "$as_me: WARNING: glib.h: present but cannot be compiled" >&2;}
31533     { $as_echo "$as_me:$LINENO: WARNING: glib.h:     check for missing prerequisite headers?" >&5
31534 $as_echo "$as_me: WARNING: glib.h:     check for missing prerequisite headers?" >&2;}
31535     { $as_echo "$as_me:$LINENO: WARNING: glib.h: see the Autoconf documentation" >&5
31536 $as_echo "$as_me: WARNING: glib.h: see the Autoconf documentation" >&2;}
31537     { $as_echo "$as_me:$LINENO: WARNING: glib.h:     section \"Present But Cannot Be Compiled\"" >&5
31538 $as_echo "$as_me: WARNING: glib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
31539     { $as_echo "$as_me:$LINENO: WARNING: glib.h: proceeding with the preprocessor's result" >&5
31540 $as_echo "$as_me: WARNING: glib.h: proceeding with the preprocessor's result" >&2;}
31541     { $as_echo "$as_me:$LINENO: WARNING: glib.h: in the future, the compiler will take precedence" >&5
31542 $as_echo "$as_me: WARNING: glib.h: in the future, the compiler will take precedence" >&2;}
31544     ;;
31545 esac
31546 { $as_echo "$as_me:$LINENO: checking for glib.h" >&5
31547 $as_echo_n "checking for glib.h... " >&6; }
31548 if test "${ac_cv_header_glib_h+set}" = set; then
31549   $as_echo_n "(cached) " >&6
31550 else
31551   ac_cv_header_glib_h=$ac_header_preproc
31553 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_glib_h" >&5
31554 $as_echo "$ac_cv_header_glib_h" >&6; }
31557 if test "x$ac_cv_header_glib_h" = x""yes; then
31558   EX_CHECK_STATE=YES
31565           else
31566              { $as_echo "$as_me:$LINENO: WARNING:
31567 ----------------------------------------------------------------------------
31568 * I found a copy of pkgconfig, but there is no glib-2.0.pc file around.
31569   You may want to set the PKG_CONFIG_PATH variable to point to its
31570   location.
31571 ----------------------------------------------------------------------------
31572                         " >&5
31573 $as_echo "$as_me: WARNING:
31574 ----------------------------------------------------------------------------
31575 * I found a copy of pkgconfig, but there is no glib-2.0.pc file around.
31576   You may want to set the PKG_CONFIG_PATH variable to point to its
31577   location.
31578 ----------------------------------------------------------------------------
31579                         " >&2;}
31580            fi
31581      fi
31582   fi
31584   if test ${EX_CHECK_STATE} = NO; then
31585      { $as_echo "$as_me:$LINENO: WARNING:
31586 ----------------------------------------------------------------------------
31587 * I could not find a working copy of glib-2.0. Check config.log for hints on why
31588   this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
31589   so that compiler and the linker can find libglib-2.0 and its header files. If
31590   you have not installed glib-2.0, you can get it either from its original home on
31592      ftp://ftp.gtk.org/pub/glib/2.12/
31594   You can find also find an archive copy on
31596      http://oss.oetiker.ch/rrdtool/pub/libs
31598   The last tested version of glib-2.0 is 2.12.12.
31600        LIBS=$LIBS
31601    LDFLAGS=$LDFLAGS
31602   CPPFLAGS=$CPPFLAGS
31604 ----------------------------------------------------------------------------
31605                 " >&5
31606 $as_echo "$as_me: WARNING:
31607 ----------------------------------------------------------------------------
31608 * I could not find a working copy of glib-2.0. Check config.log for hints on why
31609   this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
31610   so that compiler and the linker can find libglib-2.0 and its header files. If
31611   you have not installed glib-2.0, you can get it either from its original home on
31613      ftp://ftp.gtk.org/pub/glib/2.12/
31615   You can find also find an archive copy on
31617      http://oss.oetiker.ch/rrdtool/pub/libs
31619   The last tested version of glib-2.0 is 2.12.12.
31621        LIBS=$LIBS
31622    LDFLAGS=$LDFLAGS
31623   CPPFLAGS=$CPPFLAGS
31625 ----------------------------------------------------------------------------
31626                 " >&2;}
31627        EX_CHECK_ALL_ERR=YES
31628        LIBS="${ex_check_save_LIBS}"
31629        CPPFLAGS="${ex_check_save_CPPFLAGS}"
31630        LDFLAGS="${ex_check_save_LDFLAGS}"
31631     fi
31632     ac_ext=c
31633 ac_cpp='$CPP $CPPFLAGS'
31634 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31635 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31636 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31641  ac_ext=c
31642 ac_cpp='$CPP $CPPFLAGS'
31643 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31644 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31645 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31647  EX_CHECK_STATE=NO
31648  ex_check_save_LIBS=${LIBS}
31649  ex_check_save_CPPFLAGS=${CPPFLAGS}
31650  ex_check_save_LDFLAGS=${LDFLAGS}
31651  if test "x""" != "x"; then
31652    CPPFLAGS="$CPPFLAGS -I"""
31653  fi
31654   { $as_echo "$as_me:$LINENO: checking for pango_cairo_context_set_font_options in -lpango-1.0" >&5
31655 $as_echo_n "checking for pango_cairo_context_set_font_options in -lpango-1.0... " >&6; }
31656 if test "${ac_cv_lib_pango_1_0_pango_cairo_context_set_font_options+set}" = set; then
31657   $as_echo_n "(cached) " >&6
31658 else
31659   ac_check_lib_save_LIBS=$LIBS
31660 LIBS="-lpango-1.0  $LIBS"
31661 cat >conftest.$ac_ext <<_ACEOF
31662 /* confdefs.h.  */
31663 _ACEOF
31664 cat confdefs.h >>conftest.$ac_ext
31665 cat >>conftest.$ac_ext <<_ACEOF
31666 /* end confdefs.h.  */
31668 /* Override any GCC internal prototype to avoid an error.
31669    Use char because int might match the return type of a GCC
31670    builtin and then its argument prototype would still apply.  */
31671 #ifdef __cplusplus
31672 extern "C"
31673 #endif
31674 char pango_cairo_context_set_font_options ();
31675 int
31676 main ()
31678 return pango_cairo_context_set_font_options ();
31679   ;
31680   return 0;
31682 _ACEOF
31683 rm -f conftest.$ac_objext conftest$ac_exeext
31684 if { (ac_try="$ac_link"
31685 case "(($ac_try" in
31686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31687   *) ac_try_echo=$ac_try;;
31688 esac
31689 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31690 $as_echo "$ac_try_echo") >&5
31691   (eval "$ac_link") 2>conftest.er1
31692   ac_status=$?
31693   grep -v '^ *+' conftest.er1 >conftest.err
31694   rm -f conftest.er1
31695   cat conftest.err >&5
31696   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31697   (exit $ac_status); } && {
31698          test -z "$ac_c_werror_flag" ||
31699          test ! -s conftest.err
31700        } && test -s conftest$ac_exeext && {
31701          test "$cross_compiling" = yes ||
31702          $as_test_x conftest$ac_exeext
31703        }; then
31704   ac_cv_lib_pango_1_0_pango_cairo_context_set_font_options=yes
31705 else
31706   $as_echo "$as_me: failed program was:" >&5
31707 sed 's/^/| /' conftest.$ac_ext >&5
31709         ac_cv_lib_pango_1_0_pango_cairo_context_set_font_options=no
31712 rm -rf conftest.dSYM
31713 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31714       conftest$ac_exeext conftest.$ac_ext
31715 LIBS=$ac_check_lib_save_LIBS
31717 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pango_1_0_pango_cairo_context_set_font_options" >&5
31718 $as_echo "$ac_cv_lib_pango_1_0_pango_cairo_context_set_font_options" >&6; }
31719 if test "x$ac_cv_lib_pango_1_0_pango_cairo_context_set_font_options" = x""yes; then
31721     if test "${ac_cv_header_pango_pango_h+set}" = set; then
31722   { $as_echo "$as_me:$LINENO: checking for pango/pango.h" >&5
31723 $as_echo_n "checking for pango/pango.h... " >&6; }
31724 if test "${ac_cv_header_pango_pango_h+set}" = set; then
31725   $as_echo_n "(cached) " >&6
31727 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pango_pango_h" >&5
31728 $as_echo "$ac_cv_header_pango_pango_h" >&6; }
31729 else
31730   # Is the header compilable?
31731 { $as_echo "$as_me:$LINENO: checking pango/pango.h usability" >&5
31732 $as_echo_n "checking pango/pango.h usability... " >&6; }
31733 cat >conftest.$ac_ext <<_ACEOF
31734 /* confdefs.h.  */
31735 _ACEOF
31736 cat confdefs.h >>conftest.$ac_ext
31737 cat >>conftest.$ac_ext <<_ACEOF
31738 /* end confdefs.h.  */
31739 $ac_includes_default
31740 #include <pango/pango.h>
31741 _ACEOF
31742 rm -f conftest.$ac_objext
31743 if { (ac_try="$ac_compile"
31744 case "(($ac_try" in
31745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31746   *) ac_try_echo=$ac_try;;
31747 esac
31748 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31749 $as_echo "$ac_try_echo") >&5
31750   (eval "$ac_compile") 2>conftest.er1
31751   ac_status=$?
31752   grep -v '^ *+' conftest.er1 >conftest.err
31753   rm -f conftest.er1
31754   cat conftest.err >&5
31755   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31756   (exit $ac_status); } && {
31757          test -z "$ac_c_werror_flag" ||
31758          test ! -s conftest.err
31759        } && test -s conftest.$ac_objext; then
31760   ac_header_compiler=yes
31761 else
31762   $as_echo "$as_me: failed program was:" >&5
31763 sed 's/^/| /' conftest.$ac_ext >&5
31765         ac_header_compiler=no
31768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31769 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31770 $as_echo "$ac_header_compiler" >&6; }
31772 # Is the header present?
31773 { $as_echo "$as_me:$LINENO: checking pango/pango.h presence" >&5
31774 $as_echo_n "checking pango/pango.h presence... " >&6; }
31775 cat >conftest.$ac_ext <<_ACEOF
31776 /* confdefs.h.  */
31777 _ACEOF
31778 cat confdefs.h >>conftest.$ac_ext
31779 cat >>conftest.$ac_ext <<_ACEOF
31780 /* end confdefs.h.  */
31781 #include <pango/pango.h>
31782 _ACEOF
31783 if { (ac_try="$ac_cpp conftest.$ac_ext"
31784 case "(($ac_try" in
31785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31786   *) ac_try_echo=$ac_try;;
31787 esac
31788 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31789 $as_echo "$ac_try_echo") >&5
31790   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31791   ac_status=$?
31792   grep -v '^ *+' conftest.er1 >conftest.err
31793   rm -f conftest.er1
31794   cat conftest.err >&5
31795   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31796   (exit $ac_status); } >/dev/null && {
31797          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31798          test ! -s conftest.err
31799        }; then
31800   ac_header_preproc=yes
31801 else
31802   $as_echo "$as_me: failed program was:" >&5
31803 sed 's/^/| /' conftest.$ac_ext >&5
31805   ac_header_preproc=no
31808 rm -f conftest.err conftest.$ac_ext
31809 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31810 $as_echo "$ac_header_preproc" >&6; }
31812 # So?  What about this header?
31813 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31814   yes:no: )
31815     { $as_echo "$as_me:$LINENO: WARNING: pango/pango.h: accepted by the compiler, rejected by the preprocessor!" >&5
31816 $as_echo "$as_me: WARNING: pango/pango.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31817     { $as_echo "$as_me:$LINENO: WARNING: pango/pango.h: proceeding with the compiler's result" >&5
31818 $as_echo "$as_me: WARNING: pango/pango.h: proceeding with the compiler's result" >&2;}
31819     ac_header_preproc=yes
31820     ;;
31821   no:yes:* )
31822     { $as_echo "$as_me:$LINENO: WARNING: pango/pango.h: present but cannot be compiled" >&5
31823 $as_echo "$as_me: WARNING: pango/pango.h: present but cannot be compiled" >&2;}
31824     { $as_echo "$as_me:$LINENO: WARNING: pango/pango.h:     check for missing prerequisite headers?" >&5
31825 $as_echo "$as_me: WARNING: pango/pango.h:     check for missing prerequisite headers?" >&2;}
31826     { $as_echo "$as_me:$LINENO: WARNING: pango/pango.h: see the Autoconf documentation" >&5
31827 $as_echo "$as_me: WARNING: pango/pango.h: see the Autoconf documentation" >&2;}
31828     { $as_echo "$as_me:$LINENO: WARNING: pango/pango.h:     section \"Present But Cannot Be Compiled\"" >&5
31829 $as_echo "$as_me: WARNING: pango/pango.h:     section \"Present But Cannot Be Compiled\"" >&2;}
31830     { $as_echo "$as_me:$LINENO: WARNING: pango/pango.h: proceeding with the preprocessor's result" >&5
31831 $as_echo "$as_me: WARNING: pango/pango.h: proceeding with the preprocessor's result" >&2;}
31832     { $as_echo "$as_me:$LINENO: WARNING: pango/pango.h: in the future, the compiler will take precedence" >&5
31833 $as_echo "$as_me: WARNING: pango/pango.h: in the future, the compiler will take precedence" >&2;}
31835     ;;
31836 esac
31837 { $as_echo "$as_me:$LINENO: checking for pango/pango.h" >&5
31838 $as_echo_n "checking for pango/pango.h... " >&6; }
31839 if test "${ac_cv_header_pango_pango_h+set}" = set; then
31840   $as_echo_n "(cached) " >&6
31841 else
31842   ac_cv_header_pango_pango_h=$ac_header_preproc
31844 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pango_pango_h" >&5
31845 $as_echo "$ac_cv_header_pango_pango_h" >&6; }
31848 if test "x$ac_cv_header_pango_pango_h" = x""yes; then
31849   LIBS="-lpango-1.0 ${LIBS}";EX_CHECK_STATE=YES
31855  if test $EX_CHECK_STATE = NO; then
31856         for ac_prog in pkg-config
31858   # Extract the first word of "$ac_prog", so it can be a program name with args.
31859 set dummy $ac_prog; ac_word=$2
31860 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
31861 $as_echo_n "checking for $ac_word... " >&6; }
31862 if test "${ac_cv_prog_PKGCONFIG+set}" = set; then
31863   $as_echo_n "(cached) " >&6
31864 else
31865   if test -n "$PKGCONFIG"; then
31866   ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
31867 else
31868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31869 for as_dir in $PATH
31871   IFS=$as_save_IFS
31872   test -z "$as_dir" && as_dir=.
31873   for ac_exec_ext in '' $ac_executable_extensions; do
31874   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31875     ac_cv_prog_PKGCONFIG="$ac_prog"
31876     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31877     break 2
31878   fi
31879 done
31880 done
31881 IFS=$as_save_IFS
31885 PKGCONFIG=$ac_cv_prog_PKGCONFIG
31886 if test -n "$PKGCONFIG"; then
31887   { $as_echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
31888 $as_echo "$PKGCONFIG" >&6; }
31889 else
31890   { $as_echo "$as_me:$LINENO: result: no" >&5
31891 $as_echo "no" >&6; }
31895   test -n "$PKGCONFIG" && break
31896 done
31897 test -n "$PKGCONFIG" || PKGCONFIG="no"
31899     if test "$PKGCONFIG" != "no"; then
31900           if $PKGCONFIG --exists pangocairo; then
31901              CPPFLAGS=${CPPFLAGS}" "`$PKGCONFIG --cflags pangocairo`
31902              LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-L pangocairo`
31903              LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-other pangocairo`
31904              LIBS=${LIBS}" "`$PKGCONFIG --libs-only-l pangocairo`
31905                              unset ac_cv_lib_`echo pango-1.0 | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`_pango_cairo_context_set_font_options
31906              { $as_echo "$as_me:$LINENO: checking for pango_cairo_context_set_font_options in -lpango-1.0" >&5
31907 $as_echo_n "checking for pango_cairo_context_set_font_options in -lpango-1.0... " >&6; }
31908 if test "${ac_cv_lib_pango_1_0_pango_cairo_context_set_font_options+set}" = set; then
31909   $as_echo_n "(cached) " >&6
31910 else
31911   ac_check_lib_save_LIBS=$LIBS
31912 LIBS="-lpango-1.0  $LIBS"
31913 cat >conftest.$ac_ext <<_ACEOF
31914 /* confdefs.h.  */
31915 _ACEOF
31916 cat confdefs.h >>conftest.$ac_ext
31917 cat >>conftest.$ac_ext <<_ACEOF
31918 /* end confdefs.h.  */
31920 /* Override any GCC internal prototype to avoid an error.
31921    Use char because int might match the return type of a GCC
31922    builtin and then its argument prototype would still apply.  */
31923 #ifdef __cplusplus
31924 extern "C"
31925 #endif
31926 char pango_cairo_context_set_font_options ();
31927 int
31928 main ()
31930 return pango_cairo_context_set_font_options ();
31931   ;
31932   return 0;
31934 _ACEOF
31935 rm -f conftest.$ac_objext conftest$ac_exeext
31936 if { (ac_try="$ac_link"
31937 case "(($ac_try" in
31938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31939   *) ac_try_echo=$ac_try;;
31940 esac
31941 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31942 $as_echo "$ac_try_echo") >&5
31943   (eval "$ac_link") 2>conftest.er1
31944   ac_status=$?
31945   grep -v '^ *+' conftest.er1 >conftest.err
31946   rm -f conftest.er1
31947   cat conftest.err >&5
31948   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31949   (exit $ac_status); } && {
31950          test -z "$ac_c_werror_flag" ||
31951          test ! -s conftest.err
31952        } && test -s conftest$ac_exeext && {
31953          test "$cross_compiling" = yes ||
31954          $as_test_x conftest$ac_exeext
31955        }; then
31956   ac_cv_lib_pango_1_0_pango_cairo_context_set_font_options=yes
31957 else
31958   $as_echo "$as_me: failed program was:" >&5
31959 sed 's/^/| /' conftest.$ac_ext >&5
31961         ac_cv_lib_pango_1_0_pango_cairo_context_set_font_options=no
31964 rm -rf conftest.dSYM
31965 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31966       conftest$ac_exeext conftest.$ac_ext
31967 LIBS=$ac_check_lib_save_LIBS
31969 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pango_1_0_pango_cairo_context_set_font_options" >&5
31970 $as_echo "$ac_cv_lib_pango_1_0_pango_cairo_context_set_font_options" >&6; }
31971 if test "x$ac_cv_lib_pango_1_0_pango_cairo_context_set_font_options" = x""yes; then
31973                  unset ac_cv_header_`echo pango/pango.h | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`
31974                  if test "${ac_cv_header_pango_pango_h+set}" = set; then
31975   { $as_echo "$as_me:$LINENO: checking for pango/pango.h" >&5
31976 $as_echo_n "checking for pango/pango.h... " >&6; }
31977 if test "${ac_cv_header_pango_pango_h+set}" = set; then
31978   $as_echo_n "(cached) " >&6
31980 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pango_pango_h" >&5
31981 $as_echo "$ac_cv_header_pango_pango_h" >&6; }
31982 else
31983   # Is the header compilable?
31984 { $as_echo "$as_me:$LINENO: checking pango/pango.h usability" >&5
31985 $as_echo_n "checking pango/pango.h usability... " >&6; }
31986 cat >conftest.$ac_ext <<_ACEOF
31987 /* confdefs.h.  */
31988 _ACEOF
31989 cat confdefs.h >>conftest.$ac_ext
31990 cat >>conftest.$ac_ext <<_ACEOF
31991 /* end confdefs.h.  */
31992 $ac_includes_default
31993 #include <pango/pango.h>
31994 _ACEOF
31995 rm -f conftest.$ac_objext
31996 if { (ac_try="$ac_compile"
31997 case "(($ac_try" in
31998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31999   *) ac_try_echo=$ac_try;;
32000 esac
32001 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32002 $as_echo "$ac_try_echo") >&5
32003   (eval "$ac_compile") 2>conftest.er1
32004   ac_status=$?
32005   grep -v '^ *+' conftest.er1 >conftest.err
32006   rm -f conftest.er1
32007   cat conftest.err >&5
32008   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32009   (exit $ac_status); } && {
32010          test -z "$ac_c_werror_flag" ||
32011          test ! -s conftest.err
32012        } && test -s conftest.$ac_objext; then
32013   ac_header_compiler=yes
32014 else
32015   $as_echo "$as_me: failed program was:" >&5
32016 sed 's/^/| /' conftest.$ac_ext >&5
32018         ac_header_compiler=no
32021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32022 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32023 $as_echo "$ac_header_compiler" >&6; }
32025 # Is the header present?
32026 { $as_echo "$as_me:$LINENO: checking pango/pango.h presence" >&5
32027 $as_echo_n "checking pango/pango.h presence... " >&6; }
32028 cat >conftest.$ac_ext <<_ACEOF
32029 /* confdefs.h.  */
32030 _ACEOF
32031 cat confdefs.h >>conftest.$ac_ext
32032 cat >>conftest.$ac_ext <<_ACEOF
32033 /* end confdefs.h.  */
32034 #include <pango/pango.h>
32035 _ACEOF
32036 if { (ac_try="$ac_cpp conftest.$ac_ext"
32037 case "(($ac_try" in
32038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32039   *) ac_try_echo=$ac_try;;
32040 esac
32041 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32042 $as_echo "$ac_try_echo") >&5
32043   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32044   ac_status=$?
32045   grep -v '^ *+' conftest.er1 >conftest.err
32046   rm -f conftest.er1
32047   cat conftest.err >&5
32048   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32049   (exit $ac_status); } >/dev/null && {
32050          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32051          test ! -s conftest.err
32052        }; then
32053   ac_header_preproc=yes
32054 else
32055   $as_echo "$as_me: failed program was:" >&5
32056 sed 's/^/| /' conftest.$ac_ext >&5
32058   ac_header_preproc=no
32061 rm -f conftest.err conftest.$ac_ext
32062 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32063 $as_echo "$ac_header_preproc" >&6; }
32065 # So?  What about this header?
32066 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32067   yes:no: )
32068     { $as_echo "$as_me:$LINENO: WARNING: pango/pango.h: accepted by the compiler, rejected by the preprocessor!" >&5
32069 $as_echo "$as_me: WARNING: pango/pango.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32070     { $as_echo "$as_me:$LINENO: WARNING: pango/pango.h: proceeding with the compiler's result" >&5
32071 $as_echo "$as_me: WARNING: pango/pango.h: proceeding with the compiler's result" >&2;}
32072     ac_header_preproc=yes
32073     ;;
32074   no:yes:* )
32075     { $as_echo "$as_me:$LINENO: WARNING: pango/pango.h: present but cannot be compiled" >&5
32076 $as_echo "$as_me: WARNING: pango/pango.h: present but cannot be compiled" >&2;}
32077     { $as_echo "$as_me:$LINENO: WARNING: pango/pango.h:     check for missing prerequisite headers?" >&5
32078 $as_echo "$as_me: WARNING: pango/pango.h:     check for missing prerequisite headers?" >&2;}
32079     { $as_echo "$as_me:$LINENO: WARNING: pango/pango.h: see the Autoconf documentation" >&5
32080 $as_echo "$as_me: WARNING: pango/pango.h: see the Autoconf documentation" >&2;}
32081     { $as_echo "$as_me:$LINENO: WARNING: pango/pango.h:     section \"Present But Cannot Be Compiled\"" >&5
32082 $as_echo "$as_me: WARNING: pango/pango.h:     section \"Present But Cannot Be Compiled\"" >&2;}
32083     { $as_echo "$as_me:$LINENO: WARNING: pango/pango.h: proceeding with the preprocessor's result" >&5
32084 $as_echo "$as_me: WARNING: pango/pango.h: proceeding with the preprocessor's result" >&2;}
32085     { $as_echo "$as_me:$LINENO: WARNING: pango/pango.h: in the future, the compiler will take precedence" >&5
32086 $as_echo "$as_me: WARNING: pango/pango.h: in the future, the compiler will take precedence" >&2;}
32088     ;;
32089 esac
32090 { $as_echo "$as_me:$LINENO: checking for pango/pango.h" >&5
32091 $as_echo_n "checking for pango/pango.h... " >&6; }
32092 if test "${ac_cv_header_pango_pango_h+set}" = set; then
32093   $as_echo_n "(cached) " >&6
32094 else
32095   ac_cv_header_pango_pango_h=$ac_header_preproc
32097 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pango_pango_h" >&5
32098 $as_echo "$ac_cv_header_pango_pango_h" >&6; }
32101 if test "x$ac_cv_header_pango_pango_h" = x""yes; then
32102   EX_CHECK_STATE=YES
32109           else
32110              { $as_echo "$as_me:$LINENO: WARNING:
32111 ----------------------------------------------------------------------------
32112 * I found a copy of pkgconfig, but there is no pangocairo.pc file around.
32113   You may want to set the PKG_CONFIG_PATH variable to point to its
32114   location.
32115 ----------------------------------------------------------------------------
32116                         " >&5
32117 $as_echo "$as_me: WARNING:
32118 ----------------------------------------------------------------------------
32119 * I found a copy of pkgconfig, but there is no pangocairo.pc file around.
32120   You may want to set the PKG_CONFIG_PATH variable to point to its
32121   location.
32122 ----------------------------------------------------------------------------
32123                         " >&2;}
32124            fi
32125      fi
32126   fi
32128   if test ${EX_CHECK_STATE} = NO; then
32129      { $as_echo "$as_me:$LINENO: WARNING:
32130 ----------------------------------------------------------------------------
32131 * I could not find a working copy of pangocairo. Check config.log for hints on why
32132   this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
32133   so that compiler and the linker can find libpango-1.0 and its header files. If
32134   you have not installed pangocairo, you can get it either from its original home on
32136      http://ftp.gnome.org/pub/GNOME/sources/pango/1.17
32138   You can find also find an archive copy on
32140      http://oss.oetiker.ch/rrdtool/pub/libs
32142   The last tested version of pangocairo is 1.17.
32144        LIBS=$LIBS
32145    LDFLAGS=$LDFLAGS
32146   CPPFLAGS=$CPPFLAGS
32148 ----------------------------------------------------------------------------
32149                 " >&5
32150 $as_echo "$as_me: WARNING:
32151 ----------------------------------------------------------------------------
32152 * I could not find a working copy of pangocairo. Check config.log for hints on why
32153   this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
32154   so that compiler and the linker can find libpango-1.0 and its header files. If
32155   you have not installed pangocairo, you can get it either from its original home on
32157      http://ftp.gnome.org/pub/GNOME/sources/pango/1.17
32159   You can find also find an archive copy on
32161      http://oss.oetiker.ch/rrdtool/pub/libs
32163   The last tested version of pangocairo is 1.17.
32165        LIBS=$LIBS
32166    LDFLAGS=$LDFLAGS
32167   CPPFLAGS=$CPPFLAGS
32169 ----------------------------------------------------------------------------
32170                 " >&2;}
32171        EX_CHECK_ALL_ERR=YES
32172        LIBS="${ex_check_save_LIBS}"
32173        CPPFLAGS="${ex_check_save_CPPFLAGS}"
32174        LDFLAGS="${ex_check_save_LDFLAGS}"
32175     fi
32176     ac_ext=c
32177 ac_cpp='$CPP $CPPFLAGS'
32178 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32179 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32180 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32185  ac_ext=c
32186 ac_cpp='$CPP $CPPFLAGS'
32187 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32188 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32189 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32191  EX_CHECK_STATE=NO
32192  ex_check_save_LIBS=${LIBS}
32193  ex_check_save_CPPFLAGS=${CPPFLAGS}
32194  ex_check_save_LDFLAGS=${LDFLAGS}
32195  if test "x/usr/include/libxml2" != "x"; then
32196    CPPFLAGS="$CPPFLAGS -I/usr/include/libxml2"
32197  fi
32198   { $as_echo "$as_me:$LINENO: checking for xmlParseFile in -lxml2" >&5
32199 $as_echo_n "checking for xmlParseFile in -lxml2... " >&6; }
32200 if test "${ac_cv_lib_xml2_xmlParseFile+set}" = set; then
32201   $as_echo_n "(cached) " >&6
32202 else
32203   ac_check_lib_save_LIBS=$LIBS
32204 LIBS="-lxml2  $LIBS"
32205 cat >conftest.$ac_ext <<_ACEOF
32206 /* confdefs.h.  */
32207 _ACEOF
32208 cat confdefs.h >>conftest.$ac_ext
32209 cat >>conftest.$ac_ext <<_ACEOF
32210 /* end confdefs.h.  */
32212 /* Override any GCC internal prototype to avoid an error.
32213    Use char because int might match the return type of a GCC
32214    builtin and then its argument prototype would still apply.  */
32215 #ifdef __cplusplus
32216 extern "C"
32217 #endif
32218 char xmlParseFile ();
32219 int
32220 main ()
32222 return xmlParseFile ();
32223   ;
32224   return 0;
32226 _ACEOF
32227 rm -f conftest.$ac_objext conftest$ac_exeext
32228 if { (ac_try="$ac_link"
32229 case "(($ac_try" in
32230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32231   *) ac_try_echo=$ac_try;;
32232 esac
32233 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32234 $as_echo "$ac_try_echo") >&5
32235   (eval "$ac_link") 2>conftest.er1
32236   ac_status=$?
32237   grep -v '^ *+' conftest.er1 >conftest.err
32238   rm -f conftest.er1
32239   cat conftest.err >&5
32240   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32241   (exit $ac_status); } && {
32242          test -z "$ac_c_werror_flag" ||
32243          test ! -s conftest.err
32244        } && test -s conftest$ac_exeext && {
32245          test "$cross_compiling" = yes ||
32246          $as_test_x conftest$ac_exeext
32247        }; then
32248   ac_cv_lib_xml2_xmlParseFile=yes
32249 else
32250   $as_echo "$as_me: failed program was:" >&5
32251 sed 's/^/| /' conftest.$ac_ext >&5
32253         ac_cv_lib_xml2_xmlParseFile=no
32256 rm -rf conftest.dSYM
32257 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32258       conftest$ac_exeext conftest.$ac_ext
32259 LIBS=$ac_check_lib_save_LIBS
32261 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlParseFile" >&5
32262 $as_echo "$ac_cv_lib_xml2_xmlParseFile" >&6; }
32263 if test "x$ac_cv_lib_xml2_xmlParseFile" = x""yes; then
32265     if test "${ac_cv_header_libxml_parser_h+set}" = set; then
32266   { $as_echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
32267 $as_echo_n "checking for libxml/parser.h... " >&6; }
32268 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
32269   $as_echo_n "(cached) " >&6
32271 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
32272 $as_echo "$ac_cv_header_libxml_parser_h" >&6; }
32273 else
32274   # Is the header compilable?
32275 { $as_echo "$as_me:$LINENO: checking libxml/parser.h usability" >&5
32276 $as_echo_n "checking libxml/parser.h usability... " >&6; }
32277 cat >conftest.$ac_ext <<_ACEOF
32278 /* confdefs.h.  */
32279 _ACEOF
32280 cat confdefs.h >>conftest.$ac_ext
32281 cat >>conftest.$ac_ext <<_ACEOF
32282 /* end confdefs.h.  */
32283 $ac_includes_default
32284 #include <libxml/parser.h>
32285 _ACEOF
32286 rm -f conftest.$ac_objext
32287 if { (ac_try="$ac_compile"
32288 case "(($ac_try" in
32289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32290   *) ac_try_echo=$ac_try;;
32291 esac
32292 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32293 $as_echo "$ac_try_echo") >&5
32294   (eval "$ac_compile") 2>conftest.er1
32295   ac_status=$?
32296   grep -v '^ *+' conftest.er1 >conftest.err
32297   rm -f conftest.er1
32298   cat conftest.err >&5
32299   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32300   (exit $ac_status); } && {
32301          test -z "$ac_c_werror_flag" ||
32302          test ! -s conftest.err
32303        } && test -s conftest.$ac_objext; then
32304   ac_header_compiler=yes
32305 else
32306   $as_echo "$as_me: failed program was:" >&5
32307 sed 's/^/| /' conftest.$ac_ext >&5
32309         ac_header_compiler=no
32312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32313 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32314 $as_echo "$ac_header_compiler" >&6; }
32316 # Is the header present?
32317 { $as_echo "$as_me:$LINENO: checking libxml/parser.h presence" >&5
32318 $as_echo_n "checking libxml/parser.h presence... " >&6; }
32319 cat >conftest.$ac_ext <<_ACEOF
32320 /* confdefs.h.  */
32321 _ACEOF
32322 cat confdefs.h >>conftest.$ac_ext
32323 cat >>conftest.$ac_ext <<_ACEOF
32324 /* end confdefs.h.  */
32325 #include <libxml/parser.h>
32326 _ACEOF
32327 if { (ac_try="$ac_cpp conftest.$ac_ext"
32328 case "(($ac_try" in
32329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32330   *) ac_try_echo=$ac_try;;
32331 esac
32332 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32333 $as_echo "$ac_try_echo") >&5
32334   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32335   ac_status=$?
32336   grep -v '^ *+' conftest.er1 >conftest.err
32337   rm -f conftest.er1
32338   cat conftest.err >&5
32339   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32340   (exit $ac_status); } >/dev/null && {
32341          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32342          test ! -s conftest.err
32343        }; then
32344   ac_header_preproc=yes
32345 else
32346   $as_echo "$as_me: failed program was:" >&5
32347 sed 's/^/| /' conftest.$ac_ext >&5
32349   ac_header_preproc=no
32352 rm -f conftest.err conftest.$ac_ext
32353 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32354 $as_echo "$ac_header_preproc" >&6; }
32356 # So?  What about this header?
32357 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32358   yes:no: )
32359     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&5
32360 $as_echo "$as_me: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32361     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the compiler's result" >&5
32362 $as_echo "$as_me: WARNING: libxml/parser.h: proceeding with the compiler's result" >&2;}
32363     ac_header_preproc=yes
32364     ;;
32365   no:yes:* )
32366     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: present but cannot be compiled" >&5
32367 $as_echo "$as_me: WARNING: libxml/parser.h: present but cannot be compiled" >&2;}
32368     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h:     check for missing prerequisite headers?" >&5
32369 $as_echo "$as_me: WARNING: libxml/parser.h:     check for missing prerequisite headers?" >&2;}
32370     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: see the Autoconf documentation" >&5
32371 $as_echo "$as_me: WARNING: libxml/parser.h: see the Autoconf documentation" >&2;}
32372     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h:     section \"Present But Cannot Be Compiled\"" >&5
32373 $as_echo "$as_me: WARNING: libxml/parser.h:     section \"Present But Cannot Be Compiled\"" >&2;}
32374     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&5
32375 $as_echo "$as_me: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&2;}
32376     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&5
32377 $as_echo "$as_me: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&2;}
32379     ;;
32380 esac
32381 { $as_echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
32382 $as_echo_n "checking for libxml/parser.h... " >&6; }
32383 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
32384   $as_echo_n "(cached) " >&6
32385 else
32386   ac_cv_header_libxml_parser_h=$ac_header_preproc
32388 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
32389 $as_echo "$ac_cv_header_libxml_parser_h" >&6; }
32392 if test "x$ac_cv_header_libxml_parser_h" = x""yes; then
32393   LIBS="-lxml2 ${LIBS}";EX_CHECK_STATE=YES
32399  if test $EX_CHECK_STATE = NO; then
32400         for ac_prog in pkg-config
32402   # Extract the first word of "$ac_prog", so it can be a program name with args.
32403 set dummy $ac_prog; ac_word=$2
32404 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
32405 $as_echo_n "checking for $ac_word... " >&6; }
32406 if test "${ac_cv_prog_PKGCONFIG+set}" = set; then
32407   $as_echo_n "(cached) " >&6
32408 else
32409   if test -n "$PKGCONFIG"; then
32410   ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
32411 else
32412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32413 for as_dir in $PATH
32415   IFS=$as_save_IFS
32416   test -z "$as_dir" && as_dir=.
32417   for ac_exec_ext in '' $ac_executable_extensions; do
32418   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32419     ac_cv_prog_PKGCONFIG="$ac_prog"
32420     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32421     break 2
32422   fi
32423 done
32424 done
32425 IFS=$as_save_IFS
32429 PKGCONFIG=$ac_cv_prog_PKGCONFIG
32430 if test -n "$PKGCONFIG"; then
32431   { $as_echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
32432 $as_echo "$PKGCONFIG" >&6; }
32433 else
32434   { $as_echo "$as_me:$LINENO: result: no" >&5
32435 $as_echo "no" >&6; }
32439   test -n "$PKGCONFIG" && break
32440 done
32441 test -n "$PKGCONFIG" || PKGCONFIG="no"
32443     if test "$PKGCONFIG" != "no"; then
32444           if $PKGCONFIG --exists libxml-2.0; then
32445              CPPFLAGS=${CPPFLAGS}" "`$PKGCONFIG --cflags libxml-2.0`
32446              LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-L libxml-2.0`
32447              LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-other libxml-2.0`
32448              LIBS=${LIBS}" "`$PKGCONFIG --libs-only-l libxml-2.0`
32449                              unset ac_cv_lib_`echo xml2 | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`_xmlParseFile
32450              { $as_echo "$as_me:$LINENO: checking for xmlParseFile in -lxml2" >&5
32451 $as_echo_n "checking for xmlParseFile in -lxml2... " >&6; }
32452 if test "${ac_cv_lib_xml2_xmlParseFile+set}" = set; then
32453   $as_echo_n "(cached) " >&6
32454 else
32455   ac_check_lib_save_LIBS=$LIBS
32456 LIBS="-lxml2  $LIBS"
32457 cat >conftest.$ac_ext <<_ACEOF
32458 /* confdefs.h.  */
32459 _ACEOF
32460 cat confdefs.h >>conftest.$ac_ext
32461 cat >>conftest.$ac_ext <<_ACEOF
32462 /* end confdefs.h.  */
32464 /* Override any GCC internal prototype to avoid an error.
32465    Use char because int might match the return type of a GCC
32466    builtin and then its argument prototype would still apply.  */
32467 #ifdef __cplusplus
32468 extern "C"
32469 #endif
32470 char xmlParseFile ();
32471 int
32472 main ()
32474 return xmlParseFile ();
32475   ;
32476   return 0;
32478 _ACEOF
32479 rm -f conftest.$ac_objext conftest$ac_exeext
32480 if { (ac_try="$ac_link"
32481 case "(($ac_try" in
32482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32483   *) ac_try_echo=$ac_try;;
32484 esac
32485 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32486 $as_echo "$ac_try_echo") >&5
32487   (eval "$ac_link") 2>conftest.er1
32488   ac_status=$?
32489   grep -v '^ *+' conftest.er1 >conftest.err
32490   rm -f conftest.er1
32491   cat conftest.err >&5
32492   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32493   (exit $ac_status); } && {
32494          test -z "$ac_c_werror_flag" ||
32495          test ! -s conftest.err
32496        } && test -s conftest$ac_exeext && {
32497          test "$cross_compiling" = yes ||
32498          $as_test_x conftest$ac_exeext
32499        }; then
32500   ac_cv_lib_xml2_xmlParseFile=yes
32501 else
32502   $as_echo "$as_me: failed program was:" >&5
32503 sed 's/^/| /' conftest.$ac_ext >&5
32505         ac_cv_lib_xml2_xmlParseFile=no
32508 rm -rf conftest.dSYM
32509 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32510       conftest$ac_exeext conftest.$ac_ext
32511 LIBS=$ac_check_lib_save_LIBS
32513 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlParseFile" >&5
32514 $as_echo "$ac_cv_lib_xml2_xmlParseFile" >&6; }
32515 if test "x$ac_cv_lib_xml2_xmlParseFile" = x""yes; then
32517                  unset ac_cv_header_`echo libxml/parser.h | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`
32518                  if test "${ac_cv_header_libxml_parser_h+set}" = set; then
32519   { $as_echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
32520 $as_echo_n "checking for libxml/parser.h... " >&6; }
32521 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
32522   $as_echo_n "(cached) " >&6
32524 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
32525 $as_echo "$ac_cv_header_libxml_parser_h" >&6; }
32526 else
32527   # Is the header compilable?
32528 { $as_echo "$as_me:$LINENO: checking libxml/parser.h usability" >&5
32529 $as_echo_n "checking libxml/parser.h usability... " >&6; }
32530 cat >conftest.$ac_ext <<_ACEOF
32531 /* confdefs.h.  */
32532 _ACEOF
32533 cat confdefs.h >>conftest.$ac_ext
32534 cat >>conftest.$ac_ext <<_ACEOF
32535 /* end confdefs.h.  */
32536 $ac_includes_default
32537 #include <libxml/parser.h>
32538 _ACEOF
32539 rm -f conftest.$ac_objext
32540 if { (ac_try="$ac_compile"
32541 case "(($ac_try" in
32542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32543   *) ac_try_echo=$ac_try;;
32544 esac
32545 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32546 $as_echo "$ac_try_echo") >&5
32547   (eval "$ac_compile") 2>conftest.er1
32548   ac_status=$?
32549   grep -v '^ *+' conftest.er1 >conftest.err
32550   rm -f conftest.er1
32551   cat conftest.err >&5
32552   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32553   (exit $ac_status); } && {
32554          test -z "$ac_c_werror_flag" ||
32555          test ! -s conftest.err
32556        } && test -s conftest.$ac_objext; then
32557   ac_header_compiler=yes
32558 else
32559   $as_echo "$as_me: failed program was:" >&5
32560 sed 's/^/| /' conftest.$ac_ext >&5
32562         ac_header_compiler=no
32565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32566 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32567 $as_echo "$ac_header_compiler" >&6; }
32569 # Is the header present?
32570 { $as_echo "$as_me:$LINENO: checking libxml/parser.h presence" >&5
32571 $as_echo_n "checking libxml/parser.h presence... " >&6; }
32572 cat >conftest.$ac_ext <<_ACEOF
32573 /* confdefs.h.  */
32574 _ACEOF
32575 cat confdefs.h >>conftest.$ac_ext
32576 cat >>conftest.$ac_ext <<_ACEOF
32577 /* end confdefs.h.  */
32578 #include <libxml/parser.h>
32579 _ACEOF
32580 if { (ac_try="$ac_cpp conftest.$ac_ext"
32581 case "(($ac_try" in
32582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32583   *) ac_try_echo=$ac_try;;
32584 esac
32585 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32586 $as_echo "$ac_try_echo") >&5
32587   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32588   ac_status=$?
32589   grep -v '^ *+' conftest.er1 >conftest.err
32590   rm -f conftest.er1
32591   cat conftest.err >&5
32592   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32593   (exit $ac_status); } >/dev/null && {
32594          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32595          test ! -s conftest.err
32596        }; then
32597   ac_header_preproc=yes
32598 else
32599   $as_echo "$as_me: failed program was:" >&5
32600 sed 's/^/| /' conftest.$ac_ext >&5
32602   ac_header_preproc=no
32605 rm -f conftest.err conftest.$ac_ext
32606 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32607 $as_echo "$ac_header_preproc" >&6; }
32609 # So?  What about this header?
32610 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32611   yes:no: )
32612     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&5
32613 $as_echo "$as_me: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32614     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the compiler's result" >&5
32615 $as_echo "$as_me: WARNING: libxml/parser.h: proceeding with the compiler's result" >&2;}
32616     ac_header_preproc=yes
32617     ;;
32618   no:yes:* )
32619     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: present but cannot be compiled" >&5
32620 $as_echo "$as_me: WARNING: libxml/parser.h: present but cannot be compiled" >&2;}
32621     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h:     check for missing prerequisite headers?" >&5
32622 $as_echo "$as_me: WARNING: libxml/parser.h:     check for missing prerequisite headers?" >&2;}
32623     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: see the Autoconf documentation" >&5
32624 $as_echo "$as_me: WARNING: libxml/parser.h: see the Autoconf documentation" >&2;}
32625     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h:     section \"Present But Cannot Be Compiled\"" >&5
32626 $as_echo "$as_me: WARNING: libxml/parser.h:     section \"Present But Cannot Be Compiled\"" >&2;}
32627     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&5
32628 $as_echo "$as_me: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&2;}
32629     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&5
32630 $as_echo "$as_me: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&2;}
32632     ;;
32633 esac
32634 { $as_echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
32635 $as_echo_n "checking for libxml/parser.h... " >&6; }
32636 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
32637   $as_echo_n "(cached) " >&6
32638 else
32639   ac_cv_header_libxml_parser_h=$ac_header_preproc
32641 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
32642 $as_echo "$ac_cv_header_libxml_parser_h" >&6; }
32645 if test "x$ac_cv_header_libxml_parser_h" = x""yes; then
32646   EX_CHECK_STATE=YES
32653           else
32654              { $as_echo "$as_me:$LINENO: WARNING:
32655 ----------------------------------------------------------------------------
32656 * I found a copy of pkgconfig, but there is no libxml-2.0.pc file around.
32657   You may want to set the PKG_CONFIG_PATH variable to point to its
32658   location.
32659 ----------------------------------------------------------------------------
32660                         " >&5
32661 $as_echo "$as_me: WARNING:
32662 ----------------------------------------------------------------------------
32663 * I found a copy of pkgconfig, but there is no libxml-2.0.pc file around.
32664   You may want to set the PKG_CONFIG_PATH variable to point to its
32665   location.
32666 ----------------------------------------------------------------------------
32667                         " >&2;}
32668            fi
32669      fi
32670   fi
32672   if test ${EX_CHECK_STATE} = NO; then
32673      { $as_echo "$as_me:$LINENO: WARNING:
32674 ----------------------------------------------------------------------------
32675 * I could not find a working copy of libxml-2.0. Check config.log for hints on why
32676   this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
32677   so that compiler and the linker can find libxml2 and its header files. If
32678   you have not installed libxml-2.0, you can get it either from its original home on
32680      http://xmlsoft.org/downloads.html
32682   You can find also find an archive copy on
32684      http://oss.oetiker.ch/rrdtool/pub/libs
32686   The last tested version of libxml-2.0 is 2.6.31.
32688        LIBS=$LIBS
32689    LDFLAGS=$LDFLAGS
32690   CPPFLAGS=$CPPFLAGS
32692 ----------------------------------------------------------------------------
32693                 " >&5
32694 $as_echo "$as_me: WARNING:
32695 ----------------------------------------------------------------------------
32696 * I could not find a working copy of libxml-2.0. Check config.log for hints on why
32697   this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
32698   so that compiler and the linker can find libxml2 and its header files. If
32699   you have not installed libxml-2.0, you can get it either from its original home on
32701      http://xmlsoft.org/downloads.html
32703   You can find also find an archive copy on
32705      http://oss.oetiker.ch/rrdtool/pub/libs
32707   The last tested version of libxml-2.0 is 2.6.31.
32709        LIBS=$LIBS
32710    LDFLAGS=$LDFLAGS
32711   CPPFLAGS=$CPPFLAGS
32713 ----------------------------------------------------------------------------
32714                 " >&2;}
32715        EX_CHECK_ALL_ERR=YES
32716        LIBS="${ex_check_save_LIBS}"
32717        CPPFLAGS="${ex_check_save_CPPFLAGS}"
32718        LDFLAGS="${ex_check_save_LDFLAGS}"
32719     fi
32720     ac_ext=c
32721 ac_cpp='$CPP $CPPFLAGS'
32722 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32723 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32724 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32729 if test "$EX_CHECK_ALL_ERR" = "YES"; then
32730   { { $as_echo "$as_me:$LINENO: error: Please fix the library issues listed above and try again." >&5
32731 $as_echo "$as_me: error: Please fix the library issues listed above and try again." >&2;}
32732    { (exit 1); exit 1; }; }
32735 ALL_LIBS="$LIBS"
32736 LIBS=
32742 case $TERM in
32743        #   for the most important terminal types we directly know the sequences
32744        xterm|xterm*|vt220|vt220*)
32745                T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
32746                T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
32747        ;;
32748        vt100|vt100*|cygwin)
32749                T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
32750                T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
32751        ;;
32752        *)
32753                T_MD=''
32754                T_ME=''
32755        ;;
32756 esac
32757   { $as_echo "$as_me:$LINENO: result: " >&5
32758 $as_echo "" >&6; }
32759   { $as_echo "$as_me:$LINENO: result: ${T_MD}Prep for Building Language Bindings${T_ME}" >&5
32760 $as_echo "${T_MD}Prep for Building Language Bindings${T_ME}" >&6; }
32763 PATH=$PATH:/usr/perl5/bin
32764 export PATH
32765 # Extract the first word of "perl", so it can be a program name with args.
32766 set dummy perl; ac_word=$2
32767 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
32768 $as_echo_n "checking for $ac_word... " >&6; }
32769 if test "${ac_cv_path_PERL+set}" = set; then
32770   $as_echo_n "(cached) " >&6
32771 else
32772   case $PERL in
32773   [\\/]* | ?:[\\/]*)
32774   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
32775   ;;
32776   *)
32777   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32778 for as_dir in $PATH
32780   IFS=$as_save_IFS
32781   test -z "$as_dir" && as_dir=.
32782   for ac_exec_ext in '' $ac_executable_extensions; do
32783   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32784     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
32785     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32786     break 2
32787   fi
32788 done
32789 done
32790 IFS=$as_save_IFS
32792   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
32793   ;;
32794 esac
32796 PERL=$ac_cv_path_PERL
32797 if test -n "$PERL"; then
32798   { $as_echo "$as_me:$LINENO: result: $PERL" >&5
32799 $as_echo "$PERL" >&6; }
32800 else
32801   { $as_echo "$as_me:$LINENO: result: no" >&5
32802 $as_echo "no" >&6; }
32806 # Extract the first word of "pod2man", so it can be a program name with args.
32807 set dummy pod2man; ac_word=$2
32808 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
32809 $as_echo_n "checking for $ac_word... " >&6; }
32810 if test "${ac_cv_path_POD2MAN+set}" = set; then
32811   $as_echo_n "(cached) " >&6
32812 else
32813   case $POD2MAN in
32814   [\\/]* | ?:[\\/]*)
32815   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
32816   ;;
32817   *)
32818   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32819 for as_dir in $PATH
32821   IFS=$as_save_IFS
32822   test -z "$as_dir" && as_dir=.
32823   for ac_exec_ext in '' $ac_executable_extensions; do
32824   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32825     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
32826     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32827     break 2
32828   fi
32829 done
32830 done
32831 IFS=$as_save_IFS
32833   test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="no"
32834   ;;
32835 esac
32837 POD2MAN=$ac_cv_path_POD2MAN
32838 if test -n "$POD2MAN"; then
32839   { $as_echo "$as_me:$LINENO: result: $POD2MAN" >&5
32840 $as_echo "$POD2MAN" >&6; }
32841 else
32842   { $as_echo "$as_me:$LINENO: result: no" >&5
32843 $as_echo "no" >&6; }
32847 # Extract the first word of "pod2html", so it can be a program name with args.
32848 set dummy pod2html; ac_word=$2
32849 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
32850 $as_echo_n "checking for $ac_word... " >&6; }
32851 if test "${ac_cv_path_POD2HTML+set}" = set; then
32852   $as_echo_n "(cached) " >&6
32853 else
32854   case $POD2HTML in
32855   [\\/]* | ?:[\\/]*)
32856   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
32857   ;;
32858   *)
32859   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32860 for as_dir in $PATH
32862   IFS=$as_save_IFS
32863   test -z "$as_dir" && as_dir=.
32864   for ac_exec_ext in '' $ac_executable_extensions; do
32865   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32866     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
32867     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32868     break 2
32869   fi
32870 done
32871 done
32872 IFS=$as_save_IFS
32874   test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="no"
32875   ;;
32876 esac
32878 POD2HTML=$ac_cv_path_POD2HTML
32879 if test -n "$POD2HTML"; then
32880   { $as_echo "$as_me:$LINENO: result: $POD2HTML" >&5
32881 $as_echo "$POD2HTML" >&6; }
32882 else
32883   { $as_echo "$as_me:$LINENO: result: no" >&5
32884 $as_echo "no" >&6; }
32890 # Check whether --enable-perl was given.
32891 if test "${enable_perl+set}" = set; then
32892   enableval=$enable_perl;
32893 else
32894   enable_perl=yes
32904 if test "x$PERL" = "xno" -o  x$enable_perl = xno; then
32905         COMP_PERL=
32906 else
32907         COMP_PERL="perl_piped perl_shared"
32908         { $as_echo "$as_me:$LINENO: checking for the perl version you are running" >&5
32909 $as_echo_n "checking for the perl version you are running... " >&6; }
32910         PERL_VERSION=`$PERL -MConfig -e 'print $Config{version}'`
32911         { $as_echo "$as_me:$LINENO: result: $PERL_VERSION" >&5
32912 $as_echo "$PERL_VERSION" >&6; }
32913         if test -z "$PERLCC"; then
32914             { $as_echo "$as_me:$LINENO: checking for the C compiler perl wants to use to build its modules" >&5
32915 $as_echo_n "checking for the C compiler perl wants to use to build its modules... " >&6; }
32916             perlcc=`$PERL -MConfig -e 'print $Config{cc}'`
32917             { $as_echo "$as_me:$LINENO: result: $perlcc" >&5
32918 $as_echo "$perlcc" >&6; }
32919             if test ! -x "$perlcc"; then
32920                 # Extract the first word of "${perlcc}", so it can be a program name with args.
32921 set dummy ${perlcc}; ac_word=$2
32922 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
32923 $as_echo_n "checking for $ac_word... " >&6; }
32924 if test "${ac_cv_path_PERL_CC+set}" = set; then
32925   $as_echo_n "(cached) " >&6
32926 else
32927   case $PERL_CC in
32928   [\\/]* | ?:[\\/]*)
32929   ac_cv_path_PERL_CC="$PERL_CC" # Let the user override the test with a path.
32930   ;;
32931   *)
32932   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32933 for as_dir in $PATH
32935   IFS=$as_save_IFS
32936   test -z "$as_dir" && as_dir=.
32937   for ac_exec_ext in '' $ac_executable_extensions; do
32938   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32939     ac_cv_path_PERL_CC="$as_dir/$ac_word$ac_exec_ext"
32940     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32941     break 2
32942   fi
32943 done
32944 done
32945 IFS=$as_save_IFS
32947   test -z "$ac_cv_path_PERL_CC" && ac_cv_path_PERL_CC="no"
32948   ;;
32949 esac
32951 PERL_CC=$ac_cv_path_PERL_CC
32952 if test -n "$PERL_CC"; then
32953   { $as_echo "$as_me:$LINENO: result: $PERL_CC" >&5
32954 $as_echo "$PERL_CC" >&6; }
32955 else
32956   { $as_echo "$as_me:$LINENO: result: no" >&5
32957 $as_echo "no" >&6; }
32961                 if test "$PERL_CC" = "no"; then
32962                     { $as_echo "$as_me:$LINENO: WARNING:
32963 I would not find the Compiler ($perlcc) that was originally used to compile
32964 your perl binary. You should either make sure that this compiler is
32965 available on your system, pick an other compiler and set PERLCC
32966 appropriately, or use a different perl setup that was compiled locally.
32968 I will disable the compilation of the RRDs perl module for now.
32969 " >&5
32970 $as_echo "$as_me: WARNING:
32971 I would not find the Compiler ($perlcc) that was originally used to compile
32972 your perl binary. You should either make sure that this compiler is
32973 available on your system, pick an other compiler and set PERLCC
32974 appropriately, or use a different perl setup that was compiled locally.
32976 I will disable the compilation of the RRDs perl module for now.
32977 " >&2;}
32978                     COMP_PERL="perl_piped"
32979                 fi
32980             fi
32981         fi
32984 { $as_echo "$as_me:$LINENO: checking Perl Modules to build" >&5
32985 $as_echo_n "checking Perl Modules to build... " >&6; }
32986 { $as_echo "$as_me:$LINENO: result: ${COMP_PERL:-No Perl Modules will be built}" >&5
32987 $as_echo "${COMP_PERL:-No Perl Modules will be built}" >&6; }
32989 # Options to pass when configuring perl module
32990 langpref=$prefix
32991 test "$langpref" = '$(DESTDIR)NONE' && langpref='$(DESTDIR)'$ac_default_prefix
32992 test "$langpref" = "NONE" && langpref=$ac_default_prefix
32994 PERL_MAKE_OPTIONS="PREFIX=$langpref LIB=$langpref/lib/perl/$PERL_VERSION"
32996 # Check whether --enable-perl-site-install was given.
32997 if test "${enable_perl_site_install+set}" = set; then
32998   enableval=$enable_perl_site_install; PERL_MAKE_OPTIONS=
33002 if test ! -z "$PERLCC"; then
33003    PERL_MAKE_OPTIONS="$PERL_MAKE_OPTIONS CC=$PERLCC"
33005    if test ! -z "$PERLCCFLAGS"; then
33006        PERL_MAKE_OPTIONS="$PERL_MAKE_OPTIONS CCFLAGS=$PERLCCFLAGS"
33007    fi
33009    if test -z "$PERLLD"; then
33010        PERLLD=$PERLCC
33011    fi
33012    PERL_MAKE_OPTIONS="$PERL_MAKE_OPTIONS LD=$PERLLD"
33014    if test ! -z "$PERLLDFLAGS"; then
33015        PERL_MAKE_OPTIONS="$PERL_MAKE_OPTIONS LDFLAGS=$PERLLDFLAGS"
33016    fi
33020 # Check whether --with-perl-options was given.
33021 if test "${with_perl_options+set}" = set; then
33022   withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
33031 # Extract the first word of "ruby", so it can be a program name with args.
33032 set dummy ruby; ac_word=$2
33033 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
33034 $as_echo_n "checking for $ac_word... " >&6; }
33035 if test "${ac_cv_path_RUBY+set}" = set; then
33036   $as_echo_n "(cached) " >&6
33037 else
33038   case $RUBY in
33039   [\\/]* | ?:[\\/]*)
33040   ac_cv_path_RUBY="$RUBY" # Let the user override the test with a path.
33041   ;;
33042   *)
33043   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33044 for as_dir in $PATH
33046   IFS=$as_save_IFS
33047   test -z "$as_dir" && as_dir=.
33048   for ac_exec_ext in '' $ac_executable_extensions; do
33049   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33050     ac_cv_path_RUBY="$as_dir/$ac_word$ac_exec_ext"
33051     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33052     break 2
33053   fi
33054 done
33055 done
33056 IFS=$as_save_IFS
33058   test -z "$ac_cv_path_RUBY" && ac_cv_path_RUBY="no"
33059   ;;
33060 esac
33062 RUBY=$ac_cv_path_RUBY
33063 if test -n "$RUBY"; then
33064   { $as_echo "$as_me:$LINENO: result: $RUBY" >&5
33065 $as_echo "$RUBY" >&6; }
33066 else
33067   { $as_echo "$as_me:$LINENO: result: no" >&5
33068 $as_echo "no" >&6; }
33073 # Check whether --enable-ruby was given.
33074 if test "${enable_ruby+set}" = set; then
33075   enableval=$enable_ruby;
33076 else
33077   enable_ruby=yes
33081 { $as_echo "$as_me:$LINENO: checking if ruby modules can be built" >&5
33082 $as_echo_n "checking if ruby modules can be built... " >&6; }
33084 if test "x$RUBY" = "xno" -o  x$enable_ruby = xno; then
33085         COMP_RUBY=
33086         { $as_echo "$as_me:$LINENO: result: No .. Ruby not found or disabled" >&5
33087 $as_echo "No .. Ruby not found or disabled" >&6; }
33088 else
33089         if $RUBY -e 'require "mkmf"' >/dev/null 2>&1; then
33090                 COMP_RUBY="ruby"
33091                 { $as_echo "$as_me:$LINENO: result: YES" >&5
33092 $as_echo "YES" >&6; }
33093         else
33094                 COMP_RUBY=
33095                 { $as_echo "$as_me:$LINENO: result: Ruby found but mkmf is missing! Install the -dev package" >&5
33096 $as_echo "Ruby found but mkmf is missing! Install the -dev package" >&6; }
33097         fi
33100 # Check whether --enable-ruby-site-install was given.
33101 if test "${enable_ruby_site_install+set}" = set; then
33102   enableval=$enable_ruby_site_install; RUBY_MAKE_OPTIONS=
33103 else
33104   RUBY_MAKE_OPTIONS="sitedir=$langpref/lib/ruby"
33110 # Check whether --with-ruby-options was given.
33111 if test "${with_ruby_options+set}" = set; then
33112   withval=$with_ruby_options; RUBY_MAKE_OPTIONS=$withval
33120 # Extract the first word of "lua", so it can be a program name with args.
33121 set dummy lua; ac_word=$2
33122 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
33123 $as_echo_n "checking for $ac_word... " >&6; }
33124 if test "${ac_cv_path_LUA+set}" = set; then
33125   $as_echo_n "(cached) " >&6
33126 else
33127   case $LUA in
33128   [\\/]* | ?:[\\/]*)
33129   ac_cv_path_LUA="$LUA" # Let the user override the test with a path.
33130   ;;
33131   *)
33132   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33133 for as_dir in $PATH
33135   IFS=$as_save_IFS
33136   test -z "$as_dir" && as_dir=.
33137   for ac_exec_ext in '' $ac_executable_extensions; do
33138   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33139     ac_cv_path_LUA="$as_dir/$ac_word$ac_exec_ext"
33140     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33141     break 2
33142   fi
33143 done
33144 done
33145 IFS=$as_save_IFS
33147   test -z "$ac_cv_path_LUA" && ac_cv_path_LUA="no"
33148   ;;
33149 esac
33151 LUA=$ac_cv_path_LUA
33152 if test -n "$LUA"; then
33153   { $as_echo "$as_me:$LINENO: result: $LUA" >&5
33154 $as_echo "$LUA" >&6; }
33155 else
33156   { $as_echo "$as_me:$LINENO: result: no" >&5
33157 $as_echo "no" >&6; }
33162 # Check whether --enable-lua was given.
33163 if test "${enable_lua+set}" = set; then
33164   enableval=$enable_lua;
33165 else
33166   enable_lua=yes
33170 COMP_LUA=
33171 if test "$LUA" = "no" -o "$enable_lua" = "no"; then
33172   enable_lua=no
33173 else
33174   { $as_echo "$as_me:$LINENO: checking for lua >= 5.0" >&5
33175 $as_echo_n "checking for lua >= 5.0... " >&6; }
33176   read LUA_MAJOR LUA_MINOR LUA_POINT <<LUA_EOF
33177     $($LUA -v 2>&1 | cut -f2 -d' ' | sed -e 's/\./ /g')
33178 LUA_EOF
33179   if test 0$LUA_MAJOR -lt 5; then
33180     { $as_echo "$as_me:$LINENO: result: no, version found is $LUA_MAJOR.$LUA_MINOR" >&5
33181 $as_echo "no, version found is $LUA_MAJOR.$LUA_MINOR" >&6; }
33182   else
33183     { $as_echo "$as_me:$LINENO: result: $LUA_MAJOR.$LUA_MINOR found" >&5
33184 $as_echo "$LUA_MAJOR.$LUA_MINOR found" >&6; }
33185     lua_vdot=$LUA_MAJOR.$LUA_MINOR
33186     lua_vndot=$LUA_MAJOR$LUA_MINOR
33187     lua_version=$LUA_MAJOR.$LUA_MINOR.$LUA_POINT
33189 for ac_header in lua$lua_vndot/lua.h
33191 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
33192 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33193   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
33194 $as_echo_n "checking for $ac_header... " >&6; }
33195 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33196   $as_echo_n "(cached) " >&6
33198 ac_res=`eval 'as_val=${'$as_ac_Header'}
33199                  $as_echo "$as_val"'`
33200                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
33201 $as_echo "$ac_res" >&6; }
33202 else
33203   # Is the header compilable?
33204 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
33205 $as_echo_n "checking $ac_header usability... " >&6; }
33206 cat >conftest.$ac_ext <<_ACEOF
33207 /* confdefs.h.  */
33208 _ACEOF
33209 cat confdefs.h >>conftest.$ac_ext
33210 cat >>conftest.$ac_ext <<_ACEOF
33211 /* end confdefs.h.  */
33212 $ac_includes_default
33213 #include <$ac_header>
33214 _ACEOF
33215 rm -f conftest.$ac_objext
33216 if { (ac_try="$ac_compile"
33217 case "(($ac_try" in
33218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33219   *) ac_try_echo=$ac_try;;
33220 esac
33221 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33222 $as_echo "$ac_try_echo") >&5
33223   (eval "$ac_compile") 2>conftest.er1
33224   ac_status=$?
33225   grep -v '^ *+' conftest.er1 >conftest.err
33226   rm -f conftest.er1
33227   cat conftest.err >&5
33228   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33229   (exit $ac_status); } && {
33230          test -z "$ac_c_werror_flag" ||
33231          test ! -s conftest.err
33232        } && test -s conftest.$ac_objext; then
33233   ac_header_compiler=yes
33234 else
33235   $as_echo "$as_me: failed program was:" >&5
33236 sed 's/^/| /' conftest.$ac_ext >&5
33238         ac_header_compiler=no
33241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33242 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33243 $as_echo "$ac_header_compiler" >&6; }
33245 # Is the header present?
33246 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
33247 $as_echo_n "checking $ac_header presence... " >&6; }
33248 cat >conftest.$ac_ext <<_ACEOF
33249 /* confdefs.h.  */
33250 _ACEOF
33251 cat confdefs.h >>conftest.$ac_ext
33252 cat >>conftest.$ac_ext <<_ACEOF
33253 /* end confdefs.h.  */
33254 #include <$ac_header>
33255 _ACEOF
33256 if { (ac_try="$ac_cpp conftest.$ac_ext"
33257 case "(($ac_try" in
33258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33259   *) ac_try_echo=$ac_try;;
33260 esac
33261 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33262 $as_echo "$ac_try_echo") >&5
33263   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33264   ac_status=$?
33265   grep -v '^ *+' conftest.er1 >conftest.err
33266   rm -f conftest.er1
33267   cat conftest.err >&5
33268   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33269   (exit $ac_status); } >/dev/null && {
33270          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33271          test ! -s conftest.err
33272        }; then
33273   ac_header_preproc=yes
33274 else
33275   $as_echo "$as_me: failed program was:" >&5
33276 sed 's/^/| /' conftest.$ac_ext >&5
33278   ac_header_preproc=no
33281 rm -f conftest.err conftest.$ac_ext
33282 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33283 $as_echo "$ac_header_preproc" >&6; }
33285 # So?  What about this header?
33286 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33287   yes:no: )
33288     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33289 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33290     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33291 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33292     ac_header_preproc=yes
33293     ;;
33294   no:yes:* )
33295     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33296 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33297     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
33298 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
33299     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33300 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33301     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
33302 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
33303     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33304 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33305     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33306 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33308     ;;
33309 esac
33310 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
33311 $as_echo_n "checking for $ac_header... " >&6; }
33312 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33313   $as_echo_n "(cached) " >&6
33314 else
33315   eval "$as_ac_Header=\$ac_header_preproc"
33317 ac_res=`eval 'as_val=${'$as_ac_Header'}
33318                  $as_echo "$as_val"'`
33319                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
33320 $as_echo "$ac_res" >&6; }
33323 as_val=`eval 'as_val=${'$as_ac_Header'}
33324                  $as_echo "$as_val"'`
33325    if test "x$as_val" = x""yes; then
33326   cat >>confdefs.h <<_ACEOF
33327 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
33328 _ACEOF
33330 for ac_header in lua$lua_vndot/lualib.h
33332 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
33333 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33334   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
33335 $as_echo_n "checking for $ac_header... " >&6; }
33336 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33337   $as_echo_n "(cached) " >&6
33339 ac_res=`eval 'as_val=${'$as_ac_Header'}
33340                  $as_echo "$as_val"'`
33341                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
33342 $as_echo "$ac_res" >&6; }
33343 else
33344   # Is the header compilable?
33345 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
33346 $as_echo_n "checking $ac_header usability... " >&6; }
33347 cat >conftest.$ac_ext <<_ACEOF
33348 /* confdefs.h.  */
33349 _ACEOF
33350 cat confdefs.h >>conftest.$ac_ext
33351 cat >>conftest.$ac_ext <<_ACEOF
33352 /* end confdefs.h.  */
33353 $ac_includes_default
33354 #include <$ac_header>
33355 _ACEOF
33356 rm -f conftest.$ac_objext
33357 if { (ac_try="$ac_compile"
33358 case "(($ac_try" in
33359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33360   *) ac_try_echo=$ac_try;;
33361 esac
33362 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33363 $as_echo "$ac_try_echo") >&5
33364   (eval "$ac_compile") 2>conftest.er1
33365   ac_status=$?
33366   grep -v '^ *+' conftest.er1 >conftest.err
33367   rm -f conftest.er1
33368   cat conftest.err >&5
33369   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33370   (exit $ac_status); } && {
33371          test -z "$ac_c_werror_flag" ||
33372          test ! -s conftest.err
33373        } && test -s conftest.$ac_objext; then
33374   ac_header_compiler=yes
33375 else
33376   $as_echo "$as_me: failed program was:" >&5
33377 sed 's/^/| /' conftest.$ac_ext >&5
33379         ac_header_compiler=no
33382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33383 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33384 $as_echo "$ac_header_compiler" >&6; }
33386 # Is the header present?
33387 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
33388 $as_echo_n "checking $ac_header presence... " >&6; }
33389 cat >conftest.$ac_ext <<_ACEOF
33390 /* confdefs.h.  */
33391 _ACEOF
33392 cat confdefs.h >>conftest.$ac_ext
33393 cat >>conftest.$ac_ext <<_ACEOF
33394 /* end confdefs.h.  */
33395 #include <$ac_header>
33396 _ACEOF
33397 if { (ac_try="$ac_cpp conftest.$ac_ext"
33398 case "(($ac_try" in
33399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33400   *) ac_try_echo=$ac_try;;
33401 esac
33402 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33403 $as_echo "$ac_try_echo") >&5
33404   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33405   ac_status=$?
33406   grep -v '^ *+' conftest.er1 >conftest.err
33407   rm -f conftest.er1
33408   cat conftest.err >&5
33409   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33410   (exit $ac_status); } >/dev/null && {
33411          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33412          test ! -s conftest.err
33413        }; then
33414   ac_header_preproc=yes
33415 else
33416   $as_echo "$as_me: failed program was:" >&5
33417 sed 's/^/| /' conftest.$ac_ext >&5
33419   ac_header_preproc=no
33422 rm -f conftest.err conftest.$ac_ext
33423 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33424 $as_echo "$ac_header_preproc" >&6; }
33426 # So?  What about this header?
33427 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33428   yes:no: )
33429     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33430 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33431     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33432 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33433     ac_header_preproc=yes
33434     ;;
33435   no:yes:* )
33436     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33437 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33438     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
33439 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
33440     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33441 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33442     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
33443 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
33444     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33445 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33446     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33447 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33449     ;;
33450 esac
33451 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
33452 $as_echo_n "checking for $ac_header... " >&6; }
33453 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33454   $as_echo_n "(cached) " >&6
33455 else
33456   eval "$as_ac_Header=\$ac_header_preproc"
33458 ac_res=`eval 'as_val=${'$as_ac_Header'}
33459                  $as_echo "$as_val"'`
33460                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
33461 $as_echo "$ac_res" >&6; }
33464 as_val=`eval 'as_val=${'$as_ac_Header'}
33465                  $as_echo "$as_val"'`
33466    if test "x$as_val" = x""yes; then
33467   cat >>confdefs.h <<_ACEOF
33468 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
33469 _ACEOF
33470  as_ac_Header=`$as_echo "ac_cv_header_lua$lua_vndot/lauxlib.h" | $as_tr_sh`
33471 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33472   { $as_echo "$as_me:$LINENO: checking for lua$lua_vndot/lauxlib.h" >&5
33473 $as_echo_n "checking for lua$lua_vndot/lauxlib.h... " >&6; }
33474 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33475   $as_echo_n "(cached) " >&6
33477 ac_res=`eval 'as_val=${'$as_ac_Header'}
33478                  $as_echo "$as_val"'`
33479                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
33480 $as_echo "$ac_res" >&6; }
33481 else
33482   # Is the header compilable?
33483 { $as_echo "$as_me:$LINENO: checking lua$lua_vndot/lauxlib.h usability" >&5
33484 $as_echo_n "checking lua$lua_vndot/lauxlib.h usability... " >&6; }
33485 cat >conftest.$ac_ext <<_ACEOF
33486 /* confdefs.h.  */
33487 _ACEOF
33488 cat confdefs.h >>conftest.$ac_ext
33489 cat >>conftest.$ac_ext <<_ACEOF
33490 /* end confdefs.h.  */
33491 $ac_includes_default
33492 #include <lua$lua_vndot/lauxlib.h>
33493 _ACEOF
33494 rm -f conftest.$ac_objext
33495 if { (ac_try="$ac_compile"
33496 case "(($ac_try" in
33497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33498   *) ac_try_echo=$ac_try;;
33499 esac
33500 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33501 $as_echo "$ac_try_echo") >&5
33502   (eval "$ac_compile") 2>conftest.er1
33503   ac_status=$?
33504   grep -v '^ *+' conftest.er1 >conftest.err
33505   rm -f conftest.er1
33506   cat conftest.err >&5
33507   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33508   (exit $ac_status); } && {
33509          test -z "$ac_c_werror_flag" ||
33510          test ! -s conftest.err
33511        } && test -s conftest.$ac_objext; then
33512   ac_header_compiler=yes
33513 else
33514   $as_echo "$as_me: failed program was:" >&5
33515 sed 's/^/| /' conftest.$ac_ext >&5
33517         ac_header_compiler=no
33520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33521 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33522 $as_echo "$ac_header_compiler" >&6; }
33524 # Is the header present?
33525 { $as_echo "$as_me:$LINENO: checking lua$lua_vndot/lauxlib.h presence" >&5
33526 $as_echo_n "checking lua$lua_vndot/lauxlib.h presence... " >&6; }
33527 cat >conftest.$ac_ext <<_ACEOF
33528 /* confdefs.h.  */
33529 _ACEOF
33530 cat confdefs.h >>conftest.$ac_ext
33531 cat >>conftest.$ac_ext <<_ACEOF
33532 /* end confdefs.h.  */
33533 #include <lua$lua_vndot/lauxlib.h>
33534 _ACEOF
33535 if { (ac_try="$ac_cpp conftest.$ac_ext"
33536 case "(($ac_try" in
33537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33538   *) ac_try_echo=$ac_try;;
33539 esac
33540 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33541 $as_echo "$ac_try_echo") >&5
33542   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33543   ac_status=$?
33544   grep -v '^ *+' conftest.er1 >conftest.err
33545   rm -f conftest.er1
33546   cat conftest.err >&5
33547   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33548   (exit $ac_status); } >/dev/null && {
33549          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33550          test ! -s conftest.err
33551        }; then
33552   ac_header_preproc=yes
33553 else
33554   $as_echo "$as_me: failed program was:" >&5
33555 sed 's/^/| /' conftest.$ac_ext >&5
33557   ac_header_preproc=no
33560 rm -f conftest.err conftest.$ac_ext
33561 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33562 $as_echo "$ac_header_preproc" >&6; }
33564 # So?  What about this header?
33565 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33566   yes:no: )
33567     { $as_echo "$as_me:$LINENO: WARNING: lua$lua_vndot/lauxlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
33568 $as_echo "$as_me: WARNING: lua$lua_vndot/lauxlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33569     { $as_echo "$as_me:$LINENO: WARNING: lua$lua_vndot/lauxlib.h: proceeding with the compiler's result" >&5
33570 $as_echo "$as_me: WARNING: lua$lua_vndot/lauxlib.h: proceeding with the compiler's result" >&2;}
33571     ac_header_preproc=yes
33572     ;;
33573   no:yes:* )
33574     { $as_echo "$as_me:$LINENO: WARNING: lua$lua_vndot/lauxlib.h: present but cannot be compiled" >&5
33575 $as_echo "$as_me: WARNING: lua$lua_vndot/lauxlib.h: present but cannot be compiled" >&2;}
33576     { $as_echo "$as_me:$LINENO: WARNING: lua$lua_vndot/lauxlib.h:     check for missing prerequisite headers?" >&5
33577 $as_echo "$as_me: WARNING: lua$lua_vndot/lauxlib.h:     check for missing prerequisite headers?" >&2;}
33578     { $as_echo "$as_me:$LINENO: WARNING: lua$lua_vndot/lauxlib.h: see the Autoconf documentation" >&5
33579 $as_echo "$as_me: WARNING: lua$lua_vndot/lauxlib.h: see the Autoconf documentation" >&2;}
33580     { $as_echo "$as_me:$LINENO: WARNING: lua$lua_vndot/lauxlib.h:     section \"Present But Cannot Be Compiled\"" >&5
33581 $as_echo "$as_me: WARNING: lua$lua_vndot/lauxlib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
33582     { $as_echo "$as_me:$LINENO: WARNING: lua$lua_vndot/lauxlib.h: proceeding with the preprocessor's result" >&5
33583 $as_echo "$as_me: WARNING: lua$lua_vndot/lauxlib.h: proceeding with the preprocessor's result" >&2;}
33584     { $as_echo "$as_me:$LINENO: WARNING: lua$lua_vndot/lauxlib.h: in the future, the compiler will take precedence" >&5
33585 $as_echo "$as_me: WARNING: lua$lua_vndot/lauxlib.h: in the future, the compiler will take precedence" >&2;}
33587     ;;
33588 esac
33589 { $as_echo "$as_me:$LINENO: checking for lua$lua_vndot/lauxlib.h" >&5
33590 $as_echo_n "checking for lua$lua_vndot/lauxlib.h... " >&6; }
33591 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33592   $as_echo_n "(cached) " >&6
33593 else
33594   eval "$as_ac_Header=\$ac_header_preproc"
33596 ac_res=`eval 'as_val=${'$as_ac_Header'}
33597                  $as_echo "$as_val"'`
33598                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
33599 $as_echo "$ac_res" >&6; }
33602 as_val=`eval 'as_val=${'$as_ac_Header'}
33603                  $as_echo "$as_val"'`
33604    if test "x$as_val" = x""yes; then
33605   lua_headerdir=lua$lua_vndot
33611 done
33613 else
33615 for ac_header in lua$lua_vdot/lua.h
33617 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
33618 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33619   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
33620 $as_echo_n "checking for $ac_header... " >&6; }
33621 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33622   $as_echo_n "(cached) " >&6
33624 ac_res=`eval 'as_val=${'$as_ac_Header'}
33625                  $as_echo "$as_val"'`
33626                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
33627 $as_echo "$ac_res" >&6; }
33628 else
33629   # Is the header compilable?
33630 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
33631 $as_echo_n "checking $ac_header usability... " >&6; }
33632 cat >conftest.$ac_ext <<_ACEOF
33633 /* confdefs.h.  */
33634 _ACEOF
33635 cat confdefs.h >>conftest.$ac_ext
33636 cat >>conftest.$ac_ext <<_ACEOF
33637 /* end confdefs.h.  */
33638 $ac_includes_default
33639 #include <$ac_header>
33640 _ACEOF
33641 rm -f conftest.$ac_objext
33642 if { (ac_try="$ac_compile"
33643 case "(($ac_try" in
33644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33645   *) ac_try_echo=$ac_try;;
33646 esac
33647 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33648 $as_echo "$ac_try_echo") >&5
33649   (eval "$ac_compile") 2>conftest.er1
33650   ac_status=$?
33651   grep -v '^ *+' conftest.er1 >conftest.err
33652   rm -f conftest.er1
33653   cat conftest.err >&5
33654   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33655   (exit $ac_status); } && {
33656          test -z "$ac_c_werror_flag" ||
33657          test ! -s conftest.err
33658        } && test -s conftest.$ac_objext; then
33659   ac_header_compiler=yes
33660 else
33661   $as_echo "$as_me: failed program was:" >&5
33662 sed 's/^/| /' conftest.$ac_ext >&5
33664         ac_header_compiler=no
33667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33668 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33669 $as_echo "$ac_header_compiler" >&6; }
33671 # Is the header present?
33672 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
33673 $as_echo_n "checking $ac_header presence... " >&6; }
33674 cat >conftest.$ac_ext <<_ACEOF
33675 /* confdefs.h.  */
33676 _ACEOF
33677 cat confdefs.h >>conftest.$ac_ext
33678 cat >>conftest.$ac_ext <<_ACEOF
33679 /* end confdefs.h.  */
33680 #include <$ac_header>
33681 _ACEOF
33682 if { (ac_try="$ac_cpp conftest.$ac_ext"
33683 case "(($ac_try" in
33684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33685   *) ac_try_echo=$ac_try;;
33686 esac
33687 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33688 $as_echo "$ac_try_echo") >&5
33689   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33690   ac_status=$?
33691   grep -v '^ *+' conftest.er1 >conftest.err
33692   rm -f conftest.er1
33693   cat conftest.err >&5
33694   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33695   (exit $ac_status); } >/dev/null && {
33696          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33697          test ! -s conftest.err
33698        }; then
33699   ac_header_preproc=yes
33700 else
33701   $as_echo "$as_me: failed program was:" >&5
33702 sed 's/^/| /' conftest.$ac_ext >&5
33704   ac_header_preproc=no
33707 rm -f conftest.err conftest.$ac_ext
33708 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33709 $as_echo "$ac_header_preproc" >&6; }
33711 # So?  What about this header?
33712 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33713   yes:no: )
33714     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33715 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33716     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33717 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33718     ac_header_preproc=yes
33719     ;;
33720   no:yes:* )
33721     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33722 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33723     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
33724 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
33725     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33726 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33727     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
33728 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
33729     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33730 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33731     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33732 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33734     ;;
33735 esac
33736 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
33737 $as_echo_n "checking for $ac_header... " >&6; }
33738 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33739   $as_echo_n "(cached) " >&6
33740 else
33741   eval "$as_ac_Header=\$ac_header_preproc"
33743 ac_res=`eval 'as_val=${'$as_ac_Header'}
33744                  $as_echo "$as_val"'`
33745                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
33746 $as_echo "$ac_res" >&6; }
33749 as_val=`eval 'as_val=${'$as_ac_Header'}
33750                  $as_echo "$as_val"'`
33751    if test "x$as_val" = x""yes; then
33752   cat >>confdefs.h <<_ACEOF
33753 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
33754 _ACEOF
33756 for ac_header in lua$lua_vdot/lualib.h
33758 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
33759 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33760   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
33761 $as_echo_n "checking for $ac_header... " >&6; }
33762 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33763   $as_echo_n "(cached) " >&6
33765 ac_res=`eval 'as_val=${'$as_ac_Header'}
33766                  $as_echo "$as_val"'`
33767                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
33768 $as_echo "$ac_res" >&6; }
33769 else
33770   # Is the header compilable?
33771 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
33772 $as_echo_n "checking $ac_header usability... " >&6; }
33773 cat >conftest.$ac_ext <<_ACEOF
33774 /* confdefs.h.  */
33775 _ACEOF
33776 cat confdefs.h >>conftest.$ac_ext
33777 cat >>conftest.$ac_ext <<_ACEOF
33778 /* end confdefs.h.  */
33779 $ac_includes_default
33780 #include <$ac_header>
33781 _ACEOF
33782 rm -f conftest.$ac_objext
33783 if { (ac_try="$ac_compile"
33784 case "(($ac_try" in
33785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33786   *) ac_try_echo=$ac_try;;
33787 esac
33788 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33789 $as_echo "$ac_try_echo") >&5
33790   (eval "$ac_compile") 2>conftest.er1
33791   ac_status=$?
33792   grep -v '^ *+' conftest.er1 >conftest.err
33793   rm -f conftest.er1
33794   cat conftest.err >&5
33795   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33796   (exit $ac_status); } && {
33797          test -z "$ac_c_werror_flag" ||
33798          test ! -s conftest.err
33799        } && test -s conftest.$ac_objext; then
33800   ac_header_compiler=yes
33801 else
33802   $as_echo "$as_me: failed program was:" >&5
33803 sed 's/^/| /' conftest.$ac_ext >&5
33805         ac_header_compiler=no
33808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33809 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33810 $as_echo "$ac_header_compiler" >&6; }
33812 # Is the header present?
33813 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
33814 $as_echo_n "checking $ac_header presence... " >&6; }
33815 cat >conftest.$ac_ext <<_ACEOF
33816 /* confdefs.h.  */
33817 _ACEOF
33818 cat confdefs.h >>conftest.$ac_ext
33819 cat >>conftest.$ac_ext <<_ACEOF
33820 /* end confdefs.h.  */
33821 #include <$ac_header>
33822 _ACEOF
33823 if { (ac_try="$ac_cpp conftest.$ac_ext"
33824 case "(($ac_try" in
33825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33826   *) ac_try_echo=$ac_try;;
33827 esac
33828 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33829 $as_echo "$ac_try_echo") >&5
33830   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33831   ac_status=$?
33832   grep -v '^ *+' conftest.er1 >conftest.err
33833   rm -f conftest.er1
33834   cat conftest.err >&5
33835   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33836   (exit $ac_status); } >/dev/null && {
33837          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33838          test ! -s conftest.err
33839        }; then
33840   ac_header_preproc=yes
33841 else
33842   $as_echo "$as_me: failed program was:" >&5
33843 sed 's/^/| /' conftest.$ac_ext >&5
33845   ac_header_preproc=no
33848 rm -f conftest.err conftest.$ac_ext
33849 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33850 $as_echo "$ac_header_preproc" >&6; }
33852 # So?  What about this header?
33853 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33854   yes:no: )
33855     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33856 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33857     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33858 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33859     ac_header_preproc=yes
33860     ;;
33861   no:yes:* )
33862     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33863 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33864     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
33865 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
33866     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33867 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33868     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
33869 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
33870     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33871 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33872     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33873 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33875     ;;
33876 esac
33877 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
33878 $as_echo_n "checking for $ac_header... " >&6; }
33879 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33880   $as_echo_n "(cached) " >&6
33881 else
33882   eval "$as_ac_Header=\$ac_header_preproc"
33884 ac_res=`eval 'as_val=${'$as_ac_Header'}
33885                  $as_echo "$as_val"'`
33886                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
33887 $as_echo "$ac_res" >&6; }
33890 as_val=`eval 'as_val=${'$as_ac_Header'}
33891                  $as_echo "$as_val"'`
33892    if test "x$as_val" = x""yes; then
33893   cat >>confdefs.h <<_ACEOF
33894 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
33895 _ACEOF
33896  as_ac_Header=`$as_echo "ac_cv_header_lua$lua_vdot/lauxlib.h" | $as_tr_sh`
33897 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33898   { $as_echo "$as_me:$LINENO: checking for lua$lua_vdot/lauxlib.h" >&5
33899 $as_echo_n "checking for lua$lua_vdot/lauxlib.h... " >&6; }
33900 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33901   $as_echo_n "(cached) " >&6
33903 ac_res=`eval 'as_val=${'$as_ac_Header'}
33904                  $as_echo "$as_val"'`
33905                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
33906 $as_echo "$ac_res" >&6; }
33907 else
33908   # Is the header compilable?
33909 { $as_echo "$as_me:$LINENO: checking lua$lua_vdot/lauxlib.h usability" >&5
33910 $as_echo_n "checking lua$lua_vdot/lauxlib.h usability... " >&6; }
33911 cat >conftest.$ac_ext <<_ACEOF
33912 /* confdefs.h.  */
33913 _ACEOF
33914 cat confdefs.h >>conftest.$ac_ext
33915 cat >>conftest.$ac_ext <<_ACEOF
33916 /* end confdefs.h.  */
33917 $ac_includes_default
33918 #include <lua$lua_vdot/lauxlib.h>
33919 _ACEOF
33920 rm -f conftest.$ac_objext
33921 if { (ac_try="$ac_compile"
33922 case "(($ac_try" in
33923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33924   *) ac_try_echo=$ac_try;;
33925 esac
33926 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33927 $as_echo "$ac_try_echo") >&5
33928   (eval "$ac_compile") 2>conftest.er1
33929   ac_status=$?
33930   grep -v '^ *+' conftest.er1 >conftest.err
33931   rm -f conftest.er1
33932   cat conftest.err >&5
33933   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33934   (exit $ac_status); } && {
33935          test -z "$ac_c_werror_flag" ||
33936          test ! -s conftest.err
33937        } && test -s conftest.$ac_objext; then
33938   ac_header_compiler=yes
33939 else
33940   $as_echo "$as_me: failed program was:" >&5
33941 sed 's/^/| /' conftest.$ac_ext >&5
33943         ac_header_compiler=no
33946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33947 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33948 $as_echo "$ac_header_compiler" >&6; }
33950 # Is the header present?
33951 { $as_echo "$as_me:$LINENO: checking lua$lua_vdot/lauxlib.h presence" >&5
33952 $as_echo_n "checking lua$lua_vdot/lauxlib.h presence... " >&6; }
33953 cat >conftest.$ac_ext <<_ACEOF
33954 /* confdefs.h.  */
33955 _ACEOF
33956 cat confdefs.h >>conftest.$ac_ext
33957 cat >>conftest.$ac_ext <<_ACEOF
33958 /* end confdefs.h.  */
33959 #include <lua$lua_vdot/lauxlib.h>
33960 _ACEOF
33961 if { (ac_try="$ac_cpp conftest.$ac_ext"
33962 case "(($ac_try" in
33963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33964   *) ac_try_echo=$ac_try;;
33965 esac
33966 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33967 $as_echo "$ac_try_echo") >&5
33968   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33969   ac_status=$?
33970   grep -v '^ *+' conftest.er1 >conftest.err
33971   rm -f conftest.er1
33972   cat conftest.err >&5
33973   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33974   (exit $ac_status); } >/dev/null && {
33975          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33976          test ! -s conftest.err
33977        }; then
33978   ac_header_preproc=yes
33979 else
33980   $as_echo "$as_me: failed program was:" >&5
33981 sed 's/^/| /' conftest.$ac_ext >&5
33983   ac_header_preproc=no
33986 rm -f conftest.err conftest.$ac_ext
33987 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33988 $as_echo "$ac_header_preproc" >&6; }
33990 # So?  What about this header?
33991 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33992   yes:no: )
33993     { $as_echo "$as_me:$LINENO: WARNING: lua$lua_vdot/lauxlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
33994 $as_echo "$as_me: WARNING: lua$lua_vdot/lauxlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33995     { $as_echo "$as_me:$LINENO: WARNING: lua$lua_vdot/lauxlib.h: proceeding with the compiler's result" >&5
33996 $as_echo "$as_me: WARNING: lua$lua_vdot/lauxlib.h: proceeding with the compiler's result" >&2;}
33997     ac_header_preproc=yes
33998     ;;
33999   no:yes:* )
34000     { $as_echo "$as_me:$LINENO: WARNING: lua$lua_vdot/lauxlib.h: present but cannot be compiled" >&5
34001 $as_echo "$as_me: WARNING: lua$lua_vdot/lauxlib.h: present but cannot be compiled" >&2;}
34002     { $as_echo "$as_me:$LINENO: WARNING: lua$lua_vdot/lauxlib.h:     check for missing prerequisite headers?" >&5
34003 $as_echo "$as_me: WARNING: lua$lua_vdot/lauxlib.h:     check for missing prerequisite headers?" >&2;}
34004     { $as_echo "$as_me:$LINENO: WARNING: lua$lua_vdot/lauxlib.h: see the Autoconf documentation" >&5
34005 $as_echo "$as_me: WARNING: lua$lua_vdot/lauxlib.h: see the Autoconf documentation" >&2;}
34006     { $as_echo "$as_me:$LINENO: WARNING: lua$lua_vdot/lauxlib.h:     section \"Present But Cannot Be Compiled\"" >&5
34007 $as_echo "$as_me: WARNING: lua$lua_vdot/lauxlib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
34008     { $as_echo "$as_me:$LINENO: WARNING: lua$lua_vdot/lauxlib.h: proceeding with the preprocessor's result" >&5
34009 $as_echo "$as_me: WARNING: lua$lua_vdot/lauxlib.h: proceeding with the preprocessor's result" >&2;}
34010     { $as_echo "$as_me:$LINENO: WARNING: lua$lua_vdot/lauxlib.h: in the future, the compiler will take precedence" >&5
34011 $as_echo "$as_me: WARNING: lua$lua_vdot/lauxlib.h: in the future, the compiler will take precedence" >&2;}
34013     ;;
34014 esac
34015 { $as_echo "$as_me:$LINENO: checking for lua$lua_vdot/lauxlib.h" >&5
34016 $as_echo_n "checking for lua$lua_vdot/lauxlib.h... " >&6; }
34017 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34018   $as_echo_n "(cached) " >&6
34019 else
34020   eval "$as_ac_Header=\$ac_header_preproc"
34022 ac_res=`eval 'as_val=${'$as_ac_Header'}
34023                  $as_echo "$as_val"'`
34024                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
34025 $as_echo "$ac_res" >&6; }
34028 as_val=`eval 'as_val=${'$as_ac_Header'}
34029                  $as_echo "$as_val"'`
34030    if test "x$as_val" = x""yes; then
34031   lua_headerdir=lua$lua_vdot
34037 done
34039 else
34041 for ac_header in lua.h
34043 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
34044 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34045   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
34046 $as_echo_n "checking for $ac_header... " >&6; }
34047 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34048   $as_echo_n "(cached) " >&6
34050 ac_res=`eval 'as_val=${'$as_ac_Header'}
34051                  $as_echo "$as_val"'`
34052                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
34053 $as_echo "$ac_res" >&6; }
34054 else
34055   # Is the header compilable?
34056 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
34057 $as_echo_n "checking $ac_header usability... " >&6; }
34058 cat >conftest.$ac_ext <<_ACEOF
34059 /* confdefs.h.  */
34060 _ACEOF
34061 cat confdefs.h >>conftest.$ac_ext
34062 cat >>conftest.$ac_ext <<_ACEOF
34063 /* end confdefs.h.  */
34064 $ac_includes_default
34065 #include <$ac_header>
34066 _ACEOF
34067 rm -f conftest.$ac_objext
34068 if { (ac_try="$ac_compile"
34069 case "(($ac_try" in
34070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34071   *) ac_try_echo=$ac_try;;
34072 esac
34073 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34074 $as_echo "$ac_try_echo") >&5
34075   (eval "$ac_compile") 2>conftest.er1
34076   ac_status=$?
34077   grep -v '^ *+' conftest.er1 >conftest.err
34078   rm -f conftest.er1
34079   cat conftest.err >&5
34080   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34081   (exit $ac_status); } && {
34082          test -z "$ac_c_werror_flag" ||
34083          test ! -s conftest.err
34084        } && test -s conftest.$ac_objext; then
34085   ac_header_compiler=yes
34086 else
34087   $as_echo "$as_me: failed program was:" >&5
34088 sed 's/^/| /' conftest.$ac_ext >&5
34090         ac_header_compiler=no
34093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34094 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34095 $as_echo "$ac_header_compiler" >&6; }
34097 # Is the header present?
34098 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
34099 $as_echo_n "checking $ac_header presence... " >&6; }
34100 cat >conftest.$ac_ext <<_ACEOF
34101 /* confdefs.h.  */
34102 _ACEOF
34103 cat confdefs.h >>conftest.$ac_ext
34104 cat >>conftest.$ac_ext <<_ACEOF
34105 /* end confdefs.h.  */
34106 #include <$ac_header>
34107 _ACEOF
34108 if { (ac_try="$ac_cpp conftest.$ac_ext"
34109 case "(($ac_try" in
34110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34111   *) ac_try_echo=$ac_try;;
34112 esac
34113 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34114 $as_echo "$ac_try_echo") >&5
34115   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34116   ac_status=$?
34117   grep -v '^ *+' conftest.er1 >conftest.err
34118   rm -f conftest.er1
34119   cat conftest.err >&5
34120   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34121   (exit $ac_status); } >/dev/null && {
34122          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
34123          test ! -s conftest.err
34124        }; then
34125   ac_header_preproc=yes
34126 else
34127   $as_echo "$as_me: failed program was:" >&5
34128 sed 's/^/| /' conftest.$ac_ext >&5
34130   ac_header_preproc=no
34133 rm -f conftest.err conftest.$ac_ext
34134 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34135 $as_echo "$ac_header_preproc" >&6; }
34137 # So?  What about this header?
34138 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34139   yes:no: )
34140     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34141 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34142     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34143 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34144     ac_header_preproc=yes
34145     ;;
34146   no:yes:* )
34147     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34148 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34149     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
34150 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
34151     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34152 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34153     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
34154 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
34155     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34156 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34157     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34158 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34160     ;;
34161 esac
34162 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
34163 $as_echo_n "checking for $ac_header... " >&6; }
34164 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34165   $as_echo_n "(cached) " >&6
34166 else
34167   eval "$as_ac_Header=\$ac_header_preproc"
34169 ac_res=`eval 'as_val=${'$as_ac_Header'}
34170                  $as_echo "$as_val"'`
34171                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
34172 $as_echo "$ac_res" >&6; }
34175 as_val=`eval 'as_val=${'$as_ac_Header'}
34176                  $as_echo "$as_val"'`
34177    if test "x$as_val" = x""yes; then
34178   cat >>confdefs.h <<_ACEOF
34179 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
34180 _ACEOF
34182 for ac_header in lualib.h
34184 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
34185 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34186   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
34187 $as_echo_n "checking for $ac_header... " >&6; }
34188 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34189   $as_echo_n "(cached) " >&6
34191 ac_res=`eval 'as_val=${'$as_ac_Header'}
34192                  $as_echo "$as_val"'`
34193                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
34194 $as_echo "$ac_res" >&6; }
34195 else
34196   # Is the header compilable?
34197 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
34198 $as_echo_n "checking $ac_header usability... " >&6; }
34199 cat >conftest.$ac_ext <<_ACEOF
34200 /* confdefs.h.  */
34201 _ACEOF
34202 cat confdefs.h >>conftest.$ac_ext
34203 cat >>conftest.$ac_ext <<_ACEOF
34204 /* end confdefs.h.  */
34205 $ac_includes_default
34206 #include <$ac_header>
34207 _ACEOF
34208 rm -f conftest.$ac_objext
34209 if { (ac_try="$ac_compile"
34210 case "(($ac_try" in
34211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34212   *) ac_try_echo=$ac_try;;
34213 esac
34214 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34215 $as_echo "$ac_try_echo") >&5
34216   (eval "$ac_compile") 2>conftest.er1
34217   ac_status=$?
34218   grep -v '^ *+' conftest.er1 >conftest.err
34219   rm -f conftest.er1
34220   cat conftest.err >&5
34221   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34222   (exit $ac_status); } && {
34223          test -z "$ac_c_werror_flag" ||
34224          test ! -s conftest.err
34225        } && test -s conftest.$ac_objext; then
34226   ac_header_compiler=yes
34227 else
34228   $as_echo "$as_me: failed program was:" >&5
34229 sed 's/^/| /' conftest.$ac_ext >&5
34231         ac_header_compiler=no
34234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34235 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34236 $as_echo "$ac_header_compiler" >&6; }
34238 # Is the header present?
34239 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
34240 $as_echo_n "checking $ac_header presence... " >&6; }
34241 cat >conftest.$ac_ext <<_ACEOF
34242 /* confdefs.h.  */
34243 _ACEOF
34244 cat confdefs.h >>conftest.$ac_ext
34245 cat >>conftest.$ac_ext <<_ACEOF
34246 /* end confdefs.h.  */
34247 #include <$ac_header>
34248 _ACEOF
34249 if { (ac_try="$ac_cpp conftest.$ac_ext"
34250 case "(($ac_try" in
34251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34252   *) ac_try_echo=$ac_try;;
34253 esac
34254 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34255 $as_echo "$ac_try_echo") >&5
34256   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34257   ac_status=$?
34258   grep -v '^ *+' conftest.er1 >conftest.err
34259   rm -f conftest.er1
34260   cat conftest.err >&5
34261   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34262   (exit $ac_status); } >/dev/null && {
34263          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
34264          test ! -s conftest.err
34265        }; then
34266   ac_header_preproc=yes
34267 else
34268   $as_echo "$as_me: failed program was:" >&5
34269 sed 's/^/| /' conftest.$ac_ext >&5
34271   ac_header_preproc=no
34274 rm -f conftest.err conftest.$ac_ext
34275 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34276 $as_echo "$ac_header_preproc" >&6; }
34278 # So?  What about this header?
34279 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34280   yes:no: )
34281     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34282 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34283     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34284 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34285     ac_header_preproc=yes
34286     ;;
34287   no:yes:* )
34288     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34289 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34290     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
34291 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
34292     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34293 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34294     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
34295 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
34296     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34297 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34298     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34299 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34301     ;;
34302 esac
34303 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
34304 $as_echo_n "checking for $ac_header... " >&6; }
34305 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34306   $as_echo_n "(cached) " >&6
34307 else
34308   eval "$as_ac_Header=\$ac_header_preproc"
34310 ac_res=`eval 'as_val=${'$as_ac_Header'}
34311                  $as_echo "$as_val"'`
34312                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
34313 $as_echo "$ac_res" >&6; }
34316 as_val=`eval 'as_val=${'$as_ac_Header'}
34317                  $as_echo "$as_val"'`
34318    if test "x$as_val" = x""yes; then
34319   cat >>confdefs.h <<_ACEOF
34320 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
34321 _ACEOF
34322  if test "${ac_cv_header_lauxlib_h+set}" = set; then
34323   { $as_echo "$as_me:$LINENO: checking for lauxlib.h" >&5
34324 $as_echo_n "checking for lauxlib.h... " >&6; }
34325 if test "${ac_cv_header_lauxlib_h+set}" = set; then
34326   $as_echo_n "(cached) " >&6
34328 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_lauxlib_h" >&5
34329 $as_echo "$ac_cv_header_lauxlib_h" >&6; }
34330 else
34331   # Is the header compilable?
34332 { $as_echo "$as_me:$LINENO: checking lauxlib.h usability" >&5
34333 $as_echo_n "checking lauxlib.h usability... " >&6; }
34334 cat >conftest.$ac_ext <<_ACEOF
34335 /* confdefs.h.  */
34336 _ACEOF
34337 cat confdefs.h >>conftest.$ac_ext
34338 cat >>conftest.$ac_ext <<_ACEOF
34339 /* end confdefs.h.  */
34340 $ac_includes_default
34341 #include <lauxlib.h>
34342 _ACEOF
34343 rm -f conftest.$ac_objext
34344 if { (ac_try="$ac_compile"
34345 case "(($ac_try" in
34346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34347   *) ac_try_echo=$ac_try;;
34348 esac
34349 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34350 $as_echo "$ac_try_echo") >&5
34351   (eval "$ac_compile") 2>conftest.er1
34352   ac_status=$?
34353   grep -v '^ *+' conftest.er1 >conftest.err
34354   rm -f conftest.er1
34355   cat conftest.err >&5
34356   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34357   (exit $ac_status); } && {
34358          test -z "$ac_c_werror_flag" ||
34359          test ! -s conftest.err
34360        } && test -s conftest.$ac_objext; then
34361   ac_header_compiler=yes
34362 else
34363   $as_echo "$as_me: failed program was:" >&5
34364 sed 's/^/| /' conftest.$ac_ext >&5
34366         ac_header_compiler=no
34369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34370 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34371 $as_echo "$ac_header_compiler" >&6; }
34373 # Is the header present?
34374 { $as_echo "$as_me:$LINENO: checking lauxlib.h presence" >&5
34375 $as_echo_n "checking lauxlib.h presence... " >&6; }
34376 cat >conftest.$ac_ext <<_ACEOF
34377 /* confdefs.h.  */
34378 _ACEOF
34379 cat confdefs.h >>conftest.$ac_ext
34380 cat >>conftest.$ac_ext <<_ACEOF
34381 /* end confdefs.h.  */
34382 #include <lauxlib.h>
34383 _ACEOF
34384 if { (ac_try="$ac_cpp conftest.$ac_ext"
34385 case "(($ac_try" in
34386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34387   *) ac_try_echo=$ac_try;;
34388 esac
34389 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34390 $as_echo "$ac_try_echo") >&5
34391   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34392   ac_status=$?
34393   grep -v '^ *+' conftest.er1 >conftest.err
34394   rm -f conftest.er1
34395   cat conftest.err >&5
34396   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34397   (exit $ac_status); } >/dev/null && {
34398          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
34399          test ! -s conftest.err
34400        }; then
34401   ac_header_preproc=yes
34402 else
34403   $as_echo "$as_me: failed program was:" >&5
34404 sed 's/^/| /' conftest.$ac_ext >&5
34406   ac_header_preproc=no
34409 rm -f conftest.err conftest.$ac_ext
34410 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34411 $as_echo "$ac_header_preproc" >&6; }
34413 # So?  What about this header?
34414 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34415   yes:no: )
34416     { $as_echo "$as_me:$LINENO: WARNING: lauxlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
34417 $as_echo "$as_me: WARNING: lauxlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
34418     { $as_echo "$as_me:$LINENO: WARNING: lauxlib.h: proceeding with the compiler's result" >&5
34419 $as_echo "$as_me: WARNING: lauxlib.h: proceeding with the compiler's result" >&2;}
34420     ac_header_preproc=yes
34421     ;;
34422   no:yes:* )
34423     { $as_echo "$as_me:$LINENO: WARNING: lauxlib.h: present but cannot be compiled" >&5
34424 $as_echo "$as_me: WARNING: lauxlib.h: present but cannot be compiled" >&2;}
34425     { $as_echo "$as_me:$LINENO: WARNING: lauxlib.h:     check for missing prerequisite headers?" >&5
34426 $as_echo "$as_me: WARNING: lauxlib.h:     check for missing prerequisite headers?" >&2;}
34427     { $as_echo "$as_me:$LINENO: WARNING: lauxlib.h: see the Autoconf documentation" >&5
34428 $as_echo "$as_me: WARNING: lauxlib.h: see the Autoconf documentation" >&2;}
34429     { $as_echo "$as_me:$LINENO: WARNING: lauxlib.h:     section \"Present But Cannot Be Compiled\"" >&5
34430 $as_echo "$as_me: WARNING: lauxlib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
34431     { $as_echo "$as_me:$LINENO: WARNING: lauxlib.h: proceeding with the preprocessor's result" >&5
34432 $as_echo "$as_me: WARNING: lauxlib.h: proceeding with the preprocessor's result" >&2;}
34433     { $as_echo "$as_me:$LINENO: WARNING: lauxlib.h: in the future, the compiler will take precedence" >&5
34434 $as_echo "$as_me: WARNING: lauxlib.h: in the future, the compiler will take precedence" >&2;}
34436     ;;
34437 esac
34438 { $as_echo "$as_me:$LINENO: checking for lauxlib.h" >&5
34439 $as_echo_n "checking for lauxlib.h... " >&6; }
34440 if test "${ac_cv_header_lauxlib_h+set}" = set; then
34441   $as_echo_n "(cached) " >&6
34442 else
34443   ac_cv_header_lauxlib_h=$ac_header_preproc
34445 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_lauxlib_h" >&5
34446 $as_echo "$ac_cv_header_lauxlib_h" >&6; }
34449 if test "x$ac_cv_header_lauxlib_h" = x""yes; then
34450   lua_headerdir=""
34451 else
34452   lua_headerdir="no"
34458 done
34462 done
34466 done
34470 done
34473     if test "$lua_headerdir" = "no"; then
34474       enable_lua=no
34475     else
34476       COMP_LUA=lua
34477     fi
34479     if test "$COMP_LUA" != "lua"; then
34480       enable_lua=no
34481       { $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
34482 $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;}
34483     else
34484       # OK, headers found, let's check the libraries (LIBS is not used)
34485       LIBS=
34486       lua_havelib=no
34487       LUA_HAVE_COMPAT51=DONT_HAVE_COMPAT51
34488       { $as_echo "$as_me:$LINENO: checking for library containing lua_call" >&5
34489 $as_echo_n "checking for library containing lua_call... " >&6; }
34490 if test "${ac_cv_search_lua_call+set}" = set; then
34491   $as_echo_n "(cached) " >&6
34492 else
34493   ac_func_search_save_LIBS=$LIBS
34494 cat >conftest.$ac_ext <<_ACEOF
34495 /* confdefs.h.  */
34496 _ACEOF
34497 cat confdefs.h >>conftest.$ac_ext
34498 cat >>conftest.$ac_ext <<_ACEOF
34499 /* end confdefs.h.  */
34501 /* Override any GCC internal prototype to avoid an error.
34502    Use char because int might match the return type of a GCC
34503    builtin and then its argument prototype would still apply.  */
34504 #ifdef __cplusplus
34505 extern "C"
34506 #endif
34507 char lua_call ();
34508 int
34509 main ()
34511 return lua_call ();
34512   ;
34513   return 0;
34515 _ACEOF
34516 for ac_lib in '' lua$lua_vdot lua$lua_vndot lua; do
34517   if test -z "$ac_lib"; then
34518     ac_res="none required"
34519   else
34520     ac_res=-l$ac_lib
34521     LIBS="-l$ac_lib -lm $ac_func_search_save_LIBS"
34522   fi
34523   rm -f conftest.$ac_objext conftest$ac_exeext
34524 if { (ac_try="$ac_link"
34525 case "(($ac_try" in
34526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34527   *) ac_try_echo=$ac_try;;
34528 esac
34529 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34530 $as_echo "$ac_try_echo") >&5
34531   (eval "$ac_link") 2>conftest.er1
34532   ac_status=$?
34533   grep -v '^ *+' conftest.er1 >conftest.err
34534   rm -f conftest.er1
34535   cat conftest.err >&5
34536   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34537   (exit $ac_status); } && {
34538          test -z "$ac_c_werror_flag" ||
34539          test ! -s conftest.err
34540        } && test -s conftest$ac_exeext && {
34541          test "$cross_compiling" = yes ||
34542          $as_test_x conftest$ac_exeext
34543        }; then
34544   ac_cv_search_lua_call=$ac_res
34545 else
34546   $as_echo "$as_me: failed program was:" >&5
34547 sed 's/^/| /' conftest.$ac_ext >&5
34552 rm -rf conftest.dSYM
34553 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34554       conftest$ac_exeext
34555   if test "${ac_cv_search_lua_call+set}" = set; then
34556   break
34558 done
34559 if test "${ac_cv_search_lua_call+set}" = set; then
34560   :
34561 else
34562   ac_cv_search_lua_call=no
34564 rm conftest.$ac_ext
34565 LIBS=$ac_func_search_save_LIBS
34567 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_lua_call" >&5
34568 $as_echo "$ac_cv_search_lua_call" >&6; }
34569 ac_res=$ac_cv_search_lua_call
34570 if test "$ac_res" != no; then
34571   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
34572   { $as_echo "$as_me:$LINENO: checking for library containing luaL_register" >&5
34573 $as_echo_n "checking for library containing luaL_register... " >&6; }
34574 if test "${ac_cv_search_luaL_register+set}" = set; then
34575   $as_echo_n "(cached) " >&6
34576 else
34577   ac_func_search_save_LIBS=$LIBS
34578 cat >conftest.$ac_ext <<_ACEOF
34579 /* confdefs.h.  */
34580 _ACEOF
34581 cat confdefs.h >>conftest.$ac_ext
34582 cat >>conftest.$ac_ext <<_ACEOF
34583 /* end confdefs.h.  */
34585 /* Override any GCC internal prototype to avoid an error.
34586    Use char because int might match the return type of a GCC
34587    builtin and then its argument prototype would still apply.  */
34588 #ifdef __cplusplus
34589 extern "C"
34590 #endif
34591 char luaL_register ();
34592 int
34593 main ()
34595 return luaL_register ();
34596   ;
34597   return 0;
34599 _ACEOF
34600 for ac_lib in '' lua$lua_vdot lua$lua_vndot lua; do
34601   if test -z "$ac_lib"; then
34602     ac_res="none required"
34603   else
34604     ac_res=-l$ac_lib
34605     LIBS="-l$ac_lib -lm $ac_func_search_save_LIBS"
34606   fi
34607   rm -f conftest.$ac_objext conftest$ac_exeext
34608 if { (ac_try="$ac_link"
34609 case "(($ac_try" in
34610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34611   *) ac_try_echo=$ac_try;;
34612 esac
34613 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34614 $as_echo "$ac_try_echo") >&5
34615   (eval "$ac_link") 2>conftest.er1
34616   ac_status=$?
34617   grep -v '^ *+' conftest.er1 >conftest.err
34618   rm -f conftest.er1
34619   cat conftest.err >&5
34620   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34621   (exit $ac_status); } && {
34622          test -z "$ac_c_werror_flag" ||
34623          test ! -s conftest.err
34624        } && test -s conftest$ac_exeext && {
34625          test "$cross_compiling" = yes ||
34626          $as_test_x conftest$ac_exeext
34627        }; then
34628   ac_cv_search_luaL_register=$ac_res
34629 else
34630   $as_echo "$as_me: failed program was:" >&5
34631 sed 's/^/| /' conftest.$ac_ext >&5
34636 rm -rf conftest.dSYM
34637 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34638       conftest$ac_exeext
34639   if test "${ac_cv_search_luaL_register+set}" = set; then
34640   break
34642 done
34643 if test "${ac_cv_search_luaL_register+set}" = set; then
34644   :
34645 else
34646   ac_cv_search_luaL_register=no
34648 rm conftest.$ac_ext
34649 LIBS=$ac_func_search_save_LIBS
34651 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_luaL_register" >&5
34652 $as_echo "$ac_cv_search_luaL_register" >&6; }
34653 ac_res=$ac_cv_search_luaL_register
34654 if test "$ac_res" != no; then
34655   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
34656   lua_havelib=LUA$lua_vndot
34657 else
34658   { $as_echo "$as_me:$LINENO: checking for library containing luaL_module" >&5
34659 $as_echo_n "checking for library containing luaL_module... " >&6; }
34660 if test "${ac_cv_search_luaL_module+set}" = set; then
34661   $as_echo_n "(cached) " >&6
34662 else
34663   ac_func_search_save_LIBS=$LIBS
34664 cat >conftest.$ac_ext <<_ACEOF
34665 /* confdefs.h.  */
34666 _ACEOF
34667 cat confdefs.h >>conftest.$ac_ext
34668 cat >>conftest.$ac_ext <<_ACEOF
34669 /* end confdefs.h.  */
34671 /* Override any GCC internal prototype to avoid an error.
34672    Use char because int might match the return type of a GCC
34673    builtin and then its argument prototype would still apply.  */
34674 #ifdef __cplusplus
34675 extern "C"
34676 #endif
34677 char luaL_module ();
34678 int
34679 main ()
34681 return luaL_module ();
34682   ;
34683   return 0;
34685 _ACEOF
34686 for ac_lib in '' lualib$lua_vndot lualib$lua_vdot lualib; do
34687   if test -z "$ac_lib"; then
34688     ac_res="none required"
34689   else
34690     ac_res=-l$ac_lib
34691     LIBS="-l$ac_lib -lm $ac_func_search_save_LIBS"
34692   fi
34693   rm -f conftest.$ac_objext conftest$ac_exeext
34694 if { (ac_try="$ac_link"
34695 case "(($ac_try" in
34696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34697   *) ac_try_echo=$ac_try;;
34698 esac
34699 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34700 $as_echo "$ac_try_echo") >&5
34701   (eval "$ac_link") 2>conftest.er1
34702   ac_status=$?
34703   grep -v '^ *+' conftest.er1 >conftest.err
34704   rm -f conftest.er1
34705   cat conftest.err >&5
34706   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34707   (exit $ac_status); } && {
34708          test -z "$ac_c_werror_flag" ||
34709          test ! -s conftest.err
34710        } && test -s conftest$ac_exeext && {
34711          test "$cross_compiling" = yes ||
34712          $as_test_x conftest$ac_exeext
34713        }; then
34714   ac_cv_search_luaL_module=$ac_res
34715 else
34716   $as_echo "$as_me: failed program was:" >&5
34717 sed 's/^/| /' conftest.$ac_ext >&5
34722 rm -rf conftest.dSYM
34723 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34724       conftest$ac_exeext
34725   if test "${ac_cv_search_luaL_module+set}" = set; then
34726   break
34728 done
34729 if test "${ac_cv_search_luaL_module+set}" = set; then
34730   :
34731 else
34732   ac_cv_search_luaL_module=no
34734 rm conftest.$ac_ext
34735 LIBS=$ac_func_search_save_LIBS
34737 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_luaL_module" >&5
34738 $as_echo "$ac_cv_search_luaL_module" >&6; }
34739 ac_res=$ac_cv_search_luaL_module
34740 if test "$ac_res" != no; then
34741   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
34742   lua_havelib=$lua_vndot; $LUA -l compat-5.1 2>/dev/null;
34743              test "$?" = "0" && LUA_HAVE_COMPAT51=HAVE_COMPAT51
34744 else
34745   { $as_echo "$as_me:$LINENO: checking for library containing luaL_openlib" >&5
34746 $as_echo_n "checking for library containing luaL_openlib... " >&6; }
34747 if test "${ac_cv_search_luaL_openlib+set}" = set; then
34748   $as_echo_n "(cached) " >&6
34749 else
34750   ac_func_search_save_LIBS=$LIBS
34751 cat >conftest.$ac_ext <<_ACEOF
34752 /* confdefs.h.  */
34753 _ACEOF
34754 cat confdefs.h >>conftest.$ac_ext
34755 cat >>conftest.$ac_ext <<_ACEOF
34756 /* end confdefs.h.  */
34758 /* Override any GCC internal prototype to avoid an error.
34759    Use char because int might match the return type of a GCC
34760    builtin and then its argument prototype would still apply.  */
34761 #ifdef __cplusplus
34762 extern "C"
34763 #endif
34764 char luaL_openlib ();
34765 int
34766 main ()
34768 return luaL_openlib ();
34769   ;
34770   return 0;
34772 _ACEOF
34773 for ac_lib in '' lualib$lua_vdot lualib$lua_vndot lualib; do
34774   if test -z "$ac_lib"; then
34775     ac_res="none required"
34776   else
34777     ac_res=-l$ac_lib
34778     LIBS="-l$ac_lib -lm $ac_func_search_save_LIBS"
34779   fi
34780   rm -f conftest.$ac_objext conftest$ac_exeext
34781 if { (ac_try="$ac_link"
34782 case "(($ac_try" in
34783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34784   *) ac_try_echo=$ac_try;;
34785 esac
34786 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34787 $as_echo "$ac_try_echo") >&5
34788   (eval "$ac_link") 2>conftest.er1
34789   ac_status=$?
34790   grep -v '^ *+' conftest.er1 >conftest.err
34791   rm -f conftest.er1
34792   cat conftest.err >&5
34793   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34794   (exit $ac_status); } && {
34795          test -z "$ac_c_werror_flag" ||
34796          test ! -s conftest.err
34797        } && test -s conftest$ac_exeext && {
34798          test "$cross_compiling" = yes ||
34799          $as_test_x conftest$ac_exeext
34800        }; then
34801   ac_cv_search_luaL_openlib=$ac_res
34802 else
34803   $as_echo "$as_me: failed program was:" >&5
34804 sed 's/^/| /' conftest.$ac_ext >&5
34809 rm -rf conftest.dSYM
34810 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34811       conftest$ac_exeext
34812   if test "${ac_cv_search_luaL_openlib+set}" = set; then
34813   break
34815 done
34816 if test "${ac_cv_search_luaL_openlib+set}" = set; then
34817   :
34818 else
34819   ac_cv_search_luaL_openlib=no
34821 rm conftest.$ac_ext
34822 LIBS=$ac_func_search_save_LIBS
34824 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_luaL_openlib" >&5
34825 $as_echo "$ac_cv_search_luaL_openlib" >&6; }
34826 ac_res=$ac_cv_search_luaL_openlib
34827 if test "$ac_res" != no; then
34828   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
34829   lua_havelib=$lua_vndot
34830 else
34831   COMP_LUA=
34838 else
34839   COMP_LUA=
34842       lua_libs=$LIBS
34843       LIBS=
34845       # Options to pass when configuring Lua module
34846       if test  "$lua_havelib" != "no"; then
34847         # OK, headers and libs found. Try to set lua flags
34848         # and modules installation dirs with pkg-config
34849         if test "$PKGCONFIG" != "no"; then
34850           if test "$lua_vndot" = "50"; then
34851             lua_pkg_prefix=lualib
34852           else
34853             lua_pkg_prefix=lua
34854           fi
34855           # try with dot, without dot and finally without version
34856           for f in $lua_pkg_prefix$lua_vdot $lua_pkg_prefix$lua_vndot $lua_pkg_prefix; do
34857             lua_exec_prefix=`$PKGCONFIG --variable=prefix $f 2>/dev/null`
34858             # same binaries?
34859             if test "$lua_exec_prefix/bin/lua" = "$LUA"; then
34860                 # OK, found CFLAGS. Get Lua LFLAGS and modules install dir
34861                 LUA_CFLAGS=`$PKGCONFIG --cflags $f 2>/dev/null`
34862                 LUA_LFLAGS=`$PKGCONFIG --libs $f 2>/dev/null`
34863                 LUA_INSTALL_CMOD=`$PKGCONFIG --variable=INSTALL_CMOD $f 2>/dev/null`
34864                 LUA_INSTALL_LMOD=`$PKGCONFIG --variable=INSTALL_LMOD $f 2>/dev/null`
34865                 break
34866             fi
34867           done
34868         fi
34870         LUA_RRD_LIBDIR="$langpref/lib/lua/$lua_vdot"
34871         # if lua 5.0 can't find compat-5.1, force installation of
34872         # compat-5.1.lua together with RRDtool.
34873         if test "$lua_vdot" = "5.0" -a "$LUA_HAVE_COMPAT51" != "HAVE_COMPAT51"; then
34874           lua_need_compat51=1
34875           LUA_INSTALL_LMOD="$LUA_RRD_LIBDIR"
34876         fi
34878         # if not set with pkg-config, use default values in src packages compat-5.1, lua 5.1
34879         if test "$LUA_CFLAGS" = ""; then
34880           { $as_echo "$as_me:$LINENO: WARNING: Setting Lua include and lib flags to defaults in compat-5.1 and lua 5.1 sources" >&5
34881 $as_echo "$as_me: WARNING: Setting Lua include and lib flags to defaults in compat-5.1 and lua 5.1 sources" >&2;}
34882           LUA_CFLAGS="-I/usr/local/include -I/usr/local/include/lua -I/usr/local/include/lua/$lua_vdot"
34883           LUA_LFLAGS="-L/usr/local/lib -L/usr/local/lib/lua -L/usr/local/lib/lua/$lua_vdot $lua_libs"
34884           LUA_INSTALL_CMOD="/usr/local/lib/lua/$lua_vdot"
34885         fi
34887                                 # Check whether --enable-lua-site-install was given.
34888 if test "${enable_lua_site_install+set}" = set; then
34889   enableval=$enable_lua_site_install;
34890 else
34891   LUA_INSTALL_CMOD="$LUA_RRD_LIBDIR"; LUA_INSTALL_LMOD="$LUA_RRD_LIBDIR"
34895         LUA_DEFINES="-DLUA$lua_vndot -D$LUA_HAVE_COMPAT51"
34903       else
34904         enable_lua=no
34905         { $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
34906 $as_echo "Lua headers found but not the libraries! Please reinstall the dev packages for Lua $LUA_MAJOR.$LUA_MINOR" >&6; }
34907       fi
34908     fi
34909   fi
34911  if test "$lua_vdot" = "5.0" -a "$LUA_HAVE_COMPAT51" != "HAVE_COMPAT51"; then
34912   LUA_NEED_OUR_COMPAT51_TRUE=
34913   LUA_NEED_OUR_COMPAT51_FALSE='#'
34914 else
34915   LUA_NEED_OUR_COMPAT51_TRUE='#'
34916   LUA_NEED_OUR_COMPAT51_FALSE=
34919  if test "$LUA_INSTALL_CMOD" != "$LUA_RRD_LIBDIR"; then
34920   LUA_SITE_CINSTALL_TRUE=
34921   LUA_SITE_CINSTALL_FALSE='#'
34922 else
34923   LUA_SITE_CINSTALL_TRUE='#'
34924   LUA_SITE_CINSTALL_FALSE=
34927  if test "$LUA_INSTALL_LMOD" != "$LUA_RRD_LIBDIR"; then
34928   LUA_SITE_LINSTALL_TRUE=
34929   LUA_SITE_LINSTALL_FALSE='#'
34930 else
34931   LUA_SITE_LINSTALL_TRUE='#'
34932   LUA_SITE_LINSTALL_FALSE=
34935  if test "$lua_vndot" = "50"; then
34936   LUA50_TRUE=
34937   LUA50_FALSE='#'
34938 else
34939   LUA50_TRUE='#'
34940   LUA50_FALSE=
34943  if test "$enable_lua" = "yes"; then
34944   BUILD_LUA_TRUE=
34945   BUILD_LUA_FALSE='#'
34946 else
34947   BUILD_LUA_TRUE='#'
34948   BUILD_LUA_FALSE=
34952 enable_tcl_site=no
34954 # Check whether --enable-tcl was given.
34955 if test "${enable_tcl+set}" = set; then
34956   enableval=$enable_tcl;
34957 else
34958   enable_tcl=yes
34962 if test  "$enable_tcl" = "yes"; then
34963     withval=""
34965 # Check whether --with-tcllib was given.
34966 if test "${with_tcllib+set}" = set; then
34967   withval=$with_tcllib;
34970   enable_tcl=no
34971   for dir in $withval /usr/lib /usr/local/lib /usr/lib/tcl8.4 /usr/lib/tcl8.3 ; do
34972     { $as_echo "$as_me:$LINENO: checking for tclConfig.sh in $dir" >&5
34973 $as_echo_n "checking for tclConfig.sh in $dir... " >&6; }
34974     if test -f "$dir/tclConfig.sh" ; then
34975         tcl_config=$dir/tclConfig.sh
34976         enable_tcl=yes
34977         { $as_echo "$as_me:$LINENO: result: yes" >&5
34978 $as_echo "yes" >&6; }
34979         break
34980     else
34981         { $as_echo "$as_me:$LINENO: result: no" >&5
34982 $as_echo "no" >&6; }
34983     fi
34984   done
34986   if test "$enable_tcl" = "no"; then
34987         { $as_echo "$as_me:$LINENO: WARNING: tclConfig.sh not found - Tcl interface will not be built" >&5
34988 $as_echo "$as_me: WARNING: tclConfig.sh not found - Tcl interface will not be built" >&2;}
34989   else
34990         . $tcl_config
34991         TCL_PACKAGE_DIR="$TCL_PACKAGE_PATH/tclrrd$VERSION"
34992         if test -n "$TCL_INC_DIR"; then
34993           TCL_INCLUDE_SPEC="$TCL_INCLUDE_SPEC -I$TCL_INC_DIR"
34994         fi
34995   fi
34996   # Check whether --enable-tcl was given.
34997 if test "${enable_tcl+set}" = set; then
34998   enableval=$enable_tcl;
34999 else
35000   enable_tcl_site=yes
35006  if test "$enable_tcl" = "yes" ; then
35007   BUILD_TCL_TRUE=
35008   BUILD_TCL_FALSE='#'
35009 else
35010   BUILD_TCL_TRUE='#'
35011   BUILD_TCL_FALSE=
35014  if test "$enable_tcl_site" = "yes" ; then
35015   BUILD_TCL_SITE_TRUE=
35016   BUILD_TCL_SITE_FALSE='#'
35017 else
35018   BUILD_TCL_SITE_TRUE='#'
35019   BUILD_TCL_SITE_FALSE=
35035 # Check whether --enable-python was given.
35036 if test "${enable_python+set}" = set; then
35037   enableval=$enable_python;
35038 else
35039   enable_python=yes
35043 if test  "$enable_python" = "yes"; then
35048         if test -n "$PYTHON"; then
35049       # If the user set $PYTHON, use it and don't search something else.
35050       { $as_echo "$as_me:$LINENO: checking whether $PYTHON version >= 2.3" >&5
35051 $as_echo_n "checking whether $PYTHON version >= 2.3... " >&6; }
35052       prog="import sys
35053 # split strings by '.' and convert to numeric.  Append some zeros
35054 # because we need at least 4 digits for the hex conversion.
35055 # map returns an iterator in Python 3.0 and a list in 2.x
35056 minver = list(map(int, '2.3'.split('.'))) + [0, 0, 0]
35057 minverhex = 0
35058 # xrange is not present in Python 3.0 and range returns an iterator
35059 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
35060 sys.exit(sys.hexversion < minverhex)"
35061   if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
35062    ($PYTHON -c "$prog") >&5 2>&5
35063    ac_status=$?
35064    echo "$as_me:$LINENO: \$? = $ac_status" >&5
35065    (exit $ac_status); }; then
35066   { $as_echo "$as_me:$LINENO: result: yes" >&5
35067 $as_echo "yes" >&6; }
35068 else
35069   { { $as_echo "$as_me:$LINENO: error: too old" >&5
35070 $as_echo "$as_me: error: too old" >&2;}
35071    { (exit 1); exit 1; }; }
35074       am_display_PYTHON=$PYTHON
35075     else
35076       # Otherwise, try each interpreter until we find one that satisfies
35077       # VERSION.
35078       { $as_echo "$as_me:$LINENO: checking for a Python interpreter with version >= 2.3" >&5
35079 $as_echo_n "checking for a Python interpreter with version >= 2.3... " >&6; }
35080 if test "${am_cv_pathless_PYTHON+set}" = set; then
35081   $as_echo_n "(cached) " >&6
35082 else
35084         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
35085           test "$am_cv_pathless_PYTHON" = none && break
35086           prog="import sys
35087 # split strings by '.' and convert to numeric.  Append some zeros
35088 # because we need at least 4 digits for the hex conversion.
35089 # map returns an iterator in Python 3.0 and a list in 2.x
35090 minver = list(map(int, '2.3'.split('.'))) + [0, 0, 0]
35091 minverhex = 0
35092 # xrange is not present in Python 3.0 and range returns an iterator
35093 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
35094 sys.exit(sys.hexversion < minverhex)"
35095   if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
35096    ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
35097    ac_status=$?
35098    echo "$as_me:$LINENO: \$? = $ac_status" >&5
35099    (exit $ac_status); }; then
35100   break
35103         done
35105 { $as_echo "$as_me:$LINENO: result: $am_cv_pathless_PYTHON" >&5
35106 $as_echo "$am_cv_pathless_PYTHON" >&6; }
35107       # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
35108       if test "$am_cv_pathless_PYTHON" = none; then
35109         PYTHON=:
35110       else
35111         # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
35112 set dummy $am_cv_pathless_PYTHON; ac_word=$2
35113 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
35114 $as_echo_n "checking for $ac_word... " >&6; }
35115 if test "${ac_cv_path_PYTHON+set}" = set; then
35116   $as_echo_n "(cached) " >&6
35117 else
35118   case $PYTHON in
35119   [\\/]* | ?:[\\/]*)
35120   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
35121   ;;
35122   *)
35123   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35124 for as_dir in $PATH
35126   IFS=$as_save_IFS
35127   test -z "$as_dir" && as_dir=.
35128   for ac_exec_ext in '' $ac_executable_extensions; do
35129   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
35130     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
35131     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35132     break 2
35133   fi
35134 done
35135 done
35136 IFS=$as_save_IFS
35138   ;;
35139 esac
35141 PYTHON=$ac_cv_path_PYTHON
35142 if test -n "$PYTHON"; then
35143   { $as_echo "$as_me:$LINENO: result: $PYTHON" >&5
35144 $as_echo "$PYTHON" >&6; }
35145 else
35146   { $as_echo "$as_me:$LINENO: result: no" >&5
35147 $as_echo "no" >&6; }
35151       fi
35152       am_display_PYTHON=$am_cv_pathless_PYTHON
35153     fi
35156   if test "$PYTHON" = :; then
35157       enable_python=no
35158   else
35161   { $as_echo "$as_me:$LINENO: checking for $am_display_PYTHON version" >&5
35162 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
35163 if test "${am_cv_python_version+set}" = set; then
35164   $as_echo_n "(cached) " >&6
35165 else
35166   am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
35168 { $as_echo "$as_me:$LINENO: result: $am_cv_python_version" >&5
35169 $as_echo "$am_cv_python_version" >&6; }
35170   PYTHON_VERSION=$am_cv_python_version
35174   PYTHON_PREFIX='${prefix}'
35176   PYTHON_EXEC_PREFIX='${exec_prefix}'
35180   { $as_echo "$as_me:$LINENO: checking for $am_display_PYTHON platform" >&5
35181 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
35182 if test "${am_cv_python_platform+set}" = set; then
35183   $as_echo_n "(cached) " >&6
35184 else
35185   am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
35187 { $as_echo "$as_me:$LINENO: result: $am_cv_python_platform" >&5
35188 $as_echo "$am_cv_python_platform" >&6; }
35189   PYTHON_PLATFORM=$am_cv_python_platform
35194                 { $as_echo "$as_me:$LINENO: checking for $am_display_PYTHON script directory" >&5
35195 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
35196 if test "${am_cv_python_pythondir+set}" = set; then
35197   $as_echo_n "(cached) " >&6
35198 else
35199   if test "x$prefix" = xNONE
35200      then
35201        am_py_prefix=$ac_default_prefix
35202      else
35203        am_py_prefix=$prefix
35204      fi
35205      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 ||
35206      echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
35207      case $am_cv_python_pythondir in
35208      $am_py_prefix*)
35209        am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
35210        am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
35211        ;;
35212      esac
35215 { $as_echo "$as_me:$LINENO: result: $am_cv_python_pythondir" >&5
35216 $as_echo "$am_cv_python_pythondir" >&6; }
35217   pythondir=$am_cv_python_pythondir
35221   pkgpythondir=\${pythondir}/$PACKAGE
35224             { $as_echo "$as_me:$LINENO: checking for $am_display_PYTHON extension module directory" >&5
35225 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
35226 if test "${am_cv_python_pyexecdir+set}" = set; then
35227   $as_echo_n "(cached) " >&6
35228 else
35229   if test "x$exec_prefix" = xNONE
35230      then
35231        am_py_exec_prefix=$am_py_prefix
35232      else
35233        am_py_exec_prefix=$exec_prefix
35234      fi
35235      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 ||
35236      echo "$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
35237      case $am_cv_python_pyexecdir in
35238      $am_py_exec_prefix*)
35239        am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
35240        am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
35241        ;;
35242      esac
35245 { $as_echo "$as_me:$LINENO: result: $am_cv_python_pyexecdir" >&5
35246 $as_echo "$am_cv_python_pyexecdir" >&6; }
35247   pyexecdir=$am_cv_python_pyexecdir
35251   pkgpyexecdir=\${pyexecdir}/$PACKAGE
35255   fi
35259 { $as_echo "$as_me:$LINENO: checking for headers required to compile python extensions" >&5
35260 $as_echo_n "checking for headers required to compile python extensions... " >&6; }
35261 py_prefix=`$PYTHON -c "import sys; print sys.prefix"`
35262 py_exec_prefix=`$PYTHON -c "import sys; print sys.exec_prefix"`
35263 PYTHON_INCLUDES="-I${py_prefix}/include/python${PYTHON_VERSION}"
35264 if test "$py_prefix" != "$py_exec_prefix"; then
35265   PYTHON_INCLUDES="$PYTHON_INCLUDES -I${py_exec_prefix}/include/python${PYTHON_VERSION}"
35268 save_CPPFLAGS="$CPPFLAGS"
35269 CPPFLAGS="$CPPFLAGS $PYTHON_INCLUDES"
35270 cat >conftest.$ac_ext <<_ACEOF
35271 /* confdefs.h.  */
35272 _ACEOF
35273 cat confdefs.h >>conftest.$ac_ext
35274 cat >>conftest.$ac_ext <<_ACEOF
35275 /* end confdefs.h.  */
35276 #include <Python.h>
35277 _ACEOF
35278 if { (ac_try="$ac_cpp conftest.$ac_ext"
35279 case "(($ac_try" in
35280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35281   *) ac_try_echo=$ac_try;;
35282 esac
35283 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35284 $as_echo "$ac_try_echo") >&5
35285   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35286   ac_status=$?
35287   grep -v '^ *+' conftest.er1 >conftest.err
35288   rm -f conftest.er1
35289   cat conftest.err >&5
35290   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35291   (exit $ac_status); } >/dev/null && {
35292          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35293          test ! -s conftest.err
35294        }; then
35295   { $as_echo "$as_me:$LINENO: result: found" >&5
35296 $as_echo "found" >&6; }
35298 else
35299   $as_echo "$as_me: failed program was:" >&5
35300 sed 's/^/| /' conftest.$ac_ext >&5
35302   { $as_echo "$as_me:$LINENO: result: not found" >&5
35303 $as_echo "not found" >&6; }
35304 enable_python=no;{ $as_echo "$as_me:$LINENO: WARNING: could not find Python headers" >&5
35305 $as_echo "$as_me: WARNING: could not find Python headers" >&2;}
35308 rm -f conftest.err conftest.$ac_ext
35309 CPPFLAGS="$save_CPPFLAGS"
35313 if test  x$enable_python = xno; then
35314         COMP_PYTHON=
35315 else
35316         COMP_PYTHON="python"
35321 for ac_prog in gnroff nroff
35323   # Extract the first word of "$ac_prog", so it can be a program name with args.
35324 set dummy $ac_prog; ac_word=$2
35325 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
35326 $as_echo_n "checking for $ac_word... " >&6; }
35327 if test "${ac_cv_path_NROFF+set}" = set; then
35328   $as_echo_n "(cached) " >&6
35329 else
35330   case $NROFF in
35331   [\\/]* | ?:[\\/]*)
35332   ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
35333   ;;
35334   *)
35335   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35336 for as_dir in $PATH
35338   IFS=$as_save_IFS
35339   test -z "$as_dir" && as_dir=.
35340   for ac_exec_ext in '' $ac_executable_extensions; do
35341   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
35342     ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
35343     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35344     break 2
35345   fi
35346 done
35347 done
35348 IFS=$as_save_IFS
35350   ;;
35351 esac
35353 NROFF=$ac_cv_path_NROFF
35354 if test -n "$NROFF"; then
35355   { $as_echo "$as_me:$LINENO: result: $NROFF" >&5
35356 $as_echo "$NROFF" >&6; }
35357 else
35358   { $as_echo "$as_me:$LINENO: result: no" >&5
35359 $as_echo "no" >&6; }
35363   test -n "$NROFF" && break
35364 done
35366 for ac_prog in groff troff
35368   # Extract the first word of "$ac_prog", so it can be a program name with args.
35369 set dummy $ac_prog; ac_word=$2
35370 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
35371 $as_echo_n "checking for $ac_word... " >&6; }
35372 if test "${ac_cv_path_TROFF+set}" = set; then
35373   $as_echo_n "(cached) " >&6
35374 else
35375   case $TROFF in
35376   [\\/]* | ?:[\\/]*)
35377   ac_cv_path_TROFF="$TROFF" # Let the user override the test with a path.
35378   ;;
35379   *)
35380   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35381 for as_dir in $PATH
35383   IFS=$as_save_IFS
35384   test -z "$as_dir" && as_dir=.
35385   for ac_exec_ext in '' $ac_executable_extensions; do
35386   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
35387     ac_cv_path_TROFF="$as_dir/$ac_word$ac_exec_ext"
35388     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35389     break 2
35390   fi
35391 done
35392 done
35393 IFS=$as_save_IFS
35395   ;;
35396 esac
35398 TROFF=$ac_cv_path_TROFF
35399 if test -n "$TROFF"; then
35400   { $as_echo "$as_me:$LINENO: result: $TROFF" >&5
35401 $as_echo "$TROFF" >&6; }
35402 else
35403   { $as_echo "$as_me:$LINENO: result: no" >&5
35404 $as_echo "no" >&6; }
35408   test -n "$TROFF" && break
35409 done
35413 if test -z "$RRDDOCDIR"; then
35414    RRDDOCDIR='${datadir}/doc/${PACKAGE}-${VERSION}'; fi
35418 case $TERM in
35419        #   for the most important terminal types we directly know the sequences
35420        xterm|xterm*|vt220|vt220*)
35421                T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
35422                T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
35423        ;;
35424        vt100|vt100*|cygwin)
35425                T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
35426                T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
35427        ;;
35428        *)
35429                T_MD=''
35430                T_ME=''
35431        ;;
35432 esac
35433   { $as_echo "$as_me:$LINENO: result: " >&5
35434 $as_echo "" >&6; }
35435   { $as_echo "$as_me:$LINENO: result: ${T_MD}Apply Configuration Information${T_ME}" >&5
35436 $as_echo "${T_MD}Apply Configuration Information${T_ME}" >&6; }
35439 ac_config_files="$ac_config_files examples/shared-demo.pl"
35441 ac_config_files="$ac_config_files examples/piped-demo.pl"
35443 ac_config_files="$ac_config_files examples/stripes.pl"
35445 ac_config_files="$ac_config_files examples/bigtops.pl"
35447 ac_config_files="$ac_config_files examples/minmax.pl"
35449 ac_config_files="$ac_config_files examples/4charts.pl"
35451 ac_config_files="$ac_config_files examples/perftest.pl"
35453 ac_config_files="$ac_config_files examples/Makefile"
35455 ac_config_files="$ac_config_files examples/rrdcached/Makefile"
35457 ac_config_files="$ac_config_files doc/Makefile"
35459 ac_config_files="$ac_config_files po/Makefile.in"
35461 ac_config_files="$ac_config_files intl/Makefile"
35463 ac_config_files="$ac_config_files src/Makefile"
35465 ac_config_files="$ac_config_files src/librrd.sym.in"
35467 ac_config_files="$ac_config_files src/librrd.pc"
35469 ac_config_files="$ac_config_files bindings/Makefile"
35471 ac_config_files="$ac_config_files bindings/tcl/Makefile"
35473 ac_config_files="$ac_config_files bindings/tcl/ifOctets.tcl"
35475 ac_config_files="$ac_config_files Makefile"
35477 ac_config_files="$ac_config_files bindings/lua/Makefile"
35480 ac_config_commands="$ac_config_commands default"
35485 cat >confcache <<\_ACEOF
35486 # This file is a shell script that caches the results of configure
35487 # tests run on this system so they can be shared between configure
35488 # scripts and configure runs, see configure's option --config-cache.
35489 # It is not useful on other systems.  If it contains results you don't
35490 # want to keep, you may remove or edit it.
35492 # config.status only pays attention to the cache file if you give it
35493 # the --recheck option to rerun configure.
35495 # `ac_cv_env_foo' variables (set or unset) will be overridden when
35496 # loading this file, other *unset* `ac_cv_foo' will be assigned the
35497 # following values.
35499 _ACEOF
35501 # The following way of writing the cache mishandles newlines in values,
35502 # but we know of no workaround that is simple, portable, and efficient.
35503 # So, we kill variables containing newlines.
35504 # Ultrix sh set writes to stderr and can't be redirected directly,
35505 # and sets the high bit in the cache file unless we assign to the vars.
35507   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35508     eval ac_val=\$$ac_var
35509     case $ac_val in #(
35510     *${as_nl}*)
35511       case $ac_var in #(
35512       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
35513 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
35514       esac
35515       case $ac_var in #(
35516       _ | IFS | as_nl) ;; #(
35517       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
35518       *) $as_unset $ac_var ;;
35519       esac ;;
35520     esac
35521   done
35523   (set) 2>&1 |
35524     case $as_nl`(ac_space=' '; set) 2>&1` in #(
35525     *${as_nl}ac_space=\ *)
35526       # `set' does not quote correctly, so add quotes (double-quote
35527       # substitution turns \\\\ into \\, and sed turns \\ into \).
35528       sed -n \
35529         "s/'/'\\\\''/g;
35530           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35531       ;; #(
35532     *)
35533       # `set' quotes correctly as required by POSIX, so do not add quotes.
35534       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
35535       ;;
35536     esac |
35537     sort
35538 ) |
35539   sed '
35540      /^ac_cv_env_/b end
35541      t clear
35542      :clear
35543      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35544      t end
35545      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35546      :end' >>confcache
35547 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
35548   if test -w "$cache_file"; then
35549     test "x$cache_file" != "x/dev/null" &&
35550       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
35551 $as_echo "$as_me: updating cache $cache_file" >&6;}
35552     cat confcache >$cache_file
35553   else
35554     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
35555 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
35556   fi
35558 rm -f confcache
35560 test "x$prefix" = xNONE && prefix=$ac_default_prefix
35561 # Let make expand exec_prefix.
35562 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35564 DEFS=-DHAVE_CONFIG_H
35566 ac_libobjs=
35567 ac_ltlibobjs=
35568 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35569   # 1. Remove the extension, and $U if already installed.
35570   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
35571   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
35572   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
35573   #    will be set to the directory where LIBOBJS objects are built.
35574   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35575   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
35576 done
35577 LIBOBJS=$ac_libobjs
35579 LTLIBOBJS=$ac_ltlibobjs
35582 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
35583   { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
35584 Usually this means the macro was only invoked conditionally." >&5
35585 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
35586 Usually this means the macro was only invoked conditionally." >&2;}
35587    { (exit 1); exit 1; }; }
35589 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
35590   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
35591 Usually this means the macro was only invoked conditionally." >&5
35592 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
35593 Usually this means the macro was only invoked conditionally." >&2;}
35594    { (exit 1); exit 1; }; }
35596  if test -n "$EXEEXT"; then
35597   am__EXEEXT_TRUE=
35598   am__EXEEXT_FALSE='#'
35599 else
35600   am__EXEEXT_TRUE='#'
35601   am__EXEEXT_FALSE=
35604 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
35605   { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
35606 Usually this means the macro was only invoked conditionally." >&5
35607 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
35608 Usually this means the macro was only invoked conditionally." >&2;}
35609    { (exit 1); exit 1; }; }
35611 if test -z "${STATIC_PROGRAMS_TRUE}" && test -z "${STATIC_PROGRAMS_FALSE}"; then
35612   { { $as_echo "$as_me:$LINENO: error: conditional \"STATIC_PROGRAMS\" was never defined.
35613 Usually this means the macro was only invoked conditionally." >&5
35614 $as_echo "$as_me: error: conditional \"STATIC_PROGRAMS\" was never defined.
35615 Usually this means the macro was only invoked conditionally." >&2;}
35616    { (exit 1); exit 1; }; }
35619 if test -z "${BUILD_GETOPT_TRUE}" && test -z "${BUILD_GETOPT_FALSE}"; then
35620   { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_GETOPT\" was never defined.
35621 Usually this means the macro was only invoked conditionally." >&5
35622 $as_echo "$as_me: error: conditional \"BUILD_GETOPT\" was never defined.
35623 Usually this means the macro was only invoked conditionally." >&2;}
35624    { (exit 1); exit 1; }; }
35626 if test -z "${BUILD_MULTITHREAD_TRUE}" && test -z "${BUILD_MULTITHREAD_FALSE}"; then
35627   { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_MULTITHREAD\" was never defined.
35628 Usually this means the macro was only invoked conditionally." >&5
35629 $as_echo "$as_me: error: conditional \"BUILD_MULTITHREAD\" was never defined.
35630 Usually this means the macro was only invoked conditionally." >&2;}
35631    { (exit 1); exit 1; }; }
35633 if test -z "${BUILD_LIBDBI_TRUE}" && test -z "${BUILD_LIBDBI_FALSE}"; then
35634   { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_LIBDBI\" was never defined.
35635 Usually this means the macro was only invoked conditionally." >&5
35636 $as_echo "$as_me: error: conditional \"BUILD_LIBDBI\" was never defined.
35637 Usually this means the macro was only invoked conditionally." >&2;}
35638    { (exit 1); exit 1; }; }
35640 if test -z "${BUILD_RRDCGI_TRUE}" && test -z "${BUILD_RRDCGI_FALSE}"; then
35641   { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_RRDCGI\" was never defined.
35642 Usually this means the macro was only invoked conditionally." >&5
35643 $as_echo "$as_me: error: conditional \"BUILD_RRDCGI\" was never defined.
35644 Usually this means the macro was only invoked conditionally." >&2;}
35645    { (exit 1); exit 1; }; }
35647 if test -z "${LUA_NEED_OUR_COMPAT51_TRUE}" && test -z "${LUA_NEED_OUR_COMPAT51_FALSE}"; then
35648   { { $as_echo "$as_me:$LINENO: error: conditional \"LUA_NEED_OUR_COMPAT51\" was never defined.
35649 Usually this means the macro was only invoked conditionally." >&5
35650 $as_echo "$as_me: error: conditional \"LUA_NEED_OUR_COMPAT51\" was never defined.
35651 Usually this means the macro was only invoked conditionally." >&2;}
35652    { (exit 1); exit 1; }; }
35654 if test -z "${LUA_SITE_CINSTALL_TRUE}" && test -z "${LUA_SITE_CINSTALL_FALSE}"; then
35655   { { $as_echo "$as_me:$LINENO: error: conditional \"LUA_SITE_CINSTALL\" was never defined.
35656 Usually this means the macro was only invoked conditionally." >&5
35657 $as_echo "$as_me: error: conditional \"LUA_SITE_CINSTALL\" was never defined.
35658 Usually this means the macro was only invoked conditionally." >&2;}
35659    { (exit 1); exit 1; }; }
35661 if test -z "${LUA_SITE_LINSTALL_TRUE}" && test -z "${LUA_SITE_LINSTALL_FALSE}"; then
35662   { { $as_echo "$as_me:$LINENO: error: conditional \"LUA_SITE_LINSTALL\" was never defined.
35663 Usually this means the macro was only invoked conditionally." >&5
35664 $as_echo "$as_me: error: conditional \"LUA_SITE_LINSTALL\" was never defined.
35665 Usually this means the macro was only invoked conditionally." >&2;}
35666    { (exit 1); exit 1; }; }
35668 if test -z "${LUA50_TRUE}" && test -z "${LUA50_FALSE}"; then
35669   { { $as_echo "$as_me:$LINENO: error: conditional \"LUA50\" was never defined.
35670 Usually this means the macro was only invoked conditionally." >&5
35671 $as_echo "$as_me: error: conditional \"LUA50\" was never defined.
35672 Usually this means the macro was only invoked conditionally." >&2;}
35673    { (exit 1); exit 1; }; }
35675 if test -z "${BUILD_LUA_TRUE}" && test -z "${BUILD_LUA_FALSE}"; then
35676   { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_LUA\" was never defined.
35677 Usually this means the macro was only invoked conditionally." >&5
35678 $as_echo "$as_me: error: conditional \"BUILD_LUA\" was never defined.
35679 Usually this means the macro was only invoked conditionally." >&2;}
35680    { (exit 1); exit 1; }; }
35682 if test -z "${BUILD_TCL_TRUE}" && test -z "${BUILD_TCL_FALSE}"; then
35683   { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_TCL\" was never defined.
35684 Usually this means the macro was only invoked conditionally." >&5
35685 $as_echo "$as_me: error: conditional \"BUILD_TCL\" was never defined.
35686 Usually this means the macro was only invoked conditionally." >&2;}
35687    { (exit 1); exit 1; }; }
35689 if test -z "${BUILD_TCL_SITE_TRUE}" && test -z "${BUILD_TCL_SITE_FALSE}"; then
35690   { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_TCL_SITE\" was never defined.
35691 Usually this means the macro was only invoked conditionally." >&5
35692 $as_echo "$as_me: error: conditional \"BUILD_TCL_SITE\" was never defined.
35693 Usually this means the macro was only invoked conditionally." >&2;}
35694    { (exit 1); exit 1; }; }
35697 : ${CONFIG_STATUS=./config.status}
35698 ac_write_fail=0
35699 ac_clean_files_save=$ac_clean_files
35700 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
35701 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
35702 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
35703 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35704 #! $SHELL
35705 # Generated by $as_me.
35706 # Run this file to recreate the current configuration.
35707 # Compiler output produced by configure, useful for debugging
35708 # configure, is in config.log if it exists.
35710 debug=false
35711 ac_cs_recheck=false
35712 ac_cs_silent=false
35713 SHELL=\${CONFIG_SHELL-$SHELL}
35714 _ACEOF
35716 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35717 ## --------------------- ##
35718 ## M4sh Initialization.  ##
35719 ## --------------------- ##
35721 # Be more Bourne compatible
35722 DUALCASE=1; export DUALCASE # for MKS sh
35723 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
35724   emulate sh
35725   NULLCMD=:
35726   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
35727   # is contrary to our usage.  Disable this feature.
35728   alias -g '${1+"$@"}'='"$@"'
35729   setopt NO_GLOB_SUBST
35730 else
35731   case `(set -o) 2>/dev/null` in
35732   *posix*) set -o posix ;;
35733 esac
35740 # PATH needs CR
35741 # Avoid depending upon Character Ranges.
35742 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35743 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35744 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35745 as_cr_digits='0123456789'
35746 as_cr_alnum=$as_cr_Letters$as_cr_digits
35748 as_nl='
35750 export as_nl
35751 # Printing a long string crashes Solaris 7 /usr/bin/printf.
35752 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
35753 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
35754 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
35755 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
35756   as_echo='printf %s\n'
35757   as_echo_n='printf %s'
35758 else
35759   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
35760     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
35761     as_echo_n='/usr/ucb/echo -n'
35762   else
35763     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
35764     as_echo_n_body='eval
35765       arg=$1;
35766       case $arg in
35767       *"$as_nl"*)
35768         expr "X$arg" : "X\\(.*\\)$as_nl";
35769         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
35770       esac;
35771       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
35772     '
35773     export as_echo_n_body
35774     as_echo_n='sh -c $as_echo_n_body as_echo'
35775   fi
35776   export as_echo_body
35777   as_echo='sh -c $as_echo_body as_echo'
35780 # The user is always right.
35781 if test "${PATH_SEPARATOR+set}" != set; then
35782   PATH_SEPARATOR=:
35783   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
35784     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
35785       PATH_SEPARATOR=';'
35786   }
35789 # Support unset when possible.
35790 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
35791   as_unset=unset
35792 else
35793   as_unset=false
35797 # IFS
35798 # We need space, tab and new line, in precisely that order.  Quoting is
35799 # there to prevent editors from complaining about space-tab.
35800 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
35801 # splitting by setting IFS to empty value.)
35802 IFS=" ""        $as_nl"
35804 # Find who we are.  Look in the path if we contain no directory separator.
35805 case $0 in
35806   *[\\/]* ) as_myself=$0 ;;
35807   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35808 for as_dir in $PATH
35810   IFS=$as_save_IFS
35811   test -z "$as_dir" && as_dir=.
35812   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
35813 done
35814 IFS=$as_save_IFS
35816      ;;
35817 esac
35818 # We did not find ourselves, most probably we were run as `sh COMMAND'
35819 # in which case we are not to be found in the path.
35820 if test "x$as_myself" = x; then
35821   as_myself=$0
35823 if test ! -f "$as_myself"; then
35824   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
35825   { (exit 1); exit 1; }
35828 # Work around bugs in pre-3.0 UWIN ksh.
35829 for as_var in ENV MAIL MAILPATH
35830 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
35831 done
35832 PS1='$ '
35833 PS2='> '
35834 PS4='+ '
35836 # NLS nuisances.
35837 LC_ALL=C
35838 export LC_ALL
35839 LANGUAGE=C
35840 export LANGUAGE
35842 # Required to use basename.
35843 if expr a : '\(a\)' >/dev/null 2>&1 &&
35844    test "X`expr 00001 : '.*\(...\)'`" = X001; then
35845   as_expr=expr
35846 else
35847   as_expr=false
35850 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
35851   as_basename=basename
35852 else
35853   as_basename=false
35857 # Name of the executable.
35858 as_me=`$as_basename -- "$0" ||
35859 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35860          X"$0" : 'X\(//\)$' \| \
35861          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
35862 $as_echo X/"$0" |
35863     sed '/^.*\/\([^/][^/]*\)\/*$/{
35864             s//\1/
35865             q
35866           }
35867           /^X\/\(\/\/\)$/{
35868             s//\1/
35869             q
35870           }
35871           /^X\/\(\/\).*/{
35872             s//\1/
35873             q
35874           }
35875           s/.*/./; q'`
35877 # CDPATH.
35878 $as_unset CDPATH
35882   as_lineno_1=$LINENO
35883   as_lineno_2=$LINENO
35884   test "x$as_lineno_1" != "x$as_lineno_2" &&
35885   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
35887   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
35888   # uniformly replaced by the line number.  The first 'sed' inserts a
35889   # line-number line after each line using $LINENO; the second 'sed'
35890   # does the real work.  The second script uses 'N' to pair each
35891   # line-number line with the line containing $LINENO, and appends
35892   # trailing '-' during substitution so that $LINENO is not a special
35893   # case at line end.
35894   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
35895   # scripts with optimization help from Paolo Bonzini.  Blame Lee
35896   # E. McMahon (1931-1989) for sed's syntax.  :-)
35897   sed -n '
35898     p
35899     /[$]LINENO/=
35900   ' <$as_myself |
35901     sed '
35902       s/[$]LINENO.*/&-/
35903       t lineno
35904       b
35905       :lineno
35906       N
35907       :loop
35908       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
35909       t loop
35910       s/-\n.*//
35911     ' >$as_me.lineno &&
35912   chmod +x "$as_me.lineno" ||
35913     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
35914    { (exit 1); exit 1; }; }
35916   # Don't try to exec as it changes $[0], causing all sort of problems
35917   # (the dirname of $[0] is not the place where we might find the
35918   # original and so on.  Autoconf is especially sensitive to this).
35919   . "./$as_me.lineno"
35920   # Exit status is that of the last command.
35921   exit
35925 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
35926   as_dirname=dirname
35927 else
35928   as_dirname=false
35931 ECHO_C= ECHO_N= ECHO_T=
35932 case `echo -n x` in
35933 -n*)
35934   case `echo 'x\c'` in
35935   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
35936   *)   ECHO_C='\c';;
35937   esac;;
35939   ECHO_N='-n';;
35940 esac
35941 if expr a : '\(a\)' >/dev/null 2>&1 &&
35942    test "X`expr 00001 : '.*\(...\)'`" = X001; then
35943   as_expr=expr
35944 else
35945   as_expr=false
35948 rm -f conf$$ conf$$.exe conf$$.file
35949 if test -d conf$$.dir; then
35950   rm -f conf$$.dir/conf$$.file
35951 else
35952   rm -f conf$$.dir
35953   mkdir conf$$.dir 2>/dev/null
35955 if (echo >conf$$.file) 2>/dev/null; then
35956   if ln -s conf$$.file conf$$ 2>/dev/null; then
35957     as_ln_s='ln -s'
35958     # ... but there are two gotchas:
35959     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
35960     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
35961     # In both cases, we have to default to `cp -p'.
35962     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
35963       as_ln_s='cp -p'
35964   elif ln conf$$.file conf$$ 2>/dev/null; then
35965     as_ln_s=ln
35966   else
35967     as_ln_s='cp -p'
35968   fi
35969 else
35970   as_ln_s='cp -p'
35972 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
35973 rmdir conf$$.dir 2>/dev/null
35975 if mkdir -p . 2>/dev/null; then
35976   as_mkdir_p=:
35977 else
35978   test -d ./-p && rmdir ./-p
35979   as_mkdir_p=false
35982 if test -x / >/dev/null 2>&1; then
35983   as_test_x='test -x'
35984 else
35985   if ls -dL / >/dev/null 2>&1; then
35986     as_ls_L_option=L
35987   else
35988     as_ls_L_option=
35989   fi
35990   as_test_x='
35991     eval sh -c '\''
35992       if test -d "$1"; then
35993         test -d "$1/.";
35994       else
35995         case $1 in
35996         -*)set "./$1";;
35997         esac;
35998         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
35999         ???[sx]*):;;*)false;;esac;fi
36000     '\'' sh
36001   '
36003 as_executable_p=$as_test_x
36005 # Sed expression to map a string onto a valid CPP name.
36006 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
36008 # Sed expression to map a string onto a valid variable name.
36009 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
36012 exec 6>&1
36014 # Save the log message, to keep $[0] and so on meaningful, and to
36015 # report actual input values of CONFIG_FILES etc. instead of their
36016 # values after options handling.
36017 ac_log="
36018 This file was extended by rrdtool $as_me 1.4.3, which was
36019 generated by GNU Autoconf 2.63.  Invocation command line was
36021   CONFIG_FILES    = $CONFIG_FILES
36022   CONFIG_HEADERS  = $CONFIG_HEADERS
36023   CONFIG_LINKS    = $CONFIG_LINKS
36024   CONFIG_COMMANDS = $CONFIG_COMMANDS
36025   $ $0 $@
36027 on `(hostname || uname -n) 2>/dev/null | sed 1q`
36030 _ACEOF
36032 case $ac_config_files in *"
36033 "*) set x $ac_config_files; shift; ac_config_files=$*;;
36034 esac
36036 case $ac_config_headers in *"
36037 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
36038 esac
36041 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36042 # Files that config.status was made for.
36043 config_files="$ac_config_files"
36044 config_headers="$ac_config_headers"
36045 config_commands="$ac_config_commands"
36047 _ACEOF
36049 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36050 ac_cs_usage="\
36051 \`$as_me' instantiates files from templates according to the
36052 current configuration.
36054 Usage: $0 [OPTION]... [FILE]...
36056   -h, --help       print this help, then exit
36057   -V, --version    print version number and configuration settings, then exit
36058   -q, --quiet, --silent
36059                    do not print progress messages
36060   -d, --debug      don't remove temporary files
36061       --recheck    update $as_me by reconfiguring in the same conditions
36062       --file=FILE[:TEMPLATE]
36063                    instantiate the configuration file FILE
36064       --header=FILE[:TEMPLATE]
36065                    instantiate the configuration header FILE
36067 Configuration files:
36068 $config_files
36070 Configuration headers:
36071 $config_headers
36073 Configuration commands:
36074 $config_commands
36076 Report bugs to <bug-autoconf@gnu.org>."
36078 _ACEOF
36079 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36080 ac_cs_version="\\
36081 rrdtool config.status 1.4.3
36082 configured by $0, generated by GNU Autoconf 2.63,
36083   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
36085 Copyright (C) 2008 Free Software Foundation, Inc.
36086 This config.status script is free software; the Free Software Foundation
36087 gives unlimited permission to copy, distribute and modify it."
36089 ac_pwd='$ac_pwd'
36090 srcdir='$srcdir'
36091 INSTALL='$INSTALL'
36092 MKDIR_P='$MKDIR_P'
36093 AWK='$AWK'
36094 test -n "\$AWK" || AWK=awk
36095 _ACEOF
36097 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36098 # The default lists apply if the user does not specify any file.
36099 ac_need_defaults=:
36100 while test $# != 0
36102   case $1 in
36103   --*=*)
36104     ac_option=`expr "X$1" : 'X\([^=]*\)='`
36105     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
36106     ac_shift=:
36107     ;;
36108   *)
36109     ac_option=$1
36110     ac_optarg=$2
36111     ac_shift=shift
36112     ;;
36113   esac
36115   case $ac_option in
36116   # Handling of the options.
36117   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
36118     ac_cs_recheck=: ;;
36119   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
36120     $as_echo "$ac_cs_version"; exit ;;
36121   --debug | --debu | --deb | --de | --d | -d )
36122     debug=: ;;
36123   --file | --fil | --fi | --f )
36124     $ac_shift
36125     case $ac_optarg in
36126     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
36127     esac
36128     CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
36129     ac_need_defaults=false;;
36130   --header | --heade | --head | --hea )
36131     $ac_shift
36132     case $ac_optarg in
36133     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
36134     esac
36135     CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
36136     ac_need_defaults=false;;
36137   --he | --h)
36138     # Conflict between --help and --header
36139     { $as_echo "$as_me: error: ambiguous option: $1
36140 Try \`$0 --help' for more information." >&2
36141    { (exit 1); exit 1; }; };;
36142   --help | --hel | -h )
36143     $as_echo "$ac_cs_usage"; exit ;;
36144   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
36145   | -silent | --silent | --silen | --sile | --sil | --si | --s)
36146     ac_cs_silent=: ;;
36148   # This is an error.
36149   -*) { $as_echo "$as_me: error: unrecognized option: $1
36150 Try \`$0 --help' for more information." >&2
36151    { (exit 1); exit 1; }; } ;;
36153   *) ac_config_targets="$ac_config_targets $1"
36154      ac_need_defaults=false ;;
36156   esac
36157   shift
36158 done
36160 ac_configure_extra_args=
36162 if $ac_cs_silent; then
36163   exec 6>/dev/null
36164   ac_configure_extra_args="$ac_configure_extra_args --silent"
36167 _ACEOF
36168 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36169 if \$ac_cs_recheck; then
36170   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
36171   shift
36172   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
36173   CONFIG_SHELL='$SHELL'
36174   export CONFIG_SHELL
36175   exec "\$@"
36178 _ACEOF
36179 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36180 exec 5>>config.log
36182   echo
36183   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
36184 ## Running $as_me. ##
36185 _ASBOX
36186   $as_echo "$ac_log"
36187 } >&5
36189 _ACEOF
36190 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36192 # INIT-COMMANDS
36194 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
36197 # The HP-UX ksh and POSIX shell print the target directory to stdout
36198 # if CDPATH is set.
36199 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36201 sed_quote_subst='$sed_quote_subst'
36202 double_quote_subst='$double_quote_subst'
36203 delay_variable_subst='$delay_variable_subst'
36204 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
36205 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
36206 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
36207 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
36208 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
36209 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
36210 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
36211 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
36212 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
36213 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
36214 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
36215 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
36216 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
36217 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
36218 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
36219 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
36220 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
36221 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
36222 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
36223 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
36224 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
36225 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
36226 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
36227 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
36228 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
36229 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
36230 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
36231 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
36232 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
36233 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
36234 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
36235 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
36236 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
36237 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
36238 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
36239 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
36240 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
36241 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
36242 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
36243 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
36244 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
36245 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
36246 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
36247 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
36248 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"`'
36249 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"`'
36250 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
36251 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
36252 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
36253 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
36254 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
36255 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
36256 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
36257 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
36258 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
36259 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
36260 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
36261 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
36262 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
36263 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
36264 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
36265 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
36266 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
36267 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
36268 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
36269 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
36270 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
36271 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
36272 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
36273 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
36274 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
36275 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
36276 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
36277 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
36278 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
36279 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
36280 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
36281 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
36282 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
36283 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
36284 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
36285 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
36286 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
36287 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
36288 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
36289 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
36290 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
36291 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
36292 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
36293 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
36294 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
36295 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
36296 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
36297 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
36298 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
36299 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
36300 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
36301 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
36302 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
36303 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
36304 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
36305 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
36306 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
36307 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
36308 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
36309 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
36310 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
36311 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
36312 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
36313 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
36314 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
36315 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
36316 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
36317 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
36318 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
36319 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
36320 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
36321 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
36323 LTCC='$LTCC'
36324 LTCFLAGS='$LTCFLAGS'
36325 compiler='$compiler_DEFAULT'
36327 # Quote evaled strings.
36328 for var in SED \
36329 GREP \
36330 EGREP \
36331 FGREP \
36332 LD \
36333 NM \
36334 LN_S \
36335 lt_SP2NL \
36336 lt_NL2SP \
36337 reload_flag \
36338 OBJDUMP \
36339 deplibs_check_method \
36340 file_magic_cmd \
36341 AR \
36342 AR_FLAGS \
36343 STRIP \
36344 RANLIB \
36345 CC \
36346 CFLAGS \
36347 compiler \
36348 lt_cv_sys_global_symbol_pipe \
36349 lt_cv_sys_global_symbol_to_cdecl \
36350 lt_cv_sys_global_symbol_to_c_name_address \
36351 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
36352 SHELL \
36353 ECHO \
36354 lt_prog_compiler_no_builtin_flag \
36355 lt_prog_compiler_wl \
36356 lt_prog_compiler_pic \
36357 lt_prog_compiler_static \
36358 lt_cv_prog_compiler_c_o \
36359 need_locks \
36360 DSYMUTIL \
36361 NMEDIT \
36362 LIPO \
36363 OTOOL \
36364 OTOOL64 \
36365 shrext_cmds \
36366 export_dynamic_flag_spec \
36367 whole_archive_flag_spec \
36368 compiler_needs_object \
36369 with_gnu_ld \
36370 allow_undefined_flag \
36371 no_undefined_flag \
36372 hardcode_libdir_flag_spec \
36373 hardcode_libdir_flag_spec_ld \
36374 hardcode_libdir_separator \
36375 fix_srcfile_path \
36376 exclude_expsyms \
36377 include_expsyms \
36378 file_list_spec \
36379 variables_saved_for_relink \
36380 libname_spec \
36381 library_names_spec \
36382 soname_spec \
36383 finish_eval \
36384 old_striplib \
36385 striplib; do
36386     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
36387     *[\\\\\\\`\\"\\\$]*)
36388       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
36389       ;;
36390     *)
36391       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
36392       ;;
36393     esac
36394 done
36396 # Double-quote double-evaled strings.
36397 for var in reload_cmds \
36398 old_postinstall_cmds \
36399 old_postuninstall_cmds \
36400 old_archive_cmds \
36401 extract_expsyms_cmds \
36402 old_archive_from_new_cmds \
36403 old_archive_from_expsyms_cmds \
36404 archive_cmds \
36405 archive_expsym_cmds \
36406 module_cmds \
36407 module_expsym_cmds \
36408 export_symbols_cmds \
36409 prelink_cmds \
36410 postinstall_cmds \
36411 postuninstall_cmds \
36412 finish_cmds \
36413 sys_lib_search_path_spec \
36414 sys_lib_dlsearch_path_spec; do
36415     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
36416     *[\\\\\\\`\\"\\\$]*)
36417       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
36418       ;;
36419     *)
36420       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
36421       ;;
36422     esac
36423 done
36425 # Fix-up fallback echo if it was mangled by the above quoting rules.
36426 case \$lt_ECHO in
36427 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
36428   ;;
36429 esac
36431 ac_aux_dir='$ac_aux_dir'
36432 xsi_shell='$xsi_shell'
36433 lt_shell_append='$lt_shell_append'
36435 # See if we are running on zsh, and set the options which allow our
36436 # commands through without removal of \ escapes INIT.
36437 if test -n "\${ZSH_VERSION+set}" ; then
36438    setopt NO_GLOB_SUBST
36442     PACKAGE='$PACKAGE'
36443     VERSION='$VERSION'
36444     TIMESTAMP='$TIMESTAMP'
36445     RM='$RM'
36446     ofile='$ofile'
36450 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
36451     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
36452     # from automake < 1.5.
36453     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
36454     # Capture the value of LINGUAS because we need it to compute CATALOGS.
36455     LINGUAS="${LINGUAS-%UNSET%}"
36459 _ACEOF
36461 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36463 # Handling of arguments.
36464 for ac_config_target in $ac_config_targets
36466   case $ac_config_target in
36467     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
36468     "rrd_config.h") CONFIG_HEADERS="$CONFIG_HEADERS rrd_config.h" ;;
36469     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
36470     "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
36471     "examples/shared-demo.pl") CONFIG_FILES="$CONFIG_FILES examples/shared-demo.pl" ;;
36472     "examples/piped-demo.pl") CONFIG_FILES="$CONFIG_FILES examples/piped-demo.pl" ;;
36473     "examples/stripes.pl") CONFIG_FILES="$CONFIG_FILES examples/stripes.pl" ;;
36474     "examples/bigtops.pl") CONFIG_FILES="$CONFIG_FILES examples/bigtops.pl" ;;
36475     "examples/minmax.pl") CONFIG_FILES="$CONFIG_FILES examples/minmax.pl" ;;
36476     "examples/4charts.pl") CONFIG_FILES="$CONFIG_FILES examples/4charts.pl" ;;
36477     "examples/perftest.pl") CONFIG_FILES="$CONFIG_FILES examples/perftest.pl" ;;
36478     "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
36479     "examples/rrdcached/Makefile") CONFIG_FILES="$CONFIG_FILES examples/rrdcached/Makefile" ;;
36480     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
36481     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
36482     "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
36483     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
36484     "src/librrd.sym.in") CONFIG_FILES="$CONFIG_FILES src/librrd.sym.in" ;;
36485     "src/librrd.pc") CONFIG_FILES="$CONFIG_FILES src/librrd.pc" ;;
36486     "bindings/Makefile") CONFIG_FILES="$CONFIG_FILES bindings/Makefile" ;;
36487     "bindings/tcl/Makefile") CONFIG_FILES="$CONFIG_FILES bindings/tcl/Makefile" ;;
36488     "bindings/tcl/ifOctets.tcl") CONFIG_FILES="$CONFIG_FILES bindings/tcl/ifOctets.tcl" ;;
36489     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
36490     "bindings/lua/Makefile") CONFIG_FILES="$CONFIG_FILES bindings/lua/Makefile" ;;
36491     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
36493   *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
36494 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
36495    { (exit 1); exit 1; }; };;
36496   esac
36497 done
36500 # If the user did not use the arguments to specify the items to instantiate,
36501 # then the envvar interface is used.  Set only those that are not.
36502 # We use the long form for the default assignment because of an extremely
36503 # bizarre bug on SunOS 4.1.3.
36504 if $ac_need_defaults; then
36505   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
36506   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
36507   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
36510 # Have a temporary directory for convenience.  Make it in the build tree
36511 # simply because there is no reason against having it here, and in addition,
36512 # creating and moving files from /tmp can sometimes cause problems.
36513 # Hook for its removal unless debugging.
36514 # Note that there is a small window in which the directory will not be cleaned:
36515 # after its creation but before its name has been assigned to `$tmp'.
36516 $debug ||
36518   tmp=
36519   trap 'exit_status=$?
36520   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
36521 ' 0
36522   trap '{ (exit 1); exit 1; }' 1 2 13 15
36524 # Create a (secure) tmp directory for tmp files.
36527   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
36528   test -n "$tmp" && test -d "$tmp"
36529 }  ||
36531   tmp=./conf$$-$RANDOM
36532   (umask 077 && mkdir "$tmp")
36533 } ||
36535    $as_echo "$as_me: cannot create a temporary directory in ." >&2
36536    { (exit 1); exit 1; }
36539 # Set up the scripts for CONFIG_FILES section.
36540 # No need to generate them if there are no CONFIG_FILES.
36541 # This happens for instance with `./config.status config.h'.
36542 if test -n "$CONFIG_FILES"; then
36545 ac_cr='\r'
36546 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
36547 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
36548   ac_cs_awk_cr='\\r'
36549 else
36550   ac_cs_awk_cr=$ac_cr
36553 echo 'BEGIN {' >"$tmp/subs1.awk" &&
36554 _ACEOF
36558   echo "cat >conf$$subs.awk <<_ACEOF" &&
36559   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
36560   echo "_ACEOF"
36561 } >conf$$subs.sh ||
36562   { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36563 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36564    { (exit 1); exit 1; }; }
36565 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
36566 ac_delim='%!_!# '
36567 for ac_last_try in false false false false false :; do
36568   . ./conf$$subs.sh ||
36569     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36570 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36571    { (exit 1); exit 1; }; }
36573   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
36574   if test $ac_delim_n = $ac_delim_num; then
36575     break
36576   elif $ac_last_try; then
36577     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36578 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36579    { (exit 1); exit 1; }; }
36580   else
36581     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36582   fi
36583 done
36584 rm -f conf$$subs.sh
36586 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36587 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
36588 _ACEOF
36589 sed -n '
36591 s/^/S["/; s/!.*/"]=/
36594 s/^[^!]*!//
36595 :repl
36596 t repl
36597 s/'"$ac_delim"'$//
36598 t delim
36599 :nl
36601 s/\(.\{148\}\).*/\1/
36602 t more1
36603 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
36606 b repl
36607 :more1
36608 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
36611 s/.\{148\}//
36612 t nl
36613 :delim
36615 s/\(.\{148\}\).*/\1/
36616 t more2
36617 s/["\\]/\\&/g; s/^/"/; s/$/"/
36620 :more2
36621 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
36624 s/.\{148\}//
36625 t delim
36626 ' <conf$$subs.awk | sed '
36627 /^[^""]/{
36628   N
36629   s/\n//
36631 ' >>$CONFIG_STATUS || ac_write_fail=1
36632 rm -f conf$$subs.awk
36633 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36634 _ACAWK
36635 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
36636   for (key in S) S_is_set[key] = 1
36637   FS = "\a"
36641   line = $ 0
36642   nfields = split(line, field, "@")
36643   substed = 0
36644   len = length(field[1])
36645   for (i = 2; i < nfields; i++) {
36646     key = field[i]
36647     keylen = length(key)
36648     if (S_is_set[key]) {
36649       value = S[key]
36650       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
36651       len += length(value) + length(field[++i])
36652       substed = 1
36653     } else
36654       len += 1 + keylen
36655   }
36657   print line
36660 _ACAWK
36661 _ACEOF
36662 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36663 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
36664   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
36665 else
36666   cat
36667 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
36668   || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
36669 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
36670    { (exit 1); exit 1; }; }
36671 _ACEOF
36673 # VPATH may cause trouble with some makes, so we remove $(srcdir),
36674 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
36675 # trailing colons and then remove the whole line if VPATH becomes empty
36676 # (actually we leave an empty line to preserve line numbers).
36677 if test "x$srcdir" = x.; then
36678   ac_vpsub='/^[  ]*VPATH[        ]*=/{
36679 s/:*\$(srcdir):*/:/
36680 s/:*\${srcdir}:*/:/
36681 s/:*@srcdir@:*/:/
36682 s/^\([^=]*=[     ]*\):*/\1/
36683 s/:*$//
36684 s/^[^=]*=[       ]*$//
36688 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36689 fi # test -n "$CONFIG_FILES"
36691 # Set up the scripts for CONFIG_HEADERS section.
36692 # No need to generate them if there are no CONFIG_HEADERS.
36693 # This happens for instance with `./config.status Makefile'.
36694 if test -n "$CONFIG_HEADERS"; then
36695 cat >"$tmp/defines.awk" <<\_ACAWK ||
36696 BEGIN {
36697 _ACEOF
36699 # Transform confdefs.h into an awk script `defines.awk', embedded as
36700 # here-document in config.status, that substitutes the proper values into
36701 # config.h.in to produce config.h.
36703 # Create a delimiter string that does not exist in confdefs.h, to ease
36704 # handling of long lines.
36705 ac_delim='%!_!# '
36706 for ac_last_try in false false :; do
36707   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
36708   if test -z "$ac_t"; then
36709     break
36710   elif $ac_last_try; then
36711     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
36712 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
36713    { (exit 1); exit 1; }; }
36714   else
36715     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36716   fi
36717 done
36719 # For the awk script, D is an array of macro values keyed by name,
36720 # likewise P contains macro parameters if any.  Preserve backslash
36721 # newline sequences.
36723 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
36724 sed -n '
36725 s/.\{148\}/&'"$ac_delim"'/g
36726 t rset
36727 :rset
36728 s/^[     ]*#[    ]*define[       ][      ]*/ /
36729 t def
36731 :def
36732 s/\\$//
36733 t bsnl
36734 s/["\\]/\\&/g
36735 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
36736 D["\1"]=" \3"/p
36737 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
36739 :bsnl
36740 s/["\\]/\\&/g
36741 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
36742 D["\1"]=" \3\\\\\\n"\\/p
36743 t cont
36744 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
36745 t cont
36747 :cont
36749 s/.\{148\}/&'"$ac_delim"'/g
36750 t clear
36751 :clear
36752 s/\\$//
36753 t bsnlc
36754 s/["\\]/\\&/g; s/^/"/; s/$/"/p
36756 :bsnlc
36757 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
36758 b cont
36759 ' <confdefs.h | sed '
36760 s/'"$ac_delim"'/"\\\
36761 "/g' >>$CONFIG_STATUS || ac_write_fail=1
36763 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36764   for (key in D) D_is_set[key] = 1
36765   FS = "\a"
36767 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
36768   line = \$ 0
36769   split(line, arg, " ")
36770   if (arg[1] == "#") {
36771     defundef = arg[2]
36772     mac1 = arg[3]
36773   } else {
36774     defundef = substr(arg[1], 2)
36775     mac1 = arg[2]
36776   }
36777   split(mac1, mac2, "(") #)
36778   macro = mac2[1]
36779   prefix = substr(line, 1, index(line, defundef) - 1)
36780   if (D_is_set[macro]) {
36781     # Preserve the white space surrounding the "#".
36782     print prefix "define", macro P[macro] D[macro]
36783     next
36784   } else {
36785     # Replace #undef with comments.  This is necessary, for example,
36786     # in the case of _POSIX_SOURCE, which is predefined and required
36787     # on some systems where configure will not decide to define it.
36788     if (defundef == "undef") {
36789       print "/*", prefix defundef, macro, "*/"
36790       next
36791     }
36792   }
36794 { print }
36795 _ACAWK
36796 _ACEOF
36797 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36798   { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
36799 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
36800    { (exit 1); exit 1; }; }
36801 fi # test -n "$CONFIG_HEADERS"
36804 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
36805 shift
36806 for ac_tag
36808   case $ac_tag in
36809   :[FHLC]) ac_mode=$ac_tag; continue;;
36810   esac
36811   case $ac_mode$ac_tag in
36812   :[FHL]*:*);;
36813   :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
36814 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
36815    { (exit 1); exit 1; }; };;
36816   :[FH]-) ac_tag=-:-;;
36817   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
36818   esac
36819   ac_save_IFS=$IFS
36820   IFS=:
36821   set x $ac_tag
36822   IFS=$ac_save_IFS
36823   shift
36824   ac_file=$1
36825   shift
36827   case $ac_mode in
36828   :L) ac_source=$1;;
36829   :[FH])
36830     ac_file_inputs=
36831     for ac_f
36832     do
36833       case $ac_f in
36834       -) ac_f="$tmp/stdin";;
36835       *) # Look for the file first in the build tree, then in the source tree
36836          # (if the path is not absolute).  The absolute path cannot be DOS-style,
36837          # because $ac_f cannot contain `:'.
36838          test -f "$ac_f" ||
36839            case $ac_f in
36840            [\\/$]*) false;;
36841            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
36842            esac ||
36843            { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
36844 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
36845    { (exit 1); exit 1; }; };;
36846       esac
36847       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
36848       ac_file_inputs="$ac_file_inputs '$ac_f'"
36849     done
36851     # Let's still pretend it is `configure' which instantiates (i.e., don't
36852     # use $as_me), people would be surprised to read:
36853     #    /* config.h.  Generated by config.status.  */
36854     configure_input='Generated from '`
36855           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
36856         `' by configure.'
36857     if test x"$ac_file" != x-; then
36858       configure_input="$ac_file.  $configure_input"
36859       { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
36860 $as_echo "$as_me: creating $ac_file" >&6;}
36861     fi
36862     # Neutralize special characters interpreted by sed in replacement strings.
36863     case $configure_input in #(
36864     *\&* | *\|* | *\\* )
36865        ac_sed_conf_input=`$as_echo "$configure_input" |
36866        sed 's/[\\\\&|]/\\\\&/g'`;; #(
36867     *) ac_sed_conf_input=$configure_input;;
36868     esac
36870     case $ac_tag in
36871     *:-:* | *:-) cat >"$tmp/stdin" \
36872       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
36873 $as_echo "$as_me: error: could not create $ac_file" >&2;}
36874    { (exit 1); exit 1; }; } ;;
36875     esac
36876     ;;
36877   esac
36879   ac_dir=`$as_dirname -- "$ac_file" ||
36880 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36881          X"$ac_file" : 'X\(//\)[^/]' \| \
36882          X"$ac_file" : 'X\(//\)$' \| \
36883          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
36884 $as_echo X"$ac_file" |
36885     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36886             s//\1/
36887             q
36888           }
36889           /^X\(\/\/\)[^/].*/{
36890             s//\1/
36891             q
36892           }
36893           /^X\(\/\/\)$/{
36894             s//\1/
36895             q
36896           }
36897           /^X\(\/\).*/{
36898             s//\1/
36899             q
36900           }
36901           s/.*/./; q'`
36902   { as_dir="$ac_dir"
36903   case $as_dir in #(
36904   -*) as_dir=./$as_dir;;
36905   esac
36906   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
36907     as_dirs=
36908     while :; do
36909       case $as_dir in #(
36910       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
36911       *) as_qdir=$as_dir;;
36912       esac
36913       as_dirs="'$as_qdir' $as_dirs"
36914       as_dir=`$as_dirname -- "$as_dir" ||
36915 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36916          X"$as_dir" : 'X\(//\)[^/]' \| \
36917          X"$as_dir" : 'X\(//\)$' \| \
36918          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36919 $as_echo X"$as_dir" |
36920     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36921             s//\1/
36922             q
36923           }
36924           /^X\(\/\/\)[^/].*/{
36925             s//\1/
36926             q
36927           }
36928           /^X\(\/\/\)$/{
36929             s//\1/
36930             q
36931           }
36932           /^X\(\/\).*/{
36933             s//\1/
36934             q
36935           }
36936           s/.*/./; q'`
36937       test -d "$as_dir" && break
36938     done
36939     test -z "$as_dirs" || eval "mkdir $as_dirs"
36940   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36941 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
36942    { (exit 1); exit 1; }; }; }
36943   ac_builddir=.
36945 case "$ac_dir" in
36946 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36948   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
36949   # A ".." for each directory in $ac_dir_suffix.
36950   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
36951   case $ac_top_builddir_sub in
36952   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36953   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36954   esac ;;
36955 esac
36956 ac_abs_top_builddir=$ac_pwd
36957 ac_abs_builddir=$ac_pwd$ac_dir_suffix
36958 # for backward compatibility:
36959 ac_top_builddir=$ac_top_build_prefix
36961 case $srcdir in
36962   .)  # We are building in place.
36963     ac_srcdir=.
36964     ac_top_srcdir=$ac_top_builddir_sub
36965     ac_abs_top_srcdir=$ac_pwd ;;
36966   [\\/]* | ?:[\\/]* )  # Absolute name.
36967     ac_srcdir=$srcdir$ac_dir_suffix;
36968     ac_top_srcdir=$srcdir
36969     ac_abs_top_srcdir=$srcdir ;;
36970   *) # Relative name.
36971     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36972     ac_top_srcdir=$ac_top_build_prefix$srcdir
36973     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36974 esac
36975 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36978   case $ac_mode in
36979   :F)
36980   #
36981   # CONFIG_FILE
36982   #
36984   case $INSTALL in
36985   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
36986   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
36987   esac
36988   ac_MKDIR_P=$MKDIR_P
36989   case $MKDIR_P in
36990   [\\/$]* | ?:[\\/]* ) ;;
36991   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
36992   esac
36993 _ACEOF
36995 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36996 # If the template does not know about datarootdir, expand it.
36997 # FIXME: This hack should be removed a few years after 2.60.
36998 ac_datarootdir_hack=; ac_datarootdir_seen=
37000 ac_sed_dataroot='
37001 /datarootdir/ {
37002   p
37003   q
37005 /@datadir@/p
37006 /@docdir@/p
37007 /@infodir@/p
37008 /@localedir@/p
37009 /@mandir@/p
37011 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
37012 *datarootdir*) ac_datarootdir_seen=yes;;
37013 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
37014   { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
37015 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
37016 _ACEOF
37017 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37018   ac_datarootdir_hack='
37019   s&@datadir@&$datadir&g
37020   s&@docdir@&$docdir&g
37021   s&@infodir@&$infodir&g
37022   s&@localedir@&$localedir&g
37023   s&@mandir@&$mandir&g
37024     s&\\\${datarootdir}&$datarootdir&g' ;;
37025 esac
37026 _ACEOF
37028 # Neutralize VPATH when `$srcdir' = `.'.
37029 # Shell code in configure.ac might set extrasub.
37030 # FIXME: do we really want to maintain this feature?
37031 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37032 ac_sed_extra="$ac_vpsub
37033 $extrasub
37034 _ACEOF
37035 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37037 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
37038 s|@configure_input@|$ac_sed_conf_input|;t t
37039 s&@top_builddir@&$ac_top_builddir_sub&;t t
37040 s&@top_build_prefix@&$ac_top_build_prefix&;t t
37041 s&@srcdir@&$ac_srcdir&;t t
37042 s&@abs_srcdir@&$ac_abs_srcdir&;t t
37043 s&@top_srcdir@&$ac_top_srcdir&;t t
37044 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
37045 s&@builddir@&$ac_builddir&;t t
37046 s&@abs_builddir@&$ac_abs_builddir&;t t
37047 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
37048 s&@INSTALL@&$ac_INSTALL&;t t
37049 s&@MKDIR_P@&$ac_MKDIR_P&;t t
37050 $ac_datarootdir_hack
37052 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
37053   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
37054 $as_echo "$as_me: error: could not create $ac_file" >&2;}
37055    { (exit 1); exit 1; }; }
37057 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
37058   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
37059   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
37060   { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
37061 which seems to be undefined.  Please make sure it is defined." >&5
37062 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
37063 which seems to be undefined.  Please make sure it is defined." >&2;}
37065   rm -f "$tmp/stdin"
37066   case $ac_file in
37067   -) cat "$tmp/out" && rm -f "$tmp/out";;
37068   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
37069   esac \
37070   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
37071 $as_echo "$as_me: error: could not create $ac_file" >&2;}
37072    { (exit 1); exit 1; }; }
37073  ;;
37074   :H)
37075   #
37076   # CONFIG_HEADER
37077   #
37078   if test x"$ac_file" != x-; then
37079     {
37080       $as_echo "/* $configure_input  */" \
37081       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
37082     } >"$tmp/config.h" \
37083       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
37084 $as_echo "$as_me: error: could not create $ac_file" >&2;}
37085    { (exit 1); exit 1; }; }
37086     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
37087       { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
37088 $as_echo "$as_me: $ac_file is unchanged" >&6;}
37089     else
37090       rm -f "$ac_file"
37091       mv "$tmp/config.h" "$ac_file" \
37092         || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
37093 $as_echo "$as_me: error: could not create $ac_file" >&2;}
37094    { (exit 1); exit 1; }; }
37095     fi
37096   else
37097     $as_echo "/* $configure_input  */" \
37098       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
37099       || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
37100 $as_echo "$as_me: error: could not create -" >&2;}
37101    { (exit 1); exit 1; }; }
37102   fi
37103 # Compute "$ac_file"'s index in $config_headers.
37104 _am_arg="$ac_file"
37105 _am_stamp_count=1
37106 for _am_header in $config_headers :; do
37107   case $_am_header in
37108     $_am_arg | $_am_arg:* )
37109       break ;;
37110     * )
37111       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
37112   esac
37113 done
37114 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
37115 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37116          X"$_am_arg" : 'X\(//\)[^/]' \| \
37117          X"$_am_arg" : 'X\(//\)$' \| \
37118          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
37119 $as_echo X"$_am_arg" |
37120     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37121             s//\1/
37122             q
37123           }
37124           /^X\(\/\/\)[^/].*/{
37125             s//\1/
37126             q
37127           }
37128           /^X\(\/\/\)$/{
37129             s//\1/
37130             q
37131           }
37132           /^X\(\/\).*/{
37133             s//\1/
37134             q
37135           }
37136           s/.*/./; q'`/stamp-h$_am_stamp_count
37137  ;;
37139   :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
37140 $as_echo "$as_me: executing $ac_file commands" >&6;}
37141  ;;
37142   esac
37145   case $ac_file$ac_mode in
37146     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
37147   # Autoconf 2.62 quotes --file arguments for eval, but not when files
37148   # are listed without --file.  Let's play safe and only enable the eval
37149   # if we detect the quoting.
37150   case $CONFIG_FILES in
37151   *\'*) eval set x "$CONFIG_FILES" ;;
37152   *)   set x $CONFIG_FILES ;;
37153   esac
37154   shift
37155   for mf
37156   do
37157     # Strip MF so we end up with the name of the file.
37158     mf=`echo "$mf" | sed -e 's/:.*$//'`
37159     # Check whether this is an Automake generated Makefile or not.
37160     # We used to match only the files named `Makefile.in', but
37161     # some people rename them; so instead we look at the file content.
37162     # Grep'ing the first line is not enough: some people post-process
37163     # each Makefile.in and add a new line on top of each file to say so.
37164     # Grep'ing the whole file is not good either: AIX grep has a line
37165     # limit of 2048, but all sed's we know have understand at least 4000.
37166     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
37167       dirpart=`$as_dirname -- "$mf" ||
37168 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37169          X"$mf" : 'X\(//\)[^/]' \| \
37170          X"$mf" : 'X\(//\)$' \| \
37171          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
37172 $as_echo X"$mf" |
37173     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37174             s//\1/
37175             q
37176           }
37177           /^X\(\/\/\)[^/].*/{
37178             s//\1/
37179             q
37180           }
37181           /^X\(\/\/\)$/{
37182             s//\1/
37183             q
37184           }
37185           /^X\(\/\).*/{
37186             s//\1/
37187             q
37188           }
37189           s/.*/./; q'`
37190     else
37191       continue
37192     fi
37193     # Extract the definition of DEPDIR, am__include, and am__quote
37194     # from the Makefile without running `make'.
37195     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
37196     test -z "$DEPDIR" && continue
37197     am__include=`sed -n 's/^am__include = //p' < "$mf"`
37198     test -z "am__include" && continue
37199     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
37200     # When using ansi2knr, U may be empty or an underscore; expand it
37201     U=`sed -n 's/^U = //p' < "$mf"`
37202     # Find all dependency output files, they are included files with
37203     # $(DEPDIR) in their names.  We invoke sed twice because it is the
37204     # simplest approach to changing $(DEPDIR) to its actual value in the
37205     # expansion.
37206     for file in `sed -n "
37207       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
37208          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
37209       # Make sure the directory exists.
37210       test -f "$dirpart/$file" && continue
37211       fdir=`$as_dirname -- "$file" ||
37212 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37213          X"$file" : 'X\(//\)[^/]' \| \
37214          X"$file" : 'X\(//\)$' \| \
37215          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
37216 $as_echo X"$file" |
37217     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37218             s//\1/
37219             q
37220           }
37221           /^X\(\/\/\)[^/].*/{
37222             s//\1/
37223             q
37224           }
37225           /^X\(\/\/\)$/{
37226             s//\1/
37227             q
37228           }
37229           /^X\(\/\).*/{
37230             s//\1/
37231             q
37232           }
37233           s/.*/./; q'`
37234       { as_dir=$dirpart/$fdir
37235   case $as_dir in #(
37236   -*) as_dir=./$as_dir;;
37237   esac
37238   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
37239     as_dirs=
37240     while :; do
37241       case $as_dir in #(
37242       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
37243       *) as_qdir=$as_dir;;
37244       esac
37245       as_dirs="'$as_qdir' $as_dirs"
37246       as_dir=`$as_dirname -- "$as_dir" ||
37247 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37248          X"$as_dir" : 'X\(//\)[^/]' \| \
37249          X"$as_dir" : 'X\(//\)$' \| \
37250          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
37251 $as_echo X"$as_dir" |
37252     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37253             s//\1/
37254             q
37255           }
37256           /^X\(\/\/\)[^/].*/{
37257             s//\1/
37258             q
37259           }
37260           /^X\(\/\/\)$/{
37261             s//\1/
37262             q
37263           }
37264           /^X\(\/\).*/{
37265             s//\1/
37266             q
37267           }
37268           s/.*/./; q'`
37269       test -d "$as_dir" && break
37270     done
37271     test -z "$as_dirs" || eval "mkdir $as_dirs"
37272   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
37273 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
37274    { (exit 1); exit 1; }; }; }
37275       # echo "creating $dirpart/$file"
37276       echo '# dummy' > "$dirpart/$file"
37277     done
37278   done
37280  ;;
37281     "libtool":C)
37283     # See if we are running on zsh, and set the options which allow our
37284     # commands through without removal of \ escapes.
37285     if test -n "${ZSH_VERSION+set}" ; then
37286       setopt NO_GLOB_SUBST
37287     fi
37289     cfgfile="${ofile}T"
37290     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
37291     $RM "$cfgfile"
37293     cat <<_LT_EOF >> "$cfgfile"
37294 #! $SHELL
37296 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
37297 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
37298 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
37299 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
37301 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
37302 #                 2006, 2007, 2008 Free Software Foundation, Inc.
37303 #   Written by Gordon Matzigkeit, 1996
37305 #   This file is part of GNU Libtool.
37307 # GNU Libtool is free software; you can redistribute it and/or
37308 # modify it under the terms of the GNU General Public License as
37309 # published by the Free Software Foundation; either version 2 of
37310 # the License, or (at your option) any later version.
37312 # As a special exception to the GNU General Public License,
37313 # if you distribute this file as part of a program or library that
37314 # is built using GNU Libtool, you may include this file under the
37315 # same distribution terms that you use for the rest of that program.
37317 # GNU Libtool is distributed in the hope that it will be useful,
37318 # but WITHOUT ANY WARRANTY; without even the implied warranty of
37319 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
37320 # GNU General Public License for more details.
37322 # You should have received a copy of the GNU General Public License
37323 # along with GNU Libtool; see the file COPYING.  If not, a copy
37324 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
37325 # obtained by writing to the Free Software Foundation, Inc.,
37326 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
37329 # The names of the tagged configurations supported by this script.
37330 available_tags=""
37332 # ### BEGIN LIBTOOL CONFIG
37334 # Which release of libtool.m4 was used?
37335 macro_version=$macro_version
37336 macro_revision=$macro_revision
37338 # Whether or not to build shared libraries.
37339 build_libtool_libs=$enable_shared
37341 # Whether or not to build static libraries.
37342 build_old_libs=$enable_static
37344 # What type of objects to build.
37345 pic_mode=$pic_mode
37347 # Whether or not to optimize for fast installation.
37348 fast_install=$enable_fast_install
37350 # The host system.
37351 host_alias=$host_alias
37352 host=$host
37353 host_os=$host_os
37355 # The build system.
37356 build_alias=$build_alias
37357 build=$build
37358 build_os=$build_os
37360 # A sed program that does not truncate output.
37361 SED=$lt_SED
37363 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
37364 Xsed="\$SED -e 1s/^X//"
37366 # A grep program that handles long lines.
37367 GREP=$lt_GREP
37369 # An ERE matcher.
37370 EGREP=$lt_EGREP
37372 # A literal string matcher.
37373 FGREP=$lt_FGREP
37375 # A BSD- or MS-compatible name lister.
37376 NM=$lt_NM
37378 # Whether we need soft or hard links.
37379 LN_S=$lt_LN_S
37381 # What is the maximum length of a command?
37382 max_cmd_len=$max_cmd_len
37384 # Object file suffix (normally "o").
37385 objext=$ac_objext
37387 # Executable file suffix (normally "").
37388 exeext=$exeext
37390 # whether the shell understands "unset".
37391 lt_unset=$lt_unset
37393 # turn spaces into newlines.
37394 SP2NL=$lt_lt_SP2NL
37396 # turn newlines into spaces.
37397 NL2SP=$lt_lt_NL2SP
37399 # How to create reloadable object files.
37400 reload_flag=$lt_reload_flag
37401 reload_cmds=$lt_reload_cmds
37403 # An object symbol dumper.
37404 OBJDUMP=$lt_OBJDUMP
37406 # Method to check whether dependent libraries are shared objects.
37407 deplibs_check_method=$lt_deplibs_check_method
37409 # Command to use when deplibs_check_method == "file_magic".
37410 file_magic_cmd=$lt_file_magic_cmd
37412 # The archiver.
37413 AR=$lt_AR
37414 AR_FLAGS=$lt_AR_FLAGS
37416 # A symbol stripping program.
37417 STRIP=$lt_STRIP
37419 # Commands used to install an old-style archive.
37420 RANLIB=$lt_RANLIB
37421 old_postinstall_cmds=$lt_old_postinstall_cmds
37422 old_postuninstall_cmds=$lt_old_postuninstall_cmds
37424 # A C compiler.
37425 LTCC=$lt_CC
37427 # LTCC compiler flags.
37428 LTCFLAGS=$lt_CFLAGS
37430 # Take the output of nm and produce a listing of raw symbols and C names.
37431 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
37433 # Transform the output of nm in a proper C declaration.
37434 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
37436 # Transform the output of nm in a C name address pair.
37437 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
37439 # Transform the output of nm in a C name address pair when lib prefix is needed.
37440 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
37442 # The name of the directory that contains temporary libtool files.
37443 objdir=$objdir
37445 # Shell to use when invoking shell scripts.
37446 SHELL=$lt_SHELL
37448 # An echo program that does not interpret backslashes.
37449 ECHO=$lt_ECHO
37451 # Used to examine libraries when file_magic_cmd begins with "file".
37452 MAGIC_CMD=$MAGIC_CMD
37454 # Must we lock files when doing compilation?
37455 need_locks=$lt_need_locks
37457 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
37458 DSYMUTIL=$lt_DSYMUTIL
37460 # Tool to change global to local symbols on Mac OS X.
37461 NMEDIT=$lt_NMEDIT
37463 # Tool to manipulate fat objects and archives on Mac OS X.
37464 LIPO=$lt_LIPO
37466 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
37467 OTOOL=$lt_OTOOL
37469 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
37470 OTOOL64=$lt_OTOOL64
37472 # Old archive suffix (normally "a").
37473 libext=$libext
37475 # Shared library suffix (normally ".so").
37476 shrext_cmds=$lt_shrext_cmds
37478 # The commands to extract the exported symbol list from a shared archive.
37479 extract_expsyms_cmds=$lt_extract_expsyms_cmds
37481 # Variables whose values should be saved in libtool wrapper scripts and
37482 # restored at link time.
37483 variables_saved_for_relink=$lt_variables_saved_for_relink
37485 # Do we need the "lib" prefix for modules?
37486 need_lib_prefix=$need_lib_prefix
37488 # Do we need a version for libraries?
37489 need_version=$need_version
37491 # Library versioning type.
37492 version_type=$version_type
37494 # Shared library runtime path variable.
37495 runpath_var=$runpath_var
37497 # Shared library path variable.
37498 shlibpath_var=$shlibpath_var
37500 # Is shlibpath searched before the hard-coded library search path?
37501 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
37503 # Format of library name prefix.
37504 libname_spec=$lt_libname_spec
37506 # List of archive names.  First name is the real one, the rest are links.
37507 # The last name is the one that the linker finds with -lNAME
37508 library_names_spec=$lt_library_names_spec
37510 # The coded name of the library, if different from the real name.
37511 soname_spec=$lt_soname_spec
37513 # Command to use after installation of a shared archive.
37514 postinstall_cmds=$lt_postinstall_cmds
37516 # Command to use after uninstallation of a shared archive.
37517 postuninstall_cmds=$lt_postuninstall_cmds
37519 # Commands used to finish a libtool library installation in a directory.
37520 finish_cmds=$lt_finish_cmds
37522 # As "finish_cmds", except a single script fragment to be evaled but
37523 # not shown.
37524 finish_eval=$lt_finish_eval
37526 # Whether we should hardcode library paths into libraries.
37527 hardcode_into_libs=$hardcode_into_libs
37529 # Compile-time system search path for libraries.
37530 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
37532 # Run-time system search path for libraries.
37533 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
37535 # Whether dlopen is supported.
37536 dlopen_support=$enable_dlopen
37538 # Whether dlopen of programs is supported.
37539 dlopen_self=$enable_dlopen_self
37541 # Whether dlopen of statically linked programs is supported.
37542 dlopen_self_static=$enable_dlopen_self_static
37544 # Commands to strip libraries.
37545 old_striplib=$lt_old_striplib
37546 striplib=$lt_striplib
37549 # The linker used to build libraries.
37550 LD=$lt_LD
37552 # Commands used to build an old-style archive.
37553 old_archive_cmds=$lt_old_archive_cmds
37555 # A language specific compiler.
37556 CC=$lt_compiler
37558 # Is the compiler the GNU compiler?
37559 with_gcc=$GCC
37561 # Compiler flag to turn off builtin functions.
37562 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
37564 # How to pass a linker flag through the compiler.
37565 wl=$lt_lt_prog_compiler_wl
37567 # Additional compiler flags for building library objects.
37568 pic_flag=$lt_lt_prog_compiler_pic
37570 # Compiler flag to prevent dynamic linking.
37571 link_static_flag=$lt_lt_prog_compiler_static
37573 # Does compiler simultaneously support -c and -o options?
37574 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
37576 # Whether or not to add -lc for building shared libraries.
37577 build_libtool_need_lc=$archive_cmds_need_lc
37579 # Whether or not to disallow shared libs when runtime libs are static.
37580 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
37582 # Compiler flag to allow reflexive dlopens.
37583 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
37585 # Compiler flag to generate shared objects directly from archives.
37586 whole_archive_flag_spec=$lt_whole_archive_flag_spec
37588 # Whether the compiler copes with passing no objects directly.
37589 compiler_needs_object=$lt_compiler_needs_object
37591 # Create an old-style archive from a shared archive.
37592 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
37594 # Create a temporary old-style archive to link instead of a shared archive.
37595 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
37597 # Commands used to build a shared archive.
37598 archive_cmds=$lt_archive_cmds
37599 archive_expsym_cmds=$lt_archive_expsym_cmds
37601 # Commands used to build a loadable module if different from building
37602 # a shared archive.
37603 module_cmds=$lt_module_cmds
37604 module_expsym_cmds=$lt_module_expsym_cmds
37606 # Whether we are building with GNU ld or not.
37607 with_gnu_ld=$lt_with_gnu_ld
37609 # Flag that allows shared libraries with undefined symbols to be built.
37610 allow_undefined_flag=$lt_allow_undefined_flag
37612 # Flag that enforces no undefined symbols.
37613 no_undefined_flag=$lt_no_undefined_flag
37615 # Flag to hardcode \$libdir into a binary during linking.
37616 # This must work even if \$libdir does not exist
37617 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
37619 # If ld is used when linking, flag to hardcode \$libdir into a binary
37620 # during linking.  This must work even if \$libdir does not exist.
37621 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
37623 # Whether we need a single "-rpath" flag with a separated argument.
37624 hardcode_libdir_separator=$lt_hardcode_libdir_separator
37626 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37627 # DIR into the resulting binary.
37628 hardcode_direct=$hardcode_direct
37630 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37631 # DIR into the resulting binary and the resulting library dependency is
37632 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
37633 # library is relocated.
37634 hardcode_direct_absolute=$hardcode_direct_absolute
37636 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
37637 # into the resulting binary.
37638 hardcode_minus_L=$hardcode_minus_L
37640 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
37641 # into the resulting binary.
37642 hardcode_shlibpath_var=$hardcode_shlibpath_var
37644 # Set to "yes" if building a shared library automatically hardcodes DIR
37645 # into the library and all subsequent libraries and executables linked
37646 # against it.
37647 hardcode_automatic=$hardcode_automatic
37649 # Set to yes if linker adds runtime paths of dependent libraries
37650 # to runtime path list.
37651 inherit_rpath=$inherit_rpath
37653 # Whether libtool must link a program against all its dependency libraries.
37654 link_all_deplibs=$link_all_deplibs
37656 # Fix the shell variable \$srcfile for the compiler.
37657 fix_srcfile_path=$lt_fix_srcfile_path
37659 # Set to "yes" if exported symbols are required.
37660 always_export_symbols=$always_export_symbols
37662 # The commands to list exported symbols.
37663 export_symbols_cmds=$lt_export_symbols_cmds
37665 # Symbols that should not be listed in the preloaded symbols.
37666 exclude_expsyms=$lt_exclude_expsyms
37668 # Symbols that must always be exported.
37669 include_expsyms=$lt_include_expsyms
37671 # Commands necessary for linking programs (against libraries) with templates.
37672 prelink_cmds=$lt_prelink_cmds
37674 # Specify filename containing input files.
37675 file_list_spec=$lt_file_list_spec
37677 # How to hardcode a shared library path into an executable.
37678 hardcode_action=$hardcode_action
37680 # ### END LIBTOOL CONFIG
37682 _LT_EOF
37684   case $host_os in
37685   aix3*)
37686     cat <<\_LT_EOF >> "$cfgfile"
37687 # AIX sometimes has problems with the GCC collect2 program.  For some
37688 # reason, if we set the COLLECT_NAMES environment variable, the problems
37689 # vanish in a puff of smoke.
37690 if test "X${COLLECT_NAMES+set}" != Xset; then
37691   COLLECT_NAMES=
37692   export COLLECT_NAMES
37694 _LT_EOF
37695     ;;
37696   esac
37699 ltmain="$ac_aux_dir/ltmain.sh"
37702   # We use sed instead of cat because bash on DJGPP gets confused if
37703   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
37704   # text mode, it properly converts lines to CR/LF.  This bash problem
37705   # is reportedly fixed, but why not run on old versions too?
37706   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
37707     || (rm -f "$cfgfile"; exit 1)
37709   case $xsi_shell in
37710   yes)
37711     cat << \_LT_EOF >> "$cfgfile"
37713 # func_dirname file append nondir_replacement
37714 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
37715 # otherwise set result to NONDIR_REPLACEMENT.
37716 func_dirname ()
37718   case ${1} in
37719     */*) func_dirname_result="${1%/*}${2}" ;;
37720     *  ) func_dirname_result="${3}" ;;
37721   esac
37724 # func_basename file
37725 func_basename ()
37727   func_basename_result="${1##*/}"
37730 # func_dirname_and_basename file append nondir_replacement
37731 # perform func_basename and func_dirname in a single function
37732 # call:
37733 #   dirname:  Compute the dirname of FILE.  If nonempty,
37734 #             add APPEND to the result, otherwise set result
37735 #             to NONDIR_REPLACEMENT.
37736 #             value returned in "$func_dirname_result"
37737 #   basename: Compute filename of FILE.
37738 #             value retuned in "$func_basename_result"
37739 # Implementation must be kept synchronized with func_dirname
37740 # and func_basename. For efficiency, we do not delegate to
37741 # those functions but instead duplicate the functionality here.
37742 func_dirname_and_basename ()
37744   case ${1} in
37745     */*) func_dirname_result="${1%/*}${2}" ;;
37746     *  ) func_dirname_result="${3}" ;;
37747   esac
37748   func_basename_result="${1##*/}"
37751 # func_stripname prefix suffix name
37752 # strip PREFIX and SUFFIX off of NAME.
37753 # PREFIX and SUFFIX must not contain globbing or regex special
37754 # characters, hashes, percent signs, but SUFFIX may contain a leading
37755 # dot (in which case that matches only a dot).
37756 func_stripname ()
37758   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
37759   # positional parameters, so assign one to ordinary parameter first.
37760   func_stripname_result=${3}
37761   func_stripname_result=${func_stripname_result#"${1}"}
37762   func_stripname_result=${func_stripname_result%"${2}"}
37765 # func_opt_split
37766 func_opt_split ()
37768   func_opt_split_opt=${1%%=*}
37769   func_opt_split_arg=${1#*=}
37772 # func_lo2o object
37773 func_lo2o ()
37775   case ${1} in
37776     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
37777     *)    func_lo2o_result=${1} ;;
37778   esac
37781 # func_xform libobj-or-source
37782 func_xform ()
37784   func_xform_result=${1%.*}.lo
37787 # func_arith arithmetic-term...
37788 func_arith ()
37790   func_arith_result=$(( $* ))
37793 # func_len string
37794 # STRING may not start with a hyphen.
37795 func_len ()
37797   func_len_result=${#1}
37800 _LT_EOF
37801     ;;
37802   *) # Bourne compatible functions.
37803     cat << \_LT_EOF >> "$cfgfile"
37805 # func_dirname file append nondir_replacement
37806 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
37807 # otherwise set result to NONDIR_REPLACEMENT.
37808 func_dirname ()
37810   # Extract subdirectory from the argument.
37811   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
37812   if test "X$func_dirname_result" = "X${1}"; then
37813     func_dirname_result="${3}"
37814   else
37815     func_dirname_result="$func_dirname_result${2}"
37816   fi
37819 # func_basename file
37820 func_basename ()
37822   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
37826 # func_stripname prefix suffix name
37827 # strip PREFIX and SUFFIX off of NAME.
37828 # PREFIX and SUFFIX must not contain globbing or regex special
37829 # characters, hashes, percent signs, but SUFFIX may contain a leading
37830 # dot (in which case that matches only a dot).
37831 # func_strip_suffix prefix name
37832 func_stripname ()
37834   case ${2} in
37835     .*) func_stripname_result=`$ECHO "X${3}" \
37836            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
37837     *)  func_stripname_result=`$ECHO "X${3}" \
37838            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
37839   esac
37842 # sed scripts:
37843 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
37844 my_sed_long_arg='1s/^-[^=]*=//'
37846 # func_opt_split
37847 func_opt_split ()
37849   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
37850   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
37853 # func_lo2o object
37854 func_lo2o ()
37856   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
37859 # func_xform libobj-or-source
37860 func_xform ()
37862   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
37865 # func_arith arithmetic-term...
37866 func_arith ()
37868   func_arith_result=`expr "$@"`
37871 # func_len string
37872 # STRING may not start with a hyphen.
37873 func_len ()
37875   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
37878 _LT_EOF
37879 esac
37881 case $lt_shell_append in
37882   yes)
37883     cat << \_LT_EOF >> "$cfgfile"
37885 # func_append var value
37886 # Append VALUE to the end of shell variable VAR.
37887 func_append ()
37889   eval "$1+=\$2"
37891 _LT_EOF
37892     ;;
37893   *)
37894     cat << \_LT_EOF >> "$cfgfile"
37896 # func_append var value
37897 # Append VALUE to the end of shell variable VAR.
37898 func_append ()
37900   eval "$1=\$$1\$2"
37903 _LT_EOF
37904     ;;
37905   esac
37908   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
37909     || (rm -f "$cfgfile"; exit 1)
37911   mv -f "$cfgfile" "$ofile" ||
37912     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
37913   chmod +x "$ofile"
37915  ;;
37916     "po-directories":C)
37917     for ac_file in $CONFIG_FILES; do
37918       # Support "outfile[:infile[:infile...]]"
37919       case "$ac_file" in
37920         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
37921       esac
37922       # PO directories have a Makefile.in generated from Makefile.in.in.
37923       case "$ac_file" in */Makefile.in)
37924         # Adjust a relative srcdir.
37925         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
37926         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
37927         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
37928         # In autoconf-2.13 it is called $ac_given_srcdir.
37929         # In autoconf-2.50 it is called $srcdir.
37930         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
37931         case "$ac_given_srcdir" in
37932           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
37933           /*) top_srcdir="$ac_given_srcdir" ;;
37934           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
37935         esac
37936         # Treat a directory as a PO directory if and only if it has a
37937         # POTFILES.in file. This allows packages to have multiple PO
37938         # directories under different names or in different locations.
37939         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
37940           rm -f "$ac_dir/POTFILES"
37941           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
37942           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
37943           POMAKEFILEDEPS="POTFILES.in"
37944           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
37945           # on $ac_dir but don't depend on user-specified configuration
37946           # parameters.
37947           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
37948             # The LINGUAS file contains the set of available languages.
37949             if test -n "$OBSOLETE_ALL_LINGUAS"; then
37950               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
37951             fi
37952             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
37953             # Hide the ALL_LINGUAS assigment from automake < 1.5.
37954             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
37955             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
37956           else
37957             # The set of available languages was given in configure.in.
37958             # Hide the ALL_LINGUAS assigment from automake < 1.5.
37959             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
37960           fi
37961           # Compute POFILES
37962           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
37963           # Compute UPDATEPOFILES
37964           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
37965           # Compute DUMMYPOFILES
37966           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
37967           # Compute GMOFILES
37968           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
37969           case "$ac_given_srcdir" in
37970             .) srcdirpre= ;;
37971             *) srcdirpre='$(srcdir)/' ;;
37972           esac
37973           POFILES=
37974           UPDATEPOFILES=
37975           DUMMYPOFILES=
37976           GMOFILES=
37977           for lang in $ALL_LINGUAS; do
37978             POFILES="$POFILES $srcdirpre$lang.po"
37979             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
37980             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
37981             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
37982           done
37983           # CATALOGS depends on both $ac_dir and the user's LINGUAS
37984           # environment variable.
37985           INST_LINGUAS=
37986           if test -n "$ALL_LINGUAS"; then
37987             for presentlang in $ALL_LINGUAS; do
37988               useit=no
37989               if test "%UNSET%" != "$LINGUAS"; then
37990                 desiredlanguages="$LINGUAS"
37991               else
37992                 desiredlanguages="$ALL_LINGUAS"
37993               fi
37994               for desiredlang in $desiredlanguages; do
37995                 # Use the presentlang catalog if desiredlang is
37996                 #   a. equal to presentlang, or
37997                 #   b. a variant of presentlang (because in this case,
37998                 #      presentlang can be used as a fallback for messages
37999                 #      which are not translated in the desiredlang catalog).
38000                 case "$desiredlang" in
38001                   "$presentlang"*) useit=yes;;
38002                 esac
38003               done
38004               if test $useit = yes; then
38005                 INST_LINGUAS="$INST_LINGUAS $presentlang"
38006               fi
38007             done
38008           fi
38009           CATALOGS=
38010           if test -n "$INST_LINGUAS"; then
38011             for lang in $INST_LINGUAS; do
38012               CATALOGS="$CATALOGS $lang.gmo"
38013             done
38014           fi
38015           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
38016           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"
38017           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
38018             if test -f "$f"; then
38019               case "$f" in
38020                 *.orig | *.bak | *~) ;;
38021                 *) cat "$f" >> "$ac_dir/Makefile" ;;
38022               esac
38023             fi
38024           done
38025         fi
38026         ;;
38027       esac
38028     done ;;
38029     "default":C)  chmod +x examples/*.pl ;;
38031   esac
38032 done # for ac_tag
38035 { (exit 0); exit 0; }
38036 _ACEOF
38037 chmod +x $CONFIG_STATUS
38038 ac_clean_files=$ac_clean_files_save
38040 test $ac_write_fail = 0 ||
38041   { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
38042 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
38043    { (exit 1); exit 1; }; }
38045  test -f config.h || ln -s rrd_config.h config.h
38047 # configure is writing to config.log, and then calls config.status.
38048 # config.status does its own redirection, appending to config.log.
38049 # Unfortunately, on DOS this fails, as config.log is still kept open
38050 # by configure, so config.status won't be able to write to it; its
38051 # output is simply discarded.  So we exec the FD to /dev/null,
38052 # effectively closing config.log, so it can be properly (re)opened and
38053 # appended to by config.status.  When coming back to configure, we
38054 # need to make the FD available again.
38055 if test "$no_create" != yes; then
38056   ac_cs_success=:
38057   ac_config_status_args=
38058   test "$silent" = yes &&
38059     ac_config_status_args="$ac_config_status_args --quiet"
38060   exec 5>/dev/null
38061   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
38062   exec 5>>config.log
38063   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
38064   # would make configure fail if this is the last instruction.
38065   $ac_cs_success || { (exit 1); exit 1; }
38067 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
38068   { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
38069 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
38073 { $as_echo "$as_me:$LINENO: checking in" >&5
38074 $as_echo_n "checking in... " >&6; }
38075 { $as_echo "$as_me:$LINENO: result: and out again" >&5
38076 $as_echo "and out again" >&6; }
38078 echo $ECHO_N "ordering CD from http://tobi.oetiker.ch/wish $ECHO_C" 1>&6
38079 sleep 1
38080 echo $ECHO_N ".$ECHO_C" 1>&6
38081 sleep 1
38082 echo $ECHO_N ".$ECHO_C" 1>&6
38083 sleep 1
38084 echo $ECHO_N ".$ECHO_C" 1>&6
38085 sleep 1
38086 echo $ECHO_N ".$ECHO_C" 1>&6
38087 sleep 1
38088 { $as_echo "$as_me:$LINENO: result:  just kidding ;-)" >&5
38089 $as_echo " just kidding ;-)" >&6; }
38090 echo
38091 echo "----------------------------------------------------------------"
38092 echo "Config is DONE!"
38093 echo
38094 echo "          With MMAP IO: $enable_mmap"
38095 echo "      Build rrd_getopt: $build_getopt"
38096 echo "       Static programs: $staticprogs"
38097 echo "          Perl Modules: $COMP_PERL"
38098 echo "           Perl Binary: $PERL"
38099 echo "          Perl Version: $PERL_VERSION"
38100 echo "          Perl Options: $PERL_MAKE_OPTIONS"
38101 echo "          Ruby Modules: $COMP_RUBY"
38102 echo "           Ruby Binary: $RUBY"
38103 echo "          Ruby Options: $RUBY_MAKE_OPTIONS"
38104 echo "    Build Lua Bindings: $enable_lua"
38105 if test "$enable_lua" = "yes"; then
38106 echo "            Lua Binary: $LUA"
38107 echo "           Lua Version: $lua_version"
38108 echo "     Lua C-modules dir: $LUA_INSTALL_CMOD"
38109 if test "$lua_need_compat51" = "1"; then
38110 echo "   Lua Lua-modules dir: $LUA_INSTALL_LMOD"
38113 echo "    Build Tcl Bindings: $enable_tcl"
38114 echo " Build Python Bindings: $enable_python"
38115 echo "          Build rrdcgi: $enable_rrdcgi"
38116 echo "       Build librrd MT: $enable_pthread"
38117 echo "           Use gettext: $USE_NLS"
38118 echo "           With libDBI: $have_libdbi"
38119 echo
38120 echo "             Libraries: $ALL_LIBS"
38121 echo
38122 echo "Type 'make' to compile the software and use 'make install' to "
38123 echo "install everything to: $prefix."
38124 echo
38125 echo "       ... that wishlist is NO JOKE. If you find RRDtool useful"
38126 echo "make me happy. Go to http://tobi.oetiker.ch/wish and"
38127 echo "place an order."
38128 echo
38129 echo "                               -- Tobi Oetiker <tobi@oetiker.ch>"
38130 echo "----------------------------------------------------------------"