Code

Imported upstream version 1.3.5.
[pkg-rrdtool.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for rrdtool 1.3.5.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21   setopt NO_GLOB_SUBST
22 else
23   case `(set -o) 2>/dev/null` in
24   *posix*) set -o posix ;;
25 esac
27 fi
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42   echo "#! /bin/sh" >conf$$.sh
43   echo  "exit 0"   >>conf$$.sh
44   chmod +x conf$$.sh
45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47   else
48     PATH_SEPARATOR=:
49   fi
50   rm -f conf$$.sh
51 fi
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55   as_unset=unset
56 else
57   as_unset=false
58 fi
61 # IFS
62 # We need space, tab and new line, in precisely that order.  Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" ""        $as_nl"
70 # Find who we are.  Look in the path if we contain no directory separator.
71 case $0 in
72   *[\\/]* ) as_myself=$0 ;;
73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76   IFS=$as_save_IFS
77   test -z "$as_dir" && as_dir=.
78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
82      ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87   as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91   { (exit 1); exit 1; }
92 fi
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
102 # NLS nuisances.
103 for as_var in \
104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106   LC_TELEPHONE LC_TIME
107 do
108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109     eval $as_var=C; export $as_var
110   else
111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112   fi
113 done
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
118   as_expr=expr
119 else
120   as_expr=false
121 fi
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
127 fi
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133          X"$0" : 'X\(//\)$' \| \
134          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136     sed '/^.*\/\([^/][^/]*\)\/*$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\/\)$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\).*/{
145             s//\1/
146             q
147           }
148           s/.*/./; q'`
150 # CDPATH.
151 $as_unset CDPATH
154 if test "x$CONFIG_SHELL" = x; then
155   if (eval ":") 2>/dev/null; then
156   as_have_required=yes
157 else
158   as_have_required=no
159 fi
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
165 as_func_success () {
166   as_func_return 0
168 as_func_failure () {
169   as_func_return 1
171 as_func_ret_success () {
172   return 0
174 as_func_ret_failure () {
175   return 1
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204   :
205 else
206   exitcode=1
207   echo positional parameters were not saved.
208 fi
210 test \$exitcode = 0) || { (exit 1); exit 1; }
213   as_lineno_1=\$LINENO
214   as_lineno_2=\$LINENO
215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218   :
219 else
220   as_candidate_shells=
221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224   IFS=$as_save_IFS
225   test -z "$as_dir" && as_dir=.
226   case $as_dir in
227          /*)
228            for as_base in sh bash ksh sh5; do
229              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230            done;;
231        esac
232 done
233 IFS=$as_save_IFS
236       for as_shell in $as_candidate_shells $SHELL; do
237          # Try only shells that exist, to save several forks.
238          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239                 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241   emulate sh
242   NULLCMD=:
243   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244   # is contrary to our usage.  Disable this feature.
245   alias -g '${1+"$@"}'='"$@"'
246   setopt NO_GLOB_SUBST
247 else
248   case `(set -o) 2>/dev/null` in
249   *posix*) set -o posix ;;
250 esac
252 fi
256 _ASEOF
257 }; then
258   CONFIG_SHELL=$as_shell
259                as_have_required=yes
260                if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in
270   *posix*) set -o posix ;;
271 esac
273 fi
277 (as_func_return () {
278   (exit $1)
280 as_func_success () {
281   as_func_return 0
283 as_func_failure () {
284   as_func_return 1
286 as_func_ret_success () {
287   return 0
289 as_func_ret_failure () {
290   return 1
293 exitcode=0
294 if as_func_success; then
295   :
296 else
297   exitcode=1
298   echo as_func_success failed.
299 fi
301 if as_func_failure; then
302   exitcode=1
303   echo as_func_failure succeeded.
304 fi
306 if as_func_ret_success; then
307   :
308 else
309   exitcode=1
310   echo as_func_ret_success failed.
311 fi
313 if as_func_ret_failure; then
314   exitcode=1
315   echo as_func_ret_failure succeeded.
316 fi
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
319   :
320 else
321   exitcode=1
322   echo positional parameters were not saved.
323 fi
325 test $exitcode = 0) || { (exit 1); exit 1; }
328   as_lineno_1=$LINENO
329   as_lineno_2=$LINENO
330   test "x$as_lineno_1" != "x$as_lineno_2" &&
331   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
333 _ASEOF
334 }; then
335   break
336 fi
338 fi
340       done
342       if test "x$CONFIG_SHELL" != x; then
343   for as_var in BASH_ENV ENV
344         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345         done
346         export CONFIG_SHELL
347         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 fi
351     if test $as_have_required = no; then
352   echo This script requires a shell more modern than all the
353       echo shells that I found on your system.  Please install a
354       echo modern shell, or manually run the script under such a
355       echo shell if you do have one.
356       { (exit 1); exit 1; }
357 fi
360 fi
362 fi
366 (eval "as_func_return () {
367   (exit \$1)
369 as_func_success () {
370   as_func_return 0
372 as_func_failure () {
373   as_func_return 1
375 as_func_ret_success () {
376   return 0
378 as_func_ret_failure () {
379   return 1
382 exitcode=0
383 if as_func_success; then
384   :
385 else
386   exitcode=1
387   echo as_func_success failed.
388 fi
390 if as_func_failure; then
391   exitcode=1
392   echo as_func_failure succeeded.
393 fi
395 if as_func_ret_success; then
396   :
397 else
398   exitcode=1
399   echo as_func_ret_success failed.
400 fi
402 if as_func_ret_failure; then
403   exitcode=1
404   echo as_func_ret_failure succeeded.
405 fi
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408   :
409 else
410   exitcode=1
411   echo positional parameters were not saved.
412 fi
414 test \$exitcode = 0") || {
415   echo No shell found that supports shell functions.
416   echo Please tell autoconf@gnu.org about your system,
417   echo including any error possibly output before this
418   echo message
423   as_lineno_1=$LINENO
424   as_lineno_2=$LINENO
425   test "x$as_lineno_1" != "x$as_lineno_2" &&
426   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429   # uniformly replaced by the line number.  The first 'sed' inserts a
430   # line-number line after each line using $LINENO; the second 'sed'
431   # does the real work.  The second script uses 'N' to pair each
432   # line-number line with the line containing $LINENO, and appends
433   # trailing '-' during substitution so that $LINENO is not a special
434   # case at line end.
435   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436   # scripts with optimization help from Paolo Bonzini.  Blame Lee
437   # E. McMahon (1931-1989) for sed's syntax.  :-)
438   sed -n '
439     p
440     /[$]LINENO/=
441   ' <$as_myself |
442     sed '
443       s/[$]LINENO.*/&-/
444       t lineno
445       b
446       :lineno
447       N
448       :loop
449       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450       t loop
451       s/-\n.*//
452     ' >$as_me.lineno &&
453   chmod +x "$as_me.lineno" ||
454     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455    { (exit 1); exit 1; }; }
457   # Don't try to exec as it changes $[0], causing all sort of problems
458   # (the dirname of $[0] is not the place where we might find the
459   # original and so on.  Autoconf is especially sensitive to this).
460   . "./$as_me.lineno"
461   # Exit status is that of the last command.
462   exit
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467   as_dirname=dirname
468 else
469   as_dirname=false
470 fi
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475   case `echo 'x\c'` in
476   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
477   *)   ECHO_C='\c';;
478   esac;;
479 *)
480   ECHO_N='-n';;
481 esac
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484    test "X`expr 00001 : '.*\(...\)'`" = X001; then
485   as_expr=expr
486 else
487   as_expr=false
488 fi
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492   rm -f conf$$.dir/conf$$.file
493 else
494   rm -f conf$$.dir
495   mkdir conf$$.dir
496 fi
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499   as_ln_s='ln -s'
500   # ... but there are two gotchas:
501   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503   # In both cases, we have to default to `cp -p'.
504   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505     as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507   as_ln_s=ln
508 else
509   as_ln_s='cp -p'
510 fi
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
515   as_mkdir_p=:
516 else
517   test -d ./-p && rmdir ./-p
518   as_mkdir_p=false
519 fi
521 if test -x / >/dev/null 2>&1; then
522   as_test_x='test -x'
523 else
524   if ls -dL / >/dev/null 2>&1; then
525     as_ls_L_option=L
526   else
527     as_ls_L_option=
528   fi
529   as_test_x='
530     eval sh -c '\''
531       if test -d "$1"; then
532         test -d "$1/.";
533       else
534         case $1 in
535         -*)set "./$1";;
536         esac;
537         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538         ???[sx]*):;;*)false;;esac;fi
539     '\'' sh
540   '
541 fi
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
553 # Check that we are running under the correct shell.
554 SHELL=${CONFIG_SHELL-/bin/sh}
556 case X$ECHO in
557 X*--fallback-echo)
558   # Remove one level of quotation (which was required for Make).
559   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
560   ;;
561 esac
563 echo=${ECHO-echo}
564 if test "X$1" = X--no-reexec; then
565   # Discard the --no-reexec flag, and continue.
566   shift
567 elif test "X$1" = X--fallback-echo; then
568   # Avoid inline document here, it may be left over
569   :
570 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
571   # Yippee, $echo works!
572   :
573 else
574   # Restart under the correct shell.
575   exec $SHELL "$0" --no-reexec ${1+"$@"}
576 fi
578 if test "X$1" = X--fallback-echo; then
579   # used as fallback echo
580   shift
581   cat <<EOF
582 $*
583 EOF
584   exit 0
585 fi
587 # The HP-UX ksh and POSIX shell print the target directory to stdout
588 # if CDPATH is set.
589 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
591 if test -z "$ECHO"; then
592 if test "X${echo_test_string+set}" != Xset; then
593 # find a string as large as possible, as long as the shell can cope with it
594   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
597        echo_test_string=`eval $cmd` &&
598        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
599     then
600       break
601     fi
602   done
603 fi
605 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
606    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
607    test "X$echo_testing_string" = "X$echo_test_string"; then
608   :
609 else
610   # The Solaris, AIX, and Digital Unix default echo programs unquote
611   # backslashes.  This makes it impossible to quote backslashes using
612   #   echo "$something" | sed 's/\\/\\\\/g'
613   #
614   # So, first we look for a working echo in the user's PATH.
616   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
617   for dir in $PATH /usr/ucb; do
618     IFS="$lt_save_ifs"
619     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
620        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
621        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
622        test "X$echo_testing_string" = "X$echo_test_string"; then
623       echo="$dir/echo"
624       break
625     fi
626   done
627   IFS="$lt_save_ifs"
629   if test "X$echo" = Xecho; then
630     # We didn't find a better echo, so look for alternatives.
631     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
632        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
633        test "X$echo_testing_string" = "X$echo_test_string"; then
634       # This shell has a builtin print -r that does the trick.
635       echo='print -r'
636     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
637          test "X$CONFIG_SHELL" != X/bin/ksh; then
638       # If we have ksh, try running configure again with it.
639       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
640       export ORIGINAL_CONFIG_SHELL
641       CONFIG_SHELL=/bin/ksh
642       export CONFIG_SHELL
643       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
644     else
645       # Try using printf.
646       echo='printf %s\n'
647       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
648          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
649          test "X$echo_testing_string" = "X$echo_test_string"; then
650         # Cool, printf works
651         :
652       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
653            test "X$echo_testing_string" = 'X\t' &&
654            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
655            test "X$echo_testing_string" = "X$echo_test_string"; then
656         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
657         export CONFIG_SHELL
658         SHELL="$CONFIG_SHELL"
659         export SHELL
660         echo="$CONFIG_SHELL $0 --fallback-echo"
661       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
662            test "X$echo_testing_string" = 'X\t' &&
663            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
664            test "X$echo_testing_string" = "X$echo_test_string"; then
665         echo="$CONFIG_SHELL $0 --fallback-echo"
666       else
667         # maybe with a smaller string...
668         prev=:
670         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
671           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
672           then
673             break
674           fi
675           prev="$cmd"
676         done
678         if test "$prev" != 'sed 50q "$0"'; then
679           echo_test_string=`eval $prev`
680           export echo_test_string
681           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
682         else
683           # Oops.  We lost completely, so just stick with echo.
684           echo=echo
685         fi
686       fi
687     fi
688   fi
689 fi
690 fi
692 # Copy echo and quote the copy suitably for passing to libtool from
693 # the Makefile, instead of quoting the original, which is used later.
694 ECHO=$echo
695 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
696    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
697 fi
702 tagnames=${tagnames+${tagnames},}CXX
704 tagnames=${tagnames+${tagnames},}F77
706 exec 7<&0 </dev/null 6>&1
708 # Name of the host.
709 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
710 # so uname gets run too.
711 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
714 # Initializations.
716 ac_default_prefix=/usr/local
717 ac_clean_files=
718 ac_config_libobj_dir=.
719 LIBOBJS=
720 cross_compiling=no
721 subdirs=
722 MFLAGS=
723 MAKEFLAGS=
724 SHELL=${CONFIG_SHELL-/bin/sh}
726 # Identity of this package.
727 PACKAGE_NAME='rrdtool'
728 PACKAGE_TARNAME='rrdtool'
729 PACKAGE_VERSION='1.3.5'
730 PACKAGE_STRING='rrdtool 1.3.5'
731 PACKAGE_BUGREPORT=''
733 ac_default_prefix=/usr/local/rrdtool-$PACKAGE_VERSION
734 # Factoring default headers for most tests.
735 ac_includes_default="\
736 #include <stdio.h>
737 #ifdef HAVE_SYS_TYPES_H
738 # include <sys/types.h>
739 #endif
740 #ifdef HAVE_SYS_STAT_H
741 # include <sys/stat.h>
742 #endif
743 #ifdef STDC_HEADERS
744 # include <stdlib.h>
745 # include <stddef.h>
746 #else
747 # ifdef HAVE_STDLIB_H
748 #  include <stdlib.h>
749 # endif
750 #endif
751 #ifdef HAVE_STRING_H
752 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
753 #  include <memory.h>
754 # endif
755 # include <string.h>
756 #endif
757 #ifdef HAVE_STRINGS_H
758 # include <strings.h>
759 #endif
760 #ifdef HAVE_INTTYPES_H
761 # include <inttypes.h>
762 #endif
763 #ifdef HAVE_STDINT_H
764 # include <stdint.h>
765 #endif
766 #ifdef HAVE_UNISTD_H
767 # include <unistd.h>
768 #endif"
770 ac_subst_vars='PERLFLAGS
771 SHELL
772 PATH_SEPARATOR
773 PACKAGE_NAME
774 PACKAGE_TARNAME
775 PACKAGE_VERSION
776 PACKAGE_STRING
777 PACKAGE_BUGREPORT
778 exec_prefix
779 prefix
780 program_transform_name
781 bindir
782 sbindir
783 libexecdir
784 datarootdir
785 datadir
786 sysconfdir
787 sharedstatedir
788 localstatedir
789 includedir
790 oldincludedir
791 docdir
792 infodir
793 htmldir
794 dvidir
795 pdfdir
796 psdir
797 libdir
798 localedir
799 mandir
800 DEFS
801 ECHO_C
802 ECHO_N
803 ECHO_T
804 LIBS
805 build_alias
806 host_alias
807 target_alias
808 NUMVERS
809 LIBVERS
810 build
811 build_cpu
812 build_vendor
813 build_os
814 host
815 host_cpu
816 host_vendor
817 host_os
818 target
819 target_cpu
820 target_vendor
821 target_os
822 INSTALL_PROGRAM
823 INSTALL_SCRIPT
824 INSTALL_DATA
825 CYGPATH_W
826 PACKAGE
827 VERSION
828 ACLOCAL
829 AUTOCONF
830 AUTOMAKE
831 AUTOHEADER
832 MAKEINFO
833 install_sh
834 STRIP
835 INSTALL_STRIP_PROGRAM
836 mkdir_p
837 AWK
838 SET_MAKE
839 am__leading_dot
840 AMTAR
841 am__tar
842 am__untar
843 MAINTAINER_MODE_TRUE
844 MAINTAINER_MODE_FALSE
845 MAINT
846 RRDGRAPH_YLEGEND_ANGLE
847 STATIC_PROGRAMS_TRUE
848 STATIC_PROGRAMS_FALSE
849 CC
850 CFLAGS
851 LDFLAGS
852 CPPFLAGS
853 ac_ct_CC
854 EXEEXT
855 OBJEXT
856 DEPDIR
857 am__include
858 am__quote
859 AMDEP_TRUE
860 AMDEP_FALSE
861 AMDEPBACKSLASH
862 CCDEPMODE
863 am__fastdepCC_TRUE
864 am__fastdepCC_FALSE
865 CPP
866 SED
867 GREP
868 EGREP
869 LN_S
870 ECHO
871 AR
872 RANLIB
873 DSYMUTIL
874 NMEDIT
875 CXX
876 CXXFLAGS
877 ac_ct_CXX
878 CXXDEPMODE
879 am__fastdepCXX_TRUE
880 am__fastdepCXX_FALSE
881 CXXCPP
882 F77
883 FFLAGS
884 ac_ct_F77
885 LIBTOOL
886 RRD_DEFAULT_FONT
887 GETTEXT_PACKAGE
888 USE_NLS
889 MSGFMT
890 MSGFMT_OPTS
891 GMSGFMT
892 XGETTEXT
893 CATALOGS
894 CATOBJEXT
895 DATADIRNAME
896 GMOFILES
897 INSTOBJEXT
898 INTLLIBS
899 PO_IN_DATADIR_TRUE
900 PO_IN_DATADIR_FALSE
901 POFILES
902 POSUB
903 MKINSTALLDIRS
904 INTLTOOL_DESKTOP_RULE
905 INTLTOOL_DIRECTORY_RULE
906 INTLTOOL_KEYS_RULE
907 INTLTOOL_PROP_RULE
908 INTLTOOL_OAF_RULE
909 INTLTOOL_PONG_RULE
910 INTLTOOL_SERVER_RULE
911 INTLTOOL_SHEET_RULE
912 INTLTOOL_SOUNDLIST_RULE
913 INTLTOOL_UI_RULE
914 INTLTOOL_XAM_RULE
915 INTLTOOL_KBD_RULE
916 INTLTOOL_XML_RULE
917 INTLTOOL_XML_NOMERGE_RULE
918 INTLTOOL_CAVES_RULE
919 INTLTOOL_SCHEMAS_RULE
920 INTLTOOL_THEME_RULE
921 INTLTOOL_SERVICE_RULE
922 INTLTOOL_POLICY_RULE
923 MSGMERGE
924 INTLTOOL_EXTRACT
925 INTLTOOL_MERGE
926 INTLTOOL_UPDATE
927 INTLTOOL_PERL
928 ALL_LINGUAS
929 LIB_LIBINTL
930 BUILD_LIBINTL_TRUE
931 BUILD_LIBINTL_FALSE
932 RRD_GETOPT_LONG
933 BUILD_GETOPT_TRUE
934 BUILD_GETOPT_FALSE
935 MULTITHREAD_CFLAGS
936 MULTITHREAD_LDFLAGS
937 acx_pthread_config
938 PTHREAD_CC
939 PTHREAD_LIBS
940 PTHREAD_CFLAGS
941 BUILD_MULTITHREAD_TRUE
942 BUILD_MULTITHREAD_FALSE
943 BUILD_RRDCGI_TRUE
944 BUILD_RRDCGI_FALSE
945 PKGCONFIG
946 CORE_LIBS
947 ALL_LIBS
948 PERL
949 POD2MAN
950 POD2HTML
951 PERLCC
952 PERLCCFLAGS
953 PERLLD
954 PERLLDFLAGS
955 PERL_CC
956 PERL_MAKE_OPTIONS
957 COMP_PERL
958 PERL_VERSION
959 RUBY
960 RUBY_MAKE_OPTIONS
961 COMP_RUBY
962 BUILD_TCL_TRUE
963 BUILD_TCL_FALSE
964 BUILD_TCL_SITE_TRUE
965 BUILD_TCL_SITE_FALSE
966 TCL_PREFIX
967 TCL_SHLIB_CFLAGS
968 TCL_SHLIB_LD
969 TCL_SHLIB_SUFFIX
970 TCL_PACKAGE_PATH
971 TCL_LD_SEARCH_FLAGS
972 TCL_STUB_LIB_SPEC
973 TCL_VERSION
974 TCL_PACKAGE_DIR
975 TCL_INCLUDE_SPEC
976 PYTHON
977 PYTHON_VERSION
978 PYTHON_PREFIX
979 PYTHON_EXEC_PREFIX
980 PYTHON_PLATFORM
981 pythondir
982 pkgpythondir
983 pyexecdir
984 pkgpyexecdir
985 PYTHON_INCLUDES
986 COMP_PYTHON
987 NROFF
988 TROFF
989 RRDDOCDIR
990 LIBOBJS
991 LTLIBOBJS'
992 ac_subst_files=''
993       ac_precious_vars='build_alias
994 host_alias
995 target_alias
996 RRDGRAPH_YLEGEND_ANGLE
997 CC
998 CFLAGS
999 LDFLAGS
1000 LIBS
1001 CPPFLAGS
1002 CPP
1003 CXX
1004 CXXFLAGS
1005 CCC
1006 CXXCPP
1007 F77
1008 FFLAGS
1009 PERLCC
1010 PERLCCFLAGS
1011 PERLLD
1012 PERLLDFLAGS
1013 RRDDOCDIR'
1016 # Initialize some variables set by options.
1017 ac_init_help=
1018 ac_init_version=false
1019 # The variables have the same names as the options, with
1020 # dashes changed to underlines.
1021 cache_file=/dev/null
1022 exec_prefix=NONE
1023 no_create=
1024 no_recursion=
1025 prefix=NONE
1026 program_prefix=NONE
1027 program_suffix=NONE
1028 program_transform_name=s,x,x,
1029 silent=
1030 site=
1031 srcdir=
1032 verbose=
1033 x_includes=NONE
1034 x_libraries=NONE
1036 # Installation directory options.
1037 # These are left unexpanded so users can "make install exec_prefix=/foo"
1038 # and all the variables that are supposed to be based on exec_prefix
1039 # by default will actually change.
1040 # Use braces instead of parens because sh, perl, etc. also accept them.
1041 # (The list follows the same order as the GNU Coding Standards.)
1042 bindir='${exec_prefix}/bin'
1043 sbindir='${exec_prefix}/sbin'
1044 libexecdir='${exec_prefix}/libexec'
1045 datarootdir='${prefix}/share'
1046 datadir='${datarootdir}'
1047 sysconfdir='${prefix}/etc'
1048 sharedstatedir='${prefix}/com'
1049 localstatedir='${prefix}/var'
1050 includedir='${prefix}/include'
1051 oldincludedir='/usr/include'
1052 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1053 infodir='${datarootdir}/info'
1054 htmldir='${docdir}'
1055 dvidir='${docdir}'
1056 pdfdir='${docdir}'
1057 psdir='${docdir}'
1058 libdir='${exec_prefix}/lib'
1059 localedir='${datarootdir}/locale'
1060 mandir='${datarootdir}/man'
1062 ac_prev=
1063 ac_dashdash=
1064 for ac_option
1065 do
1066   # If the previous option needs an argument, assign it.
1067   if test -n "$ac_prev"; then
1068     eval $ac_prev=\$ac_option
1069     ac_prev=
1070     continue
1071   fi
1073   case $ac_option in
1074   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1075   *)    ac_optarg=yes ;;
1076   esac
1078   # Accept the important Cygnus configure options, so we can diagnose typos.
1080   case $ac_dashdash$ac_option in
1081   --)
1082     ac_dashdash=yes ;;
1084   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1085     ac_prev=bindir ;;
1086   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1087     bindir=$ac_optarg ;;
1089   -build | --build | --buil | --bui | --bu)
1090     ac_prev=build_alias ;;
1091   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1092     build_alias=$ac_optarg ;;
1094   -cache-file | --cache-file | --cache-fil | --cache-fi \
1095   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1096     ac_prev=cache_file ;;
1097   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1098   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1099     cache_file=$ac_optarg ;;
1101   --config-cache | -C)
1102     cache_file=config.cache ;;
1104   -datadir | --datadir | --datadi | --datad)
1105     ac_prev=datadir ;;
1106   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1107     datadir=$ac_optarg ;;
1109   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1110   | --dataroo | --dataro | --datar)
1111     ac_prev=datarootdir ;;
1112   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1113   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1114     datarootdir=$ac_optarg ;;
1116   -disable-* | --disable-*)
1117     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1118     # Reject names that are not valid shell variable names.
1119     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1120       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1121    { (exit 1); exit 1; }; }
1122     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1123     eval enable_$ac_feature=no ;;
1125   -docdir | --docdir | --docdi | --doc | --do)
1126     ac_prev=docdir ;;
1127   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1128     docdir=$ac_optarg ;;
1130   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1131     ac_prev=dvidir ;;
1132   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1133     dvidir=$ac_optarg ;;
1135   -enable-* | --enable-*)
1136     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1137     # Reject names that are not valid shell variable names.
1138     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1139       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1140    { (exit 1); exit 1; }; }
1141     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1142     eval enable_$ac_feature=\$ac_optarg ;;
1144   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1145   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1146   | --exec | --exe | --ex)
1147     ac_prev=exec_prefix ;;
1148   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1149   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1150   | --exec=* | --exe=* | --ex=*)
1151     exec_prefix=$ac_optarg ;;
1153   -gas | --gas | --ga | --g)
1154     # Obsolete; use --with-gas.
1155     with_gas=yes ;;
1157   -help | --help | --hel | --he | -h)
1158     ac_init_help=long ;;
1159   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1160     ac_init_help=recursive ;;
1161   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1162     ac_init_help=short ;;
1164   -host | --host | --hos | --ho)
1165     ac_prev=host_alias ;;
1166   -host=* | --host=* | --hos=* | --ho=*)
1167     host_alias=$ac_optarg ;;
1169   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1170     ac_prev=htmldir ;;
1171   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1172   | --ht=*)
1173     htmldir=$ac_optarg ;;
1175   -includedir | --includedir | --includedi | --included | --include \
1176   | --includ | --inclu | --incl | --inc)
1177     ac_prev=includedir ;;
1178   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1179   | --includ=* | --inclu=* | --incl=* | --inc=*)
1180     includedir=$ac_optarg ;;
1182   -infodir | --infodir | --infodi | --infod | --info | --inf)
1183     ac_prev=infodir ;;
1184   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1185     infodir=$ac_optarg ;;
1187   -libdir | --libdir | --libdi | --libd)
1188     ac_prev=libdir ;;
1189   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1190     libdir=$ac_optarg ;;
1192   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1193   | --libexe | --libex | --libe)
1194     ac_prev=libexecdir ;;
1195   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1196   | --libexe=* | --libex=* | --libe=*)
1197     libexecdir=$ac_optarg ;;
1199   -localedir | --localedir | --localedi | --localed | --locale)
1200     ac_prev=localedir ;;
1201   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1202     localedir=$ac_optarg ;;
1204   -localstatedir | --localstatedir | --localstatedi | --localstated \
1205   | --localstate | --localstat | --localsta | --localst | --locals)
1206     ac_prev=localstatedir ;;
1207   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1208   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1209     localstatedir=$ac_optarg ;;
1211   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1212     ac_prev=mandir ;;
1213   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1214     mandir=$ac_optarg ;;
1216   -nfp | --nfp | --nf)
1217     # Obsolete; use --without-fp.
1218     with_fp=no ;;
1220   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1221   | --no-cr | --no-c | -n)
1222     no_create=yes ;;
1224   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1225   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1226     no_recursion=yes ;;
1228   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1229   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1230   | --oldin | --oldi | --old | --ol | --o)
1231     ac_prev=oldincludedir ;;
1232   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1233   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1234   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1235     oldincludedir=$ac_optarg ;;
1237   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1238     ac_prev=prefix ;;
1239   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1240     prefix=$ac_optarg ;;
1242   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1243   | --program-pre | --program-pr | --program-p)
1244     ac_prev=program_prefix ;;
1245   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1246   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1247     program_prefix=$ac_optarg ;;
1249   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1250   | --program-suf | --program-su | --program-s)
1251     ac_prev=program_suffix ;;
1252   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1253   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1254     program_suffix=$ac_optarg ;;
1256   -program-transform-name | --program-transform-name \
1257   | --program-transform-nam | --program-transform-na \
1258   | --program-transform-n | --program-transform- \
1259   | --program-transform | --program-transfor \
1260   | --program-transfo | --program-transf \
1261   | --program-trans | --program-tran \
1262   | --progr-tra | --program-tr | --program-t)
1263     ac_prev=program_transform_name ;;
1264   -program-transform-name=* | --program-transform-name=* \
1265   | --program-transform-nam=* | --program-transform-na=* \
1266   | --program-transform-n=* | --program-transform-=* \
1267   | --program-transform=* | --program-transfor=* \
1268   | --program-transfo=* | --program-transf=* \
1269   | --program-trans=* | --program-tran=* \
1270   | --progr-tra=* | --program-tr=* | --program-t=*)
1271     program_transform_name=$ac_optarg ;;
1273   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1274     ac_prev=pdfdir ;;
1275   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1276     pdfdir=$ac_optarg ;;
1278   -psdir | --psdir | --psdi | --psd | --ps)
1279     ac_prev=psdir ;;
1280   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1281     psdir=$ac_optarg ;;
1283   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1284   | -silent | --silent | --silen | --sile | --sil)
1285     silent=yes ;;
1287   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1288     ac_prev=sbindir ;;
1289   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1290   | --sbi=* | --sb=*)
1291     sbindir=$ac_optarg ;;
1293   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1294   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1295   | --sharedst | --shareds | --shared | --share | --shar \
1296   | --sha | --sh)
1297     ac_prev=sharedstatedir ;;
1298   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1299   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1300   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1301   | --sha=* | --sh=*)
1302     sharedstatedir=$ac_optarg ;;
1304   -site | --site | --sit)
1305     ac_prev=site ;;
1306   -site=* | --site=* | --sit=*)
1307     site=$ac_optarg ;;
1309   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1310     ac_prev=srcdir ;;
1311   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1312     srcdir=$ac_optarg ;;
1314   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1315   | --syscon | --sysco | --sysc | --sys | --sy)
1316     ac_prev=sysconfdir ;;
1317   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1318   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1319     sysconfdir=$ac_optarg ;;
1321   -target | --target | --targe | --targ | --tar | --ta | --t)
1322     ac_prev=target_alias ;;
1323   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1324     target_alias=$ac_optarg ;;
1326   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1327     verbose=yes ;;
1329   -version | --version | --versio | --versi | --vers | -V)
1330     ac_init_version=: ;;
1332   -with-* | --with-*)
1333     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1334     # Reject names that are not valid shell variable names.
1335     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1336       { echo "$as_me: error: invalid package name: $ac_package" >&2
1337    { (exit 1); exit 1; }; }
1338     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1339     eval with_$ac_package=\$ac_optarg ;;
1341   -without-* | --without-*)
1342     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1343     # Reject names that are not valid shell variable names.
1344     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1345       { echo "$as_me: error: invalid package name: $ac_package" >&2
1346    { (exit 1); exit 1; }; }
1347     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1348     eval with_$ac_package=no ;;
1350   --x)
1351     # Obsolete; use --with-x.
1352     with_x=yes ;;
1354   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1355   | --x-incl | --x-inc | --x-in | --x-i)
1356     ac_prev=x_includes ;;
1357   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1358   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1359     x_includes=$ac_optarg ;;
1361   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1362   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1363     ac_prev=x_libraries ;;
1364   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1365   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1366     x_libraries=$ac_optarg ;;
1368   -*) { echo "$as_me: error: unrecognized option: $ac_option
1369 Try \`$0 --help' for more information." >&2
1370    { (exit 1); exit 1; }; }
1371     ;;
1373   *=*)
1374     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1375     # Reject names that are not valid shell variable names.
1376     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1377       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1378    { (exit 1); exit 1; }; }
1379     eval $ac_envvar=\$ac_optarg
1380     export $ac_envvar ;;
1382   *)
1383     # FIXME: should be removed in autoconf 3.0.
1384     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1385     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1386       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1387     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1388     ;;
1390   esac
1391 done
1393 if test -n "$ac_prev"; then
1394   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1395   { echo "$as_me: error: missing argument to $ac_option" >&2
1396    { (exit 1); exit 1; }; }
1397 fi
1399 # Be sure to have absolute directory names.
1400 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1401                 datadir sysconfdir sharedstatedir localstatedir includedir \
1402                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1403                 libdir localedir mandir
1404 do
1405   eval ac_val=\$$ac_var
1406   case $ac_val in
1407     [\\/$]* | ?:[\\/]* )  continue;;
1408     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1409   esac
1410   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1411    { (exit 1); exit 1; }; }
1412 done
1414 # There might be people who depend on the old broken behavior: `$host'
1415 # used to hold the argument of --host etc.
1416 # FIXME: To remove some day.
1417 build=$build_alias
1418 host=$host_alias
1419 target=$target_alias
1421 # FIXME: To remove some day.
1422 if test "x$host_alias" != x; then
1423   if test "x$build_alias" = x; then
1424     cross_compiling=maybe
1425     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1426     If a cross compiler is detected then cross compile mode will be used." >&2
1427   elif test "x$build_alias" != "x$host_alias"; then
1428     cross_compiling=yes
1429   fi
1430 fi
1432 ac_tool_prefix=
1433 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1435 test "$silent" = yes && exec 6>/dev/null
1438 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1439 ac_ls_di=`ls -di .` &&
1440 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1441   { echo "$as_me: error: Working directory cannot be determined" >&2
1442    { (exit 1); exit 1; }; }
1443 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1444   { echo "$as_me: error: pwd does not report name of working directory" >&2
1445    { (exit 1); exit 1; }; }
1448 # Find the source files, if location was not specified.
1449 if test -z "$srcdir"; then
1450   ac_srcdir_defaulted=yes
1451   # Try the directory containing this script, then the parent directory.
1452   ac_confdir=`$as_dirname -- "$0" ||
1453 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1454          X"$0" : 'X\(//\)[^/]' \| \
1455          X"$0" : 'X\(//\)$' \| \
1456          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1457 echo X"$0" |
1458     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1459             s//\1/
1460             q
1461           }
1462           /^X\(\/\/\)[^/].*/{
1463             s//\1/
1464             q
1465           }
1466           /^X\(\/\/\)$/{
1467             s//\1/
1468             q
1469           }
1470           /^X\(\/\).*/{
1471             s//\1/
1472             q
1473           }
1474           s/.*/./; q'`
1475   srcdir=$ac_confdir
1476   if test ! -r "$srcdir/$ac_unique_file"; then
1477     srcdir=..
1478   fi
1479 else
1480   ac_srcdir_defaulted=no
1481 fi
1482 if test ! -r "$srcdir/$ac_unique_file"; then
1483   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1484   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1485    { (exit 1); exit 1; }; }
1486 fi
1487 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1488 ac_abs_confdir=`(
1489         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1490    { (exit 1); exit 1; }; }
1491         pwd)`
1492 # When building in place, set srcdir=.
1493 if test "$ac_abs_confdir" = "$ac_pwd"; then
1494   srcdir=.
1495 fi
1496 # Remove unnecessary trailing slashes from srcdir.
1497 # Double slashes in file names in object file debugging info
1498 # mess up M-x gdb in Emacs.
1499 case $srcdir in
1500 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1501 esac
1502 for ac_var in $ac_precious_vars; do
1503   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1504   eval ac_env_${ac_var}_value=\$${ac_var}
1505   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1506   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1507 done
1510 # Report the --help message.
1512 if test "$ac_init_help" = "long"; then
1513   # Omit some internal or obsolete options to make the list less imposing.
1514   # This message is too long to be a string in the A/UX 3.1 sh.
1515   cat <<_ACEOF
1516 \`configure' configures rrdtool 1.3.5 to adapt to many kinds of systems.
1518 Usage: $0 [OPTION]... [VAR=VALUE]...
1520 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1521 VAR=VALUE.  See below for descriptions of some of the useful variables.
1523 Defaults for the options are specified in brackets.
1525 Configuration:
1526   -h, --help              display this help and exit
1527       --help=short        display options specific to this package
1528       --help=recursive    display the short help of all the included packages
1529   -V, --version           display version information and exit
1530   -q, --quiet, --silent   do not print \`checking...' messages
1531       --cache-file=FILE   cache test results in FILE [disabled]
1532   -C, --config-cache      alias for \`--cache-file=config.cache'
1533   -n, --no-create         do not create output files
1534       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1536 Installation directories:
1537   --prefix=PREFIX         install architecture-independent files in PREFIX
1538                           [$ac_default_prefix]
1539   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1540                           [PREFIX]
1542 By default, \`make install' will install all the files in
1543 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1544 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1545 for instance \`--prefix=\$HOME'.
1547 For better control, use the options below.
1549 Fine tuning of the installation directories:
1550   --bindir=DIR           user executables [EPREFIX/bin]
1551   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1552   --libexecdir=DIR       program executables [EPREFIX/libexec]
1553   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1554   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1555   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1556   --libdir=DIR           object code libraries [EPREFIX/lib]
1557   --includedir=DIR       C header files [PREFIX/include]
1558   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1559   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1560   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1561   --infodir=DIR          info documentation [DATAROOTDIR/info]
1562   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1563   --mandir=DIR           man documentation [DATAROOTDIR/man]
1564   --docdir=DIR           documentation root [DATAROOTDIR/doc/rrdtool]
1565   --htmldir=DIR          html documentation [DOCDIR]
1566   --dvidir=DIR           dvi documentation [DOCDIR]
1567   --pdfdir=DIR           pdf documentation [DOCDIR]
1568   --psdir=DIR            ps documentation [DOCDIR]
1569 _ACEOF
1571   cat <<\_ACEOF
1573 Program names:
1574   --program-prefix=PREFIX            prepend PREFIX to installed program names
1575   --program-suffix=SUFFIX            append SUFFIX to installed program names
1576   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1578 System types:
1579   --build=BUILD     configure for building on BUILD [guessed]
1580   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1581   --target=TARGET   configure for building compilers for TARGET [HOST]
1582 _ACEOF
1583 fi
1585 if test -n "$ac_init_help"; then
1586   case $ac_init_help in
1587      short | recursive ) echo "Configuration of rrdtool 1.3.5:";;
1588    esac
1589   cat <<\_ACEOF
1591 Optional Features:
1592   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1593   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1594   --enable-maintainer-mode  enable make rules and dependencies not useful
1595                           (and sometimes confusing) to the casual installer
1596   --disable-rrdcgi        disable building of rrdcgi
1597   --disable-mmap          disable mmap in rrd_update, use seek+write instead
1598   --disable-pthread       disable multithread support
1599   --enable-static-programs  Build static programs
1600   --disable-dependency-tracking  speeds up one-time build
1601   --enable-dependency-tracking   do not reject slow dependency extractors
1602   --enable-shared[=PKGS]  build shared libraries [default=yes]
1603   --enable-static[=PKGS]  build static libraries [default=yes]
1604   --enable-fast-install[=PKGS]
1605                           optimize for fast installation [default=yes]
1606   --disable-libtool-lock  avoid locking (might break parallel builds)
1607   --disable-libintl        i18n support (libintl)
1608   --disable-perl          do not build the perl modules
1609   --enable-perl-site-install   by default the rrdtool perl modules are installed
1610                           together with rrdtool in $prefix/lib/perl. You have to
1611                           put a 'use lib qw($prefix/lib/perl)' into your scripts
1612                           when you want to use them. When you set this option
1613                           the perl modules will get installed wherever
1614                           your perl setup thinks it is best.
1615   --disable-ruby          do not build the ruby modules
1616   --enable-ruby-site-install   by default the rrdtool ruby modules are installed
1617                           together with rrdtool in $prefix/lib/ruby. You have to
1618                           add $prefix/lib/ruby/$ruby_version/$sitearch to you $: variable
1619                           for ruby to find the RRD.so file.
1620   --disable-tcl           do not build the tcl modules
1621   --enable-tcl-site        install the tcl extension in the tcl tree
1622   --disable-python        do not build the python modules
1624 Optional Packages:
1625   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1626   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1627   --with-rrd-default-font=OPTIONS  set the full path to your default font.
1628   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1629   --with-pic              try to use only PIC/non-PIC objects [default=use
1630                           both]
1631   --with-tags[=TAGS]      include additional configurations [automatic]
1632   --with-perl-options=OPTIONS  options to pass on command-line when
1633                           generating Makefile from Makefile.PL. If you set this
1634                           option, interesting things may happen unless you know
1635                           what you are doing!
1636   --with-ruby-options=OPTIONS  options to pass on command-line when
1637                           generating Makefile from extconf.rb. If you set this
1638                           option, interesting things may happen unless you know
1639                           what you are doing!
1640   --with-tcllib=DIR       location of the tclConfig.sh
1642 Some influential environment variables:
1643   RRDGRAPH_YLEGEND_ANGLE
1644               Vertical label angle: -90.0 (default) or 90.0
1645   CC          C compiler command
1646   CFLAGS      C compiler flags
1647   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1648               nonstandard directory <lib dir>
1649   LIBS        libraries to pass to the linker, e.g. -l<library>
1650   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1651               you have headers in a nonstandard directory <include dir>
1652   CPP         C preprocessor
1653   CXX         C++ compiler command
1654   CXXFLAGS    C++ compiler flags
1655   CXXCPP      C++ preprocessor
1656   F77         Fortran 77 compiler command
1657   FFLAGS      Fortran 77 compiler flags
1658   PERLCC      [] C compiler for Perl modules
1659   PERLCCFLAGS [] CC flags for Perl modules
1660   PERLLD      [same], [as], [PERLCC] Linker for Perl modules
1661   PERLLDFLAGS [] LD flags for Perl modules
1662   RRDDOCDIR   [DATADIR/doc/PACKAGE-VERSION] Documentation directory
1664 Use these variables to override the choices made by `configure' or to help
1665 it to find libraries and programs with nonstandard names/locations.
1667 _ACEOF
1668 ac_status=$?
1669 fi
1671 if test "$ac_init_help" = "recursive"; then
1672   # If there are subdirs, report their specific --help.
1673   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1674     test -d "$ac_dir" || continue
1675     ac_builddir=.
1677 case "$ac_dir" in
1678 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1679 *)
1680   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1681   # A ".." for each directory in $ac_dir_suffix.
1682   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1683   case $ac_top_builddir_sub in
1684   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1685   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1686   esac ;;
1687 esac
1688 ac_abs_top_builddir=$ac_pwd
1689 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1690 # for backward compatibility:
1691 ac_top_builddir=$ac_top_build_prefix
1693 case $srcdir in
1694   .)  # We are building in place.
1695     ac_srcdir=.
1696     ac_top_srcdir=$ac_top_builddir_sub
1697     ac_abs_top_srcdir=$ac_pwd ;;
1698   [\\/]* | ?:[\\/]* )  # Absolute name.
1699     ac_srcdir=$srcdir$ac_dir_suffix;
1700     ac_top_srcdir=$srcdir
1701     ac_abs_top_srcdir=$srcdir ;;
1702   *) # Relative name.
1703     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1704     ac_top_srcdir=$ac_top_build_prefix$srcdir
1705     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1706 esac
1707 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1709     cd "$ac_dir" || { ac_status=$?; continue; }
1710     # Check for guested configure.
1711     if test -f "$ac_srcdir/configure.gnu"; then
1712       echo &&
1713       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1714     elif test -f "$ac_srcdir/configure"; then
1715       echo &&
1716       $SHELL "$ac_srcdir/configure" --help=recursive
1717     else
1718       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1719     fi || ac_status=$?
1720     cd "$ac_pwd" || { ac_status=$?; break; }
1721   done
1722 fi
1724 test -n "$ac_init_help" && exit $ac_status
1725 if $ac_init_version; then
1726   cat <<\_ACEOF
1727 rrdtool configure 1.3.5
1728 generated by GNU Autoconf 2.61
1730 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1731 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1732 This configure script is free software; the Free Software Foundation
1733 gives unlimited permission to copy, distribute and modify it.
1734 _ACEOF
1735   exit
1736 fi
1737 cat >config.log <<_ACEOF
1738 This file contains any messages produced by compilers while
1739 running configure, to aid debugging if configure makes a mistake.
1741 It was created by rrdtool $as_me 1.3.5, which was
1742 generated by GNU Autoconf 2.61.  Invocation command line was
1744   $ $0 $@
1746 _ACEOF
1747 exec 5>>config.log
1749 cat <<_ASUNAME
1750 ## --------- ##
1751 ## Platform. ##
1752 ## --------- ##
1754 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1755 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1756 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1757 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1758 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1760 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1761 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1763 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1764 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1765 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1766 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1767 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1768 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1769 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1771 _ASUNAME
1773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1774 for as_dir in $PATH
1775 do
1776   IFS=$as_save_IFS
1777   test -z "$as_dir" && as_dir=.
1778   echo "PATH: $as_dir"
1779 done
1780 IFS=$as_save_IFS
1782 } >&5
1784 cat >&5 <<_ACEOF
1787 ## ----------- ##
1788 ## Core tests. ##
1789 ## ----------- ##
1791 _ACEOF
1794 # Keep a trace of the command line.
1795 # Strip out --no-create and --no-recursion so they do not pile up.
1796 # Strip out --silent because we don't want to record it for future runs.
1797 # Also quote any args containing shell meta-characters.
1798 # Make two passes to allow for proper duplicate-argument suppression.
1799 ac_configure_args=
1800 ac_configure_args0=
1801 ac_configure_args1=
1802 ac_must_keep_next=false
1803 for ac_pass in 1 2
1804 do
1805   for ac_arg
1806   do
1807     case $ac_arg in
1808     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1809     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1810     | -silent | --silent | --silen | --sile | --sil)
1811       continue ;;
1812     *\'*)
1813       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1814     esac
1815     case $ac_pass in
1816     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1817     2)
1818       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1819       if test $ac_must_keep_next = true; then
1820         ac_must_keep_next=false # Got value, back to normal.
1821       else
1822         case $ac_arg in
1823           *=* | --config-cache | -C | -disable-* | --disable-* \
1824           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1825           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1826           | -with-* | --with-* | -without-* | --without-* | --x)
1827             case "$ac_configure_args0 " in
1828               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1829             esac
1830             ;;
1831           -* ) ac_must_keep_next=true ;;
1832         esac
1833       fi
1834       ac_configure_args="$ac_configure_args '$ac_arg'"
1835       ;;
1836     esac
1837   done
1838 done
1839 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1840 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1842 # When interrupted or exit'd, cleanup temporary files, and complete
1843 # config.log.  We remove comments because anyway the quotes in there
1844 # would cause problems or look ugly.
1845 # WARNING: Use '\'' to represent an apostrophe within the trap.
1846 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1847 trap 'exit_status=$?
1848   # Save into config.log some information that might help in debugging.
1849   {
1850     echo
1852     cat <<\_ASBOX
1853 ## ---------------- ##
1854 ## Cache variables. ##
1855 ## ---------------- ##
1856 _ASBOX
1857     echo
1858     # The following way of writing the cache mishandles newlines in values,
1860   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1861     eval ac_val=\$$ac_var
1862     case $ac_val in #(
1863     *${as_nl}*)
1864       case $ac_var in #(
1865       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1866 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1867       esac
1868       case $ac_var in #(
1869       _ | IFS | as_nl) ;; #(
1870       *) $as_unset $ac_var ;;
1871       esac ;;
1872     esac
1873   done
1874   (set) 2>&1 |
1875     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1876     *${as_nl}ac_space=\ *)
1877       sed -n \
1878         "s/'\''/'\''\\\\'\'''\''/g;
1879           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1880       ;; #(
1881     *)
1882       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1883       ;;
1884     esac |
1885     sort
1887     echo
1889     cat <<\_ASBOX
1890 ## ----------------- ##
1891 ## Output variables. ##
1892 ## ----------------- ##
1893 _ASBOX
1894     echo
1895     for ac_var in $ac_subst_vars
1896     do
1897       eval ac_val=\$$ac_var
1898       case $ac_val in
1899       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1900       esac
1901       echo "$ac_var='\''$ac_val'\''"
1902     done | sort
1903     echo
1905     if test -n "$ac_subst_files"; then
1906       cat <<\_ASBOX
1907 ## ------------------- ##
1908 ## File substitutions. ##
1909 ## ------------------- ##
1910 _ASBOX
1911       echo
1912       for ac_var in $ac_subst_files
1913       do
1914         eval ac_val=\$$ac_var
1915         case $ac_val in
1916         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1917         esac
1918         echo "$ac_var='\''$ac_val'\''"
1919       done | sort
1920       echo
1921     fi
1923     if test -s confdefs.h; then
1924       cat <<\_ASBOX
1925 ## ----------- ##
1926 ## confdefs.h. ##
1927 ## ----------- ##
1928 _ASBOX
1929       echo
1930       cat confdefs.h
1931       echo
1932     fi
1933     test "$ac_signal" != 0 &&
1934       echo "$as_me: caught signal $ac_signal"
1935     echo "$as_me: exit $exit_status"
1936   } >&5
1937   rm -f core *.core core.conftest.* &&
1938     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1939     exit $exit_status
1940 ' 0
1941 for ac_signal in 1 2 13 15; do
1942   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1943 done
1944 ac_signal=0
1946 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1947 rm -f -r conftest* confdefs.h
1949 # Predefined preprocessor variables.
1951 cat >>confdefs.h <<_ACEOF
1952 #define PACKAGE_NAME "$PACKAGE_NAME"
1953 _ACEOF
1956 cat >>confdefs.h <<_ACEOF
1957 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1958 _ACEOF
1961 cat >>confdefs.h <<_ACEOF
1962 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1963 _ACEOF
1966 cat >>confdefs.h <<_ACEOF
1967 #define PACKAGE_STRING "$PACKAGE_STRING"
1968 _ACEOF
1971 cat >>confdefs.h <<_ACEOF
1972 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1973 _ACEOF
1976 # Let the site file select an alternate cache file if it wants to.
1977 # Prefer explicitly selected file to automatically selected ones.
1978 if test -n "$CONFIG_SITE"; then
1979   set x "$CONFIG_SITE"
1980 elif test "x$prefix" != xNONE; then
1981   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1982 else
1983   set x "$ac_default_prefix/share/config.site" \
1984         "$ac_default_prefix/etc/config.site"
1985 fi
1986 shift
1987 for ac_site_file
1988 do
1989   if test -r "$ac_site_file"; then
1990     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1991 echo "$as_me: loading site script $ac_site_file" >&6;}
1992     sed 's/^/| /' "$ac_site_file" >&5
1993     . "$ac_site_file"
1994   fi
1995 done
1997 if test -r "$cache_file"; then
1998   # Some versions of bash will fail to source /dev/null (special
1999   # files actually), so we avoid doing that.
2000   if test -f "$cache_file"; then
2001     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2002 echo "$as_me: loading cache $cache_file" >&6;}
2003     case $cache_file in
2004       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2005       *)                      . "./$cache_file";;
2006     esac
2007   fi
2008 else
2009   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2010 echo "$as_me: creating cache $cache_file" >&6;}
2011   >$cache_file
2012 fi
2014 # Check that the precious variables saved in the cache have kept the same
2015 # value.
2016 ac_cache_corrupted=false
2017 for ac_var in $ac_precious_vars; do
2018   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2019   eval ac_new_set=\$ac_env_${ac_var}_set
2020   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2021   eval ac_new_val=\$ac_env_${ac_var}_value
2022   case $ac_old_set,$ac_new_set in
2023     set,)
2024       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2025 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2026       ac_cache_corrupted=: ;;
2027     ,set)
2028       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2029 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2030       ac_cache_corrupted=: ;;
2031     ,);;
2032     *)
2033       if test "x$ac_old_val" != "x$ac_new_val"; then
2034         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2035 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2036         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
2037 echo "$as_me:   former value:  $ac_old_val" >&2;}
2038         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
2039 echo "$as_me:   current value: $ac_new_val" >&2;}
2040         ac_cache_corrupted=:
2041       fi;;
2042   esac
2043   # Pass precious variables to config.status.
2044   if test "$ac_new_set" = set; then
2045     case $ac_new_val in
2046     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2047     *) ac_arg=$ac_var=$ac_new_val ;;
2048     esac
2049     case " $ac_configure_args " in
2050       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2051       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2052     esac
2053   fi
2054 done
2055 if $ac_cache_corrupted; then
2056   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2057 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2058   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2059 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2060    { (exit 1); exit 1; }; }
2061 fi
2087 ac_ext=c
2088 ac_cpp='$CPP $CPPFLAGS'
2089 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2090 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2091 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2095 NUMVERS=1.3005
2098 LIBVERS=4:4:0
2101 ac_aux_dir=
2102 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2103   if test -f "$ac_dir/install-sh"; then
2104     ac_aux_dir=$ac_dir
2105     ac_install_sh="$ac_aux_dir/install-sh -c"
2106     break
2107   elif test -f "$ac_dir/install.sh"; then
2108     ac_aux_dir=$ac_dir
2109     ac_install_sh="$ac_aux_dir/install.sh -c"
2110     break
2111   elif test -f "$ac_dir/shtool"; then
2112     ac_aux_dir=$ac_dir
2113     ac_install_sh="$ac_aux_dir/shtool install -c"
2114     break
2115   fi
2116 done
2117 if test -z "$ac_aux_dir"; then
2118   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2119 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2120    { (exit 1); exit 1; }; }
2121 fi
2123 # These three variables are undocumented and unsupported,
2124 # and are intended to be withdrawn in a future Autoconf release.
2125 # They can cause serious problems if a builder's source tree is in a directory
2126 # whose full name contains unusual characters.
2127 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2128 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2129 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2132 # Make sure we can run config.sub.
2133 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2134   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2135 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2136    { (exit 1); exit 1; }; }
2138 { echo "$as_me:$LINENO: checking build system type" >&5
2139 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2140 if test "${ac_cv_build+set}" = set; then
2141   echo $ECHO_N "(cached) $ECHO_C" >&6
2142 else
2143   ac_build_alias=$build_alias
2144 test "x$ac_build_alias" = x &&
2145   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2146 test "x$ac_build_alias" = x &&
2147   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2148 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2149    { (exit 1); exit 1; }; }
2150 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2151   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2152 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2153    { (exit 1); exit 1; }; }
2155 fi
2156 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2157 echo "${ECHO_T}$ac_cv_build" >&6; }
2158 case $ac_cv_build in
2159 *-*-*) ;;
2160 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2161 echo "$as_me: error: invalid value of canonical build" >&2;}
2162    { (exit 1); exit 1; }; };;
2163 esac
2164 build=$ac_cv_build
2165 ac_save_IFS=$IFS; IFS='-'
2166 set x $ac_cv_build
2167 shift
2168 build_cpu=$1
2169 build_vendor=$2
2170 shift; shift
2171 # Remember, the first character of IFS is used to create $*,
2172 # except with old shells:
2173 build_os=$*
2174 IFS=$ac_save_IFS
2175 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2178 { echo "$as_me:$LINENO: checking host system type" >&5
2179 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2180 if test "${ac_cv_host+set}" = set; then
2181   echo $ECHO_N "(cached) $ECHO_C" >&6
2182 else
2183   if test "x$host_alias" = x; then
2184   ac_cv_host=$ac_cv_build
2185 else
2186   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2187     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2188 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2189    { (exit 1); exit 1; }; }
2190 fi
2192 fi
2193 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2194 echo "${ECHO_T}$ac_cv_host" >&6; }
2195 case $ac_cv_host in
2196 *-*-*) ;;
2197 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2198 echo "$as_me: error: invalid value of canonical host" >&2;}
2199    { (exit 1); exit 1; }; };;
2200 esac
2201 host=$ac_cv_host
2202 ac_save_IFS=$IFS; IFS='-'
2203 set x $ac_cv_host
2204 shift
2205 host_cpu=$1
2206 host_vendor=$2
2207 shift; shift
2208 # Remember, the first character of IFS is used to create $*,
2209 # except with old shells:
2210 host_os=$*
2211 IFS=$ac_save_IFS
2212 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2215 { echo "$as_me:$LINENO: checking target system type" >&5
2216 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2217 if test "${ac_cv_target+set}" = set; then
2218   echo $ECHO_N "(cached) $ECHO_C" >&6
2219 else
2220   if test "x$target_alias" = x; then
2221   ac_cv_target=$ac_cv_host
2222 else
2223   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2224     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2225 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2226    { (exit 1); exit 1; }; }
2227 fi
2229 fi
2230 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2231 echo "${ECHO_T}$ac_cv_target" >&6; }
2232 case $ac_cv_target in
2233 *-*-*) ;;
2234 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2235 echo "$as_me: error: invalid value of canonical target" >&2;}
2236    { (exit 1); exit 1; }; };;
2237 esac
2238 target=$ac_cv_target
2239 ac_save_IFS=$IFS; IFS='-'
2240 set x $ac_cv_target
2241 shift
2242 target_cpu=$1
2243 target_vendor=$2
2244 shift; shift
2245 # Remember, the first character of IFS is used to create $*,
2246 # except with old shells:
2247 target_os=$*
2248 IFS=$ac_save_IFS
2249 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2252 # The aliases save the names the user supplied, while $host etc.
2253 # will get canonicalized.
2254 test -n "$target_alias" &&
2255   test "$program_prefix$program_suffix$program_transform_name" = \
2256     NONENONEs,x,x, &&
2257   program_prefix=${target_alias}-
2258 am__api_version="1.9"
2259 # Find a good install program.  We prefer a C program (faster),
2260 # so one script is as good as another.  But avoid the broken or
2261 # incompatible versions:
2262 # SysV /etc/install, /usr/sbin/install
2263 # SunOS /usr/etc/install
2264 # IRIX /sbin/install
2265 # AIX /bin/install
2266 # AmigaOS /C/install, which installs bootblocks on floppy discs
2267 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2268 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2269 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2270 # OS/2's system install, which has a completely different semantic
2271 # ./install, which can be erroneously created by make from ./install.sh.
2272 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2273 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2274 if test -z "$INSTALL"; then
2275 if test "${ac_cv_path_install+set}" = set; then
2276   echo $ECHO_N "(cached) $ECHO_C" >&6
2277 else
2278   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2279 for as_dir in $PATH
2280 do
2281   IFS=$as_save_IFS
2282   test -z "$as_dir" && as_dir=.
2283   # Account for people who put trailing slashes in PATH elements.
2284 case $as_dir/ in
2285   ./ | .// | /cC/* | \
2286   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2287   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2288   /usr/ucb/* ) ;;
2289   *)
2290     # OSF1 and SCO ODT 3.0 have their own names for install.
2291     # Don't use installbsd from OSF since it installs stuff as root
2292     # by default.
2293     for ac_prog in ginstall scoinst install; do
2294       for ac_exec_ext in '' $ac_executable_extensions; do
2295         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2296           if test $ac_prog = install &&
2297             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2298             # AIX install.  It has an incompatible calling convention.
2299             :
2300           elif test $ac_prog = install &&
2301             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2302             # program-specific install script used by HP pwplus--don't use.
2303             :
2304           else
2305             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2306             break 3
2307           fi
2308         fi
2309       done
2310     done
2311     ;;
2312 esac
2313 done
2314 IFS=$as_save_IFS
2317 fi
2318   if test "${ac_cv_path_install+set}" = set; then
2319     INSTALL=$ac_cv_path_install
2320   else
2321     # As a last resort, use the slow shell script.  Don't cache a
2322     # value for INSTALL within a source directory, because that will
2323     # break other packages using the cache if that directory is
2324     # removed, or if the value is a relative name.
2325     INSTALL=$ac_install_sh
2326   fi
2327 fi
2328 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2329 echo "${ECHO_T}$INSTALL" >&6; }
2331 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2332 # It thinks the first close brace ends the variable substitution.
2333 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2335 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2337 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2339 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2340 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2341 # Just in case
2342 sleep 1
2343 echo timestamp > conftest.file
2344 # Do `set' in a subshell so we don't clobber the current shell's
2345 # arguments.  Must try -L first in case configure is actually a
2346 # symlink; some systems play weird games with the mod time of symlinks
2347 # (eg FreeBSD returns the mod time of the symlink's containing
2348 # directory).
2349 if (
2350    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2351    if test "$*" = "X"; then
2352       # -L didn't work.
2353       set X `ls -t $srcdir/configure conftest.file`
2354    fi
2355    rm -f conftest.file
2356    if test "$*" != "X $srcdir/configure conftest.file" \
2357       && test "$*" != "X conftest.file $srcdir/configure"; then
2359       # If neither matched, then we have a broken ls.  This can happen
2360       # if, for instance, CONFIG_SHELL is bash and it inherits a
2361       # broken ls alias from the environment.  This has actually
2362       # happened.  Such a system could not be considered "sane".
2363       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2364 alias in your environment" >&5
2365 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2366 alias in your environment" >&2;}
2367    { (exit 1); exit 1; }; }
2368    fi
2370    test "$2" = conftest.file
2371    )
2372 then
2373    # Ok.
2374    :
2375 else
2376    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2377 Check your system clock" >&5
2378 echo "$as_me: error: newly created file is older than distributed files!
2379 Check your system clock" >&2;}
2380    { (exit 1); exit 1; }; }
2381 fi
2382 { echo "$as_me:$LINENO: result: yes" >&5
2383 echo "${ECHO_T}yes" >&6; }
2384 test "$program_prefix" != NONE &&
2385   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2386 # Use a double $ so make ignores it.
2387 test "$program_suffix" != NONE &&
2388   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2389 # Double any \ or $.  echo might interpret backslashes.
2390 # By default was `s,x,x', remove it if useless.
2391 cat <<\_ACEOF >conftest.sed
2392 s/[\\$]/&&/g;s/;s,x,x,$//
2393 _ACEOF
2394 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2395 rm -f conftest.sed
2397 # expand $ac_aux_dir to an absolute path
2398 am_aux_dir=`cd $ac_aux_dir && pwd`
2400 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2401 # Use eval to expand $SHELL
2402 if eval "$MISSING --run true"; then
2403   am_missing_run="$MISSING --run "
2404 else
2405   am_missing_run=
2406   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2407 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2408 fi
2410 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2411   # We used to keeping the `.' as first argument, in order to
2412   # allow $(mkdir_p) to be used without argument.  As in
2413   #   $(mkdir_p) $(somedir)
2414   # where $(somedir) is conditionally defined.  However this is wrong
2415   # for two reasons:
2416   #  1. if the package is installed by a user who cannot write `.'
2417   #     make install will fail,
2418   #  2. the above comment should most certainly read
2419   #     $(mkdir_p) $(DESTDIR)$(somedir)
2420   #     so it does not work when $(somedir) is undefined and
2421   #     $(DESTDIR) is not.
2422   #  To support the latter case, we have to write
2423   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2424   #  so the `.' trick is pointless.
2425   mkdir_p='mkdir -p --'
2426 else
2427   # On NextStep and OpenStep, the `mkdir' command does not
2428   # recognize any option.  It will interpret all options as
2429   # directories to create, and then abort because `.' already
2430   # exists.
2431   for d in ./-p ./--version;
2432   do
2433     test -d $d && rmdir $d
2434   done
2435   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2436   if test -f "$ac_aux_dir/mkinstalldirs"; then
2437     mkdir_p='$(mkinstalldirs)'
2438   else
2439     mkdir_p='$(install_sh) -d'
2440   fi
2441 fi
2443 for ac_prog in gawk mawk nawk awk
2444 do
2445   # Extract the first word of "$ac_prog", so it can be a program name with args.
2446 set dummy $ac_prog; ac_word=$2
2447 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2449 if test "${ac_cv_prog_AWK+set}" = set; then
2450   echo $ECHO_N "(cached) $ECHO_C" >&6
2451 else
2452   if test -n "$AWK"; then
2453   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2454 else
2455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2456 for as_dir in $PATH
2457 do
2458   IFS=$as_save_IFS
2459   test -z "$as_dir" && as_dir=.
2460   for ac_exec_ext in '' $ac_executable_extensions; do
2461   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2462     ac_cv_prog_AWK="$ac_prog"
2463     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2464     break 2
2465   fi
2466 done
2467 done
2468 IFS=$as_save_IFS
2470 fi
2471 fi
2472 AWK=$ac_cv_prog_AWK
2473 if test -n "$AWK"; then
2474   { echo "$as_me:$LINENO: result: $AWK" >&5
2475 echo "${ECHO_T}$AWK" >&6; }
2476 else
2477   { echo "$as_me:$LINENO: result: no" >&5
2478 echo "${ECHO_T}no" >&6; }
2479 fi
2482   test -n "$AWK" && break
2483 done
2485 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2486 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2487 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2488 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2489   echo $ECHO_N "(cached) $ECHO_C" >&6
2490 else
2491   cat >conftest.make <<\_ACEOF
2492 SHELL = /bin/sh
2493 all:
2494         @echo '@@@%%%=$(MAKE)=@@@%%%'
2495 _ACEOF
2496 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2497 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2498   *@@@%%%=?*=@@@%%%*)
2499     eval ac_cv_prog_make_${ac_make}_set=yes;;
2500   *)
2501     eval ac_cv_prog_make_${ac_make}_set=no;;
2502 esac
2503 rm -f conftest.make
2504 fi
2505 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2506   { echo "$as_me:$LINENO: result: yes" >&5
2507 echo "${ECHO_T}yes" >&6; }
2508   SET_MAKE=
2509 else
2510   { echo "$as_me:$LINENO: result: no" >&5
2511 echo "${ECHO_T}no" >&6; }
2512   SET_MAKE="MAKE=${MAKE-make}"
2513 fi
2515 rm -rf .tst 2>/dev/null
2516 mkdir .tst 2>/dev/null
2517 if test -d .tst; then
2518   am__leading_dot=.
2519 else
2520   am__leading_dot=_
2521 fi
2522 rmdir .tst 2>/dev/null
2524 # test to see if srcdir already configured
2525 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2526    test -f $srcdir/config.status; then
2527   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2528 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2529    { (exit 1); exit 1; }; }
2530 fi
2532 # test whether we have cygpath
2533 if test -z "$CYGPATH_W"; then
2534   if (cygpath --version) >/dev/null 2>/dev/null; then
2535     CYGPATH_W='cygpath -w'
2536   else
2537     CYGPATH_W=echo
2538   fi
2539 fi
2542 # Define the identity of the package.
2543  PACKAGE='rrdtool'
2544  VERSION='1.3.5'
2547 cat >>confdefs.h <<_ACEOF
2548 #define PACKAGE "$PACKAGE"
2549 _ACEOF
2552 cat >>confdefs.h <<_ACEOF
2553 #define VERSION "$VERSION"
2554 _ACEOF
2556 # Some tools Automake needs.
2558 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2561 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2564 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2567 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2570 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2572 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2574 # Installed binaries are usually stripped using `strip' when the user
2575 # run `make install-strip'.  However `strip' might not be the right
2576 # tool to use in cross-compilation environments, therefore Automake
2577 # will honor the `STRIP' environment variable to overrule this program.
2578 if test "$cross_compiling" != no; then
2579   if test -n "$ac_tool_prefix"; then
2580   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2581 set dummy ${ac_tool_prefix}strip; ac_word=$2
2582 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2584 if test "${ac_cv_prog_STRIP+set}" = set; then
2585   echo $ECHO_N "(cached) $ECHO_C" >&6
2586 else
2587   if test -n "$STRIP"; then
2588   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2589 else
2590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2591 for as_dir in $PATH
2592 do
2593   IFS=$as_save_IFS
2594   test -z "$as_dir" && as_dir=.
2595   for ac_exec_ext in '' $ac_executable_extensions; do
2596   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2597     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2598     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2599     break 2
2600   fi
2601 done
2602 done
2603 IFS=$as_save_IFS
2605 fi
2606 fi
2607 STRIP=$ac_cv_prog_STRIP
2608 if test -n "$STRIP"; then
2609   { echo "$as_me:$LINENO: result: $STRIP" >&5
2610 echo "${ECHO_T}$STRIP" >&6; }
2611 else
2612   { echo "$as_me:$LINENO: result: no" >&5
2613 echo "${ECHO_T}no" >&6; }
2614 fi
2617 fi
2618 if test -z "$ac_cv_prog_STRIP"; then
2619   ac_ct_STRIP=$STRIP
2620   # Extract the first word of "strip", so it can be a program name with args.
2621 set dummy strip; ac_word=$2
2622 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2624 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2625   echo $ECHO_N "(cached) $ECHO_C" >&6
2626 else
2627   if test -n "$ac_ct_STRIP"; then
2628   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2629 else
2630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2631 for as_dir in $PATH
2632 do
2633   IFS=$as_save_IFS
2634   test -z "$as_dir" && as_dir=.
2635   for ac_exec_ext in '' $ac_executable_extensions; do
2636   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2637     ac_cv_prog_ac_ct_STRIP="strip"
2638     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2639     break 2
2640   fi
2641 done
2642 done
2643 IFS=$as_save_IFS
2645 fi
2646 fi
2647 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2648 if test -n "$ac_ct_STRIP"; then
2649   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2650 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2651 else
2652   { echo "$as_me:$LINENO: result: no" >&5
2653 echo "${ECHO_T}no" >&6; }
2654 fi
2656   if test "x$ac_ct_STRIP" = x; then
2657     STRIP=":"
2658   else
2659     case $cross_compiling:$ac_tool_warned in
2660 yes:)
2661 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2662 whose name does not start with the host triplet.  If you think this
2663 configuration is useful to you, please write to autoconf@gnu.org." >&5
2664 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2665 whose name does not start with the host triplet.  If you think this
2666 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2667 ac_tool_warned=yes ;;
2668 esac
2669     STRIP=$ac_ct_STRIP
2670   fi
2671 else
2672   STRIP="$ac_cv_prog_STRIP"
2673 fi
2675 fi
2676 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2678 # We need awk for the "check" target.  The system "awk" is bad on
2679 # some platforms.
2680 # Always define AMTAR for backward compatibility.
2682 AMTAR=${AMTAR-"${am_missing_run}tar"}
2684 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2690 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2691 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2692     # Check whether --enable-maintainer-mode was given.
2693 if test "${enable_maintainer_mode+set}" = set; then
2694   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2695 else
2696   USE_MAINTAINER_MODE=no
2697 fi
2699   { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2700 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2703 if test $USE_MAINTAINER_MODE = yes; then
2704   MAINTAINER_MODE_TRUE=
2705   MAINTAINER_MODE_FALSE='#'
2706 else
2707   MAINTAINER_MODE_TRUE='#'
2708   MAINTAINER_MODE_FALSE=
2709 fi
2711   MAINT=$MAINTAINER_MODE_TRUE
2715 ac_config_headers="$ac_config_headers rrd_config.h"
2737 cat >>confdefs.h <<_ACEOF
2738 #define RRDGRAPH_YLEGEND_ANGLE ${RRDGRAPH_YLEGEND_ANGLE:-90.0}
2739 _ACEOF
2742 # Check whether --enable-rrdcgi was given.
2743 if test "${enable_rrdcgi+set}" = set; then
2744   enableval=$enable_rrdcgi;
2745 else
2746   enable_rrdcgi=yes
2747 fi
2751 # Check whether --with-rrd-default-font was given.
2752 if test "${with_rrd_default_font+set}" = set; then
2753   withval=$with_rrd_default_font; RRD_DEFAULT_FONT=$withval
2754 else
2756   if test -d ${WINDIR:-nodir}/cour.ttf ; then
2757         RRD_DEFAULT_FONT=`cd $WINDIR;pwd`/cour.ttf
2758   else
2759         RRD_DEFAULT_FONT='"DejaVu Sans Mono,Bitstream Vera Sans Mono,monospace,Courier"'
2760   fi
2762 fi
2765 # Check whether --enable-mmap was given.
2766 if test "${enable_mmap+set}" = set; then
2767   enableval=$enable_mmap;
2768 else
2769   enable_mmap=yes
2770 fi
2773 # Check whether --enable-pthread was given.
2774 if test "${enable_pthread+set}" = set; then
2775   enableval=$enable_pthread;
2776 else
2777   enable_pthread=yes
2778 fi
2781 # Check whether --enable-static-programs was given.
2782 if test "${enable_static_programs+set}" = set; then
2783   enableval=$enable_static_programs; case "${enableval}" in
2784        yes) staticprogs=yes ;;
2785        no)  staticprogs=no ;;
2786        *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-static-programs" >&5
2787 echo "$as_me: error: bad value ${enableval} for --enable-static-programs" >&2;}
2788    { (exit 1); exit 1; }; } ;;
2789      esac
2790 else
2791   staticprogs=no
2792 fi
2796 if test "x$staticprogs" = "xyes"; then
2797   STATIC_PROGRAMS_TRUE=
2798   STATIC_PROGRAMS_FALSE='#'
2799 else
2800   STATIC_PROGRAMS_TRUE='#'
2801   STATIC_PROGRAMS_FALSE=
2802 fi
2807 case $TERM in
2808        #   for the most important terminal types we directly know the sequences
2809        xterm|xterm*|vt220|vt220*)
2810                T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
2811                T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
2812        ;;
2813        vt100|vt100*|cygwin)
2814                T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
2815                T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
2816        ;;
2817        *)
2818                T_MD=''
2819                T_ME=''
2820        ;;
2821 esac
2822   { echo "$as_me:$LINENO: result: " >&5
2823 echo "${ECHO_T}" >&6; }
2824   { echo "$as_me:$LINENO: result: ${T_MD}Audit Compilation Environment${T_ME}" >&5
2825 echo "${ECHO_T}${T_MD}Audit Compilation Environment${T_ME}" >&6; }
2829 ac_ext=c
2830 ac_cpp='$CPP $CPPFLAGS'
2831 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2832 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2833 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2834 if test -n "$ac_tool_prefix"; then
2835   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2836 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2837 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2838 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2839 if test "${ac_cv_prog_CC+set}" = set; then
2840   echo $ECHO_N "(cached) $ECHO_C" >&6
2841 else
2842   if test -n "$CC"; then
2843   ac_cv_prog_CC="$CC" # Let the user override the test.
2844 else
2845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2846 for as_dir in $PATH
2847 do
2848   IFS=$as_save_IFS
2849   test -z "$as_dir" && as_dir=.
2850   for ac_exec_ext in '' $ac_executable_extensions; do
2851   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2852     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2853     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2854     break 2
2855   fi
2856 done
2857 done
2858 IFS=$as_save_IFS
2860 fi
2861 fi
2862 CC=$ac_cv_prog_CC
2863 if test -n "$CC"; then
2864   { echo "$as_me:$LINENO: result: $CC" >&5
2865 echo "${ECHO_T}$CC" >&6; }
2866 else
2867   { echo "$as_me:$LINENO: result: no" >&5
2868 echo "${ECHO_T}no" >&6; }
2869 fi
2872 fi
2873 if test -z "$ac_cv_prog_CC"; then
2874   ac_ct_CC=$CC
2875   # Extract the first word of "gcc", so it can be a program name with args.
2876 set dummy gcc; ac_word=$2
2877 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2879 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2880   echo $ECHO_N "(cached) $ECHO_C" >&6
2881 else
2882   if test -n "$ac_ct_CC"; then
2883   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2884 else
2885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2886 for as_dir in $PATH
2887 do
2888   IFS=$as_save_IFS
2889   test -z "$as_dir" && as_dir=.
2890   for ac_exec_ext in '' $ac_executable_extensions; do
2891   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2892     ac_cv_prog_ac_ct_CC="gcc"
2893     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2894     break 2
2895   fi
2896 done
2897 done
2898 IFS=$as_save_IFS
2900 fi
2901 fi
2902 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2903 if test -n "$ac_ct_CC"; then
2904   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2905 echo "${ECHO_T}$ac_ct_CC" >&6; }
2906 else
2907   { echo "$as_me:$LINENO: result: no" >&5
2908 echo "${ECHO_T}no" >&6; }
2909 fi
2911   if test "x$ac_ct_CC" = x; then
2912     CC=""
2913   else
2914     case $cross_compiling:$ac_tool_warned in
2915 yes:)
2916 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2917 whose name does not start with the host triplet.  If you think this
2918 configuration is useful to you, please write to autoconf@gnu.org." >&5
2919 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2920 whose name does not start with the host triplet.  If you think this
2921 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2922 ac_tool_warned=yes ;;
2923 esac
2924     CC=$ac_ct_CC
2925   fi
2926 else
2927   CC="$ac_cv_prog_CC"
2928 fi
2930 if test -z "$CC"; then
2931           if test -n "$ac_tool_prefix"; then
2932     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2933 set dummy ${ac_tool_prefix}cc; ac_word=$2
2934 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2935 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2936 if test "${ac_cv_prog_CC+set}" = set; then
2937   echo $ECHO_N "(cached) $ECHO_C" >&6
2938 else
2939   if test -n "$CC"; then
2940   ac_cv_prog_CC="$CC" # Let the user override the test.
2941 else
2942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2943 for as_dir in $PATH
2944 do
2945   IFS=$as_save_IFS
2946   test -z "$as_dir" && as_dir=.
2947   for ac_exec_ext in '' $ac_executable_extensions; do
2948   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2949     ac_cv_prog_CC="${ac_tool_prefix}cc"
2950     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2951     break 2
2952   fi
2953 done
2954 done
2955 IFS=$as_save_IFS
2957 fi
2958 fi
2959 CC=$ac_cv_prog_CC
2960 if test -n "$CC"; then
2961   { echo "$as_me:$LINENO: result: $CC" >&5
2962 echo "${ECHO_T}$CC" >&6; }
2963 else
2964   { echo "$as_me:$LINENO: result: no" >&5
2965 echo "${ECHO_T}no" >&6; }
2966 fi
2969   fi
2970 fi
2971 if test -z "$CC"; then
2972   # Extract the first word of "cc", so it can be a program name with args.
2973 set dummy cc; ac_word=$2
2974 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2975 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2976 if test "${ac_cv_prog_CC+set}" = set; then
2977   echo $ECHO_N "(cached) $ECHO_C" >&6
2978 else
2979   if test -n "$CC"; then
2980   ac_cv_prog_CC="$CC" # Let the user override the test.
2981 else
2982   ac_prog_rejected=no
2983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2984 for as_dir in $PATH
2985 do
2986   IFS=$as_save_IFS
2987   test -z "$as_dir" && as_dir=.
2988   for ac_exec_ext in '' $ac_executable_extensions; do
2989   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2990     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2991        ac_prog_rejected=yes
2992        continue
2993      fi
2994     ac_cv_prog_CC="cc"
2995     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2996     break 2
2997   fi
2998 done
2999 done
3000 IFS=$as_save_IFS
3002 if test $ac_prog_rejected = yes; then
3003   # We found a bogon in the path, so make sure we never use it.
3004   set dummy $ac_cv_prog_CC
3005   shift
3006   if test $# != 0; then
3007     # We chose a different compiler from the bogus one.
3008     # However, it has the same basename, so the bogon will be chosen
3009     # first if we set CC to just the basename; use the full file name.
3010     shift
3011     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3012   fi
3013 fi
3014 fi
3015 fi
3016 CC=$ac_cv_prog_CC
3017 if test -n "$CC"; then
3018   { echo "$as_me:$LINENO: result: $CC" >&5
3019 echo "${ECHO_T}$CC" >&6; }
3020 else
3021   { echo "$as_me:$LINENO: result: no" >&5
3022 echo "${ECHO_T}no" >&6; }
3023 fi
3026 fi
3027 if test -z "$CC"; then
3028   if test -n "$ac_tool_prefix"; then
3029   for ac_prog in cl.exe
3030   do
3031     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3032 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3033 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3034 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3035 if test "${ac_cv_prog_CC+set}" = set; then
3036   echo $ECHO_N "(cached) $ECHO_C" >&6
3037 else
3038   if test -n "$CC"; then
3039   ac_cv_prog_CC="$CC" # Let the user override the test.
3040 else
3041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3042 for as_dir in $PATH
3043 do
3044   IFS=$as_save_IFS
3045   test -z "$as_dir" && as_dir=.
3046   for ac_exec_ext in '' $ac_executable_extensions; do
3047   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3048     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3049     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3050     break 2
3051   fi
3052 done
3053 done
3054 IFS=$as_save_IFS
3056 fi
3057 fi
3058 CC=$ac_cv_prog_CC
3059 if test -n "$CC"; then
3060   { echo "$as_me:$LINENO: result: $CC" >&5
3061 echo "${ECHO_T}$CC" >&6; }
3062 else
3063   { echo "$as_me:$LINENO: result: no" >&5
3064 echo "${ECHO_T}no" >&6; }
3065 fi
3068     test -n "$CC" && break
3069   done
3070 fi
3071 if test -z "$CC"; then
3072   ac_ct_CC=$CC
3073   for ac_prog in cl.exe
3074 do
3075   # Extract the first word of "$ac_prog", so it can be a program name with args.
3076 set dummy $ac_prog; ac_word=$2
3077 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3078 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3079 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3080   echo $ECHO_N "(cached) $ECHO_C" >&6
3081 else
3082   if test -n "$ac_ct_CC"; then
3083   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3084 else
3085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3086 for as_dir in $PATH
3087 do
3088   IFS=$as_save_IFS
3089   test -z "$as_dir" && as_dir=.
3090   for ac_exec_ext in '' $ac_executable_extensions; do
3091   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3092     ac_cv_prog_ac_ct_CC="$ac_prog"
3093     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3094     break 2
3095   fi
3096 done
3097 done
3098 IFS=$as_save_IFS
3100 fi
3101 fi
3102 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3103 if test -n "$ac_ct_CC"; then
3104   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3105 echo "${ECHO_T}$ac_ct_CC" >&6; }
3106 else
3107   { echo "$as_me:$LINENO: result: no" >&5
3108 echo "${ECHO_T}no" >&6; }
3109 fi
3112   test -n "$ac_ct_CC" && break
3113 done
3115   if test "x$ac_ct_CC" = x; then
3116     CC=""
3117   else
3118     case $cross_compiling:$ac_tool_warned in
3119 yes:)
3120 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3121 whose name does not start with the host triplet.  If you think this
3122 configuration is useful to you, please write to autoconf@gnu.org." >&5
3123 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3124 whose name does not start with the host triplet.  If you think this
3125 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3126 ac_tool_warned=yes ;;
3127 esac
3128     CC=$ac_ct_CC
3129   fi
3130 fi
3132 fi
3135 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3136 See \`config.log' for more details." >&5
3137 echo "$as_me: error: no acceptable C compiler found in \$PATH
3138 See \`config.log' for more details." >&2;}
3139    { (exit 1); exit 1; }; }
3141 # Provide some information about the compiler.
3142 echo "$as_me:$LINENO: checking for C compiler version" >&5
3143 ac_compiler=`set X $ac_compile; echo $2`
3144 { (ac_try="$ac_compiler --version >&5"
3145 case "(($ac_try" in
3146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3147   *) ac_try_echo=$ac_try;;
3148 esac
3149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3150   (eval "$ac_compiler --version >&5") 2>&5
3151   ac_status=$?
3152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3153   (exit $ac_status); }
3154 { (ac_try="$ac_compiler -v >&5"
3155 case "(($ac_try" in
3156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3157   *) ac_try_echo=$ac_try;;
3158 esac
3159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3160   (eval "$ac_compiler -v >&5") 2>&5
3161   ac_status=$?
3162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3163   (exit $ac_status); }
3164 { (ac_try="$ac_compiler -V >&5"
3165 case "(($ac_try" in
3166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3167   *) ac_try_echo=$ac_try;;
3168 esac
3169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3170   (eval "$ac_compiler -V >&5") 2>&5
3171   ac_status=$?
3172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3173   (exit $ac_status); }
3175 cat >conftest.$ac_ext <<_ACEOF
3176 /* confdefs.h.  */
3177 _ACEOF
3178 cat confdefs.h >>conftest.$ac_ext
3179 cat >>conftest.$ac_ext <<_ACEOF
3180 /* end confdefs.h.  */
3182 int
3183 main ()
3186   ;
3187   return 0;
3189 _ACEOF
3190 ac_clean_files_save=$ac_clean_files
3191 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3192 # Try to create an executable without -o first, disregard a.out.
3193 # It will help us diagnose broken compilers, and finding out an intuition
3194 # of exeext.
3195 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3196 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3197 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3199 # List of possible output files, starting from the most likely.
3200 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3201 # only as a last resort.  b.out is created by i960 compilers.
3202 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3204 # The IRIX 6 linker writes into existing files which may not be
3205 # executable, retaining their permissions.  Remove them first so a
3206 # subsequent execution test works.
3207 ac_rmfiles=
3208 for ac_file in $ac_files
3209 do
3210   case $ac_file in
3211     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3212     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3213   esac
3214 done
3215 rm -f $ac_rmfiles
3217 if { (ac_try="$ac_link_default"
3218 case "(($ac_try" in
3219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3220   *) ac_try_echo=$ac_try;;
3221 esac
3222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3223   (eval "$ac_link_default") 2>&5
3224   ac_status=$?
3225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3226   (exit $ac_status); }; then
3227   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3228 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3229 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3230 # so that the user can short-circuit this test for compilers unknown to
3231 # Autoconf.
3232 for ac_file in $ac_files ''
3233 do
3234   test -f "$ac_file" || continue
3235   case $ac_file in
3236     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3237         ;;
3238     [ab].out )
3239         # We found the default executable, but exeext='' is most
3240         # certainly right.
3241         break;;
3242     *.* )
3243         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3244         then :; else
3245            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3246         fi
3247         # We set ac_cv_exeext here because the later test for it is not
3248         # safe: cross compilers may not add the suffix if given an `-o'
3249         # argument, so we may need to know it at that point already.
3250         # Even if this section looks crufty: it has the advantage of
3251         # actually working.
3252         break;;
3253     * )
3254         break;;
3255   esac
3256 done
3257 test "$ac_cv_exeext" = no && ac_cv_exeext=
3259 else
3260   ac_file=''
3261 fi
3263 { echo "$as_me:$LINENO: result: $ac_file" >&5
3264 echo "${ECHO_T}$ac_file" >&6; }
3265 if test -z "$ac_file"; then
3266   echo "$as_me: failed program was:" >&5
3267 sed 's/^/| /' conftest.$ac_ext >&5
3269 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3270 See \`config.log' for more details." >&5
3271 echo "$as_me: error: C compiler cannot create executables
3272 See \`config.log' for more details." >&2;}
3273    { (exit 77); exit 77; }; }
3274 fi
3276 ac_exeext=$ac_cv_exeext
3278 # Check that the compiler produces executables we can run.  If not, either
3279 # the compiler is broken, or we cross compile.
3280 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3281 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3282 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3283 # If not cross compiling, check that we can run a simple program.
3284 if test "$cross_compiling" != yes; then
3285   if { ac_try='./$ac_file'
3286   { (case "(($ac_try" in
3287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3288   *) ac_try_echo=$ac_try;;
3289 esac
3290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3291   (eval "$ac_try") 2>&5
3292   ac_status=$?
3293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3294   (exit $ac_status); }; }; then
3295     cross_compiling=no
3296   else
3297     if test "$cross_compiling" = maybe; then
3298         cross_compiling=yes
3299     else
3300         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3301 If you meant to cross compile, use \`--host'.
3302 See \`config.log' for more details." >&5
3303 echo "$as_me: error: cannot run C compiled programs.
3304 If you meant to cross compile, use \`--host'.
3305 See \`config.log' for more details." >&2;}
3306    { (exit 1); exit 1; }; }
3307     fi
3308   fi
3309 fi
3310 { echo "$as_me:$LINENO: result: yes" >&5
3311 echo "${ECHO_T}yes" >&6; }
3313 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3314 ac_clean_files=$ac_clean_files_save
3315 # Check that the compiler produces executables we can run.  If not, either
3316 # the compiler is broken, or we cross compile.
3317 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3318 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3319 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3320 echo "${ECHO_T}$cross_compiling" >&6; }
3322 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3323 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3324 if { (ac_try="$ac_link"
3325 case "(($ac_try" in
3326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3327   *) ac_try_echo=$ac_try;;
3328 esac
3329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3330   (eval "$ac_link") 2>&5
3331   ac_status=$?
3332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3333   (exit $ac_status); }; then
3334   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3335 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3336 # work properly (i.e., refer to `conftest.exe'), while it won't with
3337 # `rm'.
3338 for ac_file in conftest.exe conftest conftest.*; do
3339   test -f "$ac_file" || continue
3340   case $ac_file in
3341     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3342     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3343           break;;
3344     * ) break;;
3345   esac
3346 done
3347 else
3348   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3349 See \`config.log' for more details." >&5
3350 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3351 See \`config.log' for more details." >&2;}
3352    { (exit 1); exit 1; }; }
3353 fi
3355 rm -f conftest$ac_cv_exeext
3356 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3357 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3359 rm -f conftest.$ac_ext
3360 EXEEXT=$ac_cv_exeext
3361 ac_exeext=$EXEEXT
3362 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3363 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3364 if test "${ac_cv_objext+set}" = set; then
3365   echo $ECHO_N "(cached) $ECHO_C" >&6
3366 else
3367   cat >conftest.$ac_ext <<_ACEOF
3368 /* confdefs.h.  */
3369 _ACEOF
3370 cat confdefs.h >>conftest.$ac_ext
3371 cat >>conftest.$ac_ext <<_ACEOF
3372 /* end confdefs.h.  */
3374 int
3375 main ()
3378   ;
3379   return 0;
3381 _ACEOF
3382 rm -f conftest.o conftest.obj
3383 if { (ac_try="$ac_compile"
3384 case "(($ac_try" in
3385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3386   *) ac_try_echo=$ac_try;;
3387 esac
3388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3389   (eval "$ac_compile") 2>&5
3390   ac_status=$?
3391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3392   (exit $ac_status); }; then
3393   for ac_file in conftest.o conftest.obj conftest.*; do
3394   test -f "$ac_file" || continue;
3395   case $ac_file in
3396     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3397     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3398        break;;
3399   esac
3400 done
3401 else
3402   echo "$as_me: failed program was:" >&5
3403 sed 's/^/| /' conftest.$ac_ext >&5
3405 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3406 See \`config.log' for more details." >&5
3407 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3408 See \`config.log' for more details." >&2;}
3409    { (exit 1); exit 1; }; }
3410 fi
3412 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3413 fi
3414 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3415 echo "${ECHO_T}$ac_cv_objext" >&6; }
3416 OBJEXT=$ac_cv_objext
3417 ac_objext=$OBJEXT
3418 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3419 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3420 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3421   echo $ECHO_N "(cached) $ECHO_C" >&6
3422 else
3423   cat >conftest.$ac_ext <<_ACEOF
3424 /* confdefs.h.  */
3425 _ACEOF
3426 cat confdefs.h >>conftest.$ac_ext
3427 cat >>conftest.$ac_ext <<_ACEOF
3428 /* end confdefs.h.  */
3430 int
3431 main ()
3433 #ifndef __GNUC__
3434        choke me
3435 #endif
3437   ;
3438   return 0;
3440 _ACEOF
3441 rm -f conftest.$ac_objext
3442 if { (ac_try="$ac_compile"
3443 case "(($ac_try" in
3444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3445   *) ac_try_echo=$ac_try;;
3446 esac
3447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3448   (eval "$ac_compile") 2>conftest.er1
3449   ac_status=$?
3450   grep -v '^ *+' conftest.er1 >conftest.err
3451   rm -f conftest.er1
3452   cat conftest.err >&5
3453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3454   (exit $ac_status); } && {
3455          test -z "$ac_c_werror_flag" ||
3456          test ! -s conftest.err
3457        } && test -s conftest.$ac_objext; then
3458   ac_compiler_gnu=yes
3459 else
3460   echo "$as_me: failed program was:" >&5
3461 sed 's/^/| /' conftest.$ac_ext >&5
3463         ac_compiler_gnu=no
3464 fi
3466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3467 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3469 fi
3470 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3471 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3472 GCC=`test $ac_compiler_gnu = yes && echo yes`
3473 ac_test_CFLAGS=${CFLAGS+set}
3474 ac_save_CFLAGS=$CFLAGS
3475 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3476 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3477 if test "${ac_cv_prog_cc_g+set}" = set; then
3478   echo $ECHO_N "(cached) $ECHO_C" >&6
3479 else
3480   ac_save_c_werror_flag=$ac_c_werror_flag
3481    ac_c_werror_flag=yes
3482    ac_cv_prog_cc_g=no
3483    CFLAGS="-g"
3484    cat >conftest.$ac_ext <<_ACEOF
3485 /* confdefs.h.  */
3486 _ACEOF
3487 cat confdefs.h >>conftest.$ac_ext
3488 cat >>conftest.$ac_ext <<_ACEOF
3489 /* end confdefs.h.  */
3491 int
3492 main ()
3495   ;
3496   return 0;
3498 _ACEOF
3499 rm -f conftest.$ac_objext
3500 if { (ac_try="$ac_compile"
3501 case "(($ac_try" in
3502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3503   *) ac_try_echo=$ac_try;;
3504 esac
3505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3506   (eval "$ac_compile") 2>conftest.er1
3507   ac_status=$?
3508   grep -v '^ *+' conftest.er1 >conftest.err
3509   rm -f conftest.er1
3510   cat conftest.err >&5
3511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3512   (exit $ac_status); } && {
3513          test -z "$ac_c_werror_flag" ||
3514          test ! -s conftest.err
3515        } && test -s conftest.$ac_objext; then
3516   ac_cv_prog_cc_g=yes
3517 else
3518   echo "$as_me: failed program was:" >&5
3519 sed 's/^/| /' conftest.$ac_ext >&5
3521         CFLAGS=""
3522       cat >conftest.$ac_ext <<_ACEOF
3523 /* confdefs.h.  */
3524 _ACEOF
3525 cat confdefs.h >>conftest.$ac_ext
3526 cat >>conftest.$ac_ext <<_ACEOF
3527 /* end confdefs.h.  */
3529 int
3530 main ()
3533   ;
3534   return 0;
3536 _ACEOF
3537 rm -f conftest.$ac_objext
3538 if { (ac_try="$ac_compile"
3539 case "(($ac_try" in
3540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3541   *) ac_try_echo=$ac_try;;
3542 esac
3543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3544   (eval "$ac_compile") 2>conftest.er1
3545   ac_status=$?
3546   grep -v '^ *+' conftest.er1 >conftest.err
3547   rm -f conftest.er1
3548   cat conftest.err >&5
3549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3550   (exit $ac_status); } && {
3551          test -z "$ac_c_werror_flag" ||
3552          test ! -s conftest.err
3553        } && test -s conftest.$ac_objext; then
3554   :
3555 else
3556   echo "$as_me: failed program was:" >&5
3557 sed 's/^/| /' conftest.$ac_ext >&5
3559         ac_c_werror_flag=$ac_save_c_werror_flag
3560          CFLAGS="-g"
3561          cat >conftest.$ac_ext <<_ACEOF
3562 /* confdefs.h.  */
3563 _ACEOF
3564 cat confdefs.h >>conftest.$ac_ext
3565 cat >>conftest.$ac_ext <<_ACEOF
3566 /* end confdefs.h.  */
3568 int
3569 main ()
3572   ;
3573   return 0;
3575 _ACEOF
3576 rm -f conftest.$ac_objext
3577 if { (ac_try="$ac_compile"
3578 case "(($ac_try" in
3579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3580   *) ac_try_echo=$ac_try;;
3581 esac
3582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3583   (eval "$ac_compile") 2>conftest.er1
3584   ac_status=$?
3585   grep -v '^ *+' conftest.er1 >conftest.err
3586   rm -f conftest.er1
3587   cat conftest.err >&5
3588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3589   (exit $ac_status); } && {
3590          test -z "$ac_c_werror_flag" ||
3591          test ! -s conftest.err
3592        } && test -s conftest.$ac_objext; then
3593   ac_cv_prog_cc_g=yes
3594 else
3595   echo "$as_me: failed program was:" >&5
3596 sed 's/^/| /' conftest.$ac_ext >&5
3599 fi
3601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3602 fi
3604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3605 fi
3607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3608    ac_c_werror_flag=$ac_save_c_werror_flag
3609 fi
3610 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3611 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3612 if test "$ac_test_CFLAGS" = set; then
3613   CFLAGS=$ac_save_CFLAGS
3614 elif test $ac_cv_prog_cc_g = yes; then
3615   if test "$GCC" = yes; then
3616     CFLAGS="-g -O2"
3617   else
3618     CFLAGS="-g"
3619   fi
3620 else
3621   if test "$GCC" = yes; then
3622     CFLAGS="-O2"
3623   else
3624     CFLAGS=
3625   fi
3626 fi
3627 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3628 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3629 if test "${ac_cv_prog_cc_c89+set}" = set; then
3630   echo $ECHO_N "(cached) $ECHO_C" >&6
3631 else
3632   ac_cv_prog_cc_c89=no
3633 ac_save_CC=$CC
3634 cat >conftest.$ac_ext <<_ACEOF
3635 /* confdefs.h.  */
3636 _ACEOF
3637 cat confdefs.h >>conftest.$ac_ext
3638 cat >>conftest.$ac_ext <<_ACEOF
3639 /* end confdefs.h.  */
3640 #include <stdarg.h>
3641 #include <stdio.h>
3642 #include <sys/types.h>
3643 #include <sys/stat.h>
3644 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3645 struct buf { int x; };
3646 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3647 static char *e (p, i)
3648      char **p;
3649      int i;
3651   return p[i];
3653 static char *f (char * (*g) (char **, int), char **p, ...)
3655   char *s;
3656   va_list v;
3657   va_start (v,p);
3658   s = g (p, va_arg (v,int));
3659   va_end (v);
3660   return s;
3663 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3664    function prototypes and stuff, but not '\xHH' hex character constants.
3665    These don't provoke an error unfortunately, instead are silently treated
3666    as 'x'.  The following induces an error, until -std is added to get
3667    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3668    array size at least.  It's necessary to write '\x00'==0 to get something
3669    that's true only with -std.  */
3670 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3672 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3673    inside strings and character constants.  */
3674 #define FOO(x) 'x'
3675 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3677 int test (int i, double x);
3678 struct s1 {int (*f) (int a);};
3679 struct s2 {int (*f) (double a);};
3680 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3681 int argc;
3682 char **argv;
3683 int
3684 main ()
3686 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3687   ;
3688   return 0;
3690 _ACEOF
3691 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3692         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3693 do
3694   CC="$ac_save_CC $ac_arg"
3695   rm -f conftest.$ac_objext
3696 if { (ac_try="$ac_compile"
3697 case "(($ac_try" in
3698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3699   *) ac_try_echo=$ac_try;;
3700 esac
3701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3702   (eval "$ac_compile") 2>conftest.er1
3703   ac_status=$?
3704   grep -v '^ *+' conftest.er1 >conftest.err
3705   rm -f conftest.er1
3706   cat conftest.err >&5
3707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3708   (exit $ac_status); } && {
3709          test -z "$ac_c_werror_flag" ||
3710          test ! -s conftest.err
3711        } && test -s conftest.$ac_objext; then
3712   ac_cv_prog_cc_c89=$ac_arg
3713 else
3714   echo "$as_me: failed program was:" >&5
3715 sed 's/^/| /' conftest.$ac_ext >&5
3718 fi
3720 rm -f core conftest.err conftest.$ac_objext
3721   test "x$ac_cv_prog_cc_c89" != "xno" && break
3722 done
3723 rm -f conftest.$ac_ext
3724 CC=$ac_save_CC
3726 fi
3727 # AC_CACHE_VAL
3728 case "x$ac_cv_prog_cc_c89" in
3729   x)
3730     { echo "$as_me:$LINENO: result: none needed" >&5
3731 echo "${ECHO_T}none needed" >&6; } ;;
3732   xno)
3733     { echo "$as_me:$LINENO: result: unsupported" >&5
3734 echo "${ECHO_T}unsupported" >&6; } ;;
3735   *)
3736     CC="$CC $ac_cv_prog_cc_c89"
3737     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3738 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3739 esac
3742 ac_ext=c
3743 ac_cpp='$CPP $CPPFLAGS'
3744 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3745 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3746 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3747 DEPDIR="${am__leading_dot}deps"
3749 ac_config_commands="$ac_config_commands depfiles"
3752 am_make=${MAKE-make}
3753 cat > confinc << 'END'
3754 am__doit:
3755         @echo done
3756 .PHONY: am__doit
3757 END
3758 # If we don't find an include directive, just comment out the code.
3759 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3760 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3761 am__include="#"
3762 am__quote=
3763 _am_result=none
3764 # First try GNU make style include.
3765 echo "include confinc" > confmf
3766 # We grep out `Entering directory' and `Leaving directory'
3767 # messages which can occur if `w' ends up in MAKEFLAGS.
3768 # In particular we don't look at `^make:' because GNU make might
3769 # be invoked under some other name (usually "gmake"), in which
3770 # case it prints its new name instead of `make'.
3771 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3772    am__include=include
3773    am__quote=
3774    _am_result=GNU
3775 fi
3776 # Now try BSD make style include.
3777 if test "$am__include" = "#"; then
3778    echo '.include "confinc"' > confmf
3779    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3780       am__include=.include
3781       am__quote="\""
3782       _am_result=BSD
3783    fi
3784 fi
3787 { echo "$as_me:$LINENO: result: $_am_result" >&5
3788 echo "${ECHO_T}$_am_result" >&6; }
3789 rm -f confinc confmf
3791 # Check whether --enable-dependency-tracking was given.
3792 if test "${enable_dependency_tracking+set}" = set; then
3793   enableval=$enable_dependency_tracking;
3794 fi
3796 if test "x$enable_dependency_tracking" != xno; then
3797   am_depcomp="$ac_aux_dir/depcomp"
3798   AMDEPBACKSLASH='\'
3799 fi
3802 if test "x$enable_dependency_tracking" != xno; then
3803   AMDEP_TRUE=
3804   AMDEP_FALSE='#'
3805 else
3806   AMDEP_TRUE='#'
3807   AMDEP_FALSE=
3808 fi
3813 depcc="$CC"   am_compiler_list=
3815 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3816 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3817 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3818   echo $ECHO_N "(cached) $ECHO_C" >&6
3819 else
3820   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3821   # We make a subdir and do the tests there.  Otherwise we can end up
3822   # making bogus files that we don't know about and never remove.  For
3823   # instance it was reported that on HP-UX the gcc test will end up
3824   # making a dummy file named `D' -- because `-MD' means `put the output
3825   # in D'.
3826   mkdir conftest.dir
3827   # Copy depcomp to subdir because otherwise we won't find it if we're
3828   # using a relative directory.
3829   cp "$am_depcomp" conftest.dir
3830   cd conftest.dir
3831   # We will build objects and dependencies in a subdirectory because
3832   # it helps to detect inapplicable dependency modes.  For instance
3833   # both Tru64's cc and ICC support -MD to output dependencies as a
3834   # side effect of compilation, but ICC will put the dependencies in
3835   # the current directory while Tru64 will put them in the object
3836   # directory.
3837   mkdir sub
3839   am_cv_CC_dependencies_compiler_type=none
3840   if test "$am_compiler_list" = ""; then
3841      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3842   fi
3843   for depmode in $am_compiler_list; do
3844     # Setup a source with many dependencies, because some compilers
3845     # like to wrap large dependency lists on column 80 (with \), and
3846     # we should not choose a depcomp mode which is confused by this.
3847     #
3848     # We need to recreate these files for each test, as the compiler may
3849     # overwrite some of them when testing with obscure command lines.
3850     # This happens at least with the AIX C compiler.
3851     : > sub/conftest.c
3852     for i in 1 2 3 4 5 6; do
3853       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3854       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3855       # Solaris 8's {/usr,}/bin/sh.
3856       touch sub/conftst$i.h
3857     done
3858     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3860     case $depmode in
3861     nosideeffect)
3862       # after this tag, mechanisms are not by side-effect, so they'll
3863       # only be used when explicitly requested
3864       if test "x$enable_dependency_tracking" = xyes; then
3865         continue
3866       else
3867         break
3868       fi
3869       ;;
3870     none) break ;;
3871     esac
3872     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3873     # mode.  It turns out that the SunPro C++ compiler does not properly
3874     # handle `-M -o', and we need to detect this.
3875     if depmode=$depmode \
3876        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3877        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3878        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3879          >/dev/null 2>conftest.err &&
3880        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3881        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3882        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3883       # icc doesn't choke on unknown options, it will just issue warnings
3884       # or remarks (even with -Werror).  So we grep stderr for any message
3885       # that says an option was ignored or not supported.
3886       # When given -MP, icc 7.0 and 7.1 complain thusly:
3887       #   icc: Command line warning: ignoring option '-M'; no argument required
3888       # The diagnosis changed in icc 8.0:
3889       #   icc: Command line remark: option '-MP' not supported
3890       if (grep 'ignoring option' conftest.err ||
3891           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3892         am_cv_CC_dependencies_compiler_type=$depmode
3893         break
3894       fi
3895     fi
3896   done
3898   cd ..
3899   rm -rf conftest.dir
3900 else
3901   am_cv_CC_dependencies_compiler_type=none
3902 fi
3904 fi
3905 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3906 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3907 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3911 if
3912   test "x$enable_dependency_tracking" != xno \
3913   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3914   am__fastdepCC_TRUE=
3915   am__fastdepCC_FALSE='#'
3916 else
3917   am__fastdepCC_TRUE='#'
3918   am__fastdepCC_FALSE=
3919 fi
3922 ac_ext=c
3923 ac_cpp='$CPP $CPPFLAGS'
3924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3927 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3928 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3929 # On Suns, sometimes $CPP names a directory.
3930 if test -n "$CPP" && test -d "$CPP"; then
3931   CPP=
3932 fi
3933 if test -z "$CPP"; then
3934   if test "${ac_cv_prog_CPP+set}" = set; then
3935   echo $ECHO_N "(cached) $ECHO_C" >&6
3936 else
3937       # Double quotes because CPP needs to be expanded
3938     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3939     do
3940       ac_preproc_ok=false
3941 for ac_c_preproc_warn_flag in '' yes
3942 do
3943   # Use a header file that comes with gcc, so configuring glibc
3944   # with a fresh cross-compiler works.
3945   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3946   # <limits.h> exists even on freestanding compilers.
3947   # On the NeXT, cc -E runs the code through the compiler's parser,
3948   # not just through cpp. "Syntax error" is here to catch this case.
3949   cat >conftest.$ac_ext <<_ACEOF
3950 /* confdefs.h.  */
3951 _ACEOF
3952 cat confdefs.h >>conftest.$ac_ext
3953 cat >>conftest.$ac_ext <<_ACEOF
3954 /* end confdefs.h.  */
3955 #ifdef __STDC__
3956 # include <limits.h>
3957 #else
3958 # include <assert.h>
3959 #endif
3960                      Syntax error
3961 _ACEOF
3962 if { (ac_try="$ac_cpp conftest.$ac_ext"
3963 case "(($ac_try" in
3964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3965   *) ac_try_echo=$ac_try;;
3966 esac
3967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3968   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3969   ac_status=$?
3970   grep -v '^ *+' conftest.er1 >conftest.err
3971   rm -f conftest.er1
3972   cat conftest.err >&5
3973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3974   (exit $ac_status); } >/dev/null && {
3975          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3976          test ! -s conftest.err
3977        }; then
3978   :
3979 else
3980   echo "$as_me: failed program was:" >&5
3981 sed 's/^/| /' conftest.$ac_ext >&5
3983   # Broken: fails on valid input.
3984 continue
3985 fi
3987 rm -f conftest.err conftest.$ac_ext
3989   # OK, works on sane cases.  Now check whether nonexistent headers
3990   # can be detected and how.
3991   cat >conftest.$ac_ext <<_ACEOF
3992 /* confdefs.h.  */
3993 _ACEOF
3994 cat confdefs.h >>conftest.$ac_ext
3995 cat >>conftest.$ac_ext <<_ACEOF
3996 /* end confdefs.h.  */
3997 #include <ac_nonexistent.h>
3998 _ACEOF
3999 if { (ac_try="$ac_cpp conftest.$ac_ext"
4000 case "(($ac_try" in
4001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4002   *) ac_try_echo=$ac_try;;
4003 esac
4004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4005   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4006   ac_status=$?
4007   grep -v '^ *+' conftest.er1 >conftest.err
4008   rm -f conftest.er1
4009   cat conftest.err >&5
4010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4011   (exit $ac_status); } >/dev/null && {
4012          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4013          test ! -s conftest.err
4014        }; then
4015   # Broken: success on invalid input.
4016 continue
4017 else
4018   echo "$as_me: failed program was:" >&5
4019 sed 's/^/| /' conftest.$ac_ext >&5
4021   # Passes both tests.
4022 ac_preproc_ok=:
4023 break
4024 fi
4026 rm -f conftest.err conftest.$ac_ext
4028 done
4029 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4030 rm -f conftest.err conftest.$ac_ext
4031 if $ac_preproc_ok; then
4032   break
4033 fi
4035     done
4036     ac_cv_prog_CPP=$CPP
4038 fi
4039   CPP=$ac_cv_prog_CPP
4040 else
4041   ac_cv_prog_CPP=$CPP
4042 fi
4043 { echo "$as_me:$LINENO: result: $CPP" >&5
4044 echo "${ECHO_T}$CPP" >&6; }
4045 ac_preproc_ok=false
4046 for ac_c_preproc_warn_flag in '' yes
4047 do
4048   # Use a header file that comes with gcc, so configuring glibc
4049   # with a fresh cross-compiler works.
4050   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4051   # <limits.h> exists even on freestanding compilers.
4052   # On the NeXT, cc -E runs the code through the compiler's parser,
4053   # not just through cpp. "Syntax error" is here to catch this case.
4054   cat >conftest.$ac_ext <<_ACEOF
4055 /* confdefs.h.  */
4056 _ACEOF
4057 cat confdefs.h >>conftest.$ac_ext
4058 cat >>conftest.$ac_ext <<_ACEOF
4059 /* end confdefs.h.  */
4060 #ifdef __STDC__
4061 # include <limits.h>
4062 #else
4063 # include <assert.h>
4064 #endif
4065                      Syntax error
4066 _ACEOF
4067 if { (ac_try="$ac_cpp conftest.$ac_ext"
4068 case "(($ac_try" in
4069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4070   *) ac_try_echo=$ac_try;;
4071 esac
4072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4073   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4074   ac_status=$?
4075   grep -v '^ *+' conftest.er1 >conftest.err
4076   rm -f conftest.er1
4077   cat conftest.err >&5
4078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4079   (exit $ac_status); } >/dev/null && {
4080          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4081          test ! -s conftest.err
4082        }; then
4083   :
4084 else
4085   echo "$as_me: failed program was:" >&5
4086 sed 's/^/| /' conftest.$ac_ext >&5
4088   # Broken: fails on valid input.
4089 continue
4090 fi
4092 rm -f conftest.err conftest.$ac_ext
4094   # OK, works on sane cases.  Now check whether nonexistent headers
4095   # can be detected and how.
4096   cat >conftest.$ac_ext <<_ACEOF
4097 /* confdefs.h.  */
4098 _ACEOF
4099 cat confdefs.h >>conftest.$ac_ext
4100 cat >>conftest.$ac_ext <<_ACEOF
4101 /* end confdefs.h.  */
4102 #include <ac_nonexistent.h>
4103 _ACEOF
4104 if { (ac_try="$ac_cpp conftest.$ac_ext"
4105 case "(($ac_try" in
4106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4107   *) ac_try_echo=$ac_try;;
4108 esac
4109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4110   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4111   ac_status=$?
4112   grep -v '^ *+' conftest.er1 >conftest.err
4113   rm -f conftest.er1
4114   cat conftest.err >&5
4115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4116   (exit $ac_status); } >/dev/null && {
4117          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4118          test ! -s conftest.err
4119        }; then
4120   # Broken: success on invalid input.
4121 continue
4122 else
4123   echo "$as_me: failed program was:" >&5
4124 sed 's/^/| /' conftest.$ac_ext >&5
4126   # Passes both tests.
4127 ac_preproc_ok=:
4128 break
4129 fi
4131 rm -f conftest.err conftest.$ac_ext
4133 done
4134 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4135 rm -f conftest.err conftest.$ac_ext
4136 if $ac_preproc_ok; then
4137   :
4138 else
4139   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4140 See \`config.log' for more details." >&5
4141 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4142 See \`config.log' for more details." >&2;}
4143    { (exit 1); exit 1; }; }
4144 fi
4146 ac_ext=c
4147 ac_cpp='$CPP $CPPFLAGS'
4148 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4149 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4150 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4152 # Check whether --enable-shared was given.
4153 if test "${enable_shared+set}" = set; then
4154   enableval=$enable_shared; p=${PACKAGE-default}
4155     case $enableval in
4156     yes) enable_shared=yes ;;
4157     no) enable_shared=no ;;
4158     *)
4159       enable_shared=no
4160       # Look at the argument we got.  We use all the common list separators.
4161       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4162       for pkg in $enableval; do
4163         IFS="$lt_save_ifs"
4164         if test "X$pkg" = "X$p"; then
4165           enable_shared=yes
4166         fi
4167       done
4168       IFS="$lt_save_ifs"
4169       ;;
4170     esac
4171 else
4172   enable_shared=yes
4173 fi
4176 # Check whether --enable-static was given.
4177 if test "${enable_static+set}" = set; then
4178   enableval=$enable_static; p=${PACKAGE-default}
4179     case $enableval in
4180     yes) enable_static=yes ;;
4181     no) enable_static=no ;;
4182     *)
4183      enable_static=no
4184       # Look at the argument we got.  We use all the common list separators.
4185       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4186       for pkg in $enableval; do
4187         IFS="$lt_save_ifs"
4188         if test "X$pkg" = "X$p"; then
4189           enable_static=yes
4190         fi
4191       done
4192       IFS="$lt_save_ifs"
4193       ;;
4194     esac
4195 else
4196   enable_static=yes
4197 fi
4200 # Check whether --enable-fast-install was given.
4201 if test "${enable_fast_install+set}" = set; then
4202   enableval=$enable_fast_install; p=${PACKAGE-default}
4203     case $enableval in
4204     yes) enable_fast_install=yes ;;
4205     no) enable_fast_install=no ;;
4206     *)
4207       enable_fast_install=no
4208       # Look at the argument we got.  We use all the common list separators.
4209       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4210       for pkg in $enableval; do
4211         IFS="$lt_save_ifs"
4212         if test "X$pkg" = "X$p"; then
4213           enable_fast_install=yes
4214         fi
4215       done
4216       IFS="$lt_save_ifs"
4217       ;;
4218     esac
4219 else
4220   enable_fast_install=yes
4221 fi
4224 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4225 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4226 if test "${lt_cv_path_SED+set}" = set; then
4227   echo $ECHO_N "(cached) $ECHO_C" >&6
4228 else
4229   # Loop through the user's path and test for sed and gsed.
4230 # Then use that list of sed's as ones to test for truncation.
4231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4232 for as_dir in $PATH
4233 do
4234   IFS=$as_save_IFS
4235   test -z "$as_dir" && as_dir=.
4236   for lt_ac_prog in sed gsed; do
4237     for ac_exec_ext in '' $ac_executable_extensions; do
4238       if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
4239         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4240       fi
4241     done
4242   done
4243 done
4244 IFS=$as_save_IFS
4245 lt_ac_max=0
4246 lt_ac_count=0
4247 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4248 # along with /bin/sed that truncates output.
4249 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4250   test ! -f $lt_ac_sed && continue
4251   cat /dev/null > conftest.in
4252   lt_ac_count=0
4253   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4254   # Check for GNU sed and select it if it is found.
4255   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4256     lt_cv_path_SED=$lt_ac_sed
4257     break
4258   fi
4259   while true; do
4260     cat conftest.in conftest.in >conftest.tmp
4261     mv conftest.tmp conftest.in
4262     cp conftest.in conftest.nl
4263     echo >>conftest.nl
4264     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4265     cmp -s conftest.out conftest.nl || break
4266     # 10000 chars as input seems more than enough
4267     test $lt_ac_count -gt 10 && break
4268     lt_ac_count=`expr $lt_ac_count + 1`
4269     if test $lt_ac_count -gt $lt_ac_max; then
4270       lt_ac_max=$lt_ac_count
4271       lt_cv_path_SED=$lt_ac_sed
4272     fi
4273   done
4274 done
4276 fi
4278 SED=$lt_cv_path_SED
4280 { echo "$as_me:$LINENO: result: $SED" >&5
4281 echo "${ECHO_T}$SED" >&6; }
4283 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4284 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4285 if test "${ac_cv_path_GREP+set}" = set; then
4286   echo $ECHO_N "(cached) $ECHO_C" >&6
4287 else
4288   # Extract the first word of "grep ggrep" to use in msg output
4289 if test -z "$GREP"; then
4290 set dummy grep ggrep; ac_prog_name=$2
4291 if test "${ac_cv_path_GREP+set}" = set; then
4292   echo $ECHO_N "(cached) $ECHO_C" >&6
4293 else
4294   ac_path_GREP_found=false
4295 # Loop through the user's path and test for each of PROGNAME-LIST
4296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4297 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4298 do
4299   IFS=$as_save_IFS
4300   test -z "$as_dir" && as_dir=.
4301   for ac_prog in grep ggrep; do
4302   for ac_exec_ext in '' $ac_executable_extensions; do
4303     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4304     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4305     # Check for GNU ac_path_GREP and select it if it is found.
4306   # Check for GNU $ac_path_GREP
4307 case `"$ac_path_GREP" --version 2>&1` in
4308 *GNU*)
4309   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4310 *)
4311   ac_count=0
4312   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4313   while :
4314   do
4315     cat "conftest.in" "conftest.in" >"conftest.tmp"
4316     mv "conftest.tmp" "conftest.in"
4317     cp "conftest.in" "conftest.nl"
4318     echo 'GREP' >> "conftest.nl"
4319     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4320     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4321     ac_count=`expr $ac_count + 1`
4322     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4323       # Best one so far, save it but keep looking for a better one
4324       ac_cv_path_GREP="$ac_path_GREP"
4325       ac_path_GREP_max=$ac_count
4326     fi
4327     # 10*(2^10) chars as input seems more than enough
4328     test $ac_count -gt 10 && break
4329   done
4330   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4331 esac
4334     $ac_path_GREP_found && break 3
4335   done
4336 done
4338 done
4339 IFS=$as_save_IFS
4342 fi
4344 GREP="$ac_cv_path_GREP"
4345 if test -z "$GREP"; then
4346   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4347 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4348    { (exit 1); exit 1; }; }
4349 fi
4351 else
4352   ac_cv_path_GREP=$GREP
4353 fi
4356 fi
4357 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4358 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4359  GREP="$ac_cv_path_GREP"
4362 { echo "$as_me:$LINENO: checking for egrep" >&5
4363 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4364 if test "${ac_cv_path_EGREP+set}" = set; then
4365   echo $ECHO_N "(cached) $ECHO_C" >&6
4366 else
4367   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4368    then ac_cv_path_EGREP="$GREP -E"
4369    else
4370      # Extract the first word of "egrep" to use in msg output
4371 if test -z "$EGREP"; then
4372 set dummy egrep; ac_prog_name=$2
4373 if test "${ac_cv_path_EGREP+set}" = set; then
4374   echo $ECHO_N "(cached) $ECHO_C" >&6
4375 else
4376   ac_path_EGREP_found=false
4377 # Loop through the user's path and test for each of PROGNAME-LIST
4378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4379 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4380 do
4381   IFS=$as_save_IFS
4382   test -z "$as_dir" && as_dir=.
4383   for ac_prog in egrep; do
4384   for ac_exec_ext in '' $ac_executable_extensions; do
4385     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4386     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4387     # Check for GNU ac_path_EGREP and select it if it is found.
4388   # Check for GNU $ac_path_EGREP
4389 case `"$ac_path_EGREP" --version 2>&1` in
4390 *GNU*)
4391   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4392 *)
4393   ac_count=0
4394   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4395   while :
4396   do
4397     cat "conftest.in" "conftest.in" >"conftest.tmp"
4398     mv "conftest.tmp" "conftest.in"
4399     cp "conftest.in" "conftest.nl"
4400     echo 'EGREP' >> "conftest.nl"
4401     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4402     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4403     ac_count=`expr $ac_count + 1`
4404     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4405       # Best one so far, save it but keep looking for a better one
4406       ac_cv_path_EGREP="$ac_path_EGREP"
4407       ac_path_EGREP_max=$ac_count
4408     fi
4409     # 10*(2^10) chars as input seems more than enough
4410     test $ac_count -gt 10 && break
4411   done
4412   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4413 esac
4416     $ac_path_EGREP_found && break 3
4417   done
4418 done
4420 done
4421 IFS=$as_save_IFS
4424 fi
4426 EGREP="$ac_cv_path_EGREP"
4427 if test -z "$EGREP"; then
4428   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4429 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4430    { (exit 1); exit 1; }; }
4431 fi
4433 else
4434   ac_cv_path_EGREP=$EGREP
4435 fi
4438    fi
4439 fi
4440 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4441 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4442  EGREP="$ac_cv_path_EGREP"
4446 # Check whether --with-gnu-ld was given.
4447 if test "${with_gnu_ld+set}" = set; then
4448   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4449 else
4450   with_gnu_ld=no
4451 fi
4453 ac_prog=ld
4454 if test "$GCC" = yes; then
4455   # Check if gcc -print-prog-name=ld gives a path.
4456   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4457 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4458   case $host in
4459   *-*-mingw*)
4460     # gcc leaves a trailing carriage return which upsets mingw
4461     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4462   *)
4463     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4464   esac
4465   case $ac_prog in
4466     # Accept absolute paths.
4467     [\\/]* | ?:[\\/]*)
4468       re_direlt='/[^/][^/]*/\.\./'
4469       # Canonicalize the pathname of ld
4470       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4471       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4472         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4473       done
4474       test -z "$LD" && LD="$ac_prog"
4475       ;;
4476   "")
4477     # If it fails, then pretend we aren't using GCC.
4478     ac_prog=ld
4479     ;;
4480   *)
4481     # If it is relative, then search for the first ld in PATH.
4482     with_gnu_ld=unknown
4483     ;;
4484   esac
4485 elif test "$with_gnu_ld" = yes; then
4486   { echo "$as_me:$LINENO: checking for GNU ld" >&5
4487 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4488 else
4489   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4490 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4491 fi
4492 if test "${lt_cv_path_LD+set}" = set; then
4493   echo $ECHO_N "(cached) $ECHO_C" >&6
4494 else
4495   if test -z "$LD"; then
4496   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4497   for ac_dir in $PATH; do
4498     IFS="$lt_save_ifs"
4499     test -z "$ac_dir" && ac_dir=.
4500     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4501       lt_cv_path_LD="$ac_dir/$ac_prog"
4502       # Check to see if the program is GNU ld.  I'd rather use --version,
4503       # but apparently some variants of GNU ld only accept -v.
4504       # Break only if it was the GNU/non-GNU ld that we prefer.
4505       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4506       *GNU* | *'with BFD'*)
4507         test "$with_gnu_ld" != no && break
4508         ;;
4509       *)
4510         test "$with_gnu_ld" != yes && break
4511         ;;
4512       esac
4513     fi
4514   done
4515   IFS="$lt_save_ifs"
4516 else
4517   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4518 fi
4519 fi
4521 LD="$lt_cv_path_LD"
4522 if test -n "$LD"; then
4523   { echo "$as_me:$LINENO: result: $LD" >&5
4524 echo "${ECHO_T}$LD" >&6; }
4525 else
4526   { echo "$as_me:$LINENO: result: no" >&5
4527 echo "${ECHO_T}no" >&6; }
4528 fi
4529 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4530 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4531    { (exit 1); exit 1; }; }
4532 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4533 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4534 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4535   echo $ECHO_N "(cached) $ECHO_C" >&6
4536 else
4537   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4538 case `$LD -v 2>&1 </dev/null` in
4539 *GNU* | *'with BFD'*)
4540   lt_cv_prog_gnu_ld=yes
4541   ;;
4542 *)
4543   lt_cv_prog_gnu_ld=no
4544   ;;
4545 esac
4546 fi
4547 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4548 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4549 with_gnu_ld=$lt_cv_prog_gnu_ld
4552 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4553 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4554 if test "${lt_cv_ld_reload_flag+set}" = set; then
4555   echo $ECHO_N "(cached) $ECHO_C" >&6
4556 else
4557   lt_cv_ld_reload_flag='-r'
4558 fi
4559 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4560 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4561 reload_flag=$lt_cv_ld_reload_flag
4562 case $reload_flag in
4563 "" | " "*) ;;
4564 *) reload_flag=" $reload_flag" ;;
4565 esac
4566 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4567 case $host_os in
4568   darwin*)
4569     if test "$GCC" = yes; then
4570       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4571     else
4572       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4573     fi
4574     ;;
4575 esac
4577 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4578 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4579 if test "${lt_cv_path_NM+set}" = set; then
4580   echo $ECHO_N "(cached) $ECHO_C" >&6
4581 else
4582   if test -n "$NM"; then
4583   # Let the user override the test.
4584   lt_cv_path_NM="$NM"
4585 else
4586   lt_nm_to_check="${ac_tool_prefix}nm"
4587   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4588     lt_nm_to_check="$lt_nm_to_check nm"
4589   fi
4590   for lt_tmp_nm in $lt_nm_to_check; do
4591     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4592     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4593       IFS="$lt_save_ifs"
4594       test -z "$ac_dir" && ac_dir=.
4595       tmp_nm="$ac_dir/$lt_tmp_nm"
4596       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4597         # Check to see if the nm accepts a BSD-compat flag.
4598         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4599         #   nm: unknown option "B" ignored
4600         # Tru64's nm complains that /dev/null is an invalid object file
4601         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4602         */dev/null* | *'Invalid file or object type'*)
4603           lt_cv_path_NM="$tmp_nm -B"
4604           break
4605           ;;
4606         *)
4607           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4608           */dev/null*)
4609             lt_cv_path_NM="$tmp_nm -p"
4610             break
4611             ;;
4612           *)
4613             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4614             continue # so that we can try to find one that supports BSD flags
4615             ;;
4616           esac
4617           ;;
4618         esac
4619       fi
4620     done
4621     IFS="$lt_save_ifs"
4622   done
4623   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4624 fi
4625 fi
4626 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4627 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4628 NM="$lt_cv_path_NM"
4630 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4631 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4632 LN_S=$as_ln_s
4633 if test "$LN_S" = "ln -s"; then
4634   { echo "$as_me:$LINENO: result: yes" >&5
4635 echo "${ECHO_T}yes" >&6; }
4636 else
4637   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4638 echo "${ECHO_T}no, using $LN_S" >&6; }
4639 fi
4641 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4642 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4643 if test "${lt_cv_deplibs_check_method+set}" = set; then
4644   echo $ECHO_N "(cached) $ECHO_C" >&6
4645 else
4646   lt_cv_file_magic_cmd='$MAGIC_CMD'
4647 lt_cv_file_magic_test_file=
4648 lt_cv_deplibs_check_method='unknown'
4649 # Need to set the preceding variable on all platforms that support
4650 # interlibrary dependencies.
4651 # 'none' -- dependencies not supported.
4652 # `unknown' -- same as none, but documents that we really don't know.
4653 # 'pass_all' -- all dependencies passed with no checks.
4654 # 'test_compile' -- check by making test program.
4655 # 'file_magic [[regex]]' -- check by looking for files in library path
4656 # which responds to the $file_magic_cmd with a given extended regex.
4657 # If you have `file' or equivalent on your system and you're not sure
4658 # whether `pass_all' will *always* work, you probably want this one.
4660 case $host_os in
4661 aix[4-9]*)
4662   lt_cv_deplibs_check_method=pass_all
4663   ;;
4665 beos*)
4666   lt_cv_deplibs_check_method=pass_all
4667   ;;
4669 bsdi[45]*)
4670   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4671   lt_cv_file_magic_cmd='/usr/bin/file -L'
4672   lt_cv_file_magic_test_file=/shlib/libc.so
4673   ;;
4675 cygwin*)
4676   # func_win32_libid is a shell function defined in ltmain.sh
4677   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4678   lt_cv_file_magic_cmd='func_win32_libid'
4679   ;;
4681 mingw* | pw32*)
4682   # Base MSYS/MinGW do not provide the 'file' command needed by
4683   # func_win32_libid shell function, so use a weaker test based on 'objdump',
4684   # unless we find 'file', for example because we are cross-compiling.
4685   if ( file / ) >/dev/null 2>&1; then
4686     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4687     lt_cv_file_magic_cmd='func_win32_libid'
4688   else
4689     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4690     lt_cv_file_magic_cmd='$OBJDUMP -f'
4691   fi
4692   ;;
4694 darwin* | rhapsody*)
4695   lt_cv_deplibs_check_method=pass_all
4696   ;;
4698 freebsd* | dragonfly*)
4699   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4700     case $host_cpu in
4701     i*86 )
4702       # Not sure whether the presence of OpenBSD here was a mistake.
4703       # Let's accept both of them until this is cleared up.
4704       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4705       lt_cv_file_magic_cmd=/usr/bin/file
4706       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4707       ;;
4708     esac
4709   else
4710     lt_cv_deplibs_check_method=pass_all
4711   fi
4712   ;;
4714 gnu*)
4715   lt_cv_deplibs_check_method=pass_all
4716   ;;
4718 hpux10.20* | hpux11*)
4719   lt_cv_file_magic_cmd=/usr/bin/file
4720   case $host_cpu in
4721   ia64*)
4722     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4723     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4724     ;;
4725   hppa*64*)
4726     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]'
4727     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4728     ;;
4729   *)
4730     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4731     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4732     ;;
4733   esac
4734   ;;
4736 interix[3-9]*)
4737   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4738   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4739   ;;
4741 irix5* | irix6* | nonstopux*)
4742   case $LD in
4743   *-32|*"-32 ") libmagic=32-bit;;
4744   *-n32|*"-n32 ") libmagic=N32;;
4745   *-64|*"-64 ") libmagic=64-bit;;
4746   *) libmagic=never-match;;
4747   esac
4748   lt_cv_deplibs_check_method=pass_all
4749   ;;
4751 # This must be Linux ELF.
4752 linux* | k*bsd*-gnu)
4753   lt_cv_deplibs_check_method=pass_all
4754   ;;
4756 netbsd* | netbsdelf*-gnu)
4757   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4758     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4759   else
4760     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4761   fi
4762   ;;
4764 newos6*)
4765   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4766   lt_cv_file_magic_cmd=/usr/bin/file
4767   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4768   ;;
4770 nto-qnx*)
4771   lt_cv_deplibs_check_method=unknown
4772   ;;
4774 openbsd*)
4775   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4776     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4777   else
4778     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4779   fi
4780   ;;
4782 osf3* | osf4* | osf5*)
4783   lt_cv_deplibs_check_method=pass_all
4784   ;;
4786 rdos*)
4787   lt_cv_deplibs_check_method=pass_all
4788   ;;
4790 solaris*)
4791   lt_cv_deplibs_check_method=pass_all
4792   ;;
4794 sysv4 | sysv4.3*)
4795   case $host_vendor in
4796   motorola)
4797     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]'
4798     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4799     ;;
4800   ncr)
4801     lt_cv_deplibs_check_method=pass_all
4802     ;;
4803   sequent)
4804     lt_cv_file_magic_cmd='/bin/file'
4805     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4806     ;;
4807   sni)
4808     lt_cv_file_magic_cmd='/bin/file'
4809     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4810     lt_cv_file_magic_test_file=/lib/libc.so
4811     ;;
4812   siemens)
4813     lt_cv_deplibs_check_method=pass_all
4814     ;;
4815   pc)
4816     lt_cv_deplibs_check_method=pass_all
4817     ;;
4818   esac
4819   ;;
4821 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4822   lt_cv_deplibs_check_method=pass_all
4823   ;;
4824 esac
4826 fi
4827 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4828 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4829 file_magic_cmd=$lt_cv_file_magic_cmd
4830 deplibs_check_method=$lt_cv_deplibs_check_method
4831 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4836 # If no C compiler was specified, use CC.
4837 LTCC=${LTCC-"$CC"}
4839 # If no C compiler flags were specified, use CFLAGS.
4840 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4842 # Allow CC to be a program name with arguments.
4843 compiler=$CC
4846 # Check whether --enable-libtool-lock was given.
4847 if test "${enable_libtool_lock+set}" = set; then
4848   enableval=$enable_libtool_lock;
4849 fi
4851 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4853 # Some flags need to be propagated to the compiler or linker for good
4854 # libtool support.
4855 case $host in
4856 ia64-*-hpux*)
4857   # Find out which ABI we are using.
4858   echo 'int i;' > conftest.$ac_ext
4859   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4860   (eval $ac_compile) 2>&5
4861   ac_status=$?
4862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4863   (exit $ac_status); }; then
4864     case `/usr/bin/file conftest.$ac_objext` in
4865     *ELF-32*)
4866       HPUX_IA64_MODE="32"
4867       ;;
4868     *ELF-64*)
4869       HPUX_IA64_MODE="64"
4870       ;;
4871     esac
4872   fi
4873   rm -rf conftest*
4874   ;;
4875 *-*-irix6*)
4876   # Find out which ABI we are using.
4877   echo '#line 4877 "configure"' > conftest.$ac_ext
4878   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4879   (eval $ac_compile) 2>&5
4880   ac_status=$?
4881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4882   (exit $ac_status); }; then
4883    if test "$lt_cv_prog_gnu_ld" = yes; then
4884     case `/usr/bin/file conftest.$ac_objext` in
4885     *32-bit*)
4886       LD="${LD-ld} -melf32bsmip"
4887       ;;
4888     *N32*)
4889       LD="${LD-ld} -melf32bmipn32"
4890       ;;
4891     *64-bit*)
4892       LD="${LD-ld} -melf64bmip"
4893       ;;
4894     esac
4895    else
4896     case `/usr/bin/file conftest.$ac_objext` in
4897     *32-bit*)
4898       LD="${LD-ld} -32"
4899       ;;
4900     *N32*)
4901       LD="${LD-ld} -n32"
4902       ;;
4903     *64-bit*)
4904       LD="${LD-ld} -64"
4905       ;;
4906     esac
4907    fi
4908   fi
4909   rm -rf conftest*
4910   ;;
4912 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4913 s390*-*linux*|sparc*-*linux*)
4914   # Find out which ABI we are using.
4915   echo 'int i;' > conftest.$ac_ext
4916   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4917   (eval $ac_compile) 2>&5
4918   ac_status=$?
4919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4920   (exit $ac_status); }; then
4921     case `/usr/bin/file conftest.o` in
4922     *32-bit*)
4923       case $host in
4924         x86_64-*kfreebsd*-gnu)
4925           LD="${LD-ld} -m elf_i386_fbsd"
4926           ;;
4927         x86_64-*linux*)
4928           LD="${LD-ld} -m elf_i386"
4929           ;;
4930         ppc64-*linux*|powerpc64-*linux*)
4931           LD="${LD-ld} -m elf32ppclinux"
4932           ;;
4933         s390x-*linux*)
4934           LD="${LD-ld} -m elf_s390"
4935           ;;
4936         sparc64-*linux*)
4937           LD="${LD-ld} -m elf32_sparc"
4938           ;;
4939       esac
4940       ;;
4941     *64-bit*)
4942       case $host in
4943         x86_64-*kfreebsd*-gnu)
4944           LD="${LD-ld} -m elf_x86_64_fbsd"
4945           ;;
4946         x86_64-*linux*)
4947           LD="${LD-ld} -m elf_x86_64"
4948           ;;
4949         ppc*-*linux*|powerpc*-*linux*)
4950           LD="${LD-ld} -m elf64ppc"
4951           ;;
4952         s390*-*linux*)
4953           LD="${LD-ld} -m elf64_s390"
4954           ;;
4955         sparc*-*linux*)
4956           LD="${LD-ld} -m elf64_sparc"
4957           ;;
4958       esac
4959       ;;
4960     esac
4961   fi
4962   rm -rf conftest*
4963   ;;
4965 *-*-sco3.2v5*)
4966   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4967   SAVE_CFLAGS="$CFLAGS"
4968   CFLAGS="$CFLAGS -belf"
4969   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4970 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4971 if test "${lt_cv_cc_needs_belf+set}" = set; then
4972   echo $ECHO_N "(cached) $ECHO_C" >&6
4973 else
4974   ac_ext=c
4975 ac_cpp='$CPP $CPPFLAGS'
4976 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4977 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4978 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4980      cat >conftest.$ac_ext <<_ACEOF
4981 /* confdefs.h.  */
4982 _ACEOF
4983 cat confdefs.h >>conftest.$ac_ext
4984 cat >>conftest.$ac_ext <<_ACEOF
4985 /* end confdefs.h.  */
4987 int
4988 main ()
4991   ;
4992   return 0;
4994 _ACEOF
4995 rm -f conftest.$ac_objext conftest$ac_exeext
4996 if { (ac_try="$ac_link"
4997 case "(($ac_try" in
4998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4999   *) ac_try_echo=$ac_try;;
5000 esac
5001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5002   (eval "$ac_link") 2>conftest.er1
5003   ac_status=$?
5004   grep -v '^ *+' conftest.er1 >conftest.err
5005   rm -f conftest.er1
5006   cat conftest.err >&5
5007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5008   (exit $ac_status); } && {
5009          test -z "$ac_c_werror_flag" ||
5010          test ! -s conftest.err
5011        } && test -s conftest$ac_exeext &&
5012        $as_test_x conftest$ac_exeext; then
5013   lt_cv_cc_needs_belf=yes
5014 else
5015   echo "$as_me: failed program was:" >&5
5016 sed 's/^/| /' conftest.$ac_ext >&5
5018         lt_cv_cc_needs_belf=no
5019 fi
5021 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5022       conftest$ac_exeext conftest.$ac_ext
5023      ac_ext=c
5024 ac_cpp='$CPP $CPPFLAGS'
5025 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5026 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5027 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5029 fi
5030 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5031 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5032   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5033     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5034     CFLAGS="$SAVE_CFLAGS"
5035   fi
5036   ;;
5037 sparc*-*solaris*)
5038   # Find out which ABI we are using.
5039   echo 'int i;' > conftest.$ac_ext
5040   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5041   (eval $ac_compile) 2>&5
5042   ac_status=$?
5043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5044   (exit $ac_status); }; then
5045     case `/usr/bin/file conftest.o` in
5046     *64-bit*)
5047       case $lt_cv_prog_gnu_ld in
5048       yes*) LD="${LD-ld} -m elf64_sparc" ;;
5049       *)
5050         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5051           LD="${LD-ld} -64"
5052         fi
5053         ;;
5054       esac
5055       ;;
5056     esac
5057   fi
5058   rm -rf conftest*
5059   ;;
5062 esac
5064 need_locks="$enable_libtool_lock"
5068 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5069 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5070 if test "${ac_cv_header_stdc+set}" = set; then
5071   echo $ECHO_N "(cached) $ECHO_C" >&6
5072 else
5073   cat >conftest.$ac_ext <<_ACEOF
5074 /* confdefs.h.  */
5075 _ACEOF
5076 cat confdefs.h >>conftest.$ac_ext
5077 cat >>conftest.$ac_ext <<_ACEOF
5078 /* end confdefs.h.  */
5079 #include <stdlib.h>
5080 #include <stdarg.h>
5081 #include <string.h>
5082 #include <float.h>
5084 int
5085 main ()
5088   ;
5089   return 0;
5091 _ACEOF
5092 rm -f conftest.$ac_objext
5093 if { (ac_try="$ac_compile"
5094 case "(($ac_try" in
5095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5096   *) ac_try_echo=$ac_try;;
5097 esac
5098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5099   (eval "$ac_compile") 2>conftest.er1
5100   ac_status=$?
5101   grep -v '^ *+' conftest.er1 >conftest.err
5102   rm -f conftest.er1
5103   cat conftest.err >&5
5104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5105   (exit $ac_status); } && {
5106          test -z "$ac_c_werror_flag" ||
5107          test ! -s conftest.err
5108        } && test -s conftest.$ac_objext; then
5109   ac_cv_header_stdc=yes
5110 else
5111   echo "$as_me: failed program was:" >&5
5112 sed 's/^/| /' conftest.$ac_ext >&5
5114         ac_cv_header_stdc=no
5115 fi
5117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5119 if test $ac_cv_header_stdc = yes; then
5120   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5121   cat >conftest.$ac_ext <<_ACEOF
5122 /* confdefs.h.  */
5123 _ACEOF
5124 cat confdefs.h >>conftest.$ac_ext
5125 cat >>conftest.$ac_ext <<_ACEOF
5126 /* end confdefs.h.  */
5127 #include <string.h>
5129 _ACEOF
5130 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5131   $EGREP "memchr" >/dev/null 2>&1; then
5132   :
5133 else
5134   ac_cv_header_stdc=no
5135 fi
5136 rm -f conftest*
5138 fi
5140 if test $ac_cv_header_stdc = yes; then
5141   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5142   cat >conftest.$ac_ext <<_ACEOF
5143 /* confdefs.h.  */
5144 _ACEOF
5145 cat confdefs.h >>conftest.$ac_ext
5146 cat >>conftest.$ac_ext <<_ACEOF
5147 /* end confdefs.h.  */
5148 #include <stdlib.h>
5150 _ACEOF
5151 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5152   $EGREP "free" >/dev/null 2>&1; then
5153   :
5154 else
5155   ac_cv_header_stdc=no
5156 fi
5157 rm -f conftest*
5159 fi
5161 if test $ac_cv_header_stdc = yes; then
5162   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5163   if test "$cross_compiling" = yes; then
5164   :
5165 else
5166   cat >conftest.$ac_ext <<_ACEOF
5167 /* confdefs.h.  */
5168 _ACEOF
5169 cat confdefs.h >>conftest.$ac_ext
5170 cat >>conftest.$ac_ext <<_ACEOF
5171 /* end confdefs.h.  */
5172 #include <ctype.h>
5173 #include <stdlib.h>
5174 #if ((' ' & 0x0FF) == 0x020)
5175 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5176 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5177 #else
5178 # define ISLOWER(c) \
5179                    (('a' <= (c) && (c) <= 'i') \
5180                      || ('j' <= (c) && (c) <= 'r') \
5181                      || ('s' <= (c) && (c) <= 'z'))
5182 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5183 #endif
5185 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5186 int
5187 main ()
5189   int i;
5190   for (i = 0; i < 256; i++)
5191     if (XOR (islower (i), ISLOWER (i))
5192         || toupper (i) != TOUPPER (i))
5193       return 2;
5194   return 0;
5196 _ACEOF
5197 rm -f conftest$ac_exeext
5198 if { (ac_try="$ac_link"
5199 case "(($ac_try" in
5200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5201   *) ac_try_echo=$ac_try;;
5202 esac
5203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5204   (eval "$ac_link") 2>&5
5205   ac_status=$?
5206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5207   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5208   { (case "(($ac_try" in
5209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5210   *) ac_try_echo=$ac_try;;
5211 esac
5212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5213   (eval "$ac_try") 2>&5
5214   ac_status=$?
5215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5216   (exit $ac_status); }; }; then
5217   :
5218 else
5219   echo "$as_me: program exited with status $ac_status" >&5
5220 echo "$as_me: failed program was:" >&5
5221 sed 's/^/| /' conftest.$ac_ext >&5
5223 ( exit $ac_status )
5224 ac_cv_header_stdc=no
5225 fi
5226 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5227 fi
5230 fi
5231 fi
5232 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5233 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5234 if test $ac_cv_header_stdc = yes; then
5236 cat >>confdefs.h <<\_ACEOF
5237 #define STDC_HEADERS 1
5238 _ACEOF
5240 fi
5242 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5252 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5253                   inttypes.h stdint.h unistd.h
5254 do
5255 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5256 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5257 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5258 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5259   echo $ECHO_N "(cached) $ECHO_C" >&6
5260 else
5261   cat >conftest.$ac_ext <<_ACEOF
5262 /* confdefs.h.  */
5263 _ACEOF
5264 cat confdefs.h >>conftest.$ac_ext
5265 cat >>conftest.$ac_ext <<_ACEOF
5266 /* end confdefs.h.  */
5267 $ac_includes_default
5269 #include <$ac_header>
5270 _ACEOF
5271 rm -f conftest.$ac_objext
5272 if { (ac_try="$ac_compile"
5273 case "(($ac_try" in
5274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5275   *) ac_try_echo=$ac_try;;
5276 esac
5277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5278   (eval "$ac_compile") 2>conftest.er1
5279   ac_status=$?
5280   grep -v '^ *+' conftest.er1 >conftest.err
5281   rm -f conftest.er1
5282   cat conftest.err >&5
5283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5284   (exit $ac_status); } && {
5285          test -z "$ac_c_werror_flag" ||
5286          test ! -s conftest.err
5287        } && test -s conftest.$ac_objext; then
5288   eval "$as_ac_Header=yes"
5289 else
5290   echo "$as_me: failed program was:" >&5
5291 sed 's/^/| /' conftest.$ac_ext >&5
5293         eval "$as_ac_Header=no"
5294 fi
5296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5297 fi
5298 ac_res=`eval echo '${'$as_ac_Header'}'`
5299                { echo "$as_me:$LINENO: result: $ac_res" >&5
5300 echo "${ECHO_T}$ac_res" >&6; }
5301 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5302   cat >>confdefs.h <<_ACEOF
5303 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5304 _ACEOF
5306 fi
5308 done
5312 for ac_header in dlfcn.h
5313 do
5314 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5315 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5316   { echo "$as_me:$LINENO: checking for $ac_header" >&5
5317 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5318 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5319   echo $ECHO_N "(cached) $ECHO_C" >&6
5320 fi
5321 ac_res=`eval echo '${'$as_ac_Header'}'`
5322                { echo "$as_me:$LINENO: result: $ac_res" >&5
5323 echo "${ECHO_T}$ac_res" >&6; }
5324 else
5325   # Is the header compilable?
5326 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5327 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5328 cat >conftest.$ac_ext <<_ACEOF
5329 /* confdefs.h.  */
5330 _ACEOF
5331 cat confdefs.h >>conftest.$ac_ext
5332 cat >>conftest.$ac_ext <<_ACEOF
5333 /* end confdefs.h.  */
5334 $ac_includes_default
5335 #include <$ac_header>
5336 _ACEOF
5337 rm -f conftest.$ac_objext
5338 if { (ac_try="$ac_compile"
5339 case "(($ac_try" in
5340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5341   *) ac_try_echo=$ac_try;;
5342 esac
5343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5344   (eval "$ac_compile") 2>conftest.er1
5345   ac_status=$?
5346   grep -v '^ *+' conftest.er1 >conftest.err
5347   rm -f conftest.er1
5348   cat conftest.err >&5
5349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5350   (exit $ac_status); } && {
5351          test -z "$ac_c_werror_flag" ||
5352          test ! -s conftest.err
5353        } && test -s conftest.$ac_objext; then
5354   ac_header_compiler=yes
5355 else
5356   echo "$as_me: failed program was:" >&5
5357 sed 's/^/| /' conftest.$ac_ext >&5
5359         ac_header_compiler=no
5360 fi
5362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5363 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5364 echo "${ECHO_T}$ac_header_compiler" >&6; }
5366 # Is the header present?
5367 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5368 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5369 cat >conftest.$ac_ext <<_ACEOF
5370 /* confdefs.h.  */
5371 _ACEOF
5372 cat confdefs.h >>conftest.$ac_ext
5373 cat >>conftest.$ac_ext <<_ACEOF
5374 /* end confdefs.h.  */
5375 #include <$ac_header>
5376 _ACEOF
5377 if { (ac_try="$ac_cpp conftest.$ac_ext"
5378 case "(($ac_try" in
5379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5380   *) ac_try_echo=$ac_try;;
5381 esac
5382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5383   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5384   ac_status=$?
5385   grep -v '^ *+' conftest.er1 >conftest.err
5386   rm -f conftest.er1
5387   cat conftest.err >&5
5388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5389   (exit $ac_status); } >/dev/null && {
5390          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5391          test ! -s conftest.err
5392        }; then
5393   ac_header_preproc=yes
5394 else
5395   echo "$as_me: failed program was:" >&5
5396 sed 's/^/| /' conftest.$ac_ext >&5
5398   ac_header_preproc=no
5399 fi
5401 rm -f conftest.err conftest.$ac_ext
5402 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5403 echo "${ECHO_T}$ac_header_preproc" >&6; }
5405 # So?  What about this header?
5406 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5407   yes:no: )
5408     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5409 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5410     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5411 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5412     ac_header_preproc=yes
5413     ;;
5414   no:yes:* )
5415     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5416 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5417     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5418 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5419     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5420 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5421     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5422 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5423     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5424 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5425     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5426 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5428     ;;
5429 esac
5430 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5431 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5432 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5433   echo $ECHO_N "(cached) $ECHO_C" >&6
5434 else
5435   eval "$as_ac_Header=\$ac_header_preproc"
5436 fi
5437 ac_res=`eval echo '${'$as_ac_Header'}'`
5438                { echo "$as_me:$LINENO: result: $ac_res" >&5
5439 echo "${ECHO_T}$ac_res" >&6; }
5441 fi
5442 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5443   cat >>confdefs.h <<_ACEOF
5444 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5445 _ACEOF
5447 fi
5449 done
5451 ac_ext=cpp
5452 ac_cpp='$CXXCPP $CPPFLAGS'
5453 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5454 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5455 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5456 if test -z "$CXX"; then
5457   if test -n "$CCC"; then
5458     CXX=$CCC
5459   else
5460     if test -n "$ac_tool_prefix"; then
5461   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5462   do
5463     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5464 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5465 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5467 if test "${ac_cv_prog_CXX+set}" = set; then
5468   echo $ECHO_N "(cached) $ECHO_C" >&6
5469 else
5470   if test -n "$CXX"; then
5471   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5472 else
5473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5474 for as_dir in $PATH
5475 do
5476   IFS=$as_save_IFS
5477   test -z "$as_dir" && as_dir=.
5478   for ac_exec_ext in '' $ac_executable_extensions; do
5479   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5480     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5481     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5482     break 2
5483   fi
5484 done
5485 done
5486 IFS=$as_save_IFS
5488 fi
5489 fi
5490 CXX=$ac_cv_prog_CXX
5491 if test -n "$CXX"; then
5492   { echo "$as_me:$LINENO: result: $CXX" >&5
5493 echo "${ECHO_T}$CXX" >&6; }
5494 else
5495   { echo "$as_me:$LINENO: result: no" >&5
5496 echo "${ECHO_T}no" >&6; }
5497 fi
5500     test -n "$CXX" && break
5501   done
5502 fi
5503 if test -z "$CXX"; then
5504   ac_ct_CXX=$CXX
5505   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5506 do
5507   # Extract the first word of "$ac_prog", so it can be a program name with args.
5508 set dummy $ac_prog; ac_word=$2
5509 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5510 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5511 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5512   echo $ECHO_N "(cached) $ECHO_C" >&6
5513 else
5514   if test -n "$ac_ct_CXX"; then
5515   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5516 else
5517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5518 for as_dir in $PATH
5519 do
5520   IFS=$as_save_IFS
5521   test -z "$as_dir" && as_dir=.
5522   for ac_exec_ext in '' $ac_executable_extensions; do
5523   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5524     ac_cv_prog_ac_ct_CXX="$ac_prog"
5525     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5526     break 2
5527   fi
5528 done
5529 done
5530 IFS=$as_save_IFS
5532 fi
5533 fi
5534 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5535 if test -n "$ac_ct_CXX"; then
5536   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5537 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5538 else
5539   { echo "$as_me:$LINENO: result: no" >&5
5540 echo "${ECHO_T}no" >&6; }
5541 fi
5544   test -n "$ac_ct_CXX" && break
5545 done
5547   if test "x$ac_ct_CXX" = x; then
5548     CXX="g++"
5549   else
5550     case $cross_compiling:$ac_tool_warned in
5551 yes:)
5552 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5553 whose name does not start with the host triplet.  If you think this
5554 configuration is useful to you, please write to autoconf@gnu.org." >&5
5555 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5556 whose name does not start with the host triplet.  If you think this
5557 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5558 ac_tool_warned=yes ;;
5559 esac
5560     CXX=$ac_ct_CXX
5561   fi
5562 fi
5564   fi
5565 fi
5566 # Provide some information about the compiler.
5567 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5568 ac_compiler=`set X $ac_compile; echo $2`
5569 { (ac_try="$ac_compiler --version >&5"
5570 case "(($ac_try" in
5571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5572   *) ac_try_echo=$ac_try;;
5573 esac
5574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5575   (eval "$ac_compiler --version >&5") 2>&5
5576   ac_status=$?
5577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5578   (exit $ac_status); }
5579 { (ac_try="$ac_compiler -v >&5"
5580 case "(($ac_try" in
5581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5582   *) ac_try_echo=$ac_try;;
5583 esac
5584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5585   (eval "$ac_compiler -v >&5") 2>&5
5586   ac_status=$?
5587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5588   (exit $ac_status); }
5589 { (ac_try="$ac_compiler -V >&5"
5590 case "(($ac_try" in
5591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5592   *) ac_try_echo=$ac_try;;
5593 esac
5594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5595   (eval "$ac_compiler -V >&5") 2>&5
5596   ac_status=$?
5597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5598   (exit $ac_status); }
5600 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5601 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5602 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5603   echo $ECHO_N "(cached) $ECHO_C" >&6
5604 else
5605   cat >conftest.$ac_ext <<_ACEOF
5606 /* confdefs.h.  */
5607 _ACEOF
5608 cat confdefs.h >>conftest.$ac_ext
5609 cat >>conftest.$ac_ext <<_ACEOF
5610 /* end confdefs.h.  */
5612 int
5613 main ()
5615 #ifndef __GNUC__
5616        choke me
5617 #endif
5619   ;
5620   return 0;
5622 _ACEOF
5623 rm -f conftest.$ac_objext
5624 if { (ac_try="$ac_compile"
5625 case "(($ac_try" in
5626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5627   *) ac_try_echo=$ac_try;;
5628 esac
5629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5630   (eval "$ac_compile") 2>conftest.er1
5631   ac_status=$?
5632   grep -v '^ *+' conftest.er1 >conftest.err
5633   rm -f conftest.er1
5634   cat conftest.err >&5
5635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5636   (exit $ac_status); } && {
5637          test -z "$ac_cxx_werror_flag" ||
5638          test ! -s conftest.err
5639        } && test -s conftest.$ac_objext; then
5640   ac_compiler_gnu=yes
5641 else
5642   echo "$as_me: failed program was:" >&5
5643 sed 's/^/| /' conftest.$ac_ext >&5
5645         ac_compiler_gnu=no
5646 fi
5648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5649 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5651 fi
5652 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5653 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5654 GXX=`test $ac_compiler_gnu = yes && echo yes`
5655 ac_test_CXXFLAGS=${CXXFLAGS+set}
5656 ac_save_CXXFLAGS=$CXXFLAGS
5657 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5658 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5659 if test "${ac_cv_prog_cxx_g+set}" = set; then
5660   echo $ECHO_N "(cached) $ECHO_C" >&6
5661 else
5662   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5663    ac_cxx_werror_flag=yes
5664    ac_cv_prog_cxx_g=no
5665    CXXFLAGS="-g"
5666    cat >conftest.$ac_ext <<_ACEOF
5667 /* confdefs.h.  */
5668 _ACEOF
5669 cat confdefs.h >>conftest.$ac_ext
5670 cat >>conftest.$ac_ext <<_ACEOF
5671 /* end confdefs.h.  */
5673 int
5674 main ()
5677   ;
5678   return 0;
5680 _ACEOF
5681 rm -f conftest.$ac_objext
5682 if { (ac_try="$ac_compile"
5683 case "(($ac_try" in
5684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5685   *) ac_try_echo=$ac_try;;
5686 esac
5687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5688   (eval "$ac_compile") 2>conftest.er1
5689   ac_status=$?
5690   grep -v '^ *+' conftest.er1 >conftest.err
5691   rm -f conftest.er1
5692   cat conftest.err >&5
5693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5694   (exit $ac_status); } && {
5695          test -z "$ac_cxx_werror_flag" ||
5696          test ! -s conftest.err
5697        } && test -s conftest.$ac_objext; then
5698   ac_cv_prog_cxx_g=yes
5699 else
5700   echo "$as_me: failed program was:" >&5
5701 sed 's/^/| /' conftest.$ac_ext >&5
5703         CXXFLAGS=""
5704       cat >conftest.$ac_ext <<_ACEOF
5705 /* confdefs.h.  */
5706 _ACEOF
5707 cat confdefs.h >>conftest.$ac_ext
5708 cat >>conftest.$ac_ext <<_ACEOF
5709 /* end confdefs.h.  */
5711 int
5712 main ()
5715   ;
5716   return 0;
5718 _ACEOF
5719 rm -f conftest.$ac_objext
5720 if { (ac_try="$ac_compile"
5721 case "(($ac_try" in
5722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5723   *) ac_try_echo=$ac_try;;
5724 esac
5725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5726   (eval "$ac_compile") 2>conftest.er1
5727   ac_status=$?
5728   grep -v '^ *+' conftest.er1 >conftest.err
5729   rm -f conftest.er1
5730   cat conftest.err >&5
5731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5732   (exit $ac_status); } && {
5733          test -z "$ac_cxx_werror_flag" ||
5734          test ! -s conftest.err
5735        } && test -s conftest.$ac_objext; then
5736   :
5737 else
5738   echo "$as_me: failed program was:" >&5
5739 sed 's/^/| /' conftest.$ac_ext >&5
5741         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5742          CXXFLAGS="-g"
5743          cat >conftest.$ac_ext <<_ACEOF
5744 /* confdefs.h.  */
5745 _ACEOF
5746 cat confdefs.h >>conftest.$ac_ext
5747 cat >>conftest.$ac_ext <<_ACEOF
5748 /* end confdefs.h.  */
5750 int
5751 main ()
5754   ;
5755   return 0;
5757 _ACEOF
5758 rm -f conftest.$ac_objext
5759 if { (ac_try="$ac_compile"
5760 case "(($ac_try" in
5761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5762   *) ac_try_echo=$ac_try;;
5763 esac
5764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5765   (eval "$ac_compile") 2>conftest.er1
5766   ac_status=$?
5767   grep -v '^ *+' conftest.er1 >conftest.err
5768   rm -f conftest.er1
5769   cat conftest.err >&5
5770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5771   (exit $ac_status); } && {
5772          test -z "$ac_cxx_werror_flag" ||
5773          test ! -s conftest.err
5774        } && test -s conftest.$ac_objext; then
5775   ac_cv_prog_cxx_g=yes
5776 else
5777   echo "$as_me: failed program was:" >&5
5778 sed 's/^/| /' conftest.$ac_ext >&5
5781 fi
5783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5784 fi
5786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5787 fi
5789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5790    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5791 fi
5792 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5793 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5794 if test "$ac_test_CXXFLAGS" = set; then
5795   CXXFLAGS=$ac_save_CXXFLAGS
5796 elif test $ac_cv_prog_cxx_g = yes; then
5797   if test "$GXX" = yes; then
5798     CXXFLAGS="-g -O2"
5799   else
5800     CXXFLAGS="-g"
5801   fi
5802 else
5803   if test "$GXX" = yes; then
5804     CXXFLAGS="-O2"
5805   else
5806     CXXFLAGS=
5807   fi
5808 fi
5809 ac_ext=cpp
5810 ac_cpp='$CXXCPP $CPPFLAGS'
5811 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5812 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5813 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5815 depcc="$CXX"  am_compiler_list=
5817 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5818 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5819 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5820   echo $ECHO_N "(cached) $ECHO_C" >&6
5821 else
5822   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5823   # We make a subdir and do the tests there.  Otherwise we can end up
5824   # making bogus files that we don't know about and never remove.  For
5825   # instance it was reported that on HP-UX the gcc test will end up
5826   # making a dummy file named `D' -- because `-MD' means `put the output
5827   # in D'.
5828   mkdir conftest.dir
5829   # Copy depcomp to subdir because otherwise we won't find it if we're
5830   # using a relative directory.
5831   cp "$am_depcomp" conftest.dir
5832   cd conftest.dir
5833   # We will build objects and dependencies in a subdirectory because
5834   # it helps to detect inapplicable dependency modes.  For instance
5835   # both Tru64's cc and ICC support -MD to output dependencies as a
5836   # side effect of compilation, but ICC will put the dependencies in
5837   # the current directory while Tru64 will put them in the object
5838   # directory.
5839   mkdir sub
5841   am_cv_CXX_dependencies_compiler_type=none
5842   if test "$am_compiler_list" = ""; then
5843      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5844   fi
5845   for depmode in $am_compiler_list; do
5846     # Setup a source with many dependencies, because some compilers
5847     # like to wrap large dependency lists on column 80 (with \), and
5848     # we should not choose a depcomp mode which is confused by this.
5849     #
5850     # We need to recreate these files for each test, as the compiler may
5851     # overwrite some of them when testing with obscure command lines.
5852     # This happens at least with the AIX C compiler.
5853     : > sub/conftest.c
5854     for i in 1 2 3 4 5 6; do
5855       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5856       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5857       # Solaris 8's {/usr,}/bin/sh.
5858       touch sub/conftst$i.h
5859     done
5860     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5862     case $depmode in
5863     nosideeffect)
5864       # after this tag, mechanisms are not by side-effect, so they'll
5865       # only be used when explicitly requested
5866       if test "x$enable_dependency_tracking" = xyes; then
5867         continue
5868       else
5869         break
5870       fi
5871       ;;
5872     none) break ;;
5873     esac
5874     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5875     # mode.  It turns out that the SunPro C++ compiler does not properly
5876     # handle `-M -o', and we need to detect this.
5877     if depmode=$depmode \
5878        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5879        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5880        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5881          >/dev/null 2>conftest.err &&
5882        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5883        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5884        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5885       # icc doesn't choke on unknown options, it will just issue warnings
5886       # or remarks (even with -Werror).  So we grep stderr for any message
5887       # that says an option was ignored or not supported.
5888       # When given -MP, icc 7.0 and 7.1 complain thusly:
5889       #   icc: Command line warning: ignoring option '-M'; no argument required
5890       # The diagnosis changed in icc 8.0:
5891       #   icc: Command line remark: option '-MP' not supported
5892       if (grep 'ignoring option' conftest.err ||
5893           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5894         am_cv_CXX_dependencies_compiler_type=$depmode
5895         break
5896       fi
5897     fi
5898   done
5900   cd ..
5901   rm -rf conftest.dir
5902 else
5903   am_cv_CXX_dependencies_compiler_type=none
5904 fi
5906 fi
5907 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5908 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5909 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5913 if
5914   test "x$enable_dependency_tracking" != xno \
5915   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5916   am__fastdepCXX_TRUE=
5917   am__fastdepCXX_FALSE='#'
5918 else
5919   am__fastdepCXX_TRUE='#'
5920   am__fastdepCXX_FALSE=
5921 fi
5926 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5927     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5928     (test "X$CXX" != "Xg++"))) ; then
5929   ac_ext=cpp
5930 ac_cpp='$CXXCPP $CPPFLAGS'
5931 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5932 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5933 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5934 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5935 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5936 if test -z "$CXXCPP"; then
5937   if test "${ac_cv_prog_CXXCPP+set}" = set; then
5938   echo $ECHO_N "(cached) $ECHO_C" >&6
5939 else
5940       # Double quotes because CXXCPP needs to be expanded
5941     for CXXCPP in "$CXX -E" "/lib/cpp"
5942     do
5943       ac_preproc_ok=false
5944 for ac_cxx_preproc_warn_flag in '' yes
5945 do
5946   # Use a header file that comes with gcc, so configuring glibc
5947   # with a fresh cross-compiler works.
5948   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5949   # <limits.h> exists even on freestanding compilers.
5950   # On the NeXT, cc -E runs the code through the compiler's parser,
5951   # not just through cpp. "Syntax error" is here to catch this case.
5952   cat >conftest.$ac_ext <<_ACEOF
5953 /* confdefs.h.  */
5954 _ACEOF
5955 cat confdefs.h >>conftest.$ac_ext
5956 cat >>conftest.$ac_ext <<_ACEOF
5957 /* end confdefs.h.  */
5958 #ifdef __STDC__
5959 # include <limits.h>
5960 #else
5961 # include <assert.h>
5962 #endif
5963                      Syntax error
5964 _ACEOF
5965 if { (ac_try="$ac_cpp conftest.$ac_ext"
5966 case "(($ac_try" in
5967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5968   *) ac_try_echo=$ac_try;;
5969 esac
5970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5971   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5972   ac_status=$?
5973   grep -v '^ *+' conftest.er1 >conftest.err
5974   rm -f conftest.er1
5975   cat conftest.err >&5
5976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5977   (exit $ac_status); } >/dev/null && {
5978          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5979          test ! -s conftest.err
5980        }; then
5981   :
5982 else
5983   echo "$as_me: failed program was:" >&5
5984 sed 's/^/| /' conftest.$ac_ext >&5
5986   # Broken: fails on valid input.
5987 continue
5988 fi
5990 rm -f conftest.err conftest.$ac_ext
5992   # OK, works on sane cases.  Now check whether nonexistent headers
5993   # can be detected and how.
5994   cat >conftest.$ac_ext <<_ACEOF
5995 /* confdefs.h.  */
5996 _ACEOF
5997 cat confdefs.h >>conftest.$ac_ext
5998 cat >>conftest.$ac_ext <<_ACEOF
5999 /* end confdefs.h.  */
6000 #include <ac_nonexistent.h>
6001 _ACEOF
6002 if { (ac_try="$ac_cpp conftest.$ac_ext"
6003 case "(($ac_try" in
6004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6005   *) ac_try_echo=$ac_try;;
6006 esac
6007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6008   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6009   ac_status=$?
6010   grep -v '^ *+' conftest.er1 >conftest.err
6011   rm -f conftest.er1
6012   cat conftest.err >&5
6013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6014   (exit $ac_status); } >/dev/null && {
6015          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6016          test ! -s conftest.err
6017        }; then
6018   # Broken: success on invalid input.
6019 continue
6020 else
6021   echo "$as_me: failed program was:" >&5
6022 sed 's/^/| /' conftest.$ac_ext >&5
6024   # Passes both tests.
6025 ac_preproc_ok=:
6026 break
6027 fi
6029 rm -f conftest.err conftest.$ac_ext
6031 done
6032 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6033 rm -f conftest.err conftest.$ac_ext
6034 if $ac_preproc_ok; then
6035   break
6036 fi
6038     done
6039     ac_cv_prog_CXXCPP=$CXXCPP
6041 fi
6042   CXXCPP=$ac_cv_prog_CXXCPP
6043 else
6044   ac_cv_prog_CXXCPP=$CXXCPP
6045 fi
6046 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
6047 echo "${ECHO_T}$CXXCPP" >&6; }
6048 ac_preproc_ok=false
6049 for ac_cxx_preproc_warn_flag in '' yes
6050 do
6051   # Use a header file that comes with gcc, so configuring glibc
6052   # with a fresh cross-compiler works.
6053   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6054   # <limits.h> exists even on freestanding compilers.
6055   # On the NeXT, cc -E runs the code through the compiler's parser,
6056   # not just through cpp. "Syntax error" is here to catch this case.
6057   cat >conftest.$ac_ext <<_ACEOF
6058 /* confdefs.h.  */
6059 _ACEOF
6060 cat confdefs.h >>conftest.$ac_ext
6061 cat >>conftest.$ac_ext <<_ACEOF
6062 /* end confdefs.h.  */
6063 #ifdef __STDC__
6064 # include <limits.h>
6065 #else
6066 # include <assert.h>
6067 #endif
6068                      Syntax error
6069 _ACEOF
6070 if { (ac_try="$ac_cpp conftest.$ac_ext"
6071 case "(($ac_try" in
6072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6073   *) ac_try_echo=$ac_try;;
6074 esac
6075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6076   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6077   ac_status=$?
6078   grep -v '^ *+' conftest.er1 >conftest.err
6079   rm -f conftest.er1
6080   cat conftest.err >&5
6081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6082   (exit $ac_status); } >/dev/null && {
6083          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6084          test ! -s conftest.err
6085        }; then
6086   :
6087 else
6088   echo "$as_me: failed program was:" >&5
6089 sed 's/^/| /' conftest.$ac_ext >&5
6091   # Broken: fails on valid input.
6092 continue
6093 fi
6095 rm -f conftest.err conftest.$ac_ext
6097   # OK, works on sane cases.  Now check whether nonexistent headers
6098   # can be detected and how.
6099   cat >conftest.$ac_ext <<_ACEOF
6100 /* confdefs.h.  */
6101 _ACEOF
6102 cat confdefs.h >>conftest.$ac_ext
6103 cat >>conftest.$ac_ext <<_ACEOF
6104 /* end confdefs.h.  */
6105 #include <ac_nonexistent.h>
6106 _ACEOF
6107 if { (ac_try="$ac_cpp conftest.$ac_ext"
6108 case "(($ac_try" in
6109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6110   *) ac_try_echo=$ac_try;;
6111 esac
6112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6113   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6114   ac_status=$?
6115   grep -v '^ *+' conftest.er1 >conftest.err
6116   rm -f conftest.er1
6117   cat conftest.err >&5
6118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6119   (exit $ac_status); } >/dev/null && {
6120          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6121          test ! -s conftest.err
6122        }; then
6123   # Broken: success on invalid input.
6124 continue
6125 else
6126   echo "$as_me: failed program was:" >&5
6127 sed 's/^/| /' conftest.$ac_ext >&5
6129   # Passes both tests.
6130 ac_preproc_ok=:
6131 break
6132 fi
6134 rm -f conftest.err conftest.$ac_ext
6136 done
6137 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6138 rm -f conftest.err conftest.$ac_ext
6139 if $ac_preproc_ok; then
6140   :
6141 else
6142   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6143 See \`config.log' for more details." >&5
6144 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6145 See \`config.log' for more details." >&2;}
6146    { (exit 1); exit 1; }; }
6147 fi
6149 ac_ext=cpp
6150 ac_cpp='$CXXCPP $CPPFLAGS'
6151 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6152 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6153 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6155 fi
6158 ac_ext=f
6159 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6160 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6161 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6162 if test -n "$ac_tool_prefix"; then
6163   for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
6164   do
6165     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6166 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6167 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6169 if test "${ac_cv_prog_F77+set}" = set; then
6170   echo $ECHO_N "(cached) $ECHO_C" >&6
6171 else
6172   if test -n "$F77"; then
6173   ac_cv_prog_F77="$F77" # Let the user override the test.
6174 else
6175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6176 for as_dir in $PATH
6177 do
6178   IFS=$as_save_IFS
6179   test -z "$as_dir" && as_dir=.
6180   for ac_exec_ext in '' $ac_executable_extensions; do
6181   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6182     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6183     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6184     break 2
6185   fi
6186 done
6187 done
6188 IFS=$as_save_IFS
6190 fi
6191 fi
6192 F77=$ac_cv_prog_F77
6193 if test -n "$F77"; then
6194   { echo "$as_me:$LINENO: result: $F77" >&5
6195 echo "${ECHO_T}$F77" >&6; }
6196 else
6197   { echo "$as_me:$LINENO: result: no" >&5
6198 echo "${ECHO_T}no" >&6; }
6199 fi
6202     test -n "$F77" && break
6203   done
6204 fi
6205 if test -z "$F77"; then
6206   ac_ct_F77=$F77
6207   for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
6208 do
6209   # Extract the first word of "$ac_prog", so it can be a program name with args.
6210 set dummy $ac_prog; ac_word=$2
6211 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6212 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6213 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6214   echo $ECHO_N "(cached) $ECHO_C" >&6
6215 else
6216   if test -n "$ac_ct_F77"; then
6217   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6218 else
6219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6220 for as_dir in $PATH
6221 do
6222   IFS=$as_save_IFS
6223   test -z "$as_dir" && as_dir=.
6224   for ac_exec_ext in '' $ac_executable_extensions; do
6225   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6226     ac_cv_prog_ac_ct_F77="$ac_prog"
6227     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6228     break 2
6229   fi
6230 done
6231 done
6232 IFS=$as_save_IFS
6234 fi
6235 fi
6236 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6237 if test -n "$ac_ct_F77"; then
6238   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6239 echo "${ECHO_T}$ac_ct_F77" >&6; }
6240 else
6241   { echo "$as_me:$LINENO: result: no" >&5
6242 echo "${ECHO_T}no" >&6; }
6243 fi
6246   test -n "$ac_ct_F77" && break
6247 done
6249   if test "x$ac_ct_F77" = x; then
6250     F77=""
6251   else
6252     case $cross_compiling:$ac_tool_warned in
6253 yes:)
6254 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6255 whose name does not start with the host triplet.  If you think this
6256 configuration is useful to you, please write to autoconf@gnu.org." >&5
6257 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6258 whose name does not start with the host triplet.  If you think this
6259 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6260 ac_tool_warned=yes ;;
6261 esac
6262     F77=$ac_ct_F77
6263   fi
6264 fi
6267 # Provide some information about the compiler.
6268 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6269 ac_compiler=`set X $ac_compile; echo $2`
6270 { (ac_try="$ac_compiler --version >&5"
6271 case "(($ac_try" in
6272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6273   *) ac_try_echo=$ac_try;;
6274 esac
6275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6276   (eval "$ac_compiler --version >&5") 2>&5
6277   ac_status=$?
6278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6279   (exit $ac_status); }
6280 { (ac_try="$ac_compiler -v >&5"
6281 case "(($ac_try" in
6282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6283   *) ac_try_echo=$ac_try;;
6284 esac
6285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6286   (eval "$ac_compiler -v >&5") 2>&5
6287   ac_status=$?
6288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6289   (exit $ac_status); }
6290 { (ac_try="$ac_compiler -V >&5"
6291 case "(($ac_try" in
6292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6293   *) ac_try_echo=$ac_try;;
6294 esac
6295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6296   (eval "$ac_compiler -V >&5") 2>&5
6297   ac_status=$?
6298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6299   (exit $ac_status); }
6300 rm -f a.out
6302 # If we don't use `.F' as extension, the preprocessor is not run on the
6303 # input file.  (Note that this only needs to work for GNU compilers.)
6304 ac_save_ext=$ac_ext
6305 ac_ext=F
6306 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6307 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6308 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6309   echo $ECHO_N "(cached) $ECHO_C" >&6
6310 else
6311   cat >conftest.$ac_ext <<_ACEOF
6312       program main
6313 #ifndef __GNUC__
6314        choke me
6315 #endif
6317       end
6318 _ACEOF
6319 rm -f conftest.$ac_objext
6320 if { (ac_try="$ac_compile"
6321 case "(($ac_try" in
6322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6323   *) ac_try_echo=$ac_try;;
6324 esac
6325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6326   (eval "$ac_compile") 2>conftest.er1
6327   ac_status=$?
6328   grep -v '^ *+' conftest.er1 >conftest.err
6329   rm -f conftest.er1
6330   cat conftest.err >&5
6331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6332   (exit $ac_status); } && {
6333          test -z "$ac_f77_werror_flag" ||
6334          test ! -s conftest.err
6335        } && test -s conftest.$ac_objext; then
6336   ac_compiler_gnu=yes
6337 else
6338   echo "$as_me: failed program was:" >&5
6339 sed 's/^/| /' conftest.$ac_ext >&5
6341         ac_compiler_gnu=no
6342 fi
6344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6345 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6347 fi
6348 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6349 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6350 ac_ext=$ac_save_ext
6351 ac_test_FFLAGS=${FFLAGS+set}
6352 ac_save_FFLAGS=$FFLAGS
6353 FFLAGS=
6354 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6355 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6356 if test "${ac_cv_prog_f77_g+set}" = set; then
6357   echo $ECHO_N "(cached) $ECHO_C" >&6
6358 else
6359   FFLAGS=-g
6360 cat >conftest.$ac_ext <<_ACEOF
6361       program main
6363       end
6364 _ACEOF
6365 rm -f conftest.$ac_objext
6366 if { (ac_try="$ac_compile"
6367 case "(($ac_try" in
6368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6369   *) ac_try_echo=$ac_try;;
6370 esac
6371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6372   (eval "$ac_compile") 2>conftest.er1
6373   ac_status=$?
6374   grep -v '^ *+' conftest.er1 >conftest.err
6375   rm -f conftest.er1
6376   cat conftest.err >&5
6377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6378   (exit $ac_status); } && {
6379          test -z "$ac_f77_werror_flag" ||
6380          test ! -s conftest.err
6381        } && test -s conftest.$ac_objext; then
6382   ac_cv_prog_f77_g=yes
6383 else
6384   echo "$as_me: failed program was:" >&5
6385 sed 's/^/| /' conftest.$ac_ext >&5
6387         ac_cv_prog_f77_g=no
6388 fi
6390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6392 fi
6393 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6394 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6395 if test "$ac_test_FFLAGS" = set; then
6396   FFLAGS=$ac_save_FFLAGS
6397 elif test $ac_cv_prog_f77_g = yes; then
6398   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6399     FFLAGS="-g -O2"
6400   else
6401     FFLAGS="-g"
6402   fi
6403 else
6404   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6405     FFLAGS="-O2"
6406   else
6407     FFLAGS=
6408   fi
6409 fi
6411 G77=`test $ac_compiler_gnu = yes && echo yes`
6412 ac_ext=c
6413 ac_cpp='$CPP $CPPFLAGS'
6414 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6415 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6416 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6420 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6421 # find the maximum length of command line arguments
6422 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6423 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6424 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6425   echo $ECHO_N "(cached) $ECHO_C" >&6
6426 else
6427     i=0
6428   teststring="ABCD"
6430   case $build_os in
6431   msdosdjgpp*)
6432     # On DJGPP, this test can blow up pretty badly due to problems in libc
6433     # (any single argument exceeding 2000 bytes causes a buffer overrun
6434     # during glob expansion).  Even if it were fixed, the result of this
6435     # check would be larger than it should be.
6436     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6437     ;;
6439   gnu*)
6440     # Under GNU Hurd, this test is not required because there is
6441     # no limit to the length of command line arguments.
6442     # Libtool will interpret -1 as no limit whatsoever
6443     lt_cv_sys_max_cmd_len=-1;
6444     ;;
6446   cygwin* | mingw*)
6447     # On Win9x/ME, this test blows up -- it succeeds, but takes
6448     # about 5 minutes as the teststring grows exponentially.
6449     # Worse, since 9x/ME are not pre-emptively multitasking,
6450     # you end up with a "frozen" computer, even though with patience
6451     # the test eventually succeeds (with a max line length of 256k).
6452     # Instead, let's just punt: use the minimum linelength reported by
6453     # all of the supported platforms: 8192 (on NT/2K/XP).
6454     lt_cv_sys_max_cmd_len=8192;
6455     ;;
6457   amigaos*)
6458     # On AmigaOS with pdksh, this test takes hours, literally.
6459     # So we just punt and use a minimum line length of 8192.
6460     lt_cv_sys_max_cmd_len=8192;
6461     ;;
6463   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6464     # This has been around since 386BSD, at least.  Likely further.
6465     if test -x /sbin/sysctl; then
6466       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6467     elif test -x /usr/sbin/sysctl; then
6468       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6469     else
6470       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6471     fi
6472     # And add a safety zone
6473     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6474     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6475     ;;
6477   interix*)
6478     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6479     lt_cv_sys_max_cmd_len=196608
6480     ;;
6482   osf*)
6483     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6484     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6485     # nice to cause kernel panics so lets avoid the loop below.
6486     # First set a reasonable default.
6487     lt_cv_sys_max_cmd_len=16384
6488     #
6489     if test -x /sbin/sysconfig; then
6490       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6491         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6492       esac
6493     fi
6494     ;;
6495   sco3.2v5*)
6496     lt_cv_sys_max_cmd_len=102400
6497     ;;
6498   sysv5* | sco5v6* | sysv4.2uw2*)
6499     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6500     if test -n "$kargmax"; then
6501       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6502     else
6503       lt_cv_sys_max_cmd_len=32768
6504     fi
6505     ;;
6506   *)
6507     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6508     if test -n "$lt_cv_sys_max_cmd_len"; then
6509       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6510       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6511     else
6512       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6513       while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6514                = "XX$teststring") >/dev/null 2>&1 &&
6515               new_result=`expr "X$teststring" : ".*" 2>&1` &&
6516               lt_cv_sys_max_cmd_len=$new_result &&
6517               test $i != 17 # 1/2 MB should be enough
6518       do
6519         i=`expr $i + 1`
6520         teststring=$teststring$teststring
6521       done
6522       teststring=
6523       # Add a significant safety factor because C++ compilers can tack on massive
6524       # amounts of additional arguments before passing them to the linker.
6525       # It appears as though 1/2 is a usable value.
6526       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6527     fi
6528     ;;
6529   esac
6531 fi
6533 if test -n $lt_cv_sys_max_cmd_len ; then
6534   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6535 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6536 else
6537   { echo "$as_me:$LINENO: result: none" >&5
6538 echo "${ECHO_T}none" >&6; }
6539 fi
6545 # Check for command to grab the raw symbol name followed by C symbol from nm.
6546 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6547 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6548 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6549   echo $ECHO_N "(cached) $ECHO_C" >&6
6550 else
6552 # These are sane defaults that work on at least a few old systems.
6553 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6555 # Character class describing NM global symbol codes.
6556 symcode='[BCDEGRST]'
6558 # Regexp to match symbols that can be accessed directly from C.
6559 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6561 # Transform an extracted symbol line into a proper C declaration
6562 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6564 # Transform an extracted symbol line into symbol name and symbol address
6565 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
6567 # Define system-specific variables.
6568 case $host_os in
6569 aix*)
6570   symcode='[BCDT]'
6571   ;;
6572 cygwin* | mingw* | pw32*)
6573   symcode='[ABCDGISTW]'
6574   ;;
6575 hpux*) # Its linker distinguishes data from code symbols
6576   if test "$host_cpu" = ia64; then
6577     symcode='[ABCDEGRST]'
6578   fi
6579   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6580   lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
6581   ;;
6582 linux* | k*bsd*-gnu)
6583   if test "$host_cpu" = ia64; then
6584     symcode='[ABCDGIRSTW]'
6585     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6586     lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
6587   fi
6588   ;;
6589 irix* | nonstopux*)
6590   symcode='[BCDEGRST]'
6591   ;;
6592 osf*)
6593   symcode='[BCDEGQRST]'
6594   ;;
6595 solaris*)
6596   symcode='[BDRT]'
6597   ;;
6598 sco3.2v5*)
6599   symcode='[DT]'
6600   ;;
6601 sysv4.2uw2*)
6602   symcode='[DT]'
6603   ;;
6604 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6605   symcode='[ABDT]'
6606   ;;
6607 sysv4)
6608   symcode='[DFNSTU]'
6609   ;;
6610 esac
6612 # Handle CRLF in mingw tool chain
6613 opt_cr=
6614 case $build_os in
6615 mingw*)
6616   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6617   ;;
6618 esac
6620 # If we're using GNU nm, then use its standard symbol codes.
6621 case `$NM -V 2>&1` in
6622 *GNU* | *'with BFD'*)
6623   symcode='[ABCDGIRSTW]' ;;
6624 esac
6626 # Try without a prefix undercore, then with it.
6627 for ac_symprfx in "" "_"; do
6629   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6630   symxfrm="\\1 $ac_symprfx\\2 \\2"
6632   # Write the raw and C identifiers.
6633   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6635   # Check to see that the pipe works correctly.
6636   pipe_works=no
6638   rm -f conftest*
6639   cat > conftest.$ac_ext <<EOF
6640 #ifdef __cplusplus
6641 extern "C" {
6642 #endif
6643 char nm_test_var;
6644 void nm_test_func(){}
6645 #ifdef __cplusplus
6647 #endif
6648 int main(){nm_test_var='a';nm_test_func();return(0);}
6649 EOF
6651   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6652   (eval $ac_compile) 2>&5
6653   ac_status=$?
6654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6655   (exit $ac_status); }; then
6656     # Now try to grab the symbols.
6657     nlist=conftest.nm
6658     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6659   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6660   ac_status=$?
6661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6662   (exit $ac_status); } && test -s "$nlist"; then
6663       # Try sorting and uniquifying the output.
6664       if sort "$nlist" | uniq > "$nlist"T; then
6665         mv -f "$nlist"T "$nlist"
6666       else
6667         rm -f "$nlist"T
6668       fi
6670       # Make sure that we snagged all the symbols we need.
6671       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6672         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6673           cat <<EOF > conftest.$ac_ext
6674 #ifdef __cplusplus
6675 extern "C" {
6676 #endif
6678 EOF
6679           # Now generate the symbol file.
6680           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6682           cat <<EOF >> conftest.$ac_ext
6683 #if defined (__STDC__) && __STDC__
6684 # define lt_ptr_t void *
6685 #else
6686 # define lt_ptr_t char *
6687 # define const
6688 #endif
6690 /* The mapping between symbol names and symbols. */
6691 const struct {
6692   const char *name;
6693   lt_ptr_t address;
6695 lt_preloaded_symbols[] =
6697 EOF
6698           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6699           cat <<\EOF >> conftest.$ac_ext
6700   {0, (lt_ptr_t) 0}
6701 };
6703 #ifdef __cplusplus
6705 #endif
6706 EOF
6707           # Now try linking the two files.
6708           mv conftest.$ac_objext conftstm.$ac_objext
6709           lt_save_LIBS="$LIBS"
6710           lt_save_CFLAGS="$CFLAGS"
6711           LIBS="conftstm.$ac_objext"
6712           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6713           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6714   (eval $ac_link) 2>&5
6715   ac_status=$?
6716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6717   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6718             pipe_works=yes
6719           fi
6720           LIBS="$lt_save_LIBS"
6721           CFLAGS="$lt_save_CFLAGS"
6722         else
6723           echo "cannot find nm_test_func in $nlist" >&5
6724         fi
6725       else
6726         echo "cannot find nm_test_var in $nlist" >&5
6727       fi
6728     else
6729       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6730     fi
6731   else
6732     echo "$progname: failed program was:" >&5
6733     cat conftest.$ac_ext >&5
6734   fi
6735   rm -rf conftest* conftst*
6737   # Do not use the global_symbol_pipe unless it works.
6738   if test "$pipe_works" = yes; then
6739     break
6740   else
6741     lt_cv_sys_global_symbol_pipe=
6742   fi
6743 done
6745 fi
6747 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6748   lt_cv_sys_global_symbol_to_cdecl=
6749 fi
6750 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6751   { echo "$as_me:$LINENO: result: failed" >&5
6752 echo "${ECHO_T}failed" >&6; }
6753 else
6754   { echo "$as_me:$LINENO: result: ok" >&5
6755 echo "${ECHO_T}ok" >&6; }
6756 fi
6758 { echo "$as_me:$LINENO: checking for objdir" >&5
6759 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6760 if test "${lt_cv_objdir+set}" = set; then
6761   echo $ECHO_N "(cached) $ECHO_C" >&6
6762 else
6763   rm -f .libs 2>/dev/null
6764 mkdir .libs 2>/dev/null
6765 if test -d .libs; then
6766   lt_cv_objdir=.libs
6767 else
6768   # MS-DOS does not allow filenames that begin with a dot.
6769   lt_cv_objdir=_libs
6770 fi
6771 rmdir .libs 2>/dev/null
6772 fi
6773 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6774 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6775 objdir=$lt_cv_objdir
6781 case $host_os in
6782 aix3*)
6783   # AIX sometimes has problems with the GCC collect2 program.  For some
6784   # reason, if we set the COLLECT_NAMES environment variable, the problems
6785   # vanish in a puff of smoke.
6786   if test "X${COLLECT_NAMES+set}" != Xset; then
6787     COLLECT_NAMES=
6788     export COLLECT_NAMES
6789   fi
6790   ;;
6791 esac
6793 # Sed substitution that helps us do robust quoting.  It backslashifies
6794 # metacharacters that are still active within double-quoted strings.
6795 Xsed='sed -e 1s/^X//'
6796 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6798 # Same as above, but do not quote variable references.
6799 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6801 # Sed substitution to delay expansion of an escaped shell variable in a
6802 # double_quote_subst'ed string.
6803 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6805 # Sed substitution to avoid accidental globbing in evaled expressions
6806 no_glob_subst='s/\*/\\\*/g'
6808 # Constants:
6809 rm="rm -f"
6811 # Global variables:
6812 default_ofile=libtool
6813 can_build_shared=yes
6815 # All known linkers require a `.a' archive for static linking (except MSVC,
6816 # which needs '.lib').
6817 libext=a
6818 ltmain="$ac_aux_dir/ltmain.sh"
6819 ofile="$default_ofile"
6820 with_gnu_ld="$lt_cv_prog_gnu_ld"
6822 if test -n "$ac_tool_prefix"; then
6823   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6824 set dummy ${ac_tool_prefix}ar; ac_word=$2
6825 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6827 if test "${ac_cv_prog_AR+set}" = set; then
6828   echo $ECHO_N "(cached) $ECHO_C" >&6
6829 else
6830   if test -n "$AR"; then
6831   ac_cv_prog_AR="$AR" # Let the user override the test.
6832 else
6833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6834 for as_dir in $PATH
6835 do
6836   IFS=$as_save_IFS
6837   test -z "$as_dir" && as_dir=.
6838   for ac_exec_ext in '' $ac_executable_extensions; do
6839   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6840     ac_cv_prog_AR="${ac_tool_prefix}ar"
6841     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6842     break 2
6843   fi
6844 done
6845 done
6846 IFS=$as_save_IFS
6848 fi
6849 fi
6850 AR=$ac_cv_prog_AR
6851 if test -n "$AR"; then
6852   { echo "$as_me:$LINENO: result: $AR" >&5
6853 echo "${ECHO_T}$AR" >&6; }
6854 else
6855   { echo "$as_me:$LINENO: result: no" >&5
6856 echo "${ECHO_T}no" >&6; }
6857 fi
6860 fi
6861 if test -z "$ac_cv_prog_AR"; then
6862   ac_ct_AR=$AR
6863   # Extract the first word of "ar", so it can be a program name with args.
6864 set dummy ar; ac_word=$2
6865 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6867 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6868   echo $ECHO_N "(cached) $ECHO_C" >&6
6869 else
6870   if test -n "$ac_ct_AR"; then
6871   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6872 else
6873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6874 for as_dir in $PATH
6875 do
6876   IFS=$as_save_IFS
6877   test -z "$as_dir" && as_dir=.
6878   for ac_exec_ext in '' $ac_executable_extensions; do
6879   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6880     ac_cv_prog_ac_ct_AR="ar"
6881     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6882     break 2
6883   fi
6884 done
6885 done
6886 IFS=$as_save_IFS
6888 fi
6889 fi
6890 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6891 if test -n "$ac_ct_AR"; then
6892   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6893 echo "${ECHO_T}$ac_ct_AR" >&6; }
6894 else
6895   { echo "$as_me:$LINENO: result: no" >&5
6896 echo "${ECHO_T}no" >&6; }
6897 fi
6899   if test "x$ac_ct_AR" = x; then
6900     AR="false"
6901   else
6902     case $cross_compiling:$ac_tool_warned in
6903 yes:)
6904 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6905 whose name does not start with the host triplet.  If you think this
6906 configuration is useful to you, please write to autoconf@gnu.org." >&5
6907 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6908 whose name does not start with the host triplet.  If you think this
6909 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6910 ac_tool_warned=yes ;;
6911 esac
6912     AR=$ac_ct_AR
6913   fi
6914 else
6915   AR="$ac_cv_prog_AR"
6916 fi
6918 if test -n "$ac_tool_prefix"; then
6919   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6920 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6921 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6923 if test "${ac_cv_prog_RANLIB+set}" = set; then
6924   echo $ECHO_N "(cached) $ECHO_C" >&6
6925 else
6926   if test -n "$RANLIB"; then
6927   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6928 else
6929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6930 for as_dir in $PATH
6931 do
6932   IFS=$as_save_IFS
6933   test -z "$as_dir" && as_dir=.
6934   for ac_exec_ext in '' $ac_executable_extensions; do
6935   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6936     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6937     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6938     break 2
6939   fi
6940 done
6941 done
6942 IFS=$as_save_IFS
6944 fi
6945 fi
6946 RANLIB=$ac_cv_prog_RANLIB
6947 if test -n "$RANLIB"; then
6948   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6949 echo "${ECHO_T}$RANLIB" >&6; }
6950 else
6951   { echo "$as_me:$LINENO: result: no" >&5
6952 echo "${ECHO_T}no" >&6; }
6953 fi
6956 fi
6957 if test -z "$ac_cv_prog_RANLIB"; then
6958   ac_ct_RANLIB=$RANLIB
6959   # Extract the first word of "ranlib", so it can be a program name with args.
6960 set dummy ranlib; ac_word=$2
6961 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6963 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6964   echo $ECHO_N "(cached) $ECHO_C" >&6
6965 else
6966   if test -n "$ac_ct_RANLIB"; then
6967   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6968 else
6969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6970 for as_dir in $PATH
6971 do
6972   IFS=$as_save_IFS
6973   test -z "$as_dir" && as_dir=.
6974   for ac_exec_ext in '' $ac_executable_extensions; do
6975   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6976     ac_cv_prog_ac_ct_RANLIB="ranlib"
6977     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6978     break 2
6979   fi
6980 done
6981 done
6982 IFS=$as_save_IFS
6984 fi
6985 fi
6986 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6987 if test -n "$ac_ct_RANLIB"; then
6988   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6989 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6990 else
6991   { echo "$as_me:$LINENO: result: no" >&5
6992 echo "${ECHO_T}no" >&6; }
6993 fi
6995   if test "x$ac_ct_RANLIB" = x; then
6996     RANLIB=":"
6997   else
6998     case $cross_compiling:$ac_tool_warned in
6999 yes:)
7000 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7001 whose name does not start with the host triplet.  If you think this
7002 configuration is useful to you, please write to autoconf@gnu.org." >&5
7003 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7004 whose name does not start with the host triplet.  If you think this
7005 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7006 ac_tool_warned=yes ;;
7007 esac
7008     RANLIB=$ac_ct_RANLIB
7009   fi
7010 else
7011   RANLIB="$ac_cv_prog_RANLIB"
7012 fi
7014 if test -n "$ac_tool_prefix"; then
7015   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7016 set dummy ${ac_tool_prefix}strip; ac_word=$2
7017 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7018 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7019 if test "${ac_cv_prog_STRIP+set}" = set; then
7020   echo $ECHO_N "(cached) $ECHO_C" >&6
7021 else
7022   if test -n "$STRIP"; then
7023   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7024 else
7025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7026 for as_dir in $PATH
7027 do
7028   IFS=$as_save_IFS
7029   test -z "$as_dir" && as_dir=.
7030   for ac_exec_ext in '' $ac_executable_extensions; do
7031   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7032     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7033     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7034     break 2
7035   fi
7036 done
7037 done
7038 IFS=$as_save_IFS
7040 fi
7041 fi
7042 STRIP=$ac_cv_prog_STRIP
7043 if test -n "$STRIP"; then
7044   { echo "$as_me:$LINENO: result: $STRIP" >&5
7045 echo "${ECHO_T}$STRIP" >&6; }
7046 else
7047   { echo "$as_me:$LINENO: result: no" >&5
7048 echo "${ECHO_T}no" >&6; }
7049 fi
7052 fi
7053 if test -z "$ac_cv_prog_STRIP"; then
7054   ac_ct_STRIP=$STRIP
7055   # Extract the first word of "strip", so it can be a program name with args.
7056 set dummy strip; ac_word=$2
7057 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7058 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7059 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7060   echo $ECHO_N "(cached) $ECHO_C" >&6
7061 else
7062   if test -n "$ac_ct_STRIP"; then
7063   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7064 else
7065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7066 for as_dir in $PATH
7067 do
7068   IFS=$as_save_IFS
7069   test -z "$as_dir" && as_dir=.
7070   for ac_exec_ext in '' $ac_executable_extensions; do
7071   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7072     ac_cv_prog_ac_ct_STRIP="strip"
7073     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7074     break 2
7075   fi
7076 done
7077 done
7078 IFS=$as_save_IFS
7080 fi
7081 fi
7082 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7083 if test -n "$ac_ct_STRIP"; then
7084   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7085 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7086 else
7087   { echo "$as_me:$LINENO: result: no" >&5
7088 echo "${ECHO_T}no" >&6; }
7089 fi
7091   if test "x$ac_ct_STRIP" = x; then
7092     STRIP=":"
7093   else
7094     case $cross_compiling:$ac_tool_warned in
7095 yes:)
7096 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7097 whose name does not start with the host triplet.  If you think this
7098 configuration is useful to you, please write to autoconf@gnu.org." >&5
7099 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7100 whose name does not start with the host triplet.  If you think this
7101 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7102 ac_tool_warned=yes ;;
7103 esac
7104     STRIP=$ac_ct_STRIP
7105   fi
7106 else
7107   STRIP="$ac_cv_prog_STRIP"
7108 fi
7111 old_CC="$CC"
7112 old_CFLAGS="$CFLAGS"
7114 # Set sane defaults for various variables
7115 test -z "$AR" && AR=ar
7116 test -z "$AR_FLAGS" && AR_FLAGS=cru
7117 test -z "$AS" && AS=as
7118 test -z "$CC" && CC=cc
7119 test -z "$LTCC" && LTCC=$CC
7120 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7121 test -z "$DLLTOOL" && DLLTOOL=dlltool
7122 test -z "$LD" && LD=ld
7123 test -z "$LN_S" && LN_S="ln -s"
7124 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7125 test -z "$NM" && NM=nm
7126 test -z "$SED" && SED=sed
7127 test -z "$OBJDUMP" && OBJDUMP=objdump
7128 test -z "$RANLIB" && RANLIB=:
7129 test -z "$STRIP" && STRIP=:
7130 test -z "$ac_objext" && ac_objext=o
7132 # Determine commands to create old-style static archives.
7133 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7134 old_postinstall_cmds='chmod 644 $oldlib'
7135 old_postuninstall_cmds=
7137 if test -n "$RANLIB"; then
7138   case $host_os in
7139   openbsd*)
7140     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7141     ;;
7142   *)
7143     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7144     ;;
7145   esac
7146   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7147 fi
7149 for cc_temp in $compiler""; do
7150   case $cc_temp in
7151     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7152     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7153     \-*) ;;
7154     *) break;;
7155   esac
7156 done
7157 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7160 # Only perform the check for file, if the check method requires it
7161 case $deplibs_check_method in
7162 file_magic*)
7163   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7164     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7165 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7166 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7167   echo $ECHO_N "(cached) $ECHO_C" >&6
7168 else
7169   case $MAGIC_CMD in
7170 [\\/*] |  ?:[\\/]*)
7171   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7172   ;;
7173 *)
7174   lt_save_MAGIC_CMD="$MAGIC_CMD"
7175   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7176   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7177   for ac_dir in $ac_dummy; do
7178     IFS="$lt_save_ifs"
7179     test -z "$ac_dir" && ac_dir=.
7180     if test -f $ac_dir/${ac_tool_prefix}file; then
7181       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7182       if test -n "$file_magic_test_file"; then
7183         case $deplibs_check_method in
7184         "file_magic "*)
7185           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7186           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7187           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7188             $EGREP "$file_magic_regex" > /dev/null; then
7189             :
7190           else
7191             cat <<EOF 1>&2
7193 *** Warning: the command libtool uses to detect shared libraries,
7194 *** $file_magic_cmd, produces output that libtool cannot recognize.
7195 *** The result is that libtool may fail to recognize shared libraries
7196 *** as such.  This will affect the creation of libtool libraries that
7197 *** depend on shared libraries, but programs linked with such libtool
7198 *** libraries will work regardless of this problem.  Nevertheless, you
7199 *** may want to report the problem to your system manager and/or to
7200 *** bug-libtool@gnu.org
7202 EOF
7203           fi ;;
7204         esac
7205       fi
7206       break
7207     fi
7208   done
7209   IFS="$lt_save_ifs"
7210   MAGIC_CMD="$lt_save_MAGIC_CMD"
7211   ;;
7212 esac
7213 fi
7215 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7216 if test -n "$MAGIC_CMD"; then
7217   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7218 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7219 else
7220   { echo "$as_me:$LINENO: result: no" >&5
7221 echo "${ECHO_T}no" >&6; }
7222 fi
7224 if test -z "$lt_cv_path_MAGIC_CMD"; then
7225   if test -n "$ac_tool_prefix"; then
7226     { echo "$as_me:$LINENO: checking for file" >&5
7227 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7228 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7229   echo $ECHO_N "(cached) $ECHO_C" >&6
7230 else
7231   case $MAGIC_CMD in
7232 [\\/*] |  ?:[\\/]*)
7233   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7234   ;;
7235 *)
7236   lt_save_MAGIC_CMD="$MAGIC_CMD"
7237   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7238   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7239   for ac_dir in $ac_dummy; do
7240     IFS="$lt_save_ifs"
7241     test -z "$ac_dir" && ac_dir=.
7242     if test -f $ac_dir/file; then
7243       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7244       if test -n "$file_magic_test_file"; then
7245         case $deplibs_check_method in
7246         "file_magic "*)
7247           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7248           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7249           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7250             $EGREP "$file_magic_regex" > /dev/null; then
7251             :
7252           else
7253             cat <<EOF 1>&2
7255 *** Warning: the command libtool uses to detect shared libraries,
7256 *** $file_magic_cmd, produces output that libtool cannot recognize.
7257 *** The result is that libtool may fail to recognize shared libraries
7258 *** as such.  This will affect the creation of libtool libraries that
7259 *** depend on shared libraries, but programs linked with such libtool
7260 *** libraries will work regardless of this problem.  Nevertheless, you
7261 *** may want to report the problem to your system manager and/or to
7262 *** bug-libtool@gnu.org
7264 EOF
7265           fi ;;
7266         esac
7267       fi
7268       break
7269     fi
7270   done
7271   IFS="$lt_save_ifs"
7272   MAGIC_CMD="$lt_save_MAGIC_CMD"
7273   ;;
7274 esac
7275 fi
7277 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7278 if test -n "$MAGIC_CMD"; then
7279   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7280 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7281 else
7282   { echo "$as_me:$LINENO: result: no" >&5
7283 echo "${ECHO_T}no" >&6; }
7284 fi
7286   else
7287     MAGIC_CMD=:
7288   fi
7289 fi
7291   fi
7292   ;;
7293 esac
7296   case $host_os in
7297     rhapsody* | darwin*)
7298     if test -n "$ac_tool_prefix"; then
7299   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7300 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7301 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7302 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7303 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7304   echo $ECHO_N "(cached) $ECHO_C" >&6
7305 else
7306   if test -n "$DSYMUTIL"; then
7307   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7308 else
7309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7310 for as_dir in $PATH
7311 do
7312   IFS=$as_save_IFS
7313   test -z "$as_dir" && as_dir=.
7314   for ac_exec_ext in '' $ac_executable_extensions; do
7315   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7316     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7317     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7318     break 2
7319   fi
7320 done
7321 done
7322 IFS=$as_save_IFS
7324 fi
7325 fi
7326 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7327 if test -n "$DSYMUTIL"; then
7328   { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7329 echo "${ECHO_T}$DSYMUTIL" >&6; }
7330 else
7331   { echo "$as_me:$LINENO: result: no" >&5
7332 echo "${ECHO_T}no" >&6; }
7333 fi
7336 fi
7337 if test -z "$ac_cv_prog_DSYMUTIL"; then
7338   ac_ct_DSYMUTIL=$DSYMUTIL
7339   # Extract the first word of "dsymutil", so it can be a program name with args.
7340 set dummy dsymutil; ac_word=$2
7341 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7342 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7343 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7344   echo $ECHO_N "(cached) $ECHO_C" >&6
7345 else
7346   if test -n "$ac_ct_DSYMUTIL"; then
7347   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7348 else
7349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7350 for as_dir in $PATH
7351 do
7352   IFS=$as_save_IFS
7353   test -z "$as_dir" && as_dir=.
7354   for ac_exec_ext in '' $ac_executable_extensions; do
7355   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7356     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7357     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7358     break 2
7359   fi
7360 done
7361 done
7362 IFS=$as_save_IFS
7364 fi
7365 fi
7366 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7367 if test -n "$ac_ct_DSYMUTIL"; then
7368   { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7369 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7370 else
7371   { echo "$as_me:$LINENO: result: no" >&5
7372 echo "${ECHO_T}no" >&6; }
7373 fi
7375   if test "x$ac_ct_DSYMUTIL" = x; then
7376     DSYMUTIL=":"
7377   else
7378     case $cross_compiling:$ac_tool_warned in
7379 yes:)
7380 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7381 whose name does not start with the host triplet.  If you think this
7382 configuration is useful to you, please write to autoconf@gnu.org." >&5
7383 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7384 whose name does not start with the host triplet.  If you think this
7385 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7386 ac_tool_warned=yes ;;
7387 esac
7388     DSYMUTIL=$ac_ct_DSYMUTIL
7389   fi
7390 else
7391   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7392 fi
7394     if test -n "$ac_tool_prefix"; then
7395   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7396 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7397 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7398 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7399 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7400   echo $ECHO_N "(cached) $ECHO_C" >&6
7401 else
7402   if test -n "$NMEDIT"; then
7403   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7404 else
7405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7406 for as_dir in $PATH
7407 do
7408   IFS=$as_save_IFS
7409   test -z "$as_dir" && as_dir=.
7410   for ac_exec_ext in '' $ac_executable_extensions; do
7411   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7412     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7413     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7414     break 2
7415   fi
7416 done
7417 done
7418 IFS=$as_save_IFS
7420 fi
7421 fi
7422 NMEDIT=$ac_cv_prog_NMEDIT
7423 if test -n "$NMEDIT"; then
7424   { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7425 echo "${ECHO_T}$NMEDIT" >&6; }
7426 else
7427   { echo "$as_me:$LINENO: result: no" >&5
7428 echo "${ECHO_T}no" >&6; }
7429 fi
7432 fi
7433 if test -z "$ac_cv_prog_NMEDIT"; then
7434   ac_ct_NMEDIT=$NMEDIT
7435   # Extract the first word of "nmedit", so it can be a program name with args.
7436 set dummy nmedit; ac_word=$2
7437 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7439 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7440   echo $ECHO_N "(cached) $ECHO_C" >&6
7441 else
7442   if test -n "$ac_ct_NMEDIT"; then
7443   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7444 else
7445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7446 for as_dir in $PATH
7447 do
7448   IFS=$as_save_IFS
7449   test -z "$as_dir" && as_dir=.
7450   for ac_exec_ext in '' $ac_executable_extensions; do
7451   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7452     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7453     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7454     break 2
7455   fi
7456 done
7457 done
7458 IFS=$as_save_IFS
7460 fi
7461 fi
7462 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7463 if test -n "$ac_ct_NMEDIT"; then
7464   { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7465 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7466 else
7467   { echo "$as_me:$LINENO: result: no" >&5
7468 echo "${ECHO_T}no" >&6; }
7469 fi
7471   if test "x$ac_ct_NMEDIT" = x; then
7472     NMEDIT=":"
7473   else
7474     case $cross_compiling:$ac_tool_warned in
7475 yes:)
7476 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7477 whose name does not start with the host triplet.  If you think this
7478 configuration is useful to you, please write to autoconf@gnu.org." >&5
7479 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7480 whose name does not start with the host triplet.  If you think this
7481 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7482 ac_tool_warned=yes ;;
7483 esac
7484     NMEDIT=$ac_ct_NMEDIT
7485   fi
7486 else
7487   NMEDIT="$ac_cv_prog_NMEDIT"
7488 fi
7491     { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7492 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7493 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7494   echo $ECHO_N "(cached) $ECHO_C" >&6
7495 else
7496   lt_cv_apple_cc_single_mod=no
7497       if test -z "${LT_MULTI_MODULE}"; then
7498    # By default we will add the -single_module flag. You can override
7499    # by either setting the environment variable LT_MULTI_MODULE
7500    # non-empty at configure time, or by adding -multi_module to the
7501    # link flags.
7502    echo "int foo(void){return 1;}" > conftest.c
7503    $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7504      -dynamiclib ${wl}-single_module conftest.c
7505    if test -f libconftest.dylib; then
7506      lt_cv_apple_cc_single_mod=yes
7507      rm -rf libconftest.dylib*
7508    fi
7509    rm conftest.c
7510       fi
7511 fi
7512 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7513 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7514     { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7515 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7516 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7517   echo $ECHO_N "(cached) $ECHO_C" >&6
7518 else
7519   lt_cv_ld_exported_symbols_list=no
7520       save_LDFLAGS=$LDFLAGS
7521       echo "_main" > conftest.sym
7522       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7523       cat >conftest.$ac_ext <<_ACEOF
7524 /* confdefs.h.  */
7525 _ACEOF
7526 cat confdefs.h >>conftest.$ac_ext
7527 cat >>conftest.$ac_ext <<_ACEOF
7528 /* end confdefs.h.  */
7530 int
7531 main ()
7534   ;
7535   return 0;
7537 _ACEOF
7538 rm -f conftest.$ac_objext conftest$ac_exeext
7539 if { (ac_try="$ac_link"
7540 case "(($ac_try" in
7541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7542   *) ac_try_echo=$ac_try;;
7543 esac
7544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7545   (eval "$ac_link") 2>conftest.er1
7546   ac_status=$?
7547   grep -v '^ *+' conftest.er1 >conftest.err
7548   rm -f conftest.er1
7549   cat conftest.err >&5
7550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7551   (exit $ac_status); } && {
7552          test -z "$ac_c_werror_flag" ||
7553          test ! -s conftest.err
7554        } && test -s conftest$ac_exeext &&
7555        $as_test_x conftest$ac_exeext; then
7556   lt_cv_ld_exported_symbols_list=yes
7557 else
7558   echo "$as_me: failed program was:" >&5
7559 sed 's/^/| /' conftest.$ac_ext >&5
7561         lt_cv_ld_exported_symbols_list=no
7562 fi
7564 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7565       conftest$ac_exeext conftest.$ac_ext
7566    LDFLAGS="$save_LDFLAGS"
7568 fi
7569 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7570 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7571     case $host_os in
7572     rhapsody* | darwin1.[0123])
7573       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7574     darwin1.*)
7575      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7576     darwin*)
7577       # if running on 10.5 or later, the deployment target defaults
7578       # to the OS version, if on x86, and 10.4, the deployment
7579       # target defaults to 10.4. Don't you love it?
7580       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7581    10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7582      _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7583    10.[012]*)
7584      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7585    10.*)
7586      _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7587       esac
7588     ;;
7589   esac
7590     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7591       _lt_dar_single_mod='$single_module'
7592     fi
7593     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7594       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7595     else
7596       _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7597     fi
7598     if test "$DSYMUTIL" != ":"; then
7599       _lt_dsymutil="~$DSYMUTIL \$lib || :"
7600     else
7601       _lt_dsymutil=
7602     fi
7603     ;;
7604   esac
7607 enable_dlopen=no
7608 enable_win32_dll=no
7610 # Check whether --enable-libtool-lock was given.
7611 if test "${enable_libtool_lock+set}" = set; then
7612   enableval=$enable_libtool_lock;
7613 fi
7615 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7618 # Check whether --with-pic was given.
7619 if test "${with_pic+set}" = set; then
7620   withval=$with_pic; pic_mode="$withval"
7621 else
7622   pic_mode=default
7623 fi
7625 test -z "$pic_mode" && pic_mode=default
7627 # Use C for the default configuration in the libtool script
7628 tagname=
7629 lt_save_CC="$CC"
7630 ac_ext=c
7631 ac_cpp='$CPP $CPPFLAGS'
7632 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7633 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7634 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7637 # Source file extension for C test sources.
7638 ac_ext=c
7640 # Object file extension for compiled C test sources.
7641 objext=o
7642 objext=$objext
7644 # Code to be used in simple compile tests
7645 lt_simple_compile_test_code="int some_variable = 0;"
7647 # Code to be used in simple link tests
7648 lt_simple_link_test_code='int main(){return(0);}'
7651 # If no C compiler was specified, use CC.
7652 LTCC=${LTCC-"$CC"}
7654 # If no C compiler flags were specified, use CFLAGS.
7655 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7657 # Allow CC to be a program name with arguments.
7658 compiler=$CC
7661 # save warnings/boilerplate of simple test code
7662 ac_outfile=conftest.$ac_objext
7663 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7664 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7665 _lt_compiler_boilerplate=`cat conftest.err`
7666 $rm conftest*
7668 ac_outfile=conftest.$ac_objext
7669 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7670 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7671 _lt_linker_boilerplate=`cat conftest.err`
7672 $rm -r conftest*
7676 lt_prog_compiler_no_builtin_flag=
7678 if test "$GCC" = yes; then
7679   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7682 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7683 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7684 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7685   echo $ECHO_N "(cached) $ECHO_C" >&6
7686 else
7687   lt_cv_prog_compiler_rtti_exceptions=no
7688   ac_outfile=conftest.$ac_objext
7689    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7690    lt_compiler_flag="-fno-rtti -fno-exceptions"
7691    # Insert the option either (1) after the last *FLAGS variable, or
7692    # (2) before a word containing "conftest.", or (3) at the end.
7693    # Note that $ac_compile itself does not contain backslashes and begins
7694    # with a dollar sign (not a hyphen), so the echo should work correctly.
7695    # The option is referenced via a variable to avoid confusing sed.
7696    lt_compile=`echo "$ac_compile" | $SED \
7697    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7698    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7699    -e 's:$: $lt_compiler_flag:'`
7700    (eval echo "\"\$as_me:7700: $lt_compile\"" >&5)
7701    (eval "$lt_compile" 2>conftest.err)
7702    ac_status=$?
7703    cat conftest.err >&5
7704    echo "$as_me:7704: \$? = $ac_status" >&5
7705    if (exit $ac_status) && test -s "$ac_outfile"; then
7706      # The compiler can only warn and ignore the option if not recognized
7707      # So say no if there are warnings other than the usual output.
7708      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7709      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7710      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7711        lt_cv_prog_compiler_rtti_exceptions=yes
7712      fi
7713    fi
7714    $rm conftest*
7716 fi
7717 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7718 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7720 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7721     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7722 else
7723     :
7724 fi
7726 fi
7728 lt_prog_compiler_wl=
7729 lt_prog_compiler_pic=
7730 lt_prog_compiler_static=
7732 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7733 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7735   if test "$GCC" = yes; then
7736     lt_prog_compiler_wl='-Wl,'
7737     lt_prog_compiler_static='-static'
7739     case $host_os in
7740       aix*)
7741       # All AIX code is PIC.
7742       if test "$host_cpu" = ia64; then
7743         # AIX 5 now supports IA64 processor
7744         lt_prog_compiler_static='-Bstatic'
7745       fi
7746       ;;
7748     amigaos*)
7749       # FIXME: we need at least 68020 code to build shared libraries, but
7750       # adding the `-m68020' flag to GCC prevents building anything better,
7751       # like `-m68040'.
7752       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7753       ;;
7755     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7756       # PIC is the default for these OSes.
7757       ;;
7759     mingw* | cygwin* | pw32* | os2*)
7760       # This hack is so that the source file can tell whether it is being
7761       # built for inclusion in a dll (and should export symbols for example).
7762       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7763       # (--disable-auto-import) libraries
7764       lt_prog_compiler_pic='-DDLL_EXPORT'
7765       ;;
7767     darwin* | rhapsody*)
7768       # PIC is the default on this platform
7769       # Common symbols not allowed in MH_DYLIB files
7770       lt_prog_compiler_pic='-fno-common'
7771       ;;
7773     interix[3-9]*)
7774       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7775       # Instead, we relocate shared libraries at runtime.
7776       ;;
7778     msdosdjgpp*)
7779       # Just because we use GCC doesn't mean we suddenly get shared libraries
7780       # on systems that don't support them.
7781       lt_prog_compiler_can_build_shared=no
7782       enable_shared=no
7783       ;;
7785     sysv4*MP*)
7786       if test -d /usr/nec; then
7787         lt_prog_compiler_pic=-Kconform_pic
7788       fi
7789       ;;
7791     hpux*)
7792       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7793       # not for PA HP-UX.
7794       case $host_cpu in
7795       hppa*64*|ia64*)
7796         # +Z the default
7797         ;;
7798       *)
7799         lt_prog_compiler_pic='-fPIC'
7800         ;;
7801       esac
7802       ;;
7804     *)
7805       lt_prog_compiler_pic='-fPIC'
7806       ;;
7807     esac
7808   else
7809     # PORTME Check for flag to pass linker flags through the system compiler.
7810     case $host_os in
7811     aix*)
7812       lt_prog_compiler_wl='-Wl,'
7813       if test "$host_cpu" = ia64; then
7814         # AIX 5 now supports IA64 processor
7815         lt_prog_compiler_static='-Bstatic'
7816       else
7817         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7818       fi
7819       ;;
7820       darwin*)
7821         # PIC is the default on this platform
7822         # Common symbols not allowed in MH_DYLIB files
7823        case $cc_basename in
7824          xlc*)
7825          lt_prog_compiler_pic='-qnocommon'
7826          lt_prog_compiler_wl='-Wl,'
7827          ;;
7828        esac
7829        ;;
7831     mingw* | cygwin* | pw32* | os2*)
7832       # This hack is so that the source file can tell whether it is being
7833       # built for inclusion in a dll (and should export symbols for example).
7834       lt_prog_compiler_pic='-DDLL_EXPORT'
7835       ;;
7837     hpux9* | hpux10* | hpux11*)
7838       lt_prog_compiler_wl='-Wl,'
7839       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7840       # not for PA HP-UX.
7841       case $host_cpu in
7842       hppa*64*|ia64*)
7843         # +Z the default
7844         ;;
7845       *)
7846         lt_prog_compiler_pic='+Z'
7847         ;;
7848       esac
7849       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7850       lt_prog_compiler_static='${wl}-a ${wl}archive'
7851       ;;
7853     irix5* | irix6* | nonstopux*)
7854       lt_prog_compiler_wl='-Wl,'
7855       # PIC (with -KPIC) is the default.
7856       lt_prog_compiler_static='-non_shared'
7857       ;;
7859     newsos6)
7860       lt_prog_compiler_pic='-KPIC'
7861       lt_prog_compiler_static='-Bstatic'
7862       ;;
7864     linux* | k*bsd*-gnu)
7865       case $cc_basename in
7866       icc* | ecc*)
7867         lt_prog_compiler_wl='-Wl,'
7868         lt_prog_compiler_pic='-KPIC'
7869         lt_prog_compiler_static='-static'
7870         ;;
7871       pgcc* | pgf77* | pgf90* | pgf95*)
7872         # Portland Group compilers (*not* the Pentium gcc compiler,
7873         # which looks to be a dead project)
7874         lt_prog_compiler_wl='-Wl,'
7875         lt_prog_compiler_pic='-fpic'
7876         lt_prog_compiler_static='-Bstatic'
7877         ;;
7878       ccc*)
7879         lt_prog_compiler_wl='-Wl,'
7880         # All Alpha code is PIC.
7881         lt_prog_compiler_static='-non_shared'
7882         ;;
7883       *)
7884         case `$CC -V 2>&1 | sed 5q` in
7885         *Sun\ C*)
7886           # Sun C 5.9
7887           lt_prog_compiler_pic='-KPIC'
7888           lt_prog_compiler_static='-Bstatic'
7889           lt_prog_compiler_wl='-Wl,'
7890           ;;
7891         *Sun\ F*)
7892           # Sun Fortran 8.3 passes all unrecognized flags to the linker
7893           lt_prog_compiler_pic='-KPIC'
7894           lt_prog_compiler_static='-Bstatic'
7895           lt_prog_compiler_wl=''
7896           ;;
7897         esac
7898         ;;
7899       esac
7900       ;;
7902     osf3* | osf4* | osf5*)
7903       lt_prog_compiler_wl='-Wl,'
7904       # All OSF/1 code is PIC.
7905       lt_prog_compiler_static='-non_shared'
7906       ;;
7908     rdos*)
7909       lt_prog_compiler_static='-non_shared'
7910       ;;
7912     solaris*)
7913       lt_prog_compiler_pic='-KPIC'
7914       lt_prog_compiler_static='-Bstatic'
7915       case $cc_basename in
7916       f77* | f90* | f95*)
7917         lt_prog_compiler_wl='-Qoption ld ';;
7918       *)
7919         lt_prog_compiler_wl='-Wl,';;
7920       esac
7921       ;;
7923     sunos4*)
7924       lt_prog_compiler_wl='-Qoption ld '
7925       lt_prog_compiler_pic='-PIC'
7926       lt_prog_compiler_static='-Bstatic'
7927       ;;
7929     sysv4 | sysv4.2uw2* | sysv4.3*)
7930       lt_prog_compiler_wl='-Wl,'
7931       lt_prog_compiler_pic='-KPIC'
7932       lt_prog_compiler_static='-Bstatic'
7933       ;;
7935     sysv4*MP*)
7936       if test -d /usr/nec ;then
7937         lt_prog_compiler_pic='-Kconform_pic'
7938         lt_prog_compiler_static='-Bstatic'
7939       fi
7940       ;;
7942     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7943       lt_prog_compiler_wl='-Wl,'
7944       lt_prog_compiler_pic='-KPIC'
7945       lt_prog_compiler_static='-Bstatic'
7946       ;;
7948     unicos*)
7949       lt_prog_compiler_wl='-Wl,'
7950       lt_prog_compiler_can_build_shared=no
7951       ;;
7953     uts4*)
7954       lt_prog_compiler_pic='-pic'
7955       lt_prog_compiler_static='-Bstatic'
7956       ;;
7958     *)
7959       lt_prog_compiler_can_build_shared=no
7960       ;;
7961     esac
7962   fi
7964 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7965 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7968 # Check to make sure the PIC flag actually works.
7970 if test -n "$lt_prog_compiler_pic"; then
7972 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7973 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7974 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7975   echo $ECHO_N "(cached) $ECHO_C" >&6
7976 else
7977   lt_cv_prog_compiler_pic_works=no
7978   ac_outfile=conftest.$ac_objext
7979    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7980    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7981    # Insert the option either (1) after the last *FLAGS variable, or
7982    # (2) before a word containing "conftest.", or (3) at the end.
7983    # Note that $ac_compile itself does not contain backslashes and begins
7984    # with a dollar sign (not a hyphen), so the echo should work correctly.
7985    # The option is referenced via a variable to avoid confusing sed.
7986    lt_compile=`echo "$ac_compile" | $SED \
7987    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7988    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7989    -e 's:$: $lt_compiler_flag:'`
7990    (eval echo "\"\$as_me:7990: $lt_compile\"" >&5)
7991    (eval "$lt_compile" 2>conftest.err)
7992    ac_status=$?
7993    cat conftest.err >&5
7994    echo "$as_me:7994: \$? = $ac_status" >&5
7995    if (exit $ac_status) && test -s "$ac_outfile"; then
7996      # The compiler can only warn and ignore the option if not recognized
7997      # So say no if there are warnings other than the usual output.
7998      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7999      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8000      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8001        lt_cv_prog_compiler_pic_works=yes
8002      fi
8003    fi
8004    $rm conftest*
8006 fi
8007 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8008 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
8010 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8011     case $lt_prog_compiler_pic in
8012      "" | " "*) ;;
8013      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8014      esac
8015 else
8016     lt_prog_compiler_pic=
8017      lt_prog_compiler_can_build_shared=no
8018 fi
8020 fi
8021 case $host_os in
8022   # For platforms which do not support PIC, -DPIC is meaningless:
8023   *djgpp*)
8024     lt_prog_compiler_pic=
8025     ;;
8026   *)
8027     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8028     ;;
8029 esac
8032 # Check to make sure the static flag actually works.
8034 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8035 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8036 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
8037 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8038   echo $ECHO_N "(cached) $ECHO_C" >&6
8039 else
8040   lt_cv_prog_compiler_static_works=no
8041    save_LDFLAGS="$LDFLAGS"
8042    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8043    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8044    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8045      # The linker can only warn and ignore the option if not recognized
8046      # So say no if there are warnings
8047      if test -s conftest.err; then
8048        # Append any errors to the config.log.
8049        cat conftest.err 1>&5
8050        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8051        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8052        if diff conftest.exp conftest.er2 >/dev/null; then
8053          lt_cv_prog_compiler_static_works=yes
8054        fi
8055      else
8056        lt_cv_prog_compiler_static_works=yes
8057      fi
8058    fi
8059    $rm -r conftest*
8060    LDFLAGS="$save_LDFLAGS"
8062 fi
8063 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8064 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
8066 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8067     :
8068 else
8069     lt_prog_compiler_static=
8070 fi
8073 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8074 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8075 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8076   echo $ECHO_N "(cached) $ECHO_C" >&6
8077 else
8078   lt_cv_prog_compiler_c_o=no
8079    $rm -r conftest 2>/dev/null
8080    mkdir conftest
8081    cd conftest
8082    mkdir out
8083    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8085    lt_compiler_flag="-o out/conftest2.$ac_objext"
8086    # Insert the option either (1) after the last *FLAGS variable, or
8087    # (2) before a word containing "conftest.", or (3) at the end.
8088    # Note that $ac_compile itself does not contain backslashes and begins
8089    # with a dollar sign (not a hyphen), so the echo should work correctly.
8090    lt_compile=`echo "$ac_compile" | $SED \
8091    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8092    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8093    -e 's:$: $lt_compiler_flag:'`
8094    (eval echo "\"\$as_me:8094: $lt_compile\"" >&5)
8095    (eval "$lt_compile" 2>out/conftest.err)
8096    ac_status=$?
8097    cat out/conftest.err >&5
8098    echo "$as_me:8098: \$? = $ac_status" >&5
8099    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8100    then
8101      # The compiler can only warn and ignore the option if not recognized
8102      # So say no if there are warnings
8103      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8104      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8105      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8106        lt_cv_prog_compiler_c_o=yes
8107      fi
8108    fi
8109    chmod u+w . 2>&5
8110    $rm conftest*
8111    # SGI C++ compiler will create directory out/ii_files/ for
8112    # template instantiation
8113    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8114    $rm out/* && rmdir out
8115    cd ..
8116    rmdir conftest
8117    $rm conftest*
8119 fi
8120 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8121 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8124 hard_links="nottested"
8125 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8126   # do not overwrite the value of need_locks provided by the user
8127   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8128 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8129   hard_links=yes
8130   $rm conftest*
8131   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8132   touch conftest.a
8133   ln conftest.a conftest.b 2>&5 || hard_links=no
8134   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8135   { echo "$as_me:$LINENO: result: $hard_links" >&5
8136 echo "${ECHO_T}$hard_links" >&6; }
8137   if test "$hard_links" = no; then
8138     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8139 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8140     need_locks=warn
8141   fi
8142 else
8143   need_locks=no
8144 fi
8146 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8147 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8149   runpath_var=
8150   allow_undefined_flag=
8151   enable_shared_with_static_runtimes=no
8152   archive_cmds=
8153   archive_expsym_cmds=
8154   old_archive_From_new_cmds=
8155   old_archive_from_expsyms_cmds=
8156   export_dynamic_flag_spec=
8157   whole_archive_flag_spec=
8158   thread_safe_flag_spec=
8159   hardcode_libdir_flag_spec=
8160   hardcode_libdir_flag_spec_ld=
8161   hardcode_libdir_separator=
8162   hardcode_direct=no
8163   hardcode_minus_L=no
8164   hardcode_shlibpath_var=unsupported
8165   link_all_deplibs=unknown
8166   hardcode_automatic=no
8167   module_cmds=
8168   module_expsym_cmds=
8169   always_export_symbols=no
8170   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8171   # include_expsyms should be a list of space-separated symbols to be *always*
8172   # included in the symbol list
8173   include_expsyms=
8174   # exclude_expsyms can be an extended regexp of symbols to exclude
8175   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8176   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8177   # as well as any symbol that contains `d'.
8178   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8179   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8180   # platforms (ab)use it in PIC code, but their linkers get confused if
8181   # the symbol is explicitly referenced.  Since portable code cannot
8182   # rely on this symbol name, it's probably fine to never include it in
8183   # preloaded symbol tables.
8184   # Exclude shared library initialization/finalization symbols.
8185   extract_expsyms_cmds=
8186   # Just being paranoid about ensuring that cc_basename is set.
8187   for cc_temp in $compiler""; do
8188   case $cc_temp in
8189     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8190     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8191     \-*) ;;
8192     *) break;;
8193   esac
8194 done
8195 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8197   case $host_os in
8198   cygwin* | mingw* | pw32*)
8199     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8200     # When not using gcc, we currently assume that we are using
8201     # Microsoft Visual C++.
8202     if test "$GCC" != yes; then
8203       with_gnu_ld=no
8204     fi
8205     ;;
8206   interix*)
8207     # we just hope/assume this is gcc and not c89 (= MSVC++)
8208     with_gnu_ld=yes
8209     ;;
8210   openbsd*)
8211     with_gnu_ld=no
8212     ;;
8213   esac
8215   ld_shlibs=yes
8216   if test "$with_gnu_ld" = yes; then
8217     # If archive_cmds runs LD, not CC, wlarc should be empty
8218     wlarc='${wl}'
8220     # Set some defaults for GNU ld with shared library support. These
8221     # are reset later if shared libraries are not supported. Putting them
8222     # here allows them to be overridden if necessary.
8223     runpath_var=LD_RUN_PATH
8224     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8225     export_dynamic_flag_spec='${wl}--export-dynamic'
8226     # ancient GNU ld didn't support --whole-archive et. al.
8227     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8228         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8229       else
8230         whole_archive_flag_spec=
8231     fi
8232     supports_anon_versioning=no
8233     case `$LD -v 2>/dev/null` in
8234       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8235       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8236       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8237       *\ 2.11.*) ;; # other 2.11 versions
8238       *) supports_anon_versioning=yes ;;
8239     esac
8241     # See if GNU ld supports shared libraries.
8242     case $host_os in
8243     aix[3-9]*)
8244       # On AIX/PPC, the GNU linker is very broken
8245       if test "$host_cpu" != ia64; then
8246         ld_shlibs=no
8247         cat <<EOF 1>&2
8249 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8250 *** to be unable to reliably create shared libraries on AIX.
8251 *** Therefore, libtool is disabling shared libraries support.  If you
8252 *** really care for shared libraries, you may want to modify your PATH
8253 *** so that a non-GNU linker is found, and then restart.
8255 EOF
8256       fi
8257       ;;
8259     amigaos*)
8260       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)'
8261       hardcode_libdir_flag_spec='-L$libdir'
8262       hardcode_minus_L=yes
8264       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8265       # that the semantics of dynamic libraries on AmigaOS, at least up
8266       # to version 4, is to share data among multiple programs linked
8267       # with the same dynamic library.  Since this doesn't match the
8268       # behavior of shared libraries on other platforms, we can't use
8269       # them.
8270       ld_shlibs=no
8271       ;;
8273     beos*)
8274       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8275         allow_undefined_flag=unsupported
8276         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8277         # support --undefined.  This deserves some investigation.  FIXME
8278         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8279       else
8280         ld_shlibs=no
8281       fi
8282       ;;
8284     cygwin* | mingw* | pw32*)
8285       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8286       # as there is no search path for DLLs.
8287       hardcode_libdir_flag_spec='-L$libdir'
8288       allow_undefined_flag=unsupported
8289       always_export_symbols=no
8290       enable_shared_with_static_runtimes=yes
8291       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8293       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8294         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8295         # If the export-symbols file already is a .def file (1st line
8296         # is EXPORTS), use it as is; otherwise, prepend...
8297         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8298           cp $export_symbols $output_objdir/$soname.def;
8299         else
8300           echo EXPORTS > $output_objdir/$soname.def;
8301           cat $export_symbols >> $output_objdir/$soname.def;
8302         fi~
8303         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8304       else
8305         ld_shlibs=no
8306       fi
8307       ;;
8309     interix[3-9]*)
8310       hardcode_direct=no
8311       hardcode_shlibpath_var=no
8312       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8313       export_dynamic_flag_spec='${wl}-E'
8314       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8315       # Instead, shared libraries are loaded at an image base (0x10000000 by
8316       # default) and relocated if they conflict, which is a slow very memory
8317       # consuming and fragmenting process.  To avoid this, we pick a random,
8318       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8319       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8320       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8321       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'
8322       ;;
8324     gnu* | linux* | k*bsd*-gnu)
8325       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8326         tmp_addflag=
8327         case $cc_basename,$host_cpu in
8328         pgcc*)                          # Portland Group C compiler
8329           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'
8330           tmp_addflag=' $pic_flag'
8331           ;;
8332         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8333           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'
8334           tmp_addflag=' $pic_flag -Mnomain' ;;
8335         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8336           tmp_addflag=' -i_dynamic' ;;
8337         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8338           tmp_addflag=' -i_dynamic -nofor_main' ;;
8339         ifc* | ifort*)                  # Intel Fortran compiler
8340           tmp_addflag=' -nofor_main' ;;
8341         esac
8342         case `$CC -V 2>&1 | sed 5q` in
8343         *Sun\ C*)                       # Sun C 5.9
8344           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'
8345           tmp_sharedflag='-G' ;;
8346         *Sun\ F*)                       # Sun Fortran 8.3
8347           tmp_sharedflag='-G' ;;
8348         *)
8349           tmp_sharedflag='-shared' ;;
8350         esac
8351         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8353         if test $supports_anon_versioning = yes; then
8354           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8355   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8356   $echo "local: *; };" >> $output_objdir/$libname.ver~
8357           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8358         fi
8359         link_all_deplibs=no
8360       else
8361         ld_shlibs=no
8362       fi
8363       ;;
8365     netbsd* | netbsdelf*-gnu)
8366       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8367         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8368         wlarc=
8369       else
8370         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8371         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8372       fi
8373       ;;
8375     solaris*)
8376       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8377         ld_shlibs=no
8378         cat <<EOF 1>&2
8380 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8381 *** create shared libraries on Solaris systems.  Therefore, libtool
8382 *** is disabling shared libraries support.  We urge you to upgrade GNU
8383 *** binutils to release 2.9.1 or newer.  Another option is to modify
8384 *** your PATH or compiler configuration so that the native linker is
8385 *** used, and then restart.
8387 EOF
8388       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8389         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8390         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8391       else
8392         ld_shlibs=no
8393       fi
8394       ;;
8396     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8397       case `$LD -v 2>&1` in
8398         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8399         ld_shlibs=no
8400         cat <<_LT_EOF 1>&2
8402 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8403 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8404 *** is disabling shared libraries support.  We urge you to upgrade GNU
8405 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8406 *** your PATH or compiler configuration so that the native linker is
8407 *** used, and then restart.
8409 _LT_EOF
8410         ;;
8411         *)
8412           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8413             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8414             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8415             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8416           else
8417             ld_shlibs=no
8418           fi
8419         ;;
8420       esac
8421       ;;
8423     sunos4*)
8424       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8425       wlarc=
8426       hardcode_direct=yes
8427       hardcode_shlibpath_var=no
8428       ;;
8430     *)
8431       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8432         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8433         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8434       else
8435         ld_shlibs=no
8436       fi
8437       ;;
8438     esac
8440     if test "$ld_shlibs" = no; then
8441       runpath_var=
8442       hardcode_libdir_flag_spec=
8443       export_dynamic_flag_spec=
8444       whole_archive_flag_spec=
8445     fi
8446   else
8447     # PORTME fill in a description of your system's linker (not GNU ld)
8448     case $host_os in
8449     aix3*)
8450       allow_undefined_flag=unsupported
8451       always_export_symbols=yes
8452       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'
8453       # Note: this linker hardcodes the directories in LIBPATH if there
8454       # are no directories specified by -L.
8455       hardcode_minus_L=yes
8456       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8457         # Neither direct hardcoding nor static linking is supported with a
8458         # broken collect2.
8459         hardcode_direct=unsupported
8460       fi
8461       ;;
8463     aix[4-9]*)
8464       if test "$host_cpu" = ia64; then
8465         # On IA64, the linker does run time linking by default, so we don't
8466         # have to do anything special.
8467         aix_use_runtimelinking=no
8468         exp_sym_flag='-Bexport'
8469         no_entry_flag=""
8470       else
8471         # If we're using GNU nm, then we don't want the "-C" option.
8472         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8473         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8474           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'
8475         else
8476           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'
8477         fi
8478         aix_use_runtimelinking=no
8480         # Test if we are trying to use run time linking or normal
8481         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8482         # need to do runtime linking.
8483         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8484           for ld_flag in $LDFLAGS; do
8485           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8486             aix_use_runtimelinking=yes
8487             break
8488           fi
8489           done
8490           ;;
8491         esac
8493         exp_sym_flag='-bexport'
8494         no_entry_flag='-bnoentry'
8495       fi
8497       # When large executables or shared objects are built, AIX ld can
8498       # have problems creating the table of contents.  If linking a library
8499       # or program results in "error TOC overflow" add -mminimal-toc to
8500       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8501       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8503       archive_cmds=''
8504       hardcode_direct=yes
8505       hardcode_libdir_separator=':'
8506       link_all_deplibs=yes
8508       if test "$GCC" = yes; then
8509         case $host_os in aix4.[012]|aix4.[012].*)
8510         # We only want to do this on AIX 4.2 and lower, the check
8511         # below for broken collect2 doesn't work under 4.3+
8512           collect2name=`${CC} -print-prog-name=collect2`
8513           if test -f "$collect2name" && \
8514            strings "$collect2name" | grep resolve_lib_name >/dev/null
8515           then
8516           # We have reworked collect2
8517           :
8518           else
8519           # We have old collect2
8520           hardcode_direct=unsupported
8521           # It fails to find uninstalled libraries when the uninstalled
8522           # path is not listed in the libpath.  Setting hardcode_minus_L
8523           # to unsupported forces relinking
8524           hardcode_minus_L=yes
8525           hardcode_libdir_flag_spec='-L$libdir'
8526           hardcode_libdir_separator=
8527           fi
8528           ;;
8529         esac
8530         shared_flag='-shared'
8531         if test "$aix_use_runtimelinking" = yes; then
8532           shared_flag="$shared_flag "'${wl}-G'
8533         fi
8534       else
8535         # not using gcc
8536         if test "$host_cpu" = ia64; then
8537         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8538         # chokes on -Wl,-G. The following line is correct:
8539           shared_flag='-G'
8540         else
8541           if test "$aix_use_runtimelinking" = yes; then
8542             shared_flag='${wl}-G'
8543           else
8544             shared_flag='${wl}-bM:SRE'
8545           fi
8546         fi
8547       fi
8549       # It seems that -bexpall does not export symbols beginning with
8550       # underscore (_), so it is better to generate a list of symbols to export.
8551       always_export_symbols=yes
8552       if test "$aix_use_runtimelinking" = yes; then
8553         # Warning - without using the other runtime loading flags (-brtl),
8554         # -berok will link without error, but may produce a broken library.
8555         allow_undefined_flag='-berok'
8556        # Determine the default libpath from the value encoded in an empty executable.
8557        cat >conftest.$ac_ext <<_ACEOF
8558 /* confdefs.h.  */
8559 _ACEOF
8560 cat confdefs.h >>conftest.$ac_ext
8561 cat >>conftest.$ac_ext <<_ACEOF
8562 /* end confdefs.h.  */
8564 int
8565 main ()
8568   ;
8569   return 0;
8571 _ACEOF
8572 rm -f conftest.$ac_objext conftest$ac_exeext
8573 if { (ac_try="$ac_link"
8574 case "(($ac_try" in
8575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8576   *) ac_try_echo=$ac_try;;
8577 esac
8578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8579   (eval "$ac_link") 2>conftest.er1
8580   ac_status=$?
8581   grep -v '^ *+' conftest.er1 >conftest.err
8582   rm -f conftest.er1
8583   cat conftest.err >&5
8584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8585   (exit $ac_status); } && {
8586          test -z "$ac_c_werror_flag" ||
8587          test ! -s conftest.err
8588        } && test -s conftest$ac_exeext &&
8589        $as_test_x conftest$ac_exeext; then
8591 lt_aix_libpath_sed='
8592     /Import File Strings/,/^$/ {
8593         /^0/ {
8594             s/^0  *\(.*\)$/\1/
8595             p
8596         }
8597     }'
8598 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8599 # Check for a 64-bit object if we didn't find anything.
8600 if test -z "$aix_libpath"; then
8601   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8602 fi
8603 else
8604   echo "$as_me: failed program was:" >&5
8605 sed 's/^/| /' conftest.$ac_ext >&5
8608 fi
8610 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8611       conftest$ac_exeext conftest.$ac_ext
8612 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8614        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8615         archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8616        else
8617         if test "$host_cpu" = ia64; then
8618           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8619           allow_undefined_flag="-z nodefs"
8620           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"
8621         else
8622          # Determine the default libpath from the value encoded in an empty executable.
8623          cat >conftest.$ac_ext <<_ACEOF
8624 /* confdefs.h.  */
8625 _ACEOF
8626 cat confdefs.h >>conftest.$ac_ext
8627 cat >>conftest.$ac_ext <<_ACEOF
8628 /* end confdefs.h.  */
8630 int
8631 main ()
8634   ;
8635   return 0;
8637 _ACEOF
8638 rm -f conftest.$ac_objext conftest$ac_exeext
8639 if { (ac_try="$ac_link"
8640 case "(($ac_try" in
8641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8642   *) ac_try_echo=$ac_try;;
8643 esac
8644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8645   (eval "$ac_link") 2>conftest.er1
8646   ac_status=$?
8647   grep -v '^ *+' conftest.er1 >conftest.err
8648   rm -f conftest.er1
8649   cat conftest.err >&5
8650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8651   (exit $ac_status); } && {
8652          test -z "$ac_c_werror_flag" ||
8653          test ! -s conftest.err
8654        } && test -s conftest$ac_exeext &&
8655        $as_test_x conftest$ac_exeext; then
8657 lt_aix_libpath_sed='
8658     /Import File Strings/,/^$/ {
8659         /^0/ {
8660             s/^0  *\(.*\)$/\1/
8661             p
8662         }
8663     }'
8664 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8665 # Check for a 64-bit object if we didn't find anything.
8666 if test -z "$aix_libpath"; then
8667   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8668 fi
8669 else
8670   echo "$as_me: failed program was:" >&5
8671 sed 's/^/| /' conftest.$ac_ext >&5
8674 fi
8676 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8677       conftest$ac_exeext conftest.$ac_ext
8678 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8680          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8681           # Warning - without using the other run time loading flags,
8682           # -berok will link without error, but may produce a broken library.
8683           no_undefined_flag=' ${wl}-bernotok'
8684           allow_undefined_flag=' ${wl}-berok'
8685           # Exported symbols can be pulled into shared objects from archives
8686           whole_archive_flag_spec='$convenience'
8687           archive_cmds_need_lc=yes
8688           # This is similar to how AIX traditionally builds its shared libraries.
8689           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'
8690         fi
8691       fi
8692       ;;
8694     amigaos*)
8695       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)'
8696       hardcode_libdir_flag_spec='-L$libdir'
8697       hardcode_minus_L=yes
8698       # see comment about different semantics on the GNU ld section
8699       ld_shlibs=no
8700       ;;
8702     bsdi[45]*)
8703       export_dynamic_flag_spec=-rdynamic
8704       ;;
8706     cygwin* | mingw* | pw32*)
8707       # When not using gcc, we currently assume that we are using
8708       # Microsoft Visual C++.
8709       # hardcode_libdir_flag_spec is actually meaningless, as there is
8710       # no search path for DLLs.
8711       hardcode_libdir_flag_spec=' '
8712       allow_undefined_flag=unsupported
8713       # Tell ltmain to make .lib files, not .a files.
8714       libext=lib
8715       # Tell ltmain to make .dll files, not .so files.
8716       shrext_cmds=".dll"
8717       # FIXME: Setting linknames here is a bad hack.
8718       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8719       # The linker will automatically build a .lib file if we build a DLL.
8720       old_archive_From_new_cmds='true'
8721       # FIXME: Should let the user specify the lib program.
8722       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8723       fix_srcfile_path='`cygpath -w "$srcfile"`'
8724       enable_shared_with_static_runtimes=yes
8725       ;;
8727     darwin* | rhapsody*)
8728       case $host_os in
8729         rhapsody* | darwin1.[012])
8730          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8731          ;;
8732        *) # Darwin 1.3 on
8733          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8734            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8735          else
8736            case ${MACOSX_DEPLOYMENT_TARGET} in
8737              10.[012])
8738                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8739                ;;
8740              10.*)
8741                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8742                ;;
8743            esac
8744          fi
8745          ;;
8746       esac
8747       archive_cmds_need_lc=no
8748       hardcode_direct=no
8749       hardcode_automatic=yes
8750       hardcode_shlibpath_var=unsupported
8751       whole_archive_flag_spec=''
8752       link_all_deplibs=yes
8753     if test "$GCC" = yes ; then
8754         output_verbose_link_cmd='echo'
8755         archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8756         module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8757         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}"
8758         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}"
8759     else
8760       case $cc_basename in
8761         xlc*)
8762          output_verbose_link_cmd='echo'
8763          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8764          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8765           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8766          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8767           module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8768           ;;
8769        *)
8770          ld_shlibs=no
8771           ;;
8772       esac
8773     fi
8774       ;;
8776     dgux*)
8777       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8778       hardcode_libdir_flag_spec='-L$libdir'
8779       hardcode_shlibpath_var=no
8780       ;;
8782     freebsd1*)
8783       ld_shlibs=no
8784       ;;
8786     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8787     # support.  Future versions do this automatically, but an explicit c++rt0.o
8788     # does not break anything, and helps significantly (at the cost of a little
8789     # extra space).
8790     freebsd2.2*)
8791       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8792       hardcode_libdir_flag_spec='-R$libdir'
8793       hardcode_direct=yes
8794       hardcode_shlibpath_var=no
8795       ;;
8797     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8798     freebsd2*)
8799       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8800       hardcode_direct=yes
8801       hardcode_minus_L=yes
8802       hardcode_shlibpath_var=no
8803       ;;
8805     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8806     freebsd* | dragonfly*)
8807       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8808       hardcode_libdir_flag_spec='-R$libdir'
8809       hardcode_direct=yes
8810       hardcode_shlibpath_var=no
8811       ;;
8813     hpux9*)
8814       if test "$GCC" = yes; then
8815         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'
8816       else
8817         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'
8818       fi
8819       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8820       hardcode_libdir_separator=:
8821       hardcode_direct=yes
8823       # hardcode_minus_L: Not really in the search PATH,
8824       # but as the default location of the library.
8825       hardcode_minus_L=yes
8826       export_dynamic_flag_spec='${wl}-E'
8827       ;;
8829     hpux10*)
8830       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8831         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8832       else
8833         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8834       fi
8835       if test "$with_gnu_ld" = no; then
8836         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8837         hardcode_libdir_separator=:
8839         hardcode_direct=yes
8840         export_dynamic_flag_spec='${wl}-E'
8842         # hardcode_minus_L: Not really in the search PATH,
8843         # but as the default location of the library.
8844         hardcode_minus_L=yes
8845       fi
8846       ;;
8848     hpux11*)
8849       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8850         case $host_cpu in
8851         hppa*64*)
8852           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8853           ;;
8854         ia64*)
8855           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8856           ;;
8857         *)
8858           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8859           ;;
8860         esac
8861       else
8862         case $host_cpu in
8863         hppa*64*)
8864           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8865           ;;
8866         ia64*)
8867           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8868           ;;
8869         *)
8870           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8871           ;;
8872         esac
8873       fi
8874       if test "$with_gnu_ld" = no; then
8875         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8876         hardcode_libdir_separator=:
8878         case $host_cpu in
8879         hppa*64*|ia64*)
8880           hardcode_libdir_flag_spec_ld='+b $libdir'
8881           hardcode_direct=no
8882           hardcode_shlibpath_var=no
8883           ;;
8884         *)
8885           hardcode_direct=yes
8886           export_dynamic_flag_spec='${wl}-E'
8888           # hardcode_minus_L: Not really in the search PATH,
8889           # but as the default location of the library.
8890           hardcode_minus_L=yes
8891           ;;
8892         esac
8893       fi
8894       ;;
8896     irix5* | irix6* | nonstopux*)
8897       if test "$GCC" = yes; then
8898         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8899       else
8900         archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8901         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8902       fi
8903       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8904       hardcode_libdir_separator=:
8905       link_all_deplibs=yes
8906       ;;
8908     netbsd* | netbsdelf*-gnu)
8909       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8910         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8911       else
8912         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8913       fi
8914       hardcode_libdir_flag_spec='-R$libdir'
8915       hardcode_direct=yes
8916       hardcode_shlibpath_var=no
8917       ;;
8919     newsos6)
8920       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8921       hardcode_direct=yes
8922       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8923       hardcode_libdir_separator=:
8924       hardcode_shlibpath_var=no
8925       ;;
8927     openbsd*)
8928       if test -f /usr/libexec/ld.so; then
8929         hardcode_direct=yes
8930         hardcode_shlibpath_var=no
8931         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8932           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8933           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8934           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8935           export_dynamic_flag_spec='${wl}-E'
8936         else
8937           case $host_os in
8938            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8939              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8940              hardcode_libdir_flag_spec='-R$libdir'
8941              ;;
8942            *)
8943              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8944              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8945              ;;
8946           esac
8947         fi
8948       else
8949         ld_shlibs=no
8950       fi
8951       ;;
8953     os2*)
8954       hardcode_libdir_flag_spec='-L$libdir'
8955       hardcode_minus_L=yes
8956       allow_undefined_flag=unsupported
8957       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'
8958       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8959       ;;
8961     osf3*)
8962       if test "$GCC" = yes; then
8963         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8964         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8965       else
8966         allow_undefined_flag=' -expect_unresolved \*'
8967         archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8968       fi
8969       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8970       hardcode_libdir_separator=:
8971       ;;
8973     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8974       if test "$GCC" = yes; then
8975         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8976         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8977         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8978       else
8979         allow_undefined_flag=' -expect_unresolved \*'
8980         archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8981         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8982         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
8984         # Both c and cxx compiler support -rpath directly
8985         hardcode_libdir_flag_spec='-rpath $libdir'
8986       fi
8987       hardcode_libdir_separator=:
8988       ;;
8990     solaris*)
8991       no_undefined_flag=' -z text'
8992       if test "$GCC" = yes; then
8993         wlarc='${wl}'
8994         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8995         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8996           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8997       else
8998         wlarc=''
8999         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9000         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9001         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9002       fi
9003       hardcode_libdir_flag_spec='-R$libdir'
9004       hardcode_shlibpath_var=no
9005       case $host_os in
9006       solaris2.[0-5] | solaris2.[0-5].*) ;;
9007       *)
9008         # The compiler driver will combine and reorder linker options,
9009         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9010         # but is careful enough not to reorder.
9011         # Supported since Solaris 2.6 (maybe 2.5.1?)
9012         if test "$GCC" = yes; then
9013           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9014         else
9015           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9016         fi
9017         ;;
9018       esac
9019       link_all_deplibs=yes
9020       ;;
9022     sunos4*)
9023       if test "x$host_vendor" = xsequent; then
9024         # Use $CC to link under sequent, because it throws in some extra .o
9025         # files that make .init and .fini sections work.
9026         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9027       else
9028         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9029       fi
9030       hardcode_libdir_flag_spec='-L$libdir'
9031       hardcode_direct=yes
9032       hardcode_minus_L=yes
9033       hardcode_shlibpath_var=no
9034       ;;
9036     sysv4)
9037       case $host_vendor in
9038         sni)
9039           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9040           hardcode_direct=yes # is this really true???
9041         ;;
9042         siemens)
9043           ## LD is ld it makes a PLAMLIB
9044           ## CC just makes a GrossModule.
9045           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9046           reload_cmds='$CC -r -o $output$reload_objs'
9047           hardcode_direct=no
9048         ;;
9049         motorola)
9050           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9051           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9052         ;;
9053       esac
9054       runpath_var='LD_RUN_PATH'
9055       hardcode_shlibpath_var=no
9056       ;;
9058     sysv4.3*)
9059       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9060       hardcode_shlibpath_var=no
9061       export_dynamic_flag_spec='-Bexport'
9062       ;;
9064     sysv4*MP*)
9065       if test -d /usr/nec; then
9066         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9067         hardcode_shlibpath_var=no
9068         runpath_var=LD_RUN_PATH
9069         hardcode_runpath_var=yes
9070         ld_shlibs=yes
9071       fi
9072       ;;
9074     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9075       no_undefined_flag='${wl}-z,text'
9076       archive_cmds_need_lc=no
9077       hardcode_shlibpath_var=no
9078       runpath_var='LD_RUN_PATH'
9080       if test "$GCC" = yes; then
9081         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9082         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9083       else
9084         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9085         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9086       fi
9087       ;;
9089     sysv5* | sco3.2v5* | sco5v6*)
9090       # Note: We can NOT use -z defs as we might desire, because we do not
9091       # link with -lc, and that would cause any symbols used from libc to
9092       # always be unresolved, which means just about no library would
9093       # ever link correctly.  If we're not using GNU ld we use -z text
9094       # though, which does catch some bad symbols but isn't as heavy-handed
9095       # as -z defs.
9096       no_undefined_flag='${wl}-z,text'
9097       allow_undefined_flag='${wl}-z,nodefs'
9098       archive_cmds_need_lc=no
9099       hardcode_shlibpath_var=no
9100       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9101       hardcode_libdir_separator=':'
9102       link_all_deplibs=yes
9103       export_dynamic_flag_spec='${wl}-Bexport'
9104       runpath_var='LD_RUN_PATH'
9106       if test "$GCC" = yes; then
9107         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9108         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9109       else
9110         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9111         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9112       fi
9113       ;;
9115     uts4*)
9116       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9117       hardcode_libdir_flag_spec='-L$libdir'
9118       hardcode_shlibpath_var=no
9119       ;;
9121     *)
9122       ld_shlibs=no
9123       ;;
9124     esac
9125   fi
9127 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9128 echo "${ECHO_T}$ld_shlibs" >&6; }
9129 test "$ld_shlibs" = no && can_build_shared=no
9132 # Do we need to explicitly link libc?
9134 case "x$archive_cmds_need_lc" in
9135 x|xyes)
9136   # Assume -lc should be added
9137   archive_cmds_need_lc=yes
9139   if test "$enable_shared" = yes && test "$GCC" = yes; then
9140     case $archive_cmds in
9141     *'~'*)
9142       # FIXME: we may have to deal with multi-command sequences.
9143       ;;
9144     '$CC '*)
9145       # Test whether the compiler implicitly links with -lc since on some
9146       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9147       # to ld, don't add -lc before -lgcc.
9148       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9149 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9150       $rm conftest*
9151       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9153       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9154   (eval $ac_compile) 2>&5
9155   ac_status=$?
9156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9157   (exit $ac_status); } 2>conftest.err; then
9158         soname=conftest
9159         lib=conftest
9160         libobjs=conftest.$ac_objext
9161         deplibs=
9162         wl=$lt_prog_compiler_wl
9163         pic_flag=$lt_prog_compiler_pic
9164         compiler_flags=-v
9165         linker_flags=-v
9166         verstring=
9167         output_objdir=.
9168         libname=conftest
9169         lt_save_allow_undefined_flag=$allow_undefined_flag
9170         allow_undefined_flag=
9171         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9172   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9173   ac_status=$?
9174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9175   (exit $ac_status); }
9176         then
9177           archive_cmds_need_lc=no
9178         else
9179           archive_cmds_need_lc=yes
9180         fi
9181         allow_undefined_flag=$lt_save_allow_undefined_flag
9182       else
9183         cat conftest.err 1>&5
9184       fi
9185       $rm conftest*
9186       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9187 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9188       ;;
9189     esac
9190   fi
9191   ;;
9192 esac
9194 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9195 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9196 library_names_spec=
9197 libname_spec='lib$name'
9198 soname_spec=
9199 shrext_cmds=".so"
9200 postinstall_cmds=
9201 postuninstall_cmds=
9202 finish_cmds=
9203 finish_eval=
9204 shlibpath_var=
9205 shlibpath_overrides_runpath=unknown
9206 version_type=none
9207 dynamic_linker="$host_os ld.so"
9208 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9210 if test "$GCC" = yes; then
9211   case $host_os in
9212     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9213     *) lt_awk_arg="/^libraries:/" ;;
9214   esac
9215   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9216   if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9217     # if the path contains ";" then we assume it to be the separator
9218     # otherwise default to the standard path separator (i.e. ":") - it is
9219     # assumed that no part of a normal pathname contains ";" but that should
9220     # okay in the real world where ";" in dirpaths is itself problematic.
9221     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9222   else
9223     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9224   fi
9225   # Ok, now we have the path, separated by spaces, we can step through it
9226   # and add multilib dir if necessary.
9227   lt_tmp_lt_search_path_spec=
9228   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9229   for lt_sys_path in $lt_search_path_spec; do
9230     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9231       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9232     else
9233       test -d "$lt_sys_path" && \
9234         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9235     fi
9236   done
9237   lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9238 BEGIN {RS=" "; FS="/|\n";} {
9239   lt_foo="";
9240   lt_count=0;
9241   for (lt_i = NF; lt_i > 0; lt_i--) {
9242     if ($lt_i != "" && $lt_i != ".") {
9243       if ($lt_i == "..") {
9244         lt_count++;
9245       } else {
9246         if (lt_count == 0) {
9247           lt_foo="/" $lt_i lt_foo;
9248         } else {
9249           lt_count--;
9250         }
9251       }
9252     }
9253   }
9254   if (lt_foo != "") { lt_freq[lt_foo]++; }
9255   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9256 }'`
9257   sys_lib_search_path_spec=`echo $lt_search_path_spec`
9258 else
9259   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9260 fi
9261 need_lib_prefix=unknown
9262 hardcode_into_libs=no
9264 # when you set need_version to no, make sure it does not cause -set_version
9265 # flags to be left without arguments
9266 need_version=unknown
9268 case $host_os in
9269 aix3*)
9270   version_type=linux
9271   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9272   shlibpath_var=LIBPATH
9274   # AIX 3 has no versioning support, so we append a major version to the name.
9275   soname_spec='${libname}${release}${shared_ext}$major'
9276   ;;
9278 aix[4-9]*)
9279   version_type=linux
9280   need_lib_prefix=no
9281   need_version=no
9282   hardcode_into_libs=yes
9283   if test "$host_cpu" = ia64; then
9284     # AIX 5 supports IA64
9285     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9286     shlibpath_var=LD_LIBRARY_PATH
9287   else
9288     # With GCC up to 2.95.x, collect2 would create an import file
9289     # for dependence libraries.  The import file would start with
9290     # the line `#! .'.  This would cause the generated library to
9291     # depend on `.', always an invalid library.  This was fixed in
9292     # development snapshots of GCC prior to 3.0.
9293     case $host_os in
9294       aix4 | aix4.[01] | aix4.[01].*)
9295       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9296            echo ' yes '
9297            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9298         :
9299       else
9300         can_build_shared=no
9301       fi
9302       ;;
9303     esac
9304     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9305     # soname into executable. Probably we can add versioning support to
9306     # collect2, so additional links can be useful in future.
9307     if test "$aix_use_runtimelinking" = yes; then
9308       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9309       # instead of lib<name>.a to let people know that these are not
9310       # typical AIX shared libraries.
9311       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9312     else
9313       # We preserve .a as extension for shared libraries through AIX4.2
9314       # and later when we are not doing run time linking.
9315       library_names_spec='${libname}${release}.a $libname.a'
9316       soname_spec='${libname}${release}${shared_ext}$major'
9317     fi
9318     shlibpath_var=LIBPATH
9319   fi
9320   ;;
9322 amigaos*)
9323   library_names_spec='$libname.ixlibrary $libname.a'
9324   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9325   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'
9326   ;;
9328 beos*)
9329   library_names_spec='${libname}${shared_ext}'
9330   dynamic_linker="$host_os ld.so"
9331   shlibpath_var=LIBRARY_PATH
9332   ;;
9334 bsdi[45]*)
9335   version_type=linux
9336   need_version=no
9337   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9338   soname_spec='${libname}${release}${shared_ext}$major'
9339   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9340   shlibpath_var=LD_LIBRARY_PATH
9341   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9342   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9343   # the default ld.so.conf also contains /usr/contrib/lib and
9344   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9345   # libtool to hard-code these into programs
9346   ;;
9348 cygwin* | mingw* | pw32*)
9349   version_type=windows
9350   shrext_cmds=".dll"
9351   need_version=no
9352   need_lib_prefix=no
9354   case $GCC,$host_os in
9355   yes,cygwin* | yes,mingw* | yes,pw32*)
9356     library_names_spec='$libname.dll.a'
9357     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9358     postinstall_cmds='base_file=`basename \${file}`~
9359       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9360       dldir=$destdir/`dirname \$dlpath`~
9361       test -d \$dldir || mkdir -p \$dldir~
9362       $install_prog $dir/$dlname \$dldir/$dlname~
9363       chmod a+x \$dldir/$dlname'
9364     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9365       dlpath=$dir/\$dldll~
9366        $rm \$dlpath'
9367     shlibpath_overrides_runpath=yes
9369     case $host_os in
9370     cygwin*)
9371       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9372       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9373       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9374       ;;
9375     mingw*)
9376       # MinGW DLLs use traditional 'lib' prefix
9377       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9378       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9379       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9380         # It is most probably a Windows format PATH printed by
9381         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9382         # path with ; separators, and with drive letters. We can handle the
9383         # drive letters (cygwin fileutils understands them), so leave them,
9384         # especially as we might pass files found there to a mingw objdump,
9385         # which wouldn't understand a cygwinified path. Ahh.
9386         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9387       else
9388         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9389       fi
9390       ;;
9391     pw32*)
9392       # pw32 DLLs use 'pw' prefix rather than 'lib'
9393       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9394       ;;
9395     esac
9396     ;;
9398   *)
9399     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9400     ;;
9401   esac
9402   dynamic_linker='Win32 ld.exe'
9403   # FIXME: first we should search . and the directory the executable is in
9404   shlibpath_var=PATH
9405   ;;
9407 darwin* | rhapsody*)
9408   dynamic_linker="$host_os dyld"
9409   version_type=darwin
9410   need_lib_prefix=no
9411   need_version=no
9412   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9413   soname_spec='${libname}${release}${major}$shared_ext'
9414   shlibpath_overrides_runpath=yes
9415   shlibpath_var=DYLD_LIBRARY_PATH
9416   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9418   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9419   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9420   ;;
9422 dgux*)
9423   version_type=linux
9424   need_lib_prefix=no
9425   need_version=no
9426   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9427   soname_spec='${libname}${release}${shared_ext}$major'
9428   shlibpath_var=LD_LIBRARY_PATH
9429   ;;
9431 freebsd1*)
9432   dynamic_linker=no
9433   ;;
9435 freebsd* | dragonfly*)
9436   # DragonFly does not have aout.  When/if they implement a new
9437   # versioning mechanism, adjust this.
9438   if test -x /usr/bin/objformat; then
9439     objformat=`/usr/bin/objformat`
9440   else
9441     case $host_os in
9442     freebsd[123]*) objformat=aout ;;
9443     *) objformat=elf ;;
9444     esac
9445   fi
9446   version_type=freebsd-$objformat
9447   case $version_type in
9448     freebsd-elf*)
9449       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9450       need_version=no
9451       need_lib_prefix=no
9452       ;;
9453     freebsd-*)
9454       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9455       need_version=yes
9456       ;;
9457   esac
9458   shlibpath_var=LD_LIBRARY_PATH
9459   case $host_os in
9460   freebsd2*)
9461     shlibpath_overrides_runpath=yes
9462     ;;
9463   freebsd3.[01]* | freebsdelf3.[01]*)
9464     shlibpath_overrides_runpath=yes
9465     hardcode_into_libs=yes
9466     ;;
9467   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9468   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9469     shlibpath_overrides_runpath=no
9470     hardcode_into_libs=yes
9471     ;;
9472   *) # from 4.6 on, and DragonFly
9473     shlibpath_overrides_runpath=yes
9474     hardcode_into_libs=yes
9475     ;;
9476   esac
9477   ;;
9479 gnu*)
9480   version_type=linux
9481   need_lib_prefix=no
9482   need_version=no
9483   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9484   soname_spec='${libname}${release}${shared_ext}$major'
9485   shlibpath_var=LD_LIBRARY_PATH
9486   hardcode_into_libs=yes
9487   ;;
9489 hpux9* | hpux10* | hpux11*)
9490   # Give a soname corresponding to the major version so that dld.sl refuses to
9491   # link against other versions.
9492   version_type=sunos
9493   need_lib_prefix=no
9494   need_version=no
9495   case $host_cpu in
9496   ia64*)
9497     shrext_cmds='.so'
9498     hardcode_into_libs=yes
9499     dynamic_linker="$host_os dld.so"
9500     shlibpath_var=LD_LIBRARY_PATH
9501     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9502     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9503     soname_spec='${libname}${release}${shared_ext}$major'
9504     if test "X$HPUX_IA64_MODE" = X32; then
9505       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9506     else
9507       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9508     fi
9509     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9510     ;;
9511    hppa*64*)
9512      shrext_cmds='.sl'
9513      hardcode_into_libs=yes
9514      dynamic_linker="$host_os dld.sl"
9515      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9516      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9517      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9518      soname_spec='${libname}${release}${shared_ext}$major'
9519      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9520      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9521      ;;
9522    *)
9523     shrext_cmds='.sl'
9524     dynamic_linker="$host_os dld.sl"
9525     shlibpath_var=SHLIB_PATH
9526     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9527     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9528     soname_spec='${libname}${release}${shared_ext}$major'
9529     ;;
9530   esac
9531   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9532   postinstall_cmds='chmod 555 $lib'
9533   ;;
9535 interix[3-9]*)
9536   version_type=linux
9537   need_lib_prefix=no
9538   need_version=no
9539   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9540   soname_spec='${libname}${release}${shared_ext}$major'
9541   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9542   shlibpath_var=LD_LIBRARY_PATH
9543   shlibpath_overrides_runpath=no
9544   hardcode_into_libs=yes
9545   ;;
9547 irix5* | irix6* | nonstopux*)
9548   case $host_os in
9549     nonstopux*) version_type=nonstopux ;;
9550     *)
9551         if test "$lt_cv_prog_gnu_ld" = yes; then
9552                 version_type=linux
9553         else
9554                 version_type=irix
9555         fi ;;
9556   esac
9557   need_lib_prefix=no
9558   need_version=no
9559   soname_spec='${libname}${release}${shared_ext}$major'
9560   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9561   case $host_os in
9562   irix5* | nonstopux*)
9563     libsuff= shlibsuff=
9564     ;;
9565   *)
9566     case $LD in # libtool.m4 will add one of these switches to LD
9567     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9568       libsuff= shlibsuff= libmagic=32-bit;;
9569     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9570       libsuff=32 shlibsuff=N32 libmagic=N32;;
9571     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9572       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9573     *) libsuff= shlibsuff= libmagic=never-match;;
9574     esac
9575     ;;
9576   esac
9577   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9578   shlibpath_overrides_runpath=no
9579   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9580   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9581   hardcode_into_libs=yes
9582   ;;
9584 # No shared lib support for Linux oldld, aout, or coff.
9585 linux*oldld* | linux*aout* | linux*coff*)
9586   dynamic_linker=no
9587   ;;
9589 # This must be Linux ELF.
9590 linux* | k*bsd*-gnu)
9591   version_type=linux
9592   need_lib_prefix=no
9593   need_version=no
9594   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9595   soname_spec='${libname}${release}${shared_ext}$major'
9596   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9597   shlibpath_var=LD_LIBRARY_PATH
9598   shlibpath_overrides_runpath=no
9599   # This implies no fast_install, which is unacceptable.
9600   # Some rework will be needed to allow for fast_install
9601   # before this can be enabled.
9602   hardcode_into_libs=yes
9604   # Append ld.so.conf contents to the search path
9605   if test -f /etc/ld.so.conf; then
9606     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' ' '`
9607     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9608   fi
9610   # We used to test for /lib/ld.so.1 and disable shared libraries on
9611   # powerpc, because MkLinux only supported shared libraries with the
9612   # GNU dynamic linker.  Since this was broken with cross compilers,
9613   # most powerpc-linux boxes support dynamic linking these days and
9614   # people can always --disable-shared, the test was removed, and we
9615   # assume the GNU/Linux dynamic linker is in use.
9616   dynamic_linker='GNU/Linux ld.so'
9617   ;;
9619 netbsdelf*-gnu)
9620   version_type=linux
9621   need_lib_prefix=no
9622   need_version=no
9623   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9624   soname_spec='${libname}${release}${shared_ext}$major'
9625   shlibpath_var=LD_LIBRARY_PATH
9626   shlibpath_overrides_runpath=no
9627   hardcode_into_libs=yes
9628   dynamic_linker='NetBSD ld.elf_so'
9629   ;;
9631 netbsd*)
9632   version_type=sunos
9633   need_lib_prefix=no
9634   need_version=no
9635   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9636     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9637     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9638     dynamic_linker='NetBSD (a.out) ld.so'
9639   else
9640     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9641     soname_spec='${libname}${release}${shared_ext}$major'
9642     dynamic_linker='NetBSD ld.elf_so'
9643   fi
9644   shlibpath_var=LD_LIBRARY_PATH
9645   shlibpath_overrides_runpath=yes
9646   hardcode_into_libs=yes
9647   ;;
9649 newsos6)
9650   version_type=linux
9651   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9652   shlibpath_var=LD_LIBRARY_PATH
9653   shlibpath_overrides_runpath=yes
9654   ;;
9656 nto-qnx*)
9657   version_type=linux
9658   need_lib_prefix=no
9659   need_version=no
9660   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9661   soname_spec='${libname}${release}${shared_ext}$major'
9662   shlibpath_var=LD_LIBRARY_PATH
9663   shlibpath_overrides_runpath=yes
9664   ;;
9666 openbsd*)
9667   version_type=sunos
9668   sys_lib_dlsearch_path_spec="/usr/lib"
9669   need_lib_prefix=no
9670   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9671   case $host_os in
9672     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9673     *)                         need_version=no  ;;
9674   esac
9675   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9676   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9677   shlibpath_var=LD_LIBRARY_PATH
9678   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9679     case $host_os in
9680       openbsd2.[89] | openbsd2.[89].*)
9681         shlibpath_overrides_runpath=no
9682         ;;
9683       *)
9684         shlibpath_overrides_runpath=yes
9685         ;;
9686       esac
9687   else
9688     shlibpath_overrides_runpath=yes
9689   fi
9690   ;;
9692 os2*)
9693   libname_spec='$name'
9694   shrext_cmds=".dll"
9695   need_lib_prefix=no
9696   library_names_spec='$libname${shared_ext} $libname.a'
9697   dynamic_linker='OS/2 ld.exe'
9698   shlibpath_var=LIBPATH
9699   ;;
9701 osf3* | osf4* | osf5*)
9702   version_type=osf
9703   need_lib_prefix=no
9704   need_version=no
9705   soname_spec='${libname}${release}${shared_ext}$major'
9706   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9707   shlibpath_var=LD_LIBRARY_PATH
9708   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9709   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9710   ;;
9712 rdos*)
9713   dynamic_linker=no
9714   ;;
9716 solaris*)
9717   version_type=linux
9718   need_lib_prefix=no
9719   need_version=no
9720   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9721   soname_spec='${libname}${release}${shared_ext}$major'
9722   shlibpath_var=LD_LIBRARY_PATH
9723   shlibpath_overrides_runpath=yes
9724   hardcode_into_libs=yes
9725   # ldd complains unless libraries are executable
9726   postinstall_cmds='chmod +x $lib'
9727   ;;
9729 sunos4*)
9730   version_type=sunos
9731   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9732   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9733   shlibpath_var=LD_LIBRARY_PATH
9734   shlibpath_overrides_runpath=yes
9735   if test "$with_gnu_ld" = yes; then
9736     need_lib_prefix=no
9737   fi
9738   need_version=yes
9739   ;;
9741 sysv4 | sysv4.3*)
9742   version_type=linux
9743   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9744   soname_spec='${libname}${release}${shared_ext}$major'
9745   shlibpath_var=LD_LIBRARY_PATH
9746   case $host_vendor in
9747     sni)
9748       shlibpath_overrides_runpath=no
9749       need_lib_prefix=no
9750       export_dynamic_flag_spec='${wl}-Blargedynsym'
9751       runpath_var=LD_RUN_PATH
9752       ;;
9753     siemens)
9754       need_lib_prefix=no
9755       ;;
9756     motorola)
9757       need_lib_prefix=no
9758       need_version=no
9759       shlibpath_overrides_runpath=no
9760       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9761       ;;
9762   esac
9763   ;;
9765 sysv4*MP*)
9766   if test -d /usr/nec ;then
9767     version_type=linux
9768     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9769     soname_spec='$libname${shared_ext}.$major'
9770     shlibpath_var=LD_LIBRARY_PATH
9771   fi
9772   ;;
9774 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9775   version_type=freebsd-elf
9776   need_lib_prefix=no
9777   need_version=no
9778   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9779   soname_spec='${libname}${release}${shared_ext}$major'
9780   shlibpath_var=LD_LIBRARY_PATH
9781   hardcode_into_libs=yes
9782   if test "$with_gnu_ld" = yes; then
9783     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9784     shlibpath_overrides_runpath=no
9785   else
9786     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9787     shlibpath_overrides_runpath=yes
9788     case $host_os in
9789       sco3.2v5*)
9790         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9791         ;;
9792     esac
9793   fi
9794   sys_lib_dlsearch_path_spec='/usr/lib'
9795   ;;
9797 uts4*)
9798   version_type=linux
9799   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9800   soname_spec='${libname}${release}${shared_ext}$major'
9801   shlibpath_var=LD_LIBRARY_PATH
9802   ;;
9804 *)
9805   dynamic_linker=no
9806   ;;
9807 esac
9808 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9809 echo "${ECHO_T}$dynamic_linker" >&6; }
9810 test "$dynamic_linker" = no && can_build_shared=no
9812 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9813   echo $ECHO_N "(cached) $ECHO_C" >&6
9814 else
9815   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9816 fi
9818 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9819 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9820   echo $ECHO_N "(cached) $ECHO_C" >&6
9821 else
9822   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9823 fi
9825 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9827 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9828 if test "$GCC" = yes; then
9829   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9830 fi
9832 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9833 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9834 hardcode_action=
9835 if test -n "$hardcode_libdir_flag_spec" || \
9836    test -n "$runpath_var" || \
9837    test "X$hardcode_automatic" = "Xyes" ; then
9839   # We can hardcode non-existant directories.
9840   if test "$hardcode_direct" != no &&
9841      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9842      # have to relink, otherwise we might link with an installed library
9843      # when we should be linking with a yet-to-be-installed one
9844      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9845      test "$hardcode_minus_L" != no; then
9846     # Linking always hardcodes the temporary library directory.
9847     hardcode_action=relink
9848   else
9849     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9850     hardcode_action=immediate
9851   fi
9852 else
9853   # We cannot hardcode anything, or else we can only hardcode existing
9854   # directories.
9855   hardcode_action=unsupported
9856 fi
9857 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9858 echo "${ECHO_T}$hardcode_action" >&6; }
9860 if test "$hardcode_action" = relink; then
9861   # Fast installation is not supported
9862   enable_fast_install=no
9863 elif test "$shlibpath_overrides_runpath" = yes ||
9864      test "$enable_shared" = no; then
9865   # Fast installation is not necessary
9866   enable_fast_install=needless
9867 fi
9869 striplib=
9870 old_striplib=
9871 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9872 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9873 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9874   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9875   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9876   { echo "$as_me:$LINENO: result: yes" >&5
9877 echo "${ECHO_T}yes" >&6; }
9878 else
9879 # FIXME - insert some real tests, host_os isn't really good enough
9880   case $host_os in
9881    darwin*)
9882        if test -n "$STRIP" ; then
9883          striplib="$STRIP -x"
9884          old_striplib="$STRIP -S"
9885          { echo "$as_me:$LINENO: result: yes" >&5
9886 echo "${ECHO_T}yes" >&6; }
9887        else
9888   { echo "$as_me:$LINENO: result: no" >&5
9889 echo "${ECHO_T}no" >&6; }
9890 fi
9891        ;;
9892    *)
9893   { echo "$as_me:$LINENO: result: no" >&5
9894 echo "${ECHO_T}no" >&6; }
9895     ;;
9896   esac
9897 fi
9899 if test "x$enable_dlopen" != xyes; then
9900   enable_dlopen=unknown
9901   enable_dlopen_self=unknown
9902   enable_dlopen_self_static=unknown
9903 else
9904   lt_cv_dlopen=no
9905   lt_cv_dlopen_libs=
9907   case $host_os in
9908   beos*)
9909     lt_cv_dlopen="load_add_on"
9910     lt_cv_dlopen_libs=
9911     lt_cv_dlopen_self=yes
9912     ;;
9914   mingw* | pw32*)
9915     lt_cv_dlopen="LoadLibrary"
9916     lt_cv_dlopen_libs=
9917    ;;
9919   cygwin*)
9920     lt_cv_dlopen="dlopen"
9921     lt_cv_dlopen_libs=
9922    ;;
9924   darwin*)
9925   # if libdl is installed we need to link against it
9926     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9927 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9928 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9929   echo $ECHO_N "(cached) $ECHO_C" >&6
9930 else
9931   ac_check_lib_save_LIBS=$LIBS
9932 LIBS="-ldl  $LIBS"
9933 cat >conftest.$ac_ext <<_ACEOF
9934 /* confdefs.h.  */
9935 _ACEOF
9936 cat confdefs.h >>conftest.$ac_ext
9937 cat >>conftest.$ac_ext <<_ACEOF
9938 /* end confdefs.h.  */
9940 /* Override any GCC internal prototype to avoid an error.
9941    Use char because int might match the return type of a GCC
9942    builtin and then its argument prototype would still apply.  */
9943 #ifdef __cplusplus
9944 extern "C"
9945 #endif
9946 char dlopen ();
9947 int
9948 main ()
9950 return dlopen ();
9951   ;
9952   return 0;
9954 _ACEOF
9955 rm -f conftest.$ac_objext conftest$ac_exeext
9956 if { (ac_try="$ac_link"
9957 case "(($ac_try" in
9958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9959   *) ac_try_echo=$ac_try;;
9960 esac
9961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9962   (eval "$ac_link") 2>conftest.er1
9963   ac_status=$?
9964   grep -v '^ *+' conftest.er1 >conftest.err
9965   rm -f conftest.er1
9966   cat conftest.err >&5
9967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9968   (exit $ac_status); } && {
9969          test -z "$ac_c_werror_flag" ||
9970          test ! -s conftest.err
9971        } && test -s conftest$ac_exeext &&
9972        $as_test_x conftest$ac_exeext; then
9973   ac_cv_lib_dl_dlopen=yes
9974 else
9975   echo "$as_me: failed program was:" >&5
9976 sed 's/^/| /' conftest.$ac_ext >&5
9978         ac_cv_lib_dl_dlopen=no
9979 fi
9981 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9982       conftest$ac_exeext conftest.$ac_ext
9983 LIBS=$ac_check_lib_save_LIBS
9984 fi
9985 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9986 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9987 if test $ac_cv_lib_dl_dlopen = yes; then
9988   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9989 else
9991     lt_cv_dlopen="dyld"
9992     lt_cv_dlopen_libs=
9993     lt_cv_dlopen_self=yes
9995 fi
9997    ;;
9999   *)
10000     { echo "$as_me:$LINENO: checking for shl_load" >&5
10001 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10002 if test "${ac_cv_func_shl_load+set}" = set; then
10003   echo $ECHO_N "(cached) $ECHO_C" >&6
10004 else
10005   cat >conftest.$ac_ext <<_ACEOF
10006 /* confdefs.h.  */
10007 _ACEOF
10008 cat confdefs.h >>conftest.$ac_ext
10009 cat >>conftest.$ac_ext <<_ACEOF
10010 /* end confdefs.h.  */
10011 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10012    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10013 #define shl_load innocuous_shl_load
10015 /* System header to define __stub macros and hopefully few prototypes,
10016     which can conflict with char shl_load (); below.
10017     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10018     <limits.h> exists even on freestanding compilers.  */
10020 #ifdef __STDC__
10021 # include <limits.h>
10022 #else
10023 # include <assert.h>
10024 #endif
10026 #undef shl_load
10028 /* Override any GCC internal prototype to avoid an error.
10029    Use char because int might match the return type of a GCC
10030    builtin and then its argument prototype would still apply.  */
10031 #ifdef __cplusplus
10032 extern "C"
10033 #endif
10034 char shl_load ();
10035 /* The GNU C library defines this for functions which it implements
10036     to always fail with ENOSYS.  Some functions are actually named
10037     something starting with __ and the normal name is an alias.  */
10038 #if defined __stub_shl_load || defined __stub___shl_load
10039 choke me
10040 #endif
10042 int
10043 main ()
10045 return shl_load ();
10046   ;
10047   return 0;
10049 _ACEOF
10050 rm -f conftest.$ac_objext conftest$ac_exeext
10051 if { (ac_try="$ac_link"
10052 case "(($ac_try" in
10053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10054   *) ac_try_echo=$ac_try;;
10055 esac
10056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10057   (eval "$ac_link") 2>conftest.er1
10058   ac_status=$?
10059   grep -v '^ *+' conftest.er1 >conftest.err
10060   rm -f conftest.er1
10061   cat conftest.err >&5
10062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10063   (exit $ac_status); } && {
10064          test -z "$ac_c_werror_flag" ||
10065          test ! -s conftest.err
10066        } && test -s conftest$ac_exeext &&
10067        $as_test_x conftest$ac_exeext; then
10068   ac_cv_func_shl_load=yes
10069 else
10070   echo "$as_me: failed program was:" >&5
10071 sed 's/^/| /' conftest.$ac_ext >&5
10073         ac_cv_func_shl_load=no
10076 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10077       conftest$ac_exeext conftest.$ac_ext
10079 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10080 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10081 if test $ac_cv_func_shl_load = yes; then
10082   lt_cv_dlopen="shl_load"
10083 else
10084   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10085 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10086 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10087   echo $ECHO_N "(cached) $ECHO_C" >&6
10088 else
10089   ac_check_lib_save_LIBS=$LIBS
10090 LIBS="-ldld  $LIBS"
10091 cat >conftest.$ac_ext <<_ACEOF
10092 /* confdefs.h.  */
10093 _ACEOF
10094 cat confdefs.h >>conftest.$ac_ext
10095 cat >>conftest.$ac_ext <<_ACEOF
10096 /* end confdefs.h.  */
10098 /* Override any GCC internal prototype to avoid an error.
10099    Use char because int might match the return type of a GCC
10100    builtin and then its argument prototype would still apply.  */
10101 #ifdef __cplusplus
10102 extern "C"
10103 #endif
10104 char shl_load ();
10105 int
10106 main ()
10108 return shl_load ();
10109   ;
10110   return 0;
10112 _ACEOF
10113 rm -f conftest.$ac_objext conftest$ac_exeext
10114 if { (ac_try="$ac_link"
10115 case "(($ac_try" in
10116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10117   *) ac_try_echo=$ac_try;;
10118 esac
10119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10120   (eval "$ac_link") 2>conftest.er1
10121   ac_status=$?
10122   grep -v '^ *+' conftest.er1 >conftest.err
10123   rm -f conftest.er1
10124   cat conftest.err >&5
10125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10126   (exit $ac_status); } && {
10127          test -z "$ac_c_werror_flag" ||
10128          test ! -s conftest.err
10129        } && test -s conftest$ac_exeext &&
10130        $as_test_x conftest$ac_exeext; then
10131   ac_cv_lib_dld_shl_load=yes
10132 else
10133   echo "$as_me: failed program was:" >&5
10134 sed 's/^/| /' conftest.$ac_ext >&5
10136         ac_cv_lib_dld_shl_load=no
10139 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10140       conftest$ac_exeext conftest.$ac_ext
10141 LIBS=$ac_check_lib_save_LIBS
10143 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10144 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10145 if test $ac_cv_lib_dld_shl_load = yes; then
10146   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10147 else
10148   { echo "$as_me:$LINENO: checking for dlopen" >&5
10149 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10150 if test "${ac_cv_func_dlopen+set}" = set; then
10151   echo $ECHO_N "(cached) $ECHO_C" >&6
10152 else
10153   cat >conftest.$ac_ext <<_ACEOF
10154 /* confdefs.h.  */
10155 _ACEOF
10156 cat confdefs.h >>conftest.$ac_ext
10157 cat >>conftest.$ac_ext <<_ACEOF
10158 /* end confdefs.h.  */
10159 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10160    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10161 #define dlopen innocuous_dlopen
10163 /* System header to define __stub macros and hopefully few prototypes,
10164     which can conflict with char dlopen (); below.
10165     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10166     <limits.h> exists even on freestanding compilers.  */
10168 #ifdef __STDC__
10169 # include <limits.h>
10170 #else
10171 # include <assert.h>
10172 #endif
10174 #undef dlopen
10176 /* Override any GCC internal prototype to avoid an error.
10177    Use char because int might match the return type of a GCC
10178    builtin and then its argument prototype would still apply.  */
10179 #ifdef __cplusplus
10180 extern "C"
10181 #endif
10182 char dlopen ();
10183 /* The GNU C library defines this for functions which it implements
10184     to always fail with ENOSYS.  Some functions are actually named
10185     something starting with __ and the normal name is an alias.  */
10186 #if defined __stub_dlopen || defined __stub___dlopen
10187 choke me
10188 #endif
10190 int
10191 main ()
10193 return dlopen ();
10194   ;
10195   return 0;
10197 _ACEOF
10198 rm -f conftest.$ac_objext conftest$ac_exeext
10199 if { (ac_try="$ac_link"
10200 case "(($ac_try" in
10201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10202   *) ac_try_echo=$ac_try;;
10203 esac
10204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10205   (eval "$ac_link") 2>conftest.er1
10206   ac_status=$?
10207   grep -v '^ *+' conftest.er1 >conftest.err
10208   rm -f conftest.er1
10209   cat conftest.err >&5
10210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10211   (exit $ac_status); } && {
10212          test -z "$ac_c_werror_flag" ||
10213          test ! -s conftest.err
10214        } && test -s conftest$ac_exeext &&
10215        $as_test_x conftest$ac_exeext; then
10216   ac_cv_func_dlopen=yes
10217 else
10218   echo "$as_me: failed program was:" >&5
10219 sed 's/^/| /' conftest.$ac_ext >&5
10221         ac_cv_func_dlopen=no
10224 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10225       conftest$ac_exeext conftest.$ac_ext
10227 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10228 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10229 if test $ac_cv_func_dlopen = yes; then
10230   lt_cv_dlopen="dlopen"
10231 else
10232   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10233 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10234 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10235   echo $ECHO_N "(cached) $ECHO_C" >&6
10236 else
10237   ac_check_lib_save_LIBS=$LIBS
10238 LIBS="-ldl  $LIBS"
10239 cat >conftest.$ac_ext <<_ACEOF
10240 /* confdefs.h.  */
10241 _ACEOF
10242 cat confdefs.h >>conftest.$ac_ext
10243 cat >>conftest.$ac_ext <<_ACEOF
10244 /* end confdefs.h.  */
10246 /* Override any GCC internal prototype to avoid an error.
10247    Use char because int might match the return type of a GCC
10248    builtin and then its argument prototype would still apply.  */
10249 #ifdef __cplusplus
10250 extern "C"
10251 #endif
10252 char dlopen ();
10253 int
10254 main ()
10256 return dlopen ();
10257   ;
10258   return 0;
10260 _ACEOF
10261 rm -f conftest.$ac_objext conftest$ac_exeext
10262 if { (ac_try="$ac_link"
10263 case "(($ac_try" in
10264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10265   *) ac_try_echo=$ac_try;;
10266 esac
10267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10268   (eval "$ac_link") 2>conftest.er1
10269   ac_status=$?
10270   grep -v '^ *+' conftest.er1 >conftest.err
10271   rm -f conftest.er1
10272   cat conftest.err >&5
10273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10274   (exit $ac_status); } && {
10275          test -z "$ac_c_werror_flag" ||
10276          test ! -s conftest.err
10277        } && test -s conftest$ac_exeext &&
10278        $as_test_x conftest$ac_exeext; then
10279   ac_cv_lib_dl_dlopen=yes
10280 else
10281   echo "$as_me: failed program was:" >&5
10282 sed 's/^/| /' conftest.$ac_ext >&5
10284         ac_cv_lib_dl_dlopen=no
10287 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10288       conftest$ac_exeext conftest.$ac_ext
10289 LIBS=$ac_check_lib_save_LIBS
10291 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10292 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10293 if test $ac_cv_lib_dl_dlopen = yes; then
10294   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10295 else
10296   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10297 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10298 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10299   echo $ECHO_N "(cached) $ECHO_C" >&6
10300 else
10301   ac_check_lib_save_LIBS=$LIBS
10302 LIBS="-lsvld  $LIBS"
10303 cat >conftest.$ac_ext <<_ACEOF
10304 /* confdefs.h.  */
10305 _ACEOF
10306 cat confdefs.h >>conftest.$ac_ext
10307 cat >>conftest.$ac_ext <<_ACEOF
10308 /* end confdefs.h.  */
10310 /* Override any GCC internal prototype to avoid an error.
10311    Use char because int might match the return type of a GCC
10312    builtin and then its argument prototype would still apply.  */
10313 #ifdef __cplusplus
10314 extern "C"
10315 #endif
10316 char dlopen ();
10317 int
10318 main ()
10320 return dlopen ();
10321   ;
10322   return 0;
10324 _ACEOF
10325 rm -f conftest.$ac_objext conftest$ac_exeext
10326 if { (ac_try="$ac_link"
10327 case "(($ac_try" in
10328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10329   *) ac_try_echo=$ac_try;;
10330 esac
10331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10332   (eval "$ac_link") 2>conftest.er1
10333   ac_status=$?
10334   grep -v '^ *+' conftest.er1 >conftest.err
10335   rm -f conftest.er1
10336   cat conftest.err >&5
10337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10338   (exit $ac_status); } && {
10339          test -z "$ac_c_werror_flag" ||
10340          test ! -s conftest.err
10341        } && test -s conftest$ac_exeext &&
10342        $as_test_x conftest$ac_exeext; then
10343   ac_cv_lib_svld_dlopen=yes
10344 else
10345   echo "$as_me: failed program was:" >&5
10346 sed 's/^/| /' conftest.$ac_ext >&5
10348         ac_cv_lib_svld_dlopen=no
10351 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10352       conftest$ac_exeext conftest.$ac_ext
10353 LIBS=$ac_check_lib_save_LIBS
10355 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10356 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10357 if test $ac_cv_lib_svld_dlopen = yes; then
10358   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10359 else
10360   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10361 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10362 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10363   echo $ECHO_N "(cached) $ECHO_C" >&6
10364 else
10365   ac_check_lib_save_LIBS=$LIBS
10366 LIBS="-ldld  $LIBS"
10367 cat >conftest.$ac_ext <<_ACEOF
10368 /* confdefs.h.  */
10369 _ACEOF
10370 cat confdefs.h >>conftest.$ac_ext
10371 cat >>conftest.$ac_ext <<_ACEOF
10372 /* end confdefs.h.  */
10374 /* Override any GCC internal prototype to avoid an error.
10375    Use char because int might match the return type of a GCC
10376    builtin and then its argument prototype would still apply.  */
10377 #ifdef __cplusplus
10378 extern "C"
10379 #endif
10380 char dld_link ();
10381 int
10382 main ()
10384 return dld_link ();
10385   ;
10386   return 0;
10388 _ACEOF
10389 rm -f conftest.$ac_objext conftest$ac_exeext
10390 if { (ac_try="$ac_link"
10391 case "(($ac_try" in
10392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10393   *) ac_try_echo=$ac_try;;
10394 esac
10395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10396   (eval "$ac_link") 2>conftest.er1
10397   ac_status=$?
10398   grep -v '^ *+' conftest.er1 >conftest.err
10399   rm -f conftest.er1
10400   cat conftest.err >&5
10401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10402   (exit $ac_status); } && {
10403          test -z "$ac_c_werror_flag" ||
10404          test ! -s conftest.err
10405        } && test -s conftest$ac_exeext &&
10406        $as_test_x conftest$ac_exeext; then
10407   ac_cv_lib_dld_dld_link=yes
10408 else
10409   echo "$as_me: failed program was:" >&5
10410 sed 's/^/| /' conftest.$ac_ext >&5
10412         ac_cv_lib_dld_dld_link=no
10415 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10416       conftest$ac_exeext conftest.$ac_ext
10417 LIBS=$ac_check_lib_save_LIBS
10419 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10420 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10421 if test $ac_cv_lib_dld_dld_link = yes; then
10422   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10440     ;;
10441   esac
10443   if test "x$lt_cv_dlopen" != xno; then
10444     enable_dlopen=yes
10445   else
10446     enable_dlopen=no
10447   fi
10449   case $lt_cv_dlopen in
10450   dlopen)
10451     save_CPPFLAGS="$CPPFLAGS"
10452     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10454     save_LDFLAGS="$LDFLAGS"
10455     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10457     save_LIBS="$LIBS"
10458     LIBS="$lt_cv_dlopen_libs $LIBS"
10460     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10461 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10462 if test "${lt_cv_dlopen_self+set}" = set; then
10463   echo $ECHO_N "(cached) $ECHO_C" >&6
10464 else
10465           if test "$cross_compiling" = yes; then :
10466   lt_cv_dlopen_self=cross
10467 else
10468   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10469   lt_status=$lt_dlunknown
10470   cat > conftest.$ac_ext <<EOF
10471 #line 10471 "configure"
10472 #include "confdefs.h"
10474 #if HAVE_DLFCN_H
10475 #include <dlfcn.h>
10476 #endif
10478 #include <stdio.h>
10480 #ifdef RTLD_GLOBAL
10481 #  define LT_DLGLOBAL           RTLD_GLOBAL
10482 #else
10483 #  ifdef DL_GLOBAL
10484 #    define LT_DLGLOBAL         DL_GLOBAL
10485 #  else
10486 #    define LT_DLGLOBAL         0
10487 #  endif
10488 #endif
10490 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10491    find out it does not work in some platform. */
10492 #ifndef LT_DLLAZY_OR_NOW
10493 #  ifdef RTLD_LAZY
10494 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10495 #  else
10496 #    ifdef DL_LAZY
10497 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10498 #    else
10499 #      ifdef RTLD_NOW
10500 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10501 #      else
10502 #        ifdef DL_NOW
10503 #          define LT_DLLAZY_OR_NOW      DL_NOW
10504 #        else
10505 #          define LT_DLLAZY_OR_NOW      0
10506 #        endif
10507 #      endif
10508 #    endif
10509 #  endif
10510 #endif
10512 #ifdef __cplusplus
10513 extern "C" void exit (int);
10514 #endif
10516 void fnord() { int i=42;}
10517 int main ()
10519   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10520   int status = $lt_dlunknown;
10522   if (self)
10523     {
10524       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10525       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10526       /* dlclose (self); */
10527     }
10528   else
10529     puts (dlerror ());
10531     exit (status);
10533 EOF
10534   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10535   (eval $ac_link) 2>&5
10536   ac_status=$?
10537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10538   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10539     (./conftest; exit; ) >&5 2>/dev/null
10540     lt_status=$?
10541     case x$lt_status in
10542       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10543       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10544       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10545     esac
10546   else :
10547     # compilation failed
10548     lt_cv_dlopen_self=no
10549   fi
10551 rm -fr conftest*
10555 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10556 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10558     if test "x$lt_cv_dlopen_self" = xyes; then
10559       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10560       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10561 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10562 if test "${lt_cv_dlopen_self_static+set}" = set; then
10563   echo $ECHO_N "(cached) $ECHO_C" >&6
10564 else
10565           if test "$cross_compiling" = yes; then :
10566   lt_cv_dlopen_self_static=cross
10567 else
10568   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10569   lt_status=$lt_dlunknown
10570   cat > conftest.$ac_ext <<EOF
10571 #line 10571 "configure"
10572 #include "confdefs.h"
10574 #if HAVE_DLFCN_H
10575 #include <dlfcn.h>
10576 #endif
10578 #include <stdio.h>
10580 #ifdef RTLD_GLOBAL
10581 #  define LT_DLGLOBAL           RTLD_GLOBAL
10582 #else
10583 #  ifdef DL_GLOBAL
10584 #    define LT_DLGLOBAL         DL_GLOBAL
10585 #  else
10586 #    define LT_DLGLOBAL         0
10587 #  endif
10588 #endif
10590 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10591    find out it does not work in some platform. */
10592 #ifndef LT_DLLAZY_OR_NOW
10593 #  ifdef RTLD_LAZY
10594 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10595 #  else
10596 #    ifdef DL_LAZY
10597 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10598 #    else
10599 #      ifdef RTLD_NOW
10600 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10601 #      else
10602 #        ifdef DL_NOW
10603 #          define LT_DLLAZY_OR_NOW      DL_NOW
10604 #        else
10605 #          define LT_DLLAZY_OR_NOW      0
10606 #        endif
10607 #      endif
10608 #    endif
10609 #  endif
10610 #endif
10612 #ifdef __cplusplus
10613 extern "C" void exit (int);
10614 #endif
10616 void fnord() { int i=42;}
10617 int main ()
10619   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10620   int status = $lt_dlunknown;
10622   if (self)
10623     {
10624       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10625       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10626       /* dlclose (self); */
10627     }
10628   else
10629     puts (dlerror ());
10631     exit (status);
10633 EOF
10634   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10635   (eval $ac_link) 2>&5
10636   ac_status=$?
10637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10638   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10639     (./conftest; exit; ) >&5 2>/dev/null
10640     lt_status=$?
10641     case x$lt_status in
10642       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10643       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10644       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10645     esac
10646   else :
10647     # compilation failed
10648     lt_cv_dlopen_self_static=no
10649   fi
10651 rm -fr conftest*
10655 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10656 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10657     fi
10659     CPPFLAGS="$save_CPPFLAGS"
10660     LDFLAGS="$save_LDFLAGS"
10661     LIBS="$save_LIBS"
10662     ;;
10663   esac
10665   case $lt_cv_dlopen_self in
10666   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10667   *) enable_dlopen_self=unknown ;;
10668   esac
10670   case $lt_cv_dlopen_self_static in
10671   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10672   *) enable_dlopen_self_static=unknown ;;
10673   esac
10677 # Report which library types will actually be built
10678 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10679 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10680 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10681 echo "${ECHO_T}$can_build_shared" >&6; }
10683 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10684 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10685 test "$can_build_shared" = "no" && enable_shared=no
10687 # On AIX, shared libraries and static libraries use the same namespace, and
10688 # are all built from PIC.
10689 case $host_os in
10690 aix3*)
10691   test "$enable_shared" = yes && enable_static=no
10692   if test -n "$RANLIB"; then
10693     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10694     postinstall_cmds='$RANLIB $lib'
10695   fi
10696   ;;
10698 aix[4-9]*)
10699   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10700     test "$enable_shared" = yes && enable_static=no
10701   fi
10702     ;;
10703 esac
10704 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10705 echo "${ECHO_T}$enable_shared" >&6; }
10707 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10708 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10709 # Make sure either enable_shared or enable_static is yes.
10710 test "$enable_shared" = yes || enable_static=yes
10711 { echo "$as_me:$LINENO: result: $enable_static" >&5
10712 echo "${ECHO_T}$enable_static" >&6; }
10714 # The else clause should only fire when bootstrapping the
10715 # libtool distribution, otherwise you forgot to ship ltmain.sh
10716 # with your package, and you will get complaints that there are
10717 # no rules to generate ltmain.sh.
10718 if test -f "$ltmain"; then
10719   # See if we are running on zsh, and set the options which allow our commands through
10720   # without removal of \ escapes.
10721   if test -n "${ZSH_VERSION+set}" ; then
10722     setopt NO_GLOB_SUBST
10723   fi
10724   # Now quote all the things that may contain metacharacters while being
10725   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10726   # variables and quote the copies for generation of the libtool script.
10727   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10728     SED SHELL STRIP \
10729     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10730     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10731     deplibs_check_method reload_flag reload_cmds need_locks \
10732     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10733     lt_cv_sys_global_symbol_to_c_name_address \
10734     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10735     old_postinstall_cmds old_postuninstall_cmds \
10736     compiler \
10737     CC \
10738     LD \
10739     lt_prog_compiler_wl \
10740     lt_prog_compiler_pic \
10741     lt_prog_compiler_static \
10742     lt_prog_compiler_no_builtin_flag \
10743     export_dynamic_flag_spec \
10744     thread_safe_flag_spec \
10745     whole_archive_flag_spec \
10746     enable_shared_with_static_runtimes \
10747     old_archive_cmds \
10748     old_archive_from_new_cmds \
10749     predep_objects \
10750     postdep_objects \
10751     predeps \
10752     postdeps \
10753     compiler_lib_search_path \
10754     compiler_lib_search_dirs \
10755     archive_cmds \
10756     archive_expsym_cmds \
10757     postinstall_cmds \
10758     postuninstall_cmds \
10759     old_archive_from_expsyms_cmds \
10760     allow_undefined_flag \
10761     no_undefined_flag \
10762     export_symbols_cmds \
10763     hardcode_libdir_flag_spec \
10764     hardcode_libdir_flag_spec_ld \
10765     hardcode_libdir_separator \
10766     hardcode_automatic \
10767     module_cmds \
10768     module_expsym_cmds \
10769     lt_cv_prog_compiler_c_o \
10770     fix_srcfile_path \
10771     exclude_expsyms \
10772     include_expsyms; do
10774     case $var in
10775     old_archive_cmds | \
10776     old_archive_from_new_cmds | \
10777     archive_cmds | \
10778     archive_expsym_cmds | \
10779     module_cmds | \
10780     module_expsym_cmds | \
10781     old_archive_from_expsyms_cmds | \
10782     export_symbols_cmds | \
10783     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10784     postinstall_cmds | postuninstall_cmds | \
10785     old_postinstall_cmds | old_postuninstall_cmds | \
10786     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10787       # Double-quote double-evaled strings.
10788       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10789       ;;
10790     *)
10791       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10792       ;;
10793     esac
10794   done
10796   case $lt_echo in
10797   *'\$0 --fallback-echo"')
10798     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10799     ;;
10800   esac
10802 cfgfile="${ofile}T"
10803   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10804   $rm -f "$cfgfile"
10805   { echo "$as_me:$LINENO: creating $ofile" >&5
10806 echo "$as_me: creating $ofile" >&6;}
10808   cat <<__EOF__ >> "$cfgfile"
10809 #! $SHELL
10811 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10812 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10813 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10815 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10816 # Free Software Foundation, Inc.
10818 # This file is part of GNU Libtool:
10819 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10821 # This program is free software; you can redistribute it and/or modify
10822 # it under the terms of the GNU General Public License as published by
10823 # the Free Software Foundation; either version 2 of the License, or
10824 # (at your option) any later version.
10826 # This program is distributed in the hope that it will be useful, but
10827 # WITHOUT ANY WARRANTY; without even the implied warranty of
10828 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10829 # General Public License for more details.
10831 # You should have received a copy of the GNU General Public License
10832 # along with this program; if not, write to the Free Software
10833 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10835 # As a special exception to the GNU General Public License, if you
10836 # distribute this file as part of a program that contains a
10837 # configuration script generated by Autoconf, you may include it under
10838 # the same distribution terms that you use for the rest of that program.
10840 # A sed program that does not truncate output.
10841 SED=$lt_SED
10843 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10844 Xsed="$SED -e 1s/^X//"
10846 # The HP-UX ksh and POSIX shell print the target directory to stdout
10847 # if CDPATH is set.
10848 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10850 # The names of the tagged configurations supported by this script.
10851 available_tags=
10853 # ### BEGIN LIBTOOL CONFIG
10855 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10857 # Shell to use when invoking shell scripts.
10858 SHELL=$lt_SHELL
10860 # Whether or not to build shared libraries.
10861 build_libtool_libs=$enable_shared
10863 # Whether or not to build static libraries.
10864 build_old_libs=$enable_static
10866 # Whether or not to add -lc for building shared libraries.
10867 build_libtool_need_lc=$archive_cmds_need_lc
10869 # Whether or not to disallow shared libs when runtime libs are static
10870 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10872 # Whether or not to optimize for fast installation.
10873 fast_install=$enable_fast_install
10875 # The host system.
10876 host_alias=$host_alias
10877 host=$host
10878 host_os=$host_os
10880 # The build system.
10881 build_alias=$build_alias
10882 build=$build
10883 build_os=$build_os
10885 # An echo program that does not interpret backslashes.
10886 echo=$lt_echo
10888 # The archiver.
10889 AR=$lt_AR
10890 AR_FLAGS=$lt_AR_FLAGS
10892 # A C compiler.
10893 LTCC=$lt_LTCC
10895 # LTCC compiler flags.
10896 LTCFLAGS=$lt_LTCFLAGS
10898 # A language-specific compiler.
10899 CC=$lt_compiler
10901 # Is the compiler the GNU C compiler?
10902 with_gcc=$GCC
10904 # An ERE matcher.
10905 EGREP=$lt_EGREP
10907 # The linker used to build libraries.
10908 LD=$lt_LD
10910 # Whether we need hard or soft links.
10911 LN_S=$lt_LN_S
10913 # A BSD-compatible nm program.
10914 NM=$lt_NM
10916 # A symbol stripping program
10917 STRIP=$lt_STRIP
10919 # Used to examine libraries when file_magic_cmd begins "file"
10920 MAGIC_CMD=$MAGIC_CMD
10922 # Used on cygwin: DLL creation program.
10923 DLLTOOL="$DLLTOOL"
10925 # Used on cygwin: object dumper.
10926 OBJDUMP="$OBJDUMP"
10928 # Used on cygwin: assembler.
10929 AS="$AS"
10931 # The name of the directory that contains temporary libtool files.
10932 objdir=$objdir
10934 # How to create reloadable object files.
10935 reload_flag=$lt_reload_flag
10936 reload_cmds=$lt_reload_cmds
10938 # How to pass a linker flag through the compiler.
10939 wl=$lt_lt_prog_compiler_wl
10941 # Object file suffix (normally "o").
10942 objext="$ac_objext"
10944 # Old archive suffix (normally "a").
10945 libext="$libext"
10947 # Shared library suffix (normally ".so").
10948 shrext_cmds='$shrext_cmds'
10950 # Executable file suffix (normally "").
10951 exeext="$exeext"
10953 # Additional compiler flags for building library objects.
10954 pic_flag=$lt_lt_prog_compiler_pic
10955 pic_mode=$pic_mode
10957 # What is the maximum length of a command?
10958 max_cmd_len=$lt_cv_sys_max_cmd_len
10960 # Does compiler simultaneously support -c and -o options?
10961 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10963 # Must we lock files when doing compilation?
10964 need_locks=$lt_need_locks
10966 # Do we need the lib prefix for modules?
10967 need_lib_prefix=$need_lib_prefix
10969 # Do we need a version for libraries?
10970 need_version=$need_version
10972 # Whether dlopen is supported.
10973 dlopen_support=$enable_dlopen
10975 # Whether dlopen of programs is supported.
10976 dlopen_self=$enable_dlopen_self
10978 # Whether dlopen of statically linked programs is supported.
10979 dlopen_self_static=$enable_dlopen_self_static
10981 # Compiler flag to prevent dynamic linking.
10982 link_static_flag=$lt_lt_prog_compiler_static
10984 # Compiler flag to turn off builtin functions.
10985 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10987 # Compiler flag to allow reflexive dlopens.
10988 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10990 # Compiler flag to generate shared objects directly from archives.
10991 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10993 # Compiler flag to generate thread-safe objects.
10994 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10996 # Library versioning type.
10997 version_type=$version_type
10999 # Format of library name prefix.
11000 libname_spec=$lt_libname_spec
11002 # List of archive names.  First name is the real one, the rest are links.
11003 # The last name is the one that the linker finds with -lNAME.
11004 library_names_spec=$lt_library_names_spec
11006 # The coded name of the library, if different from the real name.
11007 soname_spec=$lt_soname_spec
11009 # Commands used to build and install an old-style archive.
11010 RANLIB=$lt_RANLIB
11011 old_archive_cmds=$lt_old_archive_cmds
11012 old_postinstall_cmds=$lt_old_postinstall_cmds
11013 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11015 # Create an old-style archive from a shared archive.
11016 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11018 # Create a temporary old-style archive to link instead of a shared archive.
11019 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11021 # Commands used to build and install a shared archive.
11022 archive_cmds=$lt_archive_cmds
11023 archive_expsym_cmds=$lt_archive_expsym_cmds
11024 postinstall_cmds=$lt_postinstall_cmds
11025 postuninstall_cmds=$lt_postuninstall_cmds
11027 # Commands used to build a loadable module (assumed same as above if empty)
11028 module_cmds=$lt_module_cmds
11029 module_expsym_cmds=$lt_module_expsym_cmds
11031 # Commands to strip libraries.
11032 old_striplib=$lt_old_striplib
11033 striplib=$lt_striplib
11035 # Dependencies to place before the objects being linked to create a
11036 # shared library.
11037 predep_objects=$lt_predep_objects
11039 # Dependencies to place after the objects being linked to create a
11040 # shared library.
11041 postdep_objects=$lt_postdep_objects
11043 # Dependencies to place before the objects being linked to create a
11044 # shared library.
11045 predeps=$lt_predeps
11047 # Dependencies to place after the objects being linked to create a
11048 # shared library.
11049 postdeps=$lt_postdeps
11051 # The directories searched by this compiler when creating a shared
11052 # library
11053 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
11055 # The library search path used internally by the compiler when linking
11056 # a shared library.
11057 compiler_lib_search_path=$lt_compiler_lib_search_path
11059 # Method to check whether dependent libraries are shared objects.
11060 deplibs_check_method=$lt_deplibs_check_method
11062 # Command to use when deplibs_check_method == file_magic.
11063 file_magic_cmd=$lt_file_magic_cmd
11065 # Flag that allows shared libraries with undefined symbols to be built.
11066 allow_undefined_flag=$lt_allow_undefined_flag
11068 # Flag that forces no undefined symbols.
11069 no_undefined_flag=$lt_no_undefined_flag
11071 # Commands used to finish a libtool library installation in a directory.
11072 finish_cmds=$lt_finish_cmds
11074 # Same as above, but a single script fragment to be evaled but not shown.
11075 finish_eval=$lt_finish_eval
11077 # Take the output of nm and produce a listing of raw symbols and C names.
11078 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11080 # Transform the output of nm in a proper C declaration
11081 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11083 # Transform the output of nm in a C name address pair
11084 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11086 # This is the shared library runtime path variable.
11087 runpath_var=$runpath_var
11089 # This is the shared library path variable.
11090 shlibpath_var=$shlibpath_var
11092 # Is shlibpath searched before the hard-coded library search path?
11093 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11095 # How to hardcode a shared library path into an executable.
11096 hardcode_action=$hardcode_action
11098 # Whether we should hardcode library paths into libraries.
11099 hardcode_into_libs=$hardcode_into_libs
11101 # Flag to hardcode \$libdir into a binary during linking.
11102 # This must work even if \$libdir does not exist.
11103 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11105 # If ld is used when linking, flag to hardcode \$libdir into
11106 # a binary during linking. This must work even if \$libdir does
11107 # not exist.
11108 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11110 # Whether we need a single -rpath flag with a separated argument.
11111 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11113 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11114 # resulting binary.
11115 hardcode_direct=$hardcode_direct
11117 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11118 # resulting binary.
11119 hardcode_minus_L=$hardcode_minus_L
11121 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11122 # the resulting binary.
11123 hardcode_shlibpath_var=$hardcode_shlibpath_var
11125 # Set to yes if building a shared library automatically hardcodes DIR into the library
11126 # and all subsequent libraries and executables linked against it.
11127 hardcode_automatic=$hardcode_automatic
11129 # Variables whose values should be saved in libtool wrapper scripts and
11130 # restored at relink time.
11131 variables_saved_for_relink="$variables_saved_for_relink"
11133 # Whether libtool must link a program against all its dependency libraries.
11134 link_all_deplibs=$link_all_deplibs
11136 # Compile-time system search path for libraries
11137 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11139 # Run-time system search path for libraries
11140 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11142 # Fix the shell variable \$srcfile for the compiler.
11143 fix_srcfile_path=$lt_fix_srcfile_path
11145 # Set to yes if exported symbols are required.
11146 always_export_symbols=$always_export_symbols
11148 # The commands to list exported symbols.
11149 export_symbols_cmds=$lt_export_symbols_cmds
11151 # The commands to extract the exported symbol list from a shared archive.
11152 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11154 # Symbols that should not be listed in the preloaded symbols.
11155 exclude_expsyms=$lt_exclude_expsyms
11157 # Symbols that must always be exported.
11158 include_expsyms=$lt_include_expsyms
11160 # ### END LIBTOOL CONFIG
11162 __EOF__
11165   case $host_os in
11166   aix3*)
11167     cat <<\EOF >> "$cfgfile"
11169 # AIX sometimes has problems with the GCC collect2 program.  For some
11170 # reason, if we set the COLLECT_NAMES environment variable, the problems
11171 # vanish in a puff of smoke.
11172 if test "X${COLLECT_NAMES+set}" != Xset; then
11173   COLLECT_NAMES=
11174   export COLLECT_NAMES
11176 EOF
11177     ;;
11178   esac
11180   # We use sed instead of cat because bash on DJGPP gets confused if
11181   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11182   # text mode, it properly converts lines to CR/LF.  This bash problem
11183   # is reportedly fixed, but why not run on old versions too?
11184   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11186   mv -f "$cfgfile" "$ofile" || \
11187     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11188   chmod +x "$ofile"
11190 else
11191   # If there is no Makefile yet, we rely on a make rule to execute
11192   # `config.status --recheck' to rerun these tests and create the
11193   # libtool script then.
11194   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11195   if test -f "$ltmain_in"; then
11196     test -f Makefile && make "$ltmain"
11197   fi
11201 ac_ext=c
11202 ac_cpp='$CPP $CPPFLAGS'
11203 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11204 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11205 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11207 CC="$lt_save_CC"
11210 # Check whether --with-tags was given.
11211 if test "${with_tags+set}" = set; then
11212   withval=$with_tags; tagnames="$withval"
11216 if test -f "$ltmain" && test -n "$tagnames"; then
11217   if test ! -f "${ofile}"; then
11218     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11219 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11220   fi
11222   if test -z "$LTCC"; then
11223     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11224     if test -z "$LTCC"; then
11225       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11226 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11227     else
11228       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11229 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11230     fi
11231   fi
11232   if test -z "$LTCFLAGS"; then
11233     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11234   fi
11236   # Extract list of available tagged configurations in $ofile.
11237   # Note that this assumes the entire list is on one line.
11238   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11240   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11241   for tagname in $tagnames; do
11242     IFS="$lt_save_ifs"
11243     # Check whether tagname contains only valid characters
11244     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11245     "") ;;
11246     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11247 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11248    { (exit 1); exit 1; }; }
11249         ;;
11250     esac
11252     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11253     then
11254       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11255 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11256    { (exit 1); exit 1; }; }
11257     fi
11259     # Update the list of available tags.
11260     if test -n "$tagname"; then
11261       echo appending configuration tag \"$tagname\" to $ofile
11263       case $tagname in
11264       CXX)
11265         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11266             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11267             (test "X$CXX" != "Xg++"))) ; then
11268           ac_ext=cpp
11269 ac_cpp='$CXXCPP $CPPFLAGS'
11270 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11271 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11272 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11277 archive_cmds_need_lc_CXX=no
11278 allow_undefined_flag_CXX=
11279 always_export_symbols_CXX=no
11280 archive_expsym_cmds_CXX=
11281 export_dynamic_flag_spec_CXX=
11282 hardcode_direct_CXX=no
11283 hardcode_libdir_flag_spec_CXX=
11284 hardcode_libdir_flag_spec_ld_CXX=
11285 hardcode_libdir_separator_CXX=
11286 hardcode_minus_L_CXX=no
11287 hardcode_shlibpath_var_CXX=unsupported
11288 hardcode_automatic_CXX=no
11289 module_cmds_CXX=
11290 module_expsym_cmds_CXX=
11291 link_all_deplibs_CXX=unknown
11292 old_archive_cmds_CXX=$old_archive_cmds
11293 no_undefined_flag_CXX=
11294 whole_archive_flag_spec_CXX=
11295 enable_shared_with_static_runtimes_CXX=no
11297 # Dependencies to place before and after the object being linked:
11298 predep_objects_CXX=
11299 postdep_objects_CXX=
11300 predeps_CXX=
11301 postdeps_CXX=
11302 compiler_lib_search_path_CXX=
11303 compiler_lib_search_dirs_CXX=
11305 # Source file extension for C++ test sources.
11306 ac_ext=cpp
11308 # Object file extension for compiled C++ test sources.
11309 objext=o
11310 objext_CXX=$objext
11312 # Code to be used in simple compile tests
11313 lt_simple_compile_test_code="int some_variable = 0;"
11315 # Code to be used in simple link tests
11316 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11318 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11320 # If no C compiler was specified, use CC.
11321 LTCC=${LTCC-"$CC"}
11323 # If no C compiler flags were specified, use CFLAGS.
11324 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11326 # Allow CC to be a program name with arguments.
11327 compiler=$CC
11330 # save warnings/boilerplate of simple test code
11331 ac_outfile=conftest.$ac_objext
11332 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11333 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11334 _lt_compiler_boilerplate=`cat conftest.err`
11335 $rm conftest*
11337 ac_outfile=conftest.$ac_objext
11338 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11339 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11340 _lt_linker_boilerplate=`cat conftest.err`
11341 $rm -r conftest*
11344 # Allow CC to be a program name with arguments.
11345 lt_save_CC=$CC
11346 lt_save_LD=$LD
11347 lt_save_GCC=$GCC
11348 GCC=$GXX
11349 lt_save_with_gnu_ld=$with_gnu_ld
11350 lt_save_path_LD=$lt_cv_path_LD
11351 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11352   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11353 else
11354   $as_unset lt_cv_prog_gnu_ld
11356 if test -n "${lt_cv_path_LDCXX+set}"; then
11357   lt_cv_path_LD=$lt_cv_path_LDCXX
11358 else
11359   $as_unset lt_cv_path_LD
11361 test -z "${LDCXX+set}" || LD=$LDCXX
11362 CC=${CXX-"c++"}
11363 compiler=$CC
11364 compiler_CXX=$CC
11365 for cc_temp in $compiler""; do
11366   case $cc_temp in
11367     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11368     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11369     \-*) ;;
11370     *) break;;
11371   esac
11372 done
11373 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11376 # We don't want -fno-exception wen compiling C++ code, so set the
11377 # no_builtin_flag separately
11378 if test "$GXX" = yes; then
11379   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11380 else
11381   lt_prog_compiler_no_builtin_flag_CXX=
11384 if test "$GXX" = yes; then
11385   # Set up default GNU C++ configuration
11388 # Check whether --with-gnu-ld was given.
11389 if test "${with_gnu_ld+set}" = set; then
11390   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11391 else
11392   with_gnu_ld=no
11395 ac_prog=ld
11396 if test "$GCC" = yes; then
11397   # Check if gcc -print-prog-name=ld gives a path.
11398   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11399 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11400   case $host in
11401   *-*-mingw*)
11402     # gcc leaves a trailing carriage return which upsets mingw
11403     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11404   *)
11405     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11406   esac
11407   case $ac_prog in
11408     # Accept absolute paths.
11409     [\\/]* | ?:[\\/]*)
11410       re_direlt='/[^/][^/]*/\.\./'
11411       # Canonicalize the pathname of ld
11412       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11413       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11414         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11415       done
11416       test -z "$LD" && LD="$ac_prog"
11417       ;;
11418   "")
11419     # If it fails, then pretend we aren't using GCC.
11420     ac_prog=ld
11421     ;;
11422   *)
11423     # If it is relative, then search for the first ld in PATH.
11424     with_gnu_ld=unknown
11425     ;;
11426   esac
11427 elif test "$with_gnu_ld" = yes; then
11428   { echo "$as_me:$LINENO: checking for GNU ld" >&5
11429 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11430 else
11431   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11432 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11434 if test "${lt_cv_path_LD+set}" = set; then
11435   echo $ECHO_N "(cached) $ECHO_C" >&6
11436 else
11437   if test -z "$LD"; then
11438   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11439   for ac_dir in $PATH; do
11440     IFS="$lt_save_ifs"
11441     test -z "$ac_dir" && ac_dir=.
11442     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11443       lt_cv_path_LD="$ac_dir/$ac_prog"
11444       # Check to see if the program is GNU ld.  I'd rather use --version,
11445       # but apparently some variants of GNU ld only accept -v.
11446       # Break only if it was the GNU/non-GNU ld that we prefer.
11447       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11448       *GNU* | *'with BFD'*)
11449         test "$with_gnu_ld" != no && break
11450         ;;
11451       *)
11452         test "$with_gnu_ld" != yes && break
11453         ;;
11454       esac
11455     fi
11456   done
11457   IFS="$lt_save_ifs"
11458 else
11459   lt_cv_path_LD="$LD" # Let the user override the test with a path.
11463 LD="$lt_cv_path_LD"
11464 if test -n "$LD"; then
11465   { echo "$as_me:$LINENO: result: $LD" >&5
11466 echo "${ECHO_T}$LD" >&6; }
11467 else
11468   { echo "$as_me:$LINENO: result: no" >&5
11469 echo "${ECHO_T}no" >&6; }
11471 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11472 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11473    { (exit 1); exit 1; }; }
11474 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11475 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11476 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11477   echo $ECHO_N "(cached) $ECHO_C" >&6
11478 else
11479   # I'd rather use --version here, but apparently some GNU lds only accept -v.
11480 case `$LD -v 2>&1 </dev/null` in
11481 *GNU* | *'with BFD'*)
11482   lt_cv_prog_gnu_ld=yes
11483   ;;
11485   lt_cv_prog_gnu_ld=no
11486   ;;
11487 esac
11489 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11490 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11491 with_gnu_ld=$lt_cv_prog_gnu_ld
11495   # Check if GNU C++ uses GNU ld as the underlying linker, since the
11496   # archiving commands below assume that GNU ld is being used.
11497   if test "$with_gnu_ld" = yes; then
11498     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11499     archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11501     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11502     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11504     # If archive_cmds runs LD, not CC, wlarc should be empty
11505     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11506     #     investigate it a little bit more. (MM)
11507     wlarc='${wl}'
11509     # ancient GNU ld didn't support --whole-archive et. al.
11510     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11511         grep 'no-whole-archive' > /dev/null; then
11512       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11513     else
11514       whole_archive_flag_spec_CXX=
11515     fi
11516   else
11517     with_gnu_ld=no
11518     wlarc=
11520     # A generic and very simple default shared library creation
11521     # command for GNU C++ for the case where it uses the native
11522     # linker, instead of GNU ld.  If possible, this setting should
11523     # overridden to take advantage of the native linker features on
11524     # the platform it is being used on.
11525     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11526   fi
11528   # Commands to make compiler produce verbose output that lists
11529   # what "hidden" libraries, object files and flags are used when
11530   # linking a shared library.
11531   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11533 else
11534   GXX=no
11535   with_gnu_ld=no
11536   wlarc=
11539 # PORTME: fill in a description of your system's C++ link characteristics
11540 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11541 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11542 ld_shlibs_CXX=yes
11543 case $host_os in
11544   aix3*)
11545     # FIXME: insert proper C++ library support
11546     ld_shlibs_CXX=no
11547     ;;
11548   aix[4-9]*)
11549     if test "$host_cpu" = ia64; then
11550       # On IA64, the linker does run time linking by default, so we don't
11551       # have to do anything special.
11552       aix_use_runtimelinking=no
11553       exp_sym_flag='-Bexport'
11554       no_entry_flag=""
11555     else
11556       aix_use_runtimelinking=no
11558       # Test if we are trying to use run time linking or normal
11559       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11560       # need to do runtime linking.
11561       case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11562         for ld_flag in $LDFLAGS; do
11563           case $ld_flag in
11564           *-brtl*)
11565             aix_use_runtimelinking=yes
11566             break
11567             ;;
11568           esac
11569         done
11570         ;;
11571       esac
11573       exp_sym_flag='-bexport'
11574       no_entry_flag='-bnoentry'
11575     fi
11577     # When large executables or shared objects are built, AIX ld can
11578     # have problems creating the table of contents.  If linking a library
11579     # or program results in "error TOC overflow" add -mminimal-toc to
11580     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11581     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11583     archive_cmds_CXX=''
11584     hardcode_direct_CXX=yes
11585     hardcode_libdir_separator_CXX=':'
11586     link_all_deplibs_CXX=yes
11588     if test "$GXX" = yes; then
11589       case $host_os in aix4.[012]|aix4.[012].*)
11590       # We only want to do this on AIX 4.2 and lower, the check
11591       # below for broken collect2 doesn't work under 4.3+
11592         collect2name=`${CC} -print-prog-name=collect2`
11593         if test -f "$collect2name" && \
11594            strings "$collect2name" | grep resolve_lib_name >/dev/null
11595         then
11596           # We have reworked collect2
11597           :
11598         else
11599           # We have old collect2
11600           hardcode_direct_CXX=unsupported
11601           # It fails to find uninstalled libraries when the uninstalled
11602           # path is not listed in the libpath.  Setting hardcode_minus_L
11603           # to unsupported forces relinking
11604           hardcode_minus_L_CXX=yes
11605           hardcode_libdir_flag_spec_CXX='-L$libdir'
11606           hardcode_libdir_separator_CXX=
11607         fi
11608         ;;
11609       esac
11610       shared_flag='-shared'
11611       if test "$aix_use_runtimelinking" = yes; then
11612         shared_flag="$shared_flag "'${wl}-G'
11613       fi
11614     else
11615       # not using gcc
11616       if test "$host_cpu" = ia64; then
11617         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11618         # chokes on -Wl,-G. The following line is correct:
11619         shared_flag='-G'
11620       else
11621         if test "$aix_use_runtimelinking" = yes; then
11622           shared_flag='${wl}-G'
11623         else
11624           shared_flag='${wl}-bM:SRE'
11625         fi
11626       fi
11627     fi
11629     # It seems that -bexpall does not export symbols beginning with
11630     # underscore (_), so it is better to generate a list of symbols to export.
11631     always_export_symbols_CXX=yes
11632     if test "$aix_use_runtimelinking" = yes; then
11633       # Warning - without using the other runtime loading flags (-brtl),
11634       # -berok will link without error, but may produce a broken library.
11635       allow_undefined_flag_CXX='-berok'
11636       # Determine the default libpath from the value encoded in an empty executable.
11637       cat >conftest.$ac_ext <<_ACEOF
11638 /* confdefs.h.  */
11639 _ACEOF
11640 cat confdefs.h >>conftest.$ac_ext
11641 cat >>conftest.$ac_ext <<_ACEOF
11642 /* end confdefs.h.  */
11644 int
11645 main ()
11648   ;
11649   return 0;
11651 _ACEOF
11652 rm -f conftest.$ac_objext conftest$ac_exeext
11653 if { (ac_try="$ac_link"
11654 case "(($ac_try" in
11655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11656   *) ac_try_echo=$ac_try;;
11657 esac
11658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11659   (eval "$ac_link") 2>conftest.er1
11660   ac_status=$?
11661   grep -v '^ *+' conftest.er1 >conftest.err
11662   rm -f conftest.er1
11663   cat conftest.err >&5
11664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11665   (exit $ac_status); } && {
11666          test -z "$ac_cxx_werror_flag" ||
11667          test ! -s conftest.err
11668        } && test -s conftest$ac_exeext &&
11669        $as_test_x conftest$ac_exeext; then
11671 lt_aix_libpath_sed='
11672     /Import File Strings/,/^$/ {
11673         /^0/ {
11674             s/^0  *\(.*\)$/\1/
11675             p
11676         }
11677     }'
11678 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11679 # Check for a 64-bit object if we didn't find anything.
11680 if test -z "$aix_libpath"; then
11681   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11683 else
11684   echo "$as_me: failed program was:" >&5
11685 sed 's/^/| /' conftest.$ac_ext >&5
11690 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11691       conftest$ac_exeext conftest.$ac_ext
11692 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11694       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11696       archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11697      else
11698       if test "$host_cpu" = ia64; then
11699         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11700         allow_undefined_flag_CXX="-z nodefs"
11701         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
11702       else
11703         # Determine the default libpath from the value encoded in an empty executable.
11704         cat >conftest.$ac_ext <<_ACEOF
11705 /* confdefs.h.  */
11706 _ACEOF
11707 cat confdefs.h >>conftest.$ac_ext
11708 cat >>conftest.$ac_ext <<_ACEOF
11709 /* end confdefs.h.  */
11711 int
11712 main ()
11715   ;
11716   return 0;
11718 _ACEOF
11719 rm -f conftest.$ac_objext conftest$ac_exeext
11720 if { (ac_try="$ac_link"
11721 case "(($ac_try" in
11722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11723   *) ac_try_echo=$ac_try;;
11724 esac
11725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11726   (eval "$ac_link") 2>conftest.er1
11727   ac_status=$?
11728   grep -v '^ *+' conftest.er1 >conftest.err
11729   rm -f conftest.er1
11730   cat conftest.err >&5
11731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11732   (exit $ac_status); } && {
11733          test -z "$ac_cxx_werror_flag" ||
11734          test ! -s conftest.err
11735        } && test -s conftest$ac_exeext &&
11736        $as_test_x conftest$ac_exeext; then
11738 lt_aix_libpath_sed='
11739     /Import File Strings/,/^$/ {
11740         /^0/ {
11741             s/^0  *\(.*\)$/\1/
11742             p
11743         }
11744     }'
11745 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11746 # Check for a 64-bit object if we didn't find anything.
11747 if test -z "$aix_libpath"; then
11748   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11750 else
11751   echo "$as_me: failed program was:" >&5
11752 sed 's/^/| /' conftest.$ac_ext >&5
11757 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11758       conftest$ac_exeext conftest.$ac_ext
11759 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11761         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11762         # Warning - without using the other run time loading flags,
11763         # -berok will link without error, but may produce a broken library.
11764         no_undefined_flag_CXX=' ${wl}-bernotok'
11765         allow_undefined_flag_CXX=' ${wl}-berok'
11766         # Exported symbols can be pulled into shared objects from archives
11767         whole_archive_flag_spec_CXX='$convenience'
11768         archive_cmds_need_lc_CXX=yes
11769         # This is similar to how AIX traditionally builds its shared libraries.
11770         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11771       fi
11772     fi
11773     ;;
11775   beos*)
11776     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11777       allow_undefined_flag_CXX=unsupported
11778       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11779       # support --undefined.  This deserves some investigation.  FIXME
11780       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11781     else
11782       ld_shlibs_CXX=no
11783     fi
11784     ;;
11786   chorus*)
11787     case $cc_basename in
11788       *)
11789         # FIXME: insert proper C++ library support
11790         ld_shlibs_CXX=no
11791         ;;
11792     esac
11793     ;;
11795   cygwin* | mingw* | pw32*)
11796     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11797     # as there is no search path for DLLs.
11798     hardcode_libdir_flag_spec_CXX='-L$libdir'
11799     allow_undefined_flag_CXX=unsupported
11800     always_export_symbols_CXX=no
11801     enable_shared_with_static_runtimes_CXX=yes
11803     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11804       archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11805       # If the export-symbols file already is a .def file (1st line
11806       # is EXPORTS), use it as is; otherwise, prepend...
11807       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11808         cp $export_symbols $output_objdir/$soname.def;
11809       else
11810         echo EXPORTS > $output_objdir/$soname.def;
11811         cat $export_symbols >> $output_objdir/$soname.def;
11812       fi~
11813       $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11814     else
11815       ld_shlibs_CXX=no
11816     fi
11817   ;;
11818       darwin* | rhapsody*)
11819       archive_cmds_need_lc_CXX=no
11820       hardcode_direct_CXX=no
11821       hardcode_automatic_CXX=yes
11822       hardcode_shlibpath_var_CXX=unsupported
11823       whole_archive_flag_spec_CXX=''
11824       link_all_deplibs_CXX=yes
11825       allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11826       if test "$GXX" = yes ; then
11827       output_verbose_link_cmd='echo'
11828       archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11829       module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11830       archive_expsym_cmds_CXX="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}"
11831       module_expsym_cmds_CXX="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}"
11832       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11833         archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
11834         archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
11835       fi
11836       else
11837       case $cc_basename in
11838         xlc*)
11839          output_verbose_link_cmd='echo'
11840           archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
11841           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11842           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11843           archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11844           module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11845           ;;
11846        *)
11847          ld_shlibs_CXX=no
11848           ;;
11849       esac
11850       fi
11851         ;;
11853   dgux*)
11854     case $cc_basename in
11855       ec++*)
11856         # FIXME: insert proper C++ library support
11857         ld_shlibs_CXX=no
11858         ;;
11859       ghcx*)
11860         # Green Hills C++ Compiler
11861         # FIXME: insert proper C++ library support
11862         ld_shlibs_CXX=no
11863         ;;
11864       *)
11865         # FIXME: insert proper C++ library support
11866         ld_shlibs_CXX=no
11867         ;;
11868     esac
11869     ;;
11870   freebsd[12]*)
11871     # C++ shared libraries reported to be fairly broken before switch to ELF
11872     ld_shlibs_CXX=no
11873     ;;
11874   freebsd-elf*)
11875     archive_cmds_need_lc_CXX=no
11876     ;;
11877   freebsd* | dragonfly*)
11878     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11879     # conventions
11880     ld_shlibs_CXX=yes
11881     ;;
11882   gnu*)
11883     ;;
11884   hpux9*)
11885     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11886     hardcode_libdir_separator_CXX=:
11887     export_dynamic_flag_spec_CXX='${wl}-E'
11888     hardcode_direct_CXX=yes
11889     hardcode_minus_L_CXX=yes # Not in the search PATH,
11890                                 # but as the default
11891                                 # location of the library.
11893     case $cc_basename in
11894     CC*)
11895       # FIXME: insert proper C++ library support
11896       ld_shlibs_CXX=no
11897       ;;
11898     aCC*)
11899       archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11900       # Commands to make compiler produce verbose output that lists
11901       # what "hidden" libraries, object files and flags are used when
11902       # linking a shared library.
11903       #
11904       # There doesn't appear to be a way to prevent this compiler from
11905       # explicitly linking system object files so we need to strip them
11906       # from the output so that they don't get included in the library
11907       # dependencies.
11908       output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11909       ;;
11910     *)
11911       if test "$GXX" = yes; then
11912         archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11913       else
11914         # FIXME: insert proper C++ library support
11915         ld_shlibs_CXX=no
11916       fi
11917       ;;
11918     esac
11919     ;;
11920   hpux10*|hpux11*)
11921     if test $with_gnu_ld = no; then
11922       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11923       hardcode_libdir_separator_CXX=:
11925       case $host_cpu in
11926       hppa*64*|ia64*) ;;
11927       *)
11928         export_dynamic_flag_spec_CXX='${wl}-E'
11929         ;;
11930       esac
11931     fi
11932     case $host_cpu in
11933     hppa*64*|ia64*)
11934       hardcode_direct_CXX=no
11935       hardcode_shlibpath_var_CXX=no
11936       ;;
11937     *)
11938       hardcode_direct_CXX=yes
11939       hardcode_minus_L_CXX=yes # Not in the search PATH,
11940                                               # but as the default
11941                                               # location of the library.
11942       ;;
11943     esac
11945     case $cc_basename in
11946       CC*)
11947         # FIXME: insert proper C++ library support
11948         ld_shlibs_CXX=no
11949         ;;
11950       aCC*)
11951         case $host_cpu in
11952         hppa*64*)
11953           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11954           ;;
11955         ia64*)
11956           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11957           ;;
11958         *)
11959           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11960           ;;
11961         esac
11962         # Commands to make compiler produce verbose output that lists
11963         # what "hidden" libraries, object files and flags are used when
11964         # linking a shared library.
11965         #
11966         # There doesn't appear to be a way to prevent this compiler from
11967         # explicitly linking system object files so we need to strip them
11968         # from the output so that they don't get included in the library
11969         # dependencies.
11970         output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11971         ;;
11972       *)
11973         if test "$GXX" = yes; then
11974           if test $with_gnu_ld = no; then
11975             case $host_cpu in
11976             hppa*64*)
11977               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11978               ;;
11979             ia64*)
11980               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11981               ;;
11982             *)
11983               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11984               ;;
11985             esac
11986           fi
11987         else
11988           # FIXME: insert proper C++ library support
11989           ld_shlibs_CXX=no
11990         fi
11991         ;;
11992     esac
11993     ;;
11994   interix[3-9]*)
11995     hardcode_direct_CXX=no
11996     hardcode_shlibpath_var_CXX=no
11997     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11998     export_dynamic_flag_spec_CXX='${wl}-E'
11999     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12000     # Instead, shared libraries are loaded at an image base (0x10000000 by
12001     # default) and relocated if they conflict, which is a slow very memory
12002     # consuming and fragmenting process.  To avoid this, we pick a random,
12003     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12004     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12005     archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12006     archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12007     ;;
12008   irix5* | irix6*)
12009     case $cc_basename in
12010       CC*)
12011         # SGI C++
12012         archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12014         # Archives containing C++ object files must be created using
12015         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12016         # necessary to make sure instantiated templates are included
12017         # in the archive.
12018         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12019         ;;
12020       *)
12021         if test "$GXX" = yes; then
12022           if test "$with_gnu_ld" = no; then
12023             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12024           else
12025             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
12026           fi
12027         fi
12028         link_all_deplibs_CXX=yes
12029         ;;
12030     esac
12031     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12032     hardcode_libdir_separator_CXX=:
12033     ;;
12034   linux* | k*bsd*-gnu)
12035     case $cc_basename in
12036       KCC*)
12037         # Kuck and Associates, Inc. (KAI) C++ Compiler
12039         # KCC will only create a shared library if the output file
12040         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12041         # to its proper name (with version) after linking.
12042         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12043         archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
12044         # Commands to make compiler produce verbose output that lists
12045         # what "hidden" libraries, object files and flags are used when
12046         # linking a shared library.
12047         #
12048         # There doesn't appear to be a way to prevent this compiler from
12049         # explicitly linking system object files so we need to strip them
12050         # from the output so that they don't get included in the library
12051         # dependencies.
12052         output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12054         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12055         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12057         # Archives containing C++ object files must be created using
12058         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12059         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12060         ;;
12061       icpc*)
12062         # Intel C++
12063         with_gnu_ld=yes
12064         # version 8.0 and above of icpc choke on multiply defined symbols
12065         # if we add $predep_objects and $postdep_objects, however 7.1 and
12066         # earlier do not add the objects themselves.
12067         case `$CC -V 2>&1` in
12068         *"Version 7."*)
12069           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12070           archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12071           ;;
12072         *)  # Version 8.0 or newer
12073           tmp_idyn=
12074           case $host_cpu in
12075             ia64*) tmp_idyn=' -i_dynamic';;
12076           esac
12077           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12078           archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12079           ;;
12080         esac
12081         archive_cmds_need_lc_CXX=no
12082         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12083         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12084         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12085         ;;
12086       pgCC* | pgcpp*)
12087         # Portland Group C++ compiler
12088         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12089         archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12091         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12092         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12093         whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
12094         ;;
12095       cxx*)
12096         # Compaq C++
12097         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12098         archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
12100         runpath_var=LD_RUN_PATH
12101         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12102         hardcode_libdir_separator_CXX=:
12104         # Commands to make compiler produce verbose output that lists
12105         # what "hidden" libraries, object files and flags are used when
12106         # linking a shared library.
12107         #
12108         # There doesn't appear to be a way to prevent this compiler from
12109         # explicitly linking system object files so we need to strip them
12110         # from the output so that they don't get included in the library
12111         # dependencies.
12112         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12113         ;;
12114       *)
12115         case `$CC -V 2>&1 | sed 5q` in
12116         *Sun\ C*)
12117           # Sun C++ 5.9
12118           no_undefined_flag_CXX=' -zdefs'
12119           archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12120           archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
12121           hardcode_libdir_flag_spec_CXX='-R$libdir'
12122           whole_archive_flag_spec_CXX='${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'
12124           # Not sure whether something based on
12125           # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12126           # would be better.
12127           output_verbose_link_cmd='echo'
12129           # Archives containing C++ object files must be created using
12130           # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12131           # necessary to make sure instantiated templates are included
12132           # in the archive.
12133           old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12134           ;;
12135         esac
12136         ;;
12137     esac
12138     ;;
12139   lynxos*)
12140     # FIXME: insert proper C++ library support
12141     ld_shlibs_CXX=no
12142     ;;
12143   m88k*)
12144     # FIXME: insert proper C++ library support
12145     ld_shlibs_CXX=no
12146     ;;
12147   mvs*)
12148     case $cc_basename in
12149       cxx*)
12150         # FIXME: insert proper C++ library support
12151         ld_shlibs_CXX=no
12152         ;;
12153       *)
12154         # FIXME: insert proper C++ library support
12155         ld_shlibs_CXX=no
12156         ;;
12157     esac
12158     ;;
12159   netbsd* | netbsdelf*-gnu)
12160     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12161       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12162       wlarc=
12163       hardcode_libdir_flag_spec_CXX='-R$libdir'
12164       hardcode_direct_CXX=yes
12165       hardcode_shlibpath_var_CXX=no
12166     fi
12167     # Workaround some broken pre-1.5 toolchains
12168     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12169     ;;
12170   openbsd2*)
12171     # C++ shared libraries are fairly broken
12172     ld_shlibs_CXX=no
12173     ;;
12174   openbsd*)
12175     if test -f /usr/libexec/ld.so; then
12176       hardcode_direct_CXX=yes
12177       hardcode_shlibpath_var_CXX=no
12178       archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12179       hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12180       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12181         archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12182         export_dynamic_flag_spec_CXX='${wl}-E'
12183         whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12184       fi
12185       output_verbose_link_cmd='echo'
12186     else
12187       ld_shlibs_CXX=no
12188     fi
12189     ;;
12190   osf3*)
12191     case $cc_basename in
12192       KCC*)
12193         # Kuck and Associates, Inc. (KAI) C++ Compiler
12195         # KCC will only create a shared library if the output file
12196         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12197         # to its proper name (with version) after linking.
12198         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12200         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12201         hardcode_libdir_separator_CXX=:
12203         # Archives containing C++ object files must be created using
12204         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12205         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12207         ;;
12208       RCC*)
12209         # Rational C++ 2.4.1
12210         # FIXME: insert proper C++ library support
12211         ld_shlibs_CXX=no
12212         ;;
12213       cxx*)
12214         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12215         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12217         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12218         hardcode_libdir_separator_CXX=:
12220         # Commands to make compiler produce verbose output that lists
12221         # what "hidden" libraries, object files and flags are used when
12222         # linking a shared library.
12223         #
12224         # There doesn't appear to be a way to prevent this compiler from
12225         # explicitly linking system object files so we need to strip them
12226         # from the output so that they don't get included in the library
12227         # dependencies.
12228         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12229         ;;
12230       *)
12231         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12232           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12233           archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12235           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12236           hardcode_libdir_separator_CXX=:
12238           # Commands to make compiler produce verbose output that lists
12239           # what "hidden" libraries, object files and flags are used when
12240           # linking a shared library.
12241           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12243         else
12244           # FIXME: insert proper C++ library support
12245           ld_shlibs_CXX=no
12246         fi
12247         ;;
12248     esac
12249     ;;
12250   osf4* | osf5*)
12251     case $cc_basename in
12252       KCC*)
12253         # Kuck and Associates, Inc. (KAI) C++ Compiler
12255         # KCC will only create a shared library if the output file
12256         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12257         # to its proper name (with version) after linking.
12258         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12260         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12261         hardcode_libdir_separator_CXX=:
12263         # Archives containing C++ object files must be created using
12264         # the KAI C++ compiler.
12265         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12266         ;;
12267       RCC*)
12268         # Rational C++ 2.4.1
12269         # FIXME: insert proper C++ library support
12270         ld_shlibs_CXX=no
12271         ;;
12272       cxx*)
12273         allow_undefined_flag_CXX=' -expect_unresolved \*'
12274         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12275         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12276           echo "-hidden">> $lib.exp~
12277           $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
12278           $rm $lib.exp'
12280         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12281         hardcode_libdir_separator_CXX=:
12283         # Commands to make compiler produce verbose output that lists
12284         # what "hidden" libraries, object files and flags are used when
12285         # linking a shared library.
12286         #
12287         # There doesn't appear to be a way to prevent this compiler from
12288         # explicitly linking system object files so we need to strip them
12289         # from the output so that they don't get included in the library
12290         # dependencies.
12291         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12292         ;;
12293       *)
12294         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12295           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12296          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12298           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12299           hardcode_libdir_separator_CXX=:
12301           # Commands to make compiler produce verbose output that lists
12302           # what "hidden" libraries, object files and flags are used when
12303           # linking a shared library.
12304           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12306         else
12307           # FIXME: insert proper C++ library support
12308           ld_shlibs_CXX=no
12309         fi
12310         ;;
12311     esac
12312     ;;
12313   psos*)
12314     # FIXME: insert proper C++ library support
12315     ld_shlibs_CXX=no
12316     ;;
12317   sunos4*)
12318     case $cc_basename in
12319       CC*)
12320         # Sun C++ 4.x
12321         # FIXME: insert proper C++ library support
12322         ld_shlibs_CXX=no
12323         ;;
12324       lcc*)
12325         # Lucid
12326         # FIXME: insert proper C++ library support
12327         ld_shlibs_CXX=no
12328         ;;
12329       *)
12330         # FIXME: insert proper C++ library support
12331         ld_shlibs_CXX=no
12332         ;;
12333     esac
12334     ;;
12335   solaris*)
12336     case $cc_basename in
12337       CC*)
12338         # Sun C++ 4.2, 5.x and Centerline C++
12339         archive_cmds_need_lc_CXX=yes
12340         no_undefined_flag_CXX=' -zdefs'
12341         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12342         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12343         $CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12345         hardcode_libdir_flag_spec_CXX='-R$libdir'
12346         hardcode_shlibpath_var_CXX=no
12347         case $host_os in
12348           solaris2.[0-5] | solaris2.[0-5].*) ;;
12349           *)
12350             # The compiler driver will combine and reorder linker options,
12351             # but understands `-z linker_flag'.
12352             # Supported since Solaris 2.6 (maybe 2.5.1?)
12353             whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12354             ;;
12355         esac
12356         link_all_deplibs_CXX=yes
12358         output_verbose_link_cmd='echo'
12360         # Archives containing C++ object files must be created using
12361         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12362         # necessary to make sure instantiated templates are included
12363         # in the archive.
12364         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12365         ;;
12366       gcx*)
12367         # Green Hills C++ Compiler
12368         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12370         # The C++ compiler must be used to create the archive.
12371         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12372         ;;
12373       *)
12374         # GNU C++ compiler with Solaris linker
12375         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12376           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12377           if $CC --version | grep -v '^2\.7' > /dev/null; then
12378             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12379             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12380                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12382             # Commands to make compiler produce verbose output that lists
12383             # what "hidden" libraries, object files and flags are used when
12384             # linking a shared library.
12385             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12386           else
12387             # g++ 2.7 appears to require `-G' NOT `-shared' on this
12388             # platform.
12389             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12390             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12391                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12393             # Commands to make compiler produce verbose output that lists
12394             # what "hidden" libraries, object files and flags are used when
12395             # linking a shared library.
12396             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12397           fi
12399           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12400           case $host_os in
12401           solaris2.[0-5] | solaris2.[0-5].*) ;;
12402           *)
12403             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12404             ;;
12405           esac
12406         fi
12407         ;;
12408     esac
12409     ;;
12410   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12411     no_undefined_flag_CXX='${wl}-z,text'
12412     archive_cmds_need_lc_CXX=no
12413     hardcode_shlibpath_var_CXX=no
12414     runpath_var='LD_RUN_PATH'
12416     case $cc_basename in
12417       CC*)
12418         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12419         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12420         ;;
12421       *)
12422         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12423         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12424         ;;
12425     esac
12426     ;;
12427   sysv5* | sco3.2v5* | sco5v6*)
12428     # Note: We can NOT use -z defs as we might desire, because we do not
12429     # link with -lc, and that would cause any symbols used from libc to
12430     # always be unresolved, which means just about no library would
12431     # ever link correctly.  If we're not using GNU ld we use -z text
12432     # though, which does catch some bad symbols but isn't as heavy-handed
12433     # as -z defs.
12434     # For security reasons, it is highly recommended that you always
12435     # use absolute paths for naming shared libraries, and exclude the
12436     # DT_RUNPATH tag from executables and libraries.  But doing so
12437     # requires that you compile everything twice, which is a pain.
12438     # So that behaviour is only enabled if SCOABSPATH is set to a
12439     # non-empty value in the environment.  Most likely only useful for
12440     # creating official distributions of packages.
12441     # This is a hack until libtool officially supports absolute path
12442     # names for shared libraries.
12443     no_undefined_flag_CXX='${wl}-z,text'
12444     allow_undefined_flag_CXX='${wl}-z,nodefs'
12445     archive_cmds_need_lc_CXX=no
12446     hardcode_shlibpath_var_CXX=no
12447     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12448     hardcode_libdir_separator_CXX=':'
12449     link_all_deplibs_CXX=yes
12450     export_dynamic_flag_spec_CXX='${wl}-Bexport'
12451     runpath_var='LD_RUN_PATH'
12453     case $cc_basename in
12454       CC*)
12455         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12456         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12457         ;;
12458       *)
12459         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12460         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12461         ;;
12462     esac
12463     ;;
12464   tandem*)
12465     case $cc_basename in
12466       NCC*)
12467         # NonStop-UX NCC 3.20
12468         # FIXME: insert proper C++ library support
12469         ld_shlibs_CXX=no
12470         ;;
12471       *)
12472         # FIXME: insert proper C++ library support
12473         ld_shlibs_CXX=no
12474         ;;
12475     esac
12476     ;;
12477   vxworks*)
12478     # FIXME: insert proper C++ library support
12479     ld_shlibs_CXX=no
12480     ;;
12481   *)
12482     # FIXME: insert proper C++ library support
12483     ld_shlibs_CXX=no
12484     ;;
12485 esac
12486 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12487 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12488 test "$ld_shlibs_CXX" = no && can_build_shared=no
12490 GCC_CXX="$GXX"
12491 LD_CXX="$LD"
12493 cat > conftest.$ac_ext <<EOF
12494 class Foo
12496 public:
12497   Foo (void) { a = 0; }
12498 private:
12499   int a;
12501 EOF
12503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12504   (eval $ac_compile) 2>&5
12505   ac_status=$?
12506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12507   (exit $ac_status); }; then
12508   # Parse the compiler output and extract the necessary
12509   # objects, libraries and library flags.
12511   # Sentinel used to keep track of whether or not we are before
12512   # the conftest object file.
12513   pre_test_object_deps_done=no
12515   # The `*' in the case matches for architectures that use `case' in
12516   # $output_verbose_cmd can trigger glob expansion during the loop
12517   # eval without this substitution.
12518   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12520   for p in `eval $output_verbose_link_cmd`; do
12521     case $p in
12523     -L* | -R* | -l*)
12524        # Some compilers place space between "-{L,R}" and the path.
12525        # Remove the space.
12526        if test $p = "-L" \
12527           || test $p = "-R"; then
12528          prev=$p
12529          continue
12530        else
12531          prev=
12532        fi
12534        if test "$pre_test_object_deps_done" = no; then
12535          case $p in
12536          -L* | -R*)
12537            # Internal compiler library paths should come after those
12538            # provided the user.  The postdeps already come after the
12539            # user supplied libs so there is no need to process them.
12540            if test -z "$compiler_lib_search_path_CXX"; then
12541              compiler_lib_search_path_CXX="${prev}${p}"
12542            else
12543              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12544            fi
12545            ;;
12546          # The "-l" case would never come before the object being
12547          # linked, so don't bother handling this case.
12548          esac
12549        else
12550          if test -z "$postdeps_CXX"; then
12551            postdeps_CXX="${prev}${p}"
12552          else
12553            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12554          fi
12555        fi
12556        ;;
12558     *.$objext)
12559        # This assumes that the test object file only shows up
12560        # once in the compiler output.
12561        if test "$p" = "conftest.$objext"; then
12562          pre_test_object_deps_done=yes
12563          continue
12564        fi
12566        if test "$pre_test_object_deps_done" = no; then
12567          if test -z "$predep_objects_CXX"; then
12568            predep_objects_CXX="$p"
12569          else
12570            predep_objects_CXX="$predep_objects_CXX $p"
12571          fi
12572        else
12573          if test -z "$postdep_objects_CXX"; then
12574            postdep_objects_CXX="$p"
12575          else
12576            postdep_objects_CXX="$postdep_objects_CXX $p"
12577          fi
12578        fi
12579        ;;
12581     *) ;; # Ignore the rest.
12583     esac
12584   done
12586   # Clean up.
12587   rm -f a.out a.exe
12588 else
12589   echo "libtool.m4: error: problem compiling CXX test program"
12592 $rm -f confest.$objext
12594 compiler_lib_search_dirs_CXX=
12595 if test -n "$compiler_lib_search_path_CXX"; then
12596   compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12599 # PORTME: override above test on systems where it is broken
12600 case $host_os in
12601 interix[3-9]*)
12602   # Interix 3.5 installs completely hosed .la files for C++, so rather than
12603   # hack all around it, let's just trust "g++" to DTRT.
12604   predep_objects_CXX=
12605   postdep_objects_CXX=
12606   postdeps_CXX=
12607   ;;
12609 linux*)
12610   case `$CC -V 2>&1 | sed 5q` in
12611   *Sun\ C*)
12612     # Sun C++ 5.9
12613     #
12614     # The more standards-conforming stlport4 library is
12615     # incompatible with the Cstd library. Avoid specifying
12616     # it if it's in CXXFLAGS. Ignore libCrun as
12617     # -library=stlport4 depends on it.
12618     case " $CXX $CXXFLAGS " in
12619     *" -library=stlport4 "*)
12620       solaris_use_stlport4=yes
12621       ;;
12622     esac
12623     if test "$solaris_use_stlport4" != yes; then
12624       postdeps_CXX='-library=Cstd -library=Crun'
12625     fi
12626     ;;
12627   esac
12628   ;;
12630 solaris*)
12631   case $cc_basename in
12632   CC*)
12633     # The more standards-conforming stlport4 library is
12634     # incompatible with the Cstd library. Avoid specifying
12635     # it if it's in CXXFLAGS. Ignore libCrun as
12636     # -library=stlport4 depends on it.
12637     case " $CXX $CXXFLAGS " in
12638     *" -library=stlport4 "*)
12639       solaris_use_stlport4=yes
12640       ;;
12641     esac
12643     # Adding this requires a known-good setup of shared libraries for
12644     # Sun compiler versions before 5.6, else PIC objects from an old
12645     # archive will be linked into the output, leading to subtle bugs.
12646     if test "$solaris_use_stlport4" != yes; then
12647       postdeps_CXX='-library=Cstd -library=Crun'
12648     fi
12649     ;;
12650   esac
12651   ;;
12652 esac
12654 case " $postdeps_CXX " in
12655 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12656 esac
12658 lt_prog_compiler_wl_CXX=
12659 lt_prog_compiler_pic_CXX=
12660 lt_prog_compiler_static_CXX=
12662 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12663 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12665   # C++ specific cases for pic, static, wl, etc.
12666   if test "$GXX" = yes; then
12667     lt_prog_compiler_wl_CXX='-Wl,'
12668     lt_prog_compiler_static_CXX='-static'
12670     case $host_os in
12671     aix*)
12672       # All AIX code is PIC.
12673       if test "$host_cpu" = ia64; then
12674         # AIX 5 now supports IA64 processor
12675         lt_prog_compiler_static_CXX='-Bstatic'
12676       fi
12677       ;;
12678     amigaos*)
12679       # FIXME: we need at least 68020 code to build shared libraries, but
12680       # adding the `-m68020' flag to GCC prevents building anything better,
12681       # like `-m68040'.
12682       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12683       ;;
12684     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12685       # PIC is the default for these OSes.
12686       ;;
12687     mingw* | cygwin* | os2* | pw32*)
12688       # This hack is so that the source file can tell whether it is being
12689       # built for inclusion in a dll (and should export symbols for example).
12690       # Although the cygwin gcc ignores -fPIC, still need this for old-style
12691       # (--disable-auto-import) libraries
12692       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12693       ;;
12694     darwin* | rhapsody*)
12695       # PIC is the default on this platform
12696       # Common symbols not allowed in MH_DYLIB files
12697       lt_prog_compiler_pic_CXX='-fno-common'
12698       ;;
12699     *djgpp*)
12700       # DJGPP does not support shared libraries at all
12701       lt_prog_compiler_pic_CXX=
12702       ;;
12703     interix[3-9]*)
12704       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12705       # Instead, we relocate shared libraries at runtime.
12706       ;;
12707     sysv4*MP*)
12708       if test -d /usr/nec; then
12709         lt_prog_compiler_pic_CXX=-Kconform_pic
12710       fi
12711       ;;
12712     hpux*)
12713       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12714       # not for PA HP-UX.
12715       case $host_cpu in
12716       hppa*64*|ia64*)
12717         ;;
12718       *)
12719         lt_prog_compiler_pic_CXX='-fPIC'
12720         ;;
12721       esac
12722       ;;
12723     *)
12724       lt_prog_compiler_pic_CXX='-fPIC'
12725       ;;
12726     esac
12727   else
12728     case $host_os in
12729       aix[4-9]*)
12730         # All AIX code is PIC.
12731         if test "$host_cpu" = ia64; then
12732           # AIX 5 now supports IA64 processor
12733           lt_prog_compiler_static_CXX='-Bstatic'
12734         else
12735           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12736         fi
12737         ;;
12738       chorus*)
12739         case $cc_basename in
12740         cxch68*)
12741           # Green Hills C++ Compiler
12742           # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
12743           ;;
12744         esac
12745         ;;
12746        darwin*)
12747          # PIC is the default on this platform
12748          # Common symbols not allowed in MH_DYLIB files
12749          case $cc_basename in
12750            xlc*)
12751            lt_prog_compiler_pic_CXX='-qnocommon'
12752            lt_prog_compiler_wl_CXX='-Wl,'
12753            ;;
12754          esac
12755        ;;
12756       dgux*)
12757         case $cc_basename in
12758           ec++*)
12759             lt_prog_compiler_pic_CXX='-KPIC'
12760             ;;
12761           ghcx*)
12762             # Green Hills C++ Compiler
12763             lt_prog_compiler_pic_CXX='-pic'
12764             ;;
12765           *)
12766             ;;
12767         esac
12768         ;;
12769       freebsd* | dragonfly*)
12770         # FreeBSD uses GNU C++
12771         ;;
12772       hpux9* | hpux10* | hpux11*)
12773         case $cc_basename in
12774           CC*)
12775             lt_prog_compiler_wl_CXX='-Wl,'
12776             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12777             if test "$host_cpu" != ia64; then
12778               lt_prog_compiler_pic_CXX='+Z'
12779             fi
12780             ;;
12781           aCC*)
12782             lt_prog_compiler_wl_CXX='-Wl,'
12783             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12784             case $host_cpu in
12785             hppa*64*|ia64*)
12786               # +Z the default
12787               ;;
12788             *)
12789               lt_prog_compiler_pic_CXX='+Z'
12790               ;;
12791             esac
12792             ;;
12793           *)
12794             ;;
12795         esac
12796         ;;
12797       interix*)
12798         # This is c89, which is MS Visual C++ (no shared libs)
12799         # Anyone wants to do a port?
12800         ;;
12801       irix5* | irix6* | nonstopux*)
12802         case $cc_basename in
12803           CC*)
12804             lt_prog_compiler_wl_CXX='-Wl,'
12805             lt_prog_compiler_static_CXX='-non_shared'
12806             # CC pic flag -KPIC is the default.
12807             ;;
12808           *)
12809             ;;
12810         esac
12811         ;;
12812       linux* | k*bsd*-gnu)
12813         case $cc_basename in
12814           KCC*)
12815             # KAI C++ Compiler
12816             lt_prog_compiler_wl_CXX='--backend -Wl,'
12817             lt_prog_compiler_pic_CXX='-fPIC'
12818             ;;
12819           icpc* | ecpc*)
12820             # Intel C++
12821             lt_prog_compiler_wl_CXX='-Wl,'
12822             lt_prog_compiler_pic_CXX='-KPIC'
12823             lt_prog_compiler_static_CXX='-static'
12824             ;;
12825           pgCC* | pgcpp*)
12826             # Portland Group C++ compiler.
12827             lt_prog_compiler_wl_CXX='-Wl,'
12828             lt_prog_compiler_pic_CXX='-fpic'
12829             lt_prog_compiler_static_CXX='-Bstatic'
12830             ;;
12831           cxx*)
12832             # Compaq C++
12833             # Make sure the PIC flag is empty.  It appears that all Alpha
12834             # Linux and Compaq Tru64 Unix objects are PIC.
12835             lt_prog_compiler_pic_CXX=
12836             lt_prog_compiler_static_CXX='-non_shared'
12837             ;;
12838           *)
12839             case `$CC -V 2>&1 | sed 5q` in
12840             *Sun\ C*)
12841               # Sun C++ 5.9
12842               lt_prog_compiler_pic_CXX='-KPIC'
12843               lt_prog_compiler_static_CXX='-Bstatic'
12844               lt_prog_compiler_wl_CXX='-Qoption ld '
12845               ;;
12846             esac
12847             ;;
12848         esac
12849         ;;
12850       lynxos*)
12851         ;;
12852       m88k*)
12853         ;;
12854       mvs*)
12855         case $cc_basename in
12856           cxx*)
12857             lt_prog_compiler_pic_CXX='-W c,exportall'
12858             ;;
12859           *)
12860             ;;
12861         esac
12862         ;;
12863       netbsd* | netbsdelf*-gnu)
12864         ;;
12865       osf3* | osf4* | osf5*)
12866         case $cc_basename in
12867           KCC*)
12868             lt_prog_compiler_wl_CXX='--backend -Wl,'
12869             ;;
12870           RCC*)
12871             # Rational C++ 2.4.1
12872             lt_prog_compiler_pic_CXX='-pic'
12873             ;;
12874           cxx*)
12875             # Digital/Compaq C++
12876             lt_prog_compiler_wl_CXX='-Wl,'
12877             # Make sure the PIC flag is empty.  It appears that all Alpha
12878             # Linux and Compaq Tru64 Unix objects are PIC.
12879             lt_prog_compiler_pic_CXX=
12880             lt_prog_compiler_static_CXX='-non_shared'
12881             ;;
12882           *)
12883             ;;
12884         esac
12885         ;;
12886       psos*)
12887         ;;
12888       solaris*)
12889         case $cc_basename in
12890           CC*)
12891             # Sun C++ 4.2, 5.x and Centerline C++
12892             lt_prog_compiler_pic_CXX='-KPIC'
12893             lt_prog_compiler_static_CXX='-Bstatic'
12894             lt_prog_compiler_wl_CXX='-Qoption ld '
12895             ;;
12896           gcx*)
12897             # Green Hills C++ Compiler
12898             lt_prog_compiler_pic_CXX='-PIC'
12899             ;;
12900           *)
12901             ;;
12902         esac
12903         ;;
12904       sunos4*)
12905         case $cc_basename in
12906           CC*)
12907             # Sun C++ 4.x
12908             lt_prog_compiler_pic_CXX='-pic'
12909             lt_prog_compiler_static_CXX='-Bstatic'
12910             ;;
12911           lcc*)
12912             # Lucid
12913             lt_prog_compiler_pic_CXX='-pic'
12914             ;;
12915           *)
12916             ;;
12917         esac
12918         ;;
12919       tandem*)
12920         case $cc_basename in
12921           NCC*)
12922             # NonStop-UX NCC 3.20
12923             lt_prog_compiler_pic_CXX='-KPIC'
12924             ;;
12925           *)
12926             ;;
12927         esac
12928         ;;
12929       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12930         case $cc_basename in
12931           CC*)
12932             lt_prog_compiler_wl_CXX='-Wl,'
12933             lt_prog_compiler_pic_CXX='-KPIC'
12934             lt_prog_compiler_static_CXX='-Bstatic'
12935             ;;
12936         esac
12937         ;;
12938       vxworks*)
12939         ;;
12940       *)
12941         lt_prog_compiler_can_build_shared_CXX=no
12942         ;;
12943     esac
12944   fi
12946 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12947 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12950 # Check to make sure the PIC flag actually works.
12952 if test -n "$lt_prog_compiler_pic_CXX"; then
12954 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12955 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12956 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12957   echo $ECHO_N "(cached) $ECHO_C" >&6
12958 else
12959   lt_cv_prog_compiler_pic_works_CXX=no
12960   ac_outfile=conftest.$ac_objext
12961    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12962    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12963    # Insert the option either (1) after the last *FLAGS variable, or
12964    # (2) before a word containing "conftest.", or (3) at the end.
12965    # Note that $ac_compile itself does not contain backslashes and begins
12966    # with a dollar sign (not a hyphen), so the echo should work correctly.
12967    # The option is referenced via a variable to avoid confusing sed.
12968    lt_compile=`echo "$ac_compile" | $SED \
12969    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12970    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12971    -e 's:$: $lt_compiler_flag:'`
12972    (eval echo "\"\$as_me:12972: $lt_compile\"" >&5)
12973    (eval "$lt_compile" 2>conftest.err)
12974    ac_status=$?
12975    cat conftest.err >&5
12976    echo "$as_me:12976: \$? = $ac_status" >&5
12977    if (exit $ac_status) && test -s "$ac_outfile"; then
12978      # The compiler can only warn and ignore the option if not recognized
12979      # So say no if there are warnings other than the usual output.
12980      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12981      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12982      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12983        lt_cv_prog_compiler_pic_works_CXX=yes
12984      fi
12985    fi
12986    $rm conftest*
12989 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12990 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12992 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12993     case $lt_prog_compiler_pic_CXX in
12994      "" | " "*) ;;
12995      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12996      esac
12997 else
12998     lt_prog_compiler_pic_CXX=
12999      lt_prog_compiler_can_build_shared_CXX=no
13003 case $host_os in
13004   # For platforms which do not support PIC, -DPIC is meaningless:
13005   *djgpp*)
13006     lt_prog_compiler_pic_CXX=
13007     ;;
13008   *)
13009     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13010     ;;
13011 esac
13014 # Check to make sure the static flag actually works.
13016 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13017 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13018 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13019 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
13020   echo $ECHO_N "(cached) $ECHO_C" >&6
13021 else
13022   lt_cv_prog_compiler_static_works_CXX=no
13023    save_LDFLAGS="$LDFLAGS"
13024    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13025    echo "$lt_simple_link_test_code" > conftest.$ac_ext
13026    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13027      # The linker can only warn and ignore the option if not recognized
13028      # So say no if there are warnings
13029      if test -s conftest.err; then
13030        # Append any errors to the config.log.
13031        cat conftest.err 1>&5
13032        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13033        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13034        if diff conftest.exp conftest.er2 >/dev/null; then
13035          lt_cv_prog_compiler_static_works_CXX=yes
13036        fi
13037      else
13038        lt_cv_prog_compiler_static_works_CXX=yes
13039      fi
13040    fi
13041    $rm -r conftest*
13042    LDFLAGS="$save_LDFLAGS"
13045 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13046 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
13048 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13049     :
13050 else
13051     lt_prog_compiler_static_CXX=
13055 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13056 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13057 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13058   echo $ECHO_N "(cached) $ECHO_C" >&6
13059 else
13060   lt_cv_prog_compiler_c_o_CXX=no
13061    $rm -r conftest 2>/dev/null
13062    mkdir conftest
13063    cd conftest
13064    mkdir out
13065    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13067    lt_compiler_flag="-o out/conftest2.$ac_objext"
13068    # Insert the option either (1) after the last *FLAGS variable, or
13069    # (2) before a word containing "conftest.", or (3) at the end.
13070    # Note that $ac_compile itself does not contain backslashes and begins
13071    # with a dollar sign (not a hyphen), so the echo should work correctly.
13072    lt_compile=`echo "$ac_compile" | $SED \
13073    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13074    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13075    -e 's:$: $lt_compiler_flag:'`
13076    (eval echo "\"\$as_me:13076: $lt_compile\"" >&5)
13077    (eval "$lt_compile" 2>out/conftest.err)
13078    ac_status=$?
13079    cat out/conftest.err >&5
13080    echo "$as_me:13080: \$? = $ac_status" >&5
13081    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13082    then
13083      # The compiler can only warn and ignore the option if not recognized
13084      # So say no if there are warnings
13085      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13086      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13087      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13088        lt_cv_prog_compiler_c_o_CXX=yes
13089      fi
13090    fi
13091    chmod u+w . 2>&5
13092    $rm conftest*
13093    # SGI C++ compiler will create directory out/ii_files/ for
13094    # template instantiation
13095    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13096    $rm out/* && rmdir out
13097    cd ..
13098    rmdir conftest
13099    $rm conftest*
13102 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13103 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
13106 hard_links="nottested"
13107 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13108   # do not overwrite the value of need_locks provided by the user
13109   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13110 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13111   hard_links=yes
13112   $rm conftest*
13113   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13114   touch conftest.a
13115   ln conftest.a conftest.b 2>&5 || hard_links=no
13116   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13117   { echo "$as_me:$LINENO: result: $hard_links" >&5
13118 echo "${ECHO_T}$hard_links" >&6; }
13119   if test "$hard_links" = no; then
13120     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13121 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13122     need_locks=warn
13123   fi
13124 else
13125   need_locks=no
13128 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13129 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13131   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13132   case $host_os in
13133   aix[4-9]*)
13134     # If we're using GNU nm, then we don't want the "-C" option.
13135     # -C means demangle to AIX nm, but means don't demangle with GNU nm
13136     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13137       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13138     else
13139       export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13140     fi
13141     ;;
13142   pw32*)
13143     export_symbols_cmds_CXX="$ltdll_cmds"
13144   ;;
13145   cygwin* | mingw*)
13146     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13147   ;;
13148   linux* | k*bsd*-gnu)
13149     link_all_deplibs_CXX=no
13150   ;;
13151   *)
13152     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13153   ;;
13154   esac
13155   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13157 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13158 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13159 test "$ld_shlibs_CXX" = no && can_build_shared=no
13162 # Do we need to explicitly link libc?
13164 case "x$archive_cmds_need_lc_CXX" in
13165 x|xyes)
13166   # Assume -lc should be added
13167   archive_cmds_need_lc_CXX=yes
13169   if test "$enable_shared" = yes && test "$GCC" = yes; then
13170     case $archive_cmds_CXX in
13171     *'~'*)
13172       # FIXME: we may have to deal with multi-command sequences.
13173       ;;
13174     '$CC '*)
13175       # Test whether the compiler implicitly links with -lc since on some
13176       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13177       # to ld, don't add -lc before -lgcc.
13178       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13179 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13180       $rm conftest*
13181       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13183       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13184   (eval $ac_compile) 2>&5
13185   ac_status=$?
13186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13187   (exit $ac_status); } 2>conftest.err; then
13188         soname=conftest
13189         lib=conftest
13190         libobjs=conftest.$ac_objext
13191         deplibs=
13192         wl=$lt_prog_compiler_wl_CXX
13193         pic_flag=$lt_prog_compiler_pic_CXX
13194         compiler_flags=-v
13195         linker_flags=-v
13196         verstring=
13197         output_objdir=.
13198         libname=conftest
13199         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13200         allow_undefined_flag_CXX=
13201         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13202   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13203   ac_status=$?
13204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13205   (exit $ac_status); }
13206         then
13207           archive_cmds_need_lc_CXX=no
13208         else
13209           archive_cmds_need_lc_CXX=yes
13210         fi
13211         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13212       else
13213         cat conftest.err 1>&5
13214       fi
13215       $rm conftest*
13216       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13217 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13218       ;;
13219     esac
13220   fi
13221   ;;
13222 esac
13224 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13225 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13226 library_names_spec=
13227 libname_spec='lib$name'
13228 soname_spec=
13229 shrext_cmds=".so"
13230 postinstall_cmds=
13231 postuninstall_cmds=
13232 finish_cmds=
13233 finish_eval=
13234 shlibpath_var=
13235 shlibpath_overrides_runpath=unknown
13236 version_type=none
13237 dynamic_linker="$host_os ld.so"
13238 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13240 need_lib_prefix=unknown
13241 hardcode_into_libs=no
13243 # when you set need_version to no, make sure it does not cause -set_version
13244 # flags to be left without arguments
13245 need_version=unknown
13247 case $host_os in
13248 aix3*)
13249   version_type=linux
13250   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13251   shlibpath_var=LIBPATH
13253   # AIX 3 has no versioning support, so we append a major version to the name.
13254   soname_spec='${libname}${release}${shared_ext}$major'
13255   ;;
13257 aix[4-9]*)
13258   version_type=linux
13259   need_lib_prefix=no
13260   need_version=no
13261   hardcode_into_libs=yes
13262   if test "$host_cpu" = ia64; then
13263     # AIX 5 supports IA64
13264     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13265     shlibpath_var=LD_LIBRARY_PATH
13266   else
13267     # With GCC up to 2.95.x, collect2 would create an import file
13268     # for dependence libraries.  The import file would start with
13269     # the line `#! .'.  This would cause the generated library to
13270     # depend on `.', always an invalid library.  This was fixed in
13271     # development snapshots of GCC prior to 3.0.
13272     case $host_os in
13273       aix4 | aix4.[01] | aix4.[01].*)
13274       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13275            echo ' yes '
13276            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13277         :
13278       else
13279         can_build_shared=no
13280       fi
13281       ;;
13282     esac
13283     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13284     # soname into executable. Probably we can add versioning support to
13285     # collect2, so additional links can be useful in future.
13286     if test "$aix_use_runtimelinking" = yes; then
13287       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13288       # instead of lib<name>.a to let people know that these are not
13289       # typical AIX shared libraries.
13290       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13291     else
13292       # We preserve .a as extension for shared libraries through AIX4.2
13293       # and later when we are not doing run time linking.
13294       library_names_spec='${libname}${release}.a $libname.a'
13295       soname_spec='${libname}${release}${shared_ext}$major'
13296     fi
13297     shlibpath_var=LIBPATH
13298   fi
13299   ;;
13301 amigaos*)
13302   library_names_spec='$libname.ixlibrary $libname.a'
13303   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13304   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'
13305   ;;
13307 beos*)
13308   library_names_spec='${libname}${shared_ext}'
13309   dynamic_linker="$host_os ld.so"
13310   shlibpath_var=LIBRARY_PATH
13311   ;;
13313 bsdi[45]*)
13314   version_type=linux
13315   need_version=no
13316   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13317   soname_spec='${libname}${release}${shared_ext}$major'
13318   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13319   shlibpath_var=LD_LIBRARY_PATH
13320   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13321   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13322   # the default ld.so.conf also contains /usr/contrib/lib and
13323   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13324   # libtool to hard-code these into programs
13325   ;;
13327 cygwin* | mingw* | pw32*)
13328   version_type=windows
13329   shrext_cmds=".dll"
13330   need_version=no
13331   need_lib_prefix=no
13333   case $GCC,$host_os in
13334   yes,cygwin* | yes,mingw* | yes,pw32*)
13335     library_names_spec='$libname.dll.a'
13336     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13337     postinstall_cmds='base_file=`basename \${file}`~
13338       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13339       dldir=$destdir/`dirname \$dlpath`~
13340       test -d \$dldir || mkdir -p \$dldir~
13341       $install_prog $dir/$dlname \$dldir/$dlname~
13342       chmod a+x \$dldir/$dlname'
13343     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13344       dlpath=$dir/\$dldll~
13345        $rm \$dlpath'
13346     shlibpath_overrides_runpath=yes
13348     case $host_os in
13349     cygwin*)
13350       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13351       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13352       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13353       ;;
13354     mingw*)
13355       # MinGW DLLs use traditional 'lib' prefix
13356       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13357       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13358       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13359         # It is most probably a Windows format PATH printed by
13360         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13361         # path with ; separators, and with drive letters. We can handle the
13362         # drive letters (cygwin fileutils understands them), so leave them,
13363         # especially as we might pass files found there to a mingw objdump,
13364         # which wouldn't understand a cygwinified path. Ahh.
13365         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13366       else
13367         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13368       fi
13369       ;;
13370     pw32*)
13371       # pw32 DLLs use 'pw' prefix rather than 'lib'
13372       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13373       ;;
13374     esac
13375     ;;
13377   *)
13378     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13379     ;;
13380   esac
13381   dynamic_linker='Win32 ld.exe'
13382   # FIXME: first we should search . and the directory the executable is in
13383   shlibpath_var=PATH
13384   ;;
13386 darwin* | rhapsody*)
13387   dynamic_linker="$host_os dyld"
13388   version_type=darwin
13389   need_lib_prefix=no
13390   need_version=no
13391   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13392   soname_spec='${libname}${release}${major}$shared_ext'
13393   shlibpath_overrides_runpath=yes
13394   shlibpath_var=DYLD_LIBRARY_PATH
13395   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13397   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13398   ;;
13400 dgux*)
13401   version_type=linux
13402   need_lib_prefix=no
13403   need_version=no
13404   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13405   soname_spec='${libname}${release}${shared_ext}$major'
13406   shlibpath_var=LD_LIBRARY_PATH
13407   ;;
13409 freebsd1*)
13410   dynamic_linker=no
13411   ;;
13413 freebsd* | dragonfly*)
13414   # DragonFly does not have aout.  When/if they implement a new
13415   # versioning mechanism, adjust this.
13416   if test -x /usr/bin/objformat; then
13417     objformat=`/usr/bin/objformat`
13418   else
13419     case $host_os in
13420     freebsd[123]*) objformat=aout ;;
13421     *) objformat=elf ;;
13422     esac
13423   fi
13424   version_type=freebsd-$objformat
13425   case $version_type in
13426     freebsd-elf*)
13427       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13428       need_version=no
13429       need_lib_prefix=no
13430       ;;
13431     freebsd-*)
13432       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13433       need_version=yes
13434       ;;
13435   esac
13436   shlibpath_var=LD_LIBRARY_PATH
13437   case $host_os in
13438   freebsd2*)
13439     shlibpath_overrides_runpath=yes
13440     ;;
13441   freebsd3.[01]* | freebsdelf3.[01]*)
13442     shlibpath_overrides_runpath=yes
13443     hardcode_into_libs=yes
13444     ;;
13445   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13446   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13447     shlibpath_overrides_runpath=no
13448     hardcode_into_libs=yes
13449     ;;
13450   *) # from 4.6 on, and DragonFly
13451     shlibpath_overrides_runpath=yes
13452     hardcode_into_libs=yes
13453     ;;
13454   esac
13455   ;;
13457 gnu*)
13458   version_type=linux
13459   need_lib_prefix=no
13460   need_version=no
13461   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13462   soname_spec='${libname}${release}${shared_ext}$major'
13463   shlibpath_var=LD_LIBRARY_PATH
13464   hardcode_into_libs=yes
13465   ;;
13467 hpux9* | hpux10* | hpux11*)
13468   # Give a soname corresponding to the major version so that dld.sl refuses to
13469   # link against other versions.
13470   version_type=sunos
13471   need_lib_prefix=no
13472   need_version=no
13473   case $host_cpu in
13474   ia64*)
13475     shrext_cmds='.so'
13476     hardcode_into_libs=yes
13477     dynamic_linker="$host_os dld.so"
13478     shlibpath_var=LD_LIBRARY_PATH
13479     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13480     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13481     soname_spec='${libname}${release}${shared_ext}$major'
13482     if test "X$HPUX_IA64_MODE" = X32; then
13483       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13484     else
13485       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13486     fi
13487     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13488     ;;
13489    hppa*64*)
13490      shrext_cmds='.sl'
13491      hardcode_into_libs=yes
13492      dynamic_linker="$host_os dld.sl"
13493      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13494      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13495      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13496      soname_spec='${libname}${release}${shared_ext}$major'
13497      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13498      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13499      ;;
13500    *)
13501     shrext_cmds='.sl'
13502     dynamic_linker="$host_os dld.sl"
13503     shlibpath_var=SHLIB_PATH
13504     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13505     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13506     soname_spec='${libname}${release}${shared_ext}$major'
13507     ;;
13508   esac
13509   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13510   postinstall_cmds='chmod 555 $lib'
13511   ;;
13513 interix[3-9]*)
13514   version_type=linux
13515   need_lib_prefix=no
13516   need_version=no
13517   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13518   soname_spec='${libname}${release}${shared_ext}$major'
13519   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13520   shlibpath_var=LD_LIBRARY_PATH
13521   shlibpath_overrides_runpath=no
13522   hardcode_into_libs=yes
13523   ;;
13525 irix5* | irix6* | nonstopux*)
13526   case $host_os in
13527     nonstopux*) version_type=nonstopux ;;
13528     *)
13529         if test "$lt_cv_prog_gnu_ld" = yes; then
13530                 version_type=linux
13531         else
13532                 version_type=irix
13533         fi ;;
13534   esac
13535   need_lib_prefix=no
13536   need_version=no
13537   soname_spec='${libname}${release}${shared_ext}$major'
13538   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13539   case $host_os in
13540   irix5* | nonstopux*)
13541     libsuff= shlibsuff=
13542     ;;
13543   *)
13544     case $LD in # libtool.m4 will add one of these switches to LD
13545     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13546       libsuff= shlibsuff= libmagic=32-bit;;
13547     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13548       libsuff=32 shlibsuff=N32 libmagic=N32;;
13549     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13550       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13551     *) libsuff= shlibsuff= libmagic=never-match;;
13552     esac
13553     ;;
13554   esac
13555   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13556   shlibpath_overrides_runpath=no
13557   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13558   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13559   hardcode_into_libs=yes
13560   ;;
13562 # No shared lib support for Linux oldld, aout, or coff.
13563 linux*oldld* | linux*aout* | linux*coff*)
13564   dynamic_linker=no
13565   ;;
13567 # This must be Linux ELF.
13568 linux* | k*bsd*-gnu)
13569   version_type=linux
13570   need_lib_prefix=no
13571   need_version=no
13572   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13573   soname_spec='${libname}${release}${shared_ext}$major'
13574   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13575   shlibpath_var=LD_LIBRARY_PATH
13576   shlibpath_overrides_runpath=no
13577   # This implies no fast_install, which is unacceptable.
13578   # Some rework will be needed to allow for fast_install
13579   # before this can be enabled.
13580   hardcode_into_libs=yes
13582   # Append ld.so.conf contents to the search path
13583   if test -f /etc/ld.so.conf; then
13584     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' ' '`
13585     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13586   fi
13588   # We used to test for /lib/ld.so.1 and disable shared libraries on
13589   # powerpc, because MkLinux only supported shared libraries with the
13590   # GNU dynamic linker.  Since this was broken with cross compilers,
13591   # most powerpc-linux boxes support dynamic linking these days and
13592   # people can always --disable-shared, the test was removed, and we
13593   # assume the GNU/Linux dynamic linker is in use.
13594   dynamic_linker='GNU/Linux ld.so'
13595   ;;
13597 netbsdelf*-gnu)
13598   version_type=linux
13599   need_lib_prefix=no
13600   need_version=no
13601   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13602   soname_spec='${libname}${release}${shared_ext}$major'
13603   shlibpath_var=LD_LIBRARY_PATH
13604   shlibpath_overrides_runpath=no
13605   hardcode_into_libs=yes
13606   dynamic_linker='NetBSD ld.elf_so'
13607   ;;
13609 netbsd*)
13610   version_type=sunos
13611   need_lib_prefix=no
13612   need_version=no
13613   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13614     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13615     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13616     dynamic_linker='NetBSD (a.out) ld.so'
13617   else
13618     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13619     soname_spec='${libname}${release}${shared_ext}$major'
13620     dynamic_linker='NetBSD ld.elf_so'
13621   fi
13622   shlibpath_var=LD_LIBRARY_PATH
13623   shlibpath_overrides_runpath=yes
13624   hardcode_into_libs=yes
13625   ;;
13627 newsos6)
13628   version_type=linux
13629   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13630   shlibpath_var=LD_LIBRARY_PATH
13631   shlibpath_overrides_runpath=yes
13632   ;;
13634 nto-qnx*)
13635   version_type=linux
13636   need_lib_prefix=no
13637   need_version=no
13638   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13639   soname_spec='${libname}${release}${shared_ext}$major'
13640   shlibpath_var=LD_LIBRARY_PATH
13641   shlibpath_overrides_runpath=yes
13642   ;;
13644 openbsd*)
13645   version_type=sunos
13646   sys_lib_dlsearch_path_spec="/usr/lib"
13647   need_lib_prefix=no
13648   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13649   case $host_os in
13650     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13651     *)                         need_version=no  ;;
13652   esac
13653   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13654   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13655   shlibpath_var=LD_LIBRARY_PATH
13656   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13657     case $host_os in
13658       openbsd2.[89] | openbsd2.[89].*)
13659         shlibpath_overrides_runpath=no
13660         ;;
13661       *)
13662         shlibpath_overrides_runpath=yes
13663         ;;
13664       esac
13665   else
13666     shlibpath_overrides_runpath=yes
13667   fi
13668   ;;
13670 os2*)
13671   libname_spec='$name'
13672   shrext_cmds=".dll"
13673   need_lib_prefix=no
13674   library_names_spec='$libname${shared_ext} $libname.a'
13675   dynamic_linker='OS/2 ld.exe'
13676   shlibpath_var=LIBPATH
13677   ;;
13679 osf3* | osf4* | osf5*)
13680   version_type=osf
13681   need_lib_prefix=no
13682   need_version=no
13683   soname_spec='${libname}${release}${shared_ext}$major'
13684   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13685   shlibpath_var=LD_LIBRARY_PATH
13686   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13687   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13688   ;;
13690 rdos*)
13691   dynamic_linker=no
13692   ;;
13694 solaris*)
13695   version_type=linux
13696   need_lib_prefix=no
13697   need_version=no
13698   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13699   soname_spec='${libname}${release}${shared_ext}$major'
13700   shlibpath_var=LD_LIBRARY_PATH
13701   shlibpath_overrides_runpath=yes
13702   hardcode_into_libs=yes
13703   # ldd complains unless libraries are executable
13704   postinstall_cmds='chmod +x $lib'
13705   ;;
13707 sunos4*)
13708   version_type=sunos
13709   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13710   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13711   shlibpath_var=LD_LIBRARY_PATH
13712   shlibpath_overrides_runpath=yes
13713   if test "$with_gnu_ld" = yes; then
13714     need_lib_prefix=no
13715   fi
13716   need_version=yes
13717   ;;
13719 sysv4 | sysv4.3*)
13720   version_type=linux
13721   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13722   soname_spec='${libname}${release}${shared_ext}$major'
13723   shlibpath_var=LD_LIBRARY_PATH
13724   case $host_vendor in
13725     sni)
13726       shlibpath_overrides_runpath=no
13727       need_lib_prefix=no
13728       export_dynamic_flag_spec='${wl}-Blargedynsym'
13729       runpath_var=LD_RUN_PATH
13730       ;;
13731     siemens)
13732       need_lib_prefix=no
13733       ;;
13734     motorola)
13735       need_lib_prefix=no
13736       need_version=no
13737       shlibpath_overrides_runpath=no
13738       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13739       ;;
13740   esac
13741   ;;
13743 sysv4*MP*)
13744   if test -d /usr/nec ;then
13745     version_type=linux
13746     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13747     soname_spec='$libname${shared_ext}.$major'
13748     shlibpath_var=LD_LIBRARY_PATH
13749   fi
13750   ;;
13752 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13753   version_type=freebsd-elf
13754   need_lib_prefix=no
13755   need_version=no
13756   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13757   soname_spec='${libname}${release}${shared_ext}$major'
13758   shlibpath_var=LD_LIBRARY_PATH
13759   hardcode_into_libs=yes
13760   if test "$with_gnu_ld" = yes; then
13761     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13762     shlibpath_overrides_runpath=no
13763   else
13764     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13765     shlibpath_overrides_runpath=yes
13766     case $host_os in
13767       sco3.2v5*)
13768         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13769         ;;
13770     esac
13771   fi
13772   sys_lib_dlsearch_path_spec='/usr/lib'
13773   ;;
13775 uts4*)
13776   version_type=linux
13777   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13778   soname_spec='${libname}${release}${shared_ext}$major'
13779   shlibpath_var=LD_LIBRARY_PATH
13780   ;;
13783   dynamic_linker=no
13784   ;;
13785 esac
13786 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13787 echo "${ECHO_T}$dynamic_linker" >&6; }
13788 test "$dynamic_linker" = no && can_build_shared=no
13790 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13791   echo $ECHO_N "(cached) $ECHO_C" >&6
13792 else
13793   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13796 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13797 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13798   echo $ECHO_N "(cached) $ECHO_C" >&6
13799 else
13800   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13803 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13805 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13806 if test "$GCC" = yes; then
13807   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13810 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13811 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13812 hardcode_action_CXX=
13813 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13814    test -n "$runpath_var_CXX" || \
13815    test "X$hardcode_automatic_CXX" = "Xyes" ; then
13817   # We can hardcode non-existant directories.
13818   if test "$hardcode_direct_CXX" != no &&
13819      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13820      # have to relink, otherwise we might link with an installed library
13821      # when we should be linking with a yet-to-be-installed one
13822      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13823      test "$hardcode_minus_L_CXX" != no; then
13824     # Linking always hardcodes the temporary library directory.
13825     hardcode_action_CXX=relink
13826   else
13827     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13828     hardcode_action_CXX=immediate
13829   fi
13830 else
13831   # We cannot hardcode anything, or else we can only hardcode existing
13832   # directories.
13833   hardcode_action_CXX=unsupported
13835 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13836 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13838 if test "$hardcode_action_CXX" = relink; then
13839   # Fast installation is not supported
13840   enable_fast_install=no
13841 elif test "$shlibpath_overrides_runpath" = yes ||
13842      test "$enable_shared" = no; then
13843   # Fast installation is not necessary
13844   enable_fast_install=needless
13848 # The else clause should only fire when bootstrapping the
13849 # libtool distribution, otherwise you forgot to ship ltmain.sh
13850 # with your package, and you will get complaints that there are
13851 # no rules to generate ltmain.sh.
13852 if test -f "$ltmain"; then
13853   # See if we are running on zsh, and set the options which allow our commands through
13854   # without removal of \ escapes.
13855   if test -n "${ZSH_VERSION+set}" ; then
13856     setopt NO_GLOB_SUBST
13857   fi
13858   # Now quote all the things that may contain metacharacters while being
13859   # careful not to overquote the AC_SUBSTed values.  We take copies of the
13860   # variables and quote the copies for generation of the libtool script.
13861   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13862     SED SHELL STRIP \
13863     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13864     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13865     deplibs_check_method reload_flag reload_cmds need_locks \
13866     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13867     lt_cv_sys_global_symbol_to_c_name_address \
13868     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13869     old_postinstall_cmds old_postuninstall_cmds \
13870     compiler_CXX \
13871     CC_CXX \
13872     LD_CXX \
13873     lt_prog_compiler_wl_CXX \
13874     lt_prog_compiler_pic_CXX \
13875     lt_prog_compiler_static_CXX \
13876     lt_prog_compiler_no_builtin_flag_CXX \
13877     export_dynamic_flag_spec_CXX \
13878     thread_safe_flag_spec_CXX \
13879     whole_archive_flag_spec_CXX \
13880     enable_shared_with_static_runtimes_CXX \
13881     old_archive_cmds_CXX \
13882     old_archive_from_new_cmds_CXX \
13883     predep_objects_CXX \
13884     postdep_objects_CXX \
13885     predeps_CXX \
13886     postdeps_CXX \
13887     compiler_lib_search_path_CXX \
13888     compiler_lib_search_dirs_CXX \
13889     archive_cmds_CXX \
13890     archive_expsym_cmds_CXX \
13891     postinstall_cmds_CXX \
13892     postuninstall_cmds_CXX \
13893     old_archive_from_expsyms_cmds_CXX \
13894     allow_undefined_flag_CXX \
13895     no_undefined_flag_CXX \
13896     export_symbols_cmds_CXX \
13897     hardcode_libdir_flag_spec_CXX \
13898     hardcode_libdir_flag_spec_ld_CXX \
13899     hardcode_libdir_separator_CXX \
13900     hardcode_automatic_CXX \
13901     module_cmds_CXX \
13902     module_expsym_cmds_CXX \
13903     lt_cv_prog_compiler_c_o_CXX \
13904     fix_srcfile_path_CXX \
13905     exclude_expsyms_CXX \
13906     include_expsyms_CXX; do
13908     case $var in
13909     old_archive_cmds_CXX | \
13910     old_archive_from_new_cmds_CXX | \
13911     archive_cmds_CXX | \
13912     archive_expsym_cmds_CXX | \
13913     module_cmds_CXX | \
13914     module_expsym_cmds_CXX | \
13915     old_archive_from_expsyms_cmds_CXX | \
13916     export_symbols_cmds_CXX | \
13917     extract_expsyms_cmds | reload_cmds | finish_cmds | \
13918     postinstall_cmds | postuninstall_cmds | \
13919     old_postinstall_cmds | old_postuninstall_cmds | \
13920     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13921       # Double-quote double-evaled strings.
13922       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13923       ;;
13924     *)
13925       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13926       ;;
13927     esac
13928   done
13930   case $lt_echo in
13931   *'\$0 --fallback-echo"')
13932     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13933     ;;
13934   esac
13936 cfgfile="$ofile"
13938   cat <<__EOF__ >> "$cfgfile"
13939 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13941 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13943 # Shell to use when invoking shell scripts.
13944 SHELL=$lt_SHELL
13946 # Whether or not to build shared libraries.
13947 build_libtool_libs=$enable_shared
13949 # Whether or not to build static libraries.
13950 build_old_libs=$enable_static
13952 # Whether or not to add -lc for building shared libraries.
13953 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13955 # Whether or not to disallow shared libs when runtime libs are static
13956 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13958 # Whether or not to optimize for fast installation.
13959 fast_install=$enable_fast_install
13961 # The host system.
13962 host_alias=$host_alias
13963 host=$host
13964 host_os=$host_os
13966 # The build system.
13967 build_alias=$build_alias
13968 build=$build
13969 build_os=$build_os
13971 # An echo program that does not interpret backslashes.
13972 echo=$lt_echo
13974 # The archiver.
13975 AR=$lt_AR
13976 AR_FLAGS=$lt_AR_FLAGS
13978 # A C compiler.
13979 LTCC=$lt_LTCC
13981 # LTCC compiler flags.
13982 LTCFLAGS=$lt_LTCFLAGS
13984 # A language-specific compiler.
13985 CC=$lt_compiler_CXX
13987 # Is the compiler the GNU C compiler?
13988 with_gcc=$GCC_CXX
13990 # An ERE matcher.
13991 EGREP=$lt_EGREP
13993 # The linker used to build libraries.
13994 LD=$lt_LD_CXX
13996 # Whether we need hard or soft links.
13997 LN_S=$lt_LN_S
13999 # A BSD-compatible nm program.
14000 NM=$lt_NM
14002 # A symbol stripping program
14003 STRIP=$lt_STRIP
14005 # Used to examine libraries when file_magic_cmd begins "file"
14006 MAGIC_CMD=$MAGIC_CMD
14008 # Used on cygwin: DLL creation program.
14009 DLLTOOL="$DLLTOOL"
14011 # Used on cygwin: object dumper.
14012 OBJDUMP="$OBJDUMP"
14014 # Used on cygwin: assembler.
14015 AS="$AS"
14017 # The name of the directory that contains temporary libtool files.
14018 objdir=$objdir
14020 # How to create reloadable object files.
14021 reload_flag=$lt_reload_flag
14022 reload_cmds=$lt_reload_cmds
14024 # How to pass a linker flag through the compiler.
14025 wl=$lt_lt_prog_compiler_wl_CXX
14027 # Object file suffix (normally "o").
14028 objext="$ac_objext"
14030 # Old archive suffix (normally "a").
14031 libext="$libext"
14033 # Shared library suffix (normally ".so").
14034 shrext_cmds='$shrext_cmds'
14036 # Executable file suffix (normally "").
14037 exeext="$exeext"
14039 # Additional compiler flags for building library objects.
14040 pic_flag=$lt_lt_prog_compiler_pic_CXX
14041 pic_mode=$pic_mode
14043 # What is the maximum length of a command?
14044 max_cmd_len=$lt_cv_sys_max_cmd_len
14046 # Does compiler simultaneously support -c and -o options?
14047 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14049 # Must we lock files when doing compilation?
14050 need_locks=$lt_need_locks
14052 # Do we need the lib prefix for modules?
14053 need_lib_prefix=$need_lib_prefix
14055 # Do we need a version for libraries?
14056 need_version=$need_version
14058 # Whether dlopen is supported.
14059 dlopen_support=$enable_dlopen
14061 # Whether dlopen of programs is supported.
14062 dlopen_self=$enable_dlopen_self
14064 # Whether dlopen of statically linked programs is supported.
14065 dlopen_self_static=$enable_dlopen_self_static
14067 # Compiler flag to prevent dynamic linking.
14068 link_static_flag=$lt_lt_prog_compiler_static_CXX
14070 # Compiler flag to turn off builtin functions.
14071 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14073 # Compiler flag to allow reflexive dlopens.
14074 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14076 # Compiler flag to generate shared objects directly from archives.
14077 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14079 # Compiler flag to generate thread-safe objects.
14080 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14082 # Library versioning type.
14083 version_type=$version_type
14085 # Format of library name prefix.
14086 libname_spec=$lt_libname_spec
14088 # List of archive names.  First name is the real one, the rest are links.
14089 # The last name is the one that the linker finds with -lNAME.
14090 library_names_spec=$lt_library_names_spec
14092 # The coded name of the library, if different from the real name.
14093 soname_spec=$lt_soname_spec
14095 # Commands used to build and install an old-style archive.
14096 RANLIB=$lt_RANLIB
14097 old_archive_cmds=$lt_old_archive_cmds_CXX
14098 old_postinstall_cmds=$lt_old_postinstall_cmds
14099 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14101 # Create an old-style archive from a shared archive.
14102 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14104 # Create a temporary old-style archive to link instead of a shared archive.
14105 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14107 # Commands used to build and install a shared archive.
14108 archive_cmds=$lt_archive_cmds_CXX
14109 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14110 postinstall_cmds=$lt_postinstall_cmds
14111 postuninstall_cmds=$lt_postuninstall_cmds
14113 # Commands used to build a loadable module (assumed same as above if empty)
14114 module_cmds=$lt_module_cmds_CXX
14115 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14117 # Commands to strip libraries.
14118 old_striplib=$lt_old_striplib
14119 striplib=$lt_striplib
14121 # Dependencies to place before the objects being linked to create a
14122 # shared library.
14123 predep_objects=$lt_predep_objects_CXX
14125 # Dependencies to place after the objects being linked to create a
14126 # shared library.
14127 postdep_objects=$lt_postdep_objects_CXX
14129 # Dependencies to place before the objects being linked to create a
14130 # shared library.
14131 predeps=$lt_predeps_CXX
14133 # Dependencies to place after the objects being linked to create a
14134 # shared library.
14135 postdeps=$lt_postdeps_CXX
14137 # The directories searched by this compiler when creating a shared
14138 # library
14139 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
14141 # The library search path used internally by the compiler when linking
14142 # a shared library.
14143 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14145 # Method to check whether dependent libraries are shared objects.
14146 deplibs_check_method=$lt_deplibs_check_method
14148 # Command to use when deplibs_check_method == file_magic.
14149 file_magic_cmd=$lt_file_magic_cmd
14151 # Flag that allows shared libraries with undefined symbols to be built.
14152 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14154 # Flag that forces no undefined symbols.
14155 no_undefined_flag=$lt_no_undefined_flag_CXX
14157 # Commands used to finish a libtool library installation in a directory.
14158 finish_cmds=$lt_finish_cmds
14160 # Same as above, but a single script fragment to be evaled but not shown.
14161 finish_eval=$lt_finish_eval
14163 # Take the output of nm and produce a listing of raw symbols and C names.
14164 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14166 # Transform the output of nm in a proper C declaration
14167 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14169 # Transform the output of nm in a C name address pair
14170 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14172 # This is the shared library runtime path variable.
14173 runpath_var=$runpath_var
14175 # This is the shared library path variable.
14176 shlibpath_var=$shlibpath_var
14178 # Is shlibpath searched before the hard-coded library search path?
14179 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14181 # How to hardcode a shared library path into an executable.
14182 hardcode_action=$hardcode_action_CXX
14184 # Whether we should hardcode library paths into libraries.
14185 hardcode_into_libs=$hardcode_into_libs
14187 # Flag to hardcode \$libdir into a binary during linking.
14188 # This must work even if \$libdir does not exist.
14189 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14191 # If ld is used when linking, flag to hardcode \$libdir into
14192 # a binary during linking. This must work even if \$libdir does
14193 # not exist.
14194 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14196 # Whether we need a single -rpath flag with a separated argument.
14197 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14199 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14200 # resulting binary.
14201 hardcode_direct=$hardcode_direct_CXX
14203 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14204 # resulting binary.
14205 hardcode_minus_L=$hardcode_minus_L_CXX
14207 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14208 # the resulting binary.
14209 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14211 # Set to yes if building a shared library automatically hardcodes DIR into the library
14212 # and all subsequent libraries and executables linked against it.
14213 hardcode_automatic=$hardcode_automatic_CXX
14215 # Variables whose values should be saved in libtool wrapper scripts and
14216 # restored at relink time.
14217 variables_saved_for_relink="$variables_saved_for_relink"
14219 # Whether libtool must link a program against all its dependency libraries.
14220 link_all_deplibs=$link_all_deplibs_CXX
14222 # Compile-time system search path for libraries
14223 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14225 # Run-time system search path for libraries
14226 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14228 # Fix the shell variable \$srcfile for the compiler.
14229 fix_srcfile_path=$lt_fix_srcfile_path
14231 # Set to yes if exported symbols are required.
14232 always_export_symbols=$always_export_symbols_CXX
14234 # The commands to list exported symbols.
14235 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14237 # The commands to extract the exported symbol list from a shared archive.
14238 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14240 # Symbols that should not be listed in the preloaded symbols.
14241 exclude_expsyms=$lt_exclude_expsyms_CXX
14243 # Symbols that must always be exported.
14244 include_expsyms=$lt_include_expsyms_CXX
14246 # ### END LIBTOOL TAG CONFIG: $tagname
14248 __EOF__
14251 else
14252   # If there is no Makefile yet, we rely on a make rule to execute
14253   # `config.status --recheck' to rerun these tests and create the
14254   # libtool script then.
14255   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14256   if test -f "$ltmain_in"; then
14257     test -f Makefile && make "$ltmain"
14258   fi
14262 ac_ext=c
14263 ac_cpp='$CPP $CPPFLAGS'
14264 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14265 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14266 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14268 CC=$lt_save_CC
14269 LDCXX=$LD
14270 LD=$lt_save_LD
14271 GCC=$lt_save_GCC
14272 with_gnu_ldcxx=$with_gnu_ld
14273 with_gnu_ld=$lt_save_with_gnu_ld
14274 lt_cv_path_LDCXX=$lt_cv_path_LD
14275 lt_cv_path_LD=$lt_save_path_LD
14276 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14277 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14279         else
14280           tagname=""
14281         fi
14282         ;;
14284       F77)
14285         if test -n "$F77" && test "X$F77" != "Xno"; then
14287 ac_ext=f
14288 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14289 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14290 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14293 archive_cmds_need_lc_F77=no
14294 allow_undefined_flag_F77=
14295 always_export_symbols_F77=no
14296 archive_expsym_cmds_F77=
14297 export_dynamic_flag_spec_F77=
14298 hardcode_direct_F77=no
14299 hardcode_libdir_flag_spec_F77=
14300 hardcode_libdir_flag_spec_ld_F77=
14301 hardcode_libdir_separator_F77=
14302 hardcode_minus_L_F77=no
14303 hardcode_automatic_F77=no
14304 module_cmds_F77=
14305 module_expsym_cmds_F77=
14306 link_all_deplibs_F77=unknown
14307 old_archive_cmds_F77=$old_archive_cmds
14308 no_undefined_flag_F77=
14309 whole_archive_flag_spec_F77=
14310 enable_shared_with_static_runtimes_F77=no
14312 # Source file extension for f77 test sources.
14313 ac_ext=f
14315 # Object file extension for compiled f77 test sources.
14316 objext=o
14317 objext_F77=$objext
14319 # Code to be used in simple compile tests
14320 lt_simple_compile_test_code="\
14321       subroutine t
14322       return
14323       end
14326 # Code to be used in simple link tests
14327 lt_simple_link_test_code="\
14328       program t
14329       end
14332 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14334 # If no C compiler was specified, use CC.
14335 LTCC=${LTCC-"$CC"}
14337 # If no C compiler flags were specified, use CFLAGS.
14338 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14340 # Allow CC to be a program name with arguments.
14341 compiler=$CC
14344 # save warnings/boilerplate of simple test code
14345 ac_outfile=conftest.$ac_objext
14346 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14347 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14348 _lt_compiler_boilerplate=`cat conftest.err`
14349 $rm conftest*
14351 ac_outfile=conftest.$ac_objext
14352 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14353 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14354 _lt_linker_boilerplate=`cat conftest.err`
14355 $rm -r conftest*
14358 # Allow CC to be a program name with arguments.
14359 lt_save_CC="$CC"
14360 CC=${F77-"f77"}
14361 compiler=$CC
14362 compiler_F77=$CC
14363 for cc_temp in $compiler""; do
14364   case $cc_temp in
14365     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14366     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14367     \-*) ;;
14368     *) break;;
14369   esac
14370 done
14371 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14374 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14375 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14376 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14377 echo "${ECHO_T}$can_build_shared" >&6; }
14379 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14380 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14381 test "$can_build_shared" = "no" && enable_shared=no
14383 # On AIX, shared libraries and static libraries use the same namespace, and
14384 # are all built from PIC.
14385 case $host_os in
14386 aix3*)
14387   test "$enable_shared" = yes && enable_static=no
14388   if test -n "$RANLIB"; then
14389     archive_cmds="$archive_cmds~\$RANLIB \$lib"
14390     postinstall_cmds='$RANLIB $lib'
14391   fi
14392   ;;
14393 aix[4-9]*)
14394   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14395     test "$enable_shared" = yes && enable_static=no
14396   fi
14397   ;;
14398 esac
14399 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14400 echo "${ECHO_T}$enable_shared" >&6; }
14402 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14403 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14404 # Make sure either enable_shared or enable_static is yes.
14405 test "$enable_shared" = yes || enable_static=yes
14406 { echo "$as_me:$LINENO: result: $enable_static" >&5
14407 echo "${ECHO_T}$enable_static" >&6; }
14409 GCC_F77="$G77"
14410 LD_F77="$LD"
14412 lt_prog_compiler_wl_F77=
14413 lt_prog_compiler_pic_F77=
14414 lt_prog_compiler_static_F77=
14416 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14417 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14419   if test "$GCC" = yes; then
14420     lt_prog_compiler_wl_F77='-Wl,'
14421     lt_prog_compiler_static_F77='-static'
14423     case $host_os in
14424       aix*)
14425       # All AIX code is PIC.
14426       if test "$host_cpu" = ia64; then
14427         # AIX 5 now supports IA64 processor
14428         lt_prog_compiler_static_F77='-Bstatic'
14429       fi
14430       ;;
14432     amigaos*)
14433       # FIXME: we need at least 68020 code to build shared libraries, but
14434       # adding the `-m68020' flag to GCC prevents building anything better,
14435       # like `-m68040'.
14436       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14437       ;;
14439     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14440       # PIC is the default for these OSes.
14441       ;;
14443     mingw* | cygwin* | pw32* | os2*)
14444       # This hack is so that the source file can tell whether it is being
14445       # built for inclusion in a dll (and should export symbols for example).
14446       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14447       # (--disable-auto-import) libraries
14448       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14449       ;;
14451     darwin* | rhapsody*)
14452       # PIC is the default on this platform
14453       # Common symbols not allowed in MH_DYLIB files
14454       lt_prog_compiler_pic_F77='-fno-common'
14455       ;;
14457     interix[3-9]*)
14458       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14459       # Instead, we relocate shared libraries at runtime.
14460       ;;
14462     msdosdjgpp*)
14463       # Just because we use GCC doesn't mean we suddenly get shared libraries
14464       # on systems that don't support them.
14465       lt_prog_compiler_can_build_shared_F77=no
14466       enable_shared=no
14467       ;;
14469     sysv4*MP*)
14470       if test -d /usr/nec; then
14471         lt_prog_compiler_pic_F77=-Kconform_pic
14472       fi
14473       ;;
14475     hpux*)
14476       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14477       # not for PA HP-UX.
14478       case $host_cpu in
14479       hppa*64*|ia64*)
14480         # +Z the default
14481         ;;
14482       *)
14483         lt_prog_compiler_pic_F77='-fPIC'
14484         ;;
14485       esac
14486       ;;
14488     *)
14489       lt_prog_compiler_pic_F77='-fPIC'
14490       ;;
14491     esac
14492   else
14493     # PORTME Check for flag to pass linker flags through the system compiler.
14494     case $host_os in
14495     aix*)
14496       lt_prog_compiler_wl_F77='-Wl,'
14497       if test "$host_cpu" = ia64; then
14498         # AIX 5 now supports IA64 processor
14499         lt_prog_compiler_static_F77='-Bstatic'
14500       else
14501         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14502       fi
14503       ;;
14504       darwin*)
14505         # PIC is the default on this platform
14506         # Common symbols not allowed in MH_DYLIB files
14507        case $cc_basename in
14508          xlc*)
14509          lt_prog_compiler_pic_F77='-qnocommon'
14510          lt_prog_compiler_wl_F77='-Wl,'
14511          ;;
14512        esac
14513        ;;
14515     mingw* | cygwin* | pw32* | os2*)
14516       # This hack is so that the source file can tell whether it is being
14517       # built for inclusion in a dll (and should export symbols for example).
14518       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14519       ;;
14521     hpux9* | hpux10* | hpux11*)
14522       lt_prog_compiler_wl_F77='-Wl,'
14523       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14524       # not for PA HP-UX.
14525       case $host_cpu in
14526       hppa*64*|ia64*)
14527         # +Z the default
14528         ;;
14529       *)
14530         lt_prog_compiler_pic_F77='+Z'
14531         ;;
14532       esac
14533       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14534       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14535       ;;
14537     irix5* | irix6* | nonstopux*)
14538       lt_prog_compiler_wl_F77='-Wl,'
14539       # PIC (with -KPIC) is the default.
14540       lt_prog_compiler_static_F77='-non_shared'
14541       ;;
14543     newsos6)
14544       lt_prog_compiler_pic_F77='-KPIC'
14545       lt_prog_compiler_static_F77='-Bstatic'
14546       ;;
14548     linux* | k*bsd*-gnu)
14549       case $cc_basename in
14550       icc* | ecc*)
14551         lt_prog_compiler_wl_F77='-Wl,'
14552         lt_prog_compiler_pic_F77='-KPIC'
14553         lt_prog_compiler_static_F77='-static'
14554         ;;
14555       pgcc* | pgf77* | pgf90* | pgf95*)
14556         # Portland Group compilers (*not* the Pentium gcc compiler,
14557         # which looks to be a dead project)
14558         lt_prog_compiler_wl_F77='-Wl,'
14559         lt_prog_compiler_pic_F77='-fpic'
14560         lt_prog_compiler_static_F77='-Bstatic'
14561         ;;
14562       ccc*)
14563         lt_prog_compiler_wl_F77='-Wl,'
14564         # All Alpha code is PIC.
14565         lt_prog_compiler_static_F77='-non_shared'
14566         ;;
14567       *)
14568         case `$CC -V 2>&1 | sed 5q` in
14569         *Sun\ C*)
14570           # Sun C 5.9
14571           lt_prog_compiler_pic_F77='-KPIC'
14572           lt_prog_compiler_static_F77='-Bstatic'
14573           lt_prog_compiler_wl_F77='-Wl,'
14574           ;;
14575         *Sun\ F*)
14576           # Sun Fortran 8.3 passes all unrecognized flags to the linker
14577           lt_prog_compiler_pic_F77='-KPIC'
14578           lt_prog_compiler_static_F77='-Bstatic'
14579           lt_prog_compiler_wl_F77=''
14580           ;;
14581         esac
14582         ;;
14583       esac
14584       ;;
14586     osf3* | osf4* | osf5*)
14587       lt_prog_compiler_wl_F77='-Wl,'
14588       # All OSF/1 code is PIC.
14589       lt_prog_compiler_static_F77='-non_shared'
14590       ;;
14592     rdos*)
14593       lt_prog_compiler_static_F77='-non_shared'
14594       ;;
14596     solaris*)
14597       lt_prog_compiler_pic_F77='-KPIC'
14598       lt_prog_compiler_static_F77='-Bstatic'
14599       case $cc_basename in
14600       f77* | f90* | f95*)
14601         lt_prog_compiler_wl_F77='-Qoption ld ';;
14602       *)
14603         lt_prog_compiler_wl_F77='-Wl,';;
14604       esac
14605       ;;
14607     sunos4*)
14608       lt_prog_compiler_wl_F77='-Qoption ld '
14609       lt_prog_compiler_pic_F77='-PIC'
14610       lt_prog_compiler_static_F77='-Bstatic'
14611       ;;
14613     sysv4 | sysv4.2uw2* | sysv4.3*)
14614       lt_prog_compiler_wl_F77='-Wl,'
14615       lt_prog_compiler_pic_F77='-KPIC'
14616       lt_prog_compiler_static_F77='-Bstatic'
14617       ;;
14619     sysv4*MP*)
14620       if test -d /usr/nec ;then
14621         lt_prog_compiler_pic_F77='-Kconform_pic'
14622         lt_prog_compiler_static_F77='-Bstatic'
14623       fi
14624       ;;
14626     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14627       lt_prog_compiler_wl_F77='-Wl,'
14628       lt_prog_compiler_pic_F77='-KPIC'
14629       lt_prog_compiler_static_F77='-Bstatic'
14630       ;;
14632     unicos*)
14633       lt_prog_compiler_wl_F77='-Wl,'
14634       lt_prog_compiler_can_build_shared_F77=no
14635       ;;
14637     uts4*)
14638       lt_prog_compiler_pic_F77='-pic'
14639       lt_prog_compiler_static_F77='-Bstatic'
14640       ;;
14642     *)
14643       lt_prog_compiler_can_build_shared_F77=no
14644       ;;
14645     esac
14646   fi
14648 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14649 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14652 # Check to make sure the PIC flag actually works.
14654 if test -n "$lt_prog_compiler_pic_F77"; then
14656 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14657 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14658 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14659   echo $ECHO_N "(cached) $ECHO_C" >&6
14660 else
14661   lt_cv_prog_compiler_pic_works_F77=no
14662   ac_outfile=conftest.$ac_objext
14663    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14664    lt_compiler_flag="$lt_prog_compiler_pic_F77"
14665    # Insert the option either (1) after the last *FLAGS variable, or
14666    # (2) before a word containing "conftest.", or (3) at the end.
14667    # Note that $ac_compile itself does not contain backslashes and begins
14668    # with a dollar sign (not a hyphen), so the echo should work correctly.
14669    # The option is referenced via a variable to avoid confusing sed.
14670    lt_compile=`echo "$ac_compile" | $SED \
14671    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14672    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14673    -e 's:$: $lt_compiler_flag:'`
14674    (eval echo "\"\$as_me:14674: $lt_compile\"" >&5)
14675    (eval "$lt_compile" 2>conftest.err)
14676    ac_status=$?
14677    cat conftest.err >&5
14678    echo "$as_me:14678: \$? = $ac_status" >&5
14679    if (exit $ac_status) && test -s "$ac_outfile"; then
14680      # The compiler can only warn and ignore the option if not recognized
14681      # So say no if there are warnings other than the usual output.
14682      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14683      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14684      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14685        lt_cv_prog_compiler_pic_works_F77=yes
14686      fi
14687    fi
14688    $rm conftest*
14691 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14692 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
14694 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14695     case $lt_prog_compiler_pic_F77 in
14696      "" | " "*) ;;
14697      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14698      esac
14699 else
14700     lt_prog_compiler_pic_F77=
14701      lt_prog_compiler_can_build_shared_F77=no
14705 case $host_os in
14706   # For platforms which do not support PIC, -DPIC is meaningless:
14707   *djgpp*)
14708     lt_prog_compiler_pic_F77=
14709     ;;
14710   *)
14711     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14712     ;;
14713 esac
14716 # Check to make sure the static flag actually works.
14718 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14719 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14720 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14721 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14722   echo $ECHO_N "(cached) $ECHO_C" >&6
14723 else
14724   lt_cv_prog_compiler_static_works_F77=no
14725    save_LDFLAGS="$LDFLAGS"
14726    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14727    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14728    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14729      # The linker can only warn and ignore the option if not recognized
14730      # So say no if there are warnings
14731      if test -s conftest.err; then
14732        # Append any errors to the config.log.
14733        cat conftest.err 1>&5
14734        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14735        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14736        if diff conftest.exp conftest.er2 >/dev/null; then
14737          lt_cv_prog_compiler_static_works_F77=yes
14738        fi
14739      else
14740        lt_cv_prog_compiler_static_works_F77=yes
14741      fi
14742    fi
14743    $rm -r conftest*
14744    LDFLAGS="$save_LDFLAGS"
14747 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14748 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
14750 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14751     :
14752 else
14753     lt_prog_compiler_static_F77=
14757 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14758 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14759 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14760   echo $ECHO_N "(cached) $ECHO_C" >&6
14761 else
14762   lt_cv_prog_compiler_c_o_F77=no
14763    $rm -r conftest 2>/dev/null
14764    mkdir conftest
14765    cd conftest
14766    mkdir out
14767    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14769    lt_compiler_flag="-o out/conftest2.$ac_objext"
14770    # Insert the option either (1) after the last *FLAGS variable, or
14771    # (2) before a word containing "conftest.", or (3) at the end.
14772    # Note that $ac_compile itself does not contain backslashes and begins
14773    # with a dollar sign (not a hyphen), so the echo should work correctly.
14774    lt_compile=`echo "$ac_compile" | $SED \
14775    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14776    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14777    -e 's:$: $lt_compiler_flag:'`
14778    (eval echo "\"\$as_me:14778: $lt_compile\"" >&5)
14779    (eval "$lt_compile" 2>out/conftest.err)
14780    ac_status=$?
14781    cat out/conftest.err >&5
14782    echo "$as_me:14782: \$? = $ac_status" >&5
14783    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14784    then
14785      # The compiler can only warn and ignore the option if not recognized
14786      # So say no if there are warnings
14787      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14788      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14789      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14790        lt_cv_prog_compiler_c_o_F77=yes
14791      fi
14792    fi
14793    chmod u+w . 2>&5
14794    $rm conftest*
14795    # SGI C++ compiler will create directory out/ii_files/ for
14796    # template instantiation
14797    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14798    $rm out/* && rmdir out
14799    cd ..
14800    rmdir conftest
14801    $rm conftest*
14804 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14805 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14808 hard_links="nottested"
14809 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14810   # do not overwrite the value of need_locks provided by the user
14811   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14812 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14813   hard_links=yes
14814   $rm conftest*
14815   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14816   touch conftest.a
14817   ln conftest.a conftest.b 2>&5 || hard_links=no
14818   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14819   { echo "$as_me:$LINENO: result: $hard_links" >&5
14820 echo "${ECHO_T}$hard_links" >&6; }
14821   if test "$hard_links" = no; then
14822     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14823 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14824     need_locks=warn
14825   fi
14826 else
14827   need_locks=no
14830 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14831 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14833   runpath_var=
14834   allow_undefined_flag_F77=
14835   enable_shared_with_static_runtimes_F77=no
14836   archive_cmds_F77=
14837   archive_expsym_cmds_F77=
14838   old_archive_From_new_cmds_F77=
14839   old_archive_from_expsyms_cmds_F77=
14840   export_dynamic_flag_spec_F77=
14841   whole_archive_flag_spec_F77=
14842   thread_safe_flag_spec_F77=
14843   hardcode_libdir_flag_spec_F77=
14844   hardcode_libdir_flag_spec_ld_F77=
14845   hardcode_libdir_separator_F77=
14846   hardcode_direct_F77=no
14847   hardcode_minus_L_F77=no
14848   hardcode_shlibpath_var_F77=unsupported
14849   link_all_deplibs_F77=unknown
14850   hardcode_automatic_F77=no
14851   module_cmds_F77=
14852   module_expsym_cmds_F77=
14853   always_export_symbols_F77=no
14854   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14855   # include_expsyms should be a list of space-separated symbols to be *always*
14856   # included in the symbol list
14857   include_expsyms_F77=
14858   # exclude_expsyms can be an extended regexp of symbols to exclude
14859   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14860   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14861   # as well as any symbol that contains `d'.
14862   exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14863   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14864   # platforms (ab)use it in PIC code, but their linkers get confused if
14865   # the symbol is explicitly referenced.  Since portable code cannot
14866   # rely on this symbol name, it's probably fine to never include it in
14867   # preloaded symbol tables.
14868   # Exclude shared library initialization/finalization symbols.
14869   extract_expsyms_cmds=
14870   # Just being paranoid about ensuring that cc_basename is set.
14871   for cc_temp in $compiler""; do
14872   case $cc_temp in
14873     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14874     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14875     \-*) ;;
14876     *) break;;
14877   esac
14878 done
14879 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14881   case $host_os in
14882   cygwin* | mingw* | pw32*)
14883     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14884     # When not using gcc, we currently assume that we are using
14885     # Microsoft Visual C++.
14886     if test "$GCC" != yes; then
14887       with_gnu_ld=no
14888     fi
14889     ;;
14890   interix*)
14891     # we just hope/assume this is gcc and not c89 (= MSVC++)
14892     with_gnu_ld=yes
14893     ;;
14894   openbsd*)
14895     with_gnu_ld=no
14896     ;;
14897   esac
14899   ld_shlibs_F77=yes
14900   if test "$with_gnu_ld" = yes; then
14901     # If archive_cmds runs LD, not CC, wlarc should be empty
14902     wlarc='${wl}'
14904     # Set some defaults for GNU ld with shared library support. These
14905     # are reset later if shared libraries are not supported. Putting them
14906     # here allows them to be overridden if necessary.
14907     runpath_var=LD_RUN_PATH
14908     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14909     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14910     # ancient GNU ld didn't support --whole-archive et. al.
14911     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14912         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14913       else
14914         whole_archive_flag_spec_F77=
14915     fi
14916     supports_anon_versioning=no
14917     case `$LD -v 2>/dev/null` in
14918       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14919       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14920       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14921       *\ 2.11.*) ;; # other 2.11 versions
14922       *) supports_anon_versioning=yes ;;
14923     esac
14925     # See if GNU ld supports shared libraries.
14926     case $host_os in
14927     aix[3-9]*)
14928       # On AIX/PPC, the GNU linker is very broken
14929       if test "$host_cpu" != ia64; then
14930         ld_shlibs_F77=no
14931         cat <<EOF 1>&2
14933 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14934 *** to be unable to reliably create shared libraries on AIX.
14935 *** Therefore, libtool is disabling shared libraries support.  If you
14936 *** really care for shared libraries, you may want to modify your PATH
14937 *** so that a non-GNU linker is found, and then restart.
14939 EOF
14940       fi
14941       ;;
14943     amigaos*)
14944       archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
14945       hardcode_libdir_flag_spec_F77='-L$libdir'
14946       hardcode_minus_L_F77=yes
14948       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14949       # that the semantics of dynamic libraries on AmigaOS, at least up
14950       # to version 4, is to share data among multiple programs linked
14951       # with the same dynamic library.  Since this doesn't match the
14952       # behavior of shared libraries on other platforms, we can't use
14953       # them.
14954       ld_shlibs_F77=no
14955       ;;
14957     beos*)
14958       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14959         allow_undefined_flag_F77=unsupported
14960         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14961         # support --undefined.  This deserves some investigation.  FIXME
14962         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14963       else
14964         ld_shlibs_F77=no
14965       fi
14966       ;;
14968     cygwin* | mingw* | pw32*)
14969       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14970       # as there is no search path for DLLs.
14971       hardcode_libdir_flag_spec_F77='-L$libdir'
14972       allow_undefined_flag_F77=unsupported
14973       always_export_symbols_F77=no
14974       enable_shared_with_static_runtimes_F77=yes
14975       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14977       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14978         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14979         # If the export-symbols file already is a .def file (1st line
14980         # is EXPORTS), use it as is; otherwise, prepend...
14981         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14982           cp $export_symbols $output_objdir/$soname.def;
14983         else
14984           echo EXPORTS > $output_objdir/$soname.def;
14985           cat $export_symbols >> $output_objdir/$soname.def;
14986         fi~
14987         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14988       else
14989         ld_shlibs_F77=no
14990       fi
14991       ;;
14993     interix[3-9]*)
14994       hardcode_direct_F77=no
14995       hardcode_shlibpath_var_F77=no
14996       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14997       export_dynamic_flag_spec_F77='${wl}-E'
14998       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14999       # Instead, shared libraries are loaded at an image base (0x10000000 by
15000       # default) and relocated if they conflict, which is a slow very memory
15001       # consuming and fragmenting process.  To avoid this, we pick a random,
15002       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15003       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15004       archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15005       archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15006       ;;
15008     gnu* | linux* | k*bsd*-gnu)
15009       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15010         tmp_addflag=
15011         case $cc_basename,$host_cpu in
15012         pgcc*)                          # Portland Group C compiler
15013           whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
15014           tmp_addflag=' $pic_flag'
15015           ;;
15016         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
15017           whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
15018           tmp_addflag=' $pic_flag -Mnomain' ;;
15019         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
15020           tmp_addflag=' -i_dynamic' ;;
15021         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
15022           tmp_addflag=' -i_dynamic -nofor_main' ;;
15023         ifc* | ifort*)                  # Intel Fortran compiler
15024           tmp_addflag=' -nofor_main' ;;
15025         esac
15026         case `$CC -V 2>&1 | sed 5q` in
15027         *Sun\ C*)                       # Sun C 5.9
15028           whole_archive_flag_spec_F77='${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'
15029           tmp_sharedflag='-G' ;;
15030         *Sun\ F*)                       # Sun Fortran 8.3
15031           tmp_sharedflag='-G' ;;
15032         *)
15033           tmp_sharedflag='-shared' ;;
15034         esac
15035         archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15037         if test $supports_anon_versioning = yes; then
15038           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15039   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15040   $echo "local: *; };" >> $output_objdir/$libname.ver~
15041           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15042         fi
15043         link_all_deplibs_F77=no
15044       else
15045         ld_shlibs_F77=no
15046       fi
15047       ;;
15049     netbsd* | netbsdelf*-gnu)
15050       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15051         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15052         wlarc=
15053       else
15054         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15055         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15056       fi
15057       ;;
15059     solaris*)
15060       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15061         ld_shlibs_F77=no
15062         cat <<EOF 1>&2
15064 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15065 *** create shared libraries on Solaris systems.  Therefore, libtool
15066 *** is disabling shared libraries support.  We urge you to upgrade GNU
15067 *** binutils to release 2.9.1 or newer.  Another option is to modify
15068 *** your PATH or compiler configuration so that the native linker is
15069 *** used, and then restart.
15071 EOF
15072       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15073         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15074         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15075       else
15076         ld_shlibs_F77=no
15077       fi
15078       ;;
15080     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15081       case `$LD -v 2>&1` in
15082         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15083         ld_shlibs_F77=no
15084         cat <<_LT_EOF 1>&2
15086 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15087 *** reliably create shared libraries on SCO systems.  Therefore, libtool
15088 *** is disabling shared libraries support.  We urge you to upgrade GNU
15089 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15090 *** your PATH or compiler configuration so that the native linker is
15091 *** used, and then restart.
15093 _LT_EOF
15094         ;;
15095         *)
15096           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15097             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15098             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15099             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15100           else
15101             ld_shlibs_F77=no
15102           fi
15103         ;;
15104       esac
15105       ;;
15107     sunos4*)
15108       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15109       wlarc=
15110       hardcode_direct_F77=yes
15111       hardcode_shlibpath_var_F77=no
15112       ;;
15114     *)
15115       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15116         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15117         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15118       else
15119         ld_shlibs_F77=no
15120       fi
15121       ;;
15122     esac
15124     if test "$ld_shlibs_F77" = no; then
15125       runpath_var=
15126       hardcode_libdir_flag_spec_F77=
15127       export_dynamic_flag_spec_F77=
15128       whole_archive_flag_spec_F77=
15129     fi
15130   else
15131     # PORTME fill in a description of your system's linker (not GNU ld)
15132     case $host_os in
15133     aix3*)
15134       allow_undefined_flag_F77=unsupported
15135       always_export_symbols_F77=yes
15136       archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
15137       # Note: this linker hardcodes the directories in LIBPATH if there
15138       # are no directories specified by -L.
15139       hardcode_minus_L_F77=yes
15140       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15141         # Neither direct hardcoding nor static linking is supported with a
15142         # broken collect2.
15143         hardcode_direct_F77=unsupported
15144       fi
15145       ;;
15147     aix[4-9]*)
15148       if test "$host_cpu" = ia64; then
15149         # On IA64, the linker does run time linking by default, so we don't
15150         # have to do anything special.
15151         aix_use_runtimelinking=no
15152         exp_sym_flag='-Bexport'
15153         no_entry_flag=""
15154       else
15155         # If we're using GNU nm, then we don't want the "-C" option.
15156         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15157         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15158           export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15159         else
15160           export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15161         fi
15162         aix_use_runtimelinking=no
15164         # Test if we are trying to use run time linking or normal
15165         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15166         # need to do runtime linking.
15167         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15168           for ld_flag in $LDFLAGS; do
15169           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15170             aix_use_runtimelinking=yes
15171             break
15172           fi
15173           done
15174           ;;
15175         esac
15177         exp_sym_flag='-bexport'
15178         no_entry_flag='-bnoentry'
15179       fi
15181       # When large executables or shared objects are built, AIX ld can
15182       # have problems creating the table of contents.  If linking a library
15183       # or program results in "error TOC overflow" add -mminimal-toc to
15184       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15185       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15187       archive_cmds_F77=''
15188       hardcode_direct_F77=yes
15189       hardcode_libdir_separator_F77=':'
15190       link_all_deplibs_F77=yes
15192       if test "$GCC" = yes; then
15193         case $host_os in aix4.[012]|aix4.[012].*)
15194         # We only want to do this on AIX 4.2 and lower, the check
15195         # below for broken collect2 doesn't work under 4.3+
15196           collect2name=`${CC} -print-prog-name=collect2`
15197           if test -f "$collect2name" && \
15198            strings "$collect2name" | grep resolve_lib_name >/dev/null
15199           then
15200           # We have reworked collect2
15201           :
15202           else
15203           # We have old collect2
15204           hardcode_direct_F77=unsupported
15205           # It fails to find uninstalled libraries when the uninstalled
15206           # path is not listed in the libpath.  Setting hardcode_minus_L
15207           # to unsupported forces relinking
15208           hardcode_minus_L_F77=yes
15209           hardcode_libdir_flag_spec_F77='-L$libdir'
15210           hardcode_libdir_separator_F77=
15211           fi
15212           ;;
15213         esac
15214         shared_flag='-shared'
15215         if test "$aix_use_runtimelinking" = yes; then
15216           shared_flag="$shared_flag "'${wl}-G'
15217         fi
15218       else
15219         # not using gcc
15220         if test "$host_cpu" = ia64; then
15221         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15222         # chokes on -Wl,-G. The following line is correct:
15223           shared_flag='-G'
15224         else
15225           if test "$aix_use_runtimelinking" = yes; then
15226             shared_flag='${wl}-G'
15227           else
15228             shared_flag='${wl}-bM:SRE'
15229           fi
15230         fi
15231       fi
15233       # It seems that -bexpall does not export symbols beginning with
15234       # underscore (_), so it is better to generate a list of symbols to export.
15235       always_export_symbols_F77=yes
15236       if test "$aix_use_runtimelinking" = yes; then
15237         # Warning - without using the other runtime loading flags (-brtl),
15238         # -berok will link without error, but may produce a broken library.
15239         allow_undefined_flag_F77='-berok'
15240        # Determine the default libpath from the value encoded in an empty executable.
15241        cat >conftest.$ac_ext <<_ACEOF
15242       program main
15244       end
15245 _ACEOF
15246 rm -f conftest.$ac_objext conftest$ac_exeext
15247 if { (ac_try="$ac_link"
15248 case "(($ac_try" in
15249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15250   *) ac_try_echo=$ac_try;;
15251 esac
15252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15253   (eval "$ac_link") 2>conftest.er1
15254   ac_status=$?
15255   grep -v '^ *+' conftest.er1 >conftest.err
15256   rm -f conftest.er1
15257   cat conftest.err >&5
15258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15259   (exit $ac_status); } && {
15260          test -z "$ac_f77_werror_flag" ||
15261          test ! -s conftest.err
15262        } && test -s conftest$ac_exeext &&
15263        $as_test_x conftest$ac_exeext; then
15265 lt_aix_libpath_sed='
15266     /Import File Strings/,/^$/ {
15267         /^0/ {
15268             s/^0  *\(.*\)$/\1/
15269             p
15270         }
15271     }'
15272 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15273 # Check for a 64-bit object if we didn't find anything.
15274 if test -z "$aix_libpath"; then
15275   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15277 else
15278   echo "$as_me: failed program was:" >&5
15279 sed 's/^/| /' conftest.$ac_ext >&5
15284 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15285       conftest$ac_exeext conftest.$ac_ext
15286 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15288        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15289         archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15290        else
15291         if test "$host_cpu" = ia64; then
15292           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15293           allow_undefined_flag_F77="-z nodefs"
15294           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
15295         else
15296          # Determine the default libpath from the value encoded in an empty executable.
15297          cat >conftest.$ac_ext <<_ACEOF
15298       program main
15300       end
15301 _ACEOF
15302 rm -f conftest.$ac_objext conftest$ac_exeext
15303 if { (ac_try="$ac_link"
15304 case "(($ac_try" in
15305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15306   *) ac_try_echo=$ac_try;;
15307 esac
15308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15309   (eval "$ac_link") 2>conftest.er1
15310   ac_status=$?
15311   grep -v '^ *+' conftest.er1 >conftest.err
15312   rm -f conftest.er1
15313   cat conftest.err >&5
15314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15315   (exit $ac_status); } && {
15316          test -z "$ac_f77_werror_flag" ||
15317          test ! -s conftest.err
15318        } && test -s conftest$ac_exeext &&
15319        $as_test_x conftest$ac_exeext; then
15321 lt_aix_libpath_sed='
15322     /Import File Strings/,/^$/ {
15323         /^0/ {
15324             s/^0  *\(.*\)$/\1/
15325             p
15326         }
15327     }'
15328 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15329 # Check for a 64-bit object if we didn't find anything.
15330 if test -z "$aix_libpath"; then
15331   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15333 else
15334   echo "$as_me: failed program was:" >&5
15335 sed 's/^/| /' conftest.$ac_ext >&5
15340 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15341       conftest$ac_exeext conftest.$ac_ext
15342 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15344          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15345           # Warning - without using the other run time loading flags,
15346           # -berok will link without error, but may produce a broken library.
15347           no_undefined_flag_F77=' ${wl}-bernotok'
15348           allow_undefined_flag_F77=' ${wl}-berok'
15349           # Exported symbols can be pulled into shared objects from archives
15350           whole_archive_flag_spec_F77='$convenience'
15351           archive_cmds_need_lc_F77=yes
15352           # This is similar to how AIX traditionally builds its shared libraries.
15353           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15354         fi
15355       fi
15356       ;;
15358     amigaos*)
15359       archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
15360       hardcode_libdir_flag_spec_F77='-L$libdir'
15361       hardcode_minus_L_F77=yes
15362       # see comment about different semantics on the GNU ld section
15363       ld_shlibs_F77=no
15364       ;;
15366     bsdi[45]*)
15367       export_dynamic_flag_spec_F77=-rdynamic
15368       ;;
15370     cygwin* | mingw* | pw32*)
15371       # When not using gcc, we currently assume that we are using
15372       # Microsoft Visual C++.
15373       # hardcode_libdir_flag_spec is actually meaningless, as there is
15374       # no search path for DLLs.
15375       hardcode_libdir_flag_spec_F77=' '
15376       allow_undefined_flag_F77=unsupported
15377       # Tell ltmain to make .lib files, not .a files.
15378       libext=lib
15379       # Tell ltmain to make .dll files, not .so files.
15380       shrext_cmds=".dll"
15381       # FIXME: Setting linknames here is a bad hack.
15382       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15383       # The linker will automatically build a .lib file if we build a DLL.
15384       old_archive_From_new_cmds_F77='true'
15385       # FIXME: Should let the user specify the lib program.
15386       old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15387       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15388       enable_shared_with_static_runtimes_F77=yes
15389       ;;
15391     darwin* | rhapsody*)
15392       case $host_os in
15393         rhapsody* | darwin1.[012])
15394          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15395          ;;
15396        *) # Darwin 1.3 on
15397          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15398            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15399          else
15400            case ${MACOSX_DEPLOYMENT_TARGET} in
15401              10.[012])
15402                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15403                ;;
15404              10.*)
15405                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15406                ;;
15407            esac
15408          fi
15409          ;;
15410       esac
15411       archive_cmds_need_lc_F77=no
15412       hardcode_direct_F77=no
15413       hardcode_automatic_F77=yes
15414       hardcode_shlibpath_var_F77=unsupported
15415       whole_archive_flag_spec_F77=''
15416       link_all_deplibs_F77=yes
15417     if test "$GCC" = yes ; then
15418         output_verbose_link_cmd='echo'
15419         archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15420         module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15421         archive_expsym_cmds_F77="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}"
15422         module_expsym_cmds_F77="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}"
15423     else
15424       case $cc_basename in
15425         xlc*)
15426          output_verbose_link_cmd='echo'
15427          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15428          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15429           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15430          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15431           module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15432           ;;
15433        *)
15434          ld_shlibs_F77=no
15435           ;;
15436       esac
15437     fi
15438       ;;
15440     dgux*)
15441       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15442       hardcode_libdir_flag_spec_F77='-L$libdir'
15443       hardcode_shlibpath_var_F77=no
15444       ;;
15446     freebsd1*)
15447       ld_shlibs_F77=no
15448       ;;
15450     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15451     # support.  Future versions do this automatically, but an explicit c++rt0.o
15452     # does not break anything, and helps significantly (at the cost of a little
15453     # extra space).
15454     freebsd2.2*)
15455       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15456       hardcode_libdir_flag_spec_F77='-R$libdir'
15457       hardcode_direct_F77=yes
15458       hardcode_shlibpath_var_F77=no
15459       ;;
15461     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15462     freebsd2*)
15463       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15464       hardcode_direct_F77=yes
15465       hardcode_minus_L_F77=yes
15466       hardcode_shlibpath_var_F77=no
15467       ;;
15469     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15470     freebsd* | dragonfly*)
15471       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15472       hardcode_libdir_flag_spec_F77='-R$libdir'
15473       hardcode_direct_F77=yes
15474       hardcode_shlibpath_var_F77=no
15475       ;;
15477     hpux9*)
15478       if test "$GCC" = yes; then
15479         archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15480       else
15481         archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15482       fi
15483       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15484       hardcode_libdir_separator_F77=:
15485       hardcode_direct_F77=yes
15487       # hardcode_minus_L: Not really in the search PATH,
15488       # but as the default location of the library.
15489       hardcode_minus_L_F77=yes
15490       export_dynamic_flag_spec_F77='${wl}-E'
15491       ;;
15493     hpux10*)
15494       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15495         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15496       else
15497         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15498       fi
15499       if test "$with_gnu_ld" = no; then
15500         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15501         hardcode_libdir_separator_F77=:
15503         hardcode_direct_F77=yes
15504         export_dynamic_flag_spec_F77='${wl}-E'
15506         # hardcode_minus_L: Not really in the search PATH,
15507         # but as the default location of the library.
15508         hardcode_minus_L_F77=yes
15509       fi
15510       ;;
15512     hpux11*)
15513       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15514         case $host_cpu in
15515         hppa*64*)
15516           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15517           ;;
15518         ia64*)
15519           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15520           ;;
15521         *)
15522           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15523           ;;
15524         esac
15525       else
15526         case $host_cpu in
15527         hppa*64*)
15528           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15529           ;;
15530         ia64*)
15531           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15532           ;;
15533         *)
15534           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15535           ;;
15536         esac
15537       fi
15538       if test "$with_gnu_ld" = no; then
15539         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15540         hardcode_libdir_separator_F77=:
15542         case $host_cpu in
15543         hppa*64*|ia64*)
15544           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15545           hardcode_direct_F77=no
15546           hardcode_shlibpath_var_F77=no
15547           ;;
15548         *)
15549           hardcode_direct_F77=yes
15550           export_dynamic_flag_spec_F77='${wl}-E'
15552           # hardcode_minus_L: Not really in the search PATH,
15553           # but as the default location of the library.
15554           hardcode_minus_L_F77=yes
15555           ;;
15556         esac
15557       fi
15558       ;;
15560     irix5* | irix6* | nonstopux*)
15561       if test "$GCC" = yes; then
15562         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15563       else
15564         archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15565         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15566       fi
15567       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15568       hardcode_libdir_separator_F77=:
15569       link_all_deplibs_F77=yes
15570       ;;
15572     netbsd* | netbsdelf*-gnu)
15573       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15574         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15575       else
15576         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15577       fi
15578       hardcode_libdir_flag_spec_F77='-R$libdir'
15579       hardcode_direct_F77=yes
15580       hardcode_shlibpath_var_F77=no
15581       ;;
15583     newsos6)
15584       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15585       hardcode_direct_F77=yes
15586       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15587       hardcode_libdir_separator_F77=:
15588       hardcode_shlibpath_var_F77=no
15589       ;;
15591     openbsd*)
15592       if test -f /usr/libexec/ld.so; then
15593         hardcode_direct_F77=yes
15594         hardcode_shlibpath_var_F77=no
15595         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15596           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15597           archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15598           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15599           export_dynamic_flag_spec_F77='${wl}-E'
15600         else
15601           case $host_os in
15602            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15603              archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15604              hardcode_libdir_flag_spec_F77='-R$libdir'
15605              ;;
15606            *)
15607              archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15608              hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15609              ;;
15610           esac
15611         fi
15612       else
15613         ld_shlibs_F77=no
15614       fi
15615       ;;
15617     os2*)
15618       hardcode_libdir_flag_spec_F77='-L$libdir'
15619       hardcode_minus_L_F77=yes
15620       allow_undefined_flag_F77=unsupported
15621       archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
15622       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15623       ;;
15625     osf3*)
15626       if test "$GCC" = yes; then
15627         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15628         archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15629       else
15630         allow_undefined_flag_F77=' -expect_unresolved \*'
15631         archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15632       fi
15633       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15634       hardcode_libdir_separator_F77=:
15635       ;;
15637     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15638       if test "$GCC" = yes; then
15639         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15640         archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15641         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15642       else
15643         allow_undefined_flag_F77=' -expect_unresolved \*'
15644         archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15645         archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15646         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
15648         # Both c and cxx compiler support -rpath directly
15649         hardcode_libdir_flag_spec_F77='-rpath $libdir'
15650       fi
15651       hardcode_libdir_separator_F77=:
15652       ;;
15654     solaris*)
15655       no_undefined_flag_F77=' -z text'
15656       if test "$GCC" = yes; then
15657         wlarc='${wl}'
15658         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15659         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15660           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15661       else
15662         wlarc=''
15663         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15664         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15665         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15666       fi
15667       hardcode_libdir_flag_spec_F77='-R$libdir'
15668       hardcode_shlibpath_var_F77=no
15669       case $host_os in
15670       solaris2.[0-5] | solaris2.[0-5].*) ;;
15671       *)
15672         # The compiler driver will combine and reorder linker options,
15673         # but understands `-z linker_flag'.  GCC discards it without `$wl',
15674         # but is careful enough not to reorder.
15675         # Supported since Solaris 2.6 (maybe 2.5.1?)
15676         if test "$GCC" = yes; then
15677           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15678         else
15679           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15680         fi
15681         ;;
15682       esac
15683       link_all_deplibs_F77=yes
15684       ;;
15686     sunos4*)
15687       if test "x$host_vendor" = xsequent; then
15688         # Use $CC to link under sequent, because it throws in some extra .o
15689         # files that make .init and .fini sections work.
15690         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15691       else
15692         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15693       fi
15694       hardcode_libdir_flag_spec_F77='-L$libdir'
15695       hardcode_direct_F77=yes
15696       hardcode_minus_L_F77=yes
15697       hardcode_shlibpath_var_F77=no
15698       ;;
15700     sysv4)
15701       case $host_vendor in
15702         sni)
15703           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15704           hardcode_direct_F77=yes # is this really true???
15705         ;;
15706         siemens)
15707           ## LD is ld it makes a PLAMLIB
15708           ## CC just makes a GrossModule.
15709           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15710           reload_cmds_F77='$CC -r -o $output$reload_objs'
15711           hardcode_direct_F77=no
15712         ;;
15713         motorola)
15714           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15715           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15716         ;;
15717       esac
15718       runpath_var='LD_RUN_PATH'
15719       hardcode_shlibpath_var_F77=no
15720       ;;
15722     sysv4.3*)
15723       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15724       hardcode_shlibpath_var_F77=no
15725       export_dynamic_flag_spec_F77='-Bexport'
15726       ;;
15728     sysv4*MP*)
15729       if test -d /usr/nec; then
15730         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15731         hardcode_shlibpath_var_F77=no
15732         runpath_var=LD_RUN_PATH
15733         hardcode_runpath_var=yes
15734         ld_shlibs_F77=yes
15735       fi
15736       ;;
15738     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15739       no_undefined_flag_F77='${wl}-z,text'
15740       archive_cmds_need_lc_F77=no
15741       hardcode_shlibpath_var_F77=no
15742       runpath_var='LD_RUN_PATH'
15744       if test "$GCC" = yes; then
15745         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15746         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15747       else
15748         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15749         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15750       fi
15751       ;;
15753     sysv5* | sco3.2v5* | sco5v6*)
15754       # Note: We can NOT use -z defs as we might desire, because we do not
15755       # link with -lc, and that would cause any symbols used from libc to
15756       # always be unresolved, which means just about no library would
15757       # ever link correctly.  If we're not using GNU ld we use -z text
15758       # though, which does catch some bad symbols but isn't as heavy-handed
15759       # as -z defs.
15760       no_undefined_flag_F77='${wl}-z,text'
15761       allow_undefined_flag_F77='${wl}-z,nodefs'
15762       archive_cmds_need_lc_F77=no
15763       hardcode_shlibpath_var_F77=no
15764       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15765       hardcode_libdir_separator_F77=':'
15766       link_all_deplibs_F77=yes
15767       export_dynamic_flag_spec_F77='${wl}-Bexport'
15768       runpath_var='LD_RUN_PATH'
15770       if test "$GCC" = yes; then
15771         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15772         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15773       else
15774         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15775         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15776       fi
15777       ;;
15779     uts4*)
15780       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15781       hardcode_libdir_flag_spec_F77='-L$libdir'
15782       hardcode_shlibpath_var_F77=no
15783       ;;
15785     *)
15786       ld_shlibs_F77=no
15787       ;;
15788     esac
15789   fi
15791 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15792 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15793 test "$ld_shlibs_F77" = no && can_build_shared=no
15796 # Do we need to explicitly link libc?
15798 case "x$archive_cmds_need_lc_F77" in
15799 x|xyes)
15800   # Assume -lc should be added
15801   archive_cmds_need_lc_F77=yes
15803   if test "$enable_shared" = yes && test "$GCC" = yes; then
15804     case $archive_cmds_F77 in
15805     *'~'*)
15806       # FIXME: we may have to deal with multi-command sequences.
15807       ;;
15808     '$CC '*)
15809       # Test whether the compiler implicitly links with -lc since on some
15810       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15811       # to ld, don't add -lc before -lgcc.
15812       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15813 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15814       $rm conftest*
15815       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15817       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15818   (eval $ac_compile) 2>&5
15819   ac_status=$?
15820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15821   (exit $ac_status); } 2>conftest.err; then
15822         soname=conftest
15823         lib=conftest
15824         libobjs=conftest.$ac_objext
15825         deplibs=
15826         wl=$lt_prog_compiler_wl_F77
15827         pic_flag=$lt_prog_compiler_pic_F77
15828         compiler_flags=-v
15829         linker_flags=-v
15830         verstring=
15831         output_objdir=.
15832         libname=conftest
15833         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15834         allow_undefined_flag_F77=
15835         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15836   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15837   ac_status=$?
15838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15839   (exit $ac_status); }
15840         then
15841           archive_cmds_need_lc_F77=no
15842         else
15843           archive_cmds_need_lc_F77=yes
15844         fi
15845         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15846       else
15847         cat conftest.err 1>&5
15848       fi
15849       $rm conftest*
15850       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15851 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15852       ;;
15853     esac
15854   fi
15855   ;;
15856 esac
15858 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15859 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15860 library_names_spec=
15861 libname_spec='lib$name'
15862 soname_spec=
15863 shrext_cmds=".so"
15864 postinstall_cmds=
15865 postuninstall_cmds=
15866 finish_cmds=
15867 finish_eval=
15868 shlibpath_var=
15869 shlibpath_overrides_runpath=unknown
15870 version_type=none
15871 dynamic_linker="$host_os ld.so"
15872 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15874 need_lib_prefix=unknown
15875 hardcode_into_libs=no
15877 # when you set need_version to no, make sure it does not cause -set_version
15878 # flags to be left without arguments
15879 need_version=unknown
15881 case $host_os in
15882 aix3*)
15883   version_type=linux
15884   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15885   shlibpath_var=LIBPATH
15887   # AIX 3 has no versioning support, so we append a major version to the name.
15888   soname_spec='${libname}${release}${shared_ext}$major'
15889   ;;
15891 aix[4-9]*)
15892   version_type=linux
15893   need_lib_prefix=no
15894   need_version=no
15895   hardcode_into_libs=yes
15896   if test "$host_cpu" = ia64; then
15897     # AIX 5 supports IA64
15898     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15899     shlibpath_var=LD_LIBRARY_PATH
15900   else
15901     # With GCC up to 2.95.x, collect2 would create an import file
15902     # for dependence libraries.  The import file would start with
15903     # the line `#! .'.  This would cause the generated library to
15904     # depend on `.', always an invalid library.  This was fixed in
15905     # development snapshots of GCC prior to 3.0.
15906     case $host_os in
15907       aix4 | aix4.[01] | aix4.[01].*)
15908       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15909            echo ' yes '
15910            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15911         :
15912       else
15913         can_build_shared=no
15914       fi
15915       ;;
15916     esac
15917     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15918     # soname into executable. Probably we can add versioning support to
15919     # collect2, so additional links can be useful in future.
15920     if test "$aix_use_runtimelinking" = yes; then
15921       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15922       # instead of lib<name>.a to let people know that these are not
15923       # typical AIX shared libraries.
15924       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15925     else
15926       # We preserve .a as extension for shared libraries through AIX4.2
15927       # and later when we are not doing run time linking.
15928       library_names_spec='${libname}${release}.a $libname.a'
15929       soname_spec='${libname}${release}${shared_ext}$major'
15930     fi
15931     shlibpath_var=LIBPATH
15932   fi
15933   ;;
15935 amigaos*)
15936   library_names_spec='$libname.ixlibrary $libname.a'
15937   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15938   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'
15939   ;;
15941 beos*)
15942   library_names_spec='${libname}${shared_ext}'
15943   dynamic_linker="$host_os ld.so"
15944   shlibpath_var=LIBRARY_PATH
15945   ;;
15947 bsdi[45]*)
15948   version_type=linux
15949   need_version=no
15950   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15951   soname_spec='${libname}${release}${shared_ext}$major'
15952   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15953   shlibpath_var=LD_LIBRARY_PATH
15954   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15955   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15956   # the default ld.so.conf also contains /usr/contrib/lib and
15957   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15958   # libtool to hard-code these into programs
15959   ;;
15961 cygwin* | mingw* | pw32*)
15962   version_type=windows
15963   shrext_cmds=".dll"
15964   need_version=no
15965   need_lib_prefix=no
15967   case $GCC,$host_os in
15968   yes,cygwin* | yes,mingw* | yes,pw32*)
15969     library_names_spec='$libname.dll.a'
15970     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15971     postinstall_cmds='base_file=`basename \${file}`~
15972       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15973       dldir=$destdir/`dirname \$dlpath`~
15974       test -d \$dldir || mkdir -p \$dldir~
15975       $install_prog $dir/$dlname \$dldir/$dlname~
15976       chmod a+x \$dldir/$dlname'
15977     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15978       dlpath=$dir/\$dldll~
15979        $rm \$dlpath'
15980     shlibpath_overrides_runpath=yes
15982     case $host_os in
15983     cygwin*)
15984       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15985       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15986       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15987       ;;
15988     mingw*)
15989       # MinGW DLLs use traditional 'lib' prefix
15990       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15991       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15992       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15993         # It is most probably a Windows format PATH printed by
15994         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15995         # path with ; separators, and with drive letters. We can handle the
15996         # drive letters (cygwin fileutils understands them), so leave them,
15997         # especially as we might pass files found there to a mingw objdump,
15998         # which wouldn't understand a cygwinified path. Ahh.
15999         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16000       else
16001         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16002       fi
16003       ;;
16004     pw32*)
16005       # pw32 DLLs use 'pw' prefix rather than 'lib'
16006       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16007       ;;
16008     esac
16009     ;;
16011   *)
16012     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16013     ;;
16014   esac
16015   dynamic_linker='Win32 ld.exe'
16016   # FIXME: first we should search . and the directory the executable is in
16017   shlibpath_var=PATH
16018   ;;
16020 darwin* | rhapsody*)
16021   dynamic_linker="$host_os dyld"
16022   version_type=darwin
16023   need_lib_prefix=no
16024   need_version=no
16025   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16026   soname_spec='${libname}${release}${major}$shared_ext'
16027   shlibpath_overrides_runpath=yes
16028   shlibpath_var=DYLD_LIBRARY_PATH
16029   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16031   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16032   ;;
16034 dgux*)
16035   version_type=linux
16036   need_lib_prefix=no
16037   need_version=no
16038   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16039   soname_spec='${libname}${release}${shared_ext}$major'
16040   shlibpath_var=LD_LIBRARY_PATH
16041   ;;
16043 freebsd1*)
16044   dynamic_linker=no
16045   ;;
16047 freebsd* | dragonfly*)
16048   # DragonFly does not have aout.  When/if they implement a new
16049   # versioning mechanism, adjust this.
16050   if test -x /usr/bin/objformat; then
16051     objformat=`/usr/bin/objformat`
16052   else
16053     case $host_os in
16054     freebsd[123]*) objformat=aout ;;
16055     *) objformat=elf ;;
16056     esac
16057   fi
16058   version_type=freebsd-$objformat
16059   case $version_type in
16060     freebsd-elf*)
16061       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16062       need_version=no
16063       need_lib_prefix=no
16064       ;;
16065     freebsd-*)
16066       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16067       need_version=yes
16068       ;;
16069   esac
16070   shlibpath_var=LD_LIBRARY_PATH
16071   case $host_os in
16072   freebsd2*)
16073     shlibpath_overrides_runpath=yes
16074     ;;
16075   freebsd3.[01]* | freebsdelf3.[01]*)
16076     shlibpath_overrides_runpath=yes
16077     hardcode_into_libs=yes
16078     ;;
16079   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16080   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16081     shlibpath_overrides_runpath=no
16082     hardcode_into_libs=yes
16083     ;;
16084   *) # from 4.6 on, and DragonFly
16085     shlibpath_overrides_runpath=yes
16086     hardcode_into_libs=yes
16087     ;;
16088   esac
16089   ;;
16091 gnu*)
16092   version_type=linux
16093   need_lib_prefix=no
16094   need_version=no
16095   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16096   soname_spec='${libname}${release}${shared_ext}$major'
16097   shlibpath_var=LD_LIBRARY_PATH
16098   hardcode_into_libs=yes
16099   ;;
16101 hpux9* | hpux10* | hpux11*)
16102   # Give a soname corresponding to the major version so that dld.sl refuses to
16103   # link against other versions.
16104   version_type=sunos
16105   need_lib_prefix=no
16106   need_version=no
16107   case $host_cpu in
16108   ia64*)
16109     shrext_cmds='.so'
16110     hardcode_into_libs=yes
16111     dynamic_linker="$host_os dld.so"
16112     shlibpath_var=LD_LIBRARY_PATH
16113     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16114     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16115     soname_spec='${libname}${release}${shared_ext}$major'
16116     if test "X$HPUX_IA64_MODE" = X32; then
16117       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16118     else
16119       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16120     fi
16121     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16122     ;;
16123    hppa*64*)
16124      shrext_cmds='.sl'
16125      hardcode_into_libs=yes
16126      dynamic_linker="$host_os dld.sl"
16127      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16128      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16129      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16130      soname_spec='${libname}${release}${shared_ext}$major'
16131      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16132      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16133      ;;
16134    *)
16135     shrext_cmds='.sl'
16136     dynamic_linker="$host_os dld.sl"
16137     shlibpath_var=SHLIB_PATH
16138     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16139     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16140     soname_spec='${libname}${release}${shared_ext}$major'
16141     ;;
16142   esac
16143   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16144   postinstall_cmds='chmod 555 $lib'
16145   ;;
16147 interix[3-9]*)
16148   version_type=linux
16149   need_lib_prefix=no
16150   need_version=no
16151   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16152   soname_spec='${libname}${release}${shared_ext}$major'
16153   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16154   shlibpath_var=LD_LIBRARY_PATH
16155   shlibpath_overrides_runpath=no
16156   hardcode_into_libs=yes
16157   ;;
16159 irix5* | irix6* | nonstopux*)
16160   case $host_os in
16161     nonstopux*) version_type=nonstopux ;;
16162     *)
16163         if test "$lt_cv_prog_gnu_ld" = yes; then
16164                 version_type=linux
16165         else
16166                 version_type=irix
16167         fi ;;
16168   esac
16169   need_lib_prefix=no
16170   need_version=no
16171   soname_spec='${libname}${release}${shared_ext}$major'
16172   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16173   case $host_os in
16174   irix5* | nonstopux*)
16175     libsuff= shlibsuff=
16176     ;;
16177   *)
16178     case $LD in # libtool.m4 will add one of these switches to LD
16179     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16180       libsuff= shlibsuff= libmagic=32-bit;;
16181     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16182       libsuff=32 shlibsuff=N32 libmagic=N32;;
16183     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16184       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16185     *) libsuff= shlibsuff= libmagic=never-match;;
16186     esac
16187     ;;
16188   esac
16189   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16190   shlibpath_overrides_runpath=no
16191   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16192   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16193   hardcode_into_libs=yes
16194   ;;
16196 # No shared lib support for Linux oldld, aout, or coff.
16197 linux*oldld* | linux*aout* | linux*coff*)
16198   dynamic_linker=no
16199   ;;
16201 # This must be Linux ELF.
16202 linux* | k*bsd*-gnu)
16203   version_type=linux
16204   need_lib_prefix=no
16205   need_version=no
16206   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16207   soname_spec='${libname}${release}${shared_ext}$major'
16208   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16209   shlibpath_var=LD_LIBRARY_PATH
16210   shlibpath_overrides_runpath=no
16211   # This implies no fast_install, which is unacceptable.
16212   # Some rework will be needed to allow for fast_install
16213   # before this can be enabled.
16214   hardcode_into_libs=yes
16216   # Append ld.so.conf contents to the search path
16217   if test -f /etc/ld.so.conf; then
16218     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' ' '`
16219     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16220   fi
16222   # We used to test for /lib/ld.so.1 and disable shared libraries on
16223   # powerpc, because MkLinux only supported shared libraries with the
16224   # GNU dynamic linker.  Since this was broken with cross compilers,
16225   # most powerpc-linux boxes support dynamic linking these days and
16226   # people can always --disable-shared, the test was removed, and we
16227   # assume the GNU/Linux dynamic linker is in use.
16228   dynamic_linker='GNU/Linux ld.so'
16229   ;;
16231 netbsdelf*-gnu)
16232   version_type=linux
16233   need_lib_prefix=no
16234   need_version=no
16235   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16236   soname_spec='${libname}${release}${shared_ext}$major'
16237   shlibpath_var=LD_LIBRARY_PATH
16238   shlibpath_overrides_runpath=no
16239   hardcode_into_libs=yes
16240   dynamic_linker='NetBSD ld.elf_so'
16241   ;;
16243 netbsd*)
16244   version_type=sunos
16245   need_lib_prefix=no
16246   need_version=no
16247   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16248     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16249     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16250     dynamic_linker='NetBSD (a.out) ld.so'
16251   else
16252     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16253     soname_spec='${libname}${release}${shared_ext}$major'
16254     dynamic_linker='NetBSD ld.elf_so'
16255   fi
16256   shlibpath_var=LD_LIBRARY_PATH
16257   shlibpath_overrides_runpath=yes
16258   hardcode_into_libs=yes
16259   ;;
16261 newsos6)
16262   version_type=linux
16263   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16264   shlibpath_var=LD_LIBRARY_PATH
16265   shlibpath_overrides_runpath=yes
16266   ;;
16268 nto-qnx*)
16269   version_type=linux
16270   need_lib_prefix=no
16271   need_version=no
16272   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16273   soname_spec='${libname}${release}${shared_ext}$major'
16274   shlibpath_var=LD_LIBRARY_PATH
16275   shlibpath_overrides_runpath=yes
16276   ;;
16278 openbsd*)
16279   version_type=sunos
16280   sys_lib_dlsearch_path_spec="/usr/lib"
16281   need_lib_prefix=no
16282   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16283   case $host_os in
16284     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16285     *)                         need_version=no  ;;
16286   esac
16287   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16288   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16289   shlibpath_var=LD_LIBRARY_PATH
16290   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16291     case $host_os in
16292       openbsd2.[89] | openbsd2.[89].*)
16293         shlibpath_overrides_runpath=no
16294         ;;
16295       *)
16296         shlibpath_overrides_runpath=yes
16297         ;;
16298       esac
16299   else
16300     shlibpath_overrides_runpath=yes
16301   fi
16302   ;;
16304 os2*)
16305   libname_spec='$name'
16306   shrext_cmds=".dll"
16307   need_lib_prefix=no
16308   library_names_spec='$libname${shared_ext} $libname.a'
16309   dynamic_linker='OS/2 ld.exe'
16310   shlibpath_var=LIBPATH
16311   ;;
16313 osf3* | osf4* | osf5*)
16314   version_type=osf
16315   need_lib_prefix=no
16316   need_version=no
16317   soname_spec='${libname}${release}${shared_ext}$major'
16318   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16319   shlibpath_var=LD_LIBRARY_PATH
16320   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16321   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16322   ;;
16324 rdos*)
16325   dynamic_linker=no
16326   ;;
16328 solaris*)
16329   version_type=linux
16330   need_lib_prefix=no
16331   need_version=no
16332   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16333   soname_spec='${libname}${release}${shared_ext}$major'
16334   shlibpath_var=LD_LIBRARY_PATH
16335   shlibpath_overrides_runpath=yes
16336   hardcode_into_libs=yes
16337   # ldd complains unless libraries are executable
16338   postinstall_cmds='chmod +x $lib'
16339   ;;
16341 sunos4*)
16342   version_type=sunos
16343   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16344   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16345   shlibpath_var=LD_LIBRARY_PATH
16346   shlibpath_overrides_runpath=yes
16347   if test "$with_gnu_ld" = yes; then
16348     need_lib_prefix=no
16349   fi
16350   need_version=yes
16351   ;;
16353 sysv4 | sysv4.3*)
16354   version_type=linux
16355   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16356   soname_spec='${libname}${release}${shared_ext}$major'
16357   shlibpath_var=LD_LIBRARY_PATH
16358   case $host_vendor in
16359     sni)
16360       shlibpath_overrides_runpath=no
16361       need_lib_prefix=no
16362       export_dynamic_flag_spec='${wl}-Blargedynsym'
16363       runpath_var=LD_RUN_PATH
16364       ;;
16365     siemens)
16366       need_lib_prefix=no
16367       ;;
16368     motorola)
16369       need_lib_prefix=no
16370       need_version=no
16371       shlibpath_overrides_runpath=no
16372       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16373       ;;
16374   esac
16375   ;;
16377 sysv4*MP*)
16378   if test -d /usr/nec ;then
16379     version_type=linux
16380     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16381     soname_spec='$libname${shared_ext}.$major'
16382     shlibpath_var=LD_LIBRARY_PATH
16383   fi
16384   ;;
16386 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16387   version_type=freebsd-elf
16388   need_lib_prefix=no
16389   need_version=no
16390   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16391   soname_spec='${libname}${release}${shared_ext}$major'
16392   shlibpath_var=LD_LIBRARY_PATH
16393   hardcode_into_libs=yes
16394   if test "$with_gnu_ld" = yes; then
16395     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16396     shlibpath_overrides_runpath=no
16397   else
16398     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16399     shlibpath_overrides_runpath=yes
16400     case $host_os in
16401       sco3.2v5*)
16402         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16403         ;;
16404     esac
16405   fi
16406   sys_lib_dlsearch_path_spec='/usr/lib'
16407   ;;
16409 uts4*)
16410   version_type=linux
16411   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16412   soname_spec='${libname}${release}${shared_ext}$major'
16413   shlibpath_var=LD_LIBRARY_PATH
16414   ;;
16417   dynamic_linker=no
16418   ;;
16419 esac
16420 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16421 echo "${ECHO_T}$dynamic_linker" >&6; }
16422 test "$dynamic_linker" = no && can_build_shared=no
16424 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16425   echo $ECHO_N "(cached) $ECHO_C" >&6
16426 else
16427   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16430 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16431 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16432   echo $ECHO_N "(cached) $ECHO_C" >&6
16433 else
16434   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16437 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16439 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16440 if test "$GCC" = yes; then
16441   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16444 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16445 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16446 hardcode_action_F77=
16447 if test -n "$hardcode_libdir_flag_spec_F77" || \
16448    test -n "$runpath_var_F77" || \
16449    test "X$hardcode_automatic_F77" = "Xyes" ; then
16451   # We can hardcode non-existant directories.
16452   if test "$hardcode_direct_F77" != no &&
16453      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16454      # have to relink, otherwise we might link with an installed library
16455      # when we should be linking with a yet-to-be-installed one
16456      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16457      test "$hardcode_minus_L_F77" != no; then
16458     # Linking always hardcodes the temporary library directory.
16459     hardcode_action_F77=relink
16460   else
16461     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16462     hardcode_action_F77=immediate
16463   fi
16464 else
16465   # We cannot hardcode anything, or else we can only hardcode existing
16466   # directories.
16467   hardcode_action_F77=unsupported
16469 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16470 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16472 if test "$hardcode_action_F77" = relink; then
16473   # Fast installation is not supported
16474   enable_fast_install=no
16475 elif test "$shlibpath_overrides_runpath" = yes ||
16476      test "$enable_shared" = no; then
16477   # Fast installation is not necessary
16478   enable_fast_install=needless
16482 # The else clause should only fire when bootstrapping the
16483 # libtool distribution, otherwise you forgot to ship ltmain.sh
16484 # with your package, and you will get complaints that there are
16485 # no rules to generate ltmain.sh.
16486 if test -f "$ltmain"; then
16487   # See if we are running on zsh, and set the options which allow our commands through
16488   # without removal of \ escapes.
16489   if test -n "${ZSH_VERSION+set}" ; then
16490     setopt NO_GLOB_SUBST
16491   fi
16492   # Now quote all the things that may contain metacharacters while being
16493   # careful not to overquote the AC_SUBSTed values.  We take copies of the
16494   # variables and quote the copies for generation of the libtool script.
16495   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16496     SED SHELL STRIP \
16497     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16498     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16499     deplibs_check_method reload_flag reload_cmds need_locks \
16500     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16501     lt_cv_sys_global_symbol_to_c_name_address \
16502     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16503     old_postinstall_cmds old_postuninstall_cmds \
16504     compiler_F77 \
16505     CC_F77 \
16506     LD_F77 \
16507     lt_prog_compiler_wl_F77 \
16508     lt_prog_compiler_pic_F77 \
16509     lt_prog_compiler_static_F77 \
16510     lt_prog_compiler_no_builtin_flag_F77 \
16511     export_dynamic_flag_spec_F77 \
16512     thread_safe_flag_spec_F77 \
16513     whole_archive_flag_spec_F77 \
16514     enable_shared_with_static_runtimes_F77 \
16515     old_archive_cmds_F77 \
16516     old_archive_from_new_cmds_F77 \
16517     predep_objects_F77 \
16518     postdep_objects_F77 \
16519     predeps_F77 \
16520     postdeps_F77 \
16521     compiler_lib_search_path_F77 \
16522     compiler_lib_search_dirs_F77 \
16523     archive_cmds_F77 \
16524     archive_expsym_cmds_F77 \
16525     postinstall_cmds_F77 \
16526     postuninstall_cmds_F77 \
16527     old_archive_from_expsyms_cmds_F77 \
16528     allow_undefined_flag_F77 \
16529     no_undefined_flag_F77 \
16530     export_symbols_cmds_F77 \
16531     hardcode_libdir_flag_spec_F77 \
16532     hardcode_libdir_flag_spec_ld_F77 \
16533     hardcode_libdir_separator_F77 \
16534     hardcode_automatic_F77 \
16535     module_cmds_F77 \
16536     module_expsym_cmds_F77 \
16537     lt_cv_prog_compiler_c_o_F77 \
16538     fix_srcfile_path_F77 \
16539     exclude_expsyms_F77 \
16540     include_expsyms_F77; do
16542     case $var in
16543     old_archive_cmds_F77 | \
16544     old_archive_from_new_cmds_F77 | \
16545     archive_cmds_F77 | \
16546     archive_expsym_cmds_F77 | \
16547     module_cmds_F77 | \
16548     module_expsym_cmds_F77 | \
16549     old_archive_from_expsyms_cmds_F77 | \
16550     export_symbols_cmds_F77 | \
16551     extract_expsyms_cmds | reload_cmds | finish_cmds | \
16552     postinstall_cmds | postuninstall_cmds | \
16553     old_postinstall_cmds | old_postuninstall_cmds | \
16554     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16555       # Double-quote double-evaled strings.
16556       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16557       ;;
16558     *)
16559       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16560       ;;
16561     esac
16562   done
16564   case $lt_echo in
16565   *'\$0 --fallback-echo"')
16566     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16567     ;;
16568   esac
16570 cfgfile="$ofile"
16572   cat <<__EOF__ >> "$cfgfile"
16573 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16575 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16577 # Shell to use when invoking shell scripts.
16578 SHELL=$lt_SHELL
16580 # Whether or not to build shared libraries.
16581 build_libtool_libs=$enable_shared
16583 # Whether or not to build static libraries.
16584 build_old_libs=$enable_static
16586 # Whether or not to add -lc for building shared libraries.
16587 build_libtool_need_lc=$archive_cmds_need_lc_F77
16589 # Whether or not to disallow shared libs when runtime libs are static
16590 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16592 # Whether or not to optimize for fast installation.
16593 fast_install=$enable_fast_install
16595 # The host system.
16596 host_alias=$host_alias
16597 host=$host
16598 host_os=$host_os
16600 # The build system.
16601 build_alias=$build_alias
16602 build=$build
16603 build_os=$build_os
16605 # An echo program that does not interpret backslashes.
16606 echo=$lt_echo
16608 # The archiver.
16609 AR=$lt_AR
16610 AR_FLAGS=$lt_AR_FLAGS
16612 # A C compiler.
16613 LTCC=$lt_LTCC
16615 # LTCC compiler flags.
16616 LTCFLAGS=$lt_LTCFLAGS
16618 # A language-specific compiler.
16619 CC=$lt_compiler_F77
16621 # Is the compiler the GNU C compiler?
16622 with_gcc=$GCC_F77
16624 # An ERE matcher.
16625 EGREP=$lt_EGREP
16627 # The linker used to build libraries.
16628 LD=$lt_LD_F77
16630 # Whether we need hard or soft links.
16631 LN_S=$lt_LN_S
16633 # A BSD-compatible nm program.
16634 NM=$lt_NM
16636 # A symbol stripping program
16637 STRIP=$lt_STRIP
16639 # Used to examine libraries when file_magic_cmd begins "file"
16640 MAGIC_CMD=$MAGIC_CMD
16642 # Used on cygwin: DLL creation program.
16643 DLLTOOL="$DLLTOOL"
16645 # Used on cygwin: object dumper.
16646 OBJDUMP="$OBJDUMP"
16648 # Used on cygwin: assembler.
16649 AS="$AS"
16651 # The name of the directory that contains temporary libtool files.
16652 objdir=$objdir
16654 # How to create reloadable object files.
16655 reload_flag=$lt_reload_flag
16656 reload_cmds=$lt_reload_cmds
16658 # How to pass a linker flag through the compiler.
16659 wl=$lt_lt_prog_compiler_wl_F77
16661 # Object file suffix (normally "o").
16662 objext="$ac_objext"
16664 # Old archive suffix (normally "a").
16665 libext="$libext"
16667 # Shared library suffix (normally ".so").
16668 shrext_cmds='$shrext_cmds'
16670 # Executable file suffix (normally "").
16671 exeext="$exeext"
16673 # Additional compiler flags for building library objects.
16674 pic_flag=$lt_lt_prog_compiler_pic_F77
16675 pic_mode=$pic_mode
16677 # What is the maximum length of a command?
16678 max_cmd_len=$lt_cv_sys_max_cmd_len
16680 # Does compiler simultaneously support -c and -o options?
16681 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16683 # Must we lock files when doing compilation?
16684 need_locks=$lt_need_locks
16686 # Do we need the lib prefix for modules?
16687 need_lib_prefix=$need_lib_prefix
16689 # Do we need a version for libraries?
16690 need_version=$need_version
16692 # Whether dlopen is supported.
16693 dlopen_support=$enable_dlopen
16695 # Whether dlopen of programs is supported.
16696 dlopen_self=$enable_dlopen_self
16698 # Whether dlopen of statically linked programs is supported.
16699 dlopen_self_static=$enable_dlopen_self_static
16701 # Compiler flag to prevent dynamic linking.
16702 link_static_flag=$lt_lt_prog_compiler_static_F77
16704 # Compiler flag to turn off builtin functions.
16705 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16707 # Compiler flag to allow reflexive dlopens.
16708 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16710 # Compiler flag to generate shared objects directly from archives.
16711 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16713 # Compiler flag to generate thread-safe objects.
16714 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16716 # Library versioning type.
16717 version_type=$version_type
16719 # Format of library name prefix.
16720 libname_spec=$lt_libname_spec
16722 # List of archive names.  First name is the real one, the rest are links.
16723 # The last name is the one that the linker finds with -lNAME.
16724 library_names_spec=$lt_library_names_spec
16726 # The coded name of the library, if different from the real name.
16727 soname_spec=$lt_soname_spec
16729 # Commands used to build and install an old-style archive.
16730 RANLIB=$lt_RANLIB
16731 old_archive_cmds=$lt_old_archive_cmds_F77
16732 old_postinstall_cmds=$lt_old_postinstall_cmds
16733 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16735 # Create an old-style archive from a shared archive.
16736 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16738 # Create a temporary old-style archive to link instead of a shared archive.
16739 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16741 # Commands used to build and install a shared archive.
16742 archive_cmds=$lt_archive_cmds_F77
16743 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16744 postinstall_cmds=$lt_postinstall_cmds
16745 postuninstall_cmds=$lt_postuninstall_cmds
16747 # Commands used to build a loadable module (assumed same as above if empty)
16748 module_cmds=$lt_module_cmds_F77
16749 module_expsym_cmds=$lt_module_expsym_cmds_F77
16751 # Commands to strip libraries.
16752 old_striplib=$lt_old_striplib
16753 striplib=$lt_striplib
16755 # Dependencies to place before the objects being linked to create a
16756 # shared library.
16757 predep_objects=$lt_predep_objects_F77
16759 # Dependencies to place after the objects being linked to create a
16760 # shared library.
16761 postdep_objects=$lt_postdep_objects_F77
16763 # Dependencies to place before the objects being linked to create a
16764 # shared library.
16765 predeps=$lt_predeps_F77
16767 # Dependencies to place after the objects being linked to create a
16768 # shared library.
16769 postdeps=$lt_postdeps_F77
16771 # The directories searched by this compiler when creating a shared
16772 # library
16773 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16775 # The library search path used internally by the compiler when linking
16776 # a shared library.
16777 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16779 # Method to check whether dependent libraries are shared objects.
16780 deplibs_check_method=$lt_deplibs_check_method
16782 # Command to use when deplibs_check_method == file_magic.
16783 file_magic_cmd=$lt_file_magic_cmd
16785 # Flag that allows shared libraries with undefined symbols to be built.
16786 allow_undefined_flag=$lt_allow_undefined_flag_F77
16788 # Flag that forces no undefined symbols.
16789 no_undefined_flag=$lt_no_undefined_flag_F77
16791 # Commands used to finish a libtool library installation in a directory.
16792 finish_cmds=$lt_finish_cmds
16794 # Same as above, but a single script fragment to be evaled but not shown.
16795 finish_eval=$lt_finish_eval
16797 # Take the output of nm and produce a listing of raw symbols and C names.
16798 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16800 # Transform the output of nm in a proper C declaration
16801 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16803 # Transform the output of nm in a C name address pair
16804 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16806 # This is the shared library runtime path variable.
16807 runpath_var=$runpath_var
16809 # This is the shared library path variable.
16810 shlibpath_var=$shlibpath_var
16812 # Is shlibpath searched before the hard-coded library search path?
16813 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16815 # How to hardcode a shared library path into an executable.
16816 hardcode_action=$hardcode_action_F77
16818 # Whether we should hardcode library paths into libraries.
16819 hardcode_into_libs=$hardcode_into_libs
16821 # Flag to hardcode \$libdir into a binary during linking.
16822 # This must work even if \$libdir does not exist.
16823 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16825 # If ld is used when linking, flag to hardcode \$libdir into
16826 # a binary during linking. This must work even if \$libdir does
16827 # not exist.
16828 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16830 # Whether we need a single -rpath flag with a separated argument.
16831 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16833 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16834 # resulting binary.
16835 hardcode_direct=$hardcode_direct_F77
16837 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16838 # resulting binary.
16839 hardcode_minus_L=$hardcode_minus_L_F77
16841 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16842 # the resulting binary.
16843 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16845 # Set to yes if building a shared library automatically hardcodes DIR into the library
16846 # and all subsequent libraries and executables linked against it.
16847 hardcode_automatic=$hardcode_automatic_F77
16849 # Variables whose values should be saved in libtool wrapper scripts and
16850 # restored at relink time.
16851 variables_saved_for_relink="$variables_saved_for_relink"
16853 # Whether libtool must link a program against all its dependency libraries.
16854 link_all_deplibs=$link_all_deplibs_F77
16856 # Compile-time system search path for libraries
16857 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16859 # Run-time system search path for libraries
16860 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16862 # Fix the shell variable \$srcfile for the compiler.
16863 fix_srcfile_path=$lt_fix_srcfile_path
16865 # Set to yes if exported symbols are required.
16866 always_export_symbols=$always_export_symbols_F77
16868 # The commands to list exported symbols.
16869 export_symbols_cmds=$lt_export_symbols_cmds_F77
16871 # The commands to extract the exported symbol list from a shared archive.
16872 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16874 # Symbols that should not be listed in the preloaded symbols.
16875 exclude_expsyms=$lt_exclude_expsyms_F77
16877 # Symbols that must always be exported.
16878 include_expsyms=$lt_include_expsyms_F77
16880 # ### END LIBTOOL TAG CONFIG: $tagname
16882 __EOF__
16885 else
16886   # If there is no Makefile yet, we rely on a make rule to execute
16887   # `config.status --recheck' to rerun these tests and create the
16888   # libtool script then.
16889   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16890   if test -f "$ltmain_in"; then
16891     test -f Makefile && make "$ltmain"
16892   fi
16896 ac_ext=c
16897 ac_cpp='$CPP $CPPFLAGS'
16898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16902 CC="$lt_save_CC"
16904         else
16905           tagname=""
16906         fi
16907         ;;
16909       GCJ)
16910         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16913 # Source file extension for Java test sources.
16914 ac_ext=java
16916 # Object file extension for compiled Java test sources.
16917 objext=o
16918 objext_GCJ=$objext
16920 # Code to be used in simple compile tests
16921 lt_simple_compile_test_code="class foo {}"
16923 # Code to be used in simple link tests
16924 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16926 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16928 # If no C compiler was specified, use CC.
16929 LTCC=${LTCC-"$CC"}
16931 # If no C compiler flags were specified, use CFLAGS.
16932 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16934 # Allow CC to be a program name with arguments.
16935 compiler=$CC
16938 # save warnings/boilerplate of simple test code
16939 ac_outfile=conftest.$ac_objext
16940 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16941 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16942 _lt_compiler_boilerplate=`cat conftest.err`
16943 $rm conftest*
16945 ac_outfile=conftest.$ac_objext
16946 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16947 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16948 _lt_linker_boilerplate=`cat conftest.err`
16949 $rm -r conftest*
16952 # Allow CC to be a program name with arguments.
16953 lt_save_CC="$CC"
16954 CC=${GCJ-"gcj"}
16955 compiler=$CC
16956 compiler_GCJ=$CC
16957 for cc_temp in $compiler""; do
16958   case $cc_temp in
16959     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16960     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16961     \-*) ;;
16962     *) break;;
16963   esac
16964 done
16965 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16968 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16969 archive_cmds_need_lc_GCJ=no
16971 old_archive_cmds_GCJ=$old_archive_cmds
16974 lt_prog_compiler_no_builtin_flag_GCJ=
16976 if test "$GCC" = yes; then
16977   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16980 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16981 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16982 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16983   echo $ECHO_N "(cached) $ECHO_C" >&6
16984 else
16985   lt_cv_prog_compiler_rtti_exceptions=no
16986   ac_outfile=conftest.$ac_objext
16987    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16988    lt_compiler_flag="-fno-rtti -fno-exceptions"
16989    # Insert the option either (1) after the last *FLAGS variable, or
16990    # (2) before a word containing "conftest.", or (3) at the end.
16991    # Note that $ac_compile itself does not contain backslashes and begins
16992    # with a dollar sign (not a hyphen), so the echo should work correctly.
16993    # The option is referenced via a variable to avoid confusing sed.
16994    lt_compile=`echo "$ac_compile" | $SED \
16995    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16996    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16997    -e 's:$: $lt_compiler_flag:'`
16998    (eval echo "\"\$as_me:16998: $lt_compile\"" >&5)
16999    (eval "$lt_compile" 2>conftest.err)
17000    ac_status=$?
17001    cat conftest.err >&5
17002    echo "$as_me:17002: \$? = $ac_status" >&5
17003    if (exit $ac_status) && test -s "$ac_outfile"; then
17004      # The compiler can only warn and ignore the option if not recognized
17005      # So say no if there are warnings other than the usual output.
17006      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17007      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17008      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17009        lt_cv_prog_compiler_rtti_exceptions=yes
17010      fi
17011    fi
17012    $rm conftest*
17015 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17016 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17018 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17019     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17020 else
17021     :
17026 lt_prog_compiler_wl_GCJ=
17027 lt_prog_compiler_pic_GCJ=
17028 lt_prog_compiler_static_GCJ=
17030 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17031 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
17033   if test "$GCC" = yes; then
17034     lt_prog_compiler_wl_GCJ='-Wl,'
17035     lt_prog_compiler_static_GCJ='-static'
17037     case $host_os in
17038       aix*)
17039       # All AIX code is PIC.
17040       if test "$host_cpu" = ia64; then
17041         # AIX 5 now supports IA64 processor
17042         lt_prog_compiler_static_GCJ='-Bstatic'
17043       fi
17044       ;;
17046     amigaos*)
17047       # FIXME: we need at least 68020 code to build shared libraries, but
17048       # adding the `-m68020' flag to GCC prevents building anything better,
17049       # like `-m68040'.
17050       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17051       ;;
17053     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17054       # PIC is the default for these OSes.
17055       ;;
17057     mingw* | cygwin* | pw32* | os2*)
17058       # This hack is so that the source file can tell whether it is being
17059       # built for inclusion in a dll (and should export symbols for example).
17060       # Although the cygwin gcc ignores -fPIC, still need this for old-style
17061       # (--disable-auto-import) libraries
17063       ;;
17065     darwin* | rhapsody*)
17066       # PIC is the default on this platform
17067       # Common symbols not allowed in MH_DYLIB files
17068       lt_prog_compiler_pic_GCJ='-fno-common'
17069       ;;
17071     interix[3-9]*)
17072       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17073       # Instead, we relocate shared libraries at runtime.
17074       ;;
17076     msdosdjgpp*)
17077       # Just because we use GCC doesn't mean we suddenly get shared libraries
17078       # on systems that don't support them.
17079       lt_prog_compiler_can_build_shared_GCJ=no
17080       enable_shared=no
17081       ;;
17083     sysv4*MP*)
17084       if test -d /usr/nec; then
17085         lt_prog_compiler_pic_GCJ=-Kconform_pic
17086       fi
17087       ;;
17089     hpux*)
17090       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17091       # not for PA HP-UX.
17092       case $host_cpu in
17093       hppa*64*|ia64*)
17094         # +Z the default
17095         ;;
17096       *)
17097         lt_prog_compiler_pic_GCJ='-fPIC'
17098         ;;
17099       esac
17100       ;;
17102     *)
17103       lt_prog_compiler_pic_GCJ='-fPIC'
17104       ;;
17105     esac
17106   else
17107     # PORTME Check for flag to pass linker flags through the system compiler.
17108     case $host_os in
17109     aix*)
17110       lt_prog_compiler_wl_GCJ='-Wl,'
17111       if test "$host_cpu" = ia64; then
17112         # AIX 5 now supports IA64 processor
17113         lt_prog_compiler_static_GCJ='-Bstatic'
17114       else
17115         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17116       fi
17117       ;;
17118       darwin*)
17119         # PIC is the default on this platform
17120         # Common symbols not allowed in MH_DYLIB files
17121        case $cc_basename in
17122          xlc*)
17123          lt_prog_compiler_pic_GCJ='-qnocommon'
17124          lt_prog_compiler_wl_GCJ='-Wl,'
17125          ;;
17126        esac
17127        ;;
17129     mingw* | cygwin* | pw32* | os2*)
17130       # This hack is so that the source file can tell whether it is being
17131       # built for inclusion in a dll (and should export symbols for example).
17133       ;;
17135     hpux9* | hpux10* | hpux11*)
17136       lt_prog_compiler_wl_GCJ='-Wl,'
17137       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17138       # not for PA HP-UX.
17139       case $host_cpu in
17140       hppa*64*|ia64*)
17141         # +Z the default
17142         ;;
17143       *)
17144         lt_prog_compiler_pic_GCJ='+Z'
17145         ;;
17146       esac
17147       # Is there a better lt_prog_compiler_static that works with the bundled CC?
17148       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17149       ;;
17151     irix5* | irix6* | nonstopux*)
17152       lt_prog_compiler_wl_GCJ='-Wl,'
17153       # PIC (with -KPIC) is the default.
17154       lt_prog_compiler_static_GCJ='-non_shared'
17155       ;;
17157     newsos6)
17158       lt_prog_compiler_pic_GCJ='-KPIC'
17159       lt_prog_compiler_static_GCJ='-Bstatic'
17160       ;;
17162     linux* | k*bsd*-gnu)
17163       case $cc_basename in
17164       icc* | ecc*)
17165         lt_prog_compiler_wl_GCJ='-Wl,'
17166         lt_prog_compiler_pic_GCJ='-KPIC'
17167         lt_prog_compiler_static_GCJ='-static'
17168         ;;
17169       pgcc* | pgf77* | pgf90* | pgf95*)
17170         # Portland Group compilers (*not* the Pentium gcc compiler,
17171         # which looks to be a dead project)
17172         lt_prog_compiler_wl_GCJ='-Wl,'
17173         lt_prog_compiler_pic_GCJ='-fpic'
17174         lt_prog_compiler_static_GCJ='-Bstatic'
17175         ;;
17176       ccc*)
17177         lt_prog_compiler_wl_GCJ='-Wl,'
17178         # All Alpha code is PIC.
17179         lt_prog_compiler_static_GCJ='-non_shared'
17180         ;;
17181       *)
17182         case `$CC -V 2>&1 | sed 5q` in
17183         *Sun\ C*)
17184           # Sun C 5.9
17185           lt_prog_compiler_pic_GCJ='-KPIC'
17186           lt_prog_compiler_static_GCJ='-Bstatic'
17187           lt_prog_compiler_wl_GCJ='-Wl,'
17188           ;;
17189         *Sun\ F*)
17190           # Sun Fortran 8.3 passes all unrecognized flags to the linker
17191           lt_prog_compiler_pic_GCJ='-KPIC'
17192           lt_prog_compiler_static_GCJ='-Bstatic'
17193           lt_prog_compiler_wl_GCJ=''
17194           ;;
17195         esac
17196         ;;
17197       esac
17198       ;;
17200     osf3* | osf4* | osf5*)
17201       lt_prog_compiler_wl_GCJ='-Wl,'
17202       # All OSF/1 code is PIC.
17203       lt_prog_compiler_static_GCJ='-non_shared'
17204       ;;
17206     rdos*)
17207       lt_prog_compiler_static_GCJ='-non_shared'
17208       ;;
17210     solaris*)
17211       lt_prog_compiler_pic_GCJ='-KPIC'
17212       lt_prog_compiler_static_GCJ='-Bstatic'
17213       case $cc_basename in
17214       f77* | f90* | f95*)
17215         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17216       *)
17217         lt_prog_compiler_wl_GCJ='-Wl,';;
17218       esac
17219       ;;
17221     sunos4*)
17222       lt_prog_compiler_wl_GCJ='-Qoption ld '
17223       lt_prog_compiler_pic_GCJ='-PIC'
17224       lt_prog_compiler_static_GCJ='-Bstatic'
17225       ;;
17227     sysv4 | sysv4.2uw2* | sysv4.3*)
17228       lt_prog_compiler_wl_GCJ='-Wl,'
17229       lt_prog_compiler_pic_GCJ='-KPIC'
17230       lt_prog_compiler_static_GCJ='-Bstatic'
17231       ;;
17233     sysv4*MP*)
17234       if test -d /usr/nec ;then
17235         lt_prog_compiler_pic_GCJ='-Kconform_pic'
17236         lt_prog_compiler_static_GCJ='-Bstatic'
17237       fi
17238       ;;
17240     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17241       lt_prog_compiler_wl_GCJ='-Wl,'
17242       lt_prog_compiler_pic_GCJ='-KPIC'
17243       lt_prog_compiler_static_GCJ='-Bstatic'
17244       ;;
17246     unicos*)
17247       lt_prog_compiler_wl_GCJ='-Wl,'
17248       lt_prog_compiler_can_build_shared_GCJ=no
17249       ;;
17251     uts4*)
17252       lt_prog_compiler_pic_GCJ='-pic'
17253       lt_prog_compiler_static_GCJ='-Bstatic'
17254       ;;
17256     *)
17257       lt_prog_compiler_can_build_shared_GCJ=no
17258       ;;
17259     esac
17260   fi
17262 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17263 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17266 # Check to make sure the PIC flag actually works.
17268 if test -n "$lt_prog_compiler_pic_GCJ"; then
17270 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17271 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17272 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17273   echo $ECHO_N "(cached) $ECHO_C" >&6
17274 else
17275   lt_cv_prog_compiler_pic_works_GCJ=no
17276   ac_outfile=conftest.$ac_objext
17277    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17278    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17279    # Insert the option either (1) after the last *FLAGS variable, or
17280    # (2) before a word containing "conftest.", or (3) at the end.
17281    # Note that $ac_compile itself does not contain backslashes and begins
17282    # with a dollar sign (not a hyphen), so the echo should work correctly.
17283    # The option is referenced via a variable to avoid confusing sed.
17284    lt_compile=`echo "$ac_compile" | $SED \
17285    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17286    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17287    -e 's:$: $lt_compiler_flag:'`
17288    (eval echo "\"\$as_me:17288: $lt_compile\"" >&5)
17289    (eval "$lt_compile" 2>conftest.err)
17290    ac_status=$?
17291    cat conftest.err >&5
17292    echo "$as_me:17292: \$? = $ac_status" >&5
17293    if (exit $ac_status) && test -s "$ac_outfile"; then
17294      # The compiler can only warn and ignore the option if not recognized
17295      # So say no if there are warnings other than the usual output.
17296      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17297      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17298      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17299        lt_cv_prog_compiler_pic_works_GCJ=yes
17300      fi
17301    fi
17302    $rm conftest*
17305 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17306 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17308 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17309     case $lt_prog_compiler_pic_GCJ in
17310      "" | " "*) ;;
17311      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17312      esac
17313 else
17314     lt_prog_compiler_pic_GCJ=
17315      lt_prog_compiler_can_build_shared_GCJ=no
17319 case $host_os in
17320   # For platforms which do not support PIC, -DPIC is meaningless:
17321   *djgpp*)
17322     lt_prog_compiler_pic_GCJ=
17323     ;;
17324   *)
17325     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17326     ;;
17327 esac
17330 # Check to make sure the static flag actually works.
17332 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17333 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17334 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17335 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17336   echo $ECHO_N "(cached) $ECHO_C" >&6
17337 else
17338   lt_cv_prog_compiler_static_works_GCJ=no
17339    save_LDFLAGS="$LDFLAGS"
17340    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17341    echo "$lt_simple_link_test_code" > conftest.$ac_ext
17342    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17343      # The linker can only warn and ignore the option if not recognized
17344      # So say no if there are warnings
17345      if test -s conftest.err; then
17346        # Append any errors to the config.log.
17347        cat conftest.err 1>&5
17348        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17349        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17350        if diff conftest.exp conftest.er2 >/dev/null; then
17351          lt_cv_prog_compiler_static_works_GCJ=yes
17352        fi
17353      else
17354        lt_cv_prog_compiler_static_works_GCJ=yes
17355      fi
17356    fi
17357    $rm -r conftest*
17358    LDFLAGS="$save_LDFLAGS"
17361 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17362 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17364 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17365     :
17366 else
17367     lt_prog_compiler_static_GCJ=
17371 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17372 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17373 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17374   echo $ECHO_N "(cached) $ECHO_C" >&6
17375 else
17376   lt_cv_prog_compiler_c_o_GCJ=no
17377    $rm -r conftest 2>/dev/null
17378    mkdir conftest
17379    cd conftest
17380    mkdir out
17381    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17383    lt_compiler_flag="-o out/conftest2.$ac_objext"
17384    # Insert the option either (1) after the last *FLAGS variable, or
17385    # (2) before a word containing "conftest.", or (3) at the end.
17386    # Note that $ac_compile itself does not contain backslashes and begins
17387    # with a dollar sign (not a hyphen), so the echo should work correctly.
17388    lt_compile=`echo "$ac_compile" | $SED \
17389    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17390    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17391    -e 's:$: $lt_compiler_flag:'`
17392    (eval echo "\"\$as_me:17392: $lt_compile\"" >&5)
17393    (eval "$lt_compile" 2>out/conftest.err)
17394    ac_status=$?
17395    cat out/conftest.err >&5
17396    echo "$as_me:17396: \$? = $ac_status" >&5
17397    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17398    then
17399      # The compiler can only warn and ignore the option if not recognized
17400      # So say no if there are warnings
17401      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17402      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17403      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17404        lt_cv_prog_compiler_c_o_GCJ=yes
17405      fi
17406    fi
17407    chmod u+w . 2>&5
17408    $rm conftest*
17409    # SGI C++ compiler will create directory out/ii_files/ for
17410    # template instantiation
17411    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17412    $rm out/* && rmdir out
17413    cd ..
17414    rmdir conftest
17415    $rm conftest*
17418 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17419 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17422 hard_links="nottested"
17423 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17424   # do not overwrite the value of need_locks provided by the user
17425   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17426 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17427   hard_links=yes
17428   $rm conftest*
17429   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17430   touch conftest.a
17431   ln conftest.a conftest.b 2>&5 || hard_links=no
17432   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17433   { echo "$as_me:$LINENO: result: $hard_links" >&5
17434 echo "${ECHO_T}$hard_links" >&6; }
17435   if test "$hard_links" = no; then
17436     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17437 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17438     need_locks=warn
17439   fi
17440 else
17441   need_locks=no
17444 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17445 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17447   runpath_var=
17448   allow_undefined_flag_GCJ=
17449   enable_shared_with_static_runtimes_GCJ=no
17450   archive_cmds_GCJ=
17451   archive_expsym_cmds_GCJ=
17452   old_archive_From_new_cmds_GCJ=
17453   old_archive_from_expsyms_cmds_GCJ=
17454   export_dynamic_flag_spec_GCJ=
17455   whole_archive_flag_spec_GCJ=
17456   thread_safe_flag_spec_GCJ=
17457   hardcode_libdir_flag_spec_GCJ=
17458   hardcode_libdir_flag_spec_ld_GCJ=
17459   hardcode_libdir_separator_GCJ=
17460   hardcode_direct_GCJ=no
17461   hardcode_minus_L_GCJ=no
17462   hardcode_shlibpath_var_GCJ=unsupported
17463   link_all_deplibs_GCJ=unknown
17464   hardcode_automatic_GCJ=no
17465   module_cmds_GCJ=
17466   module_expsym_cmds_GCJ=
17467   always_export_symbols_GCJ=no
17468   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17469   # include_expsyms should be a list of space-separated symbols to be *always*
17470   # included in the symbol list
17471   include_expsyms_GCJ=
17472   # exclude_expsyms can be an extended regexp of symbols to exclude
17473   # it will be wrapped by ` (' and `)$', so one must not match beginning or
17474   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17475   # as well as any symbol that contains `d'.
17476   exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17477   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17478   # platforms (ab)use it in PIC code, but their linkers get confused if
17479   # the symbol is explicitly referenced.  Since portable code cannot
17480   # rely on this symbol name, it's probably fine to never include it in
17481   # preloaded symbol tables.
17482   # Exclude shared library initialization/finalization symbols.
17483   extract_expsyms_cmds=
17484   # Just being paranoid about ensuring that cc_basename is set.
17485   for cc_temp in $compiler""; do
17486   case $cc_temp in
17487     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17488     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17489     \-*) ;;
17490     *) break;;
17491   esac
17492 done
17493 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17495   case $host_os in
17496   cygwin* | mingw* | pw32*)
17497     # FIXME: the MSVC++ port hasn't been tested in a loooong time
17498     # When not using gcc, we currently assume that we are using
17499     # Microsoft Visual C++.
17500     if test "$GCC" != yes; then
17501       with_gnu_ld=no
17502     fi
17503     ;;
17504   interix*)
17505     # we just hope/assume this is gcc and not c89 (= MSVC++)
17506     with_gnu_ld=yes
17507     ;;
17508   openbsd*)
17509     with_gnu_ld=no
17510     ;;
17511   esac
17513   ld_shlibs_GCJ=yes
17514   if test "$with_gnu_ld" = yes; then
17515     # If archive_cmds runs LD, not CC, wlarc should be empty
17516     wlarc='${wl}'
17518     # Set some defaults for GNU ld with shared library support. These
17519     # are reset later if shared libraries are not supported. Putting them
17520     # here allows them to be overridden if necessary.
17521     runpath_var=LD_RUN_PATH
17522     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17523     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17524     # ancient GNU ld didn't support --whole-archive et. al.
17525     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17526         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17527       else
17528         whole_archive_flag_spec_GCJ=
17529     fi
17530     supports_anon_versioning=no
17531     case `$LD -v 2>/dev/null` in
17532       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17533       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17534       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17535       *\ 2.11.*) ;; # other 2.11 versions
17536       *) supports_anon_versioning=yes ;;
17537     esac
17539     # See if GNU ld supports shared libraries.
17540     case $host_os in
17541     aix[3-9]*)
17542       # On AIX/PPC, the GNU linker is very broken
17543       if test "$host_cpu" != ia64; then
17544         ld_shlibs_GCJ=no
17545         cat <<EOF 1>&2
17547 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17548 *** to be unable to reliably create shared libraries on AIX.
17549 *** Therefore, libtool is disabling shared libraries support.  If you
17550 *** really care for shared libraries, you may want to modify your PATH
17551 *** so that a non-GNU linker is found, and then restart.
17553 EOF
17554       fi
17555       ;;
17557     amigaos*)
17558       archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
17559       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17560       hardcode_minus_L_GCJ=yes
17562       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17563       # that the semantics of dynamic libraries on AmigaOS, at least up
17564       # to version 4, is to share data among multiple programs linked
17565       # with the same dynamic library.  Since this doesn't match the
17566       # behavior of shared libraries on other platforms, we can't use
17567       # them.
17568       ld_shlibs_GCJ=no
17569       ;;
17571     beos*)
17572       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17573         allow_undefined_flag_GCJ=unsupported
17574         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17575         # support --undefined.  This deserves some investigation.  FIXME
17576         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17577       else
17578         ld_shlibs_GCJ=no
17579       fi
17580       ;;
17582     cygwin* | mingw* | pw32*)
17583       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17584       # as there is no search path for DLLs.
17585       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17586       allow_undefined_flag_GCJ=unsupported
17587       always_export_symbols_GCJ=no
17588       enable_shared_with_static_runtimes_GCJ=yes
17589       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17591       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17592         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17593         # If the export-symbols file already is a .def file (1st line
17594         # is EXPORTS), use it as is; otherwise, prepend...
17595         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17596           cp $export_symbols $output_objdir/$soname.def;
17597         else
17598           echo EXPORTS > $output_objdir/$soname.def;
17599           cat $export_symbols >> $output_objdir/$soname.def;
17600         fi~
17601         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17602       else
17603         ld_shlibs_GCJ=no
17604       fi
17605       ;;
17607     interix[3-9]*)
17608       hardcode_direct_GCJ=no
17609       hardcode_shlibpath_var_GCJ=no
17610       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17611       export_dynamic_flag_spec_GCJ='${wl}-E'
17612       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17613       # Instead, shared libraries are loaded at an image base (0x10000000 by
17614       # default) and relocated if they conflict, which is a slow very memory
17615       # consuming and fragmenting process.  To avoid this, we pick a random,
17616       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17617       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17618       archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17619       archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17620       ;;
17622     gnu* | linux* | k*bsd*-gnu)
17623       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17624         tmp_addflag=
17625         case $cc_basename,$host_cpu in
17626         pgcc*)                          # Portland Group C compiler
17627           whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17628           tmp_addflag=' $pic_flag'
17629           ;;
17630         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
17631           whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17632           tmp_addflag=' $pic_flag -Mnomain' ;;
17633         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
17634           tmp_addflag=' -i_dynamic' ;;
17635         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
17636           tmp_addflag=' -i_dynamic -nofor_main' ;;
17637         ifc* | ifort*)                  # Intel Fortran compiler
17638           tmp_addflag=' -nofor_main' ;;
17639         esac
17640         case `$CC -V 2>&1 | sed 5q` in
17641         *Sun\ C*)                       # Sun C 5.9
17642           whole_archive_flag_spec_GCJ='${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'
17643           tmp_sharedflag='-G' ;;
17644         *Sun\ F*)                       # Sun Fortran 8.3
17645           tmp_sharedflag='-G' ;;
17646         *)
17647           tmp_sharedflag='-shared' ;;
17648         esac
17649         archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17651         if test $supports_anon_versioning = yes; then
17652           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17653   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17654   $echo "local: *; };" >> $output_objdir/$libname.ver~
17655           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17656         fi
17657         link_all_deplibs_GCJ=no
17658       else
17659         ld_shlibs_GCJ=no
17660       fi
17661       ;;
17663     netbsd* | netbsdelf*-gnu)
17664       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17665         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17666         wlarc=
17667       else
17668         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17669         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17670       fi
17671       ;;
17673     solaris*)
17674       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17675         ld_shlibs_GCJ=no
17676         cat <<EOF 1>&2
17678 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17679 *** create shared libraries on Solaris systems.  Therefore, libtool
17680 *** is disabling shared libraries support.  We urge you to upgrade GNU
17681 *** binutils to release 2.9.1 or newer.  Another option is to modify
17682 *** your PATH or compiler configuration so that the native linker is
17683 *** used, and then restart.
17685 EOF
17686       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17687         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17688         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17689       else
17690         ld_shlibs_GCJ=no
17691       fi
17692       ;;
17694     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17695       case `$LD -v 2>&1` in
17696         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17697         ld_shlibs_GCJ=no
17698         cat <<_LT_EOF 1>&2
17700 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17701 *** reliably create shared libraries on SCO systems.  Therefore, libtool
17702 *** is disabling shared libraries support.  We urge you to upgrade GNU
17703 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17704 *** your PATH or compiler configuration so that the native linker is
17705 *** used, and then restart.
17707 _LT_EOF
17708         ;;
17709         *)
17710           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17711             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17712             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17713             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17714           else
17715             ld_shlibs_GCJ=no
17716           fi
17717         ;;
17718       esac
17719       ;;
17721     sunos4*)
17722       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17723       wlarc=
17724       hardcode_direct_GCJ=yes
17725       hardcode_shlibpath_var_GCJ=no
17726       ;;
17728     *)
17729       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17730         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17731         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17732       else
17733         ld_shlibs_GCJ=no
17734       fi
17735       ;;
17736     esac
17738     if test "$ld_shlibs_GCJ" = no; then
17739       runpath_var=
17740       hardcode_libdir_flag_spec_GCJ=
17741       export_dynamic_flag_spec_GCJ=
17742       whole_archive_flag_spec_GCJ=
17743     fi
17744   else
17745     # PORTME fill in a description of your system's linker (not GNU ld)
17746     case $host_os in
17747     aix3*)
17748       allow_undefined_flag_GCJ=unsupported
17749       always_export_symbols_GCJ=yes
17750       archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
17751       # Note: this linker hardcodes the directories in LIBPATH if there
17752       # are no directories specified by -L.
17753       hardcode_minus_L_GCJ=yes
17754       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17755         # Neither direct hardcoding nor static linking is supported with a
17756         # broken collect2.
17757         hardcode_direct_GCJ=unsupported
17758       fi
17759       ;;
17761     aix[4-9]*)
17762       if test "$host_cpu" = ia64; then
17763         # On IA64, the linker does run time linking by default, so we don't
17764         # have to do anything special.
17765         aix_use_runtimelinking=no
17766         exp_sym_flag='-Bexport'
17767         no_entry_flag=""
17768       else
17769         # If we're using GNU nm, then we don't want the "-C" option.
17770         # -C means demangle to AIX nm, but means don't demangle with GNU nm
17771         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17772           export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17773         else
17774           export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17775         fi
17776         aix_use_runtimelinking=no
17778         # Test if we are trying to use run time linking or normal
17779         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17780         # need to do runtime linking.
17781         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17782           for ld_flag in $LDFLAGS; do
17783           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17784             aix_use_runtimelinking=yes
17785             break
17786           fi
17787           done
17788           ;;
17789         esac
17791         exp_sym_flag='-bexport'
17792         no_entry_flag='-bnoentry'
17793       fi
17795       # When large executables or shared objects are built, AIX ld can
17796       # have problems creating the table of contents.  If linking a library
17797       # or program results in "error TOC overflow" add -mminimal-toc to
17798       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17799       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17801       archive_cmds_GCJ=''
17802       hardcode_direct_GCJ=yes
17803       hardcode_libdir_separator_GCJ=':'
17804       link_all_deplibs_GCJ=yes
17806       if test "$GCC" = yes; then
17807         case $host_os in aix4.[012]|aix4.[012].*)
17808         # We only want to do this on AIX 4.2 and lower, the check
17809         # below for broken collect2 doesn't work under 4.3+
17810           collect2name=`${CC} -print-prog-name=collect2`
17811           if test -f "$collect2name" && \
17812            strings "$collect2name" | grep resolve_lib_name >/dev/null
17813           then
17814           # We have reworked collect2
17815           :
17816           else
17817           # We have old collect2
17818           hardcode_direct_GCJ=unsupported
17819           # It fails to find uninstalled libraries when the uninstalled
17820           # path is not listed in the libpath.  Setting hardcode_minus_L
17821           # to unsupported forces relinking
17822           hardcode_minus_L_GCJ=yes
17823           hardcode_libdir_flag_spec_GCJ='-L$libdir'
17824           hardcode_libdir_separator_GCJ=
17825           fi
17826           ;;
17827         esac
17828         shared_flag='-shared'
17829         if test "$aix_use_runtimelinking" = yes; then
17830           shared_flag="$shared_flag "'${wl}-G'
17831         fi
17832       else
17833         # not using gcc
17834         if test "$host_cpu" = ia64; then
17835         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17836         # chokes on -Wl,-G. The following line is correct:
17837           shared_flag='-G'
17838         else
17839           if test "$aix_use_runtimelinking" = yes; then
17840             shared_flag='${wl}-G'
17841           else
17842             shared_flag='${wl}-bM:SRE'
17843           fi
17844         fi
17845       fi
17847       # It seems that -bexpall does not export symbols beginning with
17848       # underscore (_), so it is better to generate a list of symbols to export.
17849       always_export_symbols_GCJ=yes
17850       if test "$aix_use_runtimelinking" = yes; then
17851         # Warning - without using the other runtime loading flags (-brtl),
17852         # -berok will link without error, but may produce a broken library.
17853         allow_undefined_flag_GCJ='-berok'
17854        # Determine the default libpath from the value encoded in an empty executable.
17855        cat >conftest.$ac_ext <<_ACEOF
17856 /* confdefs.h.  */
17857 _ACEOF
17858 cat confdefs.h >>conftest.$ac_ext
17859 cat >>conftest.$ac_ext <<_ACEOF
17860 /* end confdefs.h.  */
17862 int
17863 main ()
17866   ;
17867   return 0;
17869 _ACEOF
17870 rm -f conftest.$ac_objext conftest$ac_exeext
17871 if { (ac_try="$ac_link"
17872 case "(($ac_try" in
17873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17874   *) ac_try_echo=$ac_try;;
17875 esac
17876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17877   (eval "$ac_link") 2>conftest.er1
17878   ac_status=$?
17879   grep -v '^ *+' conftest.er1 >conftest.err
17880   rm -f conftest.er1
17881   cat conftest.err >&5
17882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17883   (exit $ac_status); } && {
17884          test -z "$ac_c_werror_flag" ||
17885          test ! -s conftest.err
17886        } && test -s conftest$ac_exeext &&
17887        $as_test_x conftest$ac_exeext; then
17889 lt_aix_libpath_sed='
17890     /Import File Strings/,/^$/ {
17891         /^0/ {
17892             s/^0  *\(.*\)$/\1/
17893             p
17894         }
17895     }'
17896 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17897 # Check for a 64-bit object if we didn't find anything.
17898 if test -z "$aix_libpath"; then
17899   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17901 else
17902   echo "$as_me: failed program was:" >&5
17903 sed 's/^/| /' conftest.$ac_ext >&5
17908 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17909       conftest$ac_exeext conftest.$ac_ext
17910 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17912        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17913         archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17914        else
17915         if test "$host_cpu" = ia64; then
17916           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17917           allow_undefined_flag_GCJ="-z nodefs"
17918           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
17919         else
17920          # Determine the default libpath from the value encoded in an empty executable.
17921          cat >conftest.$ac_ext <<_ACEOF
17922 /* confdefs.h.  */
17923 _ACEOF
17924 cat confdefs.h >>conftest.$ac_ext
17925 cat >>conftest.$ac_ext <<_ACEOF
17926 /* end confdefs.h.  */
17928 int
17929 main ()
17932   ;
17933   return 0;
17935 _ACEOF
17936 rm -f conftest.$ac_objext conftest$ac_exeext
17937 if { (ac_try="$ac_link"
17938 case "(($ac_try" in
17939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17940   *) ac_try_echo=$ac_try;;
17941 esac
17942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17943   (eval "$ac_link") 2>conftest.er1
17944   ac_status=$?
17945   grep -v '^ *+' conftest.er1 >conftest.err
17946   rm -f conftest.er1
17947   cat conftest.err >&5
17948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17949   (exit $ac_status); } && {
17950          test -z "$ac_c_werror_flag" ||
17951          test ! -s conftest.err
17952        } && test -s conftest$ac_exeext &&
17953        $as_test_x conftest$ac_exeext; then
17955 lt_aix_libpath_sed='
17956     /Import File Strings/,/^$/ {
17957         /^0/ {
17958             s/^0  *\(.*\)$/\1/
17959             p
17960         }
17961     }'
17962 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17963 # Check for a 64-bit object if we didn't find anything.
17964 if test -z "$aix_libpath"; then
17965   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17967 else
17968   echo "$as_me: failed program was:" >&5
17969 sed 's/^/| /' conftest.$ac_ext >&5
17974 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17975       conftest$ac_exeext conftest.$ac_ext
17976 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17978          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17979           # Warning - without using the other run time loading flags,
17980           # -berok will link without error, but may produce a broken library.
17981           no_undefined_flag_GCJ=' ${wl}-bernotok'
17982           allow_undefined_flag_GCJ=' ${wl}-berok'
17983           # Exported symbols can be pulled into shared objects from archives
17984           whole_archive_flag_spec_GCJ='$convenience'
17985           archive_cmds_need_lc_GCJ=yes
17986           # This is similar to how AIX traditionally builds its shared libraries.
17987           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
17988         fi
17989       fi
17990       ;;
17992     amigaos*)
17993       archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
17994       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17995       hardcode_minus_L_GCJ=yes
17996       # see comment about different semantics on the GNU ld section
17997       ld_shlibs_GCJ=no
17998       ;;
18000     bsdi[45]*)
18001       export_dynamic_flag_spec_GCJ=-rdynamic
18002       ;;
18004     cygwin* | mingw* | pw32*)
18005       # When not using gcc, we currently assume that we are using
18006       # Microsoft Visual C++.
18007       # hardcode_libdir_flag_spec is actually meaningless, as there is
18008       # no search path for DLLs.
18009       hardcode_libdir_flag_spec_GCJ=' '
18010       allow_undefined_flag_GCJ=unsupported
18011       # Tell ltmain to make .lib files, not .a files.
18012       libext=lib
18013       # Tell ltmain to make .dll files, not .so files.
18014       shrext_cmds=".dll"
18015       # FIXME: Setting linknames here is a bad hack.
18016       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18017       # The linker will automatically build a .lib file if we build a DLL.
18018       old_archive_From_new_cmds_GCJ='true'
18019       # FIXME: Should let the user specify the lib program.
18020       old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
18021       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18022       enable_shared_with_static_runtimes_GCJ=yes
18023       ;;
18025     darwin* | rhapsody*)
18026       case $host_os in
18027         rhapsody* | darwin1.[012])
18028          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18029          ;;
18030        *) # Darwin 1.3 on
18031          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18032            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18033          else
18034            case ${MACOSX_DEPLOYMENT_TARGET} in
18035              10.[012])
18036                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18037                ;;
18038              10.*)
18039                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18040                ;;
18041            esac
18042          fi
18043          ;;
18044       esac
18045       archive_cmds_need_lc_GCJ=no
18046       hardcode_direct_GCJ=no
18047       hardcode_automatic_GCJ=yes
18048       hardcode_shlibpath_var_GCJ=unsupported
18049       whole_archive_flag_spec_GCJ=''
18050       link_all_deplibs_GCJ=yes
18051     if test "$GCC" = yes ; then
18052         output_verbose_link_cmd='echo'
18053         archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
18054         module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18055         archive_expsym_cmds_GCJ="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}"
18056         module_expsym_cmds_GCJ="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}"
18057     else
18058       case $cc_basename in
18059         xlc*)
18060          output_verbose_link_cmd='echo'
18061          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
18062          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18063           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18064          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18065           module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18066           ;;
18067        *)
18068          ld_shlibs_GCJ=no
18069           ;;
18070       esac
18071     fi
18072       ;;
18074     dgux*)
18075       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18076       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18077       hardcode_shlibpath_var_GCJ=no
18078       ;;
18080     freebsd1*)
18081       ld_shlibs_GCJ=no
18082       ;;
18084     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18085     # support.  Future versions do this automatically, but an explicit c++rt0.o
18086     # does not break anything, and helps significantly (at the cost of a little
18087     # extra space).
18088     freebsd2.2*)
18089       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18090       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18091       hardcode_direct_GCJ=yes
18092       hardcode_shlibpath_var_GCJ=no
18093       ;;
18095     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18096     freebsd2*)
18097       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18098       hardcode_direct_GCJ=yes
18099       hardcode_minus_L_GCJ=yes
18100       hardcode_shlibpath_var_GCJ=no
18101       ;;
18103     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18104     freebsd* | dragonfly*)
18105       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18106       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18107       hardcode_direct_GCJ=yes
18108       hardcode_shlibpath_var_GCJ=no
18109       ;;
18111     hpux9*)
18112       if test "$GCC" = yes; then
18113         archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
18114       else
18115         archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
18116       fi
18117       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18118       hardcode_libdir_separator_GCJ=:
18119       hardcode_direct_GCJ=yes
18121       # hardcode_minus_L: Not really in the search PATH,
18122       # but as the default location of the library.
18123       hardcode_minus_L_GCJ=yes
18124       export_dynamic_flag_spec_GCJ='${wl}-E'
18125       ;;
18127     hpux10*)
18128       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18129         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18130       else
18131         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18132       fi
18133       if test "$with_gnu_ld" = no; then
18134         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18135         hardcode_libdir_separator_GCJ=:
18137         hardcode_direct_GCJ=yes
18138         export_dynamic_flag_spec_GCJ='${wl}-E'
18140         # hardcode_minus_L: Not really in the search PATH,
18141         # but as the default location of the library.
18142         hardcode_minus_L_GCJ=yes
18143       fi
18144       ;;
18146     hpux11*)
18147       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18148         case $host_cpu in
18149         hppa*64*)
18150           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18151           ;;
18152         ia64*)
18153           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18154           ;;
18155         *)
18156           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18157           ;;
18158         esac
18159       else
18160         case $host_cpu in
18161         hppa*64*)
18162           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18163           ;;
18164         ia64*)
18165           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18166           ;;
18167         *)
18168           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18169           ;;
18170         esac
18171       fi
18172       if test "$with_gnu_ld" = no; then
18173         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18174         hardcode_libdir_separator_GCJ=:
18176         case $host_cpu in
18177         hppa*64*|ia64*)
18178           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18179           hardcode_direct_GCJ=no
18180           hardcode_shlibpath_var_GCJ=no
18181           ;;
18182         *)
18183           hardcode_direct_GCJ=yes
18184           export_dynamic_flag_spec_GCJ='${wl}-E'
18186           # hardcode_minus_L: Not really in the search PATH,
18187           # but as the default location of the library.
18188           hardcode_minus_L_GCJ=yes
18189           ;;
18190         esac
18191       fi
18192       ;;
18194     irix5* | irix6* | nonstopux*)
18195       if test "$GCC" = yes; then
18196         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18197       else
18198         archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18199         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18200       fi
18201       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18202       hardcode_libdir_separator_GCJ=:
18203       link_all_deplibs_GCJ=yes
18204       ;;
18206     netbsd* | netbsdelf*-gnu)
18207       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18208         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18209       else
18210         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18211       fi
18212       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18213       hardcode_direct_GCJ=yes
18214       hardcode_shlibpath_var_GCJ=no
18215       ;;
18217     newsos6)
18218       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18219       hardcode_direct_GCJ=yes
18220       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18221       hardcode_libdir_separator_GCJ=:
18222       hardcode_shlibpath_var_GCJ=no
18223       ;;
18225     openbsd*)
18226       if test -f /usr/libexec/ld.so; then
18227         hardcode_direct_GCJ=yes
18228         hardcode_shlibpath_var_GCJ=no
18229         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18230           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18231           archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18232           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18233           export_dynamic_flag_spec_GCJ='${wl}-E'
18234         else
18235           case $host_os in
18236            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18237              archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18238              hardcode_libdir_flag_spec_GCJ='-R$libdir'
18239              ;;
18240            *)
18241              archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18242              hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18243              ;;
18244           esac
18245         fi
18246       else
18247         ld_shlibs_GCJ=no
18248       fi
18249       ;;
18251     os2*)
18252       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18253       hardcode_minus_L_GCJ=yes
18254       allow_undefined_flag_GCJ=unsupported
18255       archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
18256       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18257       ;;
18259     osf3*)
18260       if test "$GCC" = yes; then
18261         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18262         archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18263       else
18264         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18265         archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18266       fi
18267       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18268       hardcode_libdir_separator_GCJ=:
18269       ;;
18271     osf4* | osf5*)      # as osf3* with the addition of -msym flag
18272       if test "$GCC" = yes; then
18273         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18274         archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18275         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18276       else
18277         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18278         archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18279         archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
18280         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
18282         # Both c and cxx compiler support -rpath directly
18283         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18284       fi
18285       hardcode_libdir_separator_GCJ=:
18286       ;;
18288     solaris*)
18289       no_undefined_flag_GCJ=' -z text'
18290       if test "$GCC" = yes; then
18291         wlarc='${wl}'
18292         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18293         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18294           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18295       else
18296         wlarc=''
18297         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18298         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18299         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18300       fi
18301       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18302       hardcode_shlibpath_var_GCJ=no
18303       case $host_os in
18304       solaris2.[0-5] | solaris2.[0-5].*) ;;
18305       *)
18306         # The compiler driver will combine and reorder linker options,
18307         # but understands `-z linker_flag'.  GCC discards it without `$wl',
18308         # but is careful enough not to reorder.
18309         # Supported since Solaris 2.6 (maybe 2.5.1?)
18310         if test "$GCC" = yes; then
18311           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18312         else
18313           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18314         fi
18315         ;;
18316       esac
18317       link_all_deplibs_GCJ=yes
18318       ;;
18320     sunos4*)
18321       if test "x$host_vendor" = xsequent; then
18322         # Use $CC to link under sequent, because it throws in some extra .o
18323         # files that make .init and .fini sections work.
18324         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18325       else
18326         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18327       fi
18328       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18329       hardcode_direct_GCJ=yes
18330       hardcode_minus_L_GCJ=yes
18331       hardcode_shlibpath_var_GCJ=no
18332       ;;
18334     sysv4)
18335       case $host_vendor in
18336         sni)
18337           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18338           hardcode_direct_GCJ=yes # is this really true???
18339         ;;
18340         siemens)
18341           ## LD is ld it makes a PLAMLIB
18342           ## CC just makes a GrossModule.
18343           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18344           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18345           hardcode_direct_GCJ=no
18346         ;;
18347         motorola)
18348           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18349           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18350         ;;
18351       esac
18352       runpath_var='LD_RUN_PATH'
18353       hardcode_shlibpath_var_GCJ=no
18354       ;;
18356     sysv4.3*)
18357       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18358       hardcode_shlibpath_var_GCJ=no
18359       export_dynamic_flag_spec_GCJ='-Bexport'
18360       ;;
18362     sysv4*MP*)
18363       if test -d /usr/nec; then
18364         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18365         hardcode_shlibpath_var_GCJ=no
18366         runpath_var=LD_RUN_PATH
18367         hardcode_runpath_var=yes
18368         ld_shlibs_GCJ=yes
18369       fi
18370       ;;
18372     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18373       no_undefined_flag_GCJ='${wl}-z,text'
18374       archive_cmds_need_lc_GCJ=no
18375       hardcode_shlibpath_var_GCJ=no
18376       runpath_var='LD_RUN_PATH'
18378       if test "$GCC" = yes; then
18379         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18380         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18381       else
18382         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18383         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18384       fi
18385       ;;
18387     sysv5* | sco3.2v5* | sco5v6*)
18388       # Note: We can NOT use -z defs as we might desire, because we do not
18389       # link with -lc, and that would cause any symbols used from libc to
18390       # always be unresolved, which means just about no library would
18391       # ever link correctly.  If we're not using GNU ld we use -z text
18392       # though, which does catch some bad symbols but isn't as heavy-handed
18393       # as -z defs.
18394       no_undefined_flag_GCJ='${wl}-z,text'
18395       allow_undefined_flag_GCJ='${wl}-z,nodefs'
18396       archive_cmds_need_lc_GCJ=no
18397       hardcode_shlibpath_var_GCJ=no
18398       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18399       hardcode_libdir_separator_GCJ=':'
18400       link_all_deplibs_GCJ=yes
18401       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18402       runpath_var='LD_RUN_PATH'
18404       if test "$GCC" = yes; then
18405         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18406         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18407       else
18408         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18409         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18410       fi
18411       ;;
18413     uts4*)
18414       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18415       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18416       hardcode_shlibpath_var_GCJ=no
18417       ;;
18419     *)
18420       ld_shlibs_GCJ=no
18421       ;;
18422     esac
18423   fi
18425 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18426 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18427 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18430 # Do we need to explicitly link libc?
18432 case "x$archive_cmds_need_lc_GCJ" in
18433 x|xyes)
18434   # Assume -lc should be added
18435   archive_cmds_need_lc_GCJ=yes
18437   if test "$enable_shared" = yes && test "$GCC" = yes; then
18438     case $archive_cmds_GCJ in
18439     *'~'*)
18440       # FIXME: we may have to deal with multi-command sequences.
18441       ;;
18442     '$CC '*)
18443       # Test whether the compiler implicitly links with -lc since on some
18444       # systems, -lgcc has to come before -lc. If gcc already passes -lc
18445       # to ld, don't add -lc before -lgcc.
18446       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18447 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18448       $rm conftest*
18449       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18451       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18452   (eval $ac_compile) 2>&5
18453   ac_status=$?
18454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18455   (exit $ac_status); } 2>conftest.err; then
18456         soname=conftest
18457         lib=conftest
18458         libobjs=conftest.$ac_objext
18459         deplibs=
18460         wl=$lt_prog_compiler_wl_GCJ
18461         pic_flag=$lt_prog_compiler_pic_GCJ
18462         compiler_flags=-v
18463         linker_flags=-v
18464         verstring=
18465         output_objdir=.
18466         libname=conftest
18467         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18468         allow_undefined_flag_GCJ=
18469         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18470   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18471   ac_status=$?
18472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18473   (exit $ac_status); }
18474         then
18475           archive_cmds_need_lc_GCJ=no
18476         else
18477           archive_cmds_need_lc_GCJ=yes
18478         fi
18479         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18480       else
18481         cat conftest.err 1>&5
18482       fi
18483       $rm conftest*
18484       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18485 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18486       ;;
18487     esac
18488   fi
18489   ;;
18490 esac
18492 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18493 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18494 library_names_spec=
18495 libname_spec='lib$name'
18496 soname_spec=
18497 shrext_cmds=".so"
18498 postinstall_cmds=
18499 postuninstall_cmds=
18500 finish_cmds=
18501 finish_eval=
18502 shlibpath_var=
18503 shlibpath_overrides_runpath=unknown
18504 version_type=none
18505 dynamic_linker="$host_os ld.so"
18506 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18508 need_lib_prefix=unknown
18509 hardcode_into_libs=no
18511 # when you set need_version to no, make sure it does not cause -set_version
18512 # flags to be left without arguments
18513 need_version=unknown
18515 case $host_os in
18516 aix3*)
18517   version_type=linux
18518   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18519   shlibpath_var=LIBPATH
18521   # AIX 3 has no versioning support, so we append a major version to the name.
18522   soname_spec='${libname}${release}${shared_ext}$major'
18523   ;;
18525 aix[4-9]*)
18526   version_type=linux
18527   need_lib_prefix=no
18528   need_version=no
18529   hardcode_into_libs=yes
18530   if test "$host_cpu" = ia64; then
18531     # AIX 5 supports IA64
18532     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18533     shlibpath_var=LD_LIBRARY_PATH
18534   else
18535     # With GCC up to 2.95.x, collect2 would create an import file
18536     # for dependence libraries.  The import file would start with
18537     # the line `#! .'.  This would cause the generated library to
18538     # depend on `.', always an invalid library.  This was fixed in
18539     # development snapshots of GCC prior to 3.0.
18540     case $host_os in
18541       aix4 | aix4.[01] | aix4.[01].*)
18542       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18543            echo ' yes '
18544            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18545         :
18546       else
18547         can_build_shared=no
18548       fi
18549       ;;
18550     esac
18551     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18552     # soname into executable. Probably we can add versioning support to
18553     # collect2, so additional links can be useful in future.
18554     if test "$aix_use_runtimelinking" = yes; then
18555       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18556       # instead of lib<name>.a to let people know that these are not
18557       # typical AIX shared libraries.
18558       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18559     else
18560       # We preserve .a as extension for shared libraries through AIX4.2
18561       # and later when we are not doing run time linking.
18562       library_names_spec='${libname}${release}.a $libname.a'
18563       soname_spec='${libname}${release}${shared_ext}$major'
18564     fi
18565     shlibpath_var=LIBPATH
18566   fi
18567   ;;
18569 amigaos*)
18570   library_names_spec='$libname.ixlibrary $libname.a'
18571   # Create ${libname}_ixlibrary.a entries in /sys/libs.
18572   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'
18573   ;;
18575 beos*)
18576   library_names_spec='${libname}${shared_ext}'
18577   dynamic_linker="$host_os ld.so"
18578   shlibpath_var=LIBRARY_PATH
18579   ;;
18581 bsdi[45]*)
18582   version_type=linux
18583   need_version=no
18584   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18585   soname_spec='${libname}${release}${shared_ext}$major'
18586   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18587   shlibpath_var=LD_LIBRARY_PATH
18588   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18589   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18590   # the default ld.so.conf also contains /usr/contrib/lib and
18591   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18592   # libtool to hard-code these into programs
18593   ;;
18595 cygwin* | mingw* | pw32*)
18596   version_type=windows
18597   shrext_cmds=".dll"
18598   need_version=no
18599   need_lib_prefix=no
18601   case $GCC,$host_os in
18602   yes,cygwin* | yes,mingw* | yes,pw32*)
18603     library_names_spec='$libname.dll.a'
18604     # DLL is installed to $(libdir)/../bin by postinstall_cmds
18605     postinstall_cmds='base_file=`basename \${file}`~
18606       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18607       dldir=$destdir/`dirname \$dlpath`~
18608       test -d \$dldir || mkdir -p \$dldir~
18609       $install_prog $dir/$dlname \$dldir/$dlname~
18610       chmod a+x \$dldir/$dlname'
18611     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18612       dlpath=$dir/\$dldll~
18613        $rm \$dlpath'
18614     shlibpath_overrides_runpath=yes
18616     case $host_os in
18617     cygwin*)
18618       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18619       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18620       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18621       ;;
18622     mingw*)
18623       # MinGW DLLs use traditional 'lib' prefix
18624       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18625       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18626       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18627         # It is most probably a Windows format PATH printed by
18628         # mingw gcc, but we are running on Cygwin. Gcc prints its search
18629         # path with ; separators, and with drive letters. We can handle the
18630         # drive letters (cygwin fileutils understands them), so leave them,
18631         # especially as we might pass files found there to a mingw objdump,
18632         # which wouldn't understand a cygwinified path. Ahh.
18633         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18634       else
18635         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18636       fi
18637       ;;
18638     pw32*)
18639       # pw32 DLLs use 'pw' prefix rather than 'lib'
18640       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18641       ;;
18642     esac
18643     ;;
18645   *)
18646     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18647     ;;
18648   esac
18649   dynamic_linker='Win32 ld.exe'
18650   # FIXME: first we should search . and the directory the executable is in
18651   shlibpath_var=PATH
18652   ;;
18654 darwin* | rhapsody*)
18655   dynamic_linker="$host_os dyld"
18656   version_type=darwin
18657   need_lib_prefix=no
18658   need_version=no
18659   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18660   soname_spec='${libname}${release}${major}$shared_ext'
18661   shlibpath_overrides_runpath=yes
18662   shlibpath_var=DYLD_LIBRARY_PATH
18663   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18665   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18666   ;;
18668 dgux*)
18669   version_type=linux
18670   need_lib_prefix=no
18671   need_version=no
18672   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18673   soname_spec='${libname}${release}${shared_ext}$major'
18674   shlibpath_var=LD_LIBRARY_PATH
18675   ;;
18677 freebsd1*)
18678   dynamic_linker=no
18679   ;;
18681 freebsd* | dragonfly*)
18682   # DragonFly does not have aout.  When/if they implement a new
18683   # versioning mechanism, adjust this.
18684   if test -x /usr/bin/objformat; then
18685     objformat=`/usr/bin/objformat`
18686   else
18687     case $host_os in
18688     freebsd[123]*) objformat=aout ;;
18689     *) objformat=elf ;;
18690     esac
18691   fi
18692   version_type=freebsd-$objformat
18693   case $version_type in
18694     freebsd-elf*)
18695       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18696       need_version=no
18697       need_lib_prefix=no
18698       ;;
18699     freebsd-*)
18700       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18701       need_version=yes
18702       ;;
18703   esac
18704   shlibpath_var=LD_LIBRARY_PATH
18705   case $host_os in
18706   freebsd2*)
18707     shlibpath_overrides_runpath=yes
18708     ;;
18709   freebsd3.[01]* | freebsdelf3.[01]*)
18710     shlibpath_overrides_runpath=yes
18711     hardcode_into_libs=yes
18712     ;;
18713   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18714   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18715     shlibpath_overrides_runpath=no
18716     hardcode_into_libs=yes
18717     ;;
18718   *) # from 4.6 on, and DragonFly
18719     shlibpath_overrides_runpath=yes
18720     hardcode_into_libs=yes
18721     ;;
18722   esac
18723   ;;
18725 gnu*)
18726   version_type=linux
18727   need_lib_prefix=no
18728   need_version=no
18729   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18730   soname_spec='${libname}${release}${shared_ext}$major'
18731   shlibpath_var=LD_LIBRARY_PATH
18732   hardcode_into_libs=yes
18733   ;;
18735 hpux9* | hpux10* | hpux11*)
18736   # Give a soname corresponding to the major version so that dld.sl refuses to
18737   # link against other versions.
18738   version_type=sunos
18739   need_lib_prefix=no
18740   need_version=no
18741   case $host_cpu in
18742   ia64*)
18743     shrext_cmds='.so'
18744     hardcode_into_libs=yes
18745     dynamic_linker="$host_os dld.so"
18746     shlibpath_var=LD_LIBRARY_PATH
18747     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18748     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18749     soname_spec='${libname}${release}${shared_ext}$major'
18750     if test "X$HPUX_IA64_MODE" = X32; then
18751       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18752     else
18753       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18754     fi
18755     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18756     ;;
18757    hppa*64*)
18758      shrext_cmds='.sl'
18759      hardcode_into_libs=yes
18760      dynamic_linker="$host_os dld.sl"
18761      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18762      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18763      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18764      soname_spec='${libname}${release}${shared_ext}$major'
18765      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18766      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18767      ;;
18768    *)
18769     shrext_cmds='.sl'
18770     dynamic_linker="$host_os dld.sl"
18771     shlibpath_var=SHLIB_PATH
18772     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18773     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18774     soname_spec='${libname}${release}${shared_ext}$major'
18775     ;;
18776   esac
18777   # HP-UX runs *really* slowly unless shared libraries are mode 555.
18778   postinstall_cmds='chmod 555 $lib'
18779   ;;
18781 interix[3-9]*)
18782   version_type=linux
18783   need_lib_prefix=no
18784   need_version=no
18785   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18786   soname_spec='${libname}${release}${shared_ext}$major'
18787   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18788   shlibpath_var=LD_LIBRARY_PATH
18789   shlibpath_overrides_runpath=no
18790   hardcode_into_libs=yes
18791   ;;
18793 irix5* | irix6* | nonstopux*)
18794   case $host_os in
18795     nonstopux*) version_type=nonstopux ;;
18796     *)
18797         if test "$lt_cv_prog_gnu_ld" = yes; then
18798                 version_type=linux
18799         else
18800                 version_type=irix
18801         fi ;;
18802   esac
18803   need_lib_prefix=no
18804   need_version=no
18805   soname_spec='${libname}${release}${shared_ext}$major'
18806   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18807   case $host_os in
18808   irix5* | nonstopux*)
18809     libsuff= shlibsuff=
18810     ;;
18811   *)
18812     case $LD in # libtool.m4 will add one of these switches to LD
18813     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18814       libsuff= shlibsuff= libmagic=32-bit;;
18815     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18816       libsuff=32 shlibsuff=N32 libmagic=N32;;
18817     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18818       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18819     *) libsuff= shlibsuff= libmagic=never-match;;
18820     esac
18821     ;;
18822   esac
18823   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18824   shlibpath_overrides_runpath=no
18825   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18826   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18827   hardcode_into_libs=yes
18828   ;;
18830 # No shared lib support for Linux oldld, aout, or coff.
18831 linux*oldld* | linux*aout* | linux*coff*)
18832   dynamic_linker=no
18833   ;;
18835 # This must be Linux ELF.
18836 linux* | k*bsd*-gnu)
18837   version_type=linux
18838   need_lib_prefix=no
18839   need_version=no
18840   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18841   soname_spec='${libname}${release}${shared_ext}$major'
18842   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18843   shlibpath_var=LD_LIBRARY_PATH
18844   shlibpath_overrides_runpath=no
18845   # This implies no fast_install, which is unacceptable.
18846   # Some rework will be needed to allow for fast_install
18847   # before this can be enabled.
18848   hardcode_into_libs=yes
18850   # Append ld.so.conf contents to the search path
18851   if test -f /etc/ld.so.conf; then
18852     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' ' '`
18853     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18854   fi
18856   # We used to test for /lib/ld.so.1 and disable shared libraries on
18857   # powerpc, because MkLinux only supported shared libraries with the
18858   # GNU dynamic linker.  Since this was broken with cross compilers,
18859   # most powerpc-linux boxes support dynamic linking these days and
18860   # people can always --disable-shared, the test was removed, and we
18861   # assume the GNU/Linux dynamic linker is in use.
18862   dynamic_linker='GNU/Linux ld.so'
18863   ;;
18865 netbsdelf*-gnu)
18866   version_type=linux
18867   need_lib_prefix=no
18868   need_version=no
18869   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18870   soname_spec='${libname}${release}${shared_ext}$major'
18871   shlibpath_var=LD_LIBRARY_PATH
18872   shlibpath_overrides_runpath=no
18873   hardcode_into_libs=yes
18874   dynamic_linker='NetBSD ld.elf_so'
18875   ;;
18877 netbsd*)
18878   version_type=sunos
18879   need_lib_prefix=no
18880   need_version=no
18881   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18882     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18883     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18884     dynamic_linker='NetBSD (a.out) ld.so'
18885   else
18886     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18887     soname_spec='${libname}${release}${shared_ext}$major'
18888     dynamic_linker='NetBSD ld.elf_so'
18889   fi
18890   shlibpath_var=LD_LIBRARY_PATH
18891   shlibpath_overrides_runpath=yes
18892   hardcode_into_libs=yes
18893   ;;
18895 newsos6)
18896   version_type=linux
18897   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18898   shlibpath_var=LD_LIBRARY_PATH
18899   shlibpath_overrides_runpath=yes
18900   ;;
18902 nto-qnx*)
18903   version_type=linux
18904   need_lib_prefix=no
18905   need_version=no
18906   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18907   soname_spec='${libname}${release}${shared_ext}$major'
18908   shlibpath_var=LD_LIBRARY_PATH
18909   shlibpath_overrides_runpath=yes
18910   ;;
18912 openbsd*)
18913   version_type=sunos
18914   sys_lib_dlsearch_path_spec="/usr/lib"
18915   need_lib_prefix=no
18916   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18917   case $host_os in
18918     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18919     *)                         need_version=no  ;;
18920   esac
18921   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18922   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18923   shlibpath_var=LD_LIBRARY_PATH
18924   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18925     case $host_os in
18926       openbsd2.[89] | openbsd2.[89].*)
18927         shlibpath_overrides_runpath=no
18928         ;;
18929       *)
18930         shlibpath_overrides_runpath=yes
18931         ;;
18932       esac
18933   else
18934     shlibpath_overrides_runpath=yes
18935   fi
18936   ;;
18938 os2*)
18939   libname_spec='$name'
18940   shrext_cmds=".dll"
18941   need_lib_prefix=no
18942   library_names_spec='$libname${shared_ext} $libname.a'
18943   dynamic_linker='OS/2 ld.exe'
18944   shlibpath_var=LIBPATH
18945   ;;
18947 osf3* | osf4* | osf5*)
18948   version_type=osf
18949   need_lib_prefix=no
18950   need_version=no
18951   soname_spec='${libname}${release}${shared_ext}$major'
18952   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18953   shlibpath_var=LD_LIBRARY_PATH
18954   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18955   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18956   ;;
18958 rdos*)
18959   dynamic_linker=no
18960   ;;
18962 solaris*)
18963   version_type=linux
18964   need_lib_prefix=no
18965   need_version=no
18966   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18967   soname_spec='${libname}${release}${shared_ext}$major'
18968   shlibpath_var=LD_LIBRARY_PATH
18969   shlibpath_overrides_runpath=yes
18970   hardcode_into_libs=yes
18971   # ldd complains unless libraries are executable
18972   postinstall_cmds='chmod +x $lib'
18973   ;;
18975 sunos4*)
18976   version_type=sunos
18977   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18978   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18979   shlibpath_var=LD_LIBRARY_PATH
18980   shlibpath_overrides_runpath=yes
18981   if test "$with_gnu_ld" = yes; then
18982     need_lib_prefix=no
18983   fi
18984   need_version=yes
18985   ;;
18987 sysv4 | sysv4.3*)
18988   version_type=linux
18989   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18990   soname_spec='${libname}${release}${shared_ext}$major'
18991   shlibpath_var=LD_LIBRARY_PATH
18992   case $host_vendor in
18993     sni)
18994       shlibpath_overrides_runpath=no
18995       need_lib_prefix=no
18996       export_dynamic_flag_spec='${wl}-Blargedynsym'
18997       runpath_var=LD_RUN_PATH
18998       ;;
18999     siemens)
19000       need_lib_prefix=no
19001       ;;
19002     motorola)
19003       need_lib_prefix=no
19004       need_version=no
19005       shlibpath_overrides_runpath=no
19006       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19007       ;;
19008   esac
19009   ;;
19011 sysv4*MP*)
19012   if test -d /usr/nec ;then
19013     version_type=linux
19014     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19015     soname_spec='$libname${shared_ext}.$major'
19016     shlibpath_var=LD_LIBRARY_PATH
19017   fi
19018   ;;
19020 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19021   version_type=freebsd-elf
19022   need_lib_prefix=no
19023   need_version=no
19024   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19025   soname_spec='${libname}${release}${shared_ext}$major'
19026   shlibpath_var=LD_LIBRARY_PATH
19027   hardcode_into_libs=yes
19028   if test "$with_gnu_ld" = yes; then
19029     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19030     shlibpath_overrides_runpath=no
19031   else
19032     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19033     shlibpath_overrides_runpath=yes
19034     case $host_os in
19035       sco3.2v5*)
19036         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19037         ;;
19038     esac
19039   fi
19040   sys_lib_dlsearch_path_spec='/usr/lib'
19041   ;;
19043 uts4*)
19044   version_type=linux
19045   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19046   soname_spec='${libname}${release}${shared_ext}$major'
19047   shlibpath_var=LD_LIBRARY_PATH
19048   ;;
19051   dynamic_linker=no
19052   ;;
19053 esac
19054 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19055 echo "${ECHO_T}$dynamic_linker" >&6; }
19056 test "$dynamic_linker" = no && can_build_shared=no
19058 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19059   echo $ECHO_N "(cached) $ECHO_C" >&6
19060 else
19061   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
19064 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19065 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19066   echo $ECHO_N "(cached) $ECHO_C" >&6
19067 else
19068   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
19071 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19073 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19074 if test "$GCC" = yes; then
19075   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19078 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19079 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
19080 hardcode_action_GCJ=
19081 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19082    test -n "$runpath_var_GCJ" || \
19083    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19085   # We can hardcode non-existant directories.
19086   if test "$hardcode_direct_GCJ" != no &&
19087      # If the only mechanism to avoid hardcoding is shlibpath_var, we
19088      # have to relink, otherwise we might link with an installed library
19089      # when we should be linking with a yet-to-be-installed one
19090      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19091      test "$hardcode_minus_L_GCJ" != no; then
19092     # Linking always hardcodes the temporary library directory.
19093     hardcode_action_GCJ=relink
19094   else
19095     # We can link without hardcoding, and we can hardcode nonexisting dirs.
19096     hardcode_action_GCJ=immediate
19097   fi
19098 else
19099   # We cannot hardcode anything, or else we can only hardcode existing
19100   # directories.
19101   hardcode_action_GCJ=unsupported
19103 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19104 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
19106 if test "$hardcode_action_GCJ" = relink; then
19107   # Fast installation is not supported
19108   enable_fast_install=no
19109 elif test "$shlibpath_overrides_runpath" = yes ||
19110      test "$enable_shared" = no; then
19111   # Fast installation is not necessary
19112   enable_fast_install=needless
19116 # The else clause should only fire when bootstrapping the
19117 # libtool distribution, otherwise you forgot to ship ltmain.sh
19118 # with your package, and you will get complaints that there are
19119 # no rules to generate ltmain.sh.
19120 if test -f "$ltmain"; then
19121   # See if we are running on zsh, and set the options which allow our commands through
19122   # without removal of \ escapes.
19123   if test -n "${ZSH_VERSION+set}" ; then
19124     setopt NO_GLOB_SUBST
19125   fi
19126   # Now quote all the things that may contain metacharacters while being
19127   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19128   # variables and quote the copies for generation of the libtool script.
19129   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19130     SED SHELL STRIP \
19131     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19132     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19133     deplibs_check_method reload_flag reload_cmds need_locks \
19134     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19135     lt_cv_sys_global_symbol_to_c_name_address \
19136     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19137     old_postinstall_cmds old_postuninstall_cmds \
19138     compiler_GCJ \
19139     CC_GCJ \
19140     LD_GCJ \
19141     lt_prog_compiler_wl_GCJ \
19142     lt_prog_compiler_pic_GCJ \
19143     lt_prog_compiler_static_GCJ \
19144     lt_prog_compiler_no_builtin_flag_GCJ \
19145     export_dynamic_flag_spec_GCJ \
19146     thread_safe_flag_spec_GCJ \
19147     whole_archive_flag_spec_GCJ \
19148     enable_shared_with_static_runtimes_GCJ \
19149     old_archive_cmds_GCJ \
19150     old_archive_from_new_cmds_GCJ \
19151     predep_objects_GCJ \
19152     postdep_objects_GCJ \
19153     predeps_GCJ \
19154     postdeps_GCJ \
19155     compiler_lib_search_path_GCJ \
19156     compiler_lib_search_dirs_GCJ \
19157     archive_cmds_GCJ \
19158     archive_expsym_cmds_GCJ \
19159     postinstall_cmds_GCJ \
19160     postuninstall_cmds_GCJ \
19161     old_archive_from_expsyms_cmds_GCJ \
19162     allow_undefined_flag_GCJ \
19163     no_undefined_flag_GCJ \
19164     export_symbols_cmds_GCJ \
19165     hardcode_libdir_flag_spec_GCJ \
19166     hardcode_libdir_flag_spec_ld_GCJ \
19167     hardcode_libdir_separator_GCJ \
19168     hardcode_automatic_GCJ \
19169     module_cmds_GCJ \
19170     module_expsym_cmds_GCJ \
19171     lt_cv_prog_compiler_c_o_GCJ \
19172     fix_srcfile_path_GCJ \
19173     exclude_expsyms_GCJ \
19174     include_expsyms_GCJ; do
19176     case $var in
19177     old_archive_cmds_GCJ | \
19178     old_archive_from_new_cmds_GCJ | \
19179     archive_cmds_GCJ | \
19180     archive_expsym_cmds_GCJ | \
19181     module_cmds_GCJ | \
19182     module_expsym_cmds_GCJ | \
19183     old_archive_from_expsyms_cmds_GCJ | \
19184     export_symbols_cmds_GCJ | \
19185     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19186     postinstall_cmds | postuninstall_cmds | \
19187     old_postinstall_cmds | old_postuninstall_cmds | \
19188     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19189       # Double-quote double-evaled strings.
19190       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19191       ;;
19192     *)
19193       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19194       ;;
19195     esac
19196   done
19198   case $lt_echo in
19199   *'\$0 --fallback-echo"')
19200     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19201     ;;
19202   esac
19204 cfgfile="$ofile"
19206   cat <<__EOF__ >> "$cfgfile"
19207 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19209 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19211 # Shell to use when invoking shell scripts.
19212 SHELL=$lt_SHELL
19214 # Whether or not to build shared libraries.
19215 build_libtool_libs=$enable_shared
19217 # Whether or not to build static libraries.
19218 build_old_libs=$enable_static
19220 # Whether or not to add -lc for building shared libraries.
19221 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19223 # Whether or not to disallow shared libs when runtime libs are static
19224 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19226 # Whether or not to optimize for fast installation.
19227 fast_install=$enable_fast_install
19229 # The host system.
19230 host_alias=$host_alias
19231 host=$host
19232 host_os=$host_os
19234 # The build system.
19235 build_alias=$build_alias
19236 build=$build
19237 build_os=$build_os
19239 # An echo program that does not interpret backslashes.
19240 echo=$lt_echo
19242 # The archiver.
19243 AR=$lt_AR
19244 AR_FLAGS=$lt_AR_FLAGS
19246 # A C compiler.
19247 LTCC=$lt_LTCC
19249 # LTCC compiler flags.
19250 LTCFLAGS=$lt_LTCFLAGS
19252 # A language-specific compiler.
19253 CC=$lt_compiler_GCJ
19255 # Is the compiler the GNU C compiler?
19256 with_gcc=$GCC_GCJ
19258 # An ERE matcher.
19259 EGREP=$lt_EGREP
19261 # The linker used to build libraries.
19262 LD=$lt_LD_GCJ
19264 # Whether we need hard or soft links.
19265 LN_S=$lt_LN_S
19267 # A BSD-compatible nm program.
19268 NM=$lt_NM
19270 # A symbol stripping program
19271 STRIP=$lt_STRIP
19273 # Used to examine libraries when file_magic_cmd begins "file"
19274 MAGIC_CMD=$MAGIC_CMD
19276 # Used on cygwin: DLL creation program.
19277 DLLTOOL="$DLLTOOL"
19279 # Used on cygwin: object dumper.
19280 OBJDUMP="$OBJDUMP"
19282 # Used on cygwin: assembler.
19283 AS="$AS"
19285 # The name of the directory that contains temporary libtool files.
19286 objdir=$objdir
19288 # How to create reloadable object files.
19289 reload_flag=$lt_reload_flag
19290 reload_cmds=$lt_reload_cmds
19292 # How to pass a linker flag through the compiler.
19293 wl=$lt_lt_prog_compiler_wl_GCJ
19295 # Object file suffix (normally "o").
19296 objext="$ac_objext"
19298 # Old archive suffix (normally "a").
19299 libext="$libext"
19301 # Shared library suffix (normally ".so").
19302 shrext_cmds='$shrext_cmds'
19304 # Executable file suffix (normally "").
19305 exeext="$exeext"
19307 # Additional compiler flags for building library objects.
19308 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19309 pic_mode=$pic_mode
19311 # What is the maximum length of a command?
19312 max_cmd_len=$lt_cv_sys_max_cmd_len
19314 # Does compiler simultaneously support -c and -o options?
19315 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19317 # Must we lock files when doing compilation?
19318 need_locks=$lt_need_locks
19320 # Do we need the lib prefix for modules?
19321 need_lib_prefix=$need_lib_prefix
19323 # Do we need a version for libraries?
19324 need_version=$need_version
19326 # Whether dlopen is supported.
19327 dlopen_support=$enable_dlopen
19329 # Whether dlopen of programs is supported.
19330 dlopen_self=$enable_dlopen_self
19332 # Whether dlopen of statically linked programs is supported.
19333 dlopen_self_static=$enable_dlopen_self_static
19335 # Compiler flag to prevent dynamic linking.
19336 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19338 # Compiler flag to turn off builtin functions.
19339 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19341 # Compiler flag to allow reflexive dlopens.
19342 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19344 # Compiler flag to generate shared objects directly from archives.
19345 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19347 # Compiler flag to generate thread-safe objects.
19348 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19350 # Library versioning type.
19351 version_type=$version_type
19353 # Format of library name prefix.
19354 libname_spec=$lt_libname_spec
19356 # List of archive names.  First name is the real one, the rest are links.
19357 # The last name is the one that the linker finds with -lNAME.
19358 library_names_spec=$lt_library_names_spec
19360 # The coded name of the library, if different from the real name.
19361 soname_spec=$lt_soname_spec
19363 # Commands used to build and install an old-style archive.
19364 RANLIB=$lt_RANLIB
19365 old_archive_cmds=$lt_old_archive_cmds_GCJ
19366 old_postinstall_cmds=$lt_old_postinstall_cmds
19367 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19369 # Create an old-style archive from a shared archive.
19370 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19372 # Create a temporary old-style archive to link instead of a shared archive.
19373 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19375 # Commands used to build and install a shared archive.
19376 archive_cmds=$lt_archive_cmds_GCJ
19377 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19378 postinstall_cmds=$lt_postinstall_cmds
19379 postuninstall_cmds=$lt_postuninstall_cmds
19381 # Commands used to build a loadable module (assumed same as above if empty)
19382 module_cmds=$lt_module_cmds_GCJ
19383 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19385 # Commands to strip libraries.
19386 old_striplib=$lt_old_striplib
19387 striplib=$lt_striplib
19389 # Dependencies to place before the objects being linked to create a
19390 # shared library.
19391 predep_objects=$lt_predep_objects_GCJ
19393 # Dependencies to place after the objects being linked to create a
19394 # shared library.
19395 postdep_objects=$lt_postdep_objects_GCJ
19397 # Dependencies to place before the objects being linked to create a
19398 # shared library.
19399 predeps=$lt_predeps_GCJ
19401 # Dependencies to place after the objects being linked to create a
19402 # shared library.
19403 postdeps=$lt_postdeps_GCJ
19405 # The directories searched by this compiler when creating a shared
19406 # library
19407 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19409 # The library search path used internally by the compiler when linking
19410 # a shared library.
19411 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19413 # Method to check whether dependent libraries are shared objects.
19414 deplibs_check_method=$lt_deplibs_check_method
19416 # Command to use when deplibs_check_method == file_magic.
19417 file_magic_cmd=$lt_file_magic_cmd
19419 # Flag that allows shared libraries with undefined symbols to be built.
19420 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19422 # Flag that forces no undefined symbols.
19423 no_undefined_flag=$lt_no_undefined_flag_GCJ
19425 # Commands used to finish a libtool library installation in a directory.
19426 finish_cmds=$lt_finish_cmds
19428 # Same as above, but a single script fragment to be evaled but not shown.
19429 finish_eval=$lt_finish_eval
19431 # Take the output of nm and produce a listing of raw symbols and C names.
19432 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19434 # Transform the output of nm in a proper C declaration
19435 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19437 # Transform the output of nm in a C name address pair
19438 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19440 # This is the shared library runtime path variable.
19441 runpath_var=$runpath_var
19443 # This is the shared library path variable.
19444 shlibpath_var=$shlibpath_var
19446 # Is shlibpath searched before the hard-coded library search path?
19447 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19449 # How to hardcode a shared library path into an executable.
19450 hardcode_action=$hardcode_action_GCJ
19452 # Whether we should hardcode library paths into libraries.
19453 hardcode_into_libs=$hardcode_into_libs
19455 # Flag to hardcode \$libdir into a binary during linking.
19456 # This must work even if \$libdir does not exist.
19457 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19459 # If ld is used when linking, flag to hardcode \$libdir into
19460 # a binary during linking. This must work even if \$libdir does
19461 # not exist.
19462 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19464 # Whether we need a single -rpath flag with a separated argument.
19465 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19467 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19468 # resulting binary.
19469 hardcode_direct=$hardcode_direct_GCJ
19471 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19472 # resulting binary.
19473 hardcode_minus_L=$hardcode_minus_L_GCJ
19475 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19476 # the resulting binary.
19477 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19479 # Set to yes if building a shared library automatically hardcodes DIR into the library
19480 # and all subsequent libraries and executables linked against it.
19481 hardcode_automatic=$hardcode_automatic_GCJ
19483 # Variables whose values should be saved in libtool wrapper scripts and
19484 # restored at relink time.
19485 variables_saved_for_relink="$variables_saved_for_relink"
19487 # Whether libtool must link a program against all its dependency libraries.
19488 link_all_deplibs=$link_all_deplibs_GCJ
19490 # Compile-time system search path for libraries
19491 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19493 # Run-time system search path for libraries
19494 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19496 # Fix the shell variable \$srcfile for the compiler.
19497 fix_srcfile_path=$lt_fix_srcfile_path
19499 # Set to yes if exported symbols are required.
19500 always_export_symbols=$always_export_symbols_GCJ
19502 # The commands to list exported symbols.
19503 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19505 # The commands to extract the exported symbol list from a shared archive.
19506 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19508 # Symbols that should not be listed in the preloaded symbols.
19509 exclude_expsyms=$lt_exclude_expsyms_GCJ
19511 # Symbols that must always be exported.
19512 include_expsyms=$lt_include_expsyms_GCJ
19514 # ### END LIBTOOL TAG CONFIG: $tagname
19516 __EOF__
19519 else
19520   # If there is no Makefile yet, we rely on a make rule to execute
19521   # `config.status --recheck' to rerun these tests and create the
19522   # libtool script then.
19523   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19524   if test -f "$ltmain_in"; then
19525     test -f Makefile && make "$ltmain"
19526   fi
19530 ac_ext=c
19531 ac_cpp='$CPP $CPPFLAGS'
19532 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19533 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19534 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19536 CC="$lt_save_CC"
19538         else
19539           tagname=""
19540         fi
19541         ;;
19543       RC)
19546 # Source file extension for RC test sources.
19547 ac_ext=rc
19549 # Object file extension for compiled RC test sources.
19550 objext=o
19551 objext_RC=$objext
19553 # Code to be used in simple compile tests
19554 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19556 # Code to be used in simple link tests
19557 lt_simple_link_test_code="$lt_simple_compile_test_code"
19559 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19561 # If no C compiler was specified, use CC.
19562 LTCC=${LTCC-"$CC"}
19564 # If no C compiler flags were specified, use CFLAGS.
19565 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19567 # Allow CC to be a program name with arguments.
19568 compiler=$CC
19571 # save warnings/boilerplate of simple test code
19572 ac_outfile=conftest.$ac_objext
19573 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19574 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19575 _lt_compiler_boilerplate=`cat conftest.err`
19576 $rm conftest*
19578 ac_outfile=conftest.$ac_objext
19579 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19580 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19581 _lt_linker_boilerplate=`cat conftest.err`
19582 $rm -r conftest*
19585 # Allow CC to be a program name with arguments.
19586 lt_save_CC="$CC"
19587 CC=${RC-"windres"}
19588 compiler=$CC
19589 compiler_RC=$CC
19590 for cc_temp in $compiler""; do
19591   case $cc_temp in
19592     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19593     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19594     \-*) ;;
19595     *) break;;
19596   esac
19597 done
19598 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19600 lt_cv_prog_compiler_c_o_RC=yes
19602 # The else clause should only fire when bootstrapping the
19603 # libtool distribution, otherwise you forgot to ship ltmain.sh
19604 # with your package, and you will get complaints that there are
19605 # no rules to generate ltmain.sh.
19606 if test -f "$ltmain"; then
19607   # See if we are running on zsh, and set the options which allow our commands through
19608   # without removal of \ escapes.
19609   if test -n "${ZSH_VERSION+set}" ; then
19610     setopt NO_GLOB_SUBST
19611   fi
19612   # Now quote all the things that may contain metacharacters while being
19613   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19614   # variables and quote the copies for generation of the libtool script.
19615   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19616     SED SHELL STRIP \
19617     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19618     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19619     deplibs_check_method reload_flag reload_cmds need_locks \
19620     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19621     lt_cv_sys_global_symbol_to_c_name_address \
19622     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19623     old_postinstall_cmds old_postuninstall_cmds \
19624     compiler_RC \
19625     CC_RC \
19626     LD_RC \
19627     lt_prog_compiler_wl_RC \
19628     lt_prog_compiler_pic_RC \
19629     lt_prog_compiler_static_RC \
19630     lt_prog_compiler_no_builtin_flag_RC \
19631     export_dynamic_flag_spec_RC \
19632     thread_safe_flag_spec_RC \
19633     whole_archive_flag_spec_RC \
19634     enable_shared_with_static_runtimes_RC \
19635     old_archive_cmds_RC \
19636     old_archive_from_new_cmds_RC \
19637     predep_objects_RC \
19638     postdep_objects_RC \
19639     predeps_RC \
19640     postdeps_RC \
19641     compiler_lib_search_path_RC \
19642     compiler_lib_search_dirs_RC \
19643     archive_cmds_RC \
19644     archive_expsym_cmds_RC \
19645     postinstall_cmds_RC \
19646     postuninstall_cmds_RC \
19647     old_archive_from_expsyms_cmds_RC \
19648     allow_undefined_flag_RC \
19649     no_undefined_flag_RC \
19650     export_symbols_cmds_RC \
19651     hardcode_libdir_flag_spec_RC \
19652     hardcode_libdir_flag_spec_ld_RC \
19653     hardcode_libdir_separator_RC \
19654     hardcode_automatic_RC \
19655     module_cmds_RC \
19656     module_expsym_cmds_RC \
19657     lt_cv_prog_compiler_c_o_RC \
19658     fix_srcfile_path_RC \
19659     exclude_expsyms_RC \
19660     include_expsyms_RC; do
19662     case $var in
19663     old_archive_cmds_RC | \
19664     old_archive_from_new_cmds_RC | \
19665     archive_cmds_RC | \
19666     archive_expsym_cmds_RC | \
19667     module_cmds_RC | \
19668     module_expsym_cmds_RC | \
19669     old_archive_from_expsyms_cmds_RC | \
19670     export_symbols_cmds_RC | \
19671     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19672     postinstall_cmds | postuninstall_cmds | \
19673     old_postinstall_cmds | old_postuninstall_cmds | \
19674     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19675       # Double-quote double-evaled strings.
19676       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19677       ;;
19678     *)
19679       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19680       ;;
19681     esac
19682   done
19684   case $lt_echo in
19685   *'\$0 --fallback-echo"')
19686     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19687     ;;
19688   esac
19690 cfgfile="$ofile"
19692   cat <<__EOF__ >> "$cfgfile"
19693 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19695 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19697 # Shell to use when invoking shell scripts.
19698 SHELL=$lt_SHELL
19700 # Whether or not to build shared libraries.
19701 build_libtool_libs=$enable_shared
19703 # Whether or not to build static libraries.
19704 build_old_libs=$enable_static
19706 # Whether or not to add -lc for building shared libraries.
19707 build_libtool_need_lc=$archive_cmds_need_lc_RC
19709 # Whether or not to disallow shared libs when runtime libs are static
19710 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19712 # Whether or not to optimize for fast installation.
19713 fast_install=$enable_fast_install
19715 # The host system.
19716 host_alias=$host_alias
19717 host=$host
19718 host_os=$host_os
19720 # The build system.
19721 build_alias=$build_alias
19722 build=$build
19723 build_os=$build_os
19725 # An echo program that does not interpret backslashes.
19726 echo=$lt_echo
19728 # The archiver.
19729 AR=$lt_AR
19730 AR_FLAGS=$lt_AR_FLAGS
19732 # A C compiler.
19733 LTCC=$lt_LTCC
19735 # LTCC compiler flags.
19736 LTCFLAGS=$lt_LTCFLAGS
19738 # A language-specific compiler.
19739 CC=$lt_compiler_RC
19741 # Is the compiler the GNU C compiler?
19742 with_gcc=$GCC_RC
19744 # An ERE matcher.
19745 EGREP=$lt_EGREP
19747 # The linker used to build libraries.
19748 LD=$lt_LD_RC
19750 # Whether we need hard or soft links.
19751 LN_S=$lt_LN_S
19753 # A BSD-compatible nm program.
19754 NM=$lt_NM
19756 # A symbol stripping program
19757 STRIP=$lt_STRIP
19759 # Used to examine libraries when file_magic_cmd begins "file"
19760 MAGIC_CMD=$MAGIC_CMD
19762 # Used on cygwin: DLL creation program.
19763 DLLTOOL="$DLLTOOL"
19765 # Used on cygwin: object dumper.
19766 OBJDUMP="$OBJDUMP"
19768 # Used on cygwin: assembler.
19769 AS="$AS"
19771 # The name of the directory that contains temporary libtool files.
19772 objdir=$objdir
19774 # How to create reloadable object files.
19775 reload_flag=$lt_reload_flag
19776 reload_cmds=$lt_reload_cmds
19778 # How to pass a linker flag through the compiler.
19779 wl=$lt_lt_prog_compiler_wl_RC
19781 # Object file suffix (normally "o").
19782 objext="$ac_objext"
19784 # Old archive suffix (normally "a").
19785 libext="$libext"
19787 # Shared library suffix (normally ".so").
19788 shrext_cmds='$shrext_cmds'
19790 # Executable file suffix (normally "").
19791 exeext="$exeext"
19793 # Additional compiler flags for building library objects.
19794 pic_flag=$lt_lt_prog_compiler_pic_RC
19795 pic_mode=$pic_mode
19797 # What is the maximum length of a command?
19798 max_cmd_len=$lt_cv_sys_max_cmd_len
19800 # Does compiler simultaneously support -c and -o options?
19801 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19803 # Must we lock files when doing compilation?
19804 need_locks=$lt_need_locks
19806 # Do we need the lib prefix for modules?
19807 need_lib_prefix=$need_lib_prefix
19809 # Do we need a version for libraries?
19810 need_version=$need_version
19812 # Whether dlopen is supported.
19813 dlopen_support=$enable_dlopen
19815 # Whether dlopen of programs is supported.
19816 dlopen_self=$enable_dlopen_self
19818 # Whether dlopen of statically linked programs is supported.
19819 dlopen_self_static=$enable_dlopen_self_static
19821 # Compiler flag to prevent dynamic linking.
19822 link_static_flag=$lt_lt_prog_compiler_static_RC
19824 # Compiler flag to turn off builtin functions.
19825 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19827 # Compiler flag to allow reflexive dlopens.
19828 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19830 # Compiler flag to generate shared objects directly from archives.
19831 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19833 # Compiler flag to generate thread-safe objects.
19834 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19836 # Library versioning type.
19837 version_type=$version_type
19839 # Format of library name prefix.
19840 libname_spec=$lt_libname_spec
19842 # List of archive names.  First name is the real one, the rest are links.
19843 # The last name is the one that the linker finds with -lNAME.
19844 library_names_spec=$lt_library_names_spec
19846 # The coded name of the library, if different from the real name.
19847 soname_spec=$lt_soname_spec
19849 # Commands used to build and install an old-style archive.
19850 RANLIB=$lt_RANLIB
19851 old_archive_cmds=$lt_old_archive_cmds_RC
19852 old_postinstall_cmds=$lt_old_postinstall_cmds
19853 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19855 # Create an old-style archive from a shared archive.
19856 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19858 # Create a temporary old-style archive to link instead of a shared archive.
19859 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19861 # Commands used to build and install a shared archive.
19862 archive_cmds=$lt_archive_cmds_RC
19863 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19864 postinstall_cmds=$lt_postinstall_cmds
19865 postuninstall_cmds=$lt_postuninstall_cmds
19867 # Commands used to build a loadable module (assumed same as above if empty)
19868 module_cmds=$lt_module_cmds_RC
19869 module_expsym_cmds=$lt_module_expsym_cmds_RC
19871 # Commands to strip libraries.
19872 old_striplib=$lt_old_striplib
19873 striplib=$lt_striplib
19875 # Dependencies to place before the objects being linked to create a
19876 # shared library.
19877 predep_objects=$lt_predep_objects_RC
19879 # Dependencies to place after the objects being linked to create a
19880 # shared library.
19881 postdep_objects=$lt_postdep_objects_RC
19883 # Dependencies to place before the objects being linked to create a
19884 # shared library.
19885 predeps=$lt_predeps_RC
19887 # Dependencies to place after the objects being linked to create a
19888 # shared library.
19889 postdeps=$lt_postdeps_RC
19891 # The directories searched by this compiler when creating a shared
19892 # library
19893 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19895 # The library search path used internally by the compiler when linking
19896 # a shared library.
19897 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19899 # Method to check whether dependent libraries are shared objects.
19900 deplibs_check_method=$lt_deplibs_check_method
19902 # Command to use when deplibs_check_method == file_magic.
19903 file_magic_cmd=$lt_file_magic_cmd
19905 # Flag that allows shared libraries with undefined symbols to be built.
19906 allow_undefined_flag=$lt_allow_undefined_flag_RC
19908 # Flag that forces no undefined symbols.
19909 no_undefined_flag=$lt_no_undefined_flag_RC
19911 # Commands used to finish a libtool library installation in a directory.
19912 finish_cmds=$lt_finish_cmds
19914 # Same as above, but a single script fragment to be evaled but not shown.
19915 finish_eval=$lt_finish_eval
19917 # Take the output of nm and produce a listing of raw symbols and C names.
19918 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19920 # Transform the output of nm in a proper C declaration
19921 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19923 # Transform the output of nm in a C name address pair
19924 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19926 # This is the shared library runtime path variable.
19927 runpath_var=$runpath_var
19929 # This is the shared library path variable.
19930 shlibpath_var=$shlibpath_var
19932 # Is shlibpath searched before the hard-coded library search path?
19933 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19935 # How to hardcode a shared library path into an executable.
19936 hardcode_action=$hardcode_action_RC
19938 # Whether we should hardcode library paths into libraries.
19939 hardcode_into_libs=$hardcode_into_libs
19941 # Flag to hardcode \$libdir into a binary during linking.
19942 # This must work even if \$libdir does not exist.
19943 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19945 # If ld is used when linking, flag to hardcode \$libdir into
19946 # a binary during linking. This must work even if \$libdir does
19947 # not exist.
19948 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19950 # Whether we need a single -rpath flag with a separated argument.
19951 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19953 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19954 # resulting binary.
19955 hardcode_direct=$hardcode_direct_RC
19957 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19958 # resulting binary.
19959 hardcode_minus_L=$hardcode_minus_L_RC
19961 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19962 # the resulting binary.
19963 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19965 # Set to yes if building a shared library automatically hardcodes DIR into the library
19966 # and all subsequent libraries and executables linked against it.
19967 hardcode_automatic=$hardcode_automatic_RC
19969 # Variables whose values should be saved in libtool wrapper scripts and
19970 # restored at relink time.
19971 variables_saved_for_relink="$variables_saved_for_relink"
19973 # Whether libtool must link a program against all its dependency libraries.
19974 link_all_deplibs=$link_all_deplibs_RC
19976 # Compile-time system search path for libraries
19977 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19979 # Run-time system search path for libraries
19980 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19982 # Fix the shell variable \$srcfile for the compiler.
19983 fix_srcfile_path=$lt_fix_srcfile_path
19985 # Set to yes if exported symbols are required.
19986 always_export_symbols=$always_export_symbols_RC
19988 # The commands to list exported symbols.
19989 export_symbols_cmds=$lt_export_symbols_cmds_RC
19991 # The commands to extract the exported symbol list from a shared archive.
19992 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19994 # Symbols that should not be listed in the preloaded symbols.
19995 exclude_expsyms=$lt_exclude_expsyms_RC
19997 # Symbols that must always be exported.
19998 include_expsyms=$lt_include_expsyms_RC
20000 # ### END LIBTOOL TAG CONFIG: $tagname
20002 __EOF__
20005 else
20006   # If there is no Makefile yet, we rely on a make rule to execute
20007   # `config.status --recheck' to rerun these tests and create the
20008   # libtool script then.
20009   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20010   if test -f "$ltmain_in"; then
20011     test -f Makefile && make "$ltmain"
20012   fi
20016 ac_ext=c
20017 ac_cpp='$CPP $CPPFLAGS'
20018 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20019 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20020 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20022 CC="$lt_save_CC"
20024         ;;
20026       *)
20027         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20028 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20029    { (exit 1); exit 1; }; }
20030         ;;
20031       esac
20033       # Append the new tag name to the list of available tags.
20034       if test -n "$tagname" ; then
20035       available_tags="$available_tags $tagname"
20036     fi
20037     fi
20038   done
20039   IFS="$lt_save_ifs"
20041   # Now substitute the updated list of available tags.
20042   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20043     mv "${ofile}T" "$ofile"
20044     chmod +x "$ofile"
20045   else
20046     rm -f "${ofile}T"
20047     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20048 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20049    { (exit 1); exit 1; }; }
20050   fi
20055 # This can be used to rebuild libtool when needed
20056 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20058 # Always use our own libtool.
20059 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20061 # Prevent multiple expansion
20083 CFLAGS="$CFLAGS -D_GNU_SOURCE"
20085 if test "x$GCC" = "xyes"; then
20086   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
20087     oCFLAGS="$CFLAGS"
20088     CFLAGS="$CFLAGS $flag"
20089     cachename=rd_cv_gcc_flag_`echo $flag|sed 's/[^A-Za-z]/_/g'`
20090     { echo "$as_me:$LINENO: checking if gcc likes the $flag flag" >&5
20091 echo $ECHO_N "checking if gcc likes the $flag flag... $ECHO_C" >&6; }
20092 if { as_var=$cachename; eval "test \"\${$as_var+set}\" = set"; }; then
20093   echo $ECHO_N "(cached) $ECHO_C" >&6
20094 else
20095   cat >conftest.$ac_ext <<_ACEOF
20096 /* confdefs.h.  */
20097 _ACEOF
20098 cat confdefs.h >>conftest.$ac_ext
20099 cat >>conftest.$ac_ext <<_ACEOF
20100 /* end confdefs.h.  */
20102 int
20103 main ()
20105 return 0
20106   ;
20107   return 0;
20109 _ACEOF
20110 rm -f conftest.$ac_objext
20111 if { (ac_try="$ac_compile"
20112 case "(($ac_try" in
20113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20114   *) ac_try_echo=$ac_try;;
20115 esac
20116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20117   (eval "$ac_compile") 2>conftest.er1
20118   ac_status=$?
20119   grep -v '^ *+' conftest.er1 >conftest.err
20120   rm -f conftest.er1
20121   cat conftest.err >&5
20122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20123   (exit $ac_status); } && {
20124          test -z "$ac_c_werror_flag" ||
20125          test ! -s conftest.err
20126        } && test -s conftest.$ac_objext; then
20127   eval $cachename=yes
20128 else
20129   echo "$as_me: failed program was:" >&5
20130 sed 's/^/| /' conftest.$ac_ext >&5
20132         eval $cachename=no
20135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20137 ac_res=`eval echo '${'$cachename'}'`
20138                { echo "$as_me:$LINENO: result: $ac_res" >&5
20139 echo "${ECHO_T}$ac_res" >&6; }
20140     if eval test \$$cachename = no; then
20141          CFLAGS="$oCFLAGS"
20142     fi
20143   done
20151 case $TERM in
20152        #   for the most important terminal types we directly know the sequences
20153        xterm|xterm*|vt220|vt220*)
20154                T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
20155                T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
20156        ;;
20157        vt100|vt100*|cygwin)
20158                T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
20159                T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
20160        ;;
20161        *)
20162                T_MD=''
20163                T_ME=''
20164        ;;
20165 esac
20166   { echo "$as_me:$LINENO: result: " >&5
20167 echo "${ECHO_T}" >&6; }
20168   { echo "$as_me:$LINENO: result: ${T_MD}Checking for Header Files${T_ME}" >&5
20169 echo "${ECHO_T}${T_MD}Checking for Header Files${T_ME}" >&6; }
20172 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20173 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20174 if test "${ac_cv_header_stdc+set}" = set; then
20175   echo $ECHO_N "(cached) $ECHO_C" >&6
20176 else
20177   cat >conftest.$ac_ext <<_ACEOF
20178 /* confdefs.h.  */
20179 _ACEOF
20180 cat confdefs.h >>conftest.$ac_ext
20181 cat >>conftest.$ac_ext <<_ACEOF
20182 /* end confdefs.h.  */
20183 #include <stdlib.h>
20184 #include <stdarg.h>
20185 #include <string.h>
20186 #include <float.h>
20188 int
20189 main ()
20192   ;
20193   return 0;
20195 _ACEOF
20196 rm -f conftest.$ac_objext
20197 if { (ac_try="$ac_compile"
20198 case "(($ac_try" in
20199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20200   *) ac_try_echo=$ac_try;;
20201 esac
20202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20203   (eval "$ac_compile") 2>conftest.er1
20204   ac_status=$?
20205   grep -v '^ *+' conftest.er1 >conftest.err
20206   rm -f conftest.er1
20207   cat conftest.err >&5
20208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20209   (exit $ac_status); } && {
20210          test -z "$ac_c_werror_flag" ||
20211          test ! -s conftest.err
20212        } && test -s conftest.$ac_objext; then
20213   ac_cv_header_stdc=yes
20214 else
20215   echo "$as_me: failed program was:" >&5
20216 sed 's/^/| /' conftest.$ac_ext >&5
20218         ac_cv_header_stdc=no
20221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20223 if test $ac_cv_header_stdc = yes; then
20224   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20225   cat >conftest.$ac_ext <<_ACEOF
20226 /* confdefs.h.  */
20227 _ACEOF
20228 cat confdefs.h >>conftest.$ac_ext
20229 cat >>conftest.$ac_ext <<_ACEOF
20230 /* end confdefs.h.  */
20231 #include <string.h>
20233 _ACEOF
20234 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20235   $EGREP "memchr" >/dev/null 2>&1; then
20236   :
20237 else
20238   ac_cv_header_stdc=no
20240 rm -f conftest*
20244 if test $ac_cv_header_stdc = yes; then
20245   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20246   cat >conftest.$ac_ext <<_ACEOF
20247 /* confdefs.h.  */
20248 _ACEOF
20249 cat confdefs.h >>conftest.$ac_ext
20250 cat >>conftest.$ac_ext <<_ACEOF
20251 /* end confdefs.h.  */
20252 #include <stdlib.h>
20254 _ACEOF
20255 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20256   $EGREP "free" >/dev/null 2>&1; then
20257   :
20258 else
20259   ac_cv_header_stdc=no
20261 rm -f conftest*
20265 if test $ac_cv_header_stdc = yes; then
20266   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20267   if test "$cross_compiling" = yes; then
20268   :
20269 else
20270   cat >conftest.$ac_ext <<_ACEOF
20271 /* confdefs.h.  */
20272 _ACEOF
20273 cat confdefs.h >>conftest.$ac_ext
20274 cat >>conftest.$ac_ext <<_ACEOF
20275 /* end confdefs.h.  */
20276 #include <ctype.h>
20277 #include <stdlib.h>
20278 #if ((' ' & 0x0FF) == 0x020)
20279 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20280 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20281 #else
20282 # define ISLOWER(c) \
20283                    (('a' <= (c) && (c) <= 'i') \
20284                      || ('j' <= (c) && (c) <= 'r') \
20285                      || ('s' <= (c) && (c) <= 'z'))
20286 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20287 #endif
20289 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20290 int
20291 main ()
20293   int i;
20294   for (i = 0; i < 256; i++)
20295     if (XOR (islower (i), ISLOWER (i))
20296         || toupper (i) != TOUPPER (i))
20297       return 2;
20298   return 0;
20300 _ACEOF
20301 rm -f conftest$ac_exeext
20302 if { (ac_try="$ac_link"
20303 case "(($ac_try" in
20304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20305   *) ac_try_echo=$ac_try;;
20306 esac
20307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20308   (eval "$ac_link") 2>&5
20309   ac_status=$?
20310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20311   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20312   { (case "(($ac_try" in
20313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20314   *) ac_try_echo=$ac_try;;
20315 esac
20316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20317   (eval "$ac_try") 2>&5
20318   ac_status=$?
20319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20320   (exit $ac_status); }; }; then
20321   :
20322 else
20323   echo "$as_me: program exited with status $ac_status" >&5
20324 echo "$as_me: failed program was:" >&5
20325 sed 's/^/| /' conftest.$ac_ext >&5
20327 ( exit $ac_status )
20328 ac_cv_header_stdc=no
20330 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20336 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20337 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20338 if test $ac_cv_header_stdc = yes; then
20340 cat >>confdefs.h <<\_ACEOF
20341 #define STDC_HEADERS 1
20342 _ACEOF
20351 ac_header_dirent=no
20352 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20353   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
20354 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
20355 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
20356 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20357   echo $ECHO_N "(cached) $ECHO_C" >&6
20358 else
20359   cat >conftest.$ac_ext <<_ACEOF
20360 /* confdefs.h.  */
20361 _ACEOF
20362 cat confdefs.h >>conftest.$ac_ext
20363 cat >>conftest.$ac_ext <<_ACEOF
20364 /* end confdefs.h.  */
20365 #include <sys/types.h>
20366 #include <$ac_hdr>
20368 int
20369 main ()
20371 if ((DIR *) 0)
20372 return 0;
20373   ;
20374   return 0;
20376 _ACEOF
20377 rm -f conftest.$ac_objext
20378 if { (ac_try="$ac_compile"
20379 case "(($ac_try" in
20380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20381   *) ac_try_echo=$ac_try;;
20382 esac
20383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20384   (eval "$ac_compile") 2>conftest.er1
20385   ac_status=$?
20386   grep -v '^ *+' conftest.er1 >conftest.err
20387   rm -f conftest.er1
20388   cat conftest.err >&5
20389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20390   (exit $ac_status); } && {
20391          test -z "$ac_c_werror_flag" ||
20392          test ! -s conftest.err
20393        } && test -s conftest.$ac_objext; then
20394   eval "$as_ac_Header=yes"
20395 else
20396   echo "$as_me: failed program was:" >&5
20397 sed 's/^/| /' conftest.$ac_ext >&5
20399         eval "$as_ac_Header=no"
20402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20404 ac_res=`eval echo '${'$as_ac_Header'}'`
20405                { echo "$as_me:$LINENO: result: $ac_res" >&5
20406 echo "${ECHO_T}$ac_res" >&6; }
20407 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20408   cat >>confdefs.h <<_ACEOF
20409 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20410 _ACEOF
20412 ac_header_dirent=$ac_hdr; break
20415 done
20416 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20417 if test $ac_header_dirent = dirent.h; then
20418   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
20419 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
20420 if test "${ac_cv_search_opendir+set}" = set; then
20421   echo $ECHO_N "(cached) $ECHO_C" >&6
20422 else
20423   ac_func_search_save_LIBS=$LIBS
20424 cat >conftest.$ac_ext <<_ACEOF
20425 /* confdefs.h.  */
20426 _ACEOF
20427 cat confdefs.h >>conftest.$ac_ext
20428 cat >>conftest.$ac_ext <<_ACEOF
20429 /* end confdefs.h.  */
20431 /* Override any GCC internal prototype to avoid an error.
20432    Use char because int might match the return type of a GCC
20433    builtin and then its argument prototype would still apply.  */
20434 #ifdef __cplusplus
20435 extern "C"
20436 #endif
20437 char opendir ();
20438 int
20439 main ()
20441 return opendir ();
20442   ;
20443   return 0;
20445 _ACEOF
20446 for ac_lib in '' dir; do
20447   if test -z "$ac_lib"; then
20448     ac_res="none required"
20449   else
20450     ac_res=-l$ac_lib
20451     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20452   fi
20453   rm -f conftest.$ac_objext conftest$ac_exeext
20454 if { (ac_try="$ac_link"
20455 case "(($ac_try" in
20456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20457   *) ac_try_echo=$ac_try;;
20458 esac
20459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20460   (eval "$ac_link") 2>conftest.er1
20461   ac_status=$?
20462   grep -v '^ *+' conftest.er1 >conftest.err
20463   rm -f conftest.er1
20464   cat conftest.err >&5
20465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20466   (exit $ac_status); } && {
20467          test -z "$ac_c_werror_flag" ||
20468          test ! -s conftest.err
20469        } && test -s conftest$ac_exeext &&
20470        $as_test_x conftest$ac_exeext; then
20471   ac_cv_search_opendir=$ac_res
20472 else
20473   echo "$as_me: failed program was:" >&5
20474 sed 's/^/| /' conftest.$ac_ext >&5
20479 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20480       conftest$ac_exeext
20481   if test "${ac_cv_search_opendir+set}" = set; then
20482   break
20484 done
20485 if test "${ac_cv_search_opendir+set}" = set; then
20486   :
20487 else
20488   ac_cv_search_opendir=no
20490 rm conftest.$ac_ext
20491 LIBS=$ac_func_search_save_LIBS
20493 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20494 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
20495 ac_res=$ac_cv_search_opendir
20496 if test "$ac_res" != no; then
20497   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20501 else
20502   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
20503 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
20504 if test "${ac_cv_search_opendir+set}" = set; then
20505   echo $ECHO_N "(cached) $ECHO_C" >&6
20506 else
20507   ac_func_search_save_LIBS=$LIBS
20508 cat >conftest.$ac_ext <<_ACEOF
20509 /* confdefs.h.  */
20510 _ACEOF
20511 cat confdefs.h >>conftest.$ac_ext
20512 cat >>conftest.$ac_ext <<_ACEOF
20513 /* end confdefs.h.  */
20515 /* Override any GCC internal prototype to avoid an error.
20516    Use char because int might match the return type of a GCC
20517    builtin and then its argument prototype would still apply.  */
20518 #ifdef __cplusplus
20519 extern "C"
20520 #endif
20521 char opendir ();
20522 int
20523 main ()
20525 return opendir ();
20526   ;
20527   return 0;
20529 _ACEOF
20530 for ac_lib in '' x; do
20531   if test -z "$ac_lib"; then
20532     ac_res="none required"
20533   else
20534     ac_res=-l$ac_lib
20535     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20536   fi
20537   rm -f conftest.$ac_objext conftest$ac_exeext
20538 if { (ac_try="$ac_link"
20539 case "(($ac_try" in
20540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20541   *) ac_try_echo=$ac_try;;
20542 esac
20543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20544   (eval "$ac_link") 2>conftest.er1
20545   ac_status=$?
20546   grep -v '^ *+' conftest.er1 >conftest.err
20547   rm -f conftest.er1
20548   cat conftest.err >&5
20549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20550   (exit $ac_status); } && {
20551          test -z "$ac_c_werror_flag" ||
20552          test ! -s conftest.err
20553        } && test -s conftest$ac_exeext &&
20554        $as_test_x conftest$ac_exeext; then
20555   ac_cv_search_opendir=$ac_res
20556 else
20557   echo "$as_me: failed program was:" >&5
20558 sed 's/^/| /' conftest.$ac_ext >&5
20563 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20564       conftest$ac_exeext
20565   if test "${ac_cv_search_opendir+set}" = set; then
20566   break
20568 done
20569 if test "${ac_cv_search_opendir+set}" = set; then
20570   :
20571 else
20572   ac_cv_search_opendir=no
20574 rm conftest.$ac_ext
20575 LIBS=$ac_func_search_save_LIBS
20577 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20578 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
20579 ac_res=$ac_cv_search_opendir
20580 if test "$ac_res" != no; then
20581   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20607 for ac_header in features.h sys/stat.h sys/types.h fcntl.h locale.h fp_class.h malloc.h unistd.h ieeefp.h math.h sys/times.h sys/param.h sys/resource.h signal.h float.h stdio.h stdlib.h errno.h string.h ctype.h
20609 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20610 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20611   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20612 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20613 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20614   echo $ECHO_N "(cached) $ECHO_C" >&6
20616 ac_res=`eval echo '${'$as_ac_Header'}'`
20617                { echo "$as_me:$LINENO: result: $ac_res" >&5
20618 echo "${ECHO_T}$ac_res" >&6; }
20619 else
20620   # Is the header compilable?
20621 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20622 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20623 cat >conftest.$ac_ext <<_ACEOF
20624 /* confdefs.h.  */
20625 _ACEOF
20626 cat confdefs.h >>conftest.$ac_ext
20627 cat >>conftest.$ac_ext <<_ACEOF
20628 /* end confdefs.h.  */
20629 $ac_includes_default
20630 #include <$ac_header>
20631 _ACEOF
20632 rm -f conftest.$ac_objext
20633 if { (ac_try="$ac_compile"
20634 case "(($ac_try" in
20635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20636   *) ac_try_echo=$ac_try;;
20637 esac
20638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20639   (eval "$ac_compile") 2>conftest.er1
20640   ac_status=$?
20641   grep -v '^ *+' conftest.er1 >conftest.err
20642   rm -f conftest.er1
20643   cat conftest.err >&5
20644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20645   (exit $ac_status); } && {
20646          test -z "$ac_c_werror_flag" ||
20647          test ! -s conftest.err
20648        } && test -s conftest.$ac_objext; then
20649   ac_header_compiler=yes
20650 else
20651   echo "$as_me: failed program was:" >&5
20652 sed 's/^/| /' conftest.$ac_ext >&5
20654         ac_header_compiler=no
20657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20658 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20659 echo "${ECHO_T}$ac_header_compiler" >&6; }
20661 # Is the header present?
20662 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20663 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20664 cat >conftest.$ac_ext <<_ACEOF
20665 /* confdefs.h.  */
20666 _ACEOF
20667 cat confdefs.h >>conftest.$ac_ext
20668 cat >>conftest.$ac_ext <<_ACEOF
20669 /* end confdefs.h.  */
20670 #include <$ac_header>
20671 _ACEOF
20672 if { (ac_try="$ac_cpp conftest.$ac_ext"
20673 case "(($ac_try" in
20674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20675   *) ac_try_echo=$ac_try;;
20676 esac
20677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20678   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20679   ac_status=$?
20680   grep -v '^ *+' conftest.er1 >conftest.err
20681   rm -f conftest.er1
20682   cat conftest.err >&5
20683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20684   (exit $ac_status); } >/dev/null && {
20685          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20686          test ! -s conftest.err
20687        }; then
20688   ac_header_preproc=yes
20689 else
20690   echo "$as_me: failed program was:" >&5
20691 sed 's/^/| /' conftest.$ac_ext >&5
20693   ac_header_preproc=no
20696 rm -f conftest.err conftest.$ac_ext
20697 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20698 echo "${ECHO_T}$ac_header_preproc" >&6; }
20700 # So?  What about this header?
20701 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20702   yes:no: )
20703     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20704 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20705     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20706 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20707     ac_header_preproc=yes
20708     ;;
20709   no:yes:* )
20710     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20711 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20712     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20713 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20714     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20715 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20716     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20717 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20718     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20719 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20720     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20721 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20723     ;;
20724 esac
20725 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20726 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20727 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20728   echo $ECHO_N "(cached) $ECHO_C" >&6
20729 else
20730   eval "$as_ac_Header=\$ac_header_preproc"
20732 ac_res=`eval echo '${'$as_ac_Header'}'`
20733                { echo "$as_me:$LINENO: result: $ac_res" >&5
20734 echo "${ECHO_T}$ac_res" >&6; }
20737 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20738   cat >>confdefs.h <<_ACEOF
20739 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20740 _ACEOF
20744 done
20747 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20748 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
20749 if test "${ac_cv_c_const+set}" = set; then
20750   echo $ECHO_N "(cached) $ECHO_C" >&6
20751 else
20752   cat >conftest.$ac_ext <<_ACEOF
20753 /* confdefs.h.  */
20754 _ACEOF
20755 cat confdefs.h >>conftest.$ac_ext
20756 cat >>conftest.$ac_ext <<_ACEOF
20757 /* end confdefs.h.  */
20759 int
20760 main ()
20762 /* FIXME: Include the comments suggested by Paul. */
20763 #ifndef __cplusplus
20764   /* Ultrix mips cc rejects this.  */
20765   typedef int charset[2];
20766   const charset cs;
20767   /* SunOS 4.1.1 cc rejects this.  */
20768   char const *const *pcpcc;
20769   char **ppc;
20770   /* NEC SVR4.0.2 mips cc rejects this.  */
20771   struct point {int x, y;};
20772   static struct point const zero = {0,0};
20773   /* AIX XL C 1.02.0.0 rejects this.
20774      It does not let you subtract one const X* pointer from another in
20775      an arm of an if-expression whose if-part is not a constant
20776      expression */
20777   const char *g = "string";
20778   pcpcc = &g + (g ? g-g : 0);
20779   /* HPUX 7.0 cc rejects these. */
20780   ++pcpcc;
20781   ppc = (char**) pcpcc;
20782   pcpcc = (char const *const *) ppc;
20783   { /* SCO 3.2v4 cc rejects this.  */
20784     char *t;
20785     char const *s = 0 ? (char *) 0 : (char const *) 0;
20787     *t++ = 0;
20788     if (s) return 0;
20789   }
20790   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
20791     int x[] = {25, 17};
20792     const int *foo = &x[0];
20793     ++foo;
20794   }
20795   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20796     typedef const int *iptr;
20797     iptr p = 0;
20798     ++p;
20799   }
20800   { /* AIX XL C 1.02.0.0 rejects this saying
20801        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20802     struct s { int j; const int *ap[3]; };
20803     struct s *b; b->j = 5;
20804   }
20805   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20806     const int foo = 10;
20807     if (!foo) return 0;
20808   }
20809   return !cs[0] && !zero.x;
20810 #endif
20812   ;
20813   return 0;
20815 _ACEOF
20816 rm -f conftest.$ac_objext
20817 if { (ac_try="$ac_compile"
20818 case "(($ac_try" in
20819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20820   *) ac_try_echo=$ac_try;;
20821 esac
20822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20823   (eval "$ac_compile") 2>conftest.er1
20824   ac_status=$?
20825   grep -v '^ *+' conftest.er1 >conftest.err
20826   rm -f conftest.er1
20827   cat conftest.err >&5
20828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20829   (exit $ac_status); } && {
20830          test -z "$ac_c_werror_flag" ||
20831          test ! -s conftest.err
20832        } && test -s conftest.$ac_objext; then
20833   ac_cv_c_const=yes
20834 else
20835   echo "$as_me: failed program was:" >&5
20836 sed 's/^/| /' conftest.$ac_ext >&5
20838         ac_cv_c_const=no
20841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20843 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20844 echo "${ECHO_T}$ac_cv_c_const" >&6; }
20845 if test $ac_cv_c_const = no; then
20847 cat >>confdefs.h <<\_ACEOF
20848 #define const
20849 _ACEOF
20853 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20854 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
20855 if test "${ac_cv_header_time+set}" = set; then
20856   echo $ECHO_N "(cached) $ECHO_C" >&6
20857 else
20858   cat >conftest.$ac_ext <<_ACEOF
20859 /* confdefs.h.  */
20860 _ACEOF
20861 cat confdefs.h >>conftest.$ac_ext
20862 cat >>conftest.$ac_ext <<_ACEOF
20863 /* end confdefs.h.  */
20864 #include <sys/types.h>
20865 #include <sys/time.h>
20866 #include <time.h>
20868 int
20869 main ()
20871 if ((struct tm *) 0)
20872 return 0;
20873   ;
20874   return 0;
20876 _ACEOF
20877 rm -f conftest.$ac_objext
20878 if { (ac_try="$ac_compile"
20879 case "(($ac_try" in
20880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20881   *) ac_try_echo=$ac_try;;
20882 esac
20883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20884   (eval "$ac_compile") 2>conftest.er1
20885   ac_status=$?
20886   grep -v '^ *+' conftest.er1 >conftest.err
20887   rm -f conftest.er1
20888   cat conftest.err >&5
20889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20890   (exit $ac_status); } && {
20891          test -z "$ac_c_werror_flag" ||
20892          test ! -s conftest.err
20893        } && test -s conftest.$ac_objext; then
20894   ac_cv_header_time=yes
20895 else
20896   echo "$as_me: failed program was:" >&5
20897 sed 's/^/| /' conftest.$ac_ext >&5
20899         ac_cv_header_time=no
20902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20904 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20905 echo "${ECHO_T}$ac_cv_header_time" >&6; }
20906 if test $ac_cv_header_time = yes; then
20908 cat >>confdefs.h <<\_ACEOF
20909 #define TIME_WITH_SYS_TIME 1
20910 _ACEOF
20914 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20915 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
20916 if test "${ac_cv_struct_tm+set}" = set; then
20917   echo $ECHO_N "(cached) $ECHO_C" >&6
20918 else
20919   cat >conftest.$ac_ext <<_ACEOF
20920 /* confdefs.h.  */
20921 _ACEOF
20922 cat confdefs.h >>conftest.$ac_ext
20923 cat >>conftest.$ac_ext <<_ACEOF
20924 /* end confdefs.h.  */
20925 #include <sys/types.h>
20926 #include <time.h>
20928 int
20929 main ()
20931 struct tm tm;
20932                                      int *p = &tm.tm_sec;
20933                                      return !p;
20934   ;
20935   return 0;
20937 _ACEOF
20938 rm -f conftest.$ac_objext
20939 if { (ac_try="$ac_compile"
20940 case "(($ac_try" in
20941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20942   *) ac_try_echo=$ac_try;;
20943 esac
20944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20945   (eval "$ac_compile") 2>conftest.er1
20946   ac_status=$?
20947   grep -v '^ *+' conftest.er1 >conftest.err
20948   rm -f conftest.er1
20949   cat conftest.err >&5
20950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20951   (exit $ac_status); } && {
20952          test -z "$ac_c_werror_flag" ||
20953          test ! -s conftest.err
20954        } && test -s conftest.$ac_objext; then
20955   ac_cv_struct_tm=time.h
20956 else
20957   echo "$as_me: failed program was:" >&5
20958 sed 's/^/| /' conftest.$ac_ext >&5
20960         ac_cv_struct_tm=sys/time.h
20963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20965 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20966 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
20967 if test $ac_cv_struct_tm = sys/time.h; then
20969 cat >>confdefs.h <<\_ACEOF
20970 #define TM_IN_SYS_TIME 1
20971 _ACEOF
20977 case $TERM in
20978        #   for the most important terminal types we directly know the sequences
20979        xterm|xterm*|vt220|vt220*)
20980                T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
20981                T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
20982        ;;
20983        vt100|vt100*|cygwin)
20984                T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
20985                T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
20986        ;;
20987        *)
20988                T_MD=''
20989                T_ME=''
20990        ;;
20991 esac
20992   { echo "$as_me:$LINENO: result: " >&5
20993 echo "${ECHO_T}" >&6; }
20994   { echo "$as_me:$LINENO: result: ${T_MD}Test Library Functions${T_ME}" >&5
20995 echo "${ECHO_T}${T_MD}Test Library Functions${T_ME}" >&6; }
20998 { echo "$as_me:$LINENO: checking for acos" >&5
20999 echo $ECHO_N "checking for acos... $ECHO_C" >&6; }
21000 if test "${ac_cv_func_acos+set}" = set; then
21001   echo $ECHO_N "(cached) $ECHO_C" >&6
21002 else
21003   cat >conftest.$ac_ext <<_ACEOF
21004 /* confdefs.h.  */
21005 _ACEOF
21006 cat confdefs.h >>conftest.$ac_ext
21007 cat >>conftest.$ac_ext <<_ACEOF
21008 /* end confdefs.h.  */
21009 /* Define acos to an innocuous variant, in case <limits.h> declares acos.
21010    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21011 #define acos innocuous_acos
21013 /* System header to define __stub macros and hopefully few prototypes,
21014     which can conflict with char acos (); below.
21015     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21016     <limits.h> exists even on freestanding compilers.  */
21018 #ifdef __STDC__
21019 # include <limits.h>
21020 #else
21021 # include <assert.h>
21022 #endif
21024 #undef acos
21026 /* Override any GCC internal prototype to avoid an error.
21027    Use char because int might match the return type of a GCC
21028    builtin and then its argument prototype would still apply.  */
21029 #ifdef __cplusplus
21030 extern "C"
21031 #endif
21032 char acos ();
21033 /* The GNU C library defines this for functions which it implements
21034     to always fail with ENOSYS.  Some functions are actually named
21035     something starting with __ and the normal name is an alias.  */
21036 #if defined __stub_acos || defined __stub___acos
21037 choke me
21038 #endif
21040 int
21041 main ()
21043 return acos ();
21044   ;
21045   return 0;
21047 _ACEOF
21048 rm -f conftest.$ac_objext conftest$ac_exeext
21049 if { (ac_try="$ac_link"
21050 case "(($ac_try" in
21051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21052   *) ac_try_echo=$ac_try;;
21053 esac
21054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21055   (eval "$ac_link") 2>conftest.er1
21056   ac_status=$?
21057   grep -v '^ *+' conftest.er1 >conftest.err
21058   rm -f conftest.er1
21059   cat conftest.err >&5
21060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21061   (exit $ac_status); } && {
21062          test -z "$ac_c_werror_flag" ||
21063          test ! -s conftest.err
21064        } && test -s conftest$ac_exeext &&
21065        $as_test_x conftest$ac_exeext; then
21066   ac_cv_func_acos=yes
21067 else
21068   echo "$as_me: failed program was:" >&5
21069 sed 's/^/| /' conftest.$ac_ext >&5
21071         ac_cv_func_acos=no
21074 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21075       conftest$ac_exeext conftest.$ac_ext
21077 { echo "$as_me:$LINENO: result: $ac_cv_func_acos" >&5
21078 echo "${ECHO_T}$ac_cv_func_acos" >&6; }
21079 if test $ac_cv_func_acos = yes; then
21080   :
21081 else
21083 { echo "$as_me:$LINENO: checking for acos in -lm" >&5
21084 echo $ECHO_N "checking for acos in -lm... $ECHO_C" >&6; }
21085 if test "${ac_cv_lib_m_acos+set}" = set; then
21086   echo $ECHO_N "(cached) $ECHO_C" >&6
21087 else
21088   ac_check_lib_save_LIBS=$LIBS
21089 LIBS="-lm  $LIBS"
21090 cat >conftest.$ac_ext <<_ACEOF
21091 /* confdefs.h.  */
21092 _ACEOF
21093 cat confdefs.h >>conftest.$ac_ext
21094 cat >>conftest.$ac_ext <<_ACEOF
21095 /* end confdefs.h.  */
21097 /* Override any GCC internal prototype to avoid an error.
21098    Use char because int might match the return type of a GCC
21099    builtin and then its argument prototype would still apply.  */
21100 #ifdef __cplusplus
21101 extern "C"
21102 #endif
21103 char acos ();
21104 int
21105 main ()
21107 return acos ();
21108   ;
21109   return 0;
21111 _ACEOF
21112 rm -f conftest.$ac_objext conftest$ac_exeext
21113 if { (ac_try="$ac_link"
21114 case "(($ac_try" in
21115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21116   *) ac_try_echo=$ac_try;;
21117 esac
21118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21119   (eval "$ac_link") 2>conftest.er1
21120   ac_status=$?
21121   grep -v '^ *+' conftest.er1 >conftest.err
21122   rm -f conftest.er1
21123   cat conftest.err >&5
21124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21125   (exit $ac_status); } && {
21126          test -z "$ac_c_werror_flag" ||
21127          test ! -s conftest.err
21128        } && test -s conftest$ac_exeext &&
21129        $as_test_x conftest$ac_exeext; then
21130   ac_cv_lib_m_acos=yes
21131 else
21132   echo "$as_me: failed program was:" >&5
21133 sed 's/^/| /' conftest.$ac_ext >&5
21135         ac_cv_lib_m_acos=no
21138 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21139       conftest$ac_exeext conftest.$ac_ext
21140 LIBS=$ac_check_lib_save_LIBS
21142 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_acos" >&5
21143 echo "${ECHO_T}$ac_cv_lib_m_acos" >&6; }
21144 if test $ac_cv_lib_m_acos = yes; then
21145   cat >>confdefs.h <<_ACEOF
21146 #define HAVE_LIBM 1
21147 _ACEOF
21149   LIBS="-lm $LIBS"
21157 eval `./libtool --config | grep pic_flag`
21158 CFLAGS="$CFLAGS $pic_flag"
21162 for ac_func in strftime
21164 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21165 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21166 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21167 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21168   echo $ECHO_N "(cached) $ECHO_C" >&6
21169 else
21170   cat >conftest.$ac_ext <<_ACEOF
21171 /* confdefs.h.  */
21172 _ACEOF
21173 cat confdefs.h >>conftest.$ac_ext
21174 cat >>conftest.$ac_ext <<_ACEOF
21175 /* end confdefs.h.  */
21176 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21177    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21178 #define $ac_func innocuous_$ac_func
21180 /* System header to define __stub macros and hopefully few prototypes,
21181     which can conflict with char $ac_func (); below.
21182     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21183     <limits.h> exists even on freestanding compilers.  */
21185 #ifdef __STDC__
21186 # include <limits.h>
21187 #else
21188 # include <assert.h>
21189 #endif
21191 #undef $ac_func
21193 /* Override any GCC internal prototype to avoid an error.
21194    Use char because int might match the return type of a GCC
21195    builtin and then its argument prototype would still apply.  */
21196 #ifdef __cplusplus
21197 extern "C"
21198 #endif
21199 char $ac_func ();
21200 /* The GNU C library defines this for functions which it implements
21201     to always fail with ENOSYS.  Some functions are actually named
21202     something starting with __ and the normal name is an alias.  */
21203 #if defined __stub_$ac_func || defined __stub___$ac_func
21204 choke me
21205 #endif
21207 int
21208 main ()
21210 return $ac_func ();
21211   ;
21212   return 0;
21214 _ACEOF
21215 rm -f conftest.$ac_objext conftest$ac_exeext
21216 if { (ac_try="$ac_link"
21217 case "(($ac_try" in
21218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21219   *) ac_try_echo=$ac_try;;
21220 esac
21221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21222   (eval "$ac_link") 2>conftest.er1
21223   ac_status=$?
21224   grep -v '^ *+' conftest.er1 >conftest.err
21225   rm -f conftest.er1
21226   cat conftest.err >&5
21227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21228   (exit $ac_status); } && {
21229          test -z "$ac_c_werror_flag" ||
21230          test ! -s conftest.err
21231        } && test -s conftest$ac_exeext &&
21232        $as_test_x conftest$ac_exeext; then
21233   eval "$as_ac_var=yes"
21234 else
21235   echo "$as_me: failed program was:" >&5
21236 sed 's/^/| /' conftest.$ac_ext >&5
21238         eval "$as_ac_var=no"
21241 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21242       conftest$ac_exeext conftest.$ac_ext
21244 ac_res=`eval echo '${'$as_ac_var'}'`
21245                { echo "$as_me:$LINENO: result: $ac_res" >&5
21246 echo "${ECHO_T}$ac_res" >&6; }
21247 if test `eval echo '${'$as_ac_var'}'` = yes; then
21248   cat >>confdefs.h <<_ACEOF
21249 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21250 _ACEOF
21252 else
21253   # strftime is in -lintl on SCO UNIX.
21254 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
21255 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
21256 if test "${ac_cv_lib_intl_strftime+set}" = set; then
21257   echo $ECHO_N "(cached) $ECHO_C" >&6
21258 else
21259   ac_check_lib_save_LIBS=$LIBS
21260 LIBS="-lintl  $LIBS"
21261 cat >conftest.$ac_ext <<_ACEOF
21262 /* confdefs.h.  */
21263 _ACEOF
21264 cat confdefs.h >>conftest.$ac_ext
21265 cat >>conftest.$ac_ext <<_ACEOF
21266 /* end confdefs.h.  */
21268 /* Override any GCC internal prototype to avoid an error.
21269    Use char because int might match the return type of a GCC
21270    builtin and then its argument prototype would still apply.  */
21271 #ifdef __cplusplus
21272 extern "C"
21273 #endif
21274 char strftime ();
21275 int
21276 main ()
21278 return strftime ();
21279   ;
21280   return 0;
21282 _ACEOF
21283 rm -f conftest.$ac_objext conftest$ac_exeext
21284 if { (ac_try="$ac_link"
21285 case "(($ac_try" in
21286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21287   *) ac_try_echo=$ac_try;;
21288 esac
21289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21290   (eval "$ac_link") 2>conftest.er1
21291   ac_status=$?
21292   grep -v '^ *+' conftest.er1 >conftest.err
21293   rm -f conftest.er1
21294   cat conftest.err >&5
21295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21296   (exit $ac_status); } && {
21297          test -z "$ac_c_werror_flag" ||
21298          test ! -s conftest.err
21299        } && test -s conftest$ac_exeext &&
21300        $as_test_x conftest$ac_exeext; then
21301   ac_cv_lib_intl_strftime=yes
21302 else
21303   echo "$as_me: failed program was:" >&5
21304 sed 's/^/| /' conftest.$ac_ext >&5
21306         ac_cv_lib_intl_strftime=no
21309 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21310       conftest$ac_exeext conftest.$ac_ext
21311 LIBS=$ac_check_lib_save_LIBS
21313 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
21314 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
21315 if test $ac_cv_lib_intl_strftime = yes; then
21316   cat >>confdefs.h <<\_ACEOF
21317 #define HAVE_STRFTIME 1
21318 _ACEOF
21320 LIBS="-lintl $LIBS"
21324 done
21327 for ac_func in vprintf
21329 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21330 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21331 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21332 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21333   echo $ECHO_N "(cached) $ECHO_C" >&6
21334 else
21335   cat >conftest.$ac_ext <<_ACEOF
21336 /* confdefs.h.  */
21337 _ACEOF
21338 cat confdefs.h >>conftest.$ac_ext
21339 cat >>conftest.$ac_ext <<_ACEOF
21340 /* end confdefs.h.  */
21341 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21342    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21343 #define $ac_func innocuous_$ac_func
21345 /* System header to define __stub macros and hopefully few prototypes,
21346     which can conflict with char $ac_func (); below.
21347     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21348     <limits.h> exists even on freestanding compilers.  */
21350 #ifdef __STDC__
21351 # include <limits.h>
21352 #else
21353 # include <assert.h>
21354 #endif
21356 #undef $ac_func
21358 /* Override any GCC internal prototype to avoid an error.
21359    Use char because int might match the return type of a GCC
21360    builtin and then its argument prototype would still apply.  */
21361 #ifdef __cplusplus
21362 extern "C"
21363 #endif
21364 char $ac_func ();
21365 /* The GNU C library defines this for functions which it implements
21366     to always fail with ENOSYS.  Some functions are actually named
21367     something starting with __ and the normal name is an alias.  */
21368 #if defined __stub_$ac_func || defined __stub___$ac_func
21369 choke me
21370 #endif
21372 int
21373 main ()
21375 return $ac_func ();
21376   ;
21377   return 0;
21379 _ACEOF
21380 rm -f conftest.$ac_objext conftest$ac_exeext
21381 if { (ac_try="$ac_link"
21382 case "(($ac_try" in
21383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21384   *) ac_try_echo=$ac_try;;
21385 esac
21386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21387   (eval "$ac_link") 2>conftest.er1
21388   ac_status=$?
21389   grep -v '^ *+' conftest.er1 >conftest.err
21390   rm -f conftest.er1
21391   cat conftest.err >&5
21392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21393   (exit $ac_status); } && {
21394          test -z "$ac_c_werror_flag" ||
21395          test ! -s conftest.err
21396        } && test -s conftest$ac_exeext &&
21397        $as_test_x conftest$ac_exeext; then
21398   eval "$as_ac_var=yes"
21399 else
21400   echo "$as_me: failed program was:" >&5
21401 sed 's/^/| /' conftest.$ac_ext >&5
21403         eval "$as_ac_var=no"
21406 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21407       conftest$ac_exeext conftest.$ac_ext
21409 ac_res=`eval echo '${'$as_ac_var'}'`
21410                { echo "$as_me:$LINENO: result: $ac_res" >&5
21411 echo "${ECHO_T}$ac_res" >&6; }
21412 if test `eval echo '${'$as_ac_var'}'` = yes; then
21413   cat >>confdefs.h <<_ACEOF
21414 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21415 _ACEOF
21417 { echo "$as_me:$LINENO: checking for _doprnt" >&5
21418 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
21419 if test "${ac_cv_func__doprnt+set}" = set; then
21420   echo $ECHO_N "(cached) $ECHO_C" >&6
21421 else
21422   cat >conftest.$ac_ext <<_ACEOF
21423 /* confdefs.h.  */
21424 _ACEOF
21425 cat confdefs.h >>conftest.$ac_ext
21426 cat >>conftest.$ac_ext <<_ACEOF
21427 /* end confdefs.h.  */
21428 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
21429    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21430 #define _doprnt innocuous__doprnt
21432 /* System header to define __stub macros and hopefully few prototypes,
21433     which can conflict with char _doprnt (); below.
21434     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21435     <limits.h> exists even on freestanding compilers.  */
21437 #ifdef __STDC__
21438 # include <limits.h>
21439 #else
21440 # include <assert.h>
21441 #endif
21443 #undef _doprnt
21445 /* Override any GCC internal prototype to avoid an error.
21446    Use char because int might match the return type of a GCC
21447    builtin and then its argument prototype would still apply.  */
21448 #ifdef __cplusplus
21449 extern "C"
21450 #endif
21451 char _doprnt ();
21452 /* The GNU C library defines this for functions which it implements
21453     to always fail with ENOSYS.  Some functions are actually named
21454     something starting with __ and the normal name is an alias.  */
21455 #if defined __stub__doprnt || defined __stub____doprnt
21456 choke me
21457 #endif
21459 int
21460 main ()
21462 return _doprnt ();
21463   ;
21464   return 0;
21466 _ACEOF
21467 rm -f conftest.$ac_objext conftest$ac_exeext
21468 if { (ac_try="$ac_link"
21469 case "(($ac_try" in
21470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21471   *) ac_try_echo=$ac_try;;
21472 esac
21473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21474   (eval "$ac_link") 2>conftest.er1
21475   ac_status=$?
21476   grep -v '^ *+' conftest.er1 >conftest.err
21477   rm -f conftest.er1
21478   cat conftest.err >&5
21479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21480   (exit $ac_status); } && {
21481          test -z "$ac_c_werror_flag" ||
21482          test ! -s conftest.err
21483        } && test -s conftest$ac_exeext &&
21484        $as_test_x conftest$ac_exeext; then
21485   ac_cv_func__doprnt=yes
21486 else
21487   echo "$as_me: failed program was:" >&5
21488 sed 's/^/| /' conftest.$ac_ext >&5
21490         ac_cv_func__doprnt=no
21493 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21494       conftest$ac_exeext conftest.$ac_ext
21496 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
21497 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
21498 if test $ac_cv_func__doprnt = yes; then
21500 cat >>confdefs.h <<\_ACEOF
21501 #define HAVE_DOPRNT 1
21502 _ACEOF
21507 done
21511 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
21512 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
21513 if test "${ac_cv_c_bigendian+set}" = set; then
21514   echo $ECHO_N "(cached) $ECHO_C" >&6
21515 else
21516   # See if sys/param.h defines the BYTE_ORDER macro.
21517 cat >conftest.$ac_ext <<_ACEOF
21518 /* confdefs.h.  */
21519 _ACEOF
21520 cat confdefs.h >>conftest.$ac_ext
21521 cat >>conftest.$ac_ext <<_ACEOF
21522 /* end confdefs.h.  */
21523 #include <sys/types.h>
21524 #include <sys/param.h>
21526 int
21527 main ()
21529 #if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
21530         && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
21531  bogus endian macros
21532 #endif
21534   ;
21535   return 0;
21537 _ACEOF
21538 rm -f conftest.$ac_objext
21539 if { (ac_try="$ac_compile"
21540 case "(($ac_try" in
21541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21542   *) ac_try_echo=$ac_try;;
21543 esac
21544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21545   (eval "$ac_compile") 2>conftest.er1
21546   ac_status=$?
21547   grep -v '^ *+' conftest.er1 >conftest.err
21548   rm -f conftest.er1
21549   cat conftest.err >&5
21550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21551   (exit $ac_status); } && {
21552          test -z "$ac_c_werror_flag" ||
21553          test ! -s conftest.err
21554        } && test -s conftest.$ac_objext; then
21555   # It does; now see whether it defined to BIG_ENDIAN or not.
21556 cat >conftest.$ac_ext <<_ACEOF
21557 /* confdefs.h.  */
21558 _ACEOF
21559 cat confdefs.h >>conftest.$ac_ext
21560 cat >>conftest.$ac_ext <<_ACEOF
21561 /* end confdefs.h.  */
21562 #include <sys/types.h>
21563 #include <sys/param.h>
21565 int
21566 main ()
21568 #if BYTE_ORDER != BIG_ENDIAN
21569  not big endian
21570 #endif
21572   ;
21573   return 0;
21575 _ACEOF
21576 rm -f conftest.$ac_objext
21577 if { (ac_try="$ac_compile"
21578 case "(($ac_try" in
21579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21580   *) ac_try_echo=$ac_try;;
21581 esac
21582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21583   (eval "$ac_compile") 2>conftest.er1
21584   ac_status=$?
21585   grep -v '^ *+' conftest.er1 >conftest.err
21586   rm -f conftest.er1
21587   cat conftest.err >&5
21588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21589   (exit $ac_status); } && {
21590          test -z "$ac_c_werror_flag" ||
21591          test ! -s conftest.err
21592        } && test -s conftest.$ac_objext; then
21593   ac_cv_c_bigendian=yes
21594 else
21595   echo "$as_me: failed program was:" >&5
21596 sed 's/^/| /' conftest.$ac_ext >&5
21598         ac_cv_c_bigendian=no
21601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21602 else
21603   echo "$as_me: failed program was:" >&5
21604 sed 's/^/| /' conftest.$ac_ext >&5
21606         # It does not; compile a test program.
21607 if test "$cross_compiling" = yes; then
21608   # try to guess the endianness by grepping values into an object file
21609   ac_cv_c_bigendian=unknown
21610   cat >conftest.$ac_ext <<_ACEOF
21611 /* confdefs.h.  */
21612 _ACEOF
21613 cat confdefs.h >>conftest.$ac_ext
21614 cat >>conftest.$ac_ext <<_ACEOF
21615 /* end confdefs.h.  */
21616 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
21617 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
21618 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
21619 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
21620 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
21621 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
21622 int
21623 main ()
21625  _ascii (); _ebcdic ();
21626   ;
21627   return 0;
21629 _ACEOF
21630 rm -f conftest.$ac_objext
21631 if { (ac_try="$ac_compile"
21632 case "(($ac_try" in
21633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21634   *) ac_try_echo=$ac_try;;
21635 esac
21636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21637   (eval "$ac_compile") 2>conftest.er1
21638   ac_status=$?
21639   grep -v '^ *+' conftest.er1 >conftest.err
21640   rm -f conftest.er1
21641   cat conftest.err >&5
21642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21643   (exit $ac_status); } && {
21644          test -z "$ac_c_werror_flag" ||
21645          test ! -s conftest.err
21646        } && test -s conftest.$ac_objext; then
21647   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
21648   ac_cv_c_bigendian=yes
21650 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
21651   if test "$ac_cv_c_bigendian" = unknown; then
21652     ac_cv_c_bigendian=no
21653   else
21654     # finding both strings is unlikely to happen, but who knows?
21655     ac_cv_c_bigendian=unknown
21656   fi
21658 else
21659   echo "$as_me: failed program was:" >&5
21660 sed 's/^/| /' conftest.$ac_ext >&5
21665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21666 else
21667   cat >conftest.$ac_ext <<_ACEOF
21668 /* confdefs.h.  */
21669 _ACEOF
21670 cat confdefs.h >>conftest.$ac_ext
21671 cat >>conftest.$ac_ext <<_ACEOF
21672 /* end confdefs.h.  */
21673 $ac_includes_default
21674 int
21675 main ()
21678   /* Are we little or big endian?  From Harbison&Steele.  */
21679   union
21680   {
21681     long int l;
21682     char c[sizeof (long int)];
21683   } u;
21684   u.l = 1;
21685   return u.c[sizeof (long int) - 1] == 1;
21687   ;
21688   return 0;
21690 _ACEOF
21691 rm -f conftest$ac_exeext
21692 if { (ac_try="$ac_link"
21693 case "(($ac_try" in
21694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21695   *) ac_try_echo=$ac_try;;
21696 esac
21697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21698   (eval "$ac_link") 2>&5
21699   ac_status=$?
21700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21701   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21702   { (case "(($ac_try" in
21703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21704   *) ac_try_echo=$ac_try;;
21705 esac
21706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21707   (eval "$ac_try") 2>&5
21708   ac_status=$?
21709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21710   (exit $ac_status); }; }; then
21711   ac_cv_c_bigendian=no
21712 else
21713   echo "$as_me: program exited with status $ac_status" >&5
21714 echo "$as_me: failed program was:" >&5
21715 sed 's/^/| /' conftest.$ac_ext >&5
21717 ( exit $ac_status )
21718 ac_cv_c_bigendian=yes
21720 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21728 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
21729 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
21730 case $ac_cv_c_bigendian in
21731   yes)
21733 cat >>confdefs.h <<\_ACEOF
21734 #define WORDS_BIGENDIAN 1
21735 _ACEOF
21736  ;;
21737   no)
21738      ;;
21739   *)
21740     { { echo "$as_me:$LINENO: error: unknown endianness
21741 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
21742 echo "$as_me: error: unknown endianness
21743 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
21744    { (exit 1); exit 1; }; } ;;
21745 esac
21771 for ac_func in tzset fsync mbstowcs opendir readdir chdir chroot getuid setlocale strerror strerror_r snprintf vsnprintf fpclass class fp_class isnan memmove strchr mktime getrusage gettimeofday
21773 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21774 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21775 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21776 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21777   echo $ECHO_N "(cached) $ECHO_C" >&6
21778 else
21779   cat >conftest.$ac_ext <<_ACEOF
21780 /* confdefs.h.  */
21781 _ACEOF
21782 cat confdefs.h >>conftest.$ac_ext
21783 cat >>conftest.$ac_ext <<_ACEOF
21784 /* end confdefs.h.  */
21785 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21786    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21787 #define $ac_func innocuous_$ac_func
21789 /* System header to define __stub macros and hopefully few prototypes,
21790     which can conflict with char $ac_func (); below.
21791     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21792     <limits.h> exists even on freestanding compilers.  */
21794 #ifdef __STDC__
21795 # include <limits.h>
21796 #else
21797 # include <assert.h>
21798 #endif
21800 #undef $ac_func
21802 /* Override any GCC internal prototype to avoid an error.
21803    Use char because int might match the return type of a GCC
21804    builtin and then its argument prototype would still apply.  */
21805 #ifdef __cplusplus
21806 extern "C"
21807 #endif
21808 char $ac_func ();
21809 /* The GNU C library defines this for functions which it implements
21810     to always fail with ENOSYS.  Some functions are actually named
21811     something starting with __ and the normal name is an alias.  */
21812 #if defined __stub_$ac_func || defined __stub___$ac_func
21813 choke me
21814 #endif
21816 int
21817 main ()
21819 return $ac_func ();
21820   ;
21821   return 0;
21823 _ACEOF
21824 rm -f conftest.$ac_objext conftest$ac_exeext
21825 if { (ac_try="$ac_link"
21826 case "(($ac_try" in
21827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21828   *) ac_try_echo=$ac_try;;
21829 esac
21830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21831   (eval "$ac_link") 2>conftest.er1
21832   ac_status=$?
21833   grep -v '^ *+' conftest.er1 >conftest.err
21834   rm -f conftest.er1
21835   cat conftest.err >&5
21836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21837   (exit $ac_status); } && {
21838          test -z "$ac_c_werror_flag" ||
21839          test ! -s conftest.err
21840        } && test -s conftest$ac_exeext &&
21841        $as_test_x conftest$ac_exeext; then
21842   eval "$as_ac_var=yes"
21843 else
21844   echo "$as_me: failed program was:" >&5
21845 sed 's/^/| /' conftest.$ac_ext >&5
21847         eval "$as_ac_var=no"
21850 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21851       conftest$ac_exeext conftest.$ac_ext
21853 ac_res=`eval echo '${'$as_ac_var'}'`
21854                { echo "$as_me:$LINENO: result: $ac_res" >&5
21855 echo "${ECHO_T}$ac_res" >&6; }
21856 if test `eval echo '${'$as_ac_var'}'` = yes; then
21857   cat >>confdefs.h <<_ACEOF
21858 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21859 _ACEOF
21862 done
21866 case $TERM in
21867        #   for the most important terminal types we directly know the sequences
21868        xterm|xterm*|vt220|vt220*)
21869                T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
21870                T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
21871        ;;
21872        vt100|vt100*|cygwin)
21873                T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
21874                T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
21875        ;;
21876        *)
21877                T_MD=''
21878                T_ME=''
21879        ;;
21880 esac
21881   { echo "$as_me:$LINENO: result: " >&5
21882 echo "${ECHO_T}" >&6; }
21883   { echo "$as_me:$LINENO: result: ${T_MD}Map/Fadvis/Madvise checking${T_ME}" >&5
21884 echo "${ECHO_T}${T_MD}Map/Fadvis/Madvise checking${T_ME}" >&6; }
21890 for ac_func in fdatasync
21892 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21893 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21894 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21895 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21896   echo $ECHO_N "(cached) $ECHO_C" >&6
21897 else
21898   cat >conftest.$ac_ext <<_ACEOF
21899 /* confdefs.h.  */
21900 _ACEOF
21901 cat confdefs.h >>conftest.$ac_ext
21902 cat >>conftest.$ac_ext <<_ACEOF
21903 /* end confdefs.h.  */
21904 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21905    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21906 #define $ac_func innocuous_$ac_func
21908 /* System header to define __stub macros and hopefully few prototypes,
21909     which can conflict with char $ac_func (); below.
21910     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21911     <limits.h> exists even on freestanding compilers.  */
21913 #ifdef __STDC__
21914 # include <limits.h>
21915 #else
21916 # include <assert.h>
21917 #endif
21919 #undef $ac_func
21921 /* Override any GCC internal prototype to avoid an error.
21922    Use char because int might match the return type of a GCC
21923    builtin and then its argument prototype would still apply.  */
21924 #ifdef __cplusplus
21925 extern "C"
21926 #endif
21927 char $ac_func ();
21928 /* The GNU C library defines this for functions which it implements
21929     to always fail with ENOSYS.  Some functions are actually named
21930     something starting with __ and the normal name is an alias.  */
21931 #if defined __stub_$ac_func || defined __stub___$ac_func
21932 choke me
21933 #endif
21935 int
21936 main ()
21938 return $ac_func ();
21939   ;
21940   return 0;
21942 _ACEOF
21943 rm -f conftest.$ac_objext conftest$ac_exeext
21944 if { (ac_try="$ac_link"
21945 case "(($ac_try" in
21946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21947   *) ac_try_echo=$ac_try;;
21948 esac
21949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21950   (eval "$ac_link") 2>conftest.er1
21951   ac_status=$?
21952   grep -v '^ *+' conftest.er1 >conftest.err
21953   rm -f conftest.er1
21954   cat conftest.err >&5
21955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21956   (exit $ac_status); } && {
21957          test -z "$ac_c_werror_flag" ||
21958          test ! -s conftest.err
21959        } && test -s conftest$ac_exeext &&
21960        $as_test_x conftest$ac_exeext; then
21961   eval "$as_ac_var=yes"
21962 else
21963   echo "$as_me: failed program was:" >&5
21964 sed 's/^/| /' conftest.$ac_ext >&5
21966         eval "$as_ac_var=no"
21969 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21970       conftest$ac_exeext conftest.$ac_ext
21972 ac_res=`eval echo '${'$as_ac_var'}'`
21973                { echo "$as_me:$LINENO: result: $ac_res" >&5
21974 echo "${ECHO_T}$ac_res" >&6; }
21975 if test `eval echo '${'$as_ac_var'}'` = yes; then
21976   cat >>confdefs.h <<_ACEOF
21977 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21978 _ACEOF
21980 else
21981   { echo "$as_me:$LINENO: checking for fdatasync in -lrt" >&5
21982 echo $ECHO_N "checking for fdatasync in -lrt... $ECHO_C" >&6; }
21983 if test "${ac_cv_lib_rt_fdatasync+set}" = set; then
21984   echo $ECHO_N "(cached) $ECHO_C" >&6
21985 else
21986   ac_check_lib_save_LIBS=$LIBS
21987 LIBS="-lrt  $LIBS"
21988 cat >conftest.$ac_ext <<_ACEOF
21989 /* confdefs.h.  */
21990 _ACEOF
21991 cat confdefs.h >>conftest.$ac_ext
21992 cat >>conftest.$ac_ext <<_ACEOF
21993 /* end confdefs.h.  */
21995 /* Override any GCC internal prototype to avoid an error.
21996    Use char because int might match the return type of a GCC
21997    builtin and then its argument prototype would still apply.  */
21998 #ifdef __cplusplus
21999 extern "C"
22000 #endif
22001 char fdatasync ();
22002 int
22003 main ()
22005 return fdatasync ();
22006   ;
22007   return 0;
22009 _ACEOF
22010 rm -f conftest.$ac_objext conftest$ac_exeext
22011 if { (ac_try="$ac_link"
22012 case "(($ac_try" in
22013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22014   *) ac_try_echo=$ac_try;;
22015 esac
22016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22017   (eval "$ac_link") 2>conftest.er1
22018   ac_status=$?
22019   grep -v '^ *+' conftest.er1 >conftest.err
22020   rm -f conftest.er1
22021   cat conftest.err >&5
22022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22023   (exit $ac_status); } && {
22024          test -z "$ac_c_werror_flag" ||
22025          test ! -s conftest.err
22026        } && test -s conftest$ac_exeext &&
22027        $as_test_x conftest$ac_exeext; then
22028   ac_cv_lib_rt_fdatasync=yes
22029 else
22030   echo "$as_me: failed program was:" >&5
22031 sed 's/^/| /' conftest.$ac_ext >&5
22033         ac_cv_lib_rt_fdatasync=no
22036 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22037       conftest$ac_exeext conftest.$ac_ext
22038 LIBS=$ac_check_lib_save_LIBS
22040 { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_fdatasync" >&5
22041 echo "${ECHO_T}$ac_cv_lib_rt_fdatasync" >&6; }
22042 if test $ac_cv_lib_rt_fdatasync = yes; then
22043   LIBS="${LIBS} -lrt"; cat >>confdefs.h <<\_ACEOF
22044 #define HAVE_FDATASYNC 1
22045 _ACEOF
22050 done
22053 for ac_func in fsync
22055 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22056 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22057 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22058 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22059   echo $ECHO_N "(cached) $ECHO_C" >&6
22060 else
22061   cat >conftest.$ac_ext <<_ACEOF
22062 /* confdefs.h.  */
22063 _ACEOF
22064 cat confdefs.h >>conftest.$ac_ext
22065 cat >>conftest.$ac_ext <<_ACEOF
22066 /* end confdefs.h.  */
22067 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22068    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22069 #define $ac_func innocuous_$ac_func
22071 /* System header to define __stub macros and hopefully few prototypes,
22072     which can conflict with char $ac_func (); below.
22073     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22074     <limits.h> exists even on freestanding compilers.  */
22076 #ifdef __STDC__
22077 # include <limits.h>
22078 #else
22079 # include <assert.h>
22080 #endif
22082 #undef $ac_func
22084 /* Override any GCC internal prototype to avoid an error.
22085    Use char because int might match the return type of a GCC
22086    builtin and then its argument prototype would still apply.  */
22087 #ifdef __cplusplus
22088 extern "C"
22089 #endif
22090 char $ac_func ();
22091 /* The GNU C library defines this for functions which it implements
22092     to always fail with ENOSYS.  Some functions are actually named
22093     something starting with __ and the normal name is an alias.  */
22094 #if defined __stub_$ac_func || defined __stub___$ac_func
22095 choke me
22096 #endif
22098 int
22099 main ()
22101 return $ac_func ();
22102   ;
22103   return 0;
22105 _ACEOF
22106 rm -f conftest.$ac_objext conftest$ac_exeext
22107 if { (ac_try="$ac_link"
22108 case "(($ac_try" in
22109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22110   *) ac_try_echo=$ac_try;;
22111 esac
22112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22113   (eval "$ac_link") 2>conftest.er1
22114   ac_status=$?
22115   grep -v '^ *+' conftest.er1 >conftest.err
22116   rm -f conftest.er1
22117   cat conftest.err >&5
22118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22119   (exit $ac_status); } && {
22120          test -z "$ac_c_werror_flag" ||
22121          test ! -s conftest.err
22122        } && test -s conftest$ac_exeext &&
22123        $as_test_x conftest$ac_exeext; then
22124   eval "$as_ac_var=yes"
22125 else
22126   echo "$as_me: failed program was:" >&5
22127 sed 's/^/| /' conftest.$ac_ext >&5
22129         eval "$as_ac_var=no"
22132 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22133       conftest$ac_exeext conftest.$ac_ext
22135 ac_res=`eval echo '${'$as_ac_var'}'`
22136                { echo "$as_me:$LINENO: result: $ac_res" >&5
22137 echo "${ECHO_T}$ac_res" >&6; }
22138 if test `eval echo '${'$as_ac_var'}'` = yes; then
22139   cat >>confdefs.h <<_ACEOF
22140 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22141 _ACEOF
22144 done
22148 if test "x$enable_mmap" = "xyes"; then
22149   case "$host" in
22150   *cygwin*)
22151     # the normal mmap test does not work in cygwin
22153 for ac_func in mmap
22155 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22156 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22157 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22158 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22159   echo $ECHO_N "(cached) $ECHO_C" >&6
22160 else
22161   cat >conftest.$ac_ext <<_ACEOF
22162 /* confdefs.h.  */
22163 _ACEOF
22164 cat confdefs.h >>conftest.$ac_ext
22165 cat >>conftest.$ac_ext <<_ACEOF
22166 /* end confdefs.h.  */
22167 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22168    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22169 #define $ac_func innocuous_$ac_func
22171 /* System header to define __stub macros and hopefully few prototypes,
22172     which can conflict with char $ac_func (); below.
22173     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22174     <limits.h> exists even on freestanding compilers.  */
22176 #ifdef __STDC__
22177 # include <limits.h>
22178 #else
22179 # include <assert.h>
22180 #endif
22182 #undef $ac_func
22184 /* Override any GCC internal prototype to avoid an error.
22185    Use char because int might match the return type of a GCC
22186    builtin and then its argument prototype would still apply.  */
22187 #ifdef __cplusplus
22188 extern "C"
22189 #endif
22190 char $ac_func ();
22191 /* The GNU C library defines this for functions which it implements
22192     to always fail with ENOSYS.  Some functions are actually named
22193     something starting with __ and the normal name is an alias.  */
22194 #if defined __stub_$ac_func || defined __stub___$ac_func
22195 choke me
22196 #endif
22198 int
22199 main ()
22201 return $ac_func ();
22202   ;
22203   return 0;
22205 _ACEOF
22206 rm -f conftest.$ac_objext conftest$ac_exeext
22207 if { (ac_try="$ac_link"
22208 case "(($ac_try" in
22209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22210   *) ac_try_echo=$ac_try;;
22211 esac
22212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22213   (eval "$ac_link") 2>conftest.er1
22214   ac_status=$?
22215   grep -v '^ *+' conftest.er1 >conftest.err
22216   rm -f conftest.er1
22217   cat conftest.err >&5
22218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22219   (exit $ac_status); } && {
22220          test -z "$ac_c_werror_flag" ||
22221          test ! -s conftest.err
22222        } && test -s conftest$ac_exeext &&
22223        $as_test_x conftest$ac_exeext; then
22224   eval "$as_ac_var=yes"
22225 else
22226   echo "$as_me: failed program was:" >&5
22227 sed 's/^/| /' conftest.$ac_ext >&5
22229         eval "$as_ac_var=no"
22232 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22233       conftest$ac_exeext conftest.$ac_ext
22235 ac_res=`eval echo '${'$as_ac_var'}'`
22236                { echo "$as_me:$LINENO: result: $ac_res" >&5
22237 echo "${ECHO_T}$ac_res" >&6; }
22238 if test `eval echo '${'$as_ac_var'}'` = yes; then
22239   cat >>confdefs.h <<_ACEOF
22240 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22241 _ACEOF
22244 done
22246     if test "x$ac_cv_func_mmap" = "xyes"; then
22247       ac_cv_func_mmap_fixed_mapped=yes
22248     fi
22249   ;;
22250   *)
22252 for ac_header in sys/mman.h
22254 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22255 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22256   { echo "$as_me:$LINENO: checking for $ac_header" >&5
22257 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22258 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22259   echo $ECHO_N "(cached) $ECHO_C" >&6
22261 ac_res=`eval echo '${'$as_ac_Header'}'`
22262                { echo "$as_me:$LINENO: result: $ac_res" >&5
22263 echo "${ECHO_T}$ac_res" >&6; }
22264 else
22265   # Is the header compilable?
22266 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22267 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22268 cat >conftest.$ac_ext <<_ACEOF
22269 /* confdefs.h.  */
22270 _ACEOF
22271 cat confdefs.h >>conftest.$ac_ext
22272 cat >>conftest.$ac_ext <<_ACEOF
22273 /* end confdefs.h.  */
22274 $ac_includes_default
22275 #include <$ac_header>
22276 _ACEOF
22277 rm -f conftest.$ac_objext
22278 if { (ac_try="$ac_compile"
22279 case "(($ac_try" in
22280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22281   *) ac_try_echo=$ac_try;;
22282 esac
22283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22284   (eval "$ac_compile") 2>conftest.er1
22285   ac_status=$?
22286   grep -v '^ *+' conftest.er1 >conftest.err
22287   rm -f conftest.er1
22288   cat conftest.err >&5
22289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22290   (exit $ac_status); } && {
22291          test -z "$ac_c_werror_flag" ||
22292          test ! -s conftest.err
22293        } && test -s conftest.$ac_objext; then
22294   ac_header_compiler=yes
22295 else
22296   echo "$as_me: failed program was:" >&5
22297 sed 's/^/| /' conftest.$ac_ext >&5
22299         ac_header_compiler=no
22302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22303 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22304 echo "${ECHO_T}$ac_header_compiler" >&6; }
22306 # Is the header present?
22307 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22308 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22309 cat >conftest.$ac_ext <<_ACEOF
22310 /* confdefs.h.  */
22311 _ACEOF
22312 cat confdefs.h >>conftest.$ac_ext
22313 cat >>conftest.$ac_ext <<_ACEOF
22314 /* end confdefs.h.  */
22315 #include <$ac_header>
22316 _ACEOF
22317 if { (ac_try="$ac_cpp conftest.$ac_ext"
22318 case "(($ac_try" in
22319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22320   *) ac_try_echo=$ac_try;;
22321 esac
22322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22323   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22324   ac_status=$?
22325   grep -v '^ *+' conftest.er1 >conftest.err
22326   rm -f conftest.er1
22327   cat conftest.err >&5
22328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22329   (exit $ac_status); } >/dev/null && {
22330          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22331          test ! -s conftest.err
22332        }; then
22333   ac_header_preproc=yes
22334 else
22335   echo "$as_me: failed program was:" >&5
22336 sed 's/^/| /' conftest.$ac_ext >&5
22338   ac_header_preproc=no
22341 rm -f conftest.err conftest.$ac_ext
22342 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22343 echo "${ECHO_T}$ac_header_preproc" >&6; }
22345 # So?  What about this header?
22346 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22347   yes:no: )
22348     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22349 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22350     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22351 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22352     ac_header_preproc=yes
22353     ;;
22354   no:yes:* )
22355     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22356 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22357     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22358 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22359     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22360 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22361     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22362 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22363     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22364 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22365     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22366 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22368     ;;
22369 esac
22370 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22371 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22372 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22373   echo $ECHO_N "(cached) $ECHO_C" >&6
22374 else
22375   eval "$as_ac_Header=\$ac_header_preproc"
22377 ac_res=`eval echo '${'$as_ac_Header'}'`
22378                { echo "$as_me:$LINENO: result: $ac_res" >&5
22379 echo "${ECHO_T}$ac_res" >&6; }
22382 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22383   cat >>confdefs.h <<_ACEOF
22384 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22385 _ACEOF
22389 done
22393 for ac_header in stdlib.h unistd.h
22395 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22396 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22397   { echo "$as_me:$LINENO: checking for $ac_header" >&5
22398 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22399 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22400   echo $ECHO_N "(cached) $ECHO_C" >&6
22402 ac_res=`eval echo '${'$as_ac_Header'}'`
22403                { echo "$as_me:$LINENO: result: $ac_res" >&5
22404 echo "${ECHO_T}$ac_res" >&6; }
22405 else
22406   # Is the header compilable?
22407 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22408 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22409 cat >conftest.$ac_ext <<_ACEOF
22410 /* confdefs.h.  */
22411 _ACEOF
22412 cat confdefs.h >>conftest.$ac_ext
22413 cat >>conftest.$ac_ext <<_ACEOF
22414 /* end confdefs.h.  */
22415 $ac_includes_default
22416 #include <$ac_header>
22417 _ACEOF
22418 rm -f conftest.$ac_objext
22419 if { (ac_try="$ac_compile"
22420 case "(($ac_try" in
22421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22422   *) ac_try_echo=$ac_try;;
22423 esac
22424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22425   (eval "$ac_compile") 2>conftest.er1
22426   ac_status=$?
22427   grep -v '^ *+' conftest.er1 >conftest.err
22428   rm -f conftest.er1
22429   cat conftest.err >&5
22430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22431   (exit $ac_status); } && {
22432          test -z "$ac_c_werror_flag" ||
22433          test ! -s conftest.err
22434        } && test -s conftest.$ac_objext; then
22435   ac_header_compiler=yes
22436 else
22437   echo "$as_me: failed program was:" >&5
22438 sed 's/^/| /' conftest.$ac_ext >&5
22440         ac_header_compiler=no
22443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22444 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22445 echo "${ECHO_T}$ac_header_compiler" >&6; }
22447 # Is the header present?
22448 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22449 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22450 cat >conftest.$ac_ext <<_ACEOF
22451 /* confdefs.h.  */
22452 _ACEOF
22453 cat confdefs.h >>conftest.$ac_ext
22454 cat >>conftest.$ac_ext <<_ACEOF
22455 /* end confdefs.h.  */
22456 #include <$ac_header>
22457 _ACEOF
22458 if { (ac_try="$ac_cpp conftest.$ac_ext"
22459 case "(($ac_try" in
22460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22461   *) ac_try_echo=$ac_try;;
22462 esac
22463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22464   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22465   ac_status=$?
22466   grep -v '^ *+' conftest.er1 >conftest.err
22467   rm -f conftest.er1
22468   cat conftest.err >&5
22469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22470   (exit $ac_status); } >/dev/null && {
22471          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22472          test ! -s conftest.err
22473        }; then
22474   ac_header_preproc=yes
22475 else
22476   echo "$as_me: failed program was:" >&5
22477 sed 's/^/| /' conftest.$ac_ext >&5
22479   ac_header_preproc=no
22482 rm -f conftest.err conftest.$ac_ext
22483 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22484 echo "${ECHO_T}$ac_header_preproc" >&6; }
22486 # So?  What about this header?
22487 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22488   yes:no: )
22489     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22490 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22491     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22492 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22493     ac_header_preproc=yes
22494     ;;
22495   no:yes:* )
22496     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22497 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22498     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22499 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22500     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22501 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22502     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22503 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22504     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22505 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22506     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22507 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22509     ;;
22510 esac
22511 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22512 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22513 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22514   echo $ECHO_N "(cached) $ECHO_C" >&6
22515 else
22516   eval "$as_ac_Header=\$ac_header_preproc"
22518 ac_res=`eval echo '${'$as_ac_Header'}'`
22519                { echo "$as_me:$LINENO: result: $ac_res" >&5
22520 echo "${ECHO_T}$ac_res" >&6; }
22523 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22524   cat >>confdefs.h <<_ACEOF
22525 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22526 _ACEOF
22530 done
22533 for ac_func in getpagesize
22535 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22536 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22537 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22538 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22539   echo $ECHO_N "(cached) $ECHO_C" >&6
22540 else
22541   cat >conftest.$ac_ext <<_ACEOF
22542 /* confdefs.h.  */
22543 _ACEOF
22544 cat confdefs.h >>conftest.$ac_ext
22545 cat >>conftest.$ac_ext <<_ACEOF
22546 /* end confdefs.h.  */
22547 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22548    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22549 #define $ac_func innocuous_$ac_func
22551 /* System header to define __stub macros and hopefully few prototypes,
22552     which can conflict with char $ac_func (); below.
22553     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22554     <limits.h> exists even on freestanding compilers.  */
22556 #ifdef __STDC__
22557 # include <limits.h>
22558 #else
22559 # include <assert.h>
22560 #endif
22562 #undef $ac_func
22564 /* Override any GCC internal prototype to avoid an error.
22565    Use char because int might match the return type of a GCC
22566    builtin and then its argument prototype would still apply.  */
22567 #ifdef __cplusplus
22568 extern "C"
22569 #endif
22570 char $ac_func ();
22571 /* The GNU C library defines this for functions which it implements
22572     to always fail with ENOSYS.  Some functions are actually named
22573     something starting with __ and the normal name is an alias.  */
22574 #if defined __stub_$ac_func || defined __stub___$ac_func
22575 choke me
22576 #endif
22578 int
22579 main ()
22581 return $ac_func ();
22582   ;
22583   return 0;
22585 _ACEOF
22586 rm -f conftest.$ac_objext conftest$ac_exeext
22587 if { (ac_try="$ac_link"
22588 case "(($ac_try" in
22589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22590   *) ac_try_echo=$ac_try;;
22591 esac
22592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22593   (eval "$ac_link") 2>conftest.er1
22594   ac_status=$?
22595   grep -v '^ *+' conftest.er1 >conftest.err
22596   rm -f conftest.er1
22597   cat conftest.err >&5
22598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22599   (exit $ac_status); } && {
22600          test -z "$ac_c_werror_flag" ||
22601          test ! -s conftest.err
22602        } && test -s conftest$ac_exeext &&
22603        $as_test_x conftest$ac_exeext; then
22604   eval "$as_ac_var=yes"
22605 else
22606   echo "$as_me: failed program was:" >&5
22607 sed 's/^/| /' conftest.$ac_ext >&5
22609         eval "$as_ac_var=no"
22612 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22613       conftest$ac_exeext conftest.$ac_ext
22615 ac_res=`eval echo '${'$as_ac_var'}'`
22616                { echo "$as_me:$LINENO: result: $ac_res" >&5
22617 echo "${ECHO_T}$ac_res" >&6; }
22618 if test `eval echo '${'$as_ac_var'}'` = yes; then
22619   cat >>confdefs.h <<_ACEOF
22620 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22621 _ACEOF
22624 done
22626 { echo "$as_me:$LINENO: checking for working mmap" >&5
22627 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
22628 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
22629   echo $ECHO_N "(cached) $ECHO_C" >&6
22630 else
22631   if test "$cross_compiling" = yes; then
22632   ac_cv_func_mmap_fixed_mapped=no
22633 else
22634   cat >conftest.$ac_ext <<_ACEOF
22635 /* confdefs.h.  */
22636 _ACEOF
22637 cat confdefs.h >>conftest.$ac_ext
22638 cat >>conftest.$ac_ext <<_ACEOF
22639 /* end confdefs.h.  */
22640 $ac_includes_default
22641 /* malloc might have been renamed as rpl_malloc. */
22642 #undef malloc
22644 /* Thanks to Mike Haertel and Jim Avera for this test.
22645    Here is a matrix of mmap possibilities:
22646         mmap private not fixed
22647         mmap private fixed at somewhere currently unmapped
22648         mmap private fixed at somewhere already mapped
22649         mmap shared not fixed
22650         mmap shared fixed at somewhere currently unmapped
22651         mmap shared fixed at somewhere already mapped
22652    For private mappings, we should verify that changes cannot be read()
22653    back from the file, nor mmap's back from the file at a different
22654    address.  (There have been systems where private was not correctly
22655    implemented like the infamous i386 svr4.0, and systems where the
22656    VM page cache was not coherent with the file system buffer cache
22657    like early versions of FreeBSD and possibly contemporary NetBSD.)
22658    For shared mappings, we should conversely verify that changes get
22659    propagated back to all the places they're supposed to be.
22661    Grep wants private fixed already mapped.
22662    The main things grep needs to know about mmap are:
22663    * does it exist and is it safe to write into the mmap'd area
22664    * how to use it (BSD variants)  */
22666 #include <fcntl.h>
22667 #include <sys/mman.h>
22669 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
22670 char *malloc ();
22671 #endif
22673 /* This mess was copied from the GNU getpagesize.h.  */
22674 #ifndef HAVE_GETPAGESIZE
22675 /* Assume that all systems that can run configure have sys/param.h.  */
22676 # ifndef HAVE_SYS_PARAM_H
22677 #  define HAVE_SYS_PARAM_H 1
22678 # endif
22680 # ifdef _SC_PAGESIZE
22681 #  define getpagesize() sysconf(_SC_PAGESIZE)
22682 # else /* no _SC_PAGESIZE */
22683 #  ifdef HAVE_SYS_PARAM_H
22684 #   include <sys/param.h>
22685 #   ifdef EXEC_PAGESIZE
22686 #    define getpagesize() EXEC_PAGESIZE
22687 #   else /* no EXEC_PAGESIZE */
22688 #    ifdef NBPG
22689 #     define getpagesize() NBPG * CLSIZE
22690 #     ifndef CLSIZE
22691 #      define CLSIZE 1
22692 #     endif /* no CLSIZE */
22693 #    else /* no NBPG */
22694 #     ifdef NBPC
22695 #      define getpagesize() NBPC
22696 #     else /* no NBPC */
22697 #      ifdef PAGESIZE
22698 #       define getpagesize() PAGESIZE
22699 #      endif /* PAGESIZE */
22700 #     endif /* no NBPC */
22701 #    endif /* no NBPG */
22702 #   endif /* no EXEC_PAGESIZE */
22703 #  else /* no HAVE_SYS_PARAM_H */
22704 #   define getpagesize() 8192   /* punt totally */
22705 #  endif /* no HAVE_SYS_PARAM_H */
22706 # endif /* no _SC_PAGESIZE */
22708 #endif /* no HAVE_GETPAGESIZE */
22710 int
22711 main ()
22713   char *data, *data2, *data3;
22714   int i, pagesize;
22715   int fd;
22717   pagesize = getpagesize ();
22719   /* First, make a file with some known garbage in it. */
22720   data = (char *) malloc (pagesize);
22721   if (!data)
22722     return 1;
22723   for (i = 0; i < pagesize; ++i)
22724     *(data + i) = rand ();
22725   umask (0);
22726   fd = creat ("conftest.mmap", 0600);
22727   if (fd < 0)
22728     return 1;
22729   if (write (fd, data, pagesize) != pagesize)
22730     return 1;
22731   close (fd);
22733   /* Next, try to mmap the file at a fixed address which already has
22734      something else allocated at it.  If we can, also make sure that
22735      we see the same garbage.  */
22736   fd = open ("conftest.mmap", O_RDWR);
22737   if (fd < 0)
22738     return 1;
22739   data2 = (char *) malloc (2 * pagesize);
22740   if (!data2)
22741     return 1;
22742   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
22743   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22744                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
22745     return 1;
22746   for (i = 0; i < pagesize; ++i)
22747     if (*(data + i) != *(data2 + i))
22748       return 1;
22750   /* Finally, make sure that changes to the mapped area do not
22751      percolate back to the file as seen by read().  (This is a bug on
22752      some variants of i386 svr4.0.)  */
22753   for (i = 0; i < pagesize; ++i)
22754     *(data2 + i) = *(data2 + i) + 1;
22755   data3 = (char *) malloc (pagesize);
22756   if (!data3)
22757     return 1;
22758   if (read (fd, data3, pagesize) != pagesize)
22759     return 1;
22760   for (i = 0; i < pagesize; ++i)
22761     if (*(data + i) != *(data3 + i))
22762       return 1;
22763   close (fd);
22764   return 0;
22766 _ACEOF
22767 rm -f conftest$ac_exeext
22768 if { (ac_try="$ac_link"
22769 case "(($ac_try" in
22770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22771   *) ac_try_echo=$ac_try;;
22772 esac
22773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22774   (eval "$ac_link") 2>&5
22775   ac_status=$?
22776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22777   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22778   { (case "(($ac_try" in
22779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22780   *) ac_try_echo=$ac_try;;
22781 esac
22782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22783   (eval "$ac_try") 2>&5
22784   ac_status=$?
22785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22786   (exit $ac_status); }; }; then
22787   ac_cv_func_mmap_fixed_mapped=yes
22788 else
22789   echo "$as_me: program exited with status $ac_status" >&5
22790 echo "$as_me: failed program was:" >&5
22791 sed 's/^/| /' conftest.$ac_ext >&5
22793 ( exit $ac_status )
22794 ac_cv_func_mmap_fixed_mapped=no
22796 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22801 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
22802 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
22803 if test $ac_cv_func_mmap_fixed_mapped = yes; then
22805 cat >>confdefs.h <<\_ACEOF
22806 #define HAVE_MMAP 1
22807 _ACEOF
22810 rm -f conftest.mmap
22815 for ac_func in mmap munmap msync
22817 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22818 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22819 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22820 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22821   echo $ECHO_N "(cached) $ECHO_C" >&6
22822 else
22823   cat >conftest.$ac_ext <<_ACEOF
22824 /* confdefs.h.  */
22825 _ACEOF
22826 cat confdefs.h >>conftest.$ac_ext
22827 cat >>conftest.$ac_ext <<_ACEOF
22828 /* end confdefs.h.  */
22829 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22830    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22831 #define $ac_func innocuous_$ac_func
22833 /* System header to define __stub macros and hopefully few prototypes,
22834     which can conflict with char $ac_func (); below.
22835     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22836     <limits.h> exists even on freestanding compilers.  */
22838 #ifdef __STDC__
22839 # include <limits.h>
22840 #else
22841 # include <assert.h>
22842 #endif
22844 #undef $ac_func
22846 /* Override any GCC internal prototype to avoid an error.
22847    Use char because int might match the return type of a GCC
22848    builtin and then its argument prototype would still apply.  */
22849 #ifdef __cplusplus
22850 extern "C"
22851 #endif
22852 char $ac_func ();
22853 /* The GNU C library defines this for functions which it implements
22854     to always fail with ENOSYS.  Some functions are actually named
22855     something starting with __ and the normal name is an alias.  */
22856 #if defined __stub_$ac_func || defined __stub___$ac_func
22857 choke me
22858 #endif
22860 int
22861 main ()
22863 return $ac_func ();
22864   ;
22865   return 0;
22867 _ACEOF
22868 rm -f conftest.$ac_objext conftest$ac_exeext
22869 if { (ac_try="$ac_link"
22870 case "(($ac_try" in
22871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22872   *) ac_try_echo=$ac_try;;
22873 esac
22874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22875   (eval "$ac_link") 2>conftest.er1
22876   ac_status=$?
22877   grep -v '^ *+' conftest.er1 >conftest.err
22878   rm -f conftest.er1
22879   cat conftest.err >&5
22880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22881   (exit $ac_status); } && {
22882          test -z "$ac_c_werror_flag" ||
22883          test ! -s conftest.err
22884        } && test -s conftest$ac_exeext &&
22885        $as_test_x conftest$ac_exeext; then
22886   eval "$as_ac_var=yes"
22887 else
22888   echo "$as_me: failed program was:" >&5
22889 sed 's/^/| /' conftest.$ac_ext >&5
22891         eval "$as_ac_var=no"
22894 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22895       conftest$ac_exeext conftest.$ac_ext
22897 ac_res=`eval echo '${'$as_ac_var'}'`
22898                { echo "$as_me:$LINENO: result: $ac_res" >&5
22899 echo "${ECHO_T}$ac_res" >&6; }
22900 if test `eval echo '${'$as_ac_var'}'` = yes; then
22901   cat >>confdefs.h <<_ACEOF
22902 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22903 _ACEOF
22906 done
22908     { echo "$as_me:$LINENO: checking whether madvise is declared" >&5
22909 echo $ECHO_N "checking whether madvise is declared... $ECHO_C" >&6; }
22910 if test "${ac_cv_have_decl_madvise+set}" = set; then
22911   echo $ECHO_N "(cached) $ECHO_C" >&6
22912 else
22913   cat >conftest.$ac_ext <<_ACEOF
22914 /* confdefs.h.  */
22915 _ACEOF
22916 cat confdefs.h >>conftest.$ac_ext
22917 cat >>conftest.$ac_ext <<_ACEOF
22918 /* end confdefs.h.  */
22919 #ifdef HAVE_SYS_MMAN_H
22920                                      # include <sys/mman.h>
22921                                      #endif
22923 int
22924 main ()
22926 #ifndef madvise
22927   (void) madvise;
22928 #endif
22930   ;
22931   return 0;
22933 _ACEOF
22934 rm -f conftest.$ac_objext
22935 if { (ac_try="$ac_compile"
22936 case "(($ac_try" in
22937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22938   *) ac_try_echo=$ac_try;;
22939 esac
22940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22941   (eval "$ac_compile") 2>conftest.er1
22942   ac_status=$?
22943   grep -v '^ *+' conftest.er1 >conftest.err
22944   rm -f conftest.er1
22945   cat conftest.err >&5
22946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22947   (exit $ac_status); } && {
22948          test -z "$ac_c_werror_flag" ||
22949          test ! -s conftest.err
22950        } && test -s conftest.$ac_objext; then
22951   ac_cv_have_decl_madvise=yes
22952 else
22953   echo "$as_me: failed program was:" >&5
22954 sed 's/^/| /' conftest.$ac_ext >&5
22956         ac_cv_have_decl_madvise=no
22959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22961 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_madvise" >&5
22962 echo "${ECHO_T}$ac_cv_have_decl_madvise" >&6; }
22963 if test $ac_cv_have_decl_madvise = yes; then
22965 cat >>confdefs.h <<_ACEOF
22966 #define HAVE_DECL_MADVISE 1
22967 _ACEOF
22970 else
22971   cat >>confdefs.h <<_ACEOF
22972 #define HAVE_DECL_MADVISE 0
22973 _ACEOF
22979     if test "x$ac_cv_have_decl_madvise" = "xyes";
22980     then
22982 for ac_func in madvise
22984 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22985 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22986 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22987 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22988   echo $ECHO_N "(cached) $ECHO_C" >&6
22989 else
22990   cat >conftest.$ac_ext <<_ACEOF
22991 /* confdefs.h.  */
22992 _ACEOF
22993 cat confdefs.h >>conftest.$ac_ext
22994 cat >>conftest.$ac_ext <<_ACEOF
22995 /* end confdefs.h.  */
22996 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22997    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22998 #define $ac_func innocuous_$ac_func
23000 /* System header to define __stub macros and hopefully few prototypes,
23001     which can conflict with char $ac_func (); below.
23002     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23003     <limits.h> exists even on freestanding compilers.  */
23005 #ifdef __STDC__
23006 # include <limits.h>
23007 #else
23008 # include <assert.h>
23009 #endif
23011 #undef $ac_func
23013 /* Override any GCC internal prototype to avoid an error.
23014    Use char because int might match the return type of a GCC
23015    builtin and then its argument prototype would still apply.  */
23016 #ifdef __cplusplus
23017 extern "C"
23018 #endif
23019 char $ac_func ();
23020 /* The GNU C library defines this for functions which it implements
23021     to always fail with ENOSYS.  Some functions are actually named
23022     something starting with __ and the normal name is an alias.  */
23023 #if defined __stub_$ac_func || defined __stub___$ac_func
23024 choke me
23025 #endif
23027 int
23028 main ()
23030 return $ac_func ();
23031   ;
23032   return 0;
23034 _ACEOF
23035 rm -f conftest.$ac_objext conftest$ac_exeext
23036 if { (ac_try="$ac_link"
23037 case "(($ac_try" in
23038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23039   *) ac_try_echo=$ac_try;;
23040 esac
23041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23042   (eval "$ac_link") 2>conftest.er1
23043   ac_status=$?
23044   grep -v '^ *+' conftest.er1 >conftest.err
23045   rm -f conftest.er1
23046   cat conftest.err >&5
23047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23048   (exit $ac_status); } && {
23049          test -z "$ac_c_werror_flag" ||
23050          test ! -s conftest.err
23051        } && test -s conftest$ac_exeext &&
23052        $as_test_x conftest$ac_exeext; then
23053   eval "$as_ac_var=yes"
23054 else
23055   echo "$as_me: failed program was:" >&5
23056 sed 's/^/| /' conftest.$ac_ext >&5
23058         eval "$as_ac_var=no"
23061 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23062       conftest$ac_exeext conftest.$ac_ext
23064 ac_res=`eval echo '${'$as_ac_var'}'`
23065                { echo "$as_me:$LINENO: result: $ac_res" >&5
23066 echo "${ECHO_T}$ac_res" >&6; }
23067 if test `eval echo '${'$as_ac_var'}'` = yes; then
23068   cat >>confdefs.h <<_ACEOF
23069 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23070 _ACEOF
23073 done
23075     else
23077 for ac_func in posix_madvise
23079 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23080 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23081 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23082 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23083   echo $ECHO_N "(cached) $ECHO_C" >&6
23084 else
23085   cat >conftest.$ac_ext <<_ACEOF
23086 /* confdefs.h.  */
23087 _ACEOF
23088 cat confdefs.h >>conftest.$ac_ext
23089 cat >>conftest.$ac_ext <<_ACEOF
23090 /* end confdefs.h.  */
23091 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23092    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23093 #define $ac_func innocuous_$ac_func
23095 /* System header to define __stub macros and hopefully few prototypes,
23096     which can conflict with char $ac_func (); below.
23097     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23098     <limits.h> exists even on freestanding compilers.  */
23100 #ifdef __STDC__
23101 # include <limits.h>
23102 #else
23103 # include <assert.h>
23104 #endif
23106 #undef $ac_func
23108 /* Override any GCC internal prototype to avoid an error.
23109    Use char because int might match the return type of a GCC
23110    builtin and then its argument prototype would still apply.  */
23111 #ifdef __cplusplus
23112 extern "C"
23113 #endif
23114 char $ac_func ();
23115 /* The GNU C library defines this for functions which it implements
23116     to always fail with ENOSYS.  Some functions are actually named
23117     something starting with __ and the normal name is an alias.  */
23118 #if defined __stub_$ac_func || defined __stub___$ac_func
23119 choke me
23120 #endif
23122 int
23123 main ()
23125 return $ac_func ();
23126   ;
23127   return 0;
23129 _ACEOF
23130 rm -f conftest.$ac_objext conftest$ac_exeext
23131 if { (ac_try="$ac_link"
23132 case "(($ac_try" in
23133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23134   *) ac_try_echo=$ac_try;;
23135 esac
23136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23137   (eval "$ac_link") 2>conftest.er1
23138   ac_status=$?
23139   grep -v '^ *+' conftest.er1 >conftest.err
23140   rm -f conftest.er1
23141   cat conftest.err >&5
23142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23143   (exit $ac_status); } && {
23144          test -z "$ac_c_werror_flag" ||
23145          test ! -s conftest.err
23146        } && test -s conftest$ac_exeext &&
23147        $as_test_x conftest$ac_exeext; then
23148   eval "$as_ac_var=yes"
23149 else
23150   echo "$as_me: failed program was:" >&5
23151 sed 's/^/| /' conftest.$ac_ext >&5
23153         eval "$as_ac_var=no"
23156 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23157       conftest$ac_exeext conftest.$ac_ext
23159 ac_res=`eval echo '${'$as_ac_var'}'`
23160                { echo "$as_me:$LINENO: result: $ac_res" >&5
23161 echo "${ECHO_T}$ac_res" >&6; }
23162 if test `eval echo '${'$as_ac_var'}'` = yes; then
23163   cat >>confdefs.h <<_ACEOF
23164 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23165 _ACEOF
23168 done
23170       if test "x$ac_cv_func_posix_madvise" != "xyes"; then
23171         { echo "$as_me:$LINENO: WARNING: madvise() nor posix_madvise() found." >&5
23172 echo "$as_me: WARNING: madvise() nor posix_madvise() found." >&2;}
23173       fi
23174     fi
23175   ;;
23176   esac
23177   if test "x$ac_cv_func_mmap" != "xyes";
23178   then
23179     { { echo "$as_me:$LINENO: error: --enable-mmap requested but mmap() was not detected" >&5
23180 echo "$as_me: error: --enable-mmap requested but mmap() was not detected" >&2;}
23181    { (exit 1); exit 1; }; }
23182   fi
23185 { echo "$as_me:$LINENO: checking whether posix_fadvise is declared" >&5
23186 echo $ECHO_N "checking whether posix_fadvise is declared... $ECHO_C" >&6; }
23187 if test "${ac_cv_have_decl_posix_fadvise+set}" = set; then
23188   echo $ECHO_N "(cached) $ECHO_C" >&6
23189 else
23190   cat >conftest.$ac_ext <<_ACEOF
23191 /* confdefs.h.  */
23192 _ACEOF
23193 cat confdefs.h >>conftest.$ac_ext
23194 cat >>conftest.$ac_ext <<_ACEOF
23195 /* end confdefs.h.  */
23196 #define _XOPEN_SOURCE 600
23197 #include <fcntl.h>
23199 int
23200 main ()
23202 #ifndef posix_fadvise
23203   (void) posix_fadvise;
23204 #endif
23206   ;
23207   return 0;
23209 _ACEOF
23210 rm -f conftest.$ac_objext
23211 if { (ac_try="$ac_compile"
23212 case "(($ac_try" in
23213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23214   *) ac_try_echo=$ac_try;;
23215 esac
23216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23217   (eval "$ac_compile") 2>conftest.er1
23218   ac_status=$?
23219   grep -v '^ *+' conftest.er1 >conftest.err
23220   rm -f conftest.er1
23221   cat conftest.err >&5
23222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23223   (exit $ac_status); } && {
23224          test -z "$ac_c_werror_flag" ||
23225          test ! -s conftest.err
23226        } && test -s conftest.$ac_objext; then
23227   ac_cv_have_decl_posix_fadvise=yes
23228 else
23229   echo "$as_me: failed program was:" >&5
23230 sed 's/^/| /' conftest.$ac_ext >&5
23232         ac_cv_have_decl_posix_fadvise=no
23235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23237 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_posix_fadvise" >&5
23238 echo "${ECHO_T}$ac_cv_have_decl_posix_fadvise" >&6; }
23239 if test $ac_cv_have_decl_posix_fadvise = yes; then
23241 cat >>confdefs.h <<_ACEOF
23242 #define HAVE_DECL_POSIX_FADVISE 1
23243 _ACEOF
23246 else
23247   cat >>confdefs.h <<_ACEOF
23248 #define HAVE_DECL_POSIX_FADVISE 0
23249 _ACEOF
23256 for ac_func in posix_fadvise
23258 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23259 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23260 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23261 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23262   echo $ECHO_N "(cached) $ECHO_C" >&6
23263 else
23264   cat >conftest.$ac_ext <<_ACEOF
23265 /* confdefs.h.  */
23266 _ACEOF
23267 cat confdefs.h >>conftest.$ac_ext
23268 cat >>conftest.$ac_ext <<_ACEOF
23269 /* end confdefs.h.  */
23270 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23271    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23272 #define $ac_func innocuous_$ac_func
23274 /* System header to define __stub macros and hopefully few prototypes,
23275     which can conflict with char $ac_func (); below.
23276     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23277     <limits.h> exists even on freestanding compilers.  */
23279 #ifdef __STDC__
23280 # include <limits.h>
23281 #else
23282 # include <assert.h>
23283 #endif
23285 #undef $ac_func
23287 /* Override any GCC internal prototype to avoid an error.
23288    Use char because int might match the return type of a GCC
23289    builtin and then its argument prototype would still apply.  */
23290 #ifdef __cplusplus
23291 extern "C"
23292 #endif
23293 char $ac_func ();
23294 /* The GNU C library defines this for functions which it implements
23295     to always fail with ENOSYS.  Some functions are actually named
23296     something starting with __ and the normal name is an alias.  */
23297 #if defined __stub_$ac_func || defined __stub___$ac_func
23298 choke me
23299 #endif
23301 int
23302 main ()
23304 return $ac_func ();
23305   ;
23306   return 0;
23308 _ACEOF
23309 rm -f conftest.$ac_objext conftest$ac_exeext
23310 if { (ac_try="$ac_link"
23311 case "(($ac_try" in
23312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23313   *) ac_try_echo=$ac_try;;
23314 esac
23315 eval "echo \"\$as_me:$LINENO: $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   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        $as_test_x conftest$ac_exeext; then
23327   eval "$as_ac_var=yes"
23328 else
23329   echo "$as_me: failed program was:" >&5
23330 sed 's/^/| /' conftest.$ac_ext >&5
23332         eval "$as_ac_var=no"
23335 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23336       conftest$ac_exeext conftest.$ac_ext
23338 ac_res=`eval echo '${'$as_ac_var'}'`
23339                { echo "$as_me:$LINENO: result: $ac_res" >&5
23340 echo "${ECHO_T}$ac_res" >&6; }
23341 if test `eval echo '${'$as_ac_var'}'` = yes; then
23342   cat >>confdefs.h <<_ACEOF
23343 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23344 _ACEOF
23347 done
23351 case $TERM in
23352        #   for the most important terminal types we directly know the sequences
23353        xterm|xterm*|vt220|vt220*)
23354                T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
23355                T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
23356        ;;
23357        vt100|vt100*|cygwin)
23358                T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
23359                T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
23360        ;;
23361        *)
23362                T_MD=''
23363                T_ME=''
23364        ;;
23365 esac
23366   { echo "$as_me:$LINENO: result: " >&5
23367 echo "${ECHO_T}" >&6; }
23368   { echo "$as_me:$LINENO: result: ${T_MD}Libintl Processing${T_ME}" >&5
23369 echo "${ECHO_T}${T_MD}Libintl Processing${T_ME}" >&6; }
23373 GETTEXT_PACKAGE=rrdtool
23376 cat >>confdefs.h <<_ACEOF
23377 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
23378 _ACEOF
23383 for ac_header in locale.h
23385 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23386 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23387   { echo "$as_me:$LINENO: checking for $ac_header" >&5
23388 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23389 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23390   echo $ECHO_N "(cached) $ECHO_C" >&6
23392 ac_res=`eval echo '${'$as_ac_Header'}'`
23393                { echo "$as_me:$LINENO: result: $ac_res" >&5
23394 echo "${ECHO_T}$ac_res" >&6; }
23395 else
23396   # Is the header compilable?
23397 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23398 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23399 cat >conftest.$ac_ext <<_ACEOF
23400 /* confdefs.h.  */
23401 _ACEOF
23402 cat confdefs.h >>conftest.$ac_ext
23403 cat >>conftest.$ac_ext <<_ACEOF
23404 /* end confdefs.h.  */
23405 $ac_includes_default
23406 #include <$ac_header>
23407 _ACEOF
23408 rm -f conftest.$ac_objext
23409 if { (ac_try="$ac_compile"
23410 case "(($ac_try" in
23411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23412   *) ac_try_echo=$ac_try;;
23413 esac
23414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23415   (eval "$ac_compile") 2>conftest.er1
23416   ac_status=$?
23417   grep -v '^ *+' conftest.er1 >conftest.err
23418   rm -f conftest.er1
23419   cat conftest.err >&5
23420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23421   (exit $ac_status); } && {
23422          test -z "$ac_c_werror_flag" ||
23423          test ! -s conftest.err
23424        } && test -s conftest.$ac_objext; then
23425   ac_header_compiler=yes
23426 else
23427   echo "$as_me: failed program was:" >&5
23428 sed 's/^/| /' conftest.$ac_ext >&5
23430         ac_header_compiler=no
23433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23434 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23435 echo "${ECHO_T}$ac_header_compiler" >&6; }
23437 # Is the header present?
23438 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23439 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23440 cat >conftest.$ac_ext <<_ACEOF
23441 /* confdefs.h.  */
23442 _ACEOF
23443 cat confdefs.h >>conftest.$ac_ext
23444 cat >>conftest.$ac_ext <<_ACEOF
23445 /* end confdefs.h.  */
23446 #include <$ac_header>
23447 _ACEOF
23448 if { (ac_try="$ac_cpp conftest.$ac_ext"
23449 case "(($ac_try" in
23450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23451   *) ac_try_echo=$ac_try;;
23452 esac
23453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23454   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23455   ac_status=$?
23456   grep -v '^ *+' conftest.er1 >conftest.err
23457   rm -f conftest.er1
23458   cat conftest.err >&5
23459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23460   (exit $ac_status); } >/dev/null && {
23461          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23462          test ! -s conftest.err
23463        }; then
23464   ac_header_preproc=yes
23465 else
23466   echo "$as_me: failed program was:" >&5
23467 sed 's/^/| /' conftest.$ac_ext >&5
23469   ac_header_preproc=no
23472 rm -f conftest.err conftest.$ac_ext
23473 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23474 echo "${ECHO_T}$ac_header_preproc" >&6; }
23476 # So?  What about this header?
23477 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23478   yes:no: )
23479     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23480 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23481     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23482 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23483     ac_header_preproc=yes
23484     ;;
23485   no:yes:* )
23486     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23487 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23488     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23489 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23490     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23491 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23492     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23493 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23494     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23495 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23496     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23497 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23499     ;;
23500 esac
23501 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23502 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23503 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23504   echo $ECHO_N "(cached) $ECHO_C" >&6
23505 else
23506   eval "$as_ac_Header=\$ac_header_preproc"
23508 ac_res=`eval echo '${'$as_ac_Header'}'`
23509                { echo "$as_me:$LINENO: result: $ac_res" >&5
23510 echo "${ECHO_T}$ac_res" >&6; }
23513 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23514   cat >>confdefs.h <<_ACEOF
23515 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23516 _ACEOF
23520 done
23522     if test $ac_cv_header_locale_h = yes; then
23523     { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
23524 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
23525 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
23526   echo $ECHO_N "(cached) $ECHO_C" >&6
23527 else
23528   cat >conftest.$ac_ext <<_ACEOF
23529 /* confdefs.h.  */
23530 _ACEOF
23531 cat confdefs.h >>conftest.$ac_ext
23532 cat >>conftest.$ac_ext <<_ACEOF
23533 /* end confdefs.h.  */
23534 #include <locale.h>
23535 int
23536 main ()
23538 return LC_MESSAGES
23539   ;
23540   return 0;
23542 _ACEOF
23543 rm -f conftest.$ac_objext conftest$ac_exeext
23544 if { (ac_try="$ac_link"
23545 case "(($ac_try" in
23546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23547   *) ac_try_echo=$ac_try;;
23548 esac
23549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23550   (eval "$ac_link") 2>conftest.er1
23551   ac_status=$?
23552   grep -v '^ *+' conftest.er1 >conftest.err
23553   rm -f conftest.er1
23554   cat conftest.err >&5
23555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23556   (exit $ac_status); } && {
23557          test -z "$ac_c_werror_flag" ||
23558          test ! -s conftest.err
23559        } && test -s conftest$ac_exeext &&
23560        $as_test_x conftest$ac_exeext; then
23561   am_cv_val_LC_MESSAGES=yes
23562 else
23563   echo "$as_me: failed program was:" >&5
23564 sed 's/^/| /' conftest.$ac_ext >&5
23566         am_cv_val_LC_MESSAGES=no
23569 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23570       conftest$ac_exeext conftest.$ac_ext
23572 { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
23573 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
23574     if test $am_cv_val_LC_MESSAGES = yes; then
23576 cat >>confdefs.h <<\_ACEOF
23577 #define HAVE_LC_MESSAGES 1
23578 _ACEOF
23580     fi
23581   fi
23582      USE_NLS=yes
23585     gt_cv_have_gettext=no
23587     CATOBJEXT=NONE
23588     XGETTEXT=:
23589     INTLLIBS=
23591     if test "${ac_cv_header_libintl_h+set}" = set; then
23592   { echo "$as_me:$LINENO: checking for libintl.h" >&5
23593 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
23594 if test "${ac_cv_header_libintl_h+set}" = set; then
23595   echo $ECHO_N "(cached) $ECHO_C" >&6
23597 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
23598 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
23599 else
23600   # Is the header compilable?
23601 { echo "$as_me:$LINENO: checking libintl.h usability" >&5
23602 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6; }
23603 cat >conftest.$ac_ext <<_ACEOF
23604 /* confdefs.h.  */
23605 _ACEOF
23606 cat confdefs.h >>conftest.$ac_ext
23607 cat >>conftest.$ac_ext <<_ACEOF
23608 /* end confdefs.h.  */
23609 $ac_includes_default
23610 #include <libintl.h>
23611 _ACEOF
23612 rm -f conftest.$ac_objext
23613 if { (ac_try="$ac_compile"
23614 case "(($ac_try" in
23615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23616   *) ac_try_echo=$ac_try;;
23617 esac
23618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23619   (eval "$ac_compile") 2>conftest.er1
23620   ac_status=$?
23621   grep -v '^ *+' conftest.er1 >conftest.err
23622   rm -f conftest.er1
23623   cat conftest.err >&5
23624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23625   (exit $ac_status); } && {
23626          test -z "$ac_c_werror_flag" ||
23627          test ! -s conftest.err
23628        } && test -s conftest.$ac_objext; then
23629   ac_header_compiler=yes
23630 else
23631   echo "$as_me: failed program was:" >&5
23632 sed 's/^/| /' conftest.$ac_ext >&5
23634         ac_header_compiler=no
23637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23638 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23639 echo "${ECHO_T}$ac_header_compiler" >&6; }
23641 # Is the header present?
23642 { echo "$as_me:$LINENO: checking libintl.h presence" >&5
23643 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6; }
23644 cat >conftest.$ac_ext <<_ACEOF
23645 /* confdefs.h.  */
23646 _ACEOF
23647 cat confdefs.h >>conftest.$ac_ext
23648 cat >>conftest.$ac_ext <<_ACEOF
23649 /* end confdefs.h.  */
23650 #include <libintl.h>
23651 _ACEOF
23652 if { (ac_try="$ac_cpp conftest.$ac_ext"
23653 case "(($ac_try" in
23654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23655   *) ac_try_echo=$ac_try;;
23656 esac
23657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23658   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23659   ac_status=$?
23660   grep -v '^ *+' conftest.er1 >conftest.err
23661   rm -f conftest.er1
23662   cat conftest.err >&5
23663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23664   (exit $ac_status); } >/dev/null && {
23665          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23666          test ! -s conftest.err
23667        }; then
23668   ac_header_preproc=yes
23669 else
23670   echo "$as_me: failed program was:" >&5
23671 sed 's/^/| /' conftest.$ac_ext >&5
23673   ac_header_preproc=no
23676 rm -f conftest.err conftest.$ac_ext
23677 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23678 echo "${ECHO_T}$ac_header_preproc" >&6; }
23680 # So?  What about this header?
23681 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23682   yes:no: )
23683     { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
23684 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23685     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
23686 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
23687     ac_header_preproc=yes
23688     ;;
23689   no:yes:* )
23690     { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
23691 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
23692     { echo "$as_me:$LINENO: WARNING: libintl.h:     check for missing prerequisite headers?" >&5
23693 echo "$as_me: WARNING: libintl.h:     check for missing prerequisite headers?" >&2;}
23694     { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
23695 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
23696     { echo "$as_me:$LINENO: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&5
23697 echo "$as_me: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
23698     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
23699 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
23700     { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
23701 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
23703     ;;
23704 esac
23705 { echo "$as_me:$LINENO: checking for libintl.h" >&5
23706 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
23707 if test "${ac_cv_header_libintl_h+set}" = set; then
23708   echo $ECHO_N "(cached) $ECHO_C" >&6
23709 else
23710   ac_cv_header_libintl_h=$ac_header_preproc
23712 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
23713 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
23716 if test $ac_cv_header_libintl_h = yes; then
23717   gt_cv_func_dgettext_libintl="no"
23718       libintl_extra_libs=""
23720       #
23721       # First check in libc
23722       #
23723       { echo "$as_me:$LINENO: checking for ngettext in libc" >&5
23724 echo $ECHO_N "checking for ngettext in libc... $ECHO_C" >&6; }
23725 if test "${gt_cv_func_ngettext_libc+set}" = set; then
23726   echo $ECHO_N "(cached) $ECHO_C" >&6
23727 else
23728   cat >conftest.$ac_ext <<_ACEOF
23729 /* confdefs.h.  */
23730 _ACEOF
23731 cat confdefs.h >>conftest.$ac_ext
23732 cat >>conftest.$ac_ext <<_ACEOF
23733 /* end confdefs.h.  */
23735 #include <libintl.h>
23737 int
23738 main ()
23740 return !ngettext ("","", 1)
23741   ;
23742   return 0;
23744 _ACEOF
23745 rm -f conftest.$ac_objext conftest$ac_exeext
23746 if { (ac_try="$ac_link"
23747 case "(($ac_try" in
23748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23749   *) ac_try_echo=$ac_try;;
23750 esac
23751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23752   (eval "$ac_link") 2>conftest.er1
23753   ac_status=$?
23754   grep -v '^ *+' conftest.er1 >conftest.err
23755   rm -f conftest.er1
23756   cat conftest.err >&5
23757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23758   (exit $ac_status); } && {
23759          test -z "$ac_c_werror_flag" ||
23760          test ! -s conftest.err
23761        } && test -s conftest$ac_exeext &&
23762        $as_test_x conftest$ac_exeext; then
23763   gt_cv_func_ngettext_libc=yes
23764 else
23765   echo "$as_me: failed program was:" >&5
23766 sed 's/^/| /' conftest.$ac_ext >&5
23768         gt_cv_func_ngettext_libc=no
23771 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23772       conftest$ac_exeext conftest.$ac_ext
23775 { echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5
23776 echo "${ECHO_T}$gt_cv_func_ngettext_libc" >&6; }
23778       if test "$gt_cv_func_ngettext_libc" = "yes" ; then
23779               { echo "$as_me:$LINENO: checking for dgettext in libc" >&5
23780 echo $ECHO_N "checking for dgettext in libc... $ECHO_C" >&6; }
23781 if test "${gt_cv_func_dgettext_libc+set}" = set; then
23782   echo $ECHO_N "(cached) $ECHO_C" >&6
23783 else
23784   cat >conftest.$ac_ext <<_ACEOF
23785 /* confdefs.h.  */
23786 _ACEOF
23787 cat confdefs.h >>conftest.$ac_ext
23788 cat >>conftest.$ac_ext <<_ACEOF
23789 /* end confdefs.h.  */
23791 #include <libintl.h>
23793 int
23794 main ()
23796 return !dgettext ("","")
23797   ;
23798   return 0;
23800 _ACEOF
23801 rm -f conftest.$ac_objext conftest$ac_exeext
23802 if { (ac_try="$ac_link"
23803 case "(($ac_try" in
23804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23805   *) ac_try_echo=$ac_try;;
23806 esac
23807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23808   (eval "$ac_link") 2>conftest.er1
23809   ac_status=$?
23810   grep -v '^ *+' conftest.er1 >conftest.err
23811   rm -f conftest.er1
23812   cat conftest.err >&5
23813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23814   (exit $ac_status); } && {
23815          test -z "$ac_c_werror_flag" ||
23816          test ! -s conftest.err
23817        } && test -s conftest$ac_exeext &&
23818        $as_test_x conftest$ac_exeext; then
23819   gt_cv_func_dgettext_libc=yes
23820 else
23821   echo "$as_me: failed program was:" >&5
23822 sed 's/^/| /' conftest.$ac_ext >&5
23824         gt_cv_func_dgettext_libc=no
23827 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23828       conftest$ac_exeext conftest.$ac_ext
23831 { echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
23832 echo "${ECHO_T}$gt_cv_func_dgettext_libc" >&6; }
23833       fi
23835       if test "$gt_cv_func_ngettext_libc" = "yes" ; then
23837 for ac_func in bind_textdomain_codeset
23839 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23840 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23841 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23842 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23843   echo $ECHO_N "(cached) $ECHO_C" >&6
23844 else
23845   cat >conftest.$ac_ext <<_ACEOF
23846 /* confdefs.h.  */
23847 _ACEOF
23848 cat confdefs.h >>conftest.$ac_ext
23849 cat >>conftest.$ac_ext <<_ACEOF
23850 /* end confdefs.h.  */
23851 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23852    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23853 #define $ac_func innocuous_$ac_func
23855 /* System header to define __stub macros and hopefully few prototypes,
23856     which can conflict with char $ac_func (); below.
23857     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23858     <limits.h> exists even on freestanding compilers.  */
23860 #ifdef __STDC__
23861 # include <limits.h>
23862 #else
23863 # include <assert.h>
23864 #endif
23866 #undef $ac_func
23868 /* Override any GCC internal prototype to avoid an error.
23869    Use char because int might match the return type of a GCC
23870    builtin and then its argument prototype would still apply.  */
23871 #ifdef __cplusplus
23872 extern "C"
23873 #endif
23874 char $ac_func ();
23875 /* The GNU C library defines this for functions which it implements
23876     to always fail with ENOSYS.  Some functions are actually named
23877     something starting with __ and the normal name is an alias.  */
23878 #if defined __stub_$ac_func || defined __stub___$ac_func
23879 choke me
23880 #endif
23882 int
23883 main ()
23885 return $ac_func ();
23886   ;
23887   return 0;
23889 _ACEOF
23890 rm -f conftest.$ac_objext conftest$ac_exeext
23891 if { (ac_try="$ac_link"
23892 case "(($ac_try" in
23893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23894   *) ac_try_echo=$ac_try;;
23895 esac
23896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23897   (eval "$ac_link") 2>conftest.er1
23898   ac_status=$?
23899   grep -v '^ *+' conftest.er1 >conftest.err
23900   rm -f conftest.er1
23901   cat conftest.err >&5
23902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23903   (exit $ac_status); } && {
23904          test -z "$ac_c_werror_flag" ||
23905          test ! -s conftest.err
23906        } && test -s conftest$ac_exeext &&
23907        $as_test_x conftest$ac_exeext; then
23908   eval "$as_ac_var=yes"
23909 else
23910   echo "$as_me: failed program was:" >&5
23911 sed 's/^/| /' conftest.$ac_ext >&5
23913         eval "$as_ac_var=no"
23916 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23917       conftest$ac_exeext conftest.$ac_ext
23919 ac_res=`eval echo '${'$as_ac_var'}'`
23920                { echo "$as_me:$LINENO: result: $ac_res" >&5
23921 echo "${ECHO_T}$ac_res" >&6; }
23922 if test `eval echo '${'$as_ac_var'}'` = yes; then
23923   cat >>confdefs.h <<_ACEOF
23924 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23925 _ACEOF
23928 done
23930       fi
23932       #
23933       # If we don't have everything we want, check in libintl
23934       #
23935       if test "$gt_cv_func_dgettext_libc" != "yes" \
23936          || test "$gt_cv_func_ngettext_libc" != "yes" \
23937          || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
23939         { echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
23940 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6; }
23941 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
23942   echo $ECHO_N "(cached) $ECHO_C" >&6
23943 else
23944   ac_check_lib_save_LIBS=$LIBS
23945 LIBS="-lintl  $LIBS"
23946 cat >conftest.$ac_ext <<_ACEOF
23947 /* confdefs.h.  */
23948 _ACEOF
23949 cat confdefs.h >>conftest.$ac_ext
23950 cat >>conftest.$ac_ext <<_ACEOF
23951 /* end confdefs.h.  */
23953 /* Override any GCC internal prototype to avoid an error.
23954    Use char because int might match the return type of a GCC
23955    builtin and then its argument prototype would still apply.  */
23956 #ifdef __cplusplus
23957 extern "C"
23958 #endif
23959 char bindtextdomain ();
23960 int
23961 main ()
23963 return bindtextdomain ();
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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23975   (eval "$ac_link") 2>conftest.er1
23976   ac_status=$?
23977   grep -v '^ *+' conftest.er1 >conftest.err
23978   rm -f conftest.er1
23979   cat conftest.err >&5
23980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23981   (exit $ac_status); } && {
23982          test -z "$ac_c_werror_flag" ||
23983          test ! -s conftest.err
23984        } && test -s conftest$ac_exeext &&
23985        $as_test_x conftest$ac_exeext; then
23986   ac_cv_lib_intl_bindtextdomain=yes
23987 else
23988   echo "$as_me: failed program was:" >&5
23989 sed 's/^/| /' conftest.$ac_ext >&5
23991         ac_cv_lib_intl_bindtextdomain=no
23994 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23995       conftest$ac_exeext conftest.$ac_ext
23996 LIBS=$ac_check_lib_save_LIBS
23998 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
23999 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6; }
24000 if test $ac_cv_lib_intl_bindtextdomain = yes; then
24001   { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
24002 echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; }
24003 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
24004   echo $ECHO_N "(cached) $ECHO_C" >&6
24005 else
24006   ac_check_lib_save_LIBS=$LIBS
24007 LIBS="-lintl  $LIBS"
24008 cat >conftest.$ac_ext <<_ACEOF
24009 /* confdefs.h.  */
24010 _ACEOF
24011 cat confdefs.h >>conftest.$ac_ext
24012 cat >>conftest.$ac_ext <<_ACEOF
24013 /* end confdefs.h.  */
24015 /* Override any GCC internal prototype to avoid an error.
24016    Use char because int might match the return type of a GCC
24017    builtin and then its argument prototype would still apply.  */
24018 #ifdef __cplusplus
24019 extern "C"
24020 #endif
24021 char ngettext ();
24022 int
24023 main ()
24025 return ngettext ();
24026   ;
24027   return 0;
24029 _ACEOF
24030 rm -f conftest.$ac_objext conftest$ac_exeext
24031 if { (ac_try="$ac_link"
24032 case "(($ac_try" in
24033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24034   *) ac_try_echo=$ac_try;;
24035 esac
24036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24037   (eval "$ac_link") 2>conftest.er1
24038   ac_status=$?
24039   grep -v '^ *+' conftest.er1 >conftest.err
24040   rm -f conftest.er1
24041   cat conftest.err >&5
24042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24043   (exit $ac_status); } && {
24044          test -z "$ac_c_werror_flag" ||
24045          test ! -s conftest.err
24046        } && test -s conftest$ac_exeext &&
24047        $as_test_x conftest$ac_exeext; then
24048   ac_cv_lib_intl_ngettext=yes
24049 else
24050   echo "$as_me: failed program was:" >&5
24051 sed 's/^/| /' conftest.$ac_ext >&5
24053         ac_cv_lib_intl_ngettext=no
24056 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24057       conftest$ac_exeext conftest.$ac_ext
24058 LIBS=$ac_check_lib_save_LIBS
24060 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
24061 echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; }
24062 if test $ac_cv_lib_intl_ngettext = yes; then
24063   { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
24064 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
24065 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
24066   echo $ECHO_N "(cached) $ECHO_C" >&6
24067 else
24068   ac_check_lib_save_LIBS=$LIBS
24069 LIBS="-lintl  $LIBS"
24070 cat >conftest.$ac_ext <<_ACEOF
24071 /* confdefs.h.  */
24072 _ACEOF
24073 cat confdefs.h >>conftest.$ac_ext
24074 cat >>conftest.$ac_ext <<_ACEOF
24075 /* end confdefs.h.  */
24077 /* Override any GCC internal prototype to avoid an error.
24078    Use char because int might match the return type of a GCC
24079    builtin and then its argument prototype would still apply.  */
24080 #ifdef __cplusplus
24081 extern "C"
24082 #endif
24083 char dgettext ();
24084 int
24085 main ()
24087 return dgettext ();
24088   ;
24089   return 0;
24091 _ACEOF
24092 rm -f conftest.$ac_objext conftest$ac_exeext
24093 if { (ac_try="$ac_link"
24094 case "(($ac_try" in
24095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24096   *) ac_try_echo=$ac_try;;
24097 esac
24098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24099   (eval "$ac_link") 2>conftest.er1
24100   ac_status=$?
24101   grep -v '^ *+' conftest.er1 >conftest.err
24102   rm -f conftest.er1
24103   cat conftest.err >&5
24104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24105   (exit $ac_status); } && {
24106          test -z "$ac_c_werror_flag" ||
24107          test ! -s conftest.err
24108        } && test -s conftest$ac_exeext &&
24109        $as_test_x conftest$ac_exeext; then
24110   ac_cv_lib_intl_dgettext=yes
24111 else
24112   echo "$as_me: failed program was:" >&5
24113 sed 's/^/| /' conftest.$ac_ext >&5
24115         ac_cv_lib_intl_dgettext=no
24118 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24119       conftest$ac_exeext conftest.$ac_ext
24120 LIBS=$ac_check_lib_save_LIBS
24122 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
24123 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
24124 if test $ac_cv_lib_intl_dgettext = yes; then
24125   gt_cv_func_dgettext_libintl=yes
24133         if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
24134           { echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5
24135 echo $ECHO_N "checking if -liconv is needed to use gettext... $ECHO_C" >&6; }
24136           { echo "$as_me:$LINENO: result: " >&5
24137 echo "${ECHO_T}" >&6; }
24138           { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
24139 echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; }
24140 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
24141   echo $ECHO_N "(cached) $ECHO_C" >&6
24142 else
24143   ac_check_lib_save_LIBS=$LIBS
24144 LIBS="-lintl -liconv $LIBS"
24145 cat >conftest.$ac_ext <<_ACEOF
24146 /* confdefs.h.  */
24147 _ACEOF
24148 cat confdefs.h >>conftest.$ac_ext
24149 cat >>conftest.$ac_ext <<_ACEOF
24150 /* end confdefs.h.  */
24152 /* Override any GCC internal prototype to avoid an error.
24153    Use char because int might match the return type of a GCC
24154    builtin and then its argument prototype would still apply.  */
24155 #ifdef __cplusplus
24156 extern "C"
24157 #endif
24158 char ngettext ();
24159 int
24160 main ()
24162 return ngettext ();
24163   ;
24164   return 0;
24166 _ACEOF
24167 rm -f conftest.$ac_objext conftest$ac_exeext
24168 if { (ac_try="$ac_link"
24169 case "(($ac_try" in
24170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24171   *) ac_try_echo=$ac_try;;
24172 esac
24173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24174   (eval "$ac_link") 2>conftest.er1
24175   ac_status=$?
24176   grep -v '^ *+' conftest.er1 >conftest.err
24177   rm -f conftest.er1
24178   cat conftest.err >&5
24179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24180   (exit $ac_status); } && {
24181          test -z "$ac_c_werror_flag" ||
24182          test ! -s conftest.err
24183        } && test -s conftest$ac_exeext &&
24184        $as_test_x conftest$ac_exeext; then
24185   ac_cv_lib_intl_ngettext=yes
24186 else
24187   echo "$as_me: failed program was:" >&5
24188 sed 's/^/| /' conftest.$ac_ext >&5
24190         ac_cv_lib_intl_ngettext=no
24193 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24194       conftest$ac_exeext conftest.$ac_ext
24195 LIBS=$ac_check_lib_save_LIBS
24197 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
24198 echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; }
24199 if test $ac_cv_lib_intl_ngettext = yes; then
24200   { echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5
24201 echo $ECHO_N "checking for dcgettext in -lintl... $ECHO_C" >&6; }
24202 if test "${ac_cv_lib_intl_dcgettext+set}" = set; then
24203   echo $ECHO_N "(cached) $ECHO_C" >&6
24204 else
24205   ac_check_lib_save_LIBS=$LIBS
24206 LIBS="-lintl -liconv $LIBS"
24207 cat >conftest.$ac_ext <<_ACEOF
24208 /* confdefs.h.  */
24209 _ACEOF
24210 cat confdefs.h >>conftest.$ac_ext
24211 cat >>conftest.$ac_ext <<_ACEOF
24212 /* end confdefs.h.  */
24214 /* Override any GCC internal prototype to avoid an error.
24215    Use char because int might match the return type of a GCC
24216    builtin and then its argument prototype would still apply.  */
24217 #ifdef __cplusplus
24218 extern "C"
24219 #endif
24220 char dcgettext ();
24221 int
24222 main ()
24224 return dcgettext ();
24225   ;
24226   return 0;
24228 _ACEOF
24229 rm -f conftest.$ac_objext conftest$ac_exeext
24230 if { (ac_try="$ac_link"
24231 case "(($ac_try" in
24232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24233   *) ac_try_echo=$ac_try;;
24234 esac
24235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24236   (eval "$ac_link") 2>conftest.er1
24237   ac_status=$?
24238   grep -v '^ *+' conftest.er1 >conftest.err
24239   rm -f conftest.er1
24240   cat conftest.err >&5
24241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24242   (exit $ac_status); } && {
24243          test -z "$ac_c_werror_flag" ||
24244          test ! -s conftest.err
24245        } && test -s conftest$ac_exeext &&
24246        $as_test_x conftest$ac_exeext; then
24247   ac_cv_lib_intl_dcgettext=yes
24248 else
24249   echo "$as_me: failed program was:" >&5
24250 sed 's/^/| /' conftest.$ac_ext >&5
24252         ac_cv_lib_intl_dcgettext=no
24255 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24256       conftest$ac_exeext conftest.$ac_ext
24257 LIBS=$ac_check_lib_save_LIBS
24259 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5
24260 echo "${ECHO_T}$ac_cv_lib_intl_dcgettext" >&6; }
24261 if test $ac_cv_lib_intl_dcgettext = yes; then
24262   gt_cv_func_dgettext_libintl=yes
24263                         libintl_extra_libs=-liconv
24264 else
24265   :
24268 else
24269   :
24272         fi
24274         #
24275         # If we found libintl, then check in it for bind_textdomain_codeset();
24276         # we'll prefer libc if neither have bind_textdomain_codeset(),
24277         # and both have dgettext and ngettext
24278         #
24279         if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
24280           glib_save_LIBS="$LIBS"
24281           LIBS="$LIBS -lintl $libintl_extra_libs"
24282           unset ac_cv_func_bind_textdomain_codeset
24284 for ac_func in bind_textdomain_codeset
24286 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24287 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24288 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24289 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24290   echo $ECHO_N "(cached) $ECHO_C" >&6
24291 else
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 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24299    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24300 #define $ac_func innocuous_$ac_func
24302 /* System header to define __stub macros and hopefully few prototypes,
24303     which can conflict with char $ac_func (); below.
24304     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24305     <limits.h> exists even on freestanding compilers.  */
24307 #ifdef __STDC__
24308 # include <limits.h>
24309 #else
24310 # include <assert.h>
24311 #endif
24313 #undef $ac_func
24315 /* Override any GCC internal prototype to avoid an error.
24316    Use char because int might match the return type of a GCC
24317    builtin and then its argument prototype would still apply.  */
24318 #ifdef __cplusplus
24319 extern "C"
24320 #endif
24321 char $ac_func ();
24322 /* The GNU C library defines this for functions which it implements
24323     to always fail with ENOSYS.  Some functions are actually named
24324     something starting with __ and the normal name is an alias.  */
24325 #if defined __stub_$ac_func || defined __stub___$ac_func
24326 choke me
24327 #endif
24329 int
24330 main ()
24332 return $ac_func ();
24333   ;
24334   return 0;
24336 _ACEOF
24337 rm -f conftest.$ac_objext conftest$ac_exeext
24338 if { (ac_try="$ac_link"
24339 case "(($ac_try" in
24340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24341   *) ac_try_echo=$ac_try;;
24342 esac
24343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24344   (eval "$ac_link") 2>conftest.er1
24345   ac_status=$?
24346   grep -v '^ *+' conftest.er1 >conftest.err
24347   rm -f conftest.er1
24348   cat conftest.err >&5
24349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24350   (exit $ac_status); } && {
24351          test -z "$ac_c_werror_flag" ||
24352          test ! -s conftest.err
24353        } && test -s conftest$ac_exeext &&
24354        $as_test_x conftest$ac_exeext; then
24355   eval "$as_ac_var=yes"
24356 else
24357   echo "$as_me: failed program was:" >&5
24358 sed 's/^/| /' conftest.$ac_ext >&5
24360         eval "$as_ac_var=no"
24363 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24364       conftest$ac_exeext conftest.$ac_ext
24366 ac_res=`eval echo '${'$as_ac_var'}'`
24367                { echo "$as_me:$LINENO: result: $ac_res" >&5
24368 echo "${ECHO_T}$ac_res" >&6; }
24369 if test `eval echo '${'$as_ac_var'}'` = yes; then
24370   cat >>confdefs.h <<_ACEOF
24371 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24372 _ACEOF
24375 done
24377           LIBS="$glib_save_LIBS"
24379           if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
24380             gt_cv_func_dgettext_libc=no
24381           else
24382             if test "$gt_cv_func_dgettext_libc" = "yes" \
24383                 && test "$gt_cv_func_ngettext_libc" = "yes"; then
24384               gt_cv_func_dgettext_libintl=no
24385             fi
24386           fi
24387         fi
24388       fi
24390       if test "$gt_cv_func_dgettext_libc" = "yes" \
24391         || test "$gt_cv_func_dgettext_libintl" = "yes"; then
24392         gt_cv_have_gettext=yes
24393       fi
24395       if test "$gt_cv_func_dgettext_libintl" = "yes"; then
24396         INTLLIBS="-lintl $libintl_extra_libs"
24397       fi
24399       if test "$gt_cv_have_gettext" = "yes"; then
24401 cat >>confdefs.h <<\_ACEOF
24402 #define HAVE_GETTEXT 1
24403 _ACEOF
24405         # Extract the first word of "msgfmt", so it can be a program name with args.
24406 set dummy msgfmt; ac_word=$2
24407 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24408 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24409 if test "${ac_cv_path_MSGFMT+set}" = set; then
24410   echo $ECHO_N "(cached) $ECHO_C" >&6
24411 else
24412   case "$MSGFMT" in
24413   /*)
24414   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
24415   ;;
24416   *)
24417   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
24418   for ac_dir in $PATH; do
24419     test -z "$ac_dir" && ac_dir=.
24420     if test -f $ac_dir/$ac_word; then
24421       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
24422         ac_cv_path_MSGFMT="$ac_dir/$ac_word"
24423         break
24424       fi
24425     fi
24426   done
24427   IFS="$ac_save_ifs"
24428   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
24429   ;;
24430 esac
24432 MSGFMT="$ac_cv_path_MSGFMT"
24433 if test "$MSGFMT" != "no"; then
24434   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
24435 echo "${ECHO_T}$MSGFMT" >&6; }
24436 else
24437   { echo "$as_me:$LINENO: result: no" >&5
24438 echo "${ECHO_T}no" >&6; }
24440         if test "$MSGFMT" != "no"; then
24441           glib_save_LIBS="$LIBS"
24442           LIBS="$LIBS $INTLLIBS"
24444 for ac_func in dcgettext
24446 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24447 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24448 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24449 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24450   echo $ECHO_N "(cached) $ECHO_C" >&6
24451 else
24452   cat >conftest.$ac_ext <<_ACEOF
24453 /* confdefs.h.  */
24454 _ACEOF
24455 cat confdefs.h >>conftest.$ac_ext
24456 cat >>conftest.$ac_ext <<_ACEOF
24457 /* end confdefs.h.  */
24458 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24459    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24460 #define $ac_func innocuous_$ac_func
24462 /* System header to define __stub macros and hopefully few prototypes,
24463     which can conflict with char $ac_func (); below.
24464     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24465     <limits.h> exists even on freestanding compilers.  */
24467 #ifdef __STDC__
24468 # include <limits.h>
24469 #else
24470 # include <assert.h>
24471 #endif
24473 #undef $ac_func
24475 /* Override any GCC internal prototype to avoid an error.
24476    Use char because int might match the return type of a GCC
24477    builtin and then its argument prototype would still apply.  */
24478 #ifdef __cplusplus
24479 extern "C"
24480 #endif
24481 char $ac_func ();
24482 /* The GNU C library defines this for functions which it implements
24483     to always fail with ENOSYS.  Some functions are actually named
24484     something starting with __ and the normal name is an alias.  */
24485 #if defined __stub_$ac_func || defined __stub___$ac_func
24486 choke me
24487 #endif
24489 int
24490 main ()
24492 return $ac_func ();
24493   ;
24494   return 0;
24496 _ACEOF
24497 rm -f conftest.$ac_objext conftest$ac_exeext
24498 if { (ac_try="$ac_link"
24499 case "(($ac_try" in
24500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24501   *) ac_try_echo=$ac_try;;
24502 esac
24503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24504   (eval "$ac_link") 2>conftest.er1
24505   ac_status=$?
24506   grep -v '^ *+' conftest.er1 >conftest.err
24507   rm -f conftest.er1
24508   cat conftest.err >&5
24509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24510   (exit $ac_status); } && {
24511          test -z "$ac_c_werror_flag" ||
24512          test ! -s conftest.err
24513        } && test -s conftest$ac_exeext &&
24514        $as_test_x conftest$ac_exeext; then
24515   eval "$as_ac_var=yes"
24516 else
24517   echo "$as_me: failed program was:" >&5
24518 sed 's/^/| /' conftest.$ac_ext >&5
24520         eval "$as_ac_var=no"
24523 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24524       conftest$ac_exeext conftest.$ac_ext
24526 ac_res=`eval echo '${'$as_ac_var'}'`
24527                { echo "$as_me:$LINENO: result: $ac_res" >&5
24528 echo "${ECHO_T}$ac_res" >&6; }
24529 if test `eval echo '${'$as_ac_var'}'` = yes; then
24530   cat >>confdefs.h <<_ACEOF
24531 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24532 _ACEOF
24535 done
24537           MSGFMT_OPTS=
24538           { echo "$as_me:$LINENO: checking if msgfmt accepts -c" >&5
24539 echo $ECHO_N "checking if msgfmt accepts -c... $ECHO_C" >&6; }
24540           cat >conftest.foo <<_ACEOF
24542 msgid ""
24543 msgstr ""
24544 "Content-Type: text/plain; charset=UTF-8\n"
24545 "Project-Id-Version: test 1.0\n"
24546 "PO-Revision-Date: 2007-02-15 12:01+0100\n"
24547 "Last-Translator: test <foo@bar.xx>\n"
24548 "Language-Team: C <LL@li.org>\n"
24549 "MIME-Version: 1.0\n"
24550 "Content-Transfer-Encoding: 8bit\n"
24552 _ACEOF
24553 if { (echo "$as_me:$LINENO: \$MSGFMT -c -o /dev/null conftest.foo") >&5
24554   ($MSGFMT -c -o /dev/null conftest.foo) 2>&5
24555   ac_status=$?
24556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24557   (exit $ac_status); }; then
24558   MSGFMT_OPTS=-c; { echo "$as_me:$LINENO: result: yes" >&5
24559 echo "${ECHO_T}yes" >&6; }
24560 else { echo "$as_me:$LINENO: result: no" >&5
24561 echo "${ECHO_T}no" >&6; }
24562 echo "$as_me: failed input was:" >&5
24563 sed 's/^/| /' conftest.foo >&5
24566           # Extract the first word of "gmsgfmt", so it can be a program name with args.
24567 set dummy gmsgfmt; ac_word=$2
24568 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24569 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24570 if test "${ac_cv_path_GMSGFMT+set}" = set; then
24571   echo $ECHO_N "(cached) $ECHO_C" >&6
24572 else
24573   case $GMSGFMT in
24574   [\\/]* | ?:[\\/]*)
24575   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
24576   ;;
24577   *)
24578   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24579 for as_dir in $PATH
24581   IFS=$as_save_IFS
24582   test -z "$as_dir" && as_dir=.
24583   for ac_exec_ext in '' $ac_executable_extensions; do
24584   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24585     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
24586     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24587     break 2
24588   fi
24589 done
24590 done
24591 IFS=$as_save_IFS
24593   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
24594   ;;
24595 esac
24597 GMSGFMT=$ac_cv_path_GMSGFMT
24598 if test -n "$GMSGFMT"; then
24599   { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
24600 echo "${ECHO_T}$GMSGFMT" >&6; }
24601 else
24602   { echo "$as_me:$LINENO: result: no" >&5
24603 echo "${ECHO_T}no" >&6; }
24607           # Extract the first word of "xgettext", so it can be a program name with args.
24608 set dummy xgettext; ac_word=$2
24609 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24610 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24611 if test "${ac_cv_path_XGETTEXT+set}" = set; then
24612   echo $ECHO_N "(cached) $ECHO_C" >&6
24613 else
24614   case "$XGETTEXT" in
24615   /*)
24616   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
24617   ;;
24618   *)
24619   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
24620   for ac_dir in $PATH; do
24621     test -z "$ac_dir" && ac_dir=.
24622     if test -f $ac_dir/$ac_word; then
24623       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
24624         ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
24625         break
24626       fi
24627     fi
24628   done
24629   IFS="$ac_save_ifs"
24630   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
24631   ;;
24632 esac
24634 XGETTEXT="$ac_cv_path_XGETTEXT"
24635 if test "$XGETTEXT" != ":"; then
24636   { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
24637 echo "${ECHO_T}$XGETTEXT" >&6; }
24638 else
24639   { echo "$as_me:$LINENO: result: no" >&5
24640 echo "${ECHO_T}no" >&6; }
24643           cat >conftest.$ac_ext <<_ACEOF
24644 /* confdefs.h.  */
24645 _ACEOF
24646 cat confdefs.h >>conftest.$ac_ext
24647 cat >>conftest.$ac_ext <<_ACEOF
24648 /* end confdefs.h.  */
24650 int
24651 main ()
24653 extern int _nl_msg_cat_cntr;
24654                          return _nl_msg_cat_cntr
24655   ;
24656   return 0;
24658 _ACEOF
24659 rm -f conftest.$ac_objext conftest$ac_exeext
24660 if { (ac_try="$ac_link"
24661 case "(($ac_try" in
24662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24663   *) ac_try_echo=$ac_try;;
24664 esac
24665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24666   (eval "$ac_link") 2>conftest.er1
24667   ac_status=$?
24668   grep -v '^ *+' conftest.er1 >conftest.err
24669   rm -f conftest.er1
24670   cat conftest.err >&5
24671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24672   (exit $ac_status); } && {
24673          test -z "$ac_c_werror_flag" ||
24674          test ! -s conftest.err
24675        } && test -s conftest$ac_exeext &&
24676        $as_test_x conftest$ac_exeext; then
24677   CATOBJEXT=.gmo
24678              DATADIRNAME=share
24679 else
24680   echo "$as_me: failed program was:" >&5
24681 sed 's/^/| /' conftest.$ac_ext >&5
24683         case $host in
24684             *-*-solaris*)
24685                                                                 { echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
24686 echo $ECHO_N "checking for bind_textdomain_codeset... $ECHO_C" >&6; }
24687 if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
24688   echo $ECHO_N "(cached) $ECHO_C" >&6
24689 else
24690   cat >conftest.$ac_ext <<_ACEOF
24691 /* confdefs.h.  */
24692 _ACEOF
24693 cat confdefs.h >>conftest.$ac_ext
24694 cat >>conftest.$ac_ext <<_ACEOF
24695 /* end confdefs.h.  */
24696 /* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
24697    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24698 #define bind_textdomain_codeset innocuous_bind_textdomain_codeset
24700 /* System header to define __stub macros and hopefully few prototypes,
24701     which can conflict with char bind_textdomain_codeset (); below.
24702     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24703     <limits.h> exists even on freestanding compilers.  */
24705 #ifdef __STDC__
24706 # include <limits.h>
24707 #else
24708 # include <assert.h>
24709 #endif
24711 #undef bind_textdomain_codeset
24713 /* Override any GCC internal prototype to avoid an error.
24714    Use char because int might match the return type of a GCC
24715    builtin and then its argument prototype would still apply.  */
24716 #ifdef __cplusplus
24717 extern "C"
24718 #endif
24719 char bind_textdomain_codeset ();
24720 /* The GNU C library defines this for functions which it implements
24721     to always fail with ENOSYS.  Some functions are actually named
24722     something starting with __ and the normal name is an alias.  */
24723 #if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
24724 choke me
24725 #endif
24727 int
24728 main ()
24730 return bind_textdomain_codeset ();
24731   ;
24732   return 0;
24734 _ACEOF
24735 rm -f conftest.$ac_objext conftest$ac_exeext
24736 if { (ac_try="$ac_link"
24737 case "(($ac_try" in
24738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24739   *) ac_try_echo=$ac_try;;
24740 esac
24741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24742   (eval "$ac_link") 2>conftest.er1
24743   ac_status=$?
24744   grep -v '^ *+' conftest.er1 >conftest.err
24745   rm -f conftest.er1
24746   cat conftest.err >&5
24747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24748   (exit $ac_status); } && {
24749          test -z "$ac_c_werror_flag" ||
24750          test ! -s conftest.err
24751        } && test -s conftest$ac_exeext &&
24752        $as_test_x conftest$ac_exeext; then
24753   ac_cv_func_bind_textdomain_codeset=yes
24754 else
24755   echo "$as_me: failed program was:" >&5
24756 sed 's/^/| /' conftest.$ac_ext >&5
24758         ac_cv_func_bind_textdomain_codeset=no
24761 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24762       conftest$ac_exeext conftest.$ac_ext
24764 { echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
24765 echo "${ECHO_T}$ac_cv_func_bind_textdomain_codeset" >&6; }
24766 if test $ac_cv_func_bind_textdomain_codeset = yes; then
24767   CATOBJEXT=.gmo
24768                DATADIRNAME=share
24769 else
24770   CATOBJEXT=.mo
24771                DATADIRNAME=lib
24774             ;;
24775             *)
24776             CATOBJEXT=.mo
24777             DATADIRNAME=lib
24778             ;;
24779             esac
24782 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24783       conftest$ac_exeext conftest.$ac_ext
24784           LIBS="$glib_save_LIBS"
24785           INSTOBJEXT=.mo
24786         else
24787           gt_cv_have_gettext=no
24788         fi
24789       fi
24795     if test "$gt_cv_have_gettext" = "yes" ; then
24797 cat >>confdefs.h <<\_ACEOF
24798 #define ENABLE_NLS 1
24799 _ACEOF
24801     fi
24803         if test "$XGETTEXT" != ":"; then
24804                   if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
24805         : ;
24806       else
24807         { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
24808 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
24809         XGETTEXT=":"
24810       fi
24811     fi
24813     # We need to process the po/ directory.
24814     POSUB=po
24816     ac_config_commands="$ac_config_commands default-1"
24819                 for lang in $ALL_LINGUAS; do
24820       GMOFILES="$GMOFILES $lang.gmo"
24821       POFILES="$POFILES $lang.po"
24822     done
24836    if test "$gt_cv_have_gettext" = "yes"; then
24837      if test "x$ALL_LINGUAS" = "x"; then
24838        LINGUAS=
24839      else
24840        { echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
24841 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6; }
24842        NEW_LINGUAS=
24843        for presentlang in $ALL_LINGUAS; do
24844          useit=no
24845          if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
24846            desiredlanguages="$LINGUAS"
24847          else
24848            desiredlanguages="$ALL_LINGUAS"
24849          fi
24850          for desiredlang in $desiredlanguages; do
24851            # Use the presentlang catalog if desiredlang is
24852            #   a. equal to presentlang, or
24853            #   b. a variant of presentlang (because in this case,
24854            #      presentlang can be used as a fallback for messages
24855            #      which are not translated in the desiredlang catalog).
24856            case "$desiredlang" in
24857              "$presentlang"*) useit=yes;;
24858            esac
24859          done
24860          if test $useit = yes; then
24861            NEW_LINGUAS="$NEW_LINGUAS $presentlang"
24862          fi
24863        done
24864        LINGUAS=$NEW_LINGUAS
24865        { echo "$as_me:$LINENO: result: $LINGUAS" >&5
24866 echo "${ECHO_T}$LINGUAS" >&6; }
24867      fi
24869           if test -n "$LINGUAS"; then
24870        for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
24871      fi
24872    fi
24874             MKINSTALLDIRS=
24875    if test -n "$ac_aux_dir"; then
24876      MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
24877    fi
24878    if test -z "$MKINSTALLDIRS"; then
24879      MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
24880    fi
24883          test -d po || mkdir po
24884    if test "x$srcdir" != "x."; then
24885      if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
24886        posrcprefix="$srcdir/"
24887      else
24888        posrcprefix="../$srcdir/"
24889      fi
24890    else
24891      posrcprefix="../"
24892    fi
24893    rm -f po/POTFILES
24894    sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
24895         < $srcdir/po/POTFILES.in > po/POTFILES
24898 # Check whether --enable-libintl was given.
24899 if test "${enable_libintl+set}" = set; then
24900   enableval=$enable_libintl;
24901 else
24902   enable_libintl=yes
24906 if test x$enable_libintl = xyes; then
24908 case "$am__api_version" in
24909     1.01234)
24910         { { echo "$as_me:$LINENO: error: Automake 1.5 or newer is required to use intltool" >&5
24911 echo "$as_me: error: Automake 1.5 or newer is required to use intltool" >&2;}
24912    { (exit 1); exit 1; }; }
24913     ;;
24914     *)
24915     ;;
24916 esac
24918 if test -n "0.35.0"; then
24919     { echo "$as_me:$LINENO: checking for intltool >= 0.35.0" >&5
24920 echo $ECHO_N "checking for intltool >= 0.35.0... $ECHO_C" >&6; }
24922     INTLTOOL_REQUIRED_VERSION_AS_INT=`echo 0.35.0 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
24923     INTLTOOL_APPLIED_VERSION=`awk -F\" '/\\$VERSION / { print $ 2; }' ${ac_aux_dir}/intltool-update.in`
24924     INTLTOOL_APPLIED_VERSION_AS_INT=`awk -F\" '/\\$VERSION / { split($ 2, VERSION, "."); print VERSION[1] * 1000 + VERSION[2] * 100 + VERSION[3];}' ${ac_aux_dir}/intltool-update.in`
24926     { echo "$as_me:$LINENO: result: $INTLTOOL_APPLIED_VERSION found" >&5
24927 echo "${ECHO_T}$INTLTOOL_APPLIED_VERSION found" >&6; }
24928     test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
24929         { { echo "$as_me:$LINENO: error: Your intltool is too old.  You need intltool 0.35.0 or later." >&5
24930 echo "$as_me: error: Your intltool is too old.  You need intltool 0.35.0 or later." >&2;}
24931    { (exit 1); exit 1; }; }
24934   INTLTOOL_DESKTOP_RULE='%.desktop:   %.desktop.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
24935 INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
24936      INTLTOOL_KEYS_RULE='%.keys:      %.keys.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
24937      INTLTOOL_PROP_RULE='%.prop:      %.prop.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
24938       INTLTOOL_OAF_RULE='%.oaf:       %.oaf.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< $@'
24939      INTLTOOL_PONG_RULE='%.pong:      %.pong.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
24940    INTLTOOL_SERVER_RULE='%.server:    %.server.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
24941     INTLTOOL_SHEET_RULE='%.sheet:     %.sheet.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
24942 INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
24943        INTLTOOL_UI_RULE='%.ui:        %.ui.in        $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
24944       INTLTOOL_XML_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
24945       INTLTOOL_XML_NOMERGE_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< $@'
24946       INTLTOOL_XAM_RULE='%.xam:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
24947       INTLTOOL_KBD_RULE='%.kbd:       %.kbd.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
24948     INTLTOOL_CAVES_RULE='%.caves:     %.caves.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
24949   INTLTOOL_SCHEMAS_RULE='%.schemas:   %.schemas.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
24950     INTLTOOL_THEME_RULE='%.theme:     %.theme.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
24951     INTLTOOL_SERVICE_RULE='%.service: %.service.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
24952    INTLTOOL_POLICY_RULE='%.policy:    %.policy.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
24974 # Check the gettext tools to make sure they are GNU
24975 # Extract the first word of "xgettext", so it can be a program name with args.
24976 set dummy xgettext; ac_word=$2
24977 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24978 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24979 if test "${ac_cv_path_XGETTEXT+set}" = set; then
24980   echo $ECHO_N "(cached) $ECHO_C" >&6
24981 else
24982   case $XGETTEXT in
24983   [\\/]* | ?:[\\/]*)
24984   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
24985   ;;
24986   *)
24987   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24988 for as_dir in $PATH
24990   IFS=$as_save_IFS
24991   test -z "$as_dir" && as_dir=.
24992   for ac_exec_ext in '' $ac_executable_extensions; do
24993   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24994     ac_cv_path_XGETTEXT="$as_dir/$ac_word$ac_exec_ext"
24995     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24996     break 2
24997   fi
24998 done
24999 done
25000 IFS=$as_save_IFS
25002   ;;
25003 esac
25005 XGETTEXT=$ac_cv_path_XGETTEXT
25006 if test -n "$XGETTEXT"; then
25007   { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
25008 echo "${ECHO_T}$XGETTEXT" >&6; }
25009 else
25010   { echo "$as_me:$LINENO: result: no" >&5
25011 echo "${ECHO_T}no" >&6; }
25015 # Extract the first word of "msgmerge", so it can be a program name with args.
25016 set dummy msgmerge; ac_word=$2
25017 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25018 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25019 if test "${ac_cv_path_MSGMERGE+set}" = set; then
25020   echo $ECHO_N "(cached) $ECHO_C" >&6
25021 else
25022   case $MSGMERGE in
25023   [\\/]* | ?:[\\/]*)
25024   ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
25025   ;;
25026   *)
25027   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25028 for as_dir in $PATH
25030   IFS=$as_save_IFS
25031   test -z "$as_dir" && as_dir=.
25032   for ac_exec_ext in '' $ac_executable_extensions; do
25033   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25034     ac_cv_path_MSGMERGE="$as_dir/$ac_word$ac_exec_ext"
25035     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25036     break 2
25037   fi
25038 done
25039 done
25040 IFS=$as_save_IFS
25042   ;;
25043 esac
25045 MSGMERGE=$ac_cv_path_MSGMERGE
25046 if test -n "$MSGMERGE"; then
25047   { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
25048 echo "${ECHO_T}$MSGMERGE" >&6; }
25049 else
25050   { echo "$as_me:$LINENO: result: no" >&5
25051 echo "${ECHO_T}no" >&6; }
25055 # Extract the first word of "msgfmt", so it can be a program name with args.
25056 set dummy msgfmt; ac_word=$2
25057 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25058 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25059 if test "${ac_cv_path_MSGFMT+set}" = set; then
25060   echo $ECHO_N "(cached) $ECHO_C" >&6
25061 else
25062   case $MSGFMT in
25063   [\\/]* | ?:[\\/]*)
25064   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
25065   ;;
25066   *)
25067   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25068 for as_dir in $PATH
25070   IFS=$as_save_IFS
25071   test -z "$as_dir" && as_dir=.
25072   for ac_exec_ext in '' $ac_executable_extensions; do
25073   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25074     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
25075     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25076     break 2
25077   fi
25078 done
25079 done
25080 IFS=$as_save_IFS
25082   ;;
25083 esac
25085 MSGFMT=$ac_cv_path_MSGFMT
25086 if test -n "$MSGFMT"; then
25087   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
25088 echo "${ECHO_T}$MSGFMT" >&6; }
25089 else
25090   { echo "$as_me:$LINENO: result: no" >&5
25091 echo "${ECHO_T}no" >&6; }
25095 if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
25096     { { echo "$as_me:$LINENO: error: GNU gettext tools not found; required for intltool" >&5
25097 echo "$as_me: error: GNU gettext tools not found; required for intltool" >&2;}
25098    { (exit 1); exit 1; }; }
25100 xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
25101 mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
25102 mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
25103 if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
25104     { { echo "$as_me:$LINENO: error: GNU gettext tools not found; required for intltool" >&5
25105 echo "$as_me: error: GNU gettext tools not found; required for intltool" >&2;}
25106    { (exit 1); exit 1; }; }
25109 # Use the tools built into the package, not the ones that are installed.
25110 INTLTOOL_EXTRACT='$(top_builddir)/intltool-extract'
25112 INTLTOOL_MERGE='$(top_builddir)/intltool-merge'
25114 INTLTOOL_UPDATE='$(top_builddir)/intltool-update'
25117 # Extract the first word of "perl", so it can be a program name with args.
25118 set dummy perl; ac_word=$2
25119 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25120 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25121 if test "${ac_cv_path_INTLTOOL_PERL+set}" = set; then
25122   echo $ECHO_N "(cached) $ECHO_C" >&6
25123 else
25124   case $INTLTOOL_PERL in
25125   [\\/]* | ?:[\\/]*)
25126   ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # Let the user override the test with a path.
25127   ;;
25128   *)
25129   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25130 for as_dir in $PATH
25132   IFS=$as_save_IFS
25133   test -z "$as_dir" && as_dir=.
25134   for ac_exec_ext in '' $ac_executable_extensions; do
25135   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25136     ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext"
25137     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25138     break 2
25139   fi
25140 done
25141 done
25142 IFS=$as_save_IFS
25144   ;;
25145 esac
25147 INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL
25148 if test -n "$INTLTOOL_PERL"; then
25149   { echo "$as_me:$LINENO: result: $INTLTOOL_PERL" >&5
25150 echo "${ECHO_T}$INTLTOOL_PERL" >&6; }
25151 else
25152   { echo "$as_me:$LINENO: result: no" >&5
25153 echo "${ECHO_T}no" >&6; }
25157 if test -z "$INTLTOOL_PERL"; then
25158    { { echo "$as_me:$LINENO: error: perl not found; required for intltool" >&5
25159 echo "$as_me: error: perl not found; required for intltool" >&2;}
25160    { (exit 1); exit 1; }; }
25162 if test -z "`$INTLTOOL_PERL -v | fgrep '5.' 2> /dev/null`"; then
25163    { { echo "$as_me:$LINENO: error: perl 5.x required for intltool" >&5
25164 echo "$as_me: error: perl 5.x required for intltool" >&2;}
25165    { (exit 1); exit 1; }; }
25167 if test "xno-xml" != "xno-xml"; then
25168    { echo "$as_me:$LINENO: checking for XML::Parser" >&5
25169 echo $ECHO_N "checking for XML::Parser... $ECHO_C" >&6; }
25170    if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
25171        { echo "$as_me:$LINENO: result: ok" >&5
25172 echo "${ECHO_T}ok" >&6; }
25173    else
25174        { { echo "$as_me:$LINENO: error: XML::Parser perl module is required for intltool" >&5
25175 echo "$as_me: error: XML::Parser perl module is required for intltool" >&2;}
25176    { (exit 1); exit 1; }; }
25177    fi
25180 # Substitute ALL_LINGUAS so we can use it in po/Makefile
25183 # Set DATADIRNAME correctly if it is not set yet
25184 # (copied from glib-gettext.m4)
25185 if test -z "$DATADIRNAME"; then
25186   cat >conftest.$ac_ext <<_ACEOF
25187 /* confdefs.h.  */
25188 _ACEOF
25189 cat confdefs.h >>conftest.$ac_ext
25190 cat >>conftest.$ac_ext <<_ACEOF
25191 /* end confdefs.h.  */
25193 int
25194 main ()
25196 extern int _nl_msg_cat_cntr;
25197                        return _nl_msg_cat_cntr
25198   ;
25199   return 0;
25201 _ACEOF
25202 rm -f conftest.$ac_objext conftest$ac_exeext
25203 if { (ac_try="$ac_link"
25204 case "(($ac_try" in
25205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25206   *) ac_try_echo=$ac_try;;
25207 esac
25208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25209   (eval "$ac_link") 2>conftest.er1
25210   ac_status=$?
25211   grep -v '^ *+' conftest.er1 >conftest.err
25212   rm -f conftest.er1
25213   cat conftest.err >&5
25214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25215   (exit $ac_status); } && {
25216          test -z "$ac_c_werror_flag" ||
25217          test ! -s conftest.err
25218        } && test -s conftest$ac_exeext &&
25219        $as_test_x conftest$ac_exeext; then
25220   DATADIRNAME=share
25221 else
25222   echo "$as_me: failed program was:" >&5
25223 sed 's/^/| /' conftest.$ac_ext >&5
25225         case $host in
25226     *-*-solaris*)
25227                         { echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
25228 echo $ECHO_N "checking for bind_textdomain_codeset... $ECHO_C" >&6; }
25229 if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
25230   echo $ECHO_N "(cached) $ECHO_C" >&6
25231 else
25232   cat >conftest.$ac_ext <<_ACEOF
25233 /* confdefs.h.  */
25234 _ACEOF
25235 cat confdefs.h >>conftest.$ac_ext
25236 cat >>conftest.$ac_ext <<_ACEOF
25237 /* end confdefs.h.  */
25238 /* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
25239    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25240 #define bind_textdomain_codeset innocuous_bind_textdomain_codeset
25242 /* System header to define __stub macros and hopefully few prototypes,
25243     which can conflict with char bind_textdomain_codeset (); below.
25244     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25245     <limits.h> exists even on freestanding compilers.  */
25247 #ifdef __STDC__
25248 # include <limits.h>
25249 #else
25250 # include <assert.h>
25251 #endif
25253 #undef bind_textdomain_codeset
25255 /* Override any GCC internal prototype to avoid an error.
25256    Use char because int might match the return type of a GCC
25257    builtin and then its argument prototype would still apply.  */
25258 #ifdef __cplusplus
25259 extern "C"
25260 #endif
25261 char bind_textdomain_codeset ();
25262 /* The GNU C library defines this for functions which it implements
25263     to always fail with ENOSYS.  Some functions are actually named
25264     something starting with __ and the normal name is an alias.  */
25265 #if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
25266 choke me
25267 #endif
25269 int
25270 main ()
25272 return bind_textdomain_codeset ();
25273   ;
25274   return 0;
25276 _ACEOF
25277 rm -f conftest.$ac_objext conftest$ac_exeext
25278 if { (ac_try="$ac_link"
25279 case "(($ac_try" in
25280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25281   *) ac_try_echo=$ac_try;;
25282 esac
25283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25284   (eval "$ac_link") 2>conftest.er1
25285   ac_status=$?
25286   grep -v '^ *+' conftest.er1 >conftest.err
25287   rm -f conftest.er1
25288   cat conftest.err >&5
25289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25290   (exit $ac_status); } && {
25291          test -z "$ac_c_werror_flag" ||
25292          test ! -s conftest.err
25293        } && test -s conftest$ac_exeext &&
25294        $as_test_x conftest$ac_exeext; then
25295   ac_cv_func_bind_textdomain_codeset=yes
25296 else
25297   echo "$as_me: failed program was:" >&5
25298 sed 's/^/| /' conftest.$ac_ext >&5
25300         ac_cv_func_bind_textdomain_codeset=no
25303 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25304       conftest$ac_exeext conftest.$ac_ext
25306 { echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
25307 echo "${ECHO_T}$ac_cv_func_bind_textdomain_codeset" >&6; }
25308 if test $ac_cv_func_bind_textdomain_codeset = yes; then
25309   DATADIRNAME=share
25310 else
25311   DATADIRNAME=lib
25314     ;;
25315     *)
25316     DATADIRNAME=lib
25317     ;;
25318     esac
25321 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25322       conftest$ac_exeext conftest.$ac_ext
25329 ac_config_commands="$ac_config_commands intltool"
25335 if test x$enable_libintl = xyes -a x$MSGFMT = xno; then
25336   { echo "$as_me:$LINENO: WARNING: I could not find msgfmt. Diabeling libintl build." >&5
25337 echo "$as_me: WARNING: I could not find msgfmt. Diabeling libintl build." >&2;}
25338   enable_libintl=no
25341 if test x$enable_libintl = xyes; then
25343 for ac_header in libintl.h
25345 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25346 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25347   { echo "$as_me:$LINENO: checking for $ac_header" >&5
25348 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25349 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25350   echo $ECHO_N "(cached) $ECHO_C" >&6
25352 ac_res=`eval echo '${'$as_ac_Header'}'`
25353                { echo "$as_me:$LINENO: result: $ac_res" >&5
25354 echo "${ECHO_T}$ac_res" >&6; }
25355 else
25356   # Is the header compilable?
25357 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
25358 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25359 cat >conftest.$ac_ext <<_ACEOF
25360 /* confdefs.h.  */
25361 _ACEOF
25362 cat confdefs.h >>conftest.$ac_ext
25363 cat >>conftest.$ac_ext <<_ACEOF
25364 /* end confdefs.h.  */
25365 $ac_includes_default
25366 #include <$ac_header>
25367 _ACEOF
25368 rm -f conftest.$ac_objext
25369 if { (ac_try="$ac_compile"
25370 case "(($ac_try" in
25371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25372   *) ac_try_echo=$ac_try;;
25373 esac
25374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25375   (eval "$ac_compile") 2>conftest.er1
25376   ac_status=$?
25377   grep -v '^ *+' conftest.er1 >conftest.err
25378   rm -f conftest.er1
25379   cat conftest.err >&5
25380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25381   (exit $ac_status); } && {
25382          test -z "$ac_c_werror_flag" ||
25383          test ! -s conftest.err
25384        } && test -s conftest.$ac_objext; then
25385   ac_header_compiler=yes
25386 else
25387   echo "$as_me: failed program was:" >&5
25388 sed 's/^/| /' conftest.$ac_ext >&5
25390         ac_header_compiler=no
25393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25394 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25395 echo "${ECHO_T}$ac_header_compiler" >&6; }
25397 # Is the header present?
25398 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
25399 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
25400 cat >conftest.$ac_ext <<_ACEOF
25401 /* confdefs.h.  */
25402 _ACEOF
25403 cat confdefs.h >>conftest.$ac_ext
25404 cat >>conftest.$ac_ext <<_ACEOF
25405 /* end confdefs.h.  */
25406 #include <$ac_header>
25407 _ACEOF
25408 if { (ac_try="$ac_cpp conftest.$ac_ext"
25409 case "(($ac_try" in
25410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25411   *) ac_try_echo=$ac_try;;
25412 esac
25413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25414   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25415   ac_status=$?
25416   grep -v '^ *+' conftest.er1 >conftest.err
25417   rm -f conftest.er1
25418   cat conftest.err >&5
25419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25420   (exit $ac_status); } >/dev/null && {
25421          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25422          test ! -s conftest.err
25423        }; then
25424   ac_header_preproc=yes
25425 else
25426   echo "$as_me: failed program was:" >&5
25427 sed 's/^/| /' conftest.$ac_ext >&5
25429   ac_header_preproc=no
25432 rm -f conftest.err conftest.$ac_ext
25433 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25434 echo "${ECHO_T}$ac_header_preproc" >&6; }
25436 # So?  What about this header?
25437 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25438   yes:no: )
25439     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25440 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25441     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25442 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25443     ac_header_preproc=yes
25444     ;;
25445   no:yes:* )
25446     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25447 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25448     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25449 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25450     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25451 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25452     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25453 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25454     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25455 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25456     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25457 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25459     ;;
25460 esac
25461 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25462 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25463 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25464   echo $ECHO_N "(cached) $ECHO_C" >&6
25465 else
25466   eval "$as_ac_Header=\$ac_header_preproc"
25468 ac_res=`eval echo '${'$as_ac_Header'}'`
25469                { echo "$as_me:$LINENO: result: $ac_res" >&5
25470 echo "${ECHO_T}$ac_res" >&6; }
25473 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25474   cat >>confdefs.h <<_ACEOF
25475 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25476 _ACEOF
25478 else
25479   { echo "$as_me:$LINENO: result: disabeling libintl build" >&5
25480 echo "${ECHO_T}disabeling libintl build" >&6; }; enable_libintl=no
25483 done
25487 if test x$enable_libintl = xyes ; then
25488       { echo "$as_me:$LINENO: checking for libintl_gettext in -lintl" >&5
25489 echo $ECHO_N "checking for libintl_gettext in -lintl... $ECHO_C" >&6; }
25490 if test "${ac_cv_lib_intl_libintl_gettext+set}" = set; then
25491   echo $ECHO_N "(cached) $ECHO_C" >&6
25492 else
25493   ac_check_lib_save_LIBS=$LIBS
25494 LIBS="-lintl  $LIBS"
25495 cat >conftest.$ac_ext <<_ACEOF
25496 /* confdefs.h.  */
25497 _ACEOF
25498 cat confdefs.h >>conftest.$ac_ext
25499 cat >>conftest.$ac_ext <<_ACEOF
25500 /* end confdefs.h.  */
25502 /* Override any GCC internal prototype to avoid an error.
25503    Use char because int might match the return type of a GCC
25504    builtin and then its argument prototype would still apply.  */
25505 #ifdef __cplusplus
25506 extern "C"
25507 #endif
25508 char libintl_gettext ();
25509 int
25510 main ()
25512 return libintl_gettext ();
25513   ;
25514   return 0;
25516 _ACEOF
25517 rm -f conftest.$ac_objext conftest$ac_exeext
25518 if { (ac_try="$ac_link"
25519 case "(($ac_try" in
25520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25521   *) ac_try_echo=$ac_try;;
25522 esac
25523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25524   (eval "$ac_link") 2>conftest.er1
25525   ac_status=$?
25526   grep -v '^ *+' conftest.er1 >conftest.err
25527   rm -f conftest.er1
25528   cat conftest.err >&5
25529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25530   (exit $ac_status); } && {
25531          test -z "$ac_c_werror_flag" ||
25532          test ! -s conftest.err
25533        } && test -s conftest$ac_exeext &&
25534        $as_test_x conftest$ac_exeext; then
25535   ac_cv_lib_intl_libintl_gettext=yes
25536 else
25537   echo "$as_me: failed program was:" >&5
25538 sed 's/^/| /' conftest.$ac_ext >&5
25540         ac_cv_lib_intl_libintl_gettext=no
25543 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25544       conftest$ac_exeext conftest.$ac_ext
25545 LIBS=$ac_check_lib_save_LIBS
25547 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_libintl_gettext" >&5
25548 echo "${ECHO_T}$ac_cv_lib_intl_libintl_gettext" >&6; }
25549 if test $ac_cv_lib_intl_libintl_gettext = yes; then
25550   LIB_LIBINTL="-lintl"
25559 if test x$enable_libintl = xyes; then
25560   BUILD_LIBINTL_TRUE=
25561   BUILD_LIBINTL_FALSE='#'
25562 else
25563   BUILD_LIBINTL_TRUE='#'
25564   BUILD_LIBINTL_FALSE=
25568 if test x$enable_libintl = xyes; then
25570 cat >>confdefs.h <<\_ACEOF
25571 #define BUILD_LIBINTL
25572 _ACEOF
25577 case $TERM in
25578        #   for the most important terminal types we directly know the sequences
25579        xterm|xterm*|vt220|vt220*)
25580                T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
25581                T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
25582        ;;
25583        vt100|vt100*|cygwin)
25584                T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
25585                T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
25586        ;;
25587        *)
25588                T_MD=''
25589                T_ME=''
25590        ;;
25591 esac
25592   { echo "$as_me:$LINENO: result: " >&5
25593 echo "${ECHO_T}" >&6; }
25594   { echo "$as_me:$LINENO: result: ${T_MD}IEEE Math Checks${T_ME}" >&5
25595 echo "${ECHO_T}${T_MD}IEEE Math Checks${T_ME}" >&6; }
25600 for ac_func in fpclassify
25602 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25603 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25604 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25605 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25606   echo $ECHO_N "(cached) $ECHO_C" >&6
25607 else
25608   cat >conftest.$ac_ext <<_ACEOF
25609 /* confdefs.h.  */
25610 _ACEOF
25611 cat confdefs.h >>conftest.$ac_ext
25612 cat >>conftest.$ac_ext <<_ACEOF
25613 /* end confdefs.h.  */
25614 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25615    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25616 #define $ac_func innocuous_$ac_func
25618 /* System header to define __stub macros and hopefully few prototypes,
25619     which can conflict with char $ac_func (); below.
25620     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25621     <limits.h> exists even on freestanding compilers.  */
25623 #ifdef __STDC__
25624 # include <limits.h>
25625 #else
25626 # include <assert.h>
25627 #endif
25629 #undef $ac_func
25631 /* Override any GCC internal prototype to avoid an error.
25632    Use char because int might match the return type of a GCC
25633    builtin and then its argument prototype would still apply.  */
25634 #ifdef __cplusplus
25635 extern "C"
25636 #endif
25637 char $ac_func ();
25638 /* The GNU C library defines this for functions which it implements
25639     to always fail with ENOSYS.  Some functions are actually named
25640     something starting with __ and the normal name is an alias.  */
25641 #if defined __stub_$ac_func || defined __stub___$ac_func
25642 choke me
25643 #endif
25645 int
25646 main ()
25648 return $ac_func ();
25649   ;
25650   return 0;
25652 _ACEOF
25653 rm -f conftest.$ac_objext conftest$ac_exeext
25654 if { (ac_try="$ac_link"
25655 case "(($ac_try" in
25656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25657   *) ac_try_echo=$ac_try;;
25658 esac
25659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25660   (eval "$ac_link") 2>conftest.er1
25661   ac_status=$?
25662   grep -v '^ *+' conftest.er1 >conftest.err
25663   rm -f conftest.er1
25664   cat conftest.err >&5
25665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25666   (exit $ac_status); } && {
25667          test -z "$ac_c_werror_flag" ||
25668          test ! -s conftest.err
25669        } && test -s conftest$ac_exeext &&
25670        $as_test_x conftest$ac_exeext; then
25671   eval "$as_ac_var=yes"
25672 else
25673   echo "$as_me: failed program was:" >&5
25674 sed 's/^/| /' conftest.$ac_ext >&5
25676         eval "$as_ac_var=no"
25679 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25680       conftest$ac_exeext conftest.$ac_ext
25682 ac_res=`eval echo '${'$as_ac_var'}'`
25683                { echo "$as_me:$LINENO: result: $ac_res" >&5
25684 echo "${ECHO_T}$ac_res" >&6; }
25685 if test `eval echo '${'$as_ac_var'}'` = yes; then
25686   cat >>confdefs.h <<_ACEOF
25687 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25688 _ACEOF
25690 else
25691   { echo "$as_me:$LINENO: checking for fpclassify with <math.h>" >&5
25692 echo $ECHO_N "checking for fpclassify with <math.h>... $ECHO_C" >&6; }
25693     cat >conftest.$ac_ext <<_ACEOF
25694 /* confdefs.h.  */
25695 _ACEOF
25696 cat confdefs.h >>conftest.$ac_ext
25697 cat >>conftest.$ac_ext <<_ACEOF
25698 /* end confdefs.h.  */
25699 #include <math.h>
25700 volatile int x;volatile float f;
25701 int
25702 main ()
25704 x = fpclassify(f)
25705   ;
25706   return 0;
25708 _ACEOF
25709 rm -f conftest.$ac_objext conftest$ac_exeext
25710 if { (ac_try="$ac_link"
25711 case "(($ac_try" in
25712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25713   *) ac_try_echo=$ac_try;;
25714 esac
25715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25716   (eval "$ac_link") 2>conftest.er1
25717   ac_status=$?
25718   grep -v '^ *+' conftest.er1 >conftest.err
25719   rm -f conftest.er1
25720   cat conftest.err >&5
25721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25722   (exit $ac_status); } && {
25723          test -z "$ac_c_werror_flag" ||
25724          test ! -s conftest.err
25725        } && test -s conftest$ac_exeext &&
25726        $as_test_x conftest$ac_exeext; then
25727   { echo "$as_me:$LINENO: result: yes" >&5
25728 echo "${ECHO_T}yes" >&6; }
25729       cat >>confdefs.h <<\_ACEOF
25730 #define HAVE_FPCLASSIFY 1
25731 _ACEOF
25733 else
25734   echo "$as_me: failed program was:" >&5
25735 sed 's/^/| /' conftest.$ac_ext >&5
25737         { echo "$as_me:$LINENO: result: no" >&5
25738 echo "${ECHO_T}no" >&6; }
25741 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25742       conftest$ac_exeext conftest.$ac_ext
25744 done
25748 for ac_func in isinf
25750 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25751 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25752 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25753 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25754   echo $ECHO_N "(cached) $ECHO_C" >&6
25755 else
25756   cat >conftest.$ac_ext <<_ACEOF
25757 /* confdefs.h.  */
25758 _ACEOF
25759 cat confdefs.h >>conftest.$ac_ext
25760 cat >>conftest.$ac_ext <<_ACEOF
25761 /* end confdefs.h.  */
25762 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25763    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25764 #define $ac_func innocuous_$ac_func
25766 /* System header to define __stub macros and hopefully few prototypes,
25767     which can conflict with char $ac_func (); below.
25768     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25769     <limits.h> exists even on freestanding compilers.  */
25771 #ifdef __STDC__
25772 # include <limits.h>
25773 #else
25774 # include <assert.h>
25775 #endif
25777 #undef $ac_func
25779 /* Override any GCC internal prototype to avoid an error.
25780    Use char because int might match the return type of a GCC
25781    builtin and then its argument prototype would still apply.  */
25782 #ifdef __cplusplus
25783 extern "C"
25784 #endif
25785 char $ac_func ();
25786 /* The GNU C library defines this for functions which it implements
25787     to always fail with ENOSYS.  Some functions are actually named
25788     something starting with __ and the normal name is an alias.  */
25789 #if defined __stub_$ac_func || defined __stub___$ac_func
25790 choke me
25791 #endif
25793 int
25794 main ()
25796 return $ac_func ();
25797   ;
25798   return 0;
25800 _ACEOF
25801 rm -f conftest.$ac_objext conftest$ac_exeext
25802 if { (ac_try="$ac_link"
25803 case "(($ac_try" in
25804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25805   *) ac_try_echo=$ac_try;;
25806 esac
25807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25808   (eval "$ac_link") 2>conftest.er1
25809   ac_status=$?
25810   grep -v '^ *+' conftest.er1 >conftest.err
25811   rm -f conftest.er1
25812   cat conftest.err >&5
25813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25814   (exit $ac_status); } && {
25815          test -z "$ac_c_werror_flag" ||
25816          test ! -s conftest.err
25817        } && test -s conftest$ac_exeext &&
25818        $as_test_x conftest$ac_exeext; then
25819   eval "$as_ac_var=yes"
25820 else
25821   echo "$as_me: failed program was:" >&5
25822 sed 's/^/| /' conftest.$ac_ext >&5
25824         eval "$as_ac_var=no"
25827 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25828       conftest$ac_exeext conftest.$ac_ext
25830 ac_res=`eval echo '${'$as_ac_var'}'`
25831                { echo "$as_me:$LINENO: result: $ac_res" >&5
25832 echo "${ECHO_T}$ac_res" >&6; }
25833 if test `eval echo '${'$as_ac_var'}'` = yes; then
25834   cat >>confdefs.h <<_ACEOF
25835 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25836 _ACEOF
25838 else
25839   { echo "$as_me:$LINENO: checking for isinf with <math.h>" >&5
25840 echo $ECHO_N "checking for isinf with <math.h>... $ECHO_C" >&6; }
25841     cat >conftest.$ac_ext <<_ACEOF
25842 /* confdefs.h.  */
25843 _ACEOF
25844 cat confdefs.h >>conftest.$ac_ext
25845 cat >>conftest.$ac_ext <<_ACEOF
25846 /* end confdefs.h.  */
25847 #include <math.h>
25848 volatile int x;volatile float f;
25849 int
25850 main ()
25852 x = isinf(f)
25853   ;
25854   return 0;
25856 _ACEOF
25857 rm -f conftest.$ac_objext conftest$ac_exeext
25858 if { (ac_try="$ac_link"
25859 case "(($ac_try" in
25860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25861   *) ac_try_echo=$ac_try;;
25862 esac
25863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25864   (eval "$ac_link") 2>conftest.er1
25865   ac_status=$?
25866   grep -v '^ *+' conftest.er1 >conftest.err
25867   rm -f conftest.er1
25868   cat conftest.err >&5
25869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25870   (exit $ac_status); } && {
25871          test -z "$ac_c_werror_flag" ||
25872          test ! -s conftest.err
25873        } && test -s conftest$ac_exeext &&
25874        $as_test_x conftest$ac_exeext; then
25875   { echo "$as_me:$LINENO: result: yes" >&5
25876 echo "${ECHO_T}yes" >&6; }
25877       cat >>confdefs.h <<\_ACEOF
25878 #define HAVE_ISINF 1
25879 _ACEOF
25881 else
25882   echo "$as_me: failed program was:" >&5
25883 sed 's/^/| /' conftest.$ac_ext >&5
25885         { echo "$as_me:$LINENO: result: no" >&5
25886 echo "${ECHO_T}no" >&6; }
25889 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25890       conftest$ac_exeext conftest.$ac_ext
25892 done
25895 { echo "$as_me:$LINENO: checking whether isfinite is broken" >&5
25896 echo $ECHO_N "checking whether isfinite is broken... $ECHO_C" >&6; }
25897 if test "${ac_cv_have_broken_isfinite+set}" = set; then
25898   echo $ECHO_N "(cached) $ECHO_C" >&6
25899 else
25901 if test "$cross_compiling" = yes; then
25903 case "${target}" in
25904   hppa*-*-hpux*) ac_cv_have_broken_isfinite=yes ;;
25905   *-solaris2.8) ac_cv_have_broken_isfinite=yes ;;
25906   *-solaris2.9) ac_cv_have_broken_isfinite=yes ;;
25907   *) ac_cv_have_broken_isfinite=no ;;
25908 esac
25909 else
25910   cat >conftest.$ac_ext <<_ACEOF
25911 /* confdefs.h.  */
25912 _ACEOF
25913 cat confdefs.h >>conftest.$ac_ext
25914 cat >>conftest.$ac_ext <<_ACEOF
25915 /* end confdefs.h.  */
25917 #ifdef HAVE_MATH_H
25918 #include <math.h>
25919 #endif
25920 #ifdef HAVE_FLOAT_H
25921 #include <float.h>
25922 #endif
25923 int main ()
25925 #ifdef isfinite
25926 #ifdef LDBL_MAX
25927   if (!isfinite(LDBL_MAX)) return 1;
25928 #endif
25929 #ifdef DBL_MAX
25930   if (!isfinite(DBL_MAX)) return 1;
25931 #endif
25932 #endif
25933 return 0;
25935 _ACEOF
25936 rm -f conftest$ac_exeext
25937 if { (ac_try="$ac_link"
25938 case "(($ac_try" in
25939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25940   *) ac_try_echo=$ac_try;;
25941 esac
25942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25943   (eval "$ac_link") 2>&5
25944   ac_status=$?
25945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25946   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25947   { (case "(($ac_try" in
25948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25949   *) ac_try_echo=$ac_try;;
25950 esac
25951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25952   (eval "$ac_try") 2>&5
25953   ac_status=$?
25954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25955   (exit $ac_status); }; }; then
25956   ac_cv_have_broken_isfinite=no
25957 else
25958   echo "$as_me: program exited with status $ac_status" >&5
25959 echo "$as_me: failed program was:" >&5
25960 sed 's/^/| /' conftest.$ac_ext >&5
25962 ( exit $ac_status )
25963 ac_cv_have_broken_isfinite=yes
25965 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25971 { echo "$as_me:$LINENO: result: $ac_cv_have_broken_isfinite" >&5
25972 echo "${ECHO_T}$ac_cv_have_broken_isfinite" >&6; }
25974 case "${target}" in
25975   *-solaris2.8) ac_cv_have_broken_isfinite=yes ;;
25976   *-solaris2.9) ac_cv_have_broken_isfinite=yes ;;
25977 esac
25979 if test "x$ac_cv_have_broken_isfinite" = "xno"; then
25980   cat >>confdefs.h <<\_ACEOF
25981 #define HAVE_ISFINITE 1
25982 _ACEOF
25984 else
25986 for ac_func in finite
25988 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25989 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25990 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25991 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25992   echo $ECHO_N "(cached) $ECHO_C" >&6
25993 else
25994   cat >conftest.$ac_ext <<_ACEOF
25995 /* confdefs.h.  */
25996 _ACEOF
25997 cat confdefs.h >>conftest.$ac_ext
25998 cat >>conftest.$ac_ext <<_ACEOF
25999 /* end confdefs.h.  */
26000 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26001    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26002 #define $ac_func innocuous_$ac_func
26004 /* System header to define __stub macros and hopefully few prototypes,
26005     which can conflict with char $ac_func (); below.
26006     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26007     <limits.h> exists even on freestanding compilers.  */
26009 #ifdef __STDC__
26010 # include <limits.h>
26011 #else
26012 # include <assert.h>
26013 #endif
26015 #undef $ac_func
26017 /* Override any GCC internal prototype to avoid an error.
26018    Use char because int might match the return type of a GCC
26019    builtin and then its argument prototype would still apply.  */
26020 #ifdef __cplusplus
26021 extern "C"
26022 #endif
26023 char $ac_func ();
26024 /* The GNU C library defines this for functions which it implements
26025     to always fail with ENOSYS.  Some functions are actually named
26026     something starting with __ and the normal name is an alias.  */
26027 #if defined __stub_$ac_func || defined __stub___$ac_func
26028 choke me
26029 #endif
26031 int
26032 main ()
26034 return $ac_func ();
26035   ;
26036   return 0;
26038 _ACEOF
26039 rm -f conftest.$ac_objext conftest$ac_exeext
26040 if { (ac_try="$ac_link"
26041 case "(($ac_try" in
26042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26043   *) ac_try_echo=$ac_try;;
26044 esac
26045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26046   (eval "$ac_link") 2>conftest.er1
26047   ac_status=$?
26048   grep -v '^ *+' conftest.er1 >conftest.err
26049   rm -f conftest.er1
26050   cat conftest.err >&5
26051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26052   (exit $ac_status); } && {
26053          test -z "$ac_c_werror_flag" ||
26054          test ! -s conftest.err
26055        } && test -s conftest$ac_exeext &&
26056        $as_test_x conftest$ac_exeext; then
26057   eval "$as_ac_var=yes"
26058 else
26059   echo "$as_me: failed program was:" >&5
26060 sed 's/^/| /' conftest.$ac_ext >&5
26062         eval "$as_ac_var=no"
26065 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26066       conftest$ac_exeext conftest.$ac_ext
26068 ac_res=`eval echo '${'$as_ac_var'}'`
26069                { echo "$as_me:$LINENO: result: $ac_res" >&5
26070 echo "${ECHO_T}$ac_res" >&6; }
26071 if test `eval echo '${'$as_ac_var'}'` = yes; then
26072   cat >>confdefs.h <<_ACEOF
26073 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26074 _ACEOF
26076 else
26078 for ac_func in isfinite
26080 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26081 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26082 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26083 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26084   echo $ECHO_N "(cached) $ECHO_C" >&6
26085 else
26086   cat >conftest.$ac_ext <<_ACEOF
26087 /* confdefs.h.  */
26088 _ACEOF
26089 cat confdefs.h >>conftest.$ac_ext
26090 cat >>conftest.$ac_ext <<_ACEOF
26091 /* end confdefs.h.  */
26092 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26093    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26094 #define $ac_func innocuous_$ac_func
26096 /* System header to define __stub macros and hopefully few prototypes,
26097     which can conflict with char $ac_func (); below.
26098     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26099     <limits.h> exists even on freestanding compilers.  */
26101 #ifdef __STDC__
26102 # include <limits.h>
26103 #else
26104 # include <assert.h>
26105 #endif
26107 #undef $ac_func
26109 /* Override any GCC internal prototype to avoid an error.
26110    Use char because int might match the return type of a GCC
26111    builtin and then its argument prototype would still apply.  */
26112 #ifdef __cplusplus
26113 extern "C"
26114 #endif
26115 char $ac_func ();
26116 /* The GNU C library defines this for functions which it implements
26117     to always fail with ENOSYS.  Some functions are actually named
26118     something starting with __ and the normal name is an alias.  */
26119 #if defined __stub_$ac_func || defined __stub___$ac_func
26120 choke me
26121 #endif
26123 int
26124 main ()
26126 return $ac_func ();
26127   ;
26128   return 0;
26130 _ACEOF
26131 rm -f conftest.$ac_objext conftest$ac_exeext
26132 if { (ac_try="$ac_link"
26133 case "(($ac_try" in
26134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26135   *) ac_try_echo=$ac_try;;
26136 esac
26137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26138   (eval "$ac_link") 2>conftest.er1
26139   ac_status=$?
26140   grep -v '^ *+' conftest.er1 >conftest.err
26141   rm -f conftest.er1
26142   cat conftest.err >&5
26143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26144   (exit $ac_status); } && {
26145          test -z "$ac_c_werror_flag" ||
26146          test ! -s conftest.err
26147        } && test -s conftest$ac_exeext &&
26148        $as_test_x conftest$ac_exeext; then
26149   eval "$as_ac_var=yes"
26150 else
26151   echo "$as_me: failed program was:" >&5
26152 sed 's/^/| /' conftest.$ac_ext >&5
26154         eval "$as_ac_var=no"
26157 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26158       conftest$ac_exeext conftest.$ac_ext
26160 ac_res=`eval echo '${'$as_ac_var'}'`
26161                { echo "$as_me:$LINENO: result: $ac_res" >&5
26162 echo "${ECHO_T}$ac_res" >&6; }
26163 if test `eval echo '${'$as_ac_var'}'` = yes; then
26164   cat >>confdefs.h <<_ACEOF
26165 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26166 _ACEOF
26168 else
26169   { echo "$as_me:$LINENO: checking for isfinite with <math.h>" >&5
26170 echo $ECHO_N "checking for isfinite with <math.h>... $ECHO_C" >&6; }
26171           cat >conftest.$ac_ext <<_ACEOF
26172 /* confdefs.h.  */
26173 _ACEOF
26174 cat confdefs.h >>conftest.$ac_ext
26175 cat >>conftest.$ac_ext <<_ACEOF
26176 /* end confdefs.h.  */
26177 #include <math.h>
26178 volatile int x;volatile float f;
26179 int
26180 main ()
26182 x = isfinite(f)
26183   ;
26184   return 0;
26186 _ACEOF
26187 rm -f conftest.$ac_objext conftest$ac_exeext
26188 if { (ac_try="$ac_link"
26189 case "(($ac_try" in
26190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26191   *) ac_try_echo=$ac_try;;
26192 esac
26193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26194   (eval "$ac_link") 2>conftest.er1
26195   ac_status=$?
26196   grep -v '^ *+' conftest.er1 >conftest.err
26197   rm -f conftest.er1
26198   cat conftest.err >&5
26199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26200   (exit $ac_status); } && {
26201          test -z "$ac_c_werror_flag" ||
26202          test ! -s conftest.err
26203        } && test -s conftest$ac_exeext &&
26204        $as_test_x conftest$ac_exeext; then
26205   { echo "$as_me:$LINENO: result: yes" >&5
26206 echo "${ECHO_T}yes" >&6; }
26207                 cat >>confdefs.h <<\_ACEOF
26208 #define HAVE_ISFINITE 1
26209 _ACEOF
26211 else
26212   echo "$as_me: failed program was:" >&5
26213 sed 's/^/| /' conftest.$ac_ext >&5
26215         { echo "$as_me:$LINENO: result: no" >&5
26216 echo "${ECHO_T}no" >&6; }
26219 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26220       conftest$ac_exeext conftest.$ac_ext
26222 done
26225 done
26230 ac_ext=c
26231 ac_cpp='$CPP $CPPFLAGS'
26232 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26233 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26234 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26236 _cflags=${CFLAGS}
26238 { echo "$as_me:$LINENO: checking if IEEE math works out of the box" >&5
26239 echo $ECHO_N "checking if IEEE math works out of the box... $ECHO_C" >&6; }
26240 if test "${rd_cv_ieee_works+set}" = set; then
26241   echo $ECHO_N "(cached) $ECHO_C" >&6
26242 else
26243   if test "$cross_compiling" = yes; then
26244   :
26245 else
26246   cat >conftest.$ac_ext <<_ACEOF
26247 /* confdefs.h.  */
26248 _ACEOF
26249 cat confdefs.h >>conftest.$ac_ext
26250 cat >>conftest.$ac_ext <<_ACEOF
26251 /* end confdefs.h.  */
26254 #if HAVE_MATH_H
26255 #  include <math.h>
26256 #endif
26258 #if HAVE_FLOAT_H
26259 #  include <float.h>
26260 #endif
26262 #if HAVE_IEEEFP_H
26263 #  include <ieeefp.h>
26264 #endif
26266 #if HAVE_FP_CLASS_H
26267 #  include <fp_class.h>
26268 #endif
26270 /* Solaris */
26271 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS))
26272 #  define HAVE_ISINF 1
26273 #  define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF)
26274 #endif
26276 /* solaris 10 it defines isnan such that only forte can compile it ... bad bad  */
26277 #if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS))
26278 #  undef isnan
26279 #  define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN)
26280 #endif
26282 /* Digital UNIX */
26283 #if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H))
26284 #  define HAVE_ISINF 1
26285 #  define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
26286 #endif
26288 /* AIX */
26289 #if (! defined(HAVE_ISINF) && defined(HAVE_CLASS))
26290 #  define HAVE_ISINF 1
26291 #  define isinf(a) (class(a) == FP_MINUS_INF || class(a) == FP_PLUS_INF)
26292 #endif
26294 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_PLUS_INF) && defined(FP_MINUS_INF))
26295 #  define HAVE_ISINF 1
26296 #  define isinf(a) (fpclassify(a) == FP_MINUS_INF || fpclassify(a) == FP_PLUS_INF)
26297 #endif
26299 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_INFINITE))
26300 #  define HAVE_ISINF 1
26301 #  define isinf(a) (fpclassify(a) == FP_INFINITE)
26302 #endif
26304 #include <stdio.h>
26305 int main(void){
26306     double rrdnan,rrdinf,rrdc,rrdzero;
26307     ;
26308     /* some math to see if we get a floating point exception */
26309     rrdzero=sin(0.0); /* don't let the compiler optimize us away */
26310     rrdnan=0.0/rrdzero; /* especially here */
26311     rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
26312                   /* at run time without sig fpe */
26313     rrdc = rrdinf + rrdnan;
26314     rrdc = rrdinf / rrdnan;
26315     if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
26316     if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
26317     if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
26318     if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
26319     if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
26320     if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
26321     return 0;
26322  }
26323 _ACEOF
26324 rm -f conftest$ac_exeext
26325 if { (ac_try="$ac_link"
26326 case "(($ac_try" in
26327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26328   *) ac_try_echo=$ac_try;;
26329 esac
26330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26331   (eval "$ac_link") 2>&5
26332   ac_status=$?
26333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26334   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26335   { (case "(($ac_try" in
26336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26337   *) ac_try_echo=$ac_try;;
26338 esac
26339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26340   (eval "$ac_try") 2>&5
26341   ac_status=$?
26342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26343   (exit $ac_status); }; }; then
26344   rd_cv_ieee_works=yes
26345 else
26346   echo "$as_me: program exited with status $ac_status" >&5
26347 echo "$as_me: failed program was:" >&5
26348 sed 's/^/| /' conftest.$ac_ext >&5
26350 ( exit $ac_status )
26351 rd_cv_ieee_works=no
26353 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26359 if test x${rd_cv_ieee_works} = "xyes"; then
26360  { echo "$as_me:$LINENO: result: yes" >&5
26361 echo "${ECHO_T}yes" >&6; }
26363 else
26364  { echo "$as_me:$LINENO: result: no" >&5
26365 echo "${ECHO_T}no" >&6; }
26366  CFLAGS="$_cflags -ieee"
26368 { echo "$as_me:$LINENO: checking if IEEE math works with the -ieee switch" >&5
26369 echo $ECHO_N "checking if IEEE math works with the -ieee switch... $ECHO_C" >&6; }
26370 if test "${rd_cv_ieee_switch+set}" = set; then
26371   echo $ECHO_N "(cached) $ECHO_C" >&6
26372 else
26373   if test "$cross_compiling" = yes; then
26374   :
26375 else
26376   cat >conftest.$ac_ext <<_ACEOF
26377 /* confdefs.h.  */
26378 _ACEOF
26379 cat confdefs.h >>conftest.$ac_ext
26380 cat >>conftest.$ac_ext <<_ACEOF
26381 /* end confdefs.h.  */
26384 #if HAVE_MATH_H
26385 #  include <math.h>
26386 #endif
26388 #if HAVE_FLOAT_H
26389 #  include <float.h>
26390 #endif
26392 #if HAVE_IEEEFP_H
26393 #  include <ieeefp.h>
26394 #endif
26396 #if HAVE_FP_CLASS_H
26397 #  include <fp_class.h>
26398 #endif
26400 /* Solaris */
26401 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS))
26402 #  define HAVE_ISINF 1
26403 #  define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF)
26404 #endif
26406 /* solaris 10 it defines isnan such that only forte can compile it ... bad bad  */
26407 #if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS))
26408 #  undef isnan
26409 #  define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN)
26410 #endif
26412 /* Digital UNIX */
26413 #if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H))
26414 #  define HAVE_ISINF 1
26415 #  define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
26416 #endif
26418 /* AIX */
26419 #if (! defined(HAVE_ISINF) && defined(HAVE_CLASS))
26420 #  define HAVE_ISINF 1
26421 #  define isinf(a) (class(a) == FP_MINUS_INF || class(a) == FP_PLUS_INF)
26422 #endif
26424 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_PLUS_INF) && defined(FP_MINUS_INF))
26425 #  define HAVE_ISINF 1
26426 #  define isinf(a) (fpclassify(a) == FP_MINUS_INF || fpclassify(a) == FP_PLUS_INF)
26427 #endif
26429 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_INFINITE))
26430 #  define HAVE_ISINF 1
26431 #  define isinf(a) (fpclassify(a) == FP_INFINITE)
26432 #endif
26434 #include <stdio.h>
26435 int main(void){
26436     double rrdnan,rrdinf,rrdc,rrdzero;
26437     ;
26438     /* some math to see if we get a floating point exception */
26439     rrdzero=sin(0.0); /* don't let the compiler optimize us away */
26440     rrdnan=0.0/rrdzero; /* especially here */
26441     rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
26442                   /* at run time without sig fpe */
26443     rrdc = rrdinf + rrdnan;
26444     rrdc = rrdinf / rrdnan;
26445     if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
26446     if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
26447     if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
26448     if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
26449     if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
26450     if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
26451     return 0;
26452  }
26453 _ACEOF
26454 rm -f conftest$ac_exeext
26455 if { (ac_try="$ac_link"
26456 case "(($ac_try" in
26457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26458   *) ac_try_echo=$ac_try;;
26459 esac
26460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26461   (eval "$ac_link") 2>&5
26462   ac_status=$?
26463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26464   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26465   { (case "(($ac_try" in
26466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26467   *) ac_try_echo=$ac_try;;
26468 esac
26469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26470   (eval "$ac_try") 2>&5
26471   ac_status=$?
26472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26473   (exit $ac_status); }; }; then
26474   rd_cv_ieee_switch=yes
26475 else
26476   echo "$as_me: program exited with status $ac_status" >&5
26477 echo "$as_me: failed program was:" >&5
26478 sed 's/^/| /' conftest.$ac_ext >&5
26480 ( exit $ac_status )
26481 rd_cv_ieee_switch=no
26483 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26489 if test x${rd_cv_ieee_switch} = "xyes"; then
26490  { echo "$as_me:$LINENO: result: yes" >&5
26491 echo "${ECHO_T}yes" >&6; }
26493 else
26494  { echo "$as_me:$LINENO: result: no" >&5
26495 echo "${ECHO_T}no" >&6; }
26496  CFLAGS="$_cflags -qfloat=nofold"
26498 { echo "$as_me:$LINENO: checking if IEEE math works with the -qfloat=nofold switch" >&5
26499 echo $ECHO_N "checking if IEEE math works with the -qfloat=nofold switch... $ECHO_C" >&6; }
26500 if test "${rd_cv_ieee_nofold+set}" = set; then
26501   echo $ECHO_N "(cached) $ECHO_C" >&6
26502 else
26503   if test "$cross_compiling" = yes; then
26504   :
26505 else
26506   cat >conftest.$ac_ext <<_ACEOF
26507 /* confdefs.h.  */
26508 _ACEOF
26509 cat confdefs.h >>conftest.$ac_ext
26510 cat >>conftest.$ac_ext <<_ACEOF
26511 /* end confdefs.h.  */
26514 #if HAVE_MATH_H
26515 #  include <math.h>
26516 #endif
26518 #if HAVE_FLOAT_H
26519 #  include <float.h>
26520 #endif
26522 #if HAVE_IEEEFP_H
26523 #  include <ieeefp.h>
26524 #endif
26526 #if HAVE_FP_CLASS_H
26527 #  include <fp_class.h>
26528 #endif
26530 /* Solaris */
26531 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS))
26532 #  define HAVE_ISINF 1
26533 #  define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF)
26534 #endif
26536 /* solaris 10 it defines isnan such that only forte can compile it ... bad bad  */
26537 #if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS))
26538 #  undef isnan
26539 #  define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN)
26540 #endif
26542 /* Digital UNIX */
26543 #if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H))
26544 #  define HAVE_ISINF 1
26545 #  define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
26546 #endif
26548 /* AIX */
26549 #if (! defined(HAVE_ISINF) && defined(HAVE_CLASS))
26550 #  define HAVE_ISINF 1
26551 #  define isinf(a) (class(a) == FP_MINUS_INF || class(a) == FP_PLUS_INF)
26552 #endif
26554 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_PLUS_INF) && defined(FP_MINUS_INF))
26555 #  define HAVE_ISINF 1
26556 #  define isinf(a) (fpclassify(a) == FP_MINUS_INF || fpclassify(a) == FP_PLUS_INF)
26557 #endif
26559 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_INFINITE))
26560 #  define HAVE_ISINF 1
26561 #  define isinf(a) (fpclassify(a) == FP_INFINITE)
26562 #endif
26564 #include <stdio.h>
26565 int main(void){
26566     double rrdnan,rrdinf,rrdc,rrdzero;
26567     ;
26568     /* some math to see if we get a floating point exception */
26569     rrdzero=sin(0.0); /* don't let the compiler optimize us away */
26570     rrdnan=0.0/rrdzero; /* especially here */
26571     rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
26572                   /* at run time without sig fpe */
26573     rrdc = rrdinf + rrdnan;
26574     rrdc = rrdinf / rrdnan;
26575     if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
26576     if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
26577     if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
26578     if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
26579     if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
26580     if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
26581     return 0;
26582  }
26583 _ACEOF
26584 rm -f conftest$ac_exeext
26585 if { (ac_try="$ac_link"
26586 case "(($ac_try" in
26587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26588   *) ac_try_echo=$ac_try;;
26589 esac
26590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26591   (eval "$ac_link") 2>&5
26592   ac_status=$?
26593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26594   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26595   { (case "(($ac_try" in
26596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26597   *) ac_try_echo=$ac_try;;
26598 esac
26599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26600   (eval "$ac_try") 2>&5
26601   ac_status=$?
26602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26603   (exit $ac_status); }; }; then
26604   rd_cv_ieee_nofold=yes
26605 else
26606   echo "$as_me: program exited with status $ac_status" >&5
26607 echo "$as_me: failed program was:" >&5
26608 sed 's/^/| /' conftest.$ac_ext >&5
26610 ( exit $ac_status )
26611 rd_cv_ieee_nofold=no
26613 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26619 if test x${rd_cv_ieee_nofold} = "xyes"; then
26620  { echo "$as_me:$LINENO: result: yes" >&5
26621 echo "${ECHO_T}yes" >&6; }
26623 else
26624  { echo "$as_me:$LINENO: result: no" >&5
26625 echo "${ECHO_T}no" >&6; }
26626  CFLAGS="$_cflags -w -qflttrap=enable:zerodivide"
26628 { echo "$as_me:$LINENO: checking if IEEE math works with the -w -qflttrap=enable:zerodivide" >&5
26629 echo $ECHO_N "checking if IEEE math works with the -w -qflttrap=enable:zerodivide... $ECHO_C" >&6; }
26630 if test "${rd_cv_ieee_flttrap+set}" = set; then
26631   echo $ECHO_N "(cached) $ECHO_C" >&6
26632 else
26633   if test "$cross_compiling" = yes; then
26634   :
26635 else
26636   cat >conftest.$ac_ext <<_ACEOF
26637 /* confdefs.h.  */
26638 _ACEOF
26639 cat confdefs.h >>conftest.$ac_ext
26640 cat >>conftest.$ac_ext <<_ACEOF
26641 /* end confdefs.h.  */
26644 #if HAVE_MATH_H
26645 #  include <math.h>
26646 #endif
26648 #if HAVE_FLOAT_H
26649 #  include <float.h>
26650 #endif
26652 #if HAVE_IEEEFP_H
26653 #  include <ieeefp.h>
26654 #endif
26656 #if HAVE_FP_CLASS_H
26657 #  include <fp_class.h>
26658 #endif
26660 /* Solaris */
26661 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS))
26662 #  define HAVE_ISINF 1
26663 #  define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF)
26664 #endif
26666 /* solaris 10 it defines isnan such that only forte can compile it ... bad bad  */
26667 #if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS))
26668 #  undef isnan
26669 #  define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN)
26670 #endif
26672 /* Digital UNIX */
26673 #if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H))
26674 #  define HAVE_ISINF 1
26675 #  define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
26676 #endif
26678 /* AIX */
26679 #if (! defined(HAVE_ISINF) && defined(HAVE_CLASS))
26680 #  define HAVE_ISINF 1
26681 #  define isinf(a) (class(a) == FP_MINUS_INF || class(a) == FP_PLUS_INF)
26682 #endif
26684 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_PLUS_INF) && defined(FP_MINUS_INF))
26685 #  define HAVE_ISINF 1
26686 #  define isinf(a) (fpclassify(a) == FP_MINUS_INF || fpclassify(a) == FP_PLUS_INF)
26687 #endif
26689 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_INFINITE))
26690 #  define HAVE_ISINF 1
26691 #  define isinf(a) (fpclassify(a) == FP_INFINITE)
26692 #endif
26694 #include <stdio.h>
26695 int main(void){
26696     double rrdnan,rrdinf,rrdc,rrdzero;
26697     ;
26698     /* some math to see if we get a floating point exception */
26699     rrdzero=sin(0.0); /* don't let the compiler optimize us away */
26700     rrdnan=0.0/rrdzero; /* especially here */
26701     rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
26702                   /* at run time without sig fpe */
26703     rrdc = rrdinf + rrdnan;
26704     rrdc = rrdinf / rrdnan;
26705     if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
26706     if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
26707     if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
26708     if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
26709     if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
26710     if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
26711     return 0;
26712  }
26713 _ACEOF
26714 rm -f conftest$ac_exeext
26715 if { (ac_try="$ac_link"
26716 case "(($ac_try" in
26717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26718   *) ac_try_echo=$ac_try;;
26719 esac
26720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26721   (eval "$ac_link") 2>&5
26722   ac_status=$?
26723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26724   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26725   { (case "(($ac_try" in
26726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26727   *) ac_try_echo=$ac_try;;
26728 esac
26729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26730   (eval "$ac_try") 2>&5
26731   ac_status=$?
26732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26733   (exit $ac_status); }; }; then
26734   rd_cv_ieee_flttrap=yes
26735 else
26736   echo "$as_me: program exited with status $ac_status" >&5
26737 echo "$as_me: failed program was:" >&5
26738 sed 's/^/| /' conftest.$ac_ext >&5
26740 ( exit $ac_status )
26741 rd_cv_ieee_flttrap=no
26743 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26749 if test x${rd_cv_ieee_flttrap} = "xyes"; then
26750  { echo "$as_me:$LINENO: result: yes" >&5
26751 echo "${ECHO_T}yes" >&6; }
26753 else
26754  { echo "$as_me:$LINENO: result: no" >&5
26755 echo "${ECHO_T}no" >&6; }
26756  CFLAGS="$_cflags -mieee"
26758 { echo "$as_me:$LINENO: checking if IEEE math works with the -mieee switch" >&5
26759 echo $ECHO_N "checking if IEEE math works with the -mieee switch... $ECHO_C" >&6; }
26760 if test "${rd_cv_ieee_mswitch+set}" = set; then
26761   echo $ECHO_N "(cached) $ECHO_C" >&6
26762 else
26763   if test "$cross_compiling" = yes; then
26764   :
26765 else
26766   cat >conftest.$ac_ext <<_ACEOF
26767 /* confdefs.h.  */
26768 _ACEOF
26769 cat confdefs.h >>conftest.$ac_ext
26770 cat >>conftest.$ac_ext <<_ACEOF
26771 /* end confdefs.h.  */
26774 #if HAVE_MATH_H
26775 #  include <math.h>
26776 #endif
26778 #if HAVE_FLOAT_H
26779 #  include <float.h>
26780 #endif
26782 #if HAVE_IEEEFP_H
26783 #  include <ieeefp.h>
26784 #endif
26786 #if HAVE_FP_CLASS_H
26787 #  include <fp_class.h>
26788 #endif
26790 /* Solaris */
26791 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS))
26792 #  define HAVE_ISINF 1
26793 #  define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF)
26794 #endif
26796 /* solaris 10 it defines isnan such that only forte can compile it ... bad bad  */
26797 #if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS))
26798 #  undef isnan
26799 #  define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN)
26800 #endif
26802 /* Digital UNIX */
26803 #if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H))
26804 #  define HAVE_ISINF 1
26805 #  define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
26806 #endif
26808 /* AIX */
26809 #if (! defined(HAVE_ISINF) && defined(HAVE_CLASS))
26810 #  define HAVE_ISINF 1
26811 #  define isinf(a) (class(a) == FP_MINUS_INF || class(a) == FP_PLUS_INF)
26812 #endif
26814 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_PLUS_INF) && defined(FP_MINUS_INF))
26815 #  define HAVE_ISINF 1
26816 #  define isinf(a) (fpclassify(a) == FP_MINUS_INF || fpclassify(a) == FP_PLUS_INF)
26817 #endif
26819 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_INFINITE))
26820 #  define HAVE_ISINF 1
26821 #  define isinf(a) (fpclassify(a) == FP_INFINITE)
26822 #endif
26824 #include <stdio.h>
26825 int main(void){
26826     double rrdnan,rrdinf,rrdc,rrdzero;
26827     ;
26828     /* some math to see if we get a floating point exception */
26829     rrdzero=sin(0.0); /* don't let the compiler optimize us away */
26830     rrdnan=0.0/rrdzero; /* especially here */
26831     rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
26832                   /* at run time without sig fpe */
26833     rrdc = rrdinf + rrdnan;
26834     rrdc = rrdinf / rrdnan;
26835     if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
26836     if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
26837     if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
26838     if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
26839     if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
26840     if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
26841     return 0;
26842  }
26843 _ACEOF
26844 rm -f conftest$ac_exeext
26845 if { (ac_try="$ac_link"
26846 case "(($ac_try" in
26847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26848   *) ac_try_echo=$ac_try;;
26849 esac
26850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26851   (eval "$ac_link") 2>&5
26852   ac_status=$?
26853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26854   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26855   { (case "(($ac_try" in
26856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26857   *) ac_try_echo=$ac_try;;
26858 esac
26859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26860   (eval "$ac_try") 2>&5
26861   ac_status=$?
26862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26863   (exit $ac_status); }; }; then
26864   rd_cv_ieee_mswitch=yes
26865 else
26866   echo "$as_me: program exited with status $ac_status" >&5
26867 echo "$as_me: failed program was:" >&5
26868 sed 's/^/| /' conftest.$ac_ext >&5
26870 ( exit $ac_status )
26871 rd_cv_ieee_mswitch=no
26873 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26879 if test x${rd_cv_ieee_mswitch} = "xyes"; then
26880  { echo "$as_me:$LINENO: result: yes" >&5
26881 echo "${ECHO_T}yes" >&6; }
26883 else
26884  { echo "$as_me:$LINENO: result: no" >&5
26885 echo "${ECHO_T}no" >&6; }
26886  CFLAGS="$_cflags -q float=rndsngl"
26888 { echo "$as_me:$LINENO: checking if IEEE math works with the -q float=rndsngl switch" >&5
26889 echo $ECHO_N "checking if IEEE math works with the -q float=rndsngl switch... $ECHO_C" >&6; }
26890 if test "${rd_cv_ieee_qswitch+set}" = set; then
26891   echo $ECHO_N "(cached) $ECHO_C" >&6
26892 else
26893   if test "$cross_compiling" = yes; then
26894   :
26895 else
26896   cat >conftest.$ac_ext <<_ACEOF
26897 /* confdefs.h.  */
26898 _ACEOF
26899 cat confdefs.h >>conftest.$ac_ext
26900 cat >>conftest.$ac_ext <<_ACEOF
26901 /* end confdefs.h.  */
26904 #if HAVE_MATH_H
26905 #  include <math.h>
26906 #endif
26908 #if HAVE_FLOAT_H
26909 #  include <float.h>
26910 #endif
26912 #if HAVE_IEEEFP_H
26913 #  include <ieeefp.h>
26914 #endif
26916 #if HAVE_FP_CLASS_H
26917 #  include <fp_class.h>
26918 #endif
26920 /* Solaris */
26921 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS))
26922 #  define HAVE_ISINF 1
26923 #  define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF)
26924 #endif
26926 /* solaris 10 it defines isnan such that only forte can compile it ... bad bad  */
26927 #if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS))
26928 #  undef isnan
26929 #  define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN)
26930 #endif
26932 /* Digital UNIX */
26933 #if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H))
26934 #  define HAVE_ISINF 1
26935 #  define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
26936 #endif
26938 /* AIX */
26939 #if (! defined(HAVE_ISINF) && defined(HAVE_CLASS))
26940 #  define HAVE_ISINF 1
26941 #  define isinf(a) (class(a) == FP_MINUS_INF || class(a) == FP_PLUS_INF)
26942 #endif
26944 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_PLUS_INF) && defined(FP_MINUS_INF))
26945 #  define HAVE_ISINF 1
26946 #  define isinf(a) (fpclassify(a) == FP_MINUS_INF || fpclassify(a) == FP_PLUS_INF)
26947 #endif
26949 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_INFINITE))
26950 #  define HAVE_ISINF 1
26951 #  define isinf(a) (fpclassify(a) == FP_INFINITE)
26952 #endif
26954 #include <stdio.h>
26955 int main(void){
26956     double rrdnan,rrdinf,rrdc,rrdzero;
26957     ;
26958     /* some math to see if we get a floating point exception */
26959     rrdzero=sin(0.0); /* don't let the compiler optimize us away */
26960     rrdnan=0.0/rrdzero; /* especially here */
26961     rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
26962                   /* at run time without sig fpe */
26963     rrdc = rrdinf + rrdnan;
26964     rrdc = rrdinf / rrdnan;
26965     if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
26966     if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
26967     if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
26968     if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
26969     if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
26970     if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
26971     return 0;
26972  }
26973 _ACEOF
26974 rm -f conftest$ac_exeext
26975 if { (ac_try="$ac_link"
26976 case "(($ac_try" in
26977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26978   *) ac_try_echo=$ac_try;;
26979 esac
26980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26981   (eval "$ac_link") 2>&5
26982   ac_status=$?
26983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26984   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26985   { (case "(($ac_try" in
26986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26987   *) ac_try_echo=$ac_try;;
26988 esac
26989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26990   (eval "$ac_try") 2>&5
26991   ac_status=$?
26992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26993   (exit $ac_status); }; }; then
26994   rd_cv_ieee_qswitch=yes
26995 else
26996   echo "$as_me: program exited with status $ac_status" >&5
26997 echo "$as_me: failed program was:" >&5
26998 sed 's/^/| /' conftest.$ac_ext >&5
27000 ( exit $ac_status )
27001 rd_cv_ieee_qswitch=no
27003 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27009 if test x${rd_cv_ieee_qswitch} = "xyes"; then
27010  { echo "$as_me:$LINENO: result: yes" >&5
27011 echo "${ECHO_T}yes" >&6; }
27013 else
27014  { echo "$as_me:$LINENO: result: no" >&5
27015 echo "${ECHO_T}no" >&6; }
27016  CFLAGS="$_cflags -OPT:IEEE_NaN_inf=ON"
27018 { echo "$as_me:$LINENO: checking if IEEE math works with the -OPT:IEEE_NaN_inf=ON switch" >&5
27019 echo $ECHO_N "checking if IEEE math works with the -OPT:IEEE_NaN_inf=ON switch... $ECHO_C" >&6; }
27020 if test "${rd_cv_ieee_ieeenaninfswitch+set}" = set; then
27021   echo $ECHO_N "(cached) $ECHO_C" >&6
27022 else
27023   if test "$cross_compiling" = yes; then
27024   :
27025 else
27026   cat >conftest.$ac_ext <<_ACEOF
27027 /* confdefs.h.  */
27028 _ACEOF
27029 cat confdefs.h >>conftest.$ac_ext
27030 cat >>conftest.$ac_ext <<_ACEOF
27031 /* end confdefs.h.  */
27034 #if HAVE_MATH_H
27035 #  include <math.h>
27036 #endif
27038 #if HAVE_FLOAT_H
27039 #  include <float.h>
27040 #endif
27042 #if HAVE_IEEEFP_H
27043 #  include <ieeefp.h>
27044 #endif
27046 #if HAVE_FP_CLASS_H
27047 #  include <fp_class.h>
27048 #endif
27050 /* Solaris */
27051 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS))
27052 #  define HAVE_ISINF 1
27053 #  define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF)
27054 #endif
27056 /* solaris 10 it defines isnan such that only forte can compile it ... bad bad  */
27057 #if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS))
27058 #  undef isnan
27059 #  define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN)
27060 #endif
27062 /* Digital UNIX */
27063 #if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H))
27064 #  define HAVE_ISINF 1
27065 #  define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
27066 #endif
27068 /* AIX */
27069 #if (! defined(HAVE_ISINF) && defined(HAVE_CLASS))
27070 #  define HAVE_ISINF 1
27071 #  define isinf(a) (class(a) == FP_MINUS_INF || class(a) == FP_PLUS_INF)
27072 #endif
27074 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_PLUS_INF) && defined(FP_MINUS_INF))
27075 #  define HAVE_ISINF 1
27076 #  define isinf(a) (fpclassify(a) == FP_MINUS_INF || fpclassify(a) == FP_PLUS_INF)
27077 #endif
27079 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_INFINITE))
27080 #  define HAVE_ISINF 1
27081 #  define isinf(a) (fpclassify(a) == FP_INFINITE)
27082 #endif
27084 #include <stdio.h>
27085 int main(void){
27086     double rrdnan,rrdinf,rrdc,rrdzero;
27087     ;
27088     /* some math to see if we get a floating point exception */
27089     rrdzero=sin(0.0); /* don't let the compiler optimize us away */
27090     rrdnan=0.0/rrdzero; /* especially here */
27091     rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
27092                   /* at run time without sig fpe */
27093     rrdc = rrdinf + rrdnan;
27094     rrdc = rrdinf / rrdnan;
27095     if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
27096     if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
27097     if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
27098     if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
27099     if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
27100     if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
27101     return 0;
27102  }
27103 _ACEOF
27104 rm -f conftest$ac_exeext
27105 if { (ac_try="$ac_link"
27106 case "(($ac_try" in
27107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27108   *) ac_try_echo=$ac_try;;
27109 esac
27110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27111   (eval "$ac_link") 2>&5
27112   ac_status=$?
27113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27114   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27115   { (case "(($ac_try" in
27116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27117   *) ac_try_echo=$ac_try;;
27118 esac
27119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27120   (eval "$ac_try") 2>&5
27121   ac_status=$?
27122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27123   (exit $ac_status); }; }; then
27124   rd_cv_ieee_ieeenaninfswitch=yes
27125 else
27126   echo "$as_me: program exited with status $ac_status" >&5
27127 echo "$as_me: failed program was:" >&5
27128 sed 's/^/| /' conftest.$ac_ext >&5
27130 ( exit $ac_status )
27131 rd_cv_ieee_ieeenaninfswitch=no
27133 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27139 if test x${rd_cv_ieee_ieeenaninfswitch} = "xyes"; then
27140  { echo "$as_me:$LINENO: result: yes" >&5
27141 echo "${ECHO_T}yes" >&6; }
27143 else
27144  { echo "$as_me:$LINENO: result: no" >&5
27145 echo "${ECHO_T}no" >&6; }
27146  CFLAGS="$_cflags -OPT:IEEE_comparisons=ON"
27148 { echo "$as_me:$LINENO: checking if IEEE math works with the -OPT:IEEE_comparisons=ON switch" >&5
27149 echo $ECHO_N "checking if IEEE math works with the -OPT:IEEE_comparisons=ON switch... $ECHO_C" >&6; }
27150 if test "${rd_cv_ieee_ieeecmpswitch+set}" = set; then
27151   echo $ECHO_N "(cached) $ECHO_C" >&6
27152 else
27153   if test "$cross_compiling" = yes; then
27154   :
27155 else
27156   cat >conftest.$ac_ext <<_ACEOF
27157 /* confdefs.h.  */
27158 _ACEOF
27159 cat confdefs.h >>conftest.$ac_ext
27160 cat >>conftest.$ac_ext <<_ACEOF
27161 /* end confdefs.h.  */
27164 #if HAVE_MATH_H
27165 #  include <math.h>
27166 #endif
27168 #if HAVE_FLOAT_H
27169 #  include <float.h>
27170 #endif
27172 #if HAVE_IEEEFP_H
27173 #  include <ieeefp.h>
27174 #endif
27176 #if HAVE_FP_CLASS_H
27177 #  include <fp_class.h>
27178 #endif
27180 /* Solaris */
27181 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS))
27182 #  define HAVE_ISINF 1
27183 #  define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF)
27184 #endif
27186 /* solaris 10 it defines isnan such that only forte can compile it ... bad bad  */
27187 #if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS))
27188 #  undef isnan
27189 #  define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN)
27190 #endif
27192 /* Digital UNIX */
27193 #if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H))
27194 #  define HAVE_ISINF 1
27195 #  define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
27196 #endif
27198 /* AIX */
27199 #if (! defined(HAVE_ISINF) && defined(HAVE_CLASS))
27200 #  define HAVE_ISINF 1
27201 #  define isinf(a) (class(a) == FP_MINUS_INF || class(a) == FP_PLUS_INF)
27202 #endif
27204 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_PLUS_INF) && defined(FP_MINUS_INF))
27205 #  define HAVE_ISINF 1
27206 #  define isinf(a) (fpclassify(a) == FP_MINUS_INF || fpclassify(a) == FP_PLUS_INF)
27207 #endif
27209 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_INFINITE))
27210 #  define HAVE_ISINF 1
27211 #  define isinf(a) (fpclassify(a) == FP_INFINITE)
27212 #endif
27214 #include <stdio.h>
27215 int main(void){
27216     double rrdnan,rrdinf,rrdc,rrdzero;
27217     ;
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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27241   (eval "$ac_link") 2>&5
27242   ac_status=$?
27243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27244   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27245   { (case "(($ac_try" in
27246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27247   *) ac_try_echo=$ac_try;;
27248 esac
27249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27250   (eval "$ac_try") 2>&5
27251   ac_status=$?
27252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27253   (exit $ac_status); }; }; then
27254   rd_cv_ieee_ieeecmpswitch=yes
27255 else
27256   echo "$as_me: program exited with status $ac_status" >&5
27257 echo "$as_me: failed program was:" >&5
27258 sed 's/^/| /' conftest.$ac_ext >&5
27260 ( exit $ac_status )
27261 rd_cv_ieee_ieeecmpswitch=no
27263 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27269 if test x${rd_cv_ieee_ieeecmpswitch} = "xyes"; then
27270  { echo "$as_me:$LINENO: result: yes" >&5
27271 echo "${ECHO_T}yes" >&6; }
27273 else
27274  { echo "$as_me:$LINENO: result: no" >&5
27275 echo "${ECHO_T}no" >&6; }
27276  CFLAGS=$_cflags
27278 { echo "$as_me:$LINENO: checking if IEEE math works with fpsetmask(0)" >&5
27279 echo $ECHO_N "checking if IEEE math works with fpsetmask(0)... $ECHO_C" >&6; }
27280 if test "${rd_cv_ieee_mask+set}" = set; then
27281   echo $ECHO_N "(cached) $ECHO_C" >&6
27282 else
27283   if test "$cross_compiling" = yes; then
27284   :
27285 else
27286   cat >conftest.$ac_ext <<_ACEOF
27287 /* confdefs.h.  */
27288 _ACEOF
27289 cat confdefs.h >>conftest.$ac_ext
27290 cat >>conftest.$ac_ext <<_ACEOF
27291 /* end confdefs.h.  */
27292 #include <floatingpoint.h>
27294 #if HAVE_MATH_H
27295 #  include <math.h>
27296 #endif
27298 #if HAVE_FLOAT_H
27299 #  include <float.h>
27300 #endif
27302 #if HAVE_IEEEFP_H
27303 #  include <ieeefp.h>
27304 #endif
27306 #if HAVE_FP_CLASS_H
27307 #  include <fp_class.h>
27308 #endif
27310 /* Solaris */
27311 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS))
27312 #  define HAVE_ISINF 1
27313 #  define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF)
27314 #endif
27316 /* solaris 10 it defines isnan such that only forte can compile it ... bad bad  */
27317 #if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS))
27318 #  undef isnan
27319 #  define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN)
27320 #endif
27322 /* Digital UNIX */
27323 #if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H))
27324 #  define HAVE_ISINF 1
27325 #  define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
27326 #endif
27328 /* AIX */
27329 #if (! defined(HAVE_ISINF) && defined(HAVE_CLASS))
27330 #  define HAVE_ISINF 1
27331 #  define isinf(a) (class(a) == FP_MINUS_INF || class(a) == FP_PLUS_INF)
27332 #endif
27334 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_PLUS_INF) && defined(FP_MINUS_INF))
27335 #  define HAVE_ISINF 1
27336 #  define isinf(a) (fpclassify(a) == FP_MINUS_INF || fpclassify(a) == FP_PLUS_INF)
27337 #endif
27339 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_INFINITE))
27340 #  define HAVE_ISINF 1
27341 #  define isinf(a) (fpclassify(a) == FP_INFINITE)
27342 #endif
27344 #include <stdio.h>
27345 int main(void){
27346     double rrdnan,rrdinf,rrdc,rrdzero;
27347     fpsetmask(0);
27348     /* some math to see if we get a floating point exception */
27349     rrdzero=sin(0.0); /* don't let the compiler optimize us away */
27350     rrdnan=0.0/rrdzero; /* especially here */
27351     rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
27352                   /* at run time without sig fpe */
27353     rrdc = rrdinf + rrdnan;
27354     rrdc = rrdinf / rrdnan;
27355     if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
27356     if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
27357     if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
27358     if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
27359     if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
27360     if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
27361     return 0;
27362  }
27363 _ACEOF
27364 rm -f conftest$ac_exeext
27365 if { (ac_try="$ac_link"
27366 case "(($ac_try" in
27367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27368   *) ac_try_echo=$ac_try;;
27369 esac
27370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27371   (eval "$ac_link") 2>&5
27372   ac_status=$?
27373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27374   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27375   { (case "(($ac_try" in
27376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27377   *) ac_try_echo=$ac_try;;
27378 esac
27379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27380   (eval "$ac_try") 2>&5
27381   ac_status=$?
27382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27383   (exit $ac_status); }; }; then
27384   rd_cv_ieee_mask=yes
27385 else
27386   echo "$as_me: program exited with status $ac_status" >&5
27387 echo "$as_me: failed program was:" >&5
27388 sed 's/^/| /' conftest.$ac_ext >&5
27390 ( exit $ac_status )
27391 rd_cv_ieee_mask=no
27393 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27399 if test x${rd_cv_ieee_mask} = "xyes"; then
27400  { echo "$as_me:$LINENO: result: yes" >&5
27401 echo "${ECHO_T}yes" >&6; }
27402  cat >>confdefs.h <<\_ACEOF
27403 #define MUST_DISABLE_FPMASK 1
27404 _ACEOF
27406                  PERLFLAGS="CCFLAGS=-DMUST_DISABLE_FPMASK"
27407 else
27408  { echo "$as_me:$LINENO: result: no" >&5
27409 echo "${ECHO_T}no" >&6; }
27411 { echo "$as_me:$LINENO: checking if IEEE math works with signal(SIGFPE,SIG_IGN)" >&5
27412 echo $ECHO_N "checking if IEEE math works with signal(SIGFPE,SIG_IGN)... $ECHO_C" >&6; }
27413 if test "${rd_cv_ieee_sigfpe+set}" = set; then
27414   echo $ECHO_N "(cached) $ECHO_C" >&6
27415 else
27416   if test "$cross_compiling" = yes; then
27417   :
27418 else
27419   cat >conftest.$ac_ext <<_ACEOF
27420 /* confdefs.h.  */
27421 _ACEOF
27422 cat confdefs.h >>conftest.$ac_ext
27423 cat >>conftest.$ac_ext <<_ACEOF
27424 /* end confdefs.h.  */
27425 #include <signal.h>
27427 #if HAVE_MATH_H
27428 #  include <math.h>
27429 #endif
27431 #if HAVE_FLOAT_H
27432 #  include <float.h>
27433 #endif
27435 #if HAVE_IEEEFP_H
27436 #  include <ieeefp.h>
27437 #endif
27439 #if HAVE_FP_CLASS_H
27440 #  include <fp_class.h>
27441 #endif
27443 /* Solaris */
27444 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS))
27445 #  define HAVE_ISINF 1
27446 #  define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF)
27447 #endif
27449 /* solaris 10 it defines isnan such that only forte can compile it ... bad bad  */
27450 #if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS))
27451 #  undef isnan
27452 #  define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN)
27453 #endif
27455 /* Digital UNIX */
27456 #if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H))
27457 #  define HAVE_ISINF 1
27458 #  define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
27459 #endif
27461 /* AIX */
27462 #if (! defined(HAVE_ISINF) && defined(HAVE_CLASS))
27463 #  define HAVE_ISINF 1
27464 #  define isinf(a) (class(a) == FP_MINUS_INF || class(a) == FP_PLUS_INF)
27465 #endif
27467 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_PLUS_INF) && defined(FP_MINUS_INF))
27468 #  define HAVE_ISINF 1
27469 #  define isinf(a) (fpclassify(a) == FP_MINUS_INF || fpclassify(a) == FP_PLUS_INF)
27470 #endif
27472 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_INFINITE))
27473 #  define HAVE_ISINF 1
27474 #  define isinf(a) (fpclassify(a) == FP_INFINITE)
27475 #endif
27477 #include <stdio.h>
27478 int main(void){
27479     double rrdnan,rrdinf,rrdc,rrdzero;
27480     signal(SIGFPE,SIG_IGN);
27481     /* some math to see if we get a floating point exception */
27482     rrdzero=sin(0.0); /* don't let the compiler optimize us away */
27483     rrdnan=0.0/rrdzero; /* especially here */
27484     rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
27485                   /* at run time without sig fpe */
27486     rrdc = rrdinf + rrdnan;
27487     rrdc = rrdinf / rrdnan;
27488     if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
27489     if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
27490     if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
27491     if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
27492     if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
27493     if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
27494     return 0;
27495  }
27496 _ACEOF
27497 rm -f conftest$ac_exeext
27498 if { (ac_try="$ac_link"
27499 case "(($ac_try" in
27500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27501   *) ac_try_echo=$ac_try;;
27502 esac
27503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27504   (eval "$ac_link") 2>&5
27505   ac_status=$?
27506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27507   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27508   { (case "(($ac_try" in
27509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27510   *) ac_try_echo=$ac_try;;
27511 esac
27512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27513   (eval "$ac_try") 2>&5
27514   ac_status=$?
27515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27516   (exit $ac_status); }; }; then
27517   rd_cv_ieee_sigfpe=yes
27518 else
27519   echo "$as_me: program exited with status $ac_status" >&5
27520 echo "$as_me: failed program was:" >&5
27521 sed 's/^/| /' conftest.$ac_ext >&5
27523 ( exit $ac_status )
27524 rd_cv_ieee_sigfpe=no
27526 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27532 if test x${rd_cv_ieee_sigfpe} = "xyes"; then
27533  { echo "$as_me:$LINENO: result: yes" >&5
27534 echo "${ECHO_T}yes" >&6; }
27535  cat >>confdefs.h <<\_ACEOF
27536 #define MUST_DISABLE_SIGFPE 1
27537 _ACEOF
27539                    PERLFLAGS="CCFLAGS=-DMUST_DISABLE_SIGFPE"
27540 else
27541  { echo "$as_me:$LINENO: result: no" >&5
27542 echo "${ECHO_T}no" >&6; }
27543  { { echo "$as_me:$LINENO: error:
27544 Your Compiler does not do propper IEEE math ... Please find out how to
27545 make IEEE math work with your compiler and let me know (tobi@oetiker.ch).
27546 Check config.log to see what went wrong ...
27547 " >&5
27548 echo "$as_me: error:
27549 Your Compiler does not do propper IEEE math ... Please find out how to
27550 make IEEE math work with your compiler and let me know (tobi@oetiker.ch).
27551 Check config.log to see what went wrong ...
27552 " >&2;}
27553    { (exit 1); exit 1; }; }
27585 ac_ext=c
27586 ac_cpp='$CPP $CPPFLAGS'
27587 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27588 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27589 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27595 case $TERM in
27596        #   for the most important terminal types we directly know the sequences
27597        xterm|xterm*|vt220|vt220*)
27598                T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
27599                T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
27600        ;;
27601        vt100|vt100*|cygwin)
27602                T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
27603                T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
27604        ;;
27605        *)
27606                T_MD=''
27607                T_ME=''
27608        ;;
27609 esac
27610   { echo "$as_me:$LINENO: result: " >&5
27611 echo "${ECHO_T}" >&6; }
27612   { echo "$as_me:$LINENO: result: ${T_MD}Resolve Portability Issues${T_ME}" >&5
27613 echo "${ECHO_T}${T_MD}Resolve Portability Issues${T_ME}" >&6; }
27617 { echo "$as_me:$LINENO: checking if msync with MS_ASYNC updates the files mtime" >&5
27618 echo $ECHO_N "checking if msync with MS_ASYNC updates the files mtime... $ECHO_C" >&6; }
27619 if test "${rd_cv_ms_async+set}" = set; then
27620   echo $ECHO_N "(cached) $ECHO_C" >&6
27621 else
27622   if test "$cross_compiling" = yes; then
27623   :
27624 else
27625   cat >conftest.$ac_ext <<_ACEOF
27626 /* confdefs.h.  */
27627 _ACEOF
27628 cat confdefs.h >>conftest.$ac_ext
27629 cat >>conftest.$ac_ext <<_ACEOF
27630 /* end confdefs.h.  */
27632 #include <fcntl.h>
27633 #include <sys/types.h>
27634 #include <sys/stat.h>
27635 #include <unistd.h>
27636 #include <stdio.h>
27637 #include <sys/mman.h>
27638 #include <stdlib.h>
27639 #include <utime.h>
27640 int main(void){
27641         int fd;
27642         struct stat stbuf;
27643         char *addr;
27644         int res;
27645         char temp[] = "mmaptestXXXXXX";
27646         struct utimbuf newtime;
27648         time_t create_ts;
27649         fd = mkstemp(temp);
27650         if (fd == -1){
27651             perror(temp);
27652             return 1;
27653         }
27654         write(fd,"12345\n", 6);
27655         stat(temp, &stbuf);
27656         create_ts = stbuf.st_mtime;
27657         newtime.actime = 0;
27658         newtime.modtime = 0;
27659         utime(temp,&newtime);
27660         addr = mmap(NULL, 4096, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0);
27661         if (addr == MAP_FAILED) {
27662             perror("mmap");
27663             goto bad_exit;
27664         }
27665         addr[0]='x';
27666         res = msync(addr, 4, MS_ASYNC);
27667         if (res == -1) {
27668            perror("msync");
27669            goto bad_exit;
27670         }
27671         res = close(fd);
27672         if (res == -1) {
27673            perror("close");
27674            goto bad_exit;
27675         }
27676         /* The ASYNC means that we schedule the msync and return immediately.
27677            Since we want to see if the modification time is updated upon
27678            msync(), we have to make sure that our asynchronous request
27679            completes before we stat below. In a real application, the
27680            request would be completed at a random time in the future
27681            but for this test we do not want to wait an arbitrary amount of
27682            time, so force a commit now.  */
27683         sync();
27684         stat(temp, &stbuf);
27685         if (create_ts > stbuf.st_mtime){
27686            goto bad_exit;
27687         }
27688         unlink(temp);
27689         return 0;
27690      bad_exit:
27691         unlink(temp);
27692         return 1;
27695 _ACEOF
27696 rm -f conftest$ac_exeext
27697 if { (ac_try="$ac_link"
27698 case "(($ac_try" in
27699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27700   *) ac_try_echo=$ac_try;;
27701 esac
27702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27703   (eval "$ac_link") 2>&5
27704   ac_status=$?
27705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27706   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27707   { (case "(($ac_try" in
27708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27709   *) ac_try_echo=$ac_try;;
27710 esac
27711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27712   (eval "$ac_try") 2>&5
27713   ac_status=$?
27714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27715   (exit $ac_status); }; }; then
27716   rd_cv_ms_async=ok
27717 else
27718   echo "$as_me: program exited with status $ac_status" >&5
27719 echo "$as_me: failed program was:" >&5
27720 sed 's/^/| /' conftest.$ac_ext >&5
27722 ( exit $ac_status )
27723 rd_cv_ms_async=broken
27725 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27733 if test "${rd_cv_ms_async}" = "ok"; then
27734  { echo "$as_me:$LINENO: result: yes" >&5
27735 echo "${ECHO_T}yes" >&6; }
27736 else
27738 cat >>confdefs.h <<_ACEOF
27739 #define HAVE_BROKEN_MS_ASYNC 1
27740 _ACEOF
27742  { echo "$as_me:$LINENO: result: no" >&5
27743 echo "${ECHO_T}no" >&6; }
27744  { echo "$as_me:$LINENO: WARNING: With mmap access, your platform fails to update the files" >&5
27745 echo "$as_me: WARNING: With mmap access, your platform fails to update the files" >&2;}
27746  { echo "$as_me:$LINENO: WARNING: mtime. RRDtool will work around this problem by calling utime on each" >&5
27747 echo "$as_me: WARNING: mtime. RRDtool will work around this problem by calling utime on each" >&2;}
27748  { echo "$as_me:$LINENO: WARNING: file it opens for rw access." >&5
27749 echo "$as_me: WARNING: file it opens for rw access." >&2;}
27750  sleep 2
27756 build_getopt=no
27757 RRD_GETOPT_LONG="LIBC_HAS_GETOPT_LONG"
27758 { echo "$as_me:$LINENO: checking for getopt_long" >&5
27759 echo $ECHO_N "checking for getopt_long... $ECHO_C" >&6; }
27760 if test "${ac_cv_func_getopt_long+set}" = set; then
27761   echo $ECHO_N "(cached) $ECHO_C" >&6
27762 else
27763   cat >conftest.$ac_ext <<_ACEOF
27764 /* confdefs.h.  */
27765 _ACEOF
27766 cat confdefs.h >>conftest.$ac_ext
27767 cat >>conftest.$ac_ext <<_ACEOF
27768 /* end confdefs.h.  */
27769 /* Define getopt_long to an innocuous variant, in case <limits.h> declares getopt_long.
27770    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27771 #define getopt_long innocuous_getopt_long
27773 /* System header to define __stub macros and hopefully few prototypes,
27774     which can conflict with char getopt_long (); below.
27775     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27776     <limits.h> exists even on freestanding compilers.  */
27778 #ifdef __STDC__
27779 # include <limits.h>
27780 #else
27781 # include <assert.h>
27782 #endif
27784 #undef getopt_long
27786 /* Override any GCC internal prototype to avoid an error.
27787    Use char because int might match the return type of a GCC
27788    builtin and then its argument prototype would still apply.  */
27789 #ifdef __cplusplus
27790 extern "C"
27791 #endif
27792 char getopt_long ();
27793 /* The GNU C library defines this for functions which it implements
27794     to always fail with ENOSYS.  Some functions are actually named
27795     something starting with __ and the normal name is an alias.  */
27796 #if defined __stub_getopt_long || defined __stub___getopt_long
27797 choke me
27798 #endif
27800 int
27801 main ()
27803 return getopt_long ();
27804   ;
27805   return 0;
27807 _ACEOF
27808 rm -f conftest.$ac_objext conftest$ac_exeext
27809 if { (ac_try="$ac_link"
27810 case "(($ac_try" in
27811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27812   *) ac_try_echo=$ac_try;;
27813 esac
27814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27815   (eval "$ac_link") 2>conftest.er1
27816   ac_status=$?
27817   grep -v '^ *+' conftest.er1 >conftest.err
27818   rm -f conftest.er1
27819   cat conftest.err >&5
27820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27821   (exit $ac_status); } && {
27822          test -z "$ac_c_werror_flag" ||
27823          test ! -s conftest.err
27824        } && test -s conftest$ac_exeext &&
27825        $as_test_x conftest$ac_exeext; then
27826   ac_cv_func_getopt_long=yes
27827 else
27828   echo "$as_me: failed program was:" >&5
27829 sed 's/^/| /' conftest.$ac_ext >&5
27831         ac_cv_func_getopt_long=no
27834 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27835       conftest$ac_exeext conftest.$ac_ext
27837 { echo "$as_me:$LINENO: result: $ac_cv_func_getopt_long" >&5
27838 echo "${ECHO_T}$ac_cv_func_getopt_long" >&6; }
27839 if test $ac_cv_func_getopt_long = yes; then
27840   :
27841 else
27843 RRD_GETOPT_LONG="getopt_long"
27844 build_getopt=yes
27851 if test $build_getopt = yes; then
27852   BUILD_GETOPT_TRUE=
27853   BUILD_GETOPT_FALSE='#'
27854 else
27855   BUILD_GETOPT_TRUE='#'
27856   BUILD_GETOPT_FALSE=
27861 { echo "$as_me:$LINENO: checking if realloc can deal with NULL" >&5
27862 echo $ECHO_N "checking if realloc can deal with NULL... $ECHO_C" >&6; }
27863 if test "${rd_cv_null_realloc+set}" = set; then
27864   echo $ECHO_N "(cached) $ECHO_C" >&6
27865 else
27866   if test "$cross_compiling" = yes; then
27867   :
27868 else
27869   cat >conftest.$ac_ext <<_ACEOF
27870 /* confdefs.h.  */
27871 _ACEOF
27872 cat confdefs.h >>conftest.$ac_ext
27873 cat >>conftest.$ac_ext <<_ACEOF
27874 /* end confdefs.h.  */
27875 #include <stdlib.h>
27876               int main(void){
27877               char *x = NULL;
27878               x = realloc (x,10);
27879               if (x==NULL) return 1;
27880               return 0;
27881              }
27882 _ACEOF
27883 rm -f conftest$ac_exeext
27884 if { (ac_try="$ac_link"
27885 case "(($ac_try" in
27886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27887   *) ac_try_echo=$ac_try;;
27888 esac
27889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27890   (eval "$ac_link") 2>&5
27891   ac_status=$?
27892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27893   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27894   { (case "(($ac_try" in
27895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27896   *) ac_try_echo=$ac_try;;
27897 esac
27898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27899   (eval "$ac_try") 2>&5
27900   ac_status=$?
27901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27902   (exit $ac_status); }; }; then
27903   rd_cv_null_realloc=yes
27904 else
27905   echo "$as_me: program exited with status $ac_status" >&5
27906 echo "$as_me: failed program was:" >&5
27907 sed 's/^/| /' conftest.$ac_ext >&5
27909 ( exit $ac_status )
27910 rd_cv_null_realloc=nope
27912 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27917 { echo "$as_me:$LINENO: result: $rd_cv_null_realloc" >&5
27918 echo "${ECHO_T}$rd_cv_null_realloc" >&6; }
27920 if test x"$rd_cv_null_realloc" = xnope; then
27921 cat >>confdefs.h <<\_ACEOF
27922 #define NO_NULL_REALLOC 1
27923 _ACEOF
27927 ac_ext=c
27928 ac_cpp='$CPP $CPPFLAGS'
27929 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27930 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27931 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27933 { echo "$as_me:$LINENO: checking if ctime_r need special care to act posixly correct" >&5
27934 echo $ECHO_N "checking if ctime_r need special care to act posixly correct... $ECHO_C" >&6; }
27935 cat >conftest.$ac_ext <<_ACEOF
27936 /* confdefs.h.  */
27937 _ACEOF
27938 cat confdefs.h >>conftest.$ac_ext
27939 cat >>conftest.$ac_ext <<_ACEOF
27940 /* end confdefs.h.  */
27941 #include <time.h>
27942 int
27943 main ()
27945 ctime_r(NULL,NULL,0)
27947   ;
27948   return 0;
27950 _ACEOF
27951 rm -f conftest.$ac_objext conftest$ac_exeext
27952 if { (ac_try="$ac_link"
27953 case "(($ac_try" in
27954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27955   *) ac_try_echo=$ac_try;;
27956 esac
27957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27958   (eval "$ac_link") 2>conftest.er1
27959   ac_status=$?
27960   grep -v '^ *+' conftest.er1 >conftest.err
27961   rm -f conftest.er1
27962   cat conftest.err >&5
27963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27964   (exit $ac_status); } && {
27965          test -z "$ac_c_werror_flag" ||
27966          test ! -s conftest.err
27967        } && test -s conftest$ac_exeext &&
27968        $as_test_x conftest$ac_exeext; then
27969    CPPFLAGS="$CPPFLAGS -D_POSIX_PTHREAD_SEMANTICS"
27970       cat >conftest.$ac_ext <<_ACEOF
27971 /* confdefs.h.  */
27972 _ACEOF
27973 cat confdefs.h >>conftest.$ac_ext
27974 cat >>conftest.$ac_ext <<_ACEOF
27975 /* end confdefs.h.  */
27976 #include <time.h>
27977 int
27978 main ()
27980 ctime_r(NULL,NULL)
27982   ;
27983   return 0;
27985 _ACEOF
27986 rm -f conftest.$ac_objext conftest$ac_exeext
27987 if { (ac_try="$ac_link"
27988 case "(($ac_try" in
27989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27990   *) ac_try_echo=$ac_try;;
27991 esac
27992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27993   (eval "$ac_link") 2>conftest.er1
27994   ac_status=$?
27995   grep -v '^ *+' conftest.er1 >conftest.err
27996   rm -f conftest.er1
27997   cat conftest.err >&5
27998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27999   (exit $ac_status); } && {
28000          test -z "$ac_c_werror_flag" ||
28001          test ! -s conftest.err
28002        } && test -s conftest$ac_exeext &&
28003        $as_test_x conftest$ac_exeext; then
28004   { echo "$as_me:$LINENO: result: yes, this seems to be solaris style" >&5
28005 echo "${ECHO_T}yes, this seems to be solaris style" >&6; }
28006 else
28007   echo "$as_me: failed program was:" >&5
28008 sed 's/^/| /' conftest.$ac_ext >&5
28010         { { echo "$as_me:$LINENO: error: Can't figure how to compile ctime_r" >&5
28011 echo "$as_me: error: Can't figure how to compile ctime_r" >&2;}
28012    { (exit 1); exit 1; }; }
28016 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28017       conftest$ac_exeext conftest.$ac_ext
28019 else
28020   echo "$as_me: failed program was:" >&5
28021 sed 's/^/| /' conftest.$ac_ext >&5
28023          cat >conftest.$ac_ext <<_ACEOF
28024 /* confdefs.h.  */
28025 _ACEOF
28026 cat confdefs.h >>conftest.$ac_ext
28027 cat >>conftest.$ac_ext <<_ACEOF
28028 /* end confdefs.h.  */
28029 #include <time.h>
28030 int
28031 main ()
28033 ctime_r(NULL,NULL)
28035   ;
28036   return 0;
28038 _ACEOF
28039 rm -f conftest.$ac_objext conftest$ac_exeext
28040 if { (ac_try="$ac_link"
28041 case "(($ac_try" in
28042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28043   *) ac_try_echo=$ac_try;;
28044 esac
28045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28046   (eval "$ac_link") 2>conftest.er1
28047   ac_status=$?
28048   grep -v '^ *+' conftest.er1 >conftest.err
28049   rm -f conftest.er1
28050   cat conftest.err >&5
28051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28052   (exit $ac_status); } && {
28053          test -z "$ac_c_werror_flag" ||
28054          test ! -s conftest.err
28055        } && test -s conftest$ac_exeext &&
28056        $as_test_x conftest$ac_exeext; then
28057   { echo "$as_me:$LINENO: result: no" >&5
28058 echo "${ECHO_T}no" >&6; }
28059 else
28060   echo "$as_me: failed program was:" >&5
28061 sed 's/^/| /' conftest.$ac_ext >&5
28063         { { echo "$as_me:$LINENO: error: Can't figure how to compile ctime_r" >&5
28064 echo "$as_me: error: Can't figure how to compile ctime_r" >&2;}
28065    { (exit 1); exit 1; }; }
28069 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28070       conftest$ac_exeext conftest.$ac_ext
28075 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28076       conftest$ac_exeext conftest.$ac_ext
28077 ac_ext=c
28078 ac_cpp='$CPP $CPPFLAGS'
28079 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28080 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28081 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28088 if test $enable_pthread != no; then
28091 ac_ext=c
28092 ac_cpp='$CPP $CPPFLAGS'
28093 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28094 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28095 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28097 acx_pthread_ok=no
28099 # We used to check for pthread.h first, but this fails if pthread.h
28100 # requires special compiler flags (e.g. on True64 or Sequent).
28101 # It gets checked for in the link test anyway.
28103 # First of all, check if the user has set any of the PTHREAD_LIBS,
28104 # etcetera environment variables, and if threads linking works using
28105 # them:
28106 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
28107         save_CFLAGS="$CFLAGS"
28108         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
28109         save_LIBS="$LIBS"
28110         LIBS="$PTHREAD_LIBS $LIBS"
28111         { echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
28112 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; }
28113         cat >conftest.$ac_ext <<_ACEOF
28114 /* confdefs.h.  */
28115 _ACEOF
28116 cat confdefs.h >>conftest.$ac_ext
28117 cat >>conftest.$ac_ext <<_ACEOF
28118 /* end confdefs.h.  */
28120 /* Override any GCC internal prototype to avoid an error.
28121    Use char because int might match the return type of a GCC
28122    builtin and then its argument prototype would still apply.  */
28123 #ifdef __cplusplus
28124 extern "C"
28125 #endif
28126 char pthread_join ();
28127 int
28128 main ()
28130 return pthread_join ();
28131   ;
28132   return 0;
28134 _ACEOF
28135 rm -f conftest.$ac_objext conftest$ac_exeext
28136 if { (ac_try="$ac_link"
28137 case "(($ac_try" in
28138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28139   *) ac_try_echo=$ac_try;;
28140 esac
28141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28142   (eval "$ac_link") 2>conftest.er1
28143   ac_status=$?
28144   grep -v '^ *+' conftest.er1 >conftest.err
28145   rm -f conftest.er1
28146   cat conftest.err >&5
28147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28148   (exit $ac_status); } && {
28149          test -z "$ac_c_werror_flag" ||
28150          test ! -s conftest.err
28151        } && test -s conftest$ac_exeext &&
28152        $as_test_x conftest$ac_exeext; then
28153   acx_pthread_ok=yes
28154 else
28155   echo "$as_me: failed program was:" >&5
28156 sed 's/^/| /' conftest.$ac_ext >&5
28161 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28162       conftest$ac_exeext conftest.$ac_ext
28163         { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
28164 echo "${ECHO_T}$acx_pthread_ok" >&6; }
28165         if test x"$acx_pthread_ok" = xno; then
28166                 PTHREAD_LIBS=""
28167                 PTHREAD_CFLAGS=""
28168         fi
28169         LIBS="$save_LIBS"
28170         CFLAGS="$save_CFLAGS"
28173 # We must check for the threads library under a number of different
28174 # names; the ordering is very important because some systems
28175 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
28176 # libraries is broken (non-POSIX).
28178 # Create a list of thread flags to try.  Items starting with a "-" are
28179 # C compiler flags, and other items are library names, except for "none"
28180 # which indicates that we try without any flags at all, and "pthread-config"
28181 # which is a program returning the flags for the Pth emulation library.
28183 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
28185 # The ordering *is* (sometimes) important.  Some notes on the
28186 # individual items follow:
28188 # pthreads: AIX (must check this before -lpthread)
28189 # none: in case threads are in libc; should be tried before -Kthread and
28190 #       other compiler flags to prevent continual compiler warnings
28191 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
28192 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
28193 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
28194 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
28195 # -pthreads: Solaris/gcc
28196 # -mthreads: Mingw32/gcc, Lynx/gcc
28197 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
28198 #      doesn't hurt to check since this sometimes defines pthreads too;
28199 #      also defines -D_REENTRANT)
28200 # pthread: Linux, etcetera
28201 # --thread-safe: KAI C++
28202 # pthread-config: use pthread-config program (for GNU Pth library)
28204 case "${host_cpu}-${host_os}" in
28205         *solaris*)
28207         # On Solaris (at least, for some versions), libc contains stubbed
28208         # (non-functional) versions of the pthreads routines, so link-based
28209         # tests will erroneously succeed.  (We need to link with -pthread or
28210         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
28211         # a function called by this macro, so we could check for that, but
28212         # who knows whether they'll stub that too in a future libc.)  So,
28213         # we'll just look for -pthreads and -lpthread first:
28215         acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
28216         ;;
28217 esac
28219 if test x"$acx_pthread_ok" = xno; then
28220 for flag in $acx_pthread_flags; do
28222         case $flag in
28223                 none)
28224                 { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
28225 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
28226                 ;;
28228                 -*)
28229                 { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
28230 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
28231                 PTHREAD_CFLAGS="$flag"
28232                 ;;
28234                 pthread-config)
28235                 # Extract the first word of "pthread-config", so it can be a program name with args.
28236 set dummy pthread-config; ac_word=$2
28237 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28238 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28239 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
28240   echo $ECHO_N "(cached) $ECHO_C" >&6
28241 else
28242   if test -n "$acx_pthread_config"; then
28243   ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
28244 else
28245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28246 for as_dir in $PATH
28248   IFS=$as_save_IFS
28249   test -z "$as_dir" && as_dir=.
28250   for ac_exec_ext in '' $ac_executable_extensions; do
28251   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28252     ac_cv_prog_acx_pthread_config="yes"
28253     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28254     break 2
28255   fi
28256 done
28257 done
28258 IFS=$as_save_IFS
28260   test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
28263 acx_pthread_config=$ac_cv_prog_acx_pthread_config
28264 if test -n "$acx_pthread_config"; then
28265   { echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
28266 echo "${ECHO_T}$acx_pthread_config" >&6; }
28267 else
28268   { echo "$as_me:$LINENO: result: no" >&5
28269 echo "${ECHO_T}no" >&6; }
28273                 if test x"$acx_pthread_config" = xno; then continue; fi
28274                 PTHREAD_CFLAGS="`pthread-config --cflags`"
28275                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
28276                 ;;
28278                 *)
28279                 { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
28280 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
28281                 PTHREAD_LIBS="-l$flag"
28282                 ;;
28283         esac
28285         save_LIBS="$LIBS"
28286         save_CFLAGS="$CFLAGS"
28287         LIBS="$PTHREAD_LIBS $LIBS"
28288         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
28290         # Check for various functions.  We must include pthread.h,
28291         # since some functions may be macros.  (On the Sequent, we
28292         # need a special flag -Kthread to make this header compile.)
28293         # We check for pthread_join because it is in -lpthread on IRIX
28294         # while pthread_create is in libc.  We check for pthread_attr_init
28295         # due to DEC craziness with -lpthreads.  We check for
28296         # pthread_cleanup_push because it is one of the few pthread
28297         # functions on Solaris that doesn't have a non-functional libc stub.
28298         # We try pthread_create on general principles.
28299         cat >conftest.$ac_ext <<_ACEOF
28300 /* confdefs.h.  */
28301 _ACEOF
28302 cat confdefs.h >>conftest.$ac_ext
28303 cat >>conftest.$ac_ext <<_ACEOF
28304 /* end confdefs.h.  */
28305 #include <pthread.h>
28306 int
28307 main ()
28309 pthread_t th; pthread_join(th, 0);
28310                      pthread_attr_init(0); pthread_cleanup_push(0, 0);
28311                      pthread_create(0,0,0,0); pthread_cleanup_pop(0);
28312   ;
28313   return 0;
28315 _ACEOF
28316 rm -f conftest.$ac_objext conftest$ac_exeext
28317 if { (ac_try="$ac_link"
28318 case "(($ac_try" in
28319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28320   *) ac_try_echo=$ac_try;;
28321 esac
28322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28323   (eval "$ac_link") 2>conftest.er1
28324   ac_status=$?
28325   grep -v '^ *+' conftest.er1 >conftest.err
28326   rm -f conftest.er1
28327   cat conftest.err >&5
28328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28329   (exit $ac_status); } && {
28330          test -z "$ac_c_werror_flag" ||
28331          test ! -s conftest.err
28332        } && test -s conftest$ac_exeext &&
28333        $as_test_x conftest$ac_exeext; then
28334   acx_pthread_ok=yes
28335 else
28336   echo "$as_me: failed program was:" >&5
28337 sed 's/^/| /' conftest.$ac_ext >&5
28342 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28343       conftest$ac_exeext conftest.$ac_ext
28345         LIBS="$save_LIBS"
28346         CFLAGS="$save_CFLAGS"
28348         { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
28349 echo "${ECHO_T}$acx_pthread_ok" >&6; }
28350         if test "x$acx_pthread_ok" = xyes; then
28351                 break;
28352         fi
28354         PTHREAD_LIBS=""
28355         PTHREAD_CFLAGS=""
28356 done
28359 # Various other checks:
28360 if test "x$acx_pthread_ok" = xyes; then
28361         save_LIBS="$LIBS"
28362         LIBS="$PTHREAD_LIBS $LIBS"
28363         save_CFLAGS="$CFLAGS"
28364         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
28366         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
28367         { echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
28368 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; }
28369         attr_name=unknown
28370         for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
28371             cat >conftest.$ac_ext <<_ACEOF
28372 /* confdefs.h.  */
28373 _ACEOF
28374 cat confdefs.h >>conftest.$ac_ext
28375 cat >>conftest.$ac_ext <<_ACEOF
28376 /* end confdefs.h.  */
28377 #include <pthread.h>
28378 int
28379 main ()
28381 int attr=$attr;
28382   ;
28383   return 0;
28385 _ACEOF
28386 rm -f conftest.$ac_objext conftest$ac_exeext
28387 if { (ac_try="$ac_link"
28388 case "(($ac_try" in
28389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28390   *) ac_try_echo=$ac_try;;
28391 esac
28392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28393   (eval "$ac_link") 2>conftest.er1
28394   ac_status=$?
28395   grep -v '^ *+' conftest.er1 >conftest.err
28396   rm -f conftest.er1
28397   cat conftest.err >&5
28398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28399   (exit $ac_status); } && {
28400          test -z "$ac_c_werror_flag" ||
28401          test ! -s conftest.err
28402        } && test -s conftest$ac_exeext &&
28403        $as_test_x conftest$ac_exeext; then
28404   attr_name=$attr; break
28405 else
28406   echo "$as_me: failed program was:" >&5
28407 sed 's/^/| /' conftest.$ac_ext >&5
28412 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28413       conftest$ac_exeext conftest.$ac_ext
28414         done
28415         { echo "$as_me:$LINENO: result: $attr_name" >&5
28416 echo "${ECHO_T}$attr_name" >&6; }
28417         if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
28419 cat >>confdefs.h <<_ACEOF
28420 #define PTHREAD_CREATE_JOINABLE $attr_name
28421 _ACEOF
28423         fi
28425         { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
28426 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
28427         x_rflag=no
28428         case "${host_cpu}-${host_os}" in
28429             *-aix* | *-freebsd* | *-darwin*) x_rflag="-D_THREAD_SAFE";;
28430             *solaris* | *-osf* | *-hpux*) x_rflag="-D_REENTRANT";;
28431             *-linux*)
28432             if test x"$PTHREAD_CFLAGS" = "x-pthread"; then
28433                 # For Linux/gcc "-pthread" implies "-lpthread". We need, however, to make this explicit
28434                 # in PTHREAD_LIBS such that a shared library to be built properly depends on libpthread.
28435                 PTHREAD_LIBS="-lpthread $PTHREAD_LIBS"
28436             fi;;
28437         esac
28438         { echo "$as_me:$LINENO: result: ${x_rflag}" >&5
28439 echo "${ECHO_T}${x_rflag}" >&6; }
28440         if test "x$x_rflag" != xno; then
28441             PTHREAD_CFLAGS="$x_rflag $PTHREAD_CFLAGS"
28442         fi
28444         LIBS="$save_LIBS"
28445         CFLAGS="$save_CFLAGS"
28447         # More AIX lossage: must compile with cc_r
28448         # Extract the first word of "cc_r", so it can be a program name with args.
28449 set dummy cc_r; ac_word=$2
28450 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28451 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28452 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
28453   echo $ECHO_N "(cached) $ECHO_C" >&6
28454 else
28455   if test -n "$PTHREAD_CC"; then
28456   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
28457 else
28458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28459 for as_dir in $PATH
28461   IFS=$as_save_IFS
28462   test -z "$as_dir" && as_dir=.
28463   for ac_exec_ext in '' $ac_executable_extensions; do
28464   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28465     ac_cv_prog_PTHREAD_CC="cc_r"
28466     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28467     break 2
28468   fi
28469 done
28470 done
28471 IFS=$as_save_IFS
28473   test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
28476 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
28477 if test -n "$PTHREAD_CC"; then
28478   { echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
28479 echo "${ECHO_T}$PTHREAD_CC" >&6; }
28480 else
28481   { echo "$as_me:$LINENO: result: no" >&5
28482 echo "${ECHO_T}no" >&6; }
28486 else
28487         PTHREAD_CC="$CC"
28494 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
28495 if test x"$acx_pthread_ok" = xyes; then
28497     MULTITHREAD_CFLAGS=$PTHREAD_CFLAGS
28498     MULTITHREAD_LDFLAGS=$PTHREAD_LIBS
28500         :
28501 else
28502         acx_pthread_ok=no
28505 ac_ext=c
28506 ac_cpp='$CPP $CPPFLAGS'
28507 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28508 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28509 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28515 if test  "x$x_rflag" != "xno"; then
28516    CPPFLAGS="$CPPFLAGS $x_rflag"
28521 if test $enable_pthread != no; then
28522   BUILD_MULTITHREAD_TRUE=
28523   BUILD_MULTITHREAD_FALSE='#'
28524 else
28525   BUILD_MULTITHREAD_TRUE='#'
28526   BUILD_MULTITHREAD_FALSE=
28530 ac_ext=c
28531 ac_cpp='$CPP $CPPFLAGS'
28532 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28533 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28534 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28536 { echo "$as_me:$LINENO: checking do we need malloc/malloc.h" >&5
28537 echo $ECHO_N "checking do we need malloc/malloc.h... $ECHO_C" >&6; }
28538 cat >conftest.$ac_ext <<_ACEOF
28539 /* confdefs.h.  */
28540 _ACEOF
28541 cat confdefs.h >>conftest.$ac_ext
28542 cat >>conftest.$ac_ext <<_ACEOF
28543 /* end confdefs.h.  */
28544 #include <stdlib.h>
28545 int
28546 main ()
28548 malloc(1)
28550   ;
28551   return 0;
28553 _ACEOF
28554 rm -f conftest.$ac_objext conftest$ac_exeext
28555 if { (ac_try="$ac_link"
28556 case "(($ac_try" in
28557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28558   *) ac_try_echo=$ac_try;;
28559 esac
28560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28561   (eval "$ac_link") 2>conftest.er1
28562   ac_status=$?
28563   grep -v '^ *+' conftest.er1 >conftest.err
28564   rm -f conftest.er1
28565   cat conftest.err >&5
28566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28567   (exit $ac_status); } && {
28568          test -z "$ac_c_werror_flag" ||
28569          test ! -s conftest.err
28570        } && test -s conftest$ac_exeext &&
28571        $as_test_x conftest$ac_exeext; then
28572    { echo "$as_me:$LINENO: result: nope, works out of the box" >&5
28573 echo "${ECHO_T}nope, works out of the box" >&6; }
28574 else
28575   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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28602   (eval "$ac_link") 2>conftest.er1
28603   ac_status=$?
28604   grep -v '^ *+' conftest.er1 >conftest.err
28605   rm -f conftest.er1
28606   cat conftest.err >&5
28607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28608   (exit $ac_status); } && {
28609          test -z "$ac_c_werror_flag" ||
28610          test ! -s conftest.err
28611        } && test -s conftest$ac_exeext &&
28612        $as_test_x conftest$ac_exeext; then
28614            cat >>confdefs.h <<\_ACEOF
28615 #define MUST_HAVE_MALLOC_MALLOC_H 1
28616 _ACEOF
28618            { echo "$as_me:$LINENO: result: yes we do" >&5
28619 echo "${ECHO_T}yes we do" >&6; }
28620 else
28621   echo "$as_me: failed program was:" >&5
28622 sed 's/^/| /' conftest.$ac_ext >&5
28624         { { echo "$as_me:$LINENO: error: Can not figure how to compile malloc" >&5
28625 echo "$as_me: error: Can not figure how to compile malloc" >&2;}
28626    { (exit 1); exit 1; }; }
28630 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28631       conftest$ac_exeext conftest.$ac_ext
28636 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28637       conftest$ac_exeext conftest.$ac_ext
28638 ac_ext=c
28639 ac_cpp='$CPP $CPPFLAGS'
28640 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28641 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28642 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28646 case $TERM in
28647        #   for the most important terminal types we directly know the sequences
28648        xterm|xterm*|vt220|vt220*)
28649                T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
28650                T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
28651        ;;
28652        vt100|vt100*|cygwin)
28653                T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
28654                T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
28655        ;;
28656        *)
28657                T_MD=''
28658                T_ME=''
28659        ;;
28660 esac
28661   { echo "$as_me:$LINENO: result: " >&5
28662 echo "${ECHO_T}" >&6; }
28663   { echo "$as_me:$LINENO: result: ${T_MD}Find 3rd-Party Libraries${T_ME}" >&5
28664 echo "${ECHO_T}${T_MD}Find 3rd-Party Libraries${T_ME}" >&6; }
28670 if test $enable_rrdcgi != no; then
28671   BUILD_RRDCGI_TRUE=
28672   BUILD_RRDCGI_FALSE='#'
28673 else
28674   BUILD_RRDCGI_TRUE='#'
28675   BUILD_RRDCGI_FALSE=
28680 CORE_LIBS="$LIBS"
28683  ac_ext=c
28684 ac_cpp='$CPP $CPPFLAGS'
28685 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28686 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28687 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28689  EX_CHECK_STATE=NO
28690  ex_check_save_LIBS=${LIBS}
28691  ex_check_save_CPPFLAGS=${CPPFLAGS}
28692  ex_check_save_LDFLAGS=${LDFLAGS}
28693  if test "x""" != "x"; then
28694    CPPFLAGS="$CPPFLAGS -I"""
28695  fi
28696   { echo "$as_me:$LINENO: checking for cairo_font_options_create in -lcairo" >&5
28697 echo $ECHO_N "checking for cairo_font_options_create in -lcairo... $ECHO_C" >&6; }
28698 if test "${ac_cv_lib_cairo_cairo_font_options_create+set}" = set; then
28699   echo $ECHO_N "(cached) $ECHO_C" >&6
28700 else
28701   ac_check_lib_save_LIBS=$LIBS
28702 LIBS="-lcairo  $LIBS"
28703 cat >conftest.$ac_ext <<_ACEOF
28704 /* confdefs.h.  */
28705 _ACEOF
28706 cat confdefs.h >>conftest.$ac_ext
28707 cat >>conftest.$ac_ext <<_ACEOF
28708 /* end confdefs.h.  */
28710 /* Override any GCC internal prototype to avoid an error.
28711    Use char because int might match the return type of a GCC
28712    builtin and then its argument prototype would still apply.  */
28713 #ifdef __cplusplus
28714 extern "C"
28715 #endif
28716 char cairo_font_options_create ();
28717 int
28718 main ()
28720 return cairo_font_options_create ();
28721   ;
28722   return 0;
28724 _ACEOF
28725 rm -f conftest.$ac_objext conftest$ac_exeext
28726 if { (ac_try="$ac_link"
28727 case "(($ac_try" in
28728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28729   *) ac_try_echo=$ac_try;;
28730 esac
28731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28732   (eval "$ac_link") 2>conftest.er1
28733   ac_status=$?
28734   grep -v '^ *+' conftest.er1 >conftest.err
28735   rm -f conftest.er1
28736   cat conftest.err >&5
28737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28738   (exit $ac_status); } && {
28739          test -z "$ac_c_werror_flag" ||
28740          test ! -s conftest.err
28741        } && test -s conftest$ac_exeext &&
28742        $as_test_x conftest$ac_exeext; then
28743   ac_cv_lib_cairo_cairo_font_options_create=yes
28744 else
28745   echo "$as_me: failed program was:" >&5
28746 sed 's/^/| /' conftest.$ac_ext >&5
28748         ac_cv_lib_cairo_cairo_font_options_create=no
28751 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28752       conftest$ac_exeext conftest.$ac_ext
28753 LIBS=$ac_check_lib_save_LIBS
28755 { echo "$as_me:$LINENO: result: $ac_cv_lib_cairo_cairo_font_options_create" >&5
28756 echo "${ECHO_T}$ac_cv_lib_cairo_cairo_font_options_create" >&6; }
28757 if test $ac_cv_lib_cairo_cairo_font_options_create = yes; then
28759     if test "${ac_cv_header_cairo_h+set}" = set; then
28760   { echo "$as_me:$LINENO: checking for cairo.h" >&5
28761 echo $ECHO_N "checking for cairo.h... $ECHO_C" >&6; }
28762 if test "${ac_cv_header_cairo_h+set}" = set; then
28763   echo $ECHO_N "(cached) $ECHO_C" >&6
28765 { echo "$as_me:$LINENO: result: $ac_cv_header_cairo_h" >&5
28766 echo "${ECHO_T}$ac_cv_header_cairo_h" >&6; }
28767 else
28768   # Is the header compilable?
28769 { echo "$as_me:$LINENO: checking cairo.h usability" >&5
28770 echo $ECHO_N "checking cairo.h usability... $ECHO_C" >&6; }
28771 cat >conftest.$ac_ext <<_ACEOF
28772 /* confdefs.h.  */
28773 _ACEOF
28774 cat confdefs.h >>conftest.$ac_ext
28775 cat >>conftest.$ac_ext <<_ACEOF
28776 /* end confdefs.h.  */
28777 $ac_includes_default
28778 #include <cairo.h>
28779 _ACEOF
28780 rm -f conftest.$ac_objext
28781 if { (ac_try="$ac_compile"
28782 case "(($ac_try" in
28783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28784   *) ac_try_echo=$ac_try;;
28785 esac
28786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28787   (eval "$ac_compile") 2>conftest.er1
28788   ac_status=$?
28789   grep -v '^ *+' conftest.er1 >conftest.err
28790   rm -f conftest.er1
28791   cat conftest.err >&5
28792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28793   (exit $ac_status); } && {
28794          test -z "$ac_c_werror_flag" ||
28795          test ! -s conftest.err
28796        } && test -s conftest.$ac_objext; then
28797   ac_header_compiler=yes
28798 else
28799   echo "$as_me: failed program was:" >&5
28800 sed 's/^/| /' conftest.$ac_ext >&5
28802         ac_header_compiler=no
28805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28806 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28807 echo "${ECHO_T}$ac_header_compiler" >&6; }
28809 # Is the header present?
28810 { echo "$as_me:$LINENO: checking cairo.h presence" >&5
28811 echo $ECHO_N "checking cairo.h presence... $ECHO_C" >&6; }
28812 cat >conftest.$ac_ext <<_ACEOF
28813 /* confdefs.h.  */
28814 _ACEOF
28815 cat confdefs.h >>conftest.$ac_ext
28816 cat >>conftest.$ac_ext <<_ACEOF
28817 /* end confdefs.h.  */
28818 #include <cairo.h>
28819 _ACEOF
28820 if { (ac_try="$ac_cpp conftest.$ac_ext"
28821 case "(($ac_try" in
28822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28823   *) ac_try_echo=$ac_try;;
28824 esac
28825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28826   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28827   ac_status=$?
28828   grep -v '^ *+' conftest.er1 >conftest.err
28829   rm -f conftest.er1
28830   cat conftest.err >&5
28831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28832   (exit $ac_status); } >/dev/null && {
28833          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28834          test ! -s conftest.err
28835        }; then
28836   ac_header_preproc=yes
28837 else
28838   echo "$as_me: failed program was:" >&5
28839 sed 's/^/| /' conftest.$ac_ext >&5
28841   ac_header_preproc=no
28844 rm -f conftest.err conftest.$ac_ext
28845 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28846 echo "${ECHO_T}$ac_header_preproc" >&6; }
28848 # So?  What about this header?
28849 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28850   yes:no: )
28851     { echo "$as_me:$LINENO: WARNING: cairo.h: accepted by the compiler, rejected by the preprocessor!" >&5
28852 echo "$as_me: WARNING: cairo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28853     { echo "$as_me:$LINENO: WARNING: cairo.h: proceeding with the compiler's result" >&5
28854 echo "$as_me: WARNING: cairo.h: proceeding with the compiler's result" >&2;}
28855     ac_header_preproc=yes
28856     ;;
28857   no:yes:* )
28858     { echo "$as_me:$LINENO: WARNING: cairo.h: present but cannot be compiled" >&5
28859 echo "$as_me: WARNING: cairo.h: present but cannot be compiled" >&2;}
28860     { echo "$as_me:$LINENO: WARNING: cairo.h:     check for missing prerequisite headers?" >&5
28861 echo "$as_me: WARNING: cairo.h:     check for missing prerequisite headers?" >&2;}
28862     { echo "$as_me:$LINENO: WARNING: cairo.h: see the Autoconf documentation" >&5
28863 echo "$as_me: WARNING: cairo.h: see the Autoconf documentation" >&2;}
28864     { echo "$as_me:$LINENO: WARNING: cairo.h:     section \"Present But Cannot Be Compiled\"" >&5
28865 echo "$as_me: WARNING: cairo.h:     section \"Present But Cannot Be Compiled\"" >&2;}
28866     { echo "$as_me:$LINENO: WARNING: cairo.h: proceeding with the preprocessor's result" >&5
28867 echo "$as_me: WARNING: cairo.h: proceeding with the preprocessor's result" >&2;}
28868     { echo "$as_me:$LINENO: WARNING: cairo.h: in the future, the compiler will take precedence" >&5
28869 echo "$as_me: WARNING: cairo.h: in the future, the compiler will take precedence" >&2;}
28871     ;;
28872 esac
28873 { echo "$as_me:$LINENO: checking for cairo.h" >&5
28874 echo $ECHO_N "checking for cairo.h... $ECHO_C" >&6; }
28875 if test "${ac_cv_header_cairo_h+set}" = set; then
28876   echo $ECHO_N "(cached) $ECHO_C" >&6
28877 else
28878   ac_cv_header_cairo_h=$ac_header_preproc
28880 { echo "$as_me:$LINENO: result: $ac_cv_header_cairo_h" >&5
28881 echo "${ECHO_T}$ac_cv_header_cairo_h" >&6; }
28884 if test $ac_cv_header_cairo_h = yes; then
28885   LIBS="-lcairo ${LIBS}";EX_CHECK_STATE=YES
28891  if test $EX_CHECK_STATE = NO; then
28892         for ac_prog in pkg-config
28894   # Extract the first word of "$ac_prog", so it can be a program name with args.
28895 set dummy $ac_prog; ac_word=$2
28896 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28897 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28898 if test "${ac_cv_prog_PKGCONFIG+set}" = set; then
28899   echo $ECHO_N "(cached) $ECHO_C" >&6
28900 else
28901   if test -n "$PKGCONFIG"; then
28902   ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
28903 else
28904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28905 for as_dir in $PATH
28907   IFS=$as_save_IFS
28908   test -z "$as_dir" && as_dir=.
28909   for ac_exec_ext in '' $ac_executable_extensions; do
28910   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28911     ac_cv_prog_PKGCONFIG="$ac_prog"
28912     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28913     break 2
28914   fi
28915 done
28916 done
28917 IFS=$as_save_IFS
28921 PKGCONFIG=$ac_cv_prog_PKGCONFIG
28922 if test -n "$PKGCONFIG"; then
28923   { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
28924 echo "${ECHO_T}$PKGCONFIG" >&6; }
28925 else
28926   { echo "$as_me:$LINENO: result: no" >&5
28927 echo "${ECHO_T}no" >&6; }
28931   test -n "$PKGCONFIG" && break
28932 done
28933 test -n "$PKGCONFIG" || PKGCONFIG="no"
28935     if test "$PKGCONFIG" != "no"; then
28936           if $PKGCONFIG --exists cairo-png; then
28937              CPPFLAGS=${CPPFLAGS}" "`$PKGCONFIG --cflags cairo-png`
28938              LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-L cairo-png`
28939              LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-other cairo-png`
28940              LIBS=${LIBS}" "`$PKGCONFIG --libs-only-l cairo-png`
28941                              unset ac_cv_lib_`echo cairo | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`_cairo_font_options_create
28942              { echo "$as_me:$LINENO: checking for cairo_font_options_create in -lcairo" >&5
28943 echo $ECHO_N "checking for cairo_font_options_create in -lcairo... $ECHO_C" >&6; }
28944 if test "${ac_cv_lib_cairo_cairo_font_options_create+set}" = set; then
28945   echo $ECHO_N "(cached) $ECHO_C" >&6
28946 else
28947   ac_check_lib_save_LIBS=$LIBS
28948 LIBS="-lcairo  $LIBS"
28949 cat >conftest.$ac_ext <<_ACEOF
28950 /* confdefs.h.  */
28951 _ACEOF
28952 cat confdefs.h >>conftest.$ac_ext
28953 cat >>conftest.$ac_ext <<_ACEOF
28954 /* end confdefs.h.  */
28956 /* Override any GCC internal prototype to avoid an error.
28957    Use char because int might match the return type of a GCC
28958    builtin and then its argument prototype would still apply.  */
28959 #ifdef __cplusplus
28960 extern "C"
28961 #endif
28962 char cairo_font_options_create ();
28963 int
28964 main ()
28966 return cairo_font_options_create ();
28967   ;
28968   return 0;
28970 _ACEOF
28971 rm -f conftest.$ac_objext conftest$ac_exeext
28972 if { (ac_try="$ac_link"
28973 case "(($ac_try" in
28974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28975   *) ac_try_echo=$ac_try;;
28976 esac
28977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28978   (eval "$ac_link") 2>conftest.er1
28979   ac_status=$?
28980   grep -v '^ *+' conftest.er1 >conftest.err
28981   rm -f conftest.er1
28982   cat conftest.err >&5
28983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28984   (exit $ac_status); } && {
28985          test -z "$ac_c_werror_flag" ||
28986          test ! -s conftest.err
28987        } && test -s conftest$ac_exeext &&
28988        $as_test_x conftest$ac_exeext; then
28989   ac_cv_lib_cairo_cairo_font_options_create=yes
28990 else
28991   echo "$as_me: failed program was:" >&5
28992 sed 's/^/| /' conftest.$ac_ext >&5
28994         ac_cv_lib_cairo_cairo_font_options_create=no
28997 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28998       conftest$ac_exeext conftest.$ac_ext
28999 LIBS=$ac_check_lib_save_LIBS
29001 { echo "$as_me:$LINENO: result: $ac_cv_lib_cairo_cairo_font_options_create" >&5
29002 echo "${ECHO_T}$ac_cv_lib_cairo_cairo_font_options_create" >&6; }
29003 if test $ac_cv_lib_cairo_cairo_font_options_create = yes; then
29005                  unset ac_cv_header_`echo cairo.h | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`
29006                  if test "${ac_cv_header_cairo_h+set}" = set; then
29007   { echo "$as_me:$LINENO: checking for cairo.h" >&5
29008 echo $ECHO_N "checking for cairo.h... $ECHO_C" >&6; }
29009 if test "${ac_cv_header_cairo_h+set}" = set; then
29010   echo $ECHO_N "(cached) $ECHO_C" >&6
29012 { echo "$as_me:$LINENO: result: $ac_cv_header_cairo_h" >&5
29013 echo "${ECHO_T}$ac_cv_header_cairo_h" >&6; }
29014 else
29015   # Is the header compilable?
29016 { echo "$as_me:$LINENO: checking cairo.h usability" >&5
29017 echo $ECHO_N "checking cairo.h usability... $ECHO_C" >&6; }
29018 cat >conftest.$ac_ext <<_ACEOF
29019 /* confdefs.h.  */
29020 _ACEOF
29021 cat confdefs.h >>conftest.$ac_ext
29022 cat >>conftest.$ac_ext <<_ACEOF
29023 /* end confdefs.h.  */
29024 $ac_includes_default
29025 #include <cairo.h>
29026 _ACEOF
29027 rm -f conftest.$ac_objext
29028 if { (ac_try="$ac_compile"
29029 case "(($ac_try" in
29030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29031   *) ac_try_echo=$ac_try;;
29032 esac
29033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29034   (eval "$ac_compile") 2>conftest.er1
29035   ac_status=$?
29036   grep -v '^ *+' conftest.er1 >conftest.err
29037   rm -f conftest.er1
29038   cat conftest.err >&5
29039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29040   (exit $ac_status); } && {
29041          test -z "$ac_c_werror_flag" ||
29042          test ! -s conftest.err
29043        } && test -s conftest.$ac_objext; then
29044   ac_header_compiler=yes
29045 else
29046   echo "$as_me: failed program was:" >&5
29047 sed 's/^/| /' conftest.$ac_ext >&5
29049         ac_header_compiler=no
29052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29053 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29054 echo "${ECHO_T}$ac_header_compiler" >&6; }
29056 # Is the header present?
29057 { echo "$as_me:$LINENO: checking cairo.h presence" >&5
29058 echo $ECHO_N "checking cairo.h presence... $ECHO_C" >&6; }
29059 cat >conftest.$ac_ext <<_ACEOF
29060 /* confdefs.h.  */
29061 _ACEOF
29062 cat confdefs.h >>conftest.$ac_ext
29063 cat >>conftest.$ac_ext <<_ACEOF
29064 /* end confdefs.h.  */
29065 #include <cairo.h>
29066 _ACEOF
29067 if { (ac_try="$ac_cpp conftest.$ac_ext"
29068 case "(($ac_try" in
29069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29070   *) ac_try_echo=$ac_try;;
29071 esac
29072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29073   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29074   ac_status=$?
29075   grep -v '^ *+' conftest.er1 >conftest.err
29076   rm -f conftest.er1
29077   cat conftest.err >&5
29078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29079   (exit $ac_status); } >/dev/null && {
29080          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29081          test ! -s conftest.err
29082        }; then
29083   ac_header_preproc=yes
29084 else
29085   echo "$as_me: failed program was:" >&5
29086 sed 's/^/| /' conftest.$ac_ext >&5
29088   ac_header_preproc=no
29091 rm -f conftest.err conftest.$ac_ext
29092 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29093 echo "${ECHO_T}$ac_header_preproc" >&6; }
29095 # So?  What about this header?
29096 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29097   yes:no: )
29098     { echo "$as_me:$LINENO: WARNING: cairo.h: accepted by the compiler, rejected by the preprocessor!" >&5
29099 echo "$as_me: WARNING: cairo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29100     { echo "$as_me:$LINENO: WARNING: cairo.h: proceeding with the compiler's result" >&5
29101 echo "$as_me: WARNING: cairo.h: proceeding with the compiler's result" >&2;}
29102     ac_header_preproc=yes
29103     ;;
29104   no:yes:* )
29105     { echo "$as_me:$LINENO: WARNING: cairo.h: present but cannot be compiled" >&5
29106 echo "$as_me: WARNING: cairo.h: present but cannot be compiled" >&2;}
29107     { echo "$as_me:$LINENO: WARNING: cairo.h:     check for missing prerequisite headers?" >&5
29108 echo "$as_me: WARNING: cairo.h:     check for missing prerequisite headers?" >&2;}
29109     { echo "$as_me:$LINENO: WARNING: cairo.h: see the Autoconf documentation" >&5
29110 echo "$as_me: WARNING: cairo.h: see the Autoconf documentation" >&2;}
29111     { echo "$as_me:$LINENO: WARNING: cairo.h:     section \"Present But Cannot Be Compiled\"" >&5
29112 echo "$as_me: WARNING: cairo.h:     section \"Present But Cannot Be Compiled\"" >&2;}
29113     { echo "$as_me:$LINENO: WARNING: cairo.h: proceeding with the preprocessor's result" >&5
29114 echo "$as_me: WARNING: cairo.h: proceeding with the preprocessor's result" >&2;}
29115     { echo "$as_me:$LINENO: WARNING: cairo.h: in the future, the compiler will take precedence" >&5
29116 echo "$as_me: WARNING: cairo.h: in the future, the compiler will take precedence" >&2;}
29118     ;;
29119 esac
29120 { echo "$as_me:$LINENO: checking for cairo.h" >&5
29121 echo $ECHO_N "checking for cairo.h... $ECHO_C" >&6; }
29122 if test "${ac_cv_header_cairo_h+set}" = set; then
29123   echo $ECHO_N "(cached) $ECHO_C" >&6
29124 else
29125   ac_cv_header_cairo_h=$ac_header_preproc
29127 { echo "$as_me:$LINENO: result: $ac_cv_header_cairo_h" >&5
29128 echo "${ECHO_T}$ac_cv_header_cairo_h" >&6; }
29131 if test $ac_cv_header_cairo_h = yes; then
29132   EX_CHECK_STATE=YES
29139           else
29140              { echo "$as_me:$LINENO: WARNING:
29141 ----------------------------------------------------------------------------
29142 * I found a copy of pkgconfig, but there is no cairo-png.pc file around.
29143   You may want to set the PKG_CONFIG_PATH variable to point to its
29144   location.
29145 ----------------------------------------------------------------------------
29146                         " >&5
29147 echo "$as_me: WARNING:
29148 ----------------------------------------------------------------------------
29149 * I found a copy of pkgconfig, but there is no cairo-png.pc file around.
29150   You may want to set the PKG_CONFIG_PATH variable to point to its
29151   location.
29152 ----------------------------------------------------------------------------
29153                         " >&2;}
29154            fi
29155      fi
29156   fi
29158   if test ${EX_CHECK_STATE} = NO; then
29159      { echo "$as_me:$LINENO: WARNING:
29160 ----------------------------------------------------------------------------
29161 * I could not find a working copy of cairo-png. Check config.log for hints on why
29162   this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
29163   so that compiler and the linker can find libcairo and its header files. If
29164   you have not installed cairo-png, you can get it either from its original home on
29166      http://cairographics.org/releases/
29168   You can find also find an archive copy on
29170      http://oss.oetiker.ch/rrdtool/pub/libs
29172   The last tested version of cairo-png is 1.4.6.
29174        LIBS=$LIBS
29175    LDFLAGS=$LDFLAGS
29176   CPPFLAGS=$CPPFLAGS
29178 ----------------------------------------------------------------------------
29179                 " >&5
29180 echo "$as_me: WARNING:
29181 ----------------------------------------------------------------------------
29182 * I could not find a working copy of cairo-png. Check config.log for hints on why
29183   this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
29184   so that compiler and the linker can find libcairo and its header files. If
29185   you have not installed cairo-png, you can get it either from its original home on
29187      http://cairographics.org/releases/
29189   You can find also find an archive copy on
29191      http://oss.oetiker.ch/rrdtool/pub/libs
29193   The last tested version of cairo-png is 1.4.6.
29195        LIBS=$LIBS
29196    LDFLAGS=$LDFLAGS
29197   CPPFLAGS=$CPPFLAGS
29199 ----------------------------------------------------------------------------
29200                 " >&2;}
29201        EX_CHECK_ALL_ERR=YES
29202        LIBS="${ex_check_save_LIBS}"
29203        CPPFLAGS="${ex_check_save_CPPFLAGS}"
29204        LDFLAGS="${ex_check_save_LDFLAGS}"
29205     fi
29206     ac_ext=c
29207 ac_cpp='$CPP $CPPFLAGS'
29208 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29209 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29210 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29215  ac_ext=c
29216 ac_cpp='$CPP $CPPFLAGS'
29217 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29218 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29219 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29221  EX_CHECK_STATE=NO
29222  ex_check_save_LIBS=${LIBS}
29223  ex_check_save_CPPFLAGS=${CPPFLAGS}
29224  ex_check_save_LDFLAGS=${LDFLAGS}
29225  if test "x""" != "x"; then
29226    CPPFLAGS="$CPPFLAGS -I"""
29227  fi
29228   { echo "$as_me:$LINENO: checking for cairo_svg_surface_create in -lcairo" >&5
29229 echo $ECHO_N "checking for cairo_svg_surface_create in -lcairo... $ECHO_C" >&6; }
29230 if test "${ac_cv_lib_cairo_cairo_svg_surface_create+set}" = set; then
29231   echo $ECHO_N "(cached) $ECHO_C" >&6
29232 else
29233   ac_check_lib_save_LIBS=$LIBS
29234 LIBS="-lcairo  $LIBS"
29235 cat >conftest.$ac_ext <<_ACEOF
29236 /* confdefs.h.  */
29237 _ACEOF
29238 cat confdefs.h >>conftest.$ac_ext
29239 cat >>conftest.$ac_ext <<_ACEOF
29240 /* end confdefs.h.  */
29242 /* Override any GCC internal prototype to avoid an error.
29243    Use char because int might match the return type of a GCC
29244    builtin and then its argument prototype would still apply.  */
29245 #ifdef __cplusplus
29246 extern "C"
29247 #endif
29248 char cairo_svg_surface_create ();
29249 int
29250 main ()
29252 return cairo_svg_surface_create ();
29253   ;
29254   return 0;
29256 _ACEOF
29257 rm -f conftest.$ac_objext conftest$ac_exeext
29258 if { (ac_try="$ac_link"
29259 case "(($ac_try" in
29260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29261   *) ac_try_echo=$ac_try;;
29262 esac
29263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29264   (eval "$ac_link") 2>conftest.er1
29265   ac_status=$?
29266   grep -v '^ *+' conftest.er1 >conftest.err
29267   rm -f conftest.er1
29268   cat conftest.err >&5
29269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29270   (exit $ac_status); } && {
29271          test -z "$ac_c_werror_flag" ||
29272          test ! -s conftest.err
29273        } && test -s conftest$ac_exeext &&
29274        $as_test_x conftest$ac_exeext; then
29275   ac_cv_lib_cairo_cairo_svg_surface_create=yes
29276 else
29277   echo "$as_me: failed program was:" >&5
29278 sed 's/^/| /' conftest.$ac_ext >&5
29280         ac_cv_lib_cairo_cairo_svg_surface_create=no
29283 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29284       conftest$ac_exeext conftest.$ac_ext
29285 LIBS=$ac_check_lib_save_LIBS
29287 { echo "$as_me:$LINENO: result: $ac_cv_lib_cairo_cairo_svg_surface_create" >&5
29288 echo "${ECHO_T}$ac_cv_lib_cairo_cairo_svg_surface_create" >&6; }
29289 if test $ac_cv_lib_cairo_cairo_svg_surface_create = yes; then
29291     if test "${ac_cv_header_cairo_svg_h+set}" = set; then
29292   { echo "$as_me:$LINENO: checking for cairo-svg.h" >&5
29293 echo $ECHO_N "checking for cairo-svg.h... $ECHO_C" >&6; }
29294 if test "${ac_cv_header_cairo_svg_h+set}" = set; then
29295   echo $ECHO_N "(cached) $ECHO_C" >&6
29297 { echo "$as_me:$LINENO: result: $ac_cv_header_cairo_svg_h" >&5
29298 echo "${ECHO_T}$ac_cv_header_cairo_svg_h" >&6; }
29299 else
29300   # Is the header compilable?
29301 { echo "$as_me:$LINENO: checking cairo-svg.h usability" >&5
29302 echo $ECHO_N "checking cairo-svg.h usability... $ECHO_C" >&6; }
29303 cat >conftest.$ac_ext <<_ACEOF
29304 /* confdefs.h.  */
29305 _ACEOF
29306 cat confdefs.h >>conftest.$ac_ext
29307 cat >>conftest.$ac_ext <<_ACEOF
29308 /* end confdefs.h.  */
29309 $ac_includes_default
29310 #include <cairo-svg.h>
29311 _ACEOF
29312 rm -f conftest.$ac_objext
29313 if { (ac_try="$ac_compile"
29314 case "(($ac_try" in
29315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29316   *) ac_try_echo=$ac_try;;
29317 esac
29318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29319   (eval "$ac_compile") 2>conftest.er1
29320   ac_status=$?
29321   grep -v '^ *+' conftest.er1 >conftest.err
29322   rm -f conftest.er1
29323   cat conftest.err >&5
29324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29325   (exit $ac_status); } && {
29326          test -z "$ac_c_werror_flag" ||
29327          test ! -s conftest.err
29328        } && test -s conftest.$ac_objext; then
29329   ac_header_compiler=yes
29330 else
29331   echo "$as_me: failed program was:" >&5
29332 sed 's/^/| /' conftest.$ac_ext >&5
29334         ac_header_compiler=no
29337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29338 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29339 echo "${ECHO_T}$ac_header_compiler" >&6; }
29341 # Is the header present?
29342 { echo "$as_me:$LINENO: checking cairo-svg.h presence" >&5
29343 echo $ECHO_N "checking cairo-svg.h presence... $ECHO_C" >&6; }
29344 cat >conftest.$ac_ext <<_ACEOF
29345 /* confdefs.h.  */
29346 _ACEOF
29347 cat confdefs.h >>conftest.$ac_ext
29348 cat >>conftest.$ac_ext <<_ACEOF
29349 /* end confdefs.h.  */
29350 #include <cairo-svg.h>
29351 _ACEOF
29352 if { (ac_try="$ac_cpp conftest.$ac_ext"
29353 case "(($ac_try" in
29354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29355   *) ac_try_echo=$ac_try;;
29356 esac
29357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29358   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29359   ac_status=$?
29360   grep -v '^ *+' conftest.er1 >conftest.err
29361   rm -f conftest.er1
29362   cat conftest.err >&5
29363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29364   (exit $ac_status); } >/dev/null && {
29365          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29366          test ! -s conftest.err
29367        }; then
29368   ac_header_preproc=yes
29369 else
29370   echo "$as_me: failed program was:" >&5
29371 sed 's/^/| /' conftest.$ac_ext >&5
29373   ac_header_preproc=no
29376 rm -f conftest.err conftest.$ac_ext
29377 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29378 echo "${ECHO_T}$ac_header_preproc" >&6; }
29380 # So?  What about this header?
29381 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29382   yes:no: )
29383     { echo "$as_me:$LINENO: WARNING: cairo-svg.h: accepted by the compiler, rejected by the preprocessor!" >&5
29384 echo "$as_me: WARNING: cairo-svg.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29385     { echo "$as_me:$LINENO: WARNING: cairo-svg.h: proceeding with the compiler's result" >&5
29386 echo "$as_me: WARNING: cairo-svg.h: proceeding with the compiler's result" >&2;}
29387     ac_header_preproc=yes
29388     ;;
29389   no:yes:* )
29390     { echo "$as_me:$LINENO: WARNING: cairo-svg.h: present but cannot be compiled" >&5
29391 echo "$as_me: WARNING: cairo-svg.h: present but cannot be compiled" >&2;}
29392     { echo "$as_me:$LINENO: WARNING: cairo-svg.h:     check for missing prerequisite headers?" >&5
29393 echo "$as_me: WARNING: cairo-svg.h:     check for missing prerequisite headers?" >&2;}
29394     { echo "$as_me:$LINENO: WARNING: cairo-svg.h: see the Autoconf documentation" >&5
29395 echo "$as_me: WARNING: cairo-svg.h: see the Autoconf documentation" >&2;}
29396     { echo "$as_me:$LINENO: WARNING: cairo-svg.h:     section \"Present But Cannot Be Compiled\"" >&5
29397 echo "$as_me: WARNING: cairo-svg.h:     section \"Present But Cannot Be Compiled\"" >&2;}
29398     { echo "$as_me:$LINENO: WARNING: cairo-svg.h: proceeding with the preprocessor's result" >&5
29399 echo "$as_me: WARNING: cairo-svg.h: proceeding with the preprocessor's result" >&2;}
29400     { echo "$as_me:$LINENO: WARNING: cairo-svg.h: in the future, the compiler will take precedence" >&5
29401 echo "$as_me: WARNING: cairo-svg.h: in the future, the compiler will take precedence" >&2;}
29403     ;;
29404 esac
29405 { echo "$as_me:$LINENO: checking for cairo-svg.h" >&5
29406 echo $ECHO_N "checking for cairo-svg.h... $ECHO_C" >&6; }
29407 if test "${ac_cv_header_cairo_svg_h+set}" = set; then
29408   echo $ECHO_N "(cached) $ECHO_C" >&6
29409 else
29410   ac_cv_header_cairo_svg_h=$ac_header_preproc
29412 { echo "$as_me:$LINENO: result: $ac_cv_header_cairo_svg_h" >&5
29413 echo "${ECHO_T}$ac_cv_header_cairo_svg_h" >&6; }
29416 if test $ac_cv_header_cairo_svg_h = yes; then
29417   LIBS="-lcairo ${LIBS}";EX_CHECK_STATE=YES
29423  if test $EX_CHECK_STATE = NO; then
29424         for ac_prog in pkg-config
29426   # Extract the first word of "$ac_prog", so it can be a program name with args.
29427 set dummy $ac_prog; ac_word=$2
29428 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29429 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29430 if test "${ac_cv_prog_PKGCONFIG+set}" = set; then
29431   echo $ECHO_N "(cached) $ECHO_C" >&6
29432 else
29433   if test -n "$PKGCONFIG"; then
29434   ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
29435 else
29436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29437 for as_dir in $PATH
29439   IFS=$as_save_IFS
29440   test -z "$as_dir" && as_dir=.
29441   for ac_exec_ext in '' $ac_executable_extensions; do
29442   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29443     ac_cv_prog_PKGCONFIG="$ac_prog"
29444     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29445     break 2
29446   fi
29447 done
29448 done
29449 IFS=$as_save_IFS
29453 PKGCONFIG=$ac_cv_prog_PKGCONFIG
29454 if test -n "$PKGCONFIG"; then
29455   { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
29456 echo "${ECHO_T}$PKGCONFIG" >&6; }
29457 else
29458   { echo "$as_me:$LINENO: result: no" >&5
29459 echo "${ECHO_T}no" >&6; }
29463   test -n "$PKGCONFIG" && break
29464 done
29465 test -n "$PKGCONFIG" || PKGCONFIG="no"
29467     if test "$PKGCONFIG" != "no"; then
29468           if $PKGCONFIG --exists cairo-svg; then
29469              CPPFLAGS=${CPPFLAGS}" "`$PKGCONFIG --cflags cairo-svg`
29470              LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-L cairo-svg`
29471              LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-other cairo-svg`
29472              LIBS=${LIBS}" "`$PKGCONFIG --libs-only-l cairo-svg`
29473                              unset ac_cv_lib_`echo cairo | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`_cairo_svg_surface_create
29474              { echo "$as_me:$LINENO: checking for cairo_svg_surface_create in -lcairo" >&5
29475 echo $ECHO_N "checking for cairo_svg_surface_create in -lcairo... $ECHO_C" >&6; }
29476 if test "${ac_cv_lib_cairo_cairo_svg_surface_create+set}" = set; then
29477   echo $ECHO_N "(cached) $ECHO_C" >&6
29478 else
29479   ac_check_lib_save_LIBS=$LIBS
29480 LIBS="-lcairo  $LIBS"
29481 cat >conftest.$ac_ext <<_ACEOF
29482 /* confdefs.h.  */
29483 _ACEOF
29484 cat confdefs.h >>conftest.$ac_ext
29485 cat >>conftest.$ac_ext <<_ACEOF
29486 /* end confdefs.h.  */
29488 /* Override any GCC internal prototype to avoid an error.
29489    Use char because int might match the return type of a GCC
29490    builtin and then its argument prototype would still apply.  */
29491 #ifdef __cplusplus
29492 extern "C"
29493 #endif
29494 char cairo_svg_surface_create ();
29495 int
29496 main ()
29498 return cairo_svg_surface_create ();
29499   ;
29500   return 0;
29502 _ACEOF
29503 rm -f conftest.$ac_objext conftest$ac_exeext
29504 if { (ac_try="$ac_link"
29505 case "(($ac_try" in
29506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29507   *) ac_try_echo=$ac_try;;
29508 esac
29509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29510   (eval "$ac_link") 2>conftest.er1
29511   ac_status=$?
29512   grep -v '^ *+' conftest.er1 >conftest.err
29513   rm -f conftest.er1
29514   cat conftest.err >&5
29515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29516   (exit $ac_status); } && {
29517          test -z "$ac_c_werror_flag" ||
29518          test ! -s conftest.err
29519        } && test -s conftest$ac_exeext &&
29520        $as_test_x conftest$ac_exeext; then
29521   ac_cv_lib_cairo_cairo_svg_surface_create=yes
29522 else
29523   echo "$as_me: failed program was:" >&5
29524 sed 's/^/| /' conftest.$ac_ext >&5
29526         ac_cv_lib_cairo_cairo_svg_surface_create=no
29529 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29530       conftest$ac_exeext conftest.$ac_ext
29531 LIBS=$ac_check_lib_save_LIBS
29533 { echo "$as_me:$LINENO: result: $ac_cv_lib_cairo_cairo_svg_surface_create" >&5
29534 echo "${ECHO_T}$ac_cv_lib_cairo_cairo_svg_surface_create" >&6; }
29535 if test $ac_cv_lib_cairo_cairo_svg_surface_create = yes; then
29537                  unset ac_cv_header_`echo cairo-svg.h | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`
29538                  if test "${ac_cv_header_cairo_svg_h+set}" = set; then
29539   { echo "$as_me:$LINENO: checking for cairo-svg.h" >&5
29540 echo $ECHO_N "checking for cairo-svg.h... $ECHO_C" >&6; }
29541 if test "${ac_cv_header_cairo_svg_h+set}" = set; then
29542   echo $ECHO_N "(cached) $ECHO_C" >&6
29544 { echo "$as_me:$LINENO: result: $ac_cv_header_cairo_svg_h" >&5
29545 echo "${ECHO_T}$ac_cv_header_cairo_svg_h" >&6; }
29546 else
29547   # Is the header compilable?
29548 { echo "$as_me:$LINENO: checking cairo-svg.h usability" >&5
29549 echo $ECHO_N "checking cairo-svg.h usability... $ECHO_C" >&6; }
29550 cat >conftest.$ac_ext <<_ACEOF
29551 /* confdefs.h.  */
29552 _ACEOF
29553 cat confdefs.h >>conftest.$ac_ext
29554 cat >>conftest.$ac_ext <<_ACEOF
29555 /* end confdefs.h.  */
29556 $ac_includes_default
29557 #include <cairo-svg.h>
29558 _ACEOF
29559 rm -f conftest.$ac_objext
29560 if { (ac_try="$ac_compile"
29561 case "(($ac_try" in
29562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29563   *) ac_try_echo=$ac_try;;
29564 esac
29565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29566   (eval "$ac_compile") 2>conftest.er1
29567   ac_status=$?
29568   grep -v '^ *+' conftest.er1 >conftest.err
29569   rm -f conftest.er1
29570   cat conftest.err >&5
29571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29572   (exit $ac_status); } && {
29573          test -z "$ac_c_werror_flag" ||
29574          test ! -s conftest.err
29575        } && test -s conftest.$ac_objext; then
29576   ac_header_compiler=yes
29577 else
29578   echo "$as_me: failed program was:" >&5
29579 sed 's/^/| /' conftest.$ac_ext >&5
29581         ac_header_compiler=no
29584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29585 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29586 echo "${ECHO_T}$ac_header_compiler" >&6; }
29588 # Is the header present?
29589 { echo "$as_me:$LINENO: checking cairo-svg.h presence" >&5
29590 echo $ECHO_N "checking cairo-svg.h presence... $ECHO_C" >&6; }
29591 cat >conftest.$ac_ext <<_ACEOF
29592 /* confdefs.h.  */
29593 _ACEOF
29594 cat confdefs.h >>conftest.$ac_ext
29595 cat >>conftest.$ac_ext <<_ACEOF
29596 /* end confdefs.h.  */
29597 #include <cairo-svg.h>
29598 _ACEOF
29599 if { (ac_try="$ac_cpp conftest.$ac_ext"
29600 case "(($ac_try" in
29601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29602   *) ac_try_echo=$ac_try;;
29603 esac
29604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29605   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29606   ac_status=$?
29607   grep -v '^ *+' conftest.er1 >conftest.err
29608   rm -f conftest.er1
29609   cat conftest.err >&5
29610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29611   (exit $ac_status); } >/dev/null && {
29612          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29613          test ! -s conftest.err
29614        }; then
29615   ac_header_preproc=yes
29616 else
29617   echo "$as_me: failed program was:" >&5
29618 sed 's/^/| /' conftest.$ac_ext >&5
29620   ac_header_preproc=no
29623 rm -f conftest.err conftest.$ac_ext
29624 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29625 echo "${ECHO_T}$ac_header_preproc" >&6; }
29627 # So?  What about this header?
29628 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29629   yes:no: )
29630     { echo "$as_me:$LINENO: WARNING: cairo-svg.h: accepted by the compiler, rejected by the preprocessor!" >&5
29631 echo "$as_me: WARNING: cairo-svg.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29632     { echo "$as_me:$LINENO: WARNING: cairo-svg.h: proceeding with the compiler's result" >&5
29633 echo "$as_me: WARNING: cairo-svg.h: proceeding with the compiler's result" >&2;}
29634     ac_header_preproc=yes
29635     ;;
29636   no:yes:* )
29637     { echo "$as_me:$LINENO: WARNING: cairo-svg.h: present but cannot be compiled" >&5
29638 echo "$as_me: WARNING: cairo-svg.h: present but cannot be compiled" >&2;}
29639     { echo "$as_me:$LINENO: WARNING: cairo-svg.h:     check for missing prerequisite headers?" >&5
29640 echo "$as_me: WARNING: cairo-svg.h:     check for missing prerequisite headers?" >&2;}
29641     { echo "$as_me:$LINENO: WARNING: cairo-svg.h: see the Autoconf documentation" >&5
29642 echo "$as_me: WARNING: cairo-svg.h: see the Autoconf documentation" >&2;}
29643     { echo "$as_me:$LINENO: WARNING: cairo-svg.h:     section \"Present But Cannot Be Compiled\"" >&5
29644 echo "$as_me: WARNING: cairo-svg.h:     section \"Present But Cannot Be Compiled\"" >&2;}
29645     { echo "$as_me:$LINENO: WARNING: cairo-svg.h: proceeding with the preprocessor's result" >&5
29646 echo "$as_me: WARNING: cairo-svg.h: proceeding with the preprocessor's result" >&2;}
29647     { echo "$as_me:$LINENO: WARNING: cairo-svg.h: in the future, the compiler will take precedence" >&5
29648 echo "$as_me: WARNING: cairo-svg.h: in the future, the compiler will take precedence" >&2;}
29650     ;;
29651 esac
29652 { echo "$as_me:$LINENO: checking for cairo-svg.h" >&5
29653 echo $ECHO_N "checking for cairo-svg.h... $ECHO_C" >&6; }
29654 if test "${ac_cv_header_cairo_svg_h+set}" = set; then
29655   echo $ECHO_N "(cached) $ECHO_C" >&6
29656 else
29657   ac_cv_header_cairo_svg_h=$ac_header_preproc
29659 { echo "$as_me:$LINENO: result: $ac_cv_header_cairo_svg_h" >&5
29660 echo "${ECHO_T}$ac_cv_header_cairo_svg_h" >&6; }
29663 if test $ac_cv_header_cairo_svg_h = yes; then
29664   EX_CHECK_STATE=YES
29671           else
29672              { echo "$as_me:$LINENO: WARNING:
29673 ----------------------------------------------------------------------------
29674 * I found a copy of pkgconfig, but there is no cairo-svg.pc file around.
29675   You may want to set the PKG_CONFIG_PATH variable to point to its
29676   location.
29677 ----------------------------------------------------------------------------
29678                         " >&5
29679 echo "$as_me: WARNING:
29680 ----------------------------------------------------------------------------
29681 * I found a copy of pkgconfig, but there is no cairo-svg.pc file around.
29682   You may want to set the PKG_CONFIG_PATH variable to point to its
29683   location.
29684 ----------------------------------------------------------------------------
29685                         " >&2;}
29686            fi
29687      fi
29688   fi
29690   if test ${EX_CHECK_STATE} = NO; then
29691      { echo "$as_me:$LINENO: WARNING:
29692 ----------------------------------------------------------------------------
29693 * I could not find a working copy of cairo-svg. Check config.log for hints on why
29694   this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
29695   so that compiler and the linker can find libcairo and its header files. If
29696   you have not installed cairo-svg, you can get it either from its original home on
29698      http://cairographics.org/releases/
29700   You can find also find an archive copy on
29702      http://oss.oetiker.ch/rrdtool/pub/libs
29704   The last tested version of cairo-svg is 1.4.6.
29706        LIBS=$LIBS
29707    LDFLAGS=$LDFLAGS
29708   CPPFLAGS=$CPPFLAGS
29710 ----------------------------------------------------------------------------
29711                 " >&5
29712 echo "$as_me: WARNING:
29713 ----------------------------------------------------------------------------
29714 * I could not find a working copy of cairo-svg. Check config.log for hints on why
29715   this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
29716   so that compiler and the linker can find libcairo and its header files. If
29717   you have not installed cairo-svg, you can get it either from its original home on
29719      http://cairographics.org/releases/
29721   You can find also find an archive copy on
29723      http://oss.oetiker.ch/rrdtool/pub/libs
29725   The last tested version of cairo-svg is 1.4.6.
29727        LIBS=$LIBS
29728    LDFLAGS=$LDFLAGS
29729   CPPFLAGS=$CPPFLAGS
29731 ----------------------------------------------------------------------------
29732                 " >&2;}
29733        EX_CHECK_ALL_ERR=YES
29734        LIBS="${ex_check_save_LIBS}"
29735        CPPFLAGS="${ex_check_save_CPPFLAGS}"
29736        LDFLAGS="${ex_check_save_LDFLAGS}"
29737     fi
29738     ac_ext=c
29739 ac_cpp='$CPP $CPPFLAGS'
29740 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29741 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29742 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29747  ac_ext=c
29748 ac_cpp='$CPP $CPPFLAGS'
29749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29753  EX_CHECK_STATE=NO
29754  ex_check_save_LIBS=${LIBS}
29755  ex_check_save_CPPFLAGS=${CPPFLAGS}
29756  ex_check_save_LDFLAGS=${LDFLAGS}
29757  if test "x""" != "x"; then
29758    CPPFLAGS="$CPPFLAGS -I"""
29759  fi
29760   { echo "$as_me:$LINENO: checking for cairo_pdf_surface_create in -lcairo" >&5
29761 echo $ECHO_N "checking for cairo_pdf_surface_create in -lcairo... $ECHO_C" >&6; }
29762 if test "${ac_cv_lib_cairo_cairo_pdf_surface_create+set}" = set; then
29763   echo $ECHO_N "(cached) $ECHO_C" >&6
29764 else
29765   ac_check_lib_save_LIBS=$LIBS
29766 LIBS="-lcairo  $LIBS"
29767 cat >conftest.$ac_ext <<_ACEOF
29768 /* confdefs.h.  */
29769 _ACEOF
29770 cat confdefs.h >>conftest.$ac_ext
29771 cat >>conftest.$ac_ext <<_ACEOF
29772 /* end confdefs.h.  */
29774 /* Override any GCC internal prototype to avoid an error.
29775    Use char because int might match the return type of a GCC
29776    builtin and then its argument prototype would still apply.  */
29777 #ifdef __cplusplus
29778 extern "C"
29779 #endif
29780 char cairo_pdf_surface_create ();
29781 int
29782 main ()
29784 return cairo_pdf_surface_create ();
29785   ;
29786   return 0;
29788 _ACEOF
29789 rm -f conftest.$ac_objext conftest$ac_exeext
29790 if { (ac_try="$ac_link"
29791 case "(($ac_try" in
29792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29793   *) ac_try_echo=$ac_try;;
29794 esac
29795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29796   (eval "$ac_link") 2>conftest.er1
29797   ac_status=$?
29798   grep -v '^ *+' conftest.er1 >conftest.err
29799   rm -f conftest.er1
29800   cat conftest.err >&5
29801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29802   (exit $ac_status); } && {
29803          test -z "$ac_c_werror_flag" ||
29804          test ! -s conftest.err
29805        } && test -s conftest$ac_exeext &&
29806        $as_test_x conftest$ac_exeext; then
29807   ac_cv_lib_cairo_cairo_pdf_surface_create=yes
29808 else
29809   echo "$as_me: failed program was:" >&5
29810 sed 's/^/| /' conftest.$ac_ext >&5
29812         ac_cv_lib_cairo_cairo_pdf_surface_create=no
29815 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29816       conftest$ac_exeext conftest.$ac_ext
29817 LIBS=$ac_check_lib_save_LIBS
29819 { echo "$as_me:$LINENO: result: $ac_cv_lib_cairo_cairo_pdf_surface_create" >&5
29820 echo "${ECHO_T}$ac_cv_lib_cairo_cairo_pdf_surface_create" >&6; }
29821 if test $ac_cv_lib_cairo_cairo_pdf_surface_create = yes; then
29823     if test "${ac_cv_header_cairo_pdf_h+set}" = set; then
29824   { echo "$as_me:$LINENO: checking for cairo-pdf.h" >&5
29825 echo $ECHO_N "checking for cairo-pdf.h... $ECHO_C" >&6; }
29826 if test "${ac_cv_header_cairo_pdf_h+set}" = set; then
29827   echo $ECHO_N "(cached) $ECHO_C" >&6
29829 { echo "$as_me:$LINENO: result: $ac_cv_header_cairo_pdf_h" >&5
29830 echo "${ECHO_T}$ac_cv_header_cairo_pdf_h" >&6; }
29831 else
29832   # Is the header compilable?
29833 { echo "$as_me:$LINENO: checking cairo-pdf.h usability" >&5
29834 echo $ECHO_N "checking cairo-pdf.h usability... $ECHO_C" >&6; }
29835 cat >conftest.$ac_ext <<_ACEOF
29836 /* confdefs.h.  */
29837 _ACEOF
29838 cat confdefs.h >>conftest.$ac_ext
29839 cat >>conftest.$ac_ext <<_ACEOF
29840 /* end confdefs.h.  */
29841 $ac_includes_default
29842 #include <cairo-pdf.h>
29843 _ACEOF
29844 rm -f conftest.$ac_objext
29845 if { (ac_try="$ac_compile"
29846 case "(($ac_try" in
29847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29848   *) ac_try_echo=$ac_try;;
29849 esac
29850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29851   (eval "$ac_compile") 2>conftest.er1
29852   ac_status=$?
29853   grep -v '^ *+' conftest.er1 >conftest.err
29854   rm -f conftest.er1
29855   cat conftest.err >&5
29856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29857   (exit $ac_status); } && {
29858          test -z "$ac_c_werror_flag" ||
29859          test ! -s conftest.err
29860        } && test -s conftest.$ac_objext; then
29861   ac_header_compiler=yes
29862 else
29863   echo "$as_me: failed program was:" >&5
29864 sed 's/^/| /' conftest.$ac_ext >&5
29866         ac_header_compiler=no
29869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29870 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29871 echo "${ECHO_T}$ac_header_compiler" >&6; }
29873 # Is the header present?
29874 { echo "$as_me:$LINENO: checking cairo-pdf.h presence" >&5
29875 echo $ECHO_N "checking cairo-pdf.h presence... $ECHO_C" >&6; }
29876 cat >conftest.$ac_ext <<_ACEOF
29877 /* confdefs.h.  */
29878 _ACEOF
29879 cat confdefs.h >>conftest.$ac_ext
29880 cat >>conftest.$ac_ext <<_ACEOF
29881 /* end confdefs.h.  */
29882 #include <cairo-pdf.h>
29883 _ACEOF
29884 if { (ac_try="$ac_cpp conftest.$ac_ext"
29885 case "(($ac_try" in
29886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29887   *) ac_try_echo=$ac_try;;
29888 esac
29889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29890   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29891   ac_status=$?
29892   grep -v '^ *+' conftest.er1 >conftest.err
29893   rm -f conftest.er1
29894   cat conftest.err >&5
29895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29896   (exit $ac_status); } >/dev/null && {
29897          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29898          test ! -s conftest.err
29899        }; then
29900   ac_header_preproc=yes
29901 else
29902   echo "$as_me: failed program was:" >&5
29903 sed 's/^/| /' conftest.$ac_ext >&5
29905   ac_header_preproc=no
29908 rm -f conftest.err conftest.$ac_ext
29909 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29910 echo "${ECHO_T}$ac_header_preproc" >&6; }
29912 # So?  What about this header?
29913 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29914   yes:no: )
29915     { echo "$as_me:$LINENO: WARNING: cairo-pdf.h: accepted by the compiler, rejected by the preprocessor!" >&5
29916 echo "$as_me: WARNING: cairo-pdf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29917     { echo "$as_me:$LINENO: WARNING: cairo-pdf.h: proceeding with the compiler's result" >&5
29918 echo "$as_me: WARNING: cairo-pdf.h: proceeding with the compiler's result" >&2;}
29919     ac_header_preproc=yes
29920     ;;
29921   no:yes:* )
29922     { echo "$as_me:$LINENO: WARNING: cairo-pdf.h: present but cannot be compiled" >&5
29923 echo "$as_me: WARNING: cairo-pdf.h: present but cannot be compiled" >&2;}
29924     { echo "$as_me:$LINENO: WARNING: cairo-pdf.h:     check for missing prerequisite headers?" >&5
29925 echo "$as_me: WARNING: cairo-pdf.h:     check for missing prerequisite headers?" >&2;}
29926     { echo "$as_me:$LINENO: WARNING: cairo-pdf.h: see the Autoconf documentation" >&5
29927 echo "$as_me: WARNING: cairo-pdf.h: see the Autoconf documentation" >&2;}
29928     { echo "$as_me:$LINENO: WARNING: cairo-pdf.h:     section \"Present But Cannot Be Compiled\"" >&5
29929 echo "$as_me: WARNING: cairo-pdf.h:     section \"Present But Cannot Be Compiled\"" >&2;}
29930     { echo "$as_me:$LINENO: WARNING: cairo-pdf.h: proceeding with the preprocessor's result" >&5
29931 echo "$as_me: WARNING: cairo-pdf.h: proceeding with the preprocessor's result" >&2;}
29932     { echo "$as_me:$LINENO: WARNING: cairo-pdf.h: in the future, the compiler will take precedence" >&5
29933 echo "$as_me: WARNING: cairo-pdf.h: in the future, the compiler will take precedence" >&2;}
29935     ;;
29936 esac
29937 { echo "$as_me:$LINENO: checking for cairo-pdf.h" >&5
29938 echo $ECHO_N "checking for cairo-pdf.h... $ECHO_C" >&6; }
29939 if test "${ac_cv_header_cairo_pdf_h+set}" = set; then
29940   echo $ECHO_N "(cached) $ECHO_C" >&6
29941 else
29942   ac_cv_header_cairo_pdf_h=$ac_header_preproc
29944 { echo "$as_me:$LINENO: result: $ac_cv_header_cairo_pdf_h" >&5
29945 echo "${ECHO_T}$ac_cv_header_cairo_pdf_h" >&6; }
29948 if test $ac_cv_header_cairo_pdf_h = yes; then
29949   LIBS="-lcairo ${LIBS}";EX_CHECK_STATE=YES
29955  if test $EX_CHECK_STATE = NO; then
29956         for ac_prog in pkg-config
29958   # Extract the first word of "$ac_prog", so it can be a program name with args.
29959 set dummy $ac_prog; ac_word=$2
29960 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29961 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29962 if test "${ac_cv_prog_PKGCONFIG+set}" = set; then
29963   echo $ECHO_N "(cached) $ECHO_C" >&6
29964 else
29965   if test -n "$PKGCONFIG"; then
29966   ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
29967 else
29968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29969 for as_dir in $PATH
29971   IFS=$as_save_IFS
29972   test -z "$as_dir" && as_dir=.
29973   for ac_exec_ext in '' $ac_executable_extensions; do
29974   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29975     ac_cv_prog_PKGCONFIG="$ac_prog"
29976     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29977     break 2
29978   fi
29979 done
29980 done
29981 IFS=$as_save_IFS
29985 PKGCONFIG=$ac_cv_prog_PKGCONFIG
29986 if test -n "$PKGCONFIG"; then
29987   { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
29988 echo "${ECHO_T}$PKGCONFIG" >&6; }
29989 else
29990   { echo "$as_me:$LINENO: result: no" >&5
29991 echo "${ECHO_T}no" >&6; }
29995   test -n "$PKGCONFIG" && break
29996 done
29997 test -n "$PKGCONFIG" || PKGCONFIG="no"
29999     if test "$PKGCONFIG" != "no"; then
30000           if $PKGCONFIG --exists cairo-pdf; then
30001              CPPFLAGS=${CPPFLAGS}" "`$PKGCONFIG --cflags cairo-pdf`
30002              LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-L cairo-pdf`
30003              LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-other cairo-pdf`
30004              LIBS=${LIBS}" "`$PKGCONFIG --libs-only-l cairo-pdf`
30005                              unset ac_cv_lib_`echo cairo | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`_cairo_pdf_surface_create
30006              { echo "$as_me:$LINENO: checking for cairo_pdf_surface_create in -lcairo" >&5
30007 echo $ECHO_N "checking for cairo_pdf_surface_create in -lcairo... $ECHO_C" >&6; }
30008 if test "${ac_cv_lib_cairo_cairo_pdf_surface_create+set}" = set; then
30009   echo $ECHO_N "(cached) $ECHO_C" >&6
30010 else
30011   ac_check_lib_save_LIBS=$LIBS
30012 LIBS="-lcairo  $LIBS"
30013 cat >conftest.$ac_ext <<_ACEOF
30014 /* confdefs.h.  */
30015 _ACEOF
30016 cat confdefs.h >>conftest.$ac_ext
30017 cat >>conftest.$ac_ext <<_ACEOF
30018 /* end confdefs.h.  */
30020 /* Override any GCC internal prototype to avoid an error.
30021    Use char because int might match the return type of a GCC
30022    builtin and then its argument prototype would still apply.  */
30023 #ifdef __cplusplus
30024 extern "C"
30025 #endif
30026 char cairo_pdf_surface_create ();
30027 int
30028 main ()
30030 return cairo_pdf_surface_create ();
30031   ;
30032   return 0;
30034 _ACEOF
30035 rm -f conftest.$ac_objext conftest$ac_exeext
30036 if { (ac_try="$ac_link"
30037 case "(($ac_try" in
30038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30039   *) ac_try_echo=$ac_try;;
30040 esac
30041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30042   (eval "$ac_link") 2>conftest.er1
30043   ac_status=$?
30044   grep -v '^ *+' conftest.er1 >conftest.err
30045   rm -f conftest.er1
30046   cat conftest.err >&5
30047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30048   (exit $ac_status); } && {
30049          test -z "$ac_c_werror_flag" ||
30050          test ! -s conftest.err
30051        } && test -s conftest$ac_exeext &&
30052        $as_test_x conftest$ac_exeext; then
30053   ac_cv_lib_cairo_cairo_pdf_surface_create=yes
30054 else
30055   echo "$as_me: failed program was:" >&5
30056 sed 's/^/| /' conftest.$ac_ext >&5
30058         ac_cv_lib_cairo_cairo_pdf_surface_create=no
30061 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30062       conftest$ac_exeext conftest.$ac_ext
30063 LIBS=$ac_check_lib_save_LIBS
30065 { echo "$as_me:$LINENO: result: $ac_cv_lib_cairo_cairo_pdf_surface_create" >&5
30066 echo "${ECHO_T}$ac_cv_lib_cairo_cairo_pdf_surface_create" >&6; }
30067 if test $ac_cv_lib_cairo_cairo_pdf_surface_create = yes; then
30069                  unset ac_cv_header_`echo cairo-pdf.h | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`
30070                  if test "${ac_cv_header_cairo_pdf_h+set}" = set; then
30071   { echo "$as_me:$LINENO: checking for cairo-pdf.h" >&5
30072 echo $ECHO_N "checking for cairo-pdf.h... $ECHO_C" >&6; }
30073 if test "${ac_cv_header_cairo_pdf_h+set}" = set; then
30074   echo $ECHO_N "(cached) $ECHO_C" >&6
30076 { echo "$as_me:$LINENO: result: $ac_cv_header_cairo_pdf_h" >&5
30077 echo "${ECHO_T}$ac_cv_header_cairo_pdf_h" >&6; }
30078 else
30079   # Is the header compilable?
30080 { echo "$as_me:$LINENO: checking cairo-pdf.h usability" >&5
30081 echo $ECHO_N "checking cairo-pdf.h usability... $ECHO_C" >&6; }
30082 cat >conftest.$ac_ext <<_ACEOF
30083 /* confdefs.h.  */
30084 _ACEOF
30085 cat confdefs.h >>conftest.$ac_ext
30086 cat >>conftest.$ac_ext <<_ACEOF
30087 /* end confdefs.h.  */
30088 $ac_includes_default
30089 #include <cairo-pdf.h>
30090 _ACEOF
30091 rm -f conftest.$ac_objext
30092 if { (ac_try="$ac_compile"
30093 case "(($ac_try" in
30094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30095   *) ac_try_echo=$ac_try;;
30096 esac
30097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30098   (eval "$ac_compile") 2>conftest.er1
30099   ac_status=$?
30100   grep -v '^ *+' conftest.er1 >conftest.err
30101   rm -f conftest.er1
30102   cat conftest.err >&5
30103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30104   (exit $ac_status); } && {
30105          test -z "$ac_c_werror_flag" ||
30106          test ! -s conftest.err
30107        } && test -s conftest.$ac_objext; then
30108   ac_header_compiler=yes
30109 else
30110   echo "$as_me: failed program was:" >&5
30111 sed 's/^/| /' conftest.$ac_ext >&5
30113         ac_header_compiler=no
30116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30117 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30118 echo "${ECHO_T}$ac_header_compiler" >&6; }
30120 # Is the header present?
30121 { echo "$as_me:$LINENO: checking cairo-pdf.h presence" >&5
30122 echo $ECHO_N "checking cairo-pdf.h presence... $ECHO_C" >&6; }
30123 cat >conftest.$ac_ext <<_ACEOF
30124 /* confdefs.h.  */
30125 _ACEOF
30126 cat confdefs.h >>conftest.$ac_ext
30127 cat >>conftest.$ac_ext <<_ACEOF
30128 /* end confdefs.h.  */
30129 #include <cairo-pdf.h>
30130 _ACEOF
30131 if { (ac_try="$ac_cpp conftest.$ac_ext"
30132 case "(($ac_try" in
30133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30134   *) ac_try_echo=$ac_try;;
30135 esac
30136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30137   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30138   ac_status=$?
30139   grep -v '^ *+' conftest.er1 >conftest.err
30140   rm -f conftest.er1
30141   cat conftest.err >&5
30142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30143   (exit $ac_status); } >/dev/null && {
30144          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30145          test ! -s conftest.err
30146        }; then
30147   ac_header_preproc=yes
30148 else
30149   echo "$as_me: failed program was:" >&5
30150 sed 's/^/| /' conftest.$ac_ext >&5
30152   ac_header_preproc=no
30155 rm -f conftest.err conftest.$ac_ext
30156 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30157 echo "${ECHO_T}$ac_header_preproc" >&6; }
30159 # So?  What about this header?
30160 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30161   yes:no: )
30162     { echo "$as_me:$LINENO: WARNING: cairo-pdf.h: accepted by the compiler, rejected by the preprocessor!" >&5
30163 echo "$as_me: WARNING: cairo-pdf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30164     { echo "$as_me:$LINENO: WARNING: cairo-pdf.h: proceeding with the compiler's result" >&5
30165 echo "$as_me: WARNING: cairo-pdf.h: proceeding with the compiler's result" >&2;}
30166     ac_header_preproc=yes
30167     ;;
30168   no:yes:* )
30169     { echo "$as_me:$LINENO: WARNING: cairo-pdf.h: present but cannot be compiled" >&5
30170 echo "$as_me: WARNING: cairo-pdf.h: present but cannot be compiled" >&2;}
30171     { echo "$as_me:$LINENO: WARNING: cairo-pdf.h:     check for missing prerequisite headers?" >&5
30172 echo "$as_me: WARNING: cairo-pdf.h:     check for missing prerequisite headers?" >&2;}
30173     { echo "$as_me:$LINENO: WARNING: cairo-pdf.h: see the Autoconf documentation" >&5
30174 echo "$as_me: WARNING: cairo-pdf.h: see the Autoconf documentation" >&2;}
30175     { echo "$as_me:$LINENO: WARNING: cairo-pdf.h:     section \"Present But Cannot Be Compiled\"" >&5
30176 echo "$as_me: WARNING: cairo-pdf.h:     section \"Present But Cannot Be Compiled\"" >&2;}
30177     { echo "$as_me:$LINENO: WARNING: cairo-pdf.h: proceeding with the preprocessor's result" >&5
30178 echo "$as_me: WARNING: cairo-pdf.h: proceeding with the preprocessor's result" >&2;}
30179     { echo "$as_me:$LINENO: WARNING: cairo-pdf.h: in the future, the compiler will take precedence" >&5
30180 echo "$as_me: WARNING: cairo-pdf.h: in the future, the compiler will take precedence" >&2;}
30182     ;;
30183 esac
30184 { echo "$as_me:$LINENO: checking for cairo-pdf.h" >&5
30185 echo $ECHO_N "checking for cairo-pdf.h... $ECHO_C" >&6; }
30186 if test "${ac_cv_header_cairo_pdf_h+set}" = set; then
30187   echo $ECHO_N "(cached) $ECHO_C" >&6
30188 else
30189   ac_cv_header_cairo_pdf_h=$ac_header_preproc
30191 { echo "$as_me:$LINENO: result: $ac_cv_header_cairo_pdf_h" >&5
30192 echo "${ECHO_T}$ac_cv_header_cairo_pdf_h" >&6; }
30195 if test $ac_cv_header_cairo_pdf_h = yes; then
30196   EX_CHECK_STATE=YES
30203           else
30204              { echo "$as_me:$LINENO: WARNING:
30205 ----------------------------------------------------------------------------
30206 * I found a copy of pkgconfig, but there is no cairo-pdf.pc file around.
30207   You may want to set the PKG_CONFIG_PATH variable to point to its
30208   location.
30209 ----------------------------------------------------------------------------
30210                         " >&5
30211 echo "$as_me: WARNING:
30212 ----------------------------------------------------------------------------
30213 * I found a copy of pkgconfig, but there is no cairo-pdf.pc file around.
30214   You may want to set the PKG_CONFIG_PATH variable to point to its
30215   location.
30216 ----------------------------------------------------------------------------
30217                         " >&2;}
30218            fi
30219      fi
30220   fi
30222   if test ${EX_CHECK_STATE} = NO; then
30223      { echo "$as_me:$LINENO: WARNING:
30224 ----------------------------------------------------------------------------
30225 * I could not find a working copy of cairo-pdf. Check config.log for hints on why
30226   this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
30227   so that compiler and the linker can find libcairo and its header files. If
30228   you have not installed cairo-pdf, you can get it either from its original home on
30230      http://cairographics.org/releases/
30232   You can find also find an archive copy on
30234      http://oss.oetiker.ch/rrdtool/pub/libs
30236   The last tested version of cairo-pdf is 1.4.6.
30238        LIBS=$LIBS
30239    LDFLAGS=$LDFLAGS
30240   CPPFLAGS=$CPPFLAGS
30242 ----------------------------------------------------------------------------
30243                 " >&5
30244 echo "$as_me: WARNING:
30245 ----------------------------------------------------------------------------
30246 * I could not find a working copy of cairo-pdf. Check config.log for hints on why
30247   this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
30248   so that compiler and the linker can find libcairo and its header files. If
30249   you have not installed cairo-pdf, you can get it either from its original home on
30251      http://cairographics.org/releases/
30253   You can find also find an archive copy on
30255      http://oss.oetiker.ch/rrdtool/pub/libs
30257   The last tested version of cairo-pdf is 1.4.6.
30259        LIBS=$LIBS
30260    LDFLAGS=$LDFLAGS
30261   CPPFLAGS=$CPPFLAGS
30263 ----------------------------------------------------------------------------
30264                 " >&2;}
30265        EX_CHECK_ALL_ERR=YES
30266        LIBS="${ex_check_save_LIBS}"
30267        CPPFLAGS="${ex_check_save_CPPFLAGS}"
30268        LDFLAGS="${ex_check_save_LDFLAGS}"
30269     fi
30270     ac_ext=c
30271 ac_cpp='$CPP $CPPFLAGS'
30272 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30273 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30274 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30279  ac_ext=c
30280 ac_cpp='$CPP $CPPFLAGS'
30281 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30282 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30283 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30285  EX_CHECK_STATE=NO
30286  ex_check_save_LIBS=${LIBS}
30287  ex_check_save_CPPFLAGS=${CPPFLAGS}
30288  ex_check_save_LDFLAGS=${LDFLAGS}
30289  if test "x""" != "x"; then
30290    CPPFLAGS="$CPPFLAGS -I"""
30291  fi
30292   { echo "$as_me:$LINENO: checking for cairo_ps_surface_create in -lcairo" >&5
30293 echo $ECHO_N "checking for cairo_ps_surface_create in -lcairo... $ECHO_C" >&6; }
30294 if test "${ac_cv_lib_cairo_cairo_ps_surface_create+set}" = set; then
30295   echo $ECHO_N "(cached) $ECHO_C" >&6
30296 else
30297   ac_check_lib_save_LIBS=$LIBS
30298 LIBS="-lcairo  $LIBS"
30299 cat >conftest.$ac_ext <<_ACEOF
30300 /* confdefs.h.  */
30301 _ACEOF
30302 cat confdefs.h >>conftest.$ac_ext
30303 cat >>conftest.$ac_ext <<_ACEOF
30304 /* end confdefs.h.  */
30306 /* Override any GCC internal prototype to avoid an error.
30307    Use char because int might match the return type of a GCC
30308    builtin and then its argument prototype would still apply.  */
30309 #ifdef __cplusplus
30310 extern "C"
30311 #endif
30312 char cairo_ps_surface_create ();
30313 int
30314 main ()
30316 return cairo_ps_surface_create ();
30317   ;
30318   return 0;
30320 _ACEOF
30321 rm -f conftest.$ac_objext conftest$ac_exeext
30322 if { (ac_try="$ac_link"
30323 case "(($ac_try" in
30324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30325   *) ac_try_echo=$ac_try;;
30326 esac
30327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30328   (eval "$ac_link") 2>conftest.er1
30329   ac_status=$?
30330   grep -v '^ *+' conftest.er1 >conftest.err
30331   rm -f conftest.er1
30332   cat conftest.err >&5
30333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30334   (exit $ac_status); } && {
30335          test -z "$ac_c_werror_flag" ||
30336          test ! -s conftest.err
30337        } && test -s conftest$ac_exeext &&
30338        $as_test_x conftest$ac_exeext; then
30339   ac_cv_lib_cairo_cairo_ps_surface_create=yes
30340 else
30341   echo "$as_me: failed program was:" >&5
30342 sed 's/^/| /' conftest.$ac_ext >&5
30344         ac_cv_lib_cairo_cairo_ps_surface_create=no
30347 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30348       conftest$ac_exeext conftest.$ac_ext
30349 LIBS=$ac_check_lib_save_LIBS
30351 { echo "$as_me:$LINENO: result: $ac_cv_lib_cairo_cairo_ps_surface_create" >&5
30352 echo "${ECHO_T}$ac_cv_lib_cairo_cairo_ps_surface_create" >&6; }
30353 if test $ac_cv_lib_cairo_cairo_ps_surface_create = yes; then
30355     if test "${ac_cv_header_cairo_ps_h+set}" = set; then
30356   { echo "$as_me:$LINENO: checking for cairo-ps.h" >&5
30357 echo $ECHO_N "checking for cairo-ps.h... $ECHO_C" >&6; }
30358 if test "${ac_cv_header_cairo_ps_h+set}" = set; then
30359   echo $ECHO_N "(cached) $ECHO_C" >&6
30361 { echo "$as_me:$LINENO: result: $ac_cv_header_cairo_ps_h" >&5
30362 echo "${ECHO_T}$ac_cv_header_cairo_ps_h" >&6; }
30363 else
30364   # Is the header compilable?
30365 { echo "$as_me:$LINENO: checking cairo-ps.h usability" >&5
30366 echo $ECHO_N "checking cairo-ps.h usability... $ECHO_C" >&6; }
30367 cat >conftest.$ac_ext <<_ACEOF
30368 /* confdefs.h.  */
30369 _ACEOF
30370 cat confdefs.h >>conftest.$ac_ext
30371 cat >>conftest.$ac_ext <<_ACEOF
30372 /* end confdefs.h.  */
30373 $ac_includes_default
30374 #include <cairo-ps.h>
30375 _ACEOF
30376 rm -f conftest.$ac_objext
30377 if { (ac_try="$ac_compile"
30378 case "(($ac_try" in
30379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30380   *) ac_try_echo=$ac_try;;
30381 esac
30382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30383   (eval "$ac_compile") 2>conftest.er1
30384   ac_status=$?
30385   grep -v '^ *+' conftest.er1 >conftest.err
30386   rm -f conftest.er1
30387   cat conftest.err >&5
30388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30389   (exit $ac_status); } && {
30390          test -z "$ac_c_werror_flag" ||
30391          test ! -s conftest.err
30392        } && test -s conftest.$ac_objext; then
30393   ac_header_compiler=yes
30394 else
30395   echo "$as_me: failed program was:" >&5
30396 sed 's/^/| /' conftest.$ac_ext >&5
30398         ac_header_compiler=no
30401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30402 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30403 echo "${ECHO_T}$ac_header_compiler" >&6; }
30405 # Is the header present?
30406 { echo "$as_me:$LINENO: checking cairo-ps.h presence" >&5
30407 echo $ECHO_N "checking cairo-ps.h presence... $ECHO_C" >&6; }
30408 cat >conftest.$ac_ext <<_ACEOF
30409 /* confdefs.h.  */
30410 _ACEOF
30411 cat confdefs.h >>conftest.$ac_ext
30412 cat >>conftest.$ac_ext <<_ACEOF
30413 /* end confdefs.h.  */
30414 #include <cairo-ps.h>
30415 _ACEOF
30416 if { (ac_try="$ac_cpp conftest.$ac_ext"
30417 case "(($ac_try" in
30418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30419   *) ac_try_echo=$ac_try;;
30420 esac
30421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30422   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30423   ac_status=$?
30424   grep -v '^ *+' conftest.er1 >conftest.err
30425   rm -f conftest.er1
30426   cat conftest.err >&5
30427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30428   (exit $ac_status); } >/dev/null && {
30429          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30430          test ! -s conftest.err
30431        }; then
30432   ac_header_preproc=yes
30433 else
30434   echo "$as_me: failed program was:" >&5
30435 sed 's/^/| /' conftest.$ac_ext >&5
30437   ac_header_preproc=no
30440 rm -f conftest.err conftest.$ac_ext
30441 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30442 echo "${ECHO_T}$ac_header_preproc" >&6; }
30444 # So?  What about this header?
30445 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30446   yes:no: )
30447     { echo "$as_me:$LINENO: WARNING: cairo-ps.h: accepted by the compiler, rejected by the preprocessor!" >&5
30448 echo "$as_me: WARNING: cairo-ps.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30449     { echo "$as_me:$LINENO: WARNING: cairo-ps.h: proceeding with the compiler's result" >&5
30450 echo "$as_me: WARNING: cairo-ps.h: proceeding with the compiler's result" >&2;}
30451     ac_header_preproc=yes
30452     ;;
30453   no:yes:* )
30454     { echo "$as_me:$LINENO: WARNING: cairo-ps.h: present but cannot be compiled" >&5
30455 echo "$as_me: WARNING: cairo-ps.h: present but cannot be compiled" >&2;}
30456     { echo "$as_me:$LINENO: WARNING: cairo-ps.h:     check for missing prerequisite headers?" >&5
30457 echo "$as_me: WARNING: cairo-ps.h:     check for missing prerequisite headers?" >&2;}
30458     { echo "$as_me:$LINENO: WARNING: cairo-ps.h: see the Autoconf documentation" >&5
30459 echo "$as_me: WARNING: cairo-ps.h: see the Autoconf documentation" >&2;}
30460     { echo "$as_me:$LINENO: WARNING: cairo-ps.h:     section \"Present But Cannot Be Compiled\"" >&5
30461 echo "$as_me: WARNING: cairo-ps.h:     section \"Present But Cannot Be Compiled\"" >&2;}
30462     { echo "$as_me:$LINENO: WARNING: cairo-ps.h: proceeding with the preprocessor's result" >&5
30463 echo "$as_me: WARNING: cairo-ps.h: proceeding with the preprocessor's result" >&2;}
30464     { echo "$as_me:$LINENO: WARNING: cairo-ps.h: in the future, the compiler will take precedence" >&5
30465 echo "$as_me: WARNING: cairo-ps.h: in the future, the compiler will take precedence" >&2;}
30467     ;;
30468 esac
30469 { echo "$as_me:$LINENO: checking for cairo-ps.h" >&5
30470 echo $ECHO_N "checking for cairo-ps.h... $ECHO_C" >&6; }
30471 if test "${ac_cv_header_cairo_ps_h+set}" = set; then
30472   echo $ECHO_N "(cached) $ECHO_C" >&6
30473 else
30474   ac_cv_header_cairo_ps_h=$ac_header_preproc
30476 { echo "$as_me:$LINENO: result: $ac_cv_header_cairo_ps_h" >&5
30477 echo "${ECHO_T}$ac_cv_header_cairo_ps_h" >&6; }
30480 if test $ac_cv_header_cairo_ps_h = yes; then
30481   LIBS="-lcairo ${LIBS}";EX_CHECK_STATE=YES
30487  if test $EX_CHECK_STATE = NO; then
30488         for ac_prog in pkg-config
30490   # Extract the first word of "$ac_prog", so it can be a program name with args.
30491 set dummy $ac_prog; ac_word=$2
30492 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30493 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30494 if test "${ac_cv_prog_PKGCONFIG+set}" = set; then
30495   echo $ECHO_N "(cached) $ECHO_C" >&6
30496 else
30497   if test -n "$PKGCONFIG"; then
30498   ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
30499 else
30500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30501 for as_dir in $PATH
30503   IFS=$as_save_IFS
30504   test -z "$as_dir" && as_dir=.
30505   for ac_exec_ext in '' $ac_executable_extensions; do
30506   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30507     ac_cv_prog_PKGCONFIG="$ac_prog"
30508     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30509     break 2
30510   fi
30511 done
30512 done
30513 IFS=$as_save_IFS
30517 PKGCONFIG=$ac_cv_prog_PKGCONFIG
30518 if test -n "$PKGCONFIG"; then
30519   { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
30520 echo "${ECHO_T}$PKGCONFIG" >&6; }
30521 else
30522   { echo "$as_me:$LINENO: result: no" >&5
30523 echo "${ECHO_T}no" >&6; }
30527   test -n "$PKGCONFIG" && break
30528 done
30529 test -n "$PKGCONFIG" || PKGCONFIG="no"
30531     if test "$PKGCONFIG" != "no"; then
30532           if $PKGCONFIG --exists cairo-ps; then
30533              CPPFLAGS=${CPPFLAGS}" "`$PKGCONFIG --cflags cairo-ps`
30534              LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-L cairo-ps`
30535              LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-other cairo-ps`
30536              LIBS=${LIBS}" "`$PKGCONFIG --libs-only-l cairo-ps`
30537                              unset ac_cv_lib_`echo cairo | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`_cairo_ps_surface_create
30538              { echo "$as_me:$LINENO: checking for cairo_ps_surface_create in -lcairo" >&5
30539 echo $ECHO_N "checking for cairo_ps_surface_create in -lcairo... $ECHO_C" >&6; }
30540 if test "${ac_cv_lib_cairo_cairo_ps_surface_create+set}" = set; then
30541   echo $ECHO_N "(cached) $ECHO_C" >&6
30542 else
30543   ac_check_lib_save_LIBS=$LIBS
30544 LIBS="-lcairo  $LIBS"
30545 cat >conftest.$ac_ext <<_ACEOF
30546 /* confdefs.h.  */
30547 _ACEOF
30548 cat confdefs.h >>conftest.$ac_ext
30549 cat >>conftest.$ac_ext <<_ACEOF
30550 /* end confdefs.h.  */
30552 /* Override any GCC internal prototype to avoid an error.
30553    Use char because int might match the return type of a GCC
30554    builtin and then its argument prototype would still apply.  */
30555 #ifdef __cplusplus
30556 extern "C"
30557 #endif
30558 char cairo_ps_surface_create ();
30559 int
30560 main ()
30562 return cairo_ps_surface_create ();
30563   ;
30564   return 0;
30566 _ACEOF
30567 rm -f conftest.$ac_objext conftest$ac_exeext
30568 if { (ac_try="$ac_link"
30569 case "(($ac_try" in
30570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30571   *) ac_try_echo=$ac_try;;
30572 esac
30573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30574   (eval "$ac_link") 2>conftest.er1
30575   ac_status=$?
30576   grep -v '^ *+' conftest.er1 >conftest.err
30577   rm -f conftest.er1
30578   cat conftest.err >&5
30579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30580   (exit $ac_status); } && {
30581          test -z "$ac_c_werror_flag" ||
30582          test ! -s conftest.err
30583        } && test -s conftest$ac_exeext &&
30584        $as_test_x conftest$ac_exeext; then
30585   ac_cv_lib_cairo_cairo_ps_surface_create=yes
30586 else
30587   echo "$as_me: failed program was:" >&5
30588 sed 's/^/| /' conftest.$ac_ext >&5
30590         ac_cv_lib_cairo_cairo_ps_surface_create=no
30593 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30594       conftest$ac_exeext conftest.$ac_ext
30595 LIBS=$ac_check_lib_save_LIBS
30597 { echo "$as_me:$LINENO: result: $ac_cv_lib_cairo_cairo_ps_surface_create" >&5
30598 echo "${ECHO_T}$ac_cv_lib_cairo_cairo_ps_surface_create" >&6; }
30599 if test $ac_cv_lib_cairo_cairo_ps_surface_create = yes; then
30601                  unset ac_cv_header_`echo cairo-ps.h | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`
30602                  if test "${ac_cv_header_cairo_ps_h+set}" = set; then
30603   { echo "$as_me:$LINENO: checking for cairo-ps.h" >&5
30604 echo $ECHO_N "checking for cairo-ps.h... $ECHO_C" >&6; }
30605 if test "${ac_cv_header_cairo_ps_h+set}" = set; then
30606   echo $ECHO_N "(cached) $ECHO_C" >&6
30608 { echo "$as_me:$LINENO: result: $ac_cv_header_cairo_ps_h" >&5
30609 echo "${ECHO_T}$ac_cv_header_cairo_ps_h" >&6; }
30610 else
30611   # Is the header compilable?
30612 { echo "$as_me:$LINENO: checking cairo-ps.h usability" >&5
30613 echo $ECHO_N "checking cairo-ps.h usability... $ECHO_C" >&6; }
30614 cat >conftest.$ac_ext <<_ACEOF
30615 /* confdefs.h.  */
30616 _ACEOF
30617 cat confdefs.h >>conftest.$ac_ext
30618 cat >>conftest.$ac_ext <<_ACEOF
30619 /* end confdefs.h.  */
30620 $ac_includes_default
30621 #include <cairo-ps.h>
30622 _ACEOF
30623 rm -f conftest.$ac_objext
30624 if { (ac_try="$ac_compile"
30625 case "(($ac_try" in
30626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30627   *) ac_try_echo=$ac_try;;
30628 esac
30629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30630   (eval "$ac_compile") 2>conftest.er1
30631   ac_status=$?
30632   grep -v '^ *+' conftest.er1 >conftest.err
30633   rm -f conftest.er1
30634   cat conftest.err >&5
30635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30636   (exit $ac_status); } && {
30637          test -z "$ac_c_werror_flag" ||
30638          test ! -s conftest.err
30639        } && test -s conftest.$ac_objext; then
30640   ac_header_compiler=yes
30641 else
30642   echo "$as_me: failed program was:" >&5
30643 sed 's/^/| /' conftest.$ac_ext >&5
30645         ac_header_compiler=no
30648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30649 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30650 echo "${ECHO_T}$ac_header_compiler" >&6; }
30652 # Is the header present?
30653 { echo "$as_me:$LINENO: checking cairo-ps.h presence" >&5
30654 echo $ECHO_N "checking cairo-ps.h presence... $ECHO_C" >&6; }
30655 cat >conftest.$ac_ext <<_ACEOF
30656 /* confdefs.h.  */
30657 _ACEOF
30658 cat confdefs.h >>conftest.$ac_ext
30659 cat >>conftest.$ac_ext <<_ACEOF
30660 /* end confdefs.h.  */
30661 #include <cairo-ps.h>
30662 _ACEOF
30663 if { (ac_try="$ac_cpp conftest.$ac_ext"
30664 case "(($ac_try" in
30665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30666   *) ac_try_echo=$ac_try;;
30667 esac
30668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30669   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30670   ac_status=$?
30671   grep -v '^ *+' conftest.er1 >conftest.err
30672   rm -f conftest.er1
30673   cat conftest.err >&5
30674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30675   (exit $ac_status); } >/dev/null && {
30676          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30677          test ! -s conftest.err
30678        }; then
30679   ac_header_preproc=yes
30680 else
30681   echo "$as_me: failed program was:" >&5
30682 sed 's/^/| /' conftest.$ac_ext >&5
30684   ac_header_preproc=no
30687 rm -f conftest.err conftest.$ac_ext
30688 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30689 echo "${ECHO_T}$ac_header_preproc" >&6; }
30691 # So?  What about this header?
30692 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30693   yes:no: )
30694     { echo "$as_me:$LINENO: WARNING: cairo-ps.h: accepted by the compiler, rejected by the preprocessor!" >&5
30695 echo "$as_me: WARNING: cairo-ps.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30696     { echo "$as_me:$LINENO: WARNING: cairo-ps.h: proceeding with the compiler's result" >&5
30697 echo "$as_me: WARNING: cairo-ps.h: proceeding with the compiler's result" >&2;}
30698     ac_header_preproc=yes
30699     ;;
30700   no:yes:* )
30701     { echo "$as_me:$LINENO: WARNING: cairo-ps.h: present but cannot be compiled" >&5
30702 echo "$as_me: WARNING: cairo-ps.h: present but cannot be compiled" >&2;}
30703     { echo "$as_me:$LINENO: WARNING: cairo-ps.h:     check for missing prerequisite headers?" >&5
30704 echo "$as_me: WARNING: cairo-ps.h:     check for missing prerequisite headers?" >&2;}
30705     { echo "$as_me:$LINENO: WARNING: cairo-ps.h: see the Autoconf documentation" >&5
30706 echo "$as_me: WARNING: cairo-ps.h: see the Autoconf documentation" >&2;}
30707     { echo "$as_me:$LINENO: WARNING: cairo-ps.h:     section \"Present But Cannot Be Compiled\"" >&5
30708 echo "$as_me: WARNING: cairo-ps.h:     section \"Present But Cannot Be Compiled\"" >&2;}
30709     { echo "$as_me:$LINENO: WARNING: cairo-ps.h: proceeding with the preprocessor's result" >&5
30710 echo "$as_me: WARNING: cairo-ps.h: proceeding with the preprocessor's result" >&2;}
30711     { echo "$as_me:$LINENO: WARNING: cairo-ps.h: in the future, the compiler will take precedence" >&5
30712 echo "$as_me: WARNING: cairo-ps.h: in the future, the compiler will take precedence" >&2;}
30714     ;;
30715 esac
30716 { echo "$as_me:$LINENO: checking for cairo-ps.h" >&5
30717 echo $ECHO_N "checking for cairo-ps.h... $ECHO_C" >&6; }
30718 if test "${ac_cv_header_cairo_ps_h+set}" = set; then
30719   echo $ECHO_N "(cached) $ECHO_C" >&6
30720 else
30721   ac_cv_header_cairo_ps_h=$ac_header_preproc
30723 { echo "$as_me:$LINENO: result: $ac_cv_header_cairo_ps_h" >&5
30724 echo "${ECHO_T}$ac_cv_header_cairo_ps_h" >&6; }
30727 if test $ac_cv_header_cairo_ps_h = yes; then
30728   EX_CHECK_STATE=YES
30735           else
30736              { echo "$as_me:$LINENO: WARNING:
30737 ----------------------------------------------------------------------------
30738 * I found a copy of pkgconfig, but there is no cairo-ps.pc file around.
30739   You may want to set the PKG_CONFIG_PATH variable to point to its
30740   location.
30741 ----------------------------------------------------------------------------
30742                         " >&5
30743 echo "$as_me: WARNING:
30744 ----------------------------------------------------------------------------
30745 * I found a copy of pkgconfig, but there is no cairo-ps.pc file around.
30746   You may want to set the PKG_CONFIG_PATH variable to point to its
30747   location.
30748 ----------------------------------------------------------------------------
30749                         " >&2;}
30750            fi
30751      fi
30752   fi
30754   if test ${EX_CHECK_STATE} = NO; then
30755      { echo "$as_me:$LINENO: WARNING:
30756 ----------------------------------------------------------------------------
30757 * I could not find a working copy of cairo-ps. Check config.log for hints on why
30758   this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
30759   so that compiler and the linker can find libcairo and its header files. If
30760   you have not installed cairo-ps, you can get it either from its original home on
30762      http://cairographics.org/releases/
30764   You can find also find an archive copy on
30766      http://oss.oetiker.ch/rrdtool/pub/libs
30768   The last tested version of cairo-ps is 1.4.6.
30770        LIBS=$LIBS
30771    LDFLAGS=$LDFLAGS
30772   CPPFLAGS=$CPPFLAGS
30774 ----------------------------------------------------------------------------
30775                 " >&5
30776 echo "$as_me: WARNING:
30777 ----------------------------------------------------------------------------
30778 * I could not find a working copy of cairo-ps. Check config.log for hints on why
30779   this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
30780   so that compiler and the linker can find libcairo and its header files. If
30781   you have not installed cairo-ps, you can get it either from its original home on
30783      http://cairographics.org/releases/
30785   You can find also find an archive copy on
30787      http://oss.oetiker.ch/rrdtool/pub/libs
30789   The last tested version of cairo-ps is 1.4.6.
30791        LIBS=$LIBS
30792    LDFLAGS=$LDFLAGS
30793   CPPFLAGS=$CPPFLAGS
30795 ----------------------------------------------------------------------------
30796                 " >&2;}
30797        EX_CHECK_ALL_ERR=YES
30798        LIBS="${ex_check_save_LIBS}"
30799        CPPFLAGS="${ex_check_save_CPPFLAGS}"
30800        LDFLAGS="${ex_check_save_LDFLAGS}"
30801     fi
30802     ac_ext=c
30803 ac_cpp='$CPP $CPPFLAGS'
30804 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30805 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30806 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30811  ac_ext=c
30812 ac_cpp='$CPP $CPPFLAGS'
30813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30817  EX_CHECK_STATE=NO
30818  ex_check_save_LIBS=${LIBS}
30819  ex_check_save_CPPFLAGS=${CPPFLAGS}
30820  ex_check_save_LDFLAGS=${LDFLAGS}
30821  if test "x""" != "x"; then
30822    CPPFLAGS="$CPPFLAGS -I"""
30823  fi
30824   { echo "$as_me:$LINENO: checking for pango_cairo_context_set_font_options in -lpango-1.0" >&5
30825 echo $ECHO_N "checking for pango_cairo_context_set_font_options in -lpango-1.0... $ECHO_C" >&6; }
30826 if test "${ac_cv_lib_pango_1_0_pango_cairo_context_set_font_options+set}" = set; then
30827   echo $ECHO_N "(cached) $ECHO_C" >&6
30828 else
30829   ac_check_lib_save_LIBS=$LIBS
30830 LIBS="-lpango-1.0  $LIBS"
30831 cat >conftest.$ac_ext <<_ACEOF
30832 /* confdefs.h.  */
30833 _ACEOF
30834 cat confdefs.h >>conftest.$ac_ext
30835 cat >>conftest.$ac_ext <<_ACEOF
30836 /* end confdefs.h.  */
30838 /* Override any GCC internal prototype to avoid an error.
30839    Use char because int might match the return type of a GCC
30840    builtin and then its argument prototype would still apply.  */
30841 #ifdef __cplusplus
30842 extern "C"
30843 #endif
30844 char pango_cairo_context_set_font_options ();
30845 int
30846 main ()
30848 return pango_cairo_context_set_font_options ();
30849   ;
30850   return 0;
30852 _ACEOF
30853 rm -f conftest.$ac_objext conftest$ac_exeext
30854 if { (ac_try="$ac_link"
30855 case "(($ac_try" in
30856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30857   *) ac_try_echo=$ac_try;;
30858 esac
30859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30860   (eval "$ac_link") 2>conftest.er1
30861   ac_status=$?
30862   grep -v '^ *+' conftest.er1 >conftest.err
30863   rm -f conftest.er1
30864   cat conftest.err >&5
30865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30866   (exit $ac_status); } && {
30867          test -z "$ac_c_werror_flag" ||
30868          test ! -s conftest.err
30869        } && test -s conftest$ac_exeext &&
30870        $as_test_x conftest$ac_exeext; then
30871   ac_cv_lib_pango_1_0_pango_cairo_context_set_font_options=yes
30872 else
30873   echo "$as_me: failed program was:" >&5
30874 sed 's/^/| /' conftest.$ac_ext >&5
30876         ac_cv_lib_pango_1_0_pango_cairo_context_set_font_options=no
30879 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30880       conftest$ac_exeext conftest.$ac_ext
30881 LIBS=$ac_check_lib_save_LIBS
30883 { echo "$as_me:$LINENO: result: $ac_cv_lib_pango_1_0_pango_cairo_context_set_font_options" >&5
30884 echo "${ECHO_T}$ac_cv_lib_pango_1_0_pango_cairo_context_set_font_options" >&6; }
30885 if test $ac_cv_lib_pango_1_0_pango_cairo_context_set_font_options = yes; then
30887     if test "${ac_cv_header_pango_pango_h+set}" = set; then
30888   { echo "$as_me:$LINENO: checking for pango/pango.h" >&5
30889 echo $ECHO_N "checking for pango/pango.h... $ECHO_C" >&6; }
30890 if test "${ac_cv_header_pango_pango_h+set}" = set; then
30891   echo $ECHO_N "(cached) $ECHO_C" >&6
30893 { echo "$as_me:$LINENO: result: $ac_cv_header_pango_pango_h" >&5
30894 echo "${ECHO_T}$ac_cv_header_pango_pango_h" >&6; }
30895 else
30896   # Is the header compilable?
30897 { echo "$as_me:$LINENO: checking pango/pango.h usability" >&5
30898 echo $ECHO_N "checking pango/pango.h usability... $ECHO_C" >&6; }
30899 cat >conftest.$ac_ext <<_ACEOF
30900 /* confdefs.h.  */
30901 _ACEOF
30902 cat confdefs.h >>conftest.$ac_ext
30903 cat >>conftest.$ac_ext <<_ACEOF
30904 /* end confdefs.h.  */
30905 $ac_includes_default
30906 #include <pango/pango.h>
30907 _ACEOF
30908 rm -f conftest.$ac_objext
30909 if { (ac_try="$ac_compile"
30910 case "(($ac_try" in
30911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30912   *) ac_try_echo=$ac_try;;
30913 esac
30914 eval "echo \"\$as_me:$LINENO: $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   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   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 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30935 echo "${ECHO_T}$ac_header_compiler" >&6; }
30937 # Is the header present?
30938 { echo "$as_me:$LINENO: checking pango/pango.h presence" >&5
30939 echo $ECHO_N "checking pango/pango.h presence... $ECHO_C" >&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 <pango/pango.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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30954   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30955   ac_status=$?
30956   grep -v '^ *+' conftest.er1 >conftest.err
30957   rm -f conftest.er1
30958   cat conftest.err >&5
30959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30960   (exit $ac_status); } >/dev/null && {
30961          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30962          test ! -s conftest.err
30963        }; then
30964   ac_header_preproc=yes
30965 else
30966   echo "$as_me: failed program was:" >&5
30967 sed 's/^/| /' conftest.$ac_ext >&5
30969   ac_header_preproc=no
30972 rm -f conftest.err conftest.$ac_ext
30973 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30974 echo "${ECHO_T}$ac_header_preproc" >&6; }
30976 # So?  What about this header?
30977 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30978   yes:no: )
30979     { echo "$as_me:$LINENO: WARNING: pango/pango.h: accepted by the compiler, rejected by the preprocessor!" >&5
30980 echo "$as_me: WARNING: pango/pango.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30981     { echo "$as_me:$LINENO: WARNING: pango/pango.h: proceeding with the compiler's result" >&5
30982 echo "$as_me: WARNING: pango/pango.h: proceeding with the compiler's result" >&2;}
30983     ac_header_preproc=yes
30984     ;;
30985   no:yes:* )
30986     { echo "$as_me:$LINENO: WARNING: pango/pango.h: present but cannot be compiled" >&5
30987 echo "$as_me: WARNING: pango/pango.h: present but cannot be compiled" >&2;}
30988     { echo "$as_me:$LINENO: WARNING: pango/pango.h:     check for missing prerequisite headers?" >&5
30989 echo "$as_me: WARNING: pango/pango.h:     check for missing prerequisite headers?" >&2;}
30990     { echo "$as_me:$LINENO: WARNING: pango/pango.h: see the Autoconf documentation" >&5
30991 echo "$as_me: WARNING: pango/pango.h: see the Autoconf documentation" >&2;}
30992     { echo "$as_me:$LINENO: WARNING: pango/pango.h:     section \"Present But Cannot Be Compiled\"" >&5
30993 echo "$as_me: WARNING: pango/pango.h:     section \"Present But Cannot Be Compiled\"" >&2;}
30994     { echo "$as_me:$LINENO: WARNING: pango/pango.h: proceeding with the preprocessor's result" >&5
30995 echo "$as_me: WARNING: pango/pango.h: proceeding with the preprocessor's result" >&2;}
30996     { echo "$as_me:$LINENO: WARNING: pango/pango.h: in the future, the compiler will take precedence" >&5
30997 echo "$as_me: WARNING: pango/pango.h: in the future, the compiler will take precedence" >&2;}
30999     ;;
31000 esac
31001 { echo "$as_me:$LINENO: checking for pango/pango.h" >&5
31002 echo $ECHO_N "checking for pango/pango.h... $ECHO_C" >&6; }
31003 if test "${ac_cv_header_pango_pango_h+set}" = set; then
31004   echo $ECHO_N "(cached) $ECHO_C" >&6
31005 else
31006   ac_cv_header_pango_pango_h=$ac_header_preproc
31008 { echo "$as_me:$LINENO: result: $ac_cv_header_pango_pango_h" >&5
31009 echo "${ECHO_T}$ac_cv_header_pango_pango_h" >&6; }
31012 if test $ac_cv_header_pango_pango_h = yes; then
31013   LIBS="-lpango-1.0 ${LIBS}";EX_CHECK_STATE=YES
31019  if test $EX_CHECK_STATE = NO; then
31020         for ac_prog in pkg-config
31022   # Extract the first word of "$ac_prog", so it can be a program name with args.
31023 set dummy $ac_prog; ac_word=$2
31024 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31025 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31026 if test "${ac_cv_prog_PKGCONFIG+set}" = set; then
31027   echo $ECHO_N "(cached) $ECHO_C" >&6
31028 else
31029   if test -n "$PKGCONFIG"; then
31030   ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
31031 else
31032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31033 for as_dir in $PATH
31035   IFS=$as_save_IFS
31036   test -z "$as_dir" && as_dir=.
31037   for ac_exec_ext in '' $ac_executable_extensions; do
31038   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31039     ac_cv_prog_PKGCONFIG="$ac_prog"
31040     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31041     break 2
31042   fi
31043 done
31044 done
31045 IFS=$as_save_IFS
31049 PKGCONFIG=$ac_cv_prog_PKGCONFIG
31050 if test -n "$PKGCONFIG"; then
31051   { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
31052 echo "${ECHO_T}$PKGCONFIG" >&6; }
31053 else
31054   { echo "$as_me:$LINENO: result: no" >&5
31055 echo "${ECHO_T}no" >&6; }
31059   test -n "$PKGCONFIG" && break
31060 done
31061 test -n "$PKGCONFIG" || PKGCONFIG="no"
31063     if test "$PKGCONFIG" != "no"; then
31064           if $PKGCONFIG --exists pangocairo; then
31065              CPPFLAGS=${CPPFLAGS}" "`$PKGCONFIG --cflags pangocairo`
31066              LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-L pangocairo`
31067              LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-other pangocairo`
31068              LIBS=${LIBS}" "`$PKGCONFIG --libs-only-l pangocairo`
31069                              unset ac_cv_lib_`echo pango-1.0 | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`_pango_cairo_context_set_font_options
31070              { echo "$as_me:$LINENO: checking for pango_cairo_context_set_font_options in -lpango-1.0" >&5
31071 echo $ECHO_N "checking for pango_cairo_context_set_font_options in -lpango-1.0... $ECHO_C" >&6; }
31072 if test "${ac_cv_lib_pango_1_0_pango_cairo_context_set_font_options+set}" = set; then
31073   echo $ECHO_N "(cached) $ECHO_C" >&6
31074 else
31075   ac_check_lib_save_LIBS=$LIBS
31076 LIBS="-lpango-1.0  $LIBS"
31077 cat >conftest.$ac_ext <<_ACEOF
31078 /* confdefs.h.  */
31079 _ACEOF
31080 cat confdefs.h >>conftest.$ac_ext
31081 cat >>conftest.$ac_ext <<_ACEOF
31082 /* end confdefs.h.  */
31084 /* Override any GCC internal prototype to avoid an error.
31085    Use char because int might match the return type of a GCC
31086    builtin and then its argument prototype would still apply.  */
31087 #ifdef __cplusplus
31088 extern "C"
31089 #endif
31090 char pango_cairo_context_set_font_options ();
31091 int
31092 main ()
31094 return pango_cairo_context_set_font_options ();
31095   ;
31096   return 0;
31098 _ACEOF
31099 rm -f conftest.$ac_objext conftest$ac_exeext
31100 if { (ac_try="$ac_link"
31101 case "(($ac_try" in
31102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31103   *) ac_try_echo=$ac_try;;
31104 esac
31105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31106   (eval "$ac_link") 2>conftest.er1
31107   ac_status=$?
31108   grep -v '^ *+' conftest.er1 >conftest.err
31109   rm -f conftest.er1
31110   cat conftest.err >&5
31111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31112   (exit $ac_status); } && {
31113          test -z "$ac_c_werror_flag" ||
31114          test ! -s conftest.err
31115        } && test -s conftest$ac_exeext &&
31116        $as_test_x conftest$ac_exeext; then
31117   ac_cv_lib_pango_1_0_pango_cairo_context_set_font_options=yes
31118 else
31119   echo "$as_me: failed program was:" >&5
31120 sed 's/^/| /' conftest.$ac_ext >&5
31122         ac_cv_lib_pango_1_0_pango_cairo_context_set_font_options=no
31125 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31126       conftest$ac_exeext conftest.$ac_ext
31127 LIBS=$ac_check_lib_save_LIBS
31129 { echo "$as_me:$LINENO: result: $ac_cv_lib_pango_1_0_pango_cairo_context_set_font_options" >&5
31130 echo "${ECHO_T}$ac_cv_lib_pango_1_0_pango_cairo_context_set_font_options" >&6; }
31131 if test $ac_cv_lib_pango_1_0_pango_cairo_context_set_font_options = yes; then
31133                  unset ac_cv_header_`echo pango/pango.h | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`
31134                  if test "${ac_cv_header_pango_pango_h+set}" = set; then
31135   { echo "$as_me:$LINENO: checking for pango/pango.h" >&5
31136 echo $ECHO_N "checking for pango/pango.h... $ECHO_C" >&6; }
31137 if test "${ac_cv_header_pango_pango_h+set}" = set; then
31138   echo $ECHO_N "(cached) $ECHO_C" >&6
31140 { echo "$as_me:$LINENO: result: $ac_cv_header_pango_pango_h" >&5
31141 echo "${ECHO_T}$ac_cv_header_pango_pango_h" >&6; }
31142 else
31143   # Is the header compilable?
31144 { echo "$as_me:$LINENO: checking pango/pango.h usability" >&5
31145 echo $ECHO_N "checking pango/pango.h usability... $ECHO_C" >&6; }
31146 cat >conftest.$ac_ext <<_ACEOF
31147 /* confdefs.h.  */
31148 _ACEOF
31149 cat confdefs.h >>conftest.$ac_ext
31150 cat >>conftest.$ac_ext <<_ACEOF
31151 /* end confdefs.h.  */
31152 $ac_includes_default
31153 #include <pango/pango.h>
31154 _ACEOF
31155 rm -f conftest.$ac_objext
31156 if { (ac_try="$ac_compile"
31157 case "(($ac_try" in
31158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31159   *) ac_try_echo=$ac_try;;
31160 esac
31161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31162   (eval "$ac_compile") 2>conftest.er1
31163   ac_status=$?
31164   grep -v '^ *+' conftest.er1 >conftest.err
31165   rm -f conftest.er1
31166   cat conftest.err >&5
31167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31168   (exit $ac_status); } && {
31169          test -z "$ac_c_werror_flag" ||
31170          test ! -s conftest.err
31171        } && test -s conftest.$ac_objext; then
31172   ac_header_compiler=yes
31173 else
31174   echo "$as_me: failed program was:" >&5
31175 sed 's/^/| /' conftest.$ac_ext >&5
31177         ac_header_compiler=no
31180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31181 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31182 echo "${ECHO_T}$ac_header_compiler" >&6; }
31184 # Is the header present?
31185 { echo "$as_me:$LINENO: checking pango/pango.h presence" >&5
31186 echo $ECHO_N "checking pango/pango.h presence... $ECHO_C" >&6; }
31187 cat >conftest.$ac_ext <<_ACEOF
31188 /* confdefs.h.  */
31189 _ACEOF
31190 cat confdefs.h >>conftest.$ac_ext
31191 cat >>conftest.$ac_ext <<_ACEOF
31192 /* end confdefs.h.  */
31193 #include <pango/pango.h>
31194 _ACEOF
31195 if { (ac_try="$ac_cpp conftest.$ac_ext"
31196 case "(($ac_try" in
31197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31198   *) ac_try_echo=$ac_try;;
31199 esac
31200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31201   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31202   ac_status=$?
31203   grep -v '^ *+' conftest.er1 >conftest.err
31204   rm -f conftest.er1
31205   cat conftest.err >&5
31206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31207   (exit $ac_status); } >/dev/null && {
31208          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31209          test ! -s conftest.err
31210        }; then
31211   ac_header_preproc=yes
31212 else
31213   echo "$as_me: failed program was:" >&5
31214 sed 's/^/| /' conftest.$ac_ext >&5
31216   ac_header_preproc=no
31219 rm -f conftest.err conftest.$ac_ext
31220 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31221 echo "${ECHO_T}$ac_header_preproc" >&6; }
31223 # So?  What about this header?
31224 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31225   yes:no: )
31226     { echo "$as_me:$LINENO: WARNING: pango/pango.h: accepted by the compiler, rejected by the preprocessor!" >&5
31227 echo "$as_me: WARNING: pango/pango.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31228     { echo "$as_me:$LINENO: WARNING: pango/pango.h: proceeding with the compiler's result" >&5
31229 echo "$as_me: WARNING: pango/pango.h: proceeding with the compiler's result" >&2;}
31230     ac_header_preproc=yes
31231     ;;
31232   no:yes:* )
31233     { echo "$as_me:$LINENO: WARNING: pango/pango.h: present but cannot be compiled" >&5
31234 echo "$as_me: WARNING: pango/pango.h: present but cannot be compiled" >&2;}
31235     { echo "$as_me:$LINENO: WARNING: pango/pango.h:     check for missing prerequisite headers?" >&5
31236 echo "$as_me: WARNING: pango/pango.h:     check for missing prerequisite headers?" >&2;}
31237     { echo "$as_me:$LINENO: WARNING: pango/pango.h: see the Autoconf documentation" >&5
31238 echo "$as_me: WARNING: pango/pango.h: see the Autoconf documentation" >&2;}
31239     { echo "$as_me:$LINENO: WARNING: pango/pango.h:     section \"Present But Cannot Be Compiled\"" >&5
31240 echo "$as_me: WARNING: pango/pango.h:     section \"Present But Cannot Be Compiled\"" >&2;}
31241     { echo "$as_me:$LINENO: WARNING: pango/pango.h: proceeding with the preprocessor's result" >&5
31242 echo "$as_me: WARNING: pango/pango.h: proceeding with the preprocessor's result" >&2;}
31243     { echo "$as_me:$LINENO: WARNING: pango/pango.h: in the future, the compiler will take precedence" >&5
31244 echo "$as_me: WARNING: pango/pango.h: in the future, the compiler will take precedence" >&2;}
31246     ;;
31247 esac
31248 { echo "$as_me:$LINENO: checking for pango/pango.h" >&5
31249 echo $ECHO_N "checking for pango/pango.h... $ECHO_C" >&6; }
31250 if test "${ac_cv_header_pango_pango_h+set}" = set; then
31251   echo $ECHO_N "(cached) $ECHO_C" >&6
31252 else
31253   ac_cv_header_pango_pango_h=$ac_header_preproc
31255 { echo "$as_me:$LINENO: result: $ac_cv_header_pango_pango_h" >&5
31256 echo "${ECHO_T}$ac_cv_header_pango_pango_h" >&6; }
31259 if test $ac_cv_header_pango_pango_h = yes; then
31260   EX_CHECK_STATE=YES
31267           else
31268              { echo "$as_me:$LINENO: WARNING:
31269 ----------------------------------------------------------------------------
31270 * I found a copy of pkgconfig, but there is no pangocairo.pc file around.
31271   You may want to set the PKG_CONFIG_PATH variable to point to its
31272   location.
31273 ----------------------------------------------------------------------------
31274                         " >&5
31275 echo "$as_me: WARNING:
31276 ----------------------------------------------------------------------------
31277 * I found a copy of pkgconfig, but there is no pangocairo.pc file around.
31278   You may want to set the PKG_CONFIG_PATH variable to point to its
31279   location.
31280 ----------------------------------------------------------------------------
31281                         " >&2;}
31282            fi
31283      fi
31284   fi
31286   if test ${EX_CHECK_STATE} = NO; then
31287      { echo "$as_me:$LINENO: WARNING:
31288 ----------------------------------------------------------------------------
31289 * I could not find a working copy of pangocairo. Check config.log for hints on why
31290   this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
31291   so that compiler and the linker can find libpango-1.0 and its header files. If
31292   you have not installed pangocairo, you can get it either from its original home on
31294      http://ftp.gnome.org/pub/GNOME/sources/pango/1.17
31296   You can find also find an archive copy on
31298      http://oss.oetiker.ch/rrdtool/pub/libs
31300   The last tested version of pangocairo is 1.17.
31302        LIBS=$LIBS
31303    LDFLAGS=$LDFLAGS
31304   CPPFLAGS=$CPPFLAGS
31306 ----------------------------------------------------------------------------
31307                 " >&5
31308 echo "$as_me: WARNING:
31309 ----------------------------------------------------------------------------
31310 * I could not find a working copy of pangocairo. Check config.log for hints on why
31311   this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
31312   so that compiler and the linker can find libpango-1.0 and its header files. If
31313   you have not installed pangocairo, you can get it either from its original home on
31315      http://ftp.gnome.org/pub/GNOME/sources/pango/1.17
31317   You can find also find an archive copy on
31319      http://oss.oetiker.ch/rrdtool/pub/libs
31321   The last tested version of pangocairo is 1.17.
31323        LIBS=$LIBS
31324    LDFLAGS=$LDFLAGS
31325   CPPFLAGS=$CPPFLAGS
31327 ----------------------------------------------------------------------------
31328                 " >&2;}
31329        EX_CHECK_ALL_ERR=YES
31330        LIBS="${ex_check_save_LIBS}"
31331        CPPFLAGS="${ex_check_save_CPPFLAGS}"
31332        LDFLAGS="${ex_check_save_LDFLAGS}"
31333     fi
31334     ac_ext=c
31335 ac_cpp='$CPP $CPPFLAGS'
31336 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31337 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31338 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31343  ac_ext=c
31344 ac_cpp='$CPP $CPPFLAGS'
31345 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31346 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31347 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31349  EX_CHECK_STATE=NO
31350  ex_check_save_LIBS=${LIBS}
31351  ex_check_save_CPPFLAGS=${CPPFLAGS}
31352  ex_check_save_LDFLAGS=${LDFLAGS}
31353  if test "x/usr/include/libxml2" != "x"; then
31354    CPPFLAGS="$CPPFLAGS -I/usr/include/libxml2"
31355  fi
31356   { echo "$as_me:$LINENO: checking for xmlParseFile in -lxml2" >&5
31357 echo $ECHO_N "checking for xmlParseFile in -lxml2... $ECHO_C" >&6; }
31358 if test "${ac_cv_lib_xml2_xmlParseFile+set}" = set; then
31359   echo $ECHO_N "(cached) $ECHO_C" >&6
31360 else
31361   ac_check_lib_save_LIBS=$LIBS
31362 LIBS="-lxml2  $LIBS"
31363 cat >conftest.$ac_ext <<_ACEOF
31364 /* confdefs.h.  */
31365 _ACEOF
31366 cat confdefs.h >>conftest.$ac_ext
31367 cat >>conftest.$ac_ext <<_ACEOF
31368 /* end confdefs.h.  */
31370 /* Override any GCC internal prototype to avoid an error.
31371    Use char because int might match the return type of a GCC
31372    builtin and then its argument prototype would still apply.  */
31373 #ifdef __cplusplus
31374 extern "C"
31375 #endif
31376 char xmlParseFile ();
31377 int
31378 main ()
31380 return xmlParseFile ();
31381   ;
31382   return 0;
31384 _ACEOF
31385 rm -f conftest.$ac_objext conftest$ac_exeext
31386 if { (ac_try="$ac_link"
31387 case "(($ac_try" in
31388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31389   *) ac_try_echo=$ac_try;;
31390 esac
31391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31392   (eval "$ac_link") 2>conftest.er1
31393   ac_status=$?
31394   grep -v '^ *+' conftest.er1 >conftest.err
31395   rm -f conftest.er1
31396   cat conftest.err >&5
31397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31398   (exit $ac_status); } && {
31399          test -z "$ac_c_werror_flag" ||
31400          test ! -s conftest.err
31401        } && test -s conftest$ac_exeext &&
31402        $as_test_x conftest$ac_exeext; then
31403   ac_cv_lib_xml2_xmlParseFile=yes
31404 else
31405   echo "$as_me: failed program was:" >&5
31406 sed 's/^/| /' conftest.$ac_ext >&5
31408         ac_cv_lib_xml2_xmlParseFile=no
31411 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31412       conftest$ac_exeext conftest.$ac_ext
31413 LIBS=$ac_check_lib_save_LIBS
31415 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlParseFile" >&5
31416 echo "${ECHO_T}$ac_cv_lib_xml2_xmlParseFile" >&6; }
31417 if test $ac_cv_lib_xml2_xmlParseFile = yes; then
31419     if test "${ac_cv_header_libxml_parser_h+set}" = set; then
31420   { echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
31421 echo $ECHO_N "checking for libxml/parser.h... $ECHO_C" >&6; }
31422 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
31423   echo $ECHO_N "(cached) $ECHO_C" >&6
31425 { echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
31426 echo "${ECHO_T}$ac_cv_header_libxml_parser_h" >&6; }
31427 else
31428   # Is the header compilable?
31429 { echo "$as_me:$LINENO: checking libxml/parser.h usability" >&5
31430 echo $ECHO_N "checking libxml/parser.h usability... $ECHO_C" >&6; }
31431 cat >conftest.$ac_ext <<_ACEOF
31432 /* confdefs.h.  */
31433 _ACEOF
31434 cat confdefs.h >>conftest.$ac_ext
31435 cat >>conftest.$ac_ext <<_ACEOF
31436 /* end confdefs.h.  */
31437 $ac_includes_default
31438 #include <libxml/parser.h>
31439 _ACEOF
31440 rm -f conftest.$ac_objext
31441 if { (ac_try="$ac_compile"
31442 case "(($ac_try" in
31443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31444   *) ac_try_echo=$ac_try;;
31445 esac
31446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31447   (eval "$ac_compile") 2>conftest.er1
31448   ac_status=$?
31449   grep -v '^ *+' conftest.er1 >conftest.err
31450   rm -f conftest.er1
31451   cat conftest.err >&5
31452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31453   (exit $ac_status); } && {
31454          test -z "$ac_c_werror_flag" ||
31455          test ! -s conftest.err
31456        } && test -s conftest.$ac_objext; then
31457   ac_header_compiler=yes
31458 else
31459   echo "$as_me: failed program was:" >&5
31460 sed 's/^/| /' conftest.$ac_ext >&5
31462         ac_header_compiler=no
31465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31466 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31467 echo "${ECHO_T}$ac_header_compiler" >&6; }
31469 # Is the header present?
31470 { echo "$as_me:$LINENO: checking libxml/parser.h presence" >&5
31471 echo $ECHO_N "checking libxml/parser.h presence... $ECHO_C" >&6; }
31472 cat >conftest.$ac_ext <<_ACEOF
31473 /* confdefs.h.  */
31474 _ACEOF
31475 cat confdefs.h >>conftest.$ac_ext
31476 cat >>conftest.$ac_ext <<_ACEOF
31477 /* end confdefs.h.  */
31478 #include <libxml/parser.h>
31479 _ACEOF
31480 if { (ac_try="$ac_cpp conftest.$ac_ext"
31481 case "(($ac_try" in
31482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31483   *) ac_try_echo=$ac_try;;
31484 esac
31485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31486   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31487   ac_status=$?
31488   grep -v '^ *+' conftest.er1 >conftest.err
31489   rm -f conftest.er1
31490   cat conftest.err >&5
31491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31492   (exit $ac_status); } >/dev/null && {
31493          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31494          test ! -s conftest.err
31495        }; then
31496   ac_header_preproc=yes
31497 else
31498   echo "$as_me: failed program was:" >&5
31499 sed 's/^/| /' conftest.$ac_ext >&5
31501   ac_header_preproc=no
31504 rm -f conftest.err conftest.$ac_ext
31505 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31506 echo "${ECHO_T}$ac_header_preproc" >&6; }
31508 # So?  What about this header?
31509 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31510   yes:no: )
31511     { echo "$as_me:$LINENO: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&5
31512 echo "$as_me: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31513     { echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the compiler's result" >&5
31514 echo "$as_me: WARNING: libxml/parser.h: proceeding with the compiler's result" >&2;}
31515     ac_header_preproc=yes
31516     ;;
31517   no:yes:* )
31518     { echo "$as_me:$LINENO: WARNING: libxml/parser.h: present but cannot be compiled" >&5
31519 echo "$as_me: WARNING: libxml/parser.h: present but cannot be compiled" >&2;}
31520     { echo "$as_me:$LINENO: WARNING: libxml/parser.h:     check for missing prerequisite headers?" >&5
31521 echo "$as_me: WARNING: libxml/parser.h:     check for missing prerequisite headers?" >&2;}
31522     { echo "$as_me:$LINENO: WARNING: libxml/parser.h: see the Autoconf documentation" >&5
31523 echo "$as_me: WARNING: libxml/parser.h: see the Autoconf documentation" >&2;}
31524     { echo "$as_me:$LINENO: WARNING: libxml/parser.h:     section \"Present But Cannot Be Compiled\"" >&5
31525 echo "$as_me: WARNING: libxml/parser.h:     section \"Present But Cannot Be Compiled\"" >&2;}
31526     { echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&5
31527 echo "$as_me: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&2;}
31528     { echo "$as_me:$LINENO: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&5
31529 echo "$as_me: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&2;}
31531     ;;
31532 esac
31533 { echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
31534 echo $ECHO_N "checking for libxml/parser.h... $ECHO_C" >&6; }
31535 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
31536   echo $ECHO_N "(cached) $ECHO_C" >&6
31537 else
31538   ac_cv_header_libxml_parser_h=$ac_header_preproc
31540 { echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
31541 echo "${ECHO_T}$ac_cv_header_libxml_parser_h" >&6; }
31544 if test $ac_cv_header_libxml_parser_h = yes; then
31545   LIBS="-lxml2 ${LIBS}";EX_CHECK_STATE=YES
31551  if test $EX_CHECK_STATE = NO; then
31552         for ac_prog in pkg-config
31554   # Extract the first word of "$ac_prog", so it can be a program name with args.
31555 set dummy $ac_prog; ac_word=$2
31556 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31558 if test "${ac_cv_prog_PKGCONFIG+set}" = set; then
31559   echo $ECHO_N "(cached) $ECHO_C" >&6
31560 else
31561   if test -n "$PKGCONFIG"; then
31562   ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
31563 else
31564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31565 for as_dir in $PATH
31567   IFS=$as_save_IFS
31568   test -z "$as_dir" && as_dir=.
31569   for ac_exec_ext in '' $ac_executable_extensions; do
31570   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31571     ac_cv_prog_PKGCONFIG="$ac_prog"
31572     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31573     break 2
31574   fi
31575 done
31576 done
31577 IFS=$as_save_IFS
31581 PKGCONFIG=$ac_cv_prog_PKGCONFIG
31582 if test -n "$PKGCONFIG"; then
31583   { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
31584 echo "${ECHO_T}$PKGCONFIG" >&6; }
31585 else
31586   { echo "$as_me:$LINENO: result: no" >&5
31587 echo "${ECHO_T}no" >&6; }
31591   test -n "$PKGCONFIG" && break
31592 done
31593 test -n "$PKGCONFIG" || PKGCONFIG="no"
31595     if test "$PKGCONFIG" != "no"; then
31596           if $PKGCONFIG --exists libxml-2.0; then
31597              CPPFLAGS=${CPPFLAGS}" "`$PKGCONFIG --cflags libxml-2.0`
31598              LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-L libxml-2.0`
31599              LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-other libxml-2.0`
31600              LIBS=${LIBS}" "`$PKGCONFIG --libs-only-l libxml-2.0`
31601                              unset ac_cv_lib_`echo xml2 | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`_xmlParseFile
31602              { echo "$as_me:$LINENO: checking for xmlParseFile in -lxml2" >&5
31603 echo $ECHO_N "checking for xmlParseFile in -lxml2... $ECHO_C" >&6; }
31604 if test "${ac_cv_lib_xml2_xmlParseFile+set}" = set; then
31605   echo $ECHO_N "(cached) $ECHO_C" >&6
31606 else
31607   ac_check_lib_save_LIBS=$LIBS
31608 LIBS="-lxml2  $LIBS"
31609 cat >conftest.$ac_ext <<_ACEOF
31610 /* confdefs.h.  */
31611 _ACEOF
31612 cat confdefs.h >>conftest.$ac_ext
31613 cat >>conftest.$ac_ext <<_ACEOF
31614 /* end confdefs.h.  */
31616 /* Override any GCC internal prototype to avoid an error.
31617    Use char because int might match the return type of a GCC
31618    builtin and then its argument prototype would still apply.  */
31619 #ifdef __cplusplus
31620 extern "C"
31621 #endif
31622 char xmlParseFile ();
31623 int
31624 main ()
31626 return xmlParseFile ();
31627   ;
31628   return 0;
31630 _ACEOF
31631 rm -f conftest.$ac_objext conftest$ac_exeext
31632 if { (ac_try="$ac_link"
31633 case "(($ac_try" in
31634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31635   *) ac_try_echo=$ac_try;;
31636 esac
31637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31638   (eval "$ac_link") 2>conftest.er1
31639   ac_status=$?
31640   grep -v '^ *+' conftest.er1 >conftest.err
31641   rm -f conftest.er1
31642   cat conftest.err >&5
31643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31644   (exit $ac_status); } && {
31645          test -z "$ac_c_werror_flag" ||
31646          test ! -s conftest.err
31647        } && test -s conftest$ac_exeext &&
31648        $as_test_x conftest$ac_exeext; then
31649   ac_cv_lib_xml2_xmlParseFile=yes
31650 else
31651   echo "$as_me: failed program was:" >&5
31652 sed 's/^/| /' conftest.$ac_ext >&5
31654         ac_cv_lib_xml2_xmlParseFile=no
31657 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31658       conftest$ac_exeext conftest.$ac_ext
31659 LIBS=$ac_check_lib_save_LIBS
31661 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlParseFile" >&5
31662 echo "${ECHO_T}$ac_cv_lib_xml2_xmlParseFile" >&6; }
31663 if test $ac_cv_lib_xml2_xmlParseFile = yes; then
31665                  unset ac_cv_header_`echo libxml/parser.h | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`
31666                  if test "${ac_cv_header_libxml_parser_h+set}" = set; then
31667   { echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
31668 echo $ECHO_N "checking for libxml/parser.h... $ECHO_C" >&6; }
31669 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
31670   echo $ECHO_N "(cached) $ECHO_C" >&6
31672 { echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
31673 echo "${ECHO_T}$ac_cv_header_libxml_parser_h" >&6; }
31674 else
31675   # Is the header compilable?
31676 { echo "$as_me:$LINENO: checking libxml/parser.h usability" >&5
31677 echo $ECHO_N "checking libxml/parser.h usability... $ECHO_C" >&6; }
31678 cat >conftest.$ac_ext <<_ACEOF
31679 /* confdefs.h.  */
31680 _ACEOF
31681 cat confdefs.h >>conftest.$ac_ext
31682 cat >>conftest.$ac_ext <<_ACEOF
31683 /* end confdefs.h.  */
31684 $ac_includes_default
31685 #include <libxml/parser.h>
31686 _ACEOF
31687 rm -f conftest.$ac_objext
31688 if { (ac_try="$ac_compile"
31689 case "(($ac_try" in
31690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31691   *) ac_try_echo=$ac_try;;
31692 esac
31693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31694   (eval "$ac_compile") 2>conftest.er1
31695   ac_status=$?
31696   grep -v '^ *+' conftest.er1 >conftest.err
31697   rm -f conftest.er1
31698   cat conftest.err >&5
31699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31700   (exit $ac_status); } && {
31701          test -z "$ac_c_werror_flag" ||
31702          test ! -s conftest.err
31703        } && test -s conftest.$ac_objext; then
31704   ac_header_compiler=yes
31705 else
31706   echo "$as_me: failed program was:" >&5
31707 sed 's/^/| /' conftest.$ac_ext >&5
31709         ac_header_compiler=no
31712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31713 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31714 echo "${ECHO_T}$ac_header_compiler" >&6; }
31716 # Is the header present?
31717 { echo "$as_me:$LINENO: checking libxml/parser.h presence" >&5
31718 echo $ECHO_N "checking libxml/parser.h presence... $ECHO_C" >&6; }
31719 cat >conftest.$ac_ext <<_ACEOF
31720 /* confdefs.h.  */
31721 _ACEOF
31722 cat confdefs.h >>conftest.$ac_ext
31723 cat >>conftest.$ac_ext <<_ACEOF
31724 /* end confdefs.h.  */
31725 #include <libxml/parser.h>
31726 _ACEOF
31727 if { (ac_try="$ac_cpp conftest.$ac_ext"
31728 case "(($ac_try" in
31729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31730   *) ac_try_echo=$ac_try;;
31731 esac
31732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31733   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31734   ac_status=$?
31735   grep -v '^ *+' conftest.er1 >conftest.err
31736   rm -f conftest.er1
31737   cat conftest.err >&5
31738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31739   (exit $ac_status); } >/dev/null && {
31740          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31741          test ! -s conftest.err
31742        }; then
31743   ac_header_preproc=yes
31744 else
31745   echo "$as_me: failed program was:" >&5
31746 sed 's/^/| /' conftest.$ac_ext >&5
31748   ac_header_preproc=no
31751 rm -f conftest.err conftest.$ac_ext
31752 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31753 echo "${ECHO_T}$ac_header_preproc" >&6; }
31755 # So?  What about this header?
31756 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31757   yes:no: )
31758     { echo "$as_me:$LINENO: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&5
31759 echo "$as_me: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31760     { echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the compiler's result" >&5
31761 echo "$as_me: WARNING: libxml/parser.h: proceeding with the compiler's result" >&2;}
31762     ac_header_preproc=yes
31763     ;;
31764   no:yes:* )
31765     { echo "$as_me:$LINENO: WARNING: libxml/parser.h: present but cannot be compiled" >&5
31766 echo "$as_me: WARNING: libxml/parser.h: present but cannot be compiled" >&2;}
31767     { echo "$as_me:$LINENO: WARNING: libxml/parser.h:     check for missing prerequisite headers?" >&5
31768 echo "$as_me: WARNING: libxml/parser.h:     check for missing prerequisite headers?" >&2;}
31769     { echo "$as_me:$LINENO: WARNING: libxml/parser.h: see the Autoconf documentation" >&5
31770 echo "$as_me: WARNING: libxml/parser.h: see the Autoconf documentation" >&2;}
31771     { echo "$as_me:$LINENO: WARNING: libxml/parser.h:     section \"Present But Cannot Be Compiled\"" >&5
31772 echo "$as_me: WARNING: libxml/parser.h:     section \"Present But Cannot Be Compiled\"" >&2;}
31773     { echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&5
31774 echo "$as_me: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&2;}
31775     { echo "$as_me:$LINENO: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&5
31776 echo "$as_me: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&2;}
31778     ;;
31779 esac
31780 { echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
31781 echo $ECHO_N "checking for libxml/parser.h... $ECHO_C" >&6; }
31782 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
31783   echo $ECHO_N "(cached) $ECHO_C" >&6
31784 else
31785   ac_cv_header_libxml_parser_h=$ac_header_preproc
31787 { echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
31788 echo "${ECHO_T}$ac_cv_header_libxml_parser_h" >&6; }
31791 if test $ac_cv_header_libxml_parser_h = yes; then
31792   EX_CHECK_STATE=YES
31799           else
31800              { echo "$as_me:$LINENO: WARNING:
31801 ----------------------------------------------------------------------------
31802 * I found a copy of pkgconfig, but there is no libxml-2.0.pc file around.
31803   You may want to set the PKG_CONFIG_PATH variable to point to its
31804   location.
31805 ----------------------------------------------------------------------------
31806                         " >&5
31807 echo "$as_me: WARNING:
31808 ----------------------------------------------------------------------------
31809 * I found a copy of pkgconfig, but there is no libxml-2.0.pc file around.
31810   You may want to set the PKG_CONFIG_PATH variable to point to its
31811   location.
31812 ----------------------------------------------------------------------------
31813                         " >&2;}
31814            fi
31815      fi
31816   fi
31818   if test ${EX_CHECK_STATE} = NO; then
31819      { echo "$as_me:$LINENO: WARNING:
31820 ----------------------------------------------------------------------------
31821 * I could not find a working copy of libxml-2.0. Check config.log for hints on why
31822   this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
31823   so that compiler and the linker can find libxml2 and its header files. If
31824   you have not installed libxml-2.0, you can get it either from its original home on
31826      http://xmlsoft.org/downloads.html
31828   You can find also find an archive copy on
31830      http://oss.oetiker.ch/rrdtool/pub/libs
31832   The last tested version of libxml-2.0 is 2.6.31.
31834        LIBS=$LIBS
31835    LDFLAGS=$LDFLAGS
31836   CPPFLAGS=$CPPFLAGS
31838 ----------------------------------------------------------------------------
31839                 " >&5
31840 echo "$as_me: WARNING:
31841 ----------------------------------------------------------------------------
31842 * I could not find a working copy of libxml-2.0. Check config.log for hints on why
31843   this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
31844   so that compiler and the linker can find libxml2 and its header files. If
31845   you have not installed libxml-2.0, you can get it either from its original home on
31847      http://xmlsoft.org/downloads.html
31849   You can find also find an archive copy on
31851      http://oss.oetiker.ch/rrdtool/pub/libs
31853   The last tested version of libxml-2.0 is 2.6.31.
31855        LIBS=$LIBS
31856    LDFLAGS=$LDFLAGS
31857   CPPFLAGS=$CPPFLAGS
31859 ----------------------------------------------------------------------------
31860                 " >&2;}
31861        EX_CHECK_ALL_ERR=YES
31862        LIBS="${ex_check_save_LIBS}"
31863        CPPFLAGS="${ex_check_save_CPPFLAGS}"
31864        LDFLAGS="${ex_check_save_LDFLAGS}"
31865     fi
31866     ac_ext=c
31867 ac_cpp='$CPP $CPPFLAGS'
31868 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31869 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31870 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31875 if test "$EX_CHECK_ALL_ERR" = "YES"; then
31876   { { echo "$as_me:$LINENO: error: Please fix the library issues listed above and try again." >&5
31877 echo "$as_me: error: Please fix the library issues listed above and try again." >&2;}
31878    { (exit 1); exit 1; }; }
31881 ALL_LIBS="$LIBS"
31882 LIBS=
31888 case $TERM in
31889        #   for the most important terminal types we directly know the sequences
31890        xterm|xterm*|vt220|vt220*)
31891                T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
31892                T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
31893        ;;
31894        vt100|vt100*|cygwin)
31895                T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
31896                T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
31897        ;;
31898        *)
31899                T_MD=''
31900                T_ME=''
31901        ;;
31902 esac
31903   { echo "$as_me:$LINENO: result: " >&5
31904 echo "${ECHO_T}" >&6; }
31905   { echo "$as_me:$LINENO: result: ${T_MD}Prep for Building Language Bindings${T_ME}" >&5
31906 echo "${ECHO_T}${T_MD}Prep for Building Language Bindings${T_ME}" >&6; }
31909 PATH=$PATH:/usr/perl5/bin
31910 export PATH
31911 # Extract the first word of "perl", so it can be a program name with args.
31912 set dummy perl; ac_word=$2
31913 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31915 if test "${ac_cv_path_PERL+set}" = set; then
31916   echo $ECHO_N "(cached) $ECHO_C" >&6
31917 else
31918   case $PERL in
31919   [\\/]* | ?:[\\/]*)
31920   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
31921   ;;
31922   *)
31923   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31924 for as_dir in $PATH
31926   IFS=$as_save_IFS
31927   test -z "$as_dir" && as_dir=.
31928   for ac_exec_ext in '' $ac_executable_extensions; do
31929   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31930     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
31931     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31932     break 2
31933   fi
31934 done
31935 done
31936 IFS=$as_save_IFS
31938   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
31939   ;;
31940 esac
31942 PERL=$ac_cv_path_PERL
31943 if test -n "$PERL"; then
31944   { echo "$as_me:$LINENO: result: $PERL" >&5
31945 echo "${ECHO_T}$PERL" >&6; }
31946 else
31947   { echo "$as_me:$LINENO: result: no" >&5
31948 echo "${ECHO_T}no" >&6; }
31952 # Extract the first word of "pod2man", so it can be a program name with args.
31953 set dummy pod2man; ac_word=$2
31954 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31955 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31956 if test "${ac_cv_path_POD2MAN+set}" = set; then
31957   echo $ECHO_N "(cached) $ECHO_C" >&6
31958 else
31959   case $POD2MAN in
31960   [\\/]* | ?:[\\/]*)
31961   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
31962   ;;
31963   *)
31964   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31965 for as_dir in $PATH
31967   IFS=$as_save_IFS
31968   test -z "$as_dir" && as_dir=.
31969   for ac_exec_ext in '' $ac_executable_extensions; do
31970   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31971     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
31972     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31973     break 2
31974   fi
31975 done
31976 done
31977 IFS=$as_save_IFS
31979   test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="no"
31980   ;;
31981 esac
31983 POD2MAN=$ac_cv_path_POD2MAN
31984 if test -n "$POD2MAN"; then
31985   { echo "$as_me:$LINENO: result: $POD2MAN" >&5
31986 echo "${ECHO_T}$POD2MAN" >&6; }
31987 else
31988   { echo "$as_me:$LINENO: result: no" >&5
31989 echo "${ECHO_T}no" >&6; }
31993 # Extract the first word of "pod2html", so it can be a program name with args.
31994 set dummy pod2html; ac_word=$2
31995 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31996 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31997 if test "${ac_cv_path_POD2HTML+set}" = set; then
31998   echo $ECHO_N "(cached) $ECHO_C" >&6
31999 else
32000   case $POD2HTML in
32001   [\\/]* | ?:[\\/]*)
32002   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
32003   ;;
32004   *)
32005   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32006 for as_dir in $PATH
32008   IFS=$as_save_IFS
32009   test -z "$as_dir" && as_dir=.
32010   for ac_exec_ext in '' $ac_executable_extensions; do
32011   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32012     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
32013     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32014     break 2
32015   fi
32016 done
32017 done
32018 IFS=$as_save_IFS
32020   test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="no"
32021   ;;
32022 esac
32024 POD2HTML=$ac_cv_path_POD2HTML
32025 if test -n "$POD2HTML"; then
32026   { echo "$as_me:$LINENO: result: $POD2HTML" >&5
32027 echo "${ECHO_T}$POD2HTML" >&6; }
32028 else
32029   { echo "$as_me:$LINENO: result: no" >&5
32030 echo "${ECHO_T}no" >&6; }
32036 # Check whether --enable-perl was given.
32037 if test "${enable_perl+set}" = set; then
32038   enableval=$enable_perl;
32039 else
32040   enable_perl=yes
32050 if test "x$PERL" = "xno" -o  x$enable_perl = xno; then
32051         COMP_PERL=
32052 else
32053         COMP_PERL="perl_piped perl_shared"
32054         { echo "$as_me:$LINENO: checking for the perl version you are running" >&5
32055 echo $ECHO_N "checking for the perl version you are running... $ECHO_C" >&6; }
32056         PERL_VERSION=`$PERL -MConfig -e 'print $Config{version}'`
32057         { echo "$as_me:$LINENO: result: $PERL_VERSION" >&5
32058 echo "${ECHO_T}$PERL_VERSION" >&6; }
32059         if test -z "$PERLCC"; then
32060             { echo "$as_me:$LINENO: checking for the C compiler perl wants to use to build its modules" >&5
32061 echo $ECHO_N "checking for the C compiler perl wants to use to build its modules... $ECHO_C" >&6; }
32062             perlcc=`$PERL -MConfig -e 'print $Config{cc}'`
32063             { echo "$as_me:$LINENO: result: $perlcc" >&5
32064 echo "${ECHO_T}$perlcc" >&6; }
32065             if test ! -x "$perlcc"; then
32066                 # Extract the first word of "${perlcc}", so it can be a program name with args.
32067 set dummy ${perlcc}; ac_word=$2
32068 { echo "$as_me:$LINENO: checking for $ac_word" >&5
32069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
32070 if test "${ac_cv_path_PERL_CC+set}" = set; then
32071   echo $ECHO_N "(cached) $ECHO_C" >&6
32072 else
32073   case $PERL_CC in
32074   [\\/]* | ?:[\\/]*)
32075   ac_cv_path_PERL_CC="$PERL_CC" # Let the user override the test with a path.
32076   ;;
32077   *)
32078   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32079 for as_dir in $PATH
32081   IFS=$as_save_IFS
32082   test -z "$as_dir" && as_dir=.
32083   for ac_exec_ext in '' $ac_executable_extensions; do
32084   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32085     ac_cv_path_PERL_CC="$as_dir/$ac_word$ac_exec_ext"
32086     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32087     break 2
32088   fi
32089 done
32090 done
32091 IFS=$as_save_IFS
32093   test -z "$ac_cv_path_PERL_CC" && ac_cv_path_PERL_CC="no"
32094   ;;
32095 esac
32097 PERL_CC=$ac_cv_path_PERL_CC
32098 if test -n "$PERL_CC"; then
32099   { echo "$as_me:$LINENO: result: $PERL_CC" >&5
32100 echo "${ECHO_T}$PERL_CC" >&6; }
32101 else
32102   { echo "$as_me:$LINENO: result: no" >&5
32103 echo "${ECHO_T}no" >&6; }
32107                 if test "$PERL_CC" = "no"; then
32108                     { echo "$as_me:$LINENO: WARNING:
32109 I would not find the Compiler ($perlcc) that was originally used to compile
32110 your perl binary. You should either make sure that this compiler is
32111 available on your system, pick an other compiler and set PERLCC
32112 appropriately, or use a different perl setup that was compiled locally.
32114 I will disable the compilation of the RRDs perl module for now.
32115 " >&5
32116 echo "$as_me: WARNING:
32117 I would not find the Compiler ($perlcc) that was originally used to compile
32118 your perl binary. You should either make sure that this compiler is
32119 available on your system, pick an other compiler and set PERLCC
32120 appropriately, or use a different perl setup that was compiled locally.
32122 I will disable the compilation of the RRDs perl module for now.
32123 " >&2;}
32124                     COMP_PERL="perl_piped"
32125                 fi
32126             fi
32127         fi
32130 { echo "$as_me:$LINENO: checking Perl Modules to build" >&5
32131 echo $ECHO_N "checking Perl Modules to build... $ECHO_C" >&6; }
32132 { echo "$as_me:$LINENO: result: ${COMP_PERL:-No Perl Modules will be built}" >&5
32133 echo "${ECHO_T}${COMP_PERL:-No Perl Modules will be built}" >&6; }
32135 # Options to pass when configuring perl module
32136 ppref=$prefix
32137 test "$ppref" = 'NONE' && ppref=$ac_default_prefix
32139 PERL_MAKE_OPTIONS="PREFIX="'$(DESTDIR)'"$ppref LIB="'$(DESTDIR)'"$ppref/lib/perl/$PERL_VERSION"
32141 # Check whether --enable-perl-site-install was given.
32142 if test "${enable_perl_site_install+set}" = set; then
32143   enableval=$enable_perl_site_install; PERL_MAKE_OPTIONS=
32147 if test ! -z "$PERLCC"; then
32148    PERL_MAKE_OPTIONS="$PERL_MAKE_OPTIONS CC=$PERLCC"
32150    if test ! -z "$PERLCCFLAGS"; then
32151        PERL_MAKE_OPTIONS="$PERL_MAKE_OPTIONS CCFLAGS=$PERLCCFLAGS"
32152    fi
32154    if test -z "$PERLLD"; then
32155        PERLLD=$PERLCC
32156    fi
32157    PERL_MAKE_OPTIONS="$PERL_MAKE_OPTIONS LD=$PERLLD"
32159    if test ! -z "$PERLLDFLAGS"; then
32160        PERL_MAKE_OPTIONS="$PERL_MAKE_OPTIONS LDFLAGS=$PERLLDFLAGS"
32161    fi
32165 # Check whether --with-perl-options was given.
32166 if test "${with_perl_options+set}" = set; then
32167   withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
32176 # Extract the first word of "ruby", so it can be a program name with args.
32177 set dummy ruby; ac_word=$2
32178 { echo "$as_me:$LINENO: checking for $ac_word" >&5
32179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
32180 if test "${ac_cv_path_RUBY+set}" = set; then
32181   echo $ECHO_N "(cached) $ECHO_C" >&6
32182 else
32183   case $RUBY in
32184   [\\/]* | ?:[\\/]*)
32185   ac_cv_path_RUBY="$RUBY" # Let the user override the test with a path.
32186   ;;
32187   *)
32188   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32189 for as_dir in $PATH
32191   IFS=$as_save_IFS
32192   test -z "$as_dir" && as_dir=.
32193   for ac_exec_ext in '' $ac_executable_extensions; do
32194   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32195     ac_cv_path_RUBY="$as_dir/$ac_word$ac_exec_ext"
32196     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32197     break 2
32198   fi
32199 done
32200 done
32201 IFS=$as_save_IFS
32203   test -z "$ac_cv_path_RUBY" && ac_cv_path_RUBY="no"
32204   ;;
32205 esac
32207 RUBY=$ac_cv_path_RUBY
32208 if test -n "$RUBY"; then
32209   { echo "$as_me:$LINENO: result: $RUBY" >&5
32210 echo "${ECHO_T}$RUBY" >&6; }
32211 else
32212   { echo "$as_me:$LINENO: result: no" >&5
32213 echo "${ECHO_T}no" >&6; }
32218 # Check whether --enable-ruby was given.
32219 if test "${enable_ruby+set}" = set; then
32220   enableval=$enable_ruby;
32221 else
32222   enable_ruby=yes
32226 { echo "$as_me:$LINENO: checking if ruby modules can be built" >&5
32227 echo $ECHO_N "checking if ruby modules can be built... $ECHO_C" >&6; }
32229 if test "x$RUBY" = "xno" -o  x$enable_ruby = xno; then
32230         COMP_RUBY=
32231         { echo "$as_me:$LINENO: result: No .. Ruby not found or disabled" >&5
32232 echo "${ECHO_T}No .. Ruby not found or disabled" >&6; }
32233 else
32234         if $RUBY -e 'require "mkmf"' >/dev/null 2>&1; then
32235                 COMP_RUBY="ruby"
32236                 { echo "$as_me:$LINENO: result: YES" >&5
32237 echo "${ECHO_T}YES" >&6; }
32238         else
32239                 COMP_RUBY=
32240                 { echo "$as_me:$LINENO: result: Ruby found but mkmf is missing! Install the -dev package" >&5
32241 echo "${ECHO_T}Ruby found but mkmf is missing! Install the -dev package" >&6; }
32242         fi
32245 rpref=$prefix
32246 test "$rpref" = 'NONE' && rpref=$ac_default_prefix
32248 # Check whether --enable-ruby-site-install was given.
32249 if test "${enable_ruby_site_install+set}" = set; then
32250   enableval=$enable_ruby_site_install; RUBY_MAKE_OPTIONS=
32251 else
32252   RUBY_MAKE_OPTIONS="sitedir="'$(DESTDIR)'"$rpref/lib/ruby"
32258 # Check whether --with-ruby-options was given.
32259 if test "${with_ruby_options+set}" = set; then
32260   withval=$with_ruby_options; RUBY_MAKE_OPTIONS=$withval
32269 enable_tcl_site=no
32271 # Check whether --enable-tcl was given.
32272 if test "${enable_tcl+set}" = set; then
32273   enableval=$enable_tcl;
32274 else
32275   enable_tcl=yes
32279 if test  "$enable_tcl" = "yes"; then
32280     withval=""
32282 # Check whether --with-tcllib was given.
32283 if test "${with_tcllib+set}" = set; then
32284   withval=$with_tcllib;
32287   enable_tcl=no
32288   for dir in $withval /usr/lib /usr/local/lib /usr/lib/tcl8.4 /usr/lib/tcl8.3 ; do
32289     { echo "$as_me:$LINENO: checking for tclConfig.sh in $dir" >&5
32290 echo $ECHO_N "checking for tclConfig.sh in $dir... $ECHO_C" >&6; }
32291     if test -f "$dir/tclConfig.sh" ; then
32292         tcl_config=$dir/tclConfig.sh
32293         enable_tcl=yes
32294         { echo "$as_me:$LINENO: result: yes" >&5
32295 echo "${ECHO_T}yes" >&6; }
32296         break
32297     else
32298         { echo "$as_me:$LINENO: result: no" >&5
32299 echo "${ECHO_T}no" >&6; }
32300     fi
32301   done
32303   if test "$enable_tcl" = "no"; then
32304         { echo "$as_me:$LINENO: WARNING: tclConfig.sh not found - Tcl interface will not be built" >&5
32305 echo "$as_me: WARNING: tclConfig.sh not found - Tcl interface will not be built" >&2;}
32306   else
32307         . $tcl_config
32308         TCL_PACKAGE_DIR="$TCL_PACKAGE_PATH/tclrrd$VERSION"
32309         if test -n "$TCL_INC_DIR"; then
32310           TCL_INCLUDE_SPEC="$TCL_INCLUDE_SPEC -I$TCL_INC_DIR"
32311         fi
32312   fi
32313   # Check whether --enable-tcl was given.
32314 if test "${enable_tcl+set}" = set; then
32315   enableval=$enable_tcl;
32316 else
32317   enable_tcl_site=yes
32325 if test "$enable_tcl" = "yes" ; then
32326   BUILD_TCL_TRUE=
32327   BUILD_TCL_FALSE='#'
32328 else
32329   BUILD_TCL_TRUE='#'
32330   BUILD_TCL_FALSE=
32335 if test "$enable_tcl_site" = "yes" ; then
32336   BUILD_TCL_SITE_TRUE=
32337   BUILD_TCL_SITE_FALSE='#'
32338 else
32339   BUILD_TCL_SITE_TRUE='#'
32340   BUILD_TCL_SITE_FALSE=
32356 # Check whether --enable-python was given.
32357 if test "${enable_python+set}" = set; then
32358   enableval=$enable_python;
32359 else
32360   enable_python=yes
32364 if test  "$enable_python" = "yes"; then
32369         if test -n "$PYTHON"; then
32370       # If the user set $PYTHON, use it and don't search something else.
32371       { echo "$as_me:$LINENO: checking whether $PYTHON version >= 2.3" >&5
32372 echo $ECHO_N "checking whether $PYTHON version >= 2.3... $ECHO_C" >&6; }
32373       prog="import sys, string
32374 # split strings by '.' and convert to numeric.  Append some zeros
32375 # because we need at least 4 digits for the hex conversion.
32376 minver = map(int, string.split('2.3', '.')) + [0, 0, 0]
32377 minverhex = 0
32378 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
32379 sys.exit(sys.hexversion < minverhex)"
32380   if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
32381    ($PYTHON -c "$prog") >&5 2>&5
32382    ac_status=$?
32383    echo "$as_me:$LINENO: \$? = $ac_status" >&5
32384    (exit $ac_status); }; then
32385   { echo "$as_me:$LINENO: result: yes" >&5
32386 echo "${ECHO_T}yes" >&6; }
32387 else
32388   { { echo "$as_me:$LINENO: error: too old" >&5
32389 echo "$as_me: error: too old" >&2;}
32390    { (exit 1); exit 1; }; }
32393       am_display_PYTHON=$PYTHON
32394     else
32395       # Otherwise, try each interpreter until we find one that satisfies
32396       # VERSION.
32397       { echo "$as_me:$LINENO: checking for a Python interpreter with version >= 2.3" >&5
32398 echo $ECHO_N "checking for a Python interpreter with version >= 2.3... $ECHO_C" >&6; }
32399 if test "${am_cv_pathless_PYTHON+set}" = set; then
32400   echo $ECHO_N "(cached) $ECHO_C" >&6
32401 else
32403         for am_cv_pathless_PYTHON in python python2 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5 none; do
32404           test "$am_cv_pathless_PYTHON" = none && break
32405           prog="import sys, string
32406 # split strings by '.' and convert to numeric.  Append some zeros
32407 # because we need at least 4 digits for the hex conversion.
32408 minver = map(int, string.split('2.3', '.')) + [0, 0, 0]
32409 minverhex = 0
32410 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
32411 sys.exit(sys.hexversion < minverhex)"
32412   if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
32413    ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
32414    ac_status=$?
32415    echo "$as_me:$LINENO: \$? = $ac_status" >&5
32416    (exit $ac_status); }; then
32417   break
32420         done
32422 { echo "$as_me:$LINENO: result: $am_cv_pathless_PYTHON" >&5
32423 echo "${ECHO_T}$am_cv_pathless_PYTHON" >&6; }
32424       # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
32425       if test "$am_cv_pathless_PYTHON" = none; then
32426         PYTHON=:
32427       else
32428         # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
32429 set dummy $am_cv_pathless_PYTHON; ac_word=$2
32430 { echo "$as_me:$LINENO: checking for $ac_word" >&5
32431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
32432 if test "${ac_cv_path_PYTHON+set}" = set; then
32433   echo $ECHO_N "(cached) $ECHO_C" >&6
32434 else
32435   case $PYTHON in
32436   [\\/]* | ?:[\\/]*)
32437   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
32438   ;;
32439   *)
32440   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32441 for as_dir in $PATH
32443   IFS=$as_save_IFS
32444   test -z "$as_dir" && as_dir=.
32445   for ac_exec_ext in '' $ac_executable_extensions; do
32446   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32447     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
32448     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32449     break 2
32450   fi
32451 done
32452 done
32453 IFS=$as_save_IFS
32455   ;;
32456 esac
32458 PYTHON=$ac_cv_path_PYTHON
32459 if test -n "$PYTHON"; then
32460   { echo "$as_me:$LINENO: result: $PYTHON" >&5
32461 echo "${ECHO_T}$PYTHON" >&6; }
32462 else
32463   { echo "$as_me:$LINENO: result: no" >&5
32464 echo "${ECHO_T}no" >&6; }
32468       fi
32469       am_display_PYTHON=$am_cv_pathless_PYTHON
32470     fi
32473   if test "$PYTHON" = :; then
32474       enable_python=no
32475   else
32478   { echo "$as_me:$LINENO: checking for $am_display_PYTHON version" >&5
32479 echo $ECHO_N "checking for $am_display_PYTHON version... $ECHO_C" >&6; }
32480 if test "${am_cv_python_version+set}" = set; then
32481   echo $ECHO_N "(cached) $ECHO_C" >&6
32482 else
32483   am_cv_python_version=`$PYTHON -c "import sys; print sys.version[:3]"`
32485 { echo "$as_me:$LINENO: result: $am_cv_python_version" >&5
32486 echo "${ECHO_T}$am_cv_python_version" >&6; }
32487   PYTHON_VERSION=$am_cv_python_version
32491   PYTHON_PREFIX='${prefix}'
32493   PYTHON_EXEC_PREFIX='${exec_prefix}'
32497   { echo "$as_me:$LINENO: checking for $am_display_PYTHON platform" >&5
32498 echo $ECHO_N "checking for $am_display_PYTHON platform... $ECHO_C" >&6; }
32499 if test "${am_cv_python_platform+set}" = set; then
32500   echo $ECHO_N "(cached) $ECHO_C" >&6
32501 else
32502   am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`
32504 { echo "$as_me:$LINENO: result: $am_cv_python_platform" >&5
32505 echo "${ECHO_T}$am_cv_python_platform" >&6; }
32506   PYTHON_PLATFORM=$am_cv_python_platform
32511                 { echo "$as_me:$LINENO: checking for $am_display_PYTHON script directory" >&5
32512 echo $ECHO_N "checking for $am_display_PYTHON script directory... $ECHO_C" >&6; }
32513 if test "${am_cv_python_pythondir+set}" = set; then
32514   echo $ECHO_N "(cached) $ECHO_C" >&6
32515 else
32516   am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
32517      echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
32519 { echo "$as_me:$LINENO: result: $am_cv_python_pythondir" >&5
32520 echo "${ECHO_T}$am_cv_python_pythondir" >&6; }
32521   pythondir=$am_cv_python_pythondir
32525   pkgpythondir=\${pythondir}/$PACKAGE
32528             { echo "$as_me:$LINENO: checking for $am_display_PYTHON extension module directory" >&5
32529 echo $ECHO_N "checking for $am_display_PYTHON extension module directory... $ECHO_C" >&6; }
32530 if test "${am_cv_python_pyexecdir+set}" = set; then
32531   echo $ECHO_N "(cached) $ECHO_C" >&6
32532 else
32533   am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
32534      echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
32536 { echo "$as_me:$LINENO: result: $am_cv_python_pyexecdir" >&5
32537 echo "${ECHO_T}$am_cv_python_pyexecdir" >&6; }
32538   pyexecdir=$am_cv_python_pyexecdir
32542   pkgpyexecdir=\${pyexecdir}/$PACKAGE
32546   fi
32550 { echo "$as_me:$LINENO: checking for headers required to compile python extensions" >&5
32551 echo $ECHO_N "checking for headers required to compile python extensions... $ECHO_C" >&6; }
32552 py_prefix=`$PYTHON -c "import sys; print sys.prefix"`
32553 py_exec_prefix=`$PYTHON -c "import sys; print sys.exec_prefix"`
32554 PYTHON_INCLUDES="-I${py_prefix}/include/python${PYTHON_VERSION}"
32555 if test "$py_prefix" != "$py_exec_prefix"; then
32556   PYTHON_INCLUDES="$PYTHON_INCLUDES -I${py_exec_prefix}/include/python${PYTHON_VERSION}"
32559 save_CPPFLAGS="$CPPFLAGS"
32560 CPPFLAGS="$CPPFLAGS $PYTHON_INCLUDES"
32561 cat >conftest.$ac_ext <<_ACEOF
32562 /* confdefs.h.  */
32563 _ACEOF
32564 cat confdefs.h >>conftest.$ac_ext
32565 cat >>conftest.$ac_ext <<_ACEOF
32566 /* end confdefs.h.  */
32567 #include <Python.h>
32568 _ACEOF
32569 if { (ac_try="$ac_cpp conftest.$ac_ext"
32570 case "(($ac_try" in
32571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32572   *) ac_try_echo=$ac_try;;
32573 esac
32574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32575   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32576   ac_status=$?
32577   grep -v '^ *+' conftest.er1 >conftest.err
32578   rm -f conftest.er1
32579   cat conftest.err >&5
32580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32581   (exit $ac_status); } >/dev/null && {
32582          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32583          test ! -s conftest.err
32584        }; then
32585   { echo "$as_me:$LINENO: result: found" >&5
32586 echo "${ECHO_T}found" >&6; }
32588 else
32589   echo "$as_me: failed program was:" >&5
32590 sed 's/^/| /' conftest.$ac_ext >&5
32592   { echo "$as_me:$LINENO: result: not found" >&5
32593 echo "${ECHO_T}not found" >&6; }
32594 enable_python=no;{ echo "$as_me:$LINENO: WARNING: could not find Python headers" >&5
32595 echo "$as_me: WARNING: could not find Python headers" >&2;}
32598 rm -f conftest.err conftest.$ac_ext
32599 CPPFLAGS="$save_CPPFLAGS"
32603 if test  x$enable_python = xno; then
32604         COMP_PYTHON=
32605 else
32606         COMP_PYTHON="python"
32611 for ac_prog in gnroff nroff
32613   # Extract the first word of "$ac_prog", so it can be a program name with args.
32614 set dummy $ac_prog; ac_word=$2
32615 { echo "$as_me:$LINENO: checking for $ac_word" >&5
32616 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
32617 if test "${ac_cv_path_NROFF+set}" = set; then
32618   echo $ECHO_N "(cached) $ECHO_C" >&6
32619 else
32620   case $NROFF in
32621   [\\/]* | ?:[\\/]*)
32622   ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
32623   ;;
32624   *)
32625   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32626 for as_dir in $PATH
32628   IFS=$as_save_IFS
32629   test -z "$as_dir" && as_dir=.
32630   for ac_exec_ext in '' $ac_executable_extensions; do
32631   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32632     ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
32633     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32634     break 2
32635   fi
32636 done
32637 done
32638 IFS=$as_save_IFS
32640   ;;
32641 esac
32643 NROFF=$ac_cv_path_NROFF
32644 if test -n "$NROFF"; then
32645   { echo "$as_me:$LINENO: result: $NROFF" >&5
32646 echo "${ECHO_T}$NROFF" >&6; }
32647 else
32648   { echo "$as_me:$LINENO: result: no" >&5
32649 echo "${ECHO_T}no" >&6; }
32653   test -n "$NROFF" && break
32654 done
32656 for ac_prog in groff troff
32658   # Extract the first word of "$ac_prog", so it can be a program name with args.
32659 set dummy $ac_prog; ac_word=$2
32660 { echo "$as_me:$LINENO: checking for $ac_word" >&5
32661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
32662 if test "${ac_cv_path_TROFF+set}" = set; then
32663   echo $ECHO_N "(cached) $ECHO_C" >&6
32664 else
32665   case $TROFF in
32666   [\\/]* | ?:[\\/]*)
32667   ac_cv_path_TROFF="$TROFF" # Let the user override the test with a path.
32668   ;;
32669   *)
32670   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32671 for as_dir in $PATH
32673   IFS=$as_save_IFS
32674   test -z "$as_dir" && as_dir=.
32675   for ac_exec_ext in '' $ac_executable_extensions; do
32676   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32677     ac_cv_path_TROFF="$as_dir/$ac_word$ac_exec_ext"
32678     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32679     break 2
32680   fi
32681 done
32682 done
32683 IFS=$as_save_IFS
32685   ;;
32686 esac
32688 TROFF=$ac_cv_path_TROFF
32689 if test -n "$TROFF"; then
32690   { echo "$as_me:$LINENO: result: $TROFF" >&5
32691 echo "${ECHO_T}$TROFF" >&6; }
32692 else
32693   { echo "$as_me:$LINENO: result: no" >&5
32694 echo "${ECHO_T}no" >&6; }
32698   test -n "$TROFF" && break
32699 done
32703 if test -z "$RRDDOCDIR"; then
32704    RRDDOCDIR='${datadir}/doc/${PACKAGE}-${VERSION}'; fi
32708 case $TERM in
32709        #   for the most important terminal types we directly know the sequences
32710        xterm|xterm*|vt220|vt220*)
32711                T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
32712                T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
32713        ;;
32714        vt100|vt100*|cygwin)
32715                T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
32716                T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
32717        ;;
32718        *)
32719                T_MD=''
32720                T_ME=''
32721        ;;
32722 esac
32723   { echo "$as_me:$LINENO: result: " >&5
32724 echo "${ECHO_T}" >&6; }
32725   { echo "$as_me:$LINENO: result: ${T_MD}Apply Configuration Information${T_ME}" >&5
32726 echo "${ECHO_T}${T_MD}Apply Configuration Information${T_ME}" >&6; }
32729 ac_config_files="$ac_config_files examples/shared-demo.pl"
32731 ac_config_files="$ac_config_files examples/piped-demo.pl"
32733 ac_config_files="$ac_config_files examples/stripes.pl"
32735 ac_config_files="$ac_config_files examples/bigtops.pl"
32737 ac_config_files="$ac_config_files examples/minmax.pl"
32739 ac_config_files="$ac_config_files examples/4charts.pl"
32741 ac_config_files="$ac_config_files examples/perftest.pl"
32743 ac_config_files="$ac_config_files examples/Makefile"
32745 ac_config_files="$ac_config_files doc/Makefile"
32747 ac_config_files="$ac_config_files po/Makefile.in"
32749 ac_config_files="$ac_config_files src/Makefile"
32751 ac_config_files="$ac_config_files src/librrd.sym.in"
32753 ac_config_files="$ac_config_files src/librrd.pc"
32755 ac_config_files="$ac_config_files bindings/Makefile"
32757 ac_config_files="$ac_config_files bindings/tcl/Makefile"
32759 ac_config_files="$ac_config_files bindings/tcl/ifOctets.tcl"
32761 ac_config_files="$ac_config_files Makefile"
32764 ac_config_commands="$ac_config_commands default"
32766 cat >confcache <<\_ACEOF
32767 # This file is a shell script that caches the results of configure
32768 # tests run on this system so they can be shared between configure
32769 # scripts and configure runs, see configure's option --config-cache.
32770 # It is not useful on other systems.  If it contains results you don't
32771 # want to keep, you may remove or edit it.
32773 # config.status only pays attention to the cache file if you give it
32774 # the --recheck option to rerun configure.
32776 # `ac_cv_env_foo' variables (set or unset) will be overridden when
32777 # loading this file, other *unset* `ac_cv_foo' will be assigned the
32778 # following values.
32780 _ACEOF
32782 # The following way of writing the cache mishandles newlines in values,
32783 # but we know of no workaround that is simple, portable, and efficient.
32784 # So, we kill variables containing newlines.
32785 # Ultrix sh set writes to stderr and can't be redirected directly,
32786 # and sets the high bit in the cache file unless we assign to the vars.
32788   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
32789     eval ac_val=\$$ac_var
32790     case $ac_val in #(
32791     *${as_nl}*)
32792       case $ac_var in #(
32793       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
32794 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
32795       esac
32796       case $ac_var in #(
32797       _ | IFS | as_nl) ;; #(
32798       *) $as_unset $ac_var ;;
32799       esac ;;
32800     esac
32801   done
32803   (set) 2>&1 |
32804     case $as_nl`(ac_space=' '; set) 2>&1` in #(
32805     *${as_nl}ac_space=\ *)
32806       # `set' does not quote correctly, so add quotes (double-quote
32807       # substitution turns \\\\ into \\, and sed turns \\ into \).
32808       sed -n \
32809         "s/'/'\\\\''/g;
32810           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
32811       ;; #(
32812     *)
32813       # `set' quotes correctly as required by POSIX, so do not add quotes.
32814       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
32815       ;;
32816     esac |
32817     sort
32818 ) |
32819   sed '
32820      /^ac_cv_env_/b end
32821      t clear
32822      :clear
32823      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32824      t end
32825      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32826      :end' >>confcache
32827 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
32828   if test -w "$cache_file"; then
32829     test "x$cache_file" != "x/dev/null" &&
32830       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
32831 echo "$as_me: updating cache $cache_file" >&6;}
32832     cat confcache >$cache_file
32833   else
32834     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
32835 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
32836   fi
32838 rm -f confcache
32840 test "x$prefix" = xNONE && prefix=$ac_default_prefix
32841 # Let make expand exec_prefix.
32842 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
32844 DEFS=-DHAVE_CONFIG_H
32846 ac_libobjs=
32847 ac_ltlibobjs=
32848 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
32849   # 1. Remove the extension, and $U if already installed.
32850   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
32851   ac_i=`echo "$ac_i" | sed "$ac_script"`
32852   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
32853   #    will be set to the directory where LIBOBJS objects are built.
32854   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
32855   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
32856 done
32857 LIBOBJS=$ac_libobjs
32859 LTLIBOBJS=$ac_ltlibobjs
32862 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
32863   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
32864 Usually this means the macro was only invoked conditionally." >&5
32865 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
32866 Usually this means the macro was only invoked conditionally." >&2;}
32867    { (exit 1); exit 1; }; }
32869 if test -z "${STATIC_PROGRAMS_TRUE}" && test -z "${STATIC_PROGRAMS_FALSE}"; then
32870   { { echo "$as_me:$LINENO: error: conditional \"STATIC_PROGRAMS\" was never defined.
32871 Usually this means the macro was only invoked conditionally." >&5
32872 echo "$as_me: error: conditional \"STATIC_PROGRAMS\" was never defined.
32873 Usually this means the macro was only invoked conditionally." >&2;}
32874    { (exit 1); exit 1; }; }
32876 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
32877   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
32878 Usually this means the macro was only invoked conditionally." >&5
32879 echo "$as_me: error: conditional \"AMDEP\" was never defined.
32880 Usually this means the macro was only invoked conditionally." >&2;}
32881    { (exit 1); exit 1; }; }
32883 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
32884   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
32885 Usually this means the macro was only invoked conditionally." >&5
32886 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
32887 Usually this means the macro was only invoked conditionally." >&2;}
32888    { (exit 1); exit 1; }; }
32890 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
32891   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
32892 Usually this means the macro was only invoked conditionally." >&5
32893 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
32894 Usually this means the macro was only invoked conditionally." >&2;}
32895    { (exit 1); exit 1; }; }
32898   ac_config_commands="$ac_config_commands po/stamp-it"
32901 if test -z "${BUILD_LIBINTL_TRUE}" && test -z "${BUILD_LIBINTL_FALSE}"; then
32902   { { echo "$as_me:$LINENO: error: conditional \"BUILD_LIBINTL\" was never defined.
32903 Usually this means the macro was only invoked conditionally." >&5
32904 echo "$as_me: error: conditional \"BUILD_LIBINTL\" was never defined.
32905 Usually this means the macro was only invoked conditionally." >&2;}
32906    { (exit 1); exit 1; }; }
32908 if test -z "${BUILD_GETOPT_TRUE}" && test -z "${BUILD_GETOPT_FALSE}"; then
32909   { { echo "$as_me:$LINENO: error: conditional \"BUILD_GETOPT\" was never defined.
32910 Usually this means the macro was only invoked conditionally." >&5
32911 echo "$as_me: error: conditional \"BUILD_GETOPT\" was never defined.
32912 Usually this means the macro was only invoked conditionally." >&2;}
32913    { (exit 1); exit 1; }; }
32915 if test -z "${BUILD_MULTITHREAD_TRUE}" && test -z "${BUILD_MULTITHREAD_FALSE}"; then
32916   { { echo "$as_me:$LINENO: error: conditional \"BUILD_MULTITHREAD\" was never defined.
32917 Usually this means the macro was only invoked conditionally." >&5
32918 echo "$as_me: error: conditional \"BUILD_MULTITHREAD\" was never defined.
32919 Usually this means the macro was only invoked conditionally." >&2;}
32920    { (exit 1); exit 1; }; }
32922 if test -z "${BUILD_RRDCGI_TRUE}" && test -z "${BUILD_RRDCGI_FALSE}"; then
32923   { { echo "$as_me:$LINENO: error: conditional \"BUILD_RRDCGI\" was never defined.
32924 Usually this means the macro was only invoked conditionally." >&5
32925 echo "$as_me: error: conditional \"BUILD_RRDCGI\" was never defined.
32926 Usually this means the macro was only invoked conditionally." >&2;}
32927    { (exit 1); exit 1; }; }
32929 if test -z "${BUILD_TCL_TRUE}" && test -z "${BUILD_TCL_FALSE}"; then
32930   { { echo "$as_me:$LINENO: error: conditional \"BUILD_TCL\" was never defined.
32931 Usually this means the macro was only invoked conditionally." >&5
32932 echo "$as_me: error: conditional \"BUILD_TCL\" was never defined.
32933 Usually this means the macro was only invoked conditionally." >&2;}
32934    { (exit 1); exit 1; }; }
32936 if test -z "${BUILD_TCL_SITE_TRUE}" && test -z "${BUILD_TCL_SITE_FALSE}"; then
32937   { { echo "$as_me:$LINENO: error: conditional \"BUILD_TCL_SITE\" was never defined.
32938 Usually this means the macro was only invoked conditionally." >&5
32939 echo "$as_me: error: conditional \"BUILD_TCL_SITE\" was never defined.
32940 Usually this means the macro was only invoked conditionally." >&2;}
32941    { (exit 1); exit 1; }; }
32944 : ${CONFIG_STATUS=./config.status}
32945 ac_clean_files_save=$ac_clean_files
32946 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
32947 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
32948 echo "$as_me: creating $CONFIG_STATUS" >&6;}
32949 cat >$CONFIG_STATUS <<_ACEOF
32950 #! $SHELL
32951 # Generated by $as_me.
32952 # Run this file to recreate the current configuration.
32953 # Compiler output produced by configure, useful for debugging
32954 # configure, is in config.log if it exists.
32956 debug=false
32957 ac_cs_recheck=false
32958 ac_cs_silent=false
32959 SHELL=\${CONFIG_SHELL-$SHELL}
32960 _ACEOF
32962 cat >>$CONFIG_STATUS <<\_ACEOF
32963 ## --------------------- ##
32964 ## M4sh Initialization.  ##
32965 ## --------------------- ##
32967 # Be more Bourne compatible
32968 DUALCASE=1; export DUALCASE # for MKS sh
32969 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
32970   emulate sh
32971   NULLCMD=:
32972   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
32973   # is contrary to our usage.  Disable this feature.
32974   alias -g '${1+"$@"}'='"$@"'
32975   setopt NO_GLOB_SUBST
32976 else
32977   case `(set -o) 2>/dev/null` in
32978   *posix*) set -o posix ;;
32979 esac
32986 # PATH needs CR
32987 # Avoid depending upon Character Ranges.
32988 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
32989 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32990 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
32991 as_cr_digits='0123456789'
32992 as_cr_alnum=$as_cr_Letters$as_cr_digits
32994 # The user is always right.
32995 if test "${PATH_SEPARATOR+set}" != set; then
32996   echo "#! /bin/sh" >conf$$.sh
32997   echo  "exit 0"   >>conf$$.sh
32998   chmod +x conf$$.sh
32999   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
33000     PATH_SEPARATOR=';'
33001   else
33002     PATH_SEPARATOR=:
33003   fi
33004   rm -f conf$$.sh
33007 # Support unset when possible.
33008 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
33009   as_unset=unset
33010 else
33011   as_unset=false
33015 # IFS
33016 # We need space, tab and new line, in precisely that order.  Quoting is
33017 # there to prevent editors from complaining about space-tab.
33018 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
33019 # splitting by setting IFS to empty value.)
33020 as_nl='
33022 IFS=" ""        $as_nl"
33024 # Find who we are.  Look in the path if we contain no directory separator.
33025 case $0 in
33026   *[\\/]* ) as_myself=$0 ;;
33027   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33028 for as_dir in $PATH
33030   IFS=$as_save_IFS
33031   test -z "$as_dir" && as_dir=.
33032   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
33033 done
33034 IFS=$as_save_IFS
33036      ;;
33037 esac
33038 # We did not find ourselves, most probably we were run as `sh COMMAND'
33039 # in which case we are not to be found in the path.
33040 if test "x$as_myself" = x; then
33041   as_myself=$0
33043 if test ! -f "$as_myself"; then
33044   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
33045   { (exit 1); exit 1; }
33048 # Work around bugs in pre-3.0 UWIN ksh.
33049 for as_var in ENV MAIL MAILPATH
33050 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
33051 done
33052 PS1='$ '
33053 PS2='> '
33054 PS4='+ '
33056 # NLS nuisances.
33057 for as_var in \
33058   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
33059   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
33060   LC_TELEPHONE LC_TIME
33062   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
33063     eval $as_var=C; export $as_var
33064   else
33065     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
33066   fi
33067 done
33069 # Required to use basename.
33070 if expr a : '\(a\)' >/dev/null 2>&1 &&
33071    test "X`expr 00001 : '.*\(...\)'`" = X001; then
33072   as_expr=expr
33073 else
33074   as_expr=false
33077 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
33078   as_basename=basename
33079 else
33080   as_basename=false
33084 # Name of the executable.
33085 as_me=`$as_basename -- "$0" ||
33086 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
33087          X"$0" : 'X\(//\)$' \| \
33088          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
33089 echo X/"$0" |
33090     sed '/^.*\/\([^/][^/]*\)\/*$/{
33091             s//\1/
33092             q
33093           }
33094           /^X\/\(\/\/\)$/{
33095             s//\1/
33096             q
33097           }
33098           /^X\/\(\/\).*/{
33099             s//\1/
33100             q
33101           }
33102           s/.*/./; q'`
33104 # CDPATH.
33105 $as_unset CDPATH
33109   as_lineno_1=$LINENO
33110   as_lineno_2=$LINENO
33111   test "x$as_lineno_1" != "x$as_lineno_2" &&
33112   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
33114   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
33115   # uniformly replaced by the line number.  The first 'sed' inserts a
33116   # line-number line after each line using $LINENO; the second 'sed'
33117   # does the real work.  The second script uses 'N' to pair each
33118   # line-number line with the line containing $LINENO, and appends
33119   # trailing '-' during substitution so that $LINENO is not a special
33120   # case at line end.
33121   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
33122   # scripts with optimization help from Paolo Bonzini.  Blame Lee
33123   # E. McMahon (1931-1989) for sed's syntax.  :-)
33124   sed -n '
33125     p
33126     /[$]LINENO/=
33127   ' <$as_myself |
33128     sed '
33129       s/[$]LINENO.*/&-/
33130       t lineno
33131       b
33132       :lineno
33133       N
33134       :loop
33135       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
33136       t loop
33137       s/-\n.*//
33138     ' >$as_me.lineno &&
33139   chmod +x "$as_me.lineno" ||
33140     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
33141    { (exit 1); exit 1; }; }
33143   # Don't try to exec as it changes $[0], causing all sort of problems
33144   # (the dirname of $[0] is not the place where we might find the
33145   # original and so on.  Autoconf is especially sensitive to this).
33146   . "./$as_me.lineno"
33147   # Exit status is that of the last command.
33148   exit
33152 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
33153   as_dirname=dirname
33154 else
33155   as_dirname=false
33158 ECHO_C= ECHO_N= ECHO_T=
33159 case `echo -n x` in
33160 -n*)
33161   case `echo 'x\c'` in
33162   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
33163   *)   ECHO_C='\c';;
33164   esac;;
33166   ECHO_N='-n';;
33167 esac
33169 if expr a : '\(a\)' >/dev/null 2>&1 &&
33170    test "X`expr 00001 : '.*\(...\)'`" = X001; then
33171   as_expr=expr
33172 else
33173   as_expr=false
33176 rm -f conf$$ conf$$.exe conf$$.file
33177 if test -d conf$$.dir; then
33178   rm -f conf$$.dir/conf$$.file
33179 else
33180   rm -f conf$$.dir
33181   mkdir conf$$.dir
33183 echo >conf$$.file
33184 if ln -s conf$$.file conf$$ 2>/dev/null; then
33185   as_ln_s='ln -s'
33186   # ... but there are two gotchas:
33187   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
33188   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
33189   # In both cases, we have to default to `cp -p'.
33190   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
33191     as_ln_s='cp -p'
33192 elif ln conf$$.file conf$$ 2>/dev/null; then
33193   as_ln_s=ln
33194 else
33195   as_ln_s='cp -p'
33197 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
33198 rmdir conf$$.dir 2>/dev/null
33200 if mkdir -p . 2>/dev/null; then
33201   as_mkdir_p=:
33202 else
33203   test -d ./-p && rmdir ./-p
33204   as_mkdir_p=false
33207 if test -x / >/dev/null 2>&1; then
33208   as_test_x='test -x'
33209 else
33210   if ls -dL / >/dev/null 2>&1; then
33211     as_ls_L_option=L
33212   else
33213     as_ls_L_option=
33214   fi
33215   as_test_x='
33216     eval sh -c '\''
33217       if test -d "$1"; then
33218         test -d "$1/.";
33219       else
33220         case $1 in
33221         -*)set "./$1";;
33222         esac;
33223         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
33224         ???[sx]*):;;*)false;;esac;fi
33225     '\'' sh
33226   '
33228 as_executable_p=$as_test_x
33230 # Sed expression to map a string onto a valid CPP name.
33231 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
33233 # Sed expression to map a string onto a valid variable name.
33234 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
33237 exec 6>&1
33239 # Save the log message, to keep $[0] and so on meaningful, and to
33240 # report actual input values of CONFIG_FILES etc. instead of their
33241 # values after options handling.
33242 ac_log="
33243 This file was extended by rrdtool $as_me 1.3.5, which was
33244 generated by GNU Autoconf 2.61.  Invocation command line was
33246   CONFIG_FILES    = $CONFIG_FILES
33247   CONFIG_HEADERS  = $CONFIG_HEADERS
33248   CONFIG_LINKS    = $CONFIG_LINKS
33249   CONFIG_COMMANDS = $CONFIG_COMMANDS
33250   $ $0 $@
33252 on `(hostname || uname -n) 2>/dev/null | sed 1q`
33255 _ACEOF
33257 cat >>$CONFIG_STATUS <<_ACEOF
33258 # Files that config.status was made for.
33259 config_files="$ac_config_files"
33260 config_headers="$ac_config_headers"
33261 config_commands="$ac_config_commands"
33263 _ACEOF
33265 cat >>$CONFIG_STATUS <<\_ACEOF
33266 ac_cs_usage="\
33267 \`$as_me' instantiates files from templates according to the
33268 current configuration.
33270 Usage: $0 [OPTIONS] [FILE]...
33272   -h, --help       print this help, then exit
33273   -V, --version    print version number and configuration settings, then exit
33274   -q, --quiet      do not print progress messages
33275   -d, --debug      don't remove temporary files
33276       --recheck    update $as_me by reconfiguring in the same conditions
33277   --file=FILE[:TEMPLATE]
33278                    instantiate the configuration file FILE
33279   --header=FILE[:TEMPLATE]
33280                    instantiate the configuration header FILE
33282 Configuration files:
33283 $config_files
33285 Configuration headers:
33286 $config_headers
33288 Configuration commands:
33289 $config_commands
33291 Report bugs to <bug-autoconf@gnu.org>."
33293 _ACEOF
33294 cat >>$CONFIG_STATUS <<_ACEOF
33295 ac_cs_version="\\
33296 rrdtool config.status 1.3.5
33297 configured by $0, generated by GNU Autoconf 2.61,
33298   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
33300 Copyright (C) 2006 Free Software Foundation, Inc.
33301 This config.status script is free software; the Free Software Foundation
33302 gives unlimited permission to copy, distribute and modify it."
33304 ac_pwd='$ac_pwd'
33305 srcdir='$srcdir'
33306 INSTALL='$INSTALL'
33307 _ACEOF
33309 cat >>$CONFIG_STATUS <<\_ACEOF
33310 # If no file are specified by the user, then we need to provide default
33311 # value.  By we need to know if files were specified by the user.
33312 ac_need_defaults=:
33313 while test $# != 0
33315   case $1 in
33316   --*=*)
33317     ac_option=`expr "X$1" : 'X\([^=]*\)='`
33318     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
33319     ac_shift=:
33320     ;;
33321   *)
33322     ac_option=$1
33323     ac_optarg=$2
33324     ac_shift=shift
33325     ;;
33326   esac
33328   case $ac_option in
33329   # Handling of the options.
33330   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
33331     ac_cs_recheck=: ;;
33332   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
33333     echo "$ac_cs_version"; exit ;;
33334   --debug | --debu | --deb | --de | --d | -d )
33335     debug=: ;;
33336   --file | --fil | --fi | --f )
33337     $ac_shift
33338     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
33339     ac_need_defaults=false;;
33340   --header | --heade | --head | --hea )
33341     $ac_shift
33342     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
33343     ac_need_defaults=false;;
33344   --he | --h)
33345     # Conflict between --help and --header
33346     { echo "$as_me: error: ambiguous option: $1
33347 Try \`$0 --help' for more information." >&2
33348    { (exit 1); exit 1; }; };;
33349   --help | --hel | -h )
33350     echo "$ac_cs_usage"; exit ;;
33351   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
33352   | -silent | --silent | --silen | --sile | --sil | --si | --s)
33353     ac_cs_silent=: ;;
33355   # This is an error.
33356   -*) { echo "$as_me: error: unrecognized option: $1
33357 Try \`$0 --help' for more information." >&2
33358    { (exit 1); exit 1; }; } ;;
33360   *) ac_config_targets="$ac_config_targets $1"
33361      ac_need_defaults=false ;;
33363   esac
33364   shift
33365 done
33367 ac_configure_extra_args=
33369 if $ac_cs_silent; then
33370   exec 6>/dev/null
33371   ac_configure_extra_args="$ac_configure_extra_args --silent"
33374 _ACEOF
33375 cat >>$CONFIG_STATUS <<_ACEOF
33376 if \$ac_cs_recheck; then
33377   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
33378   CONFIG_SHELL=$SHELL
33379   export CONFIG_SHELL
33380   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
33383 _ACEOF
33384 cat >>$CONFIG_STATUS <<\_ACEOF
33385 exec 5>>config.log
33387   echo
33388   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
33389 ## Running $as_me. ##
33390 _ASBOX
33391   echo "$ac_log"
33392 } >&5
33394 _ACEOF
33395 cat >>$CONFIG_STATUS <<_ACEOF
33397 # INIT-COMMANDS
33399 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
33401 INTLTOOL_PERL='${INTLTOOL_PERL}' ac_aux_dir='${ac_aux_dir}'
33402 prefix="$prefix" exec_prefix="$exec_prefix" INTLTOOL_LIBDIR="$libdir"
33403 INTLTOOL_EXTRACT='${INTLTOOL_EXTRACT}'
33406 _ACEOF
33408 cat >>$CONFIG_STATUS <<\_ACEOF
33410 # Handling of arguments.
33411 for ac_config_target in $ac_config_targets
33413   case $ac_config_target in
33414     "rrd_config.h") CONFIG_HEADERS="$CONFIG_HEADERS rrd_config.h" ;;
33415     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
33416     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
33417     "intltool") CONFIG_COMMANDS="$CONFIG_COMMANDS intltool" ;;
33418     "examples/shared-demo.pl") CONFIG_FILES="$CONFIG_FILES examples/shared-demo.pl" ;;
33419     "examples/piped-demo.pl") CONFIG_FILES="$CONFIG_FILES examples/piped-demo.pl" ;;
33420     "examples/stripes.pl") CONFIG_FILES="$CONFIG_FILES examples/stripes.pl" ;;
33421     "examples/bigtops.pl") CONFIG_FILES="$CONFIG_FILES examples/bigtops.pl" ;;
33422     "examples/minmax.pl") CONFIG_FILES="$CONFIG_FILES examples/minmax.pl" ;;
33423     "examples/4charts.pl") CONFIG_FILES="$CONFIG_FILES examples/4charts.pl" ;;
33424     "examples/perftest.pl") CONFIG_FILES="$CONFIG_FILES examples/perftest.pl" ;;
33425     "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
33426     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
33427     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
33428     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
33429     "src/librrd.sym.in") CONFIG_FILES="$CONFIG_FILES src/librrd.sym.in" ;;
33430     "src/librrd.pc") CONFIG_FILES="$CONFIG_FILES src/librrd.pc" ;;
33431     "bindings/Makefile") CONFIG_FILES="$CONFIG_FILES bindings/Makefile" ;;
33432     "bindings/tcl/Makefile") CONFIG_FILES="$CONFIG_FILES bindings/tcl/Makefile" ;;
33433     "bindings/tcl/ifOctets.tcl") CONFIG_FILES="$CONFIG_FILES bindings/tcl/ifOctets.tcl" ;;
33434     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
33435     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
33436     "po/stamp-it") CONFIG_COMMANDS="$CONFIG_COMMANDS po/stamp-it" ;;
33438   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
33439 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
33440    { (exit 1); exit 1; }; };;
33441   esac
33442 done
33445 # If the user did not use the arguments to specify the items to instantiate,
33446 # then the envvar interface is used.  Set only those that are not.
33447 # We use the long form for the default assignment because of an extremely
33448 # bizarre bug on SunOS 4.1.3.
33449 if $ac_need_defaults; then
33450   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
33451   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
33452   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
33455 # Have a temporary directory for convenience.  Make it in the build tree
33456 # simply because there is no reason against having it here, and in addition,
33457 # creating and moving files from /tmp can sometimes cause problems.
33458 # Hook for its removal unless debugging.
33459 # Note that there is a small window in which the directory will not be cleaned:
33460 # after its creation but before its name has been assigned to `$tmp'.
33461 $debug ||
33463   tmp=
33464   trap 'exit_status=$?
33465   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
33466 ' 0
33467   trap '{ (exit 1); exit 1; }' 1 2 13 15
33469 # Create a (secure) tmp directory for tmp files.
33472   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
33473   test -n "$tmp" && test -d "$tmp"
33474 }  ||
33476   tmp=./conf$$-$RANDOM
33477   (umask 077 && mkdir "$tmp")
33478 } ||
33480    echo "$me: cannot create a temporary directory in ." >&2
33481    { (exit 1); exit 1; }
33485 # Set up the sed scripts for CONFIG_FILES section.
33488 # No need to generate the scripts if there are no CONFIG_FILES.
33489 # This happens for instance when ./config.status config.h
33490 if test -n "$CONFIG_FILES"; then
33492 _ACEOF
33496 ac_delim='%!_!# '
33497 for ac_last_try in false false false false false :; do
33498   cat >conf$$subs.sed <<_ACEOF
33499 PERLFLAGS!$PERLFLAGS$ac_delim
33500 SHELL!$SHELL$ac_delim
33501 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
33502 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
33503 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
33504 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
33505 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
33506 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
33507 exec_prefix!$exec_prefix$ac_delim
33508 prefix!$prefix$ac_delim
33509 program_transform_name!$program_transform_name$ac_delim
33510 bindir!$bindir$ac_delim
33511 sbindir!$sbindir$ac_delim
33512 libexecdir!$libexecdir$ac_delim
33513 datarootdir!$datarootdir$ac_delim
33514 datadir!$datadir$ac_delim
33515 sysconfdir!$sysconfdir$ac_delim
33516 sharedstatedir!$sharedstatedir$ac_delim
33517 localstatedir!$localstatedir$ac_delim
33518 includedir!$includedir$ac_delim
33519 oldincludedir!$oldincludedir$ac_delim
33520 docdir!$docdir$ac_delim
33521 infodir!$infodir$ac_delim
33522 htmldir!$htmldir$ac_delim
33523 dvidir!$dvidir$ac_delim
33524 pdfdir!$pdfdir$ac_delim
33525 psdir!$psdir$ac_delim
33526 libdir!$libdir$ac_delim
33527 localedir!$localedir$ac_delim
33528 mandir!$mandir$ac_delim
33529 DEFS!$DEFS$ac_delim
33530 ECHO_C!$ECHO_C$ac_delim
33531 ECHO_N!$ECHO_N$ac_delim
33532 ECHO_T!$ECHO_T$ac_delim
33533 LIBS!$LIBS$ac_delim
33534 build_alias!$build_alias$ac_delim
33535 host_alias!$host_alias$ac_delim
33536 target_alias!$target_alias$ac_delim
33537 NUMVERS!$NUMVERS$ac_delim
33538 LIBVERS!$LIBVERS$ac_delim
33539 build!$build$ac_delim
33540 build_cpu!$build_cpu$ac_delim
33541 build_vendor!$build_vendor$ac_delim
33542 build_os!$build_os$ac_delim
33543 host!$host$ac_delim
33544 host_cpu!$host_cpu$ac_delim
33545 host_vendor!$host_vendor$ac_delim
33546 host_os!$host_os$ac_delim
33547 target!$target$ac_delim
33548 target_cpu!$target_cpu$ac_delim
33549 target_vendor!$target_vendor$ac_delim
33550 target_os!$target_os$ac_delim
33551 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
33552 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
33553 INSTALL_DATA!$INSTALL_DATA$ac_delim
33554 CYGPATH_W!$CYGPATH_W$ac_delim
33555 PACKAGE!$PACKAGE$ac_delim
33556 VERSION!$VERSION$ac_delim
33557 ACLOCAL!$ACLOCAL$ac_delim
33558 AUTOCONF!$AUTOCONF$ac_delim
33559 AUTOMAKE!$AUTOMAKE$ac_delim
33560 AUTOHEADER!$AUTOHEADER$ac_delim
33561 MAKEINFO!$MAKEINFO$ac_delim
33562 install_sh!$install_sh$ac_delim
33563 STRIP!$STRIP$ac_delim
33564 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
33565 mkdir_p!$mkdir_p$ac_delim
33566 AWK!$AWK$ac_delim
33567 SET_MAKE!$SET_MAKE$ac_delim
33568 am__leading_dot!$am__leading_dot$ac_delim
33569 AMTAR!$AMTAR$ac_delim
33570 am__tar!$am__tar$ac_delim
33571 am__untar!$am__untar$ac_delim
33572 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
33573 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
33574 MAINT!$MAINT$ac_delim
33575 RRDGRAPH_YLEGEND_ANGLE!$RRDGRAPH_YLEGEND_ANGLE$ac_delim
33576 STATIC_PROGRAMS_TRUE!$STATIC_PROGRAMS_TRUE$ac_delim
33577 STATIC_PROGRAMS_FALSE!$STATIC_PROGRAMS_FALSE$ac_delim
33578 CC!$CC$ac_delim
33579 CFLAGS!$CFLAGS$ac_delim
33580 LDFLAGS!$LDFLAGS$ac_delim
33581 CPPFLAGS!$CPPFLAGS$ac_delim
33582 ac_ct_CC!$ac_ct_CC$ac_delim
33583 EXEEXT!$EXEEXT$ac_delim
33584 OBJEXT!$OBJEXT$ac_delim
33585 DEPDIR!$DEPDIR$ac_delim
33586 am__include!$am__include$ac_delim
33587 am__quote!$am__quote$ac_delim
33588 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
33589 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
33590 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
33591 CCDEPMODE!$CCDEPMODE$ac_delim
33592 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
33593 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
33594 CPP!$CPP$ac_delim
33595 SED!$SED$ac_delim
33596 _ACEOF
33598   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
33599     break
33600   elif $ac_last_try; then
33601     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
33602 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
33603    { (exit 1); exit 1; }; }
33604   else
33605     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33606   fi
33607 done
33609 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
33610 if test -n "$ac_eof"; then
33611   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
33612   ac_eof=`expr $ac_eof + 1`
33615 cat >>$CONFIG_STATUS <<_ACEOF
33616 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
33617 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
33618 _ACEOF
33619 sed '
33620 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
33621 s/^/s,@/; s/!/@,|#_!!_#|/
33623 t n
33624 s/'"$ac_delim"'$/,g/; t
33625 s/$/\\/; p
33626 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
33627 ' >>$CONFIG_STATUS <conf$$subs.sed
33628 rm -f conf$$subs.sed
33629 cat >>$CONFIG_STATUS <<_ACEOF
33630 CEOF$ac_eof
33631 _ACEOF
33634 ac_delim='%!_!# '
33635 for ac_last_try in false false false false false :; do
33636   cat >conf$$subs.sed <<_ACEOF
33637 GREP!$GREP$ac_delim
33638 EGREP!$EGREP$ac_delim
33639 LN_S!$LN_S$ac_delim
33640 ECHO!$ECHO$ac_delim
33641 AR!$AR$ac_delim
33642 RANLIB!$RANLIB$ac_delim
33643 DSYMUTIL!$DSYMUTIL$ac_delim
33644 NMEDIT!$NMEDIT$ac_delim
33645 CXX!$CXX$ac_delim
33646 CXXFLAGS!$CXXFLAGS$ac_delim
33647 ac_ct_CXX!$ac_ct_CXX$ac_delim
33648 CXXDEPMODE!$CXXDEPMODE$ac_delim
33649 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
33650 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
33651 CXXCPP!$CXXCPP$ac_delim
33652 F77!$F77$ac_delim
33653 FFLAGS!$FFLAGS$ac_delim
33654 ac_ct_F77!$ac_ct_F77$ac_delim
33655 LIBTOOL!$LIBTOOL$ac_delim
33656 RRD_DEFAULT_FONT!$RRD_DEFAULT_FONT$ac_delim
33657 GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim
33658 USE_NLS!$USE_NLS$ac_delim
33659 MSGFMT!$MSGFMT$ac_delim
33660 MSGFMT_OPTS!$MSGFMT_OPTS$ac_delim
33661 GMSGFMT!$GMSGFMT$ac_delim
33662 XGETTEXT!$XGETTEXT$ac_delim
33663 CATALOGS!$CATALOGS$ac_delim
33664 CATOBJEXT!$CATOBJEXT$ac_delim
33665 DATADIRNAME!$DATADIRNAME$ac_delim
33666 GMOFILES!$GMOFILES$ac_delim
33667 INSTOBJEXT!$INSTOBJEXT$ac_delim
33668 INTLLIBS!$INTLLIBS$ac_delim
33669 PO_IN_DATADIR_TRUE!$PO_IN_DATADIR_TRUE$ac_delim
33670 PO_IN_DATADIR_FALSE!$PO_IN_DATADIR_FALSE$ac_delim
33671 POFILES!$POFILES$ac_delim
33672 POSUB!$POSUB$ac_delim
33673 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
33674 INTLTOOL_DESKTOP_RULE!$INTLTOOL_DESKTOP_RULE$ac_delim
33675 INTLTOOL_DIRECTORY_RULE!$INTLTOOL_DIRECTORY_RULE$ac_delim
33676 INTLTOOL_KEYS_RULE!$INTLTOOL_KEYS_RULE$ac_delim
33677 INTLTOOL_PROP_RULE!$INTLTOOL_PROP_RULE$ac_delim
33678 INTLTOOL_OAF_RULE!$INTLTOOL_OAF_RULE$ac_delim
33679 INTLTOOL_PONG_RULE!$INTLTOOL_PONG_RULE$ac_delim
33680 INTLTOOL_SERVER_RULE!$INTLTOOL_SERVER_RULE$ac_delim
33681 INTLTOOL_SHEET_RULE!$INTLTOOL_SHEET_RULE$ac_delim
33682 INTLTOOL_SOUNDLIST_RULE!$INTLTOOL_SOUNDLIST_RULE$ac_delim
33683 INTLTOOL_UI_RULE!$INTLTOOL_UI_RULE$ac_delim
33684 INTLTOOL_XAM_RULE!$INTLTOOL_XAM_RULE$ac_delim
33685 INTLTOOL_KBD_RULE!$INTLTOOL_KBD_RULE$ac_delim
33686 INTLTOOL_XML_RULE!$INTLTOOL_XML_RULE$ac_delim
33687 INTLTOOL_XML_NOMERGE_RULE!$INTLTOOL_XML_NOMERGE_RULE$ac_delim
33688 INTLTOOL_CAVES_RULE!$INTLTOOL_CAVES_RULE$ac_delim
33689 INTLTOOL_SCHEMAS_RULE!$INTLTOOL_SCHEMAS_RULE$ac_delim
33690 INTLTOOL_THEME_RULE!$INTLTOOL_THEME_RULE$ac_delim
33691 INTLTOOL_SERVICE_RULE!$INTLTOOL_SERVICE_RULE$ac_delim
33692 INTLTOOL_POLICY_RULE!$INTLTOOL_POLICY_RULE$ac_delim
33693 MSGMERGE!$MSGMERGE$ac_delim
33694 INTLTOOL_EXTRACT!$INTLTOOL_EXTRACT$ac_delim
33695 INTLTOOL_MERGE!$INTLTOOL_MERGE$ac_delim
33696 INTLTOOL_UPDATE!$INTLTOOL_UPDATE$ac_delim
33697 INTLTOOL_PERL!$INTLTOOL_PERL$ac_delim
33698 ALL_LINGUAS!$ALL_LINGUAS$ac_delim
33699 LIB_LIBINTL!$LIB_LIBINTL$ac_delim
33700 BUILD_LIBINTL_TRUE!$BUILD_LIBINTL_TRUE$ac_delim
33701 BUILD_LIBINTL_FALSE!$BUILD_LIBINTL_FALSE$ac_delim
33702 RRD_GETOPT_LONG!$RRD_GETOPT_LONG$ac_delim
33703 BUILD_GETOPT_TRUE!$BUILD_GETOPT_TRUE$ac_delim
33704 BUILD_GETOPT_FALSE!$BUILD_GETOPT_FALSE$ac_delim
33705 MULTITHREAD_CFLAGS!$MULTITHREAD_CFLAGS$ac_delim
33706 MULTITHREAD_LDFLAGS!$MULTITHREAD_LDFLAGS$ac_delim
33707 acx_pthread_config!$acx_pthread_config$ac_delim
33708 PTHREAD_CC!$PTHREAD_CC$ac_delim
33709 PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
33710 PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim
33711 BUILD_MULTITHREAD_TRUE!$BUILD_MULTITHREAD_TRUE$ac_delim
33712 BUILD_MULTITHREAD_FALSE!$BUILD_MULTITHREAD_FALSE$ac_delim
33713 BUILD_RRDCGI_TRUE!$BUILD_RRDCGI_TRUE$ac_delim
33714 BUILD_RRDCGI_FALSE!$BUILD_RRDCGI_FALSE$ac_delim
33715 PKGCONFIG!$PKGCONFIG$ac_delim
33716 CORE_LIBS!$CORE_LIBS$ac_delim
33717 ALL_LIBS!$ALL_LIBS$ac_delim
33718 PERL!$PERL$ac_delim
33719 POD2MAN!$POD2MAN$ac_delim
33720 POD2HTML!$POD2HTML$ac_delim
33721 PERLCC!$PERLCC$ac_delim
33722 PERLCCFLAGS!$PERLCCFLAGS$ac_delim
33723 PERLLD!$PERLLD$ac_delim
33724 PERLLDFLAGS!$PERLLDFLAGS$ac_delim
33725 PERL_CC!$PERL_CC$ac_delim
33726 PERL_MAKE_OPTIONS!$PERL_MAKE_OPTIONS$ac_delim
33727 COMP_PERL!$COMP_PERL$ac_delim
33728 PERL_VERSION!$PERL_VERSION$ac_delim
33729 RUBY!$RUBY$ac_delim
33730 RUBY_MAKE_OPTIONS!$RUBY_MAKE_OPTIONS$ac_delim
33731 COMP_RUBY!$COMP_RUBY$ac_delim
33732 BUILD_TCL_TRUE!$BUILD_TCL_TRUE$ac_delim
33733 BUILD_TCL_FALSE!$BUILD_TCL_FALSE$ac_delim
33734 _ACEOF
33736   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
33737     break
33738   elif $ac_last_try; then
33739     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
33740 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
33741    { (exit 1); exit 1; }; }
33742   else
33743     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33744   fi
33745 done
33747 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
33748 if test -n "$ac_eof"; then
33749   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
33750   ac_eof=`expr $ac_eof + 1`
33753 cat >>$CONFIG_STATUS <<_ACEOF
33754 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
33755 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
33756 _ACEOF
33757 sed '
33758 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
33759 s/^/s,@/; s/!/@,|#_!!_#|/
33761 t n
33762 s/'"$ac_delim"'$/,g/; t
33763 s/$/\\/; p
33764 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
33765 ' >>$CONFIG_STATUS <conf$$subs.sed
33766 rm -f conf$$subs.sed
33767 cat >>$CONFIG_STATUS <<_ACEOF
33768 CEOF$ac_eof
33769 _ACEOF
33772 ac_delim='%!_!# '
33773 for ac_last_try in false false false false false :; do
33774   cat >conf$$subs.sed <<_ACEOF
33775 BUILD_TCL_SITE_TRUE!$BUILD_TCL_SITE_TRUE$ac_delim
33776 BUILD_TCL_SITE_FALSE!$BUILD_TCL_SITE_FALSE$ac_delim
33777 TCL_PREFIX!$TCL_PREFIX$ac_delim
33778 TCL_SHLIB_CFLAGS!$TCL_SHLIB_CFLAGS$ac_delim
33779 TCL_SHLIB_LD!$TCL_SHLIB_LD$ac_delim
33780 TCL_SHLIB_SUFFIX!$TCL_SHLIB_SUFFIX$ac_delim
33781 TCL_PACKAGE_PATH!$TCL_PACKAGE_PATH$ac_delim
33782 TCL_LD_SEARCH_FLAGS!$TCL_LD_SEARCH_FLAGS$ac_delim
33783 TCL_STUB_LIB_SPEC!$TCL_STUB_LIB_SPEC$ac_delim
33784 TCL_VERSION!$TCL_VERSION$ac_delim
33785 TCL_PACKAGE_DIR!$TCL_PACKAGE_DIR$ac_delim
33786 TCL_INCLUDE_SPEC!$TCL_INCLUDE_SPEC$ac_delim
33787 PYTHON!$PYTHON$ac_delim
33788 PYTHON_VERSION!$PYTHON_VERSION$ac_delim
33789 PYTHON_PREFIX!$PYTHON_PREFIX$ac_delim
33790 PYTHON_EXEC_PREFIX!$PYTHON_EXEC_PREFIX$ac_delim
33791 PYTHON_PLATFORM!$PYTHON_PLATFORM$ac_delim
33792 pythondir!$pythondir$ac_delim
33793 pkgpythondir!$pkgpythondir$ac_delim
33794 pyexecdir!$pyexecdir$ac_delim
33795 pkgpyexecdir!$pkgpyexecdir$ac_delim
33796 PYTHON_INCLUDES!$PYTHON_INCLUDES$ac_delim
33797 COMP_PYTHON!$COMP_PYTHON$ac_delim
33798 NROFF!$NROFF$ac_delim
33799 TROFF!$TROFF$ac_delim
33800 RRDDOCDIR!$RRDDOCDIR$ac_delim
33801 LIBOBJS!$LIBOBJS$ac_delim
33802 LTLIBOBJS!$LTLIBOBJS$ac_delim
33803 _ACEOF
33805   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 28; then
33806     break
33807   elif $ac_last_try; then
33808     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
33809 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
33810    { (exit 1); exit 1; }; }
33811   else
33812     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33813   fi
33814 done
33816 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
33817 if test -n "$ac_eof"; then
33818   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
33819   ac_eof=`expr $ac_eof + 1`
33822 cat >>$CONFIG_STATUS <<_ACEOF
33823 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
33824 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
33825 _ACEOF
33826 sed '
33827 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
33828 s/^/s,@/; s/!/@,|#_!!_#|/
33830 t n
33831 s/'"$ac_delim"'$/,g/; t
33832 s/$/\\/; p
33833 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
33834 ' >>$CONFIG_STATUS <conf$$subs.sed
33835 rm -f conf$$subs.sed
33836 cat >>$CONFIG_STATUS <<_ACEOF
33837 :end
33838 s/|#_!!_#|//g
33839 CEOF$ac_eof
33840 _ACEOF
33843 # VPATH may cause trouble with some makes, so we remove $(srcdir),
33844 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
33845 # trailing colons and then remove the whole line if VPATH becomes empty
33846 # (actually we leave an empty line to preserve line numbers).
33847 if test "x$srcdir" = x.; then
33848   ac_vpsub='/^[  ]*VPATH[        ]*=/{
33849 s/:*\$(srcdir):*/:/
33850 s/:*\${srcdir}:*/:/
33851 s/:*@srcdir@:*/:/
33852 s/^\([^=]*=[     ]*\):*/\1/
33853 s/:*$//
33854 s/^[^=]*=[       ]*$//
33858 cat >>$CONFIG_STATUS <<\_ACEOF
33859 fi # test -n "$CONFIG_FILES"
33862 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
33864   case $ac_tag in
33865   :[FHLC]) ac_mode=$ac_tag; continue;;
33866   esac
33867   case $ac_mode$ac_tag in
33868   :[FHL]*:*);;
33869   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
33870 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
33871    { (exit 1); exit 1; }; };;
33872   :[FH]-) ac_tag=-:-;;
33873   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
33874   esac
33875   ac_save_IFS=$IFS
33876   IFS=:
33877   set x $ac_tag
33878   IFS=$ac_save_IFS
33879   shift
33880   ac_file=$1
33881   shift
33883   case $ac_mode in
33884   :L) ac_source=$1;;
33885   :[FH])
33886     ac_file_inputs=
33887     for ac_f
33888     do
33889       case $ac_f in
33890       -) ac_f="$tmp/stdin";;
33891       *) # Look for the file first in the build tree, then in the source tree
33892          # (if the path is not absolute).  The absolute path cannot be DOS-style,
33893          # because $ac_f cannot contain `:'.
33894          test -f "$ac_f" ||
33895            case $ac_f in
33896            [\\/$]*) false;;
33897            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
33898            esac ||
33899            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
33900 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
33901    { (exit 1); exit 1; }; };;
33902       esac
33903       ac_file_inputs="$ac_file_inputs $ac_f"
33904     done
33906     # Let's still pretend it is `configure' which instantiates (i.e., don't
33907     # use $as_me), people would be surprised to read:
33908     #    /* config.h.  Generated by config.status.  */
33909     configure_input="Generated from "`IFS=:
33910           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
33911     if test x"$ac_file" != x-; then
33912       configure_input="$ac_file.  $configure_input"
33913       { echo "$as_me:$LINENO: creating $ac_file" >&5
33914 echo "$as_me: creating $ac_file" >&6;}
33915     fi
33917     case $ac_tag in
33918     *:-:* | *:-) cat >"$tmp/stdin";;
33919     esac
33920     ;;
33921   esac
33923   ac_dir=`$as_dirname -- "$ac_file" ||
33924 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33925          X"$ac_file" : 'X\(//\)[^/]' \| \
33926          X"$ac_file" : 'X\(//\)$' \| \
33927          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
33928 echo X"$ac_file" |
33929     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33930             s//\1/
33931             q
33932           }
33933           /^X\(\/\/\)[^/].*/{
33934             s//\1/
33935             q
33936           }
33937           /^X\(\/\/\)$/{
33938             s//\1/
33939             q
33940           }
33941           /^X\(\/\).*/{
33942             s//\1/
33943             q
33944           }
33945           s/.*/./; q'`
33946   { as_dir="$ac_dir"
33947   case $as_dir in #(
33948   -*) as_dir=./$as_dir;;
33949   esac
33950   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
33951     as_dirs=
33952     while :; do
33953       case $as_dir in #(
33954       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
33955       *) as_qdir=$as_dir;;
33956       esac
33957       as_dirs="'$as_qdir' $as_dirs"
33958       as_dir=`$as_dirname -- "$as_dir" ||
33959 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33960          X"$as_dir" : 'X\(//\)[^/]' \| \
33961          X"$as_dir" : 'X\(//\)$' \| \
33962          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
33963 echo X"$as_dir" |
33964     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33965             s//\1/
33966             q
33967           }
33968           /^X\(\/\/\)[^/].*/{
33969             s//\1/
33970             q
33971           }
33972           /^X\(\/\/\)$/{
33973             s//\1/
33974             q
33975           }
33976           /^X\(\/\).*/{
33977             s//\1/
33978             q
33979           }
33980           s/.*/./; q'`
33981       test -d "$as_dir" && break
33982     done
33983     test -z "$as_dirs" || eval "mkdir $as_dirs"
33984   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
33985 echo "$as_me: error: cannot create directory $as_dir" >&2;}
33986    { (exit 1); exit 1; }; }; }
33987   ac_builddir=.
33989 case "$ac_dir" in
33990 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
33992   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
33993   # A ".." for each directory in $ac_dir_suffix.
33994   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
33995   case $ac_top_builddir_sub in
33996   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
33997   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
33998   esac ;;
33999 esac
34000 ac_abs_top_builddir=$ac_pwd
34001 ac_abs_builddir=$ac_pwd$ac_dir_suffix
34002 # for backward compatibility:
34003 ac_top_builddir=$ac_top_build_prefix
34005 case $srcdir in
34006   .)  # We are building in place.
34007     ac_srcdir=.
34008     ac_top_srcdir=$ac_top_builddir_sub
34009     ac_abs_top_srcdir=$ac_pwd ;;
34010   [\\/]* | ?:[\\/]* )  # Absolute name.
34011     ac_srcdir=$srcdir$ac_dir_suffix;
34012     ac_top_srcdir=$srcdir
34013     ac_abs_top_srcdir=$srcdir ;;
34014   *) # Relative name.
34015     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
34016     ac_top_srcdir=$ac_top_build_prefix$srcdir
34017     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
34018 esac
34019 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
34022   case $ac_mode in
34023   :F)
34024   #
34025   # CONFIG_FILE
34026   #
34028   case $INSTALL in
34029   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
34030   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
34031   esac
34032 _ACEOF
34034 cat >>$CONFIG_STATUS <<\_ACEOF
34035 # If the template does not know about datarootdir, expand it.
34036 # FIXME: This hack should be removed a few years after 2.60.
34037 ac_datarootdir_hack=; ac_datarootdir_seen=
34039 case `sed -n '/datarootdir/ {
34040   p
34041   q
34043 /@datadir@/p
34044 /@docdir@/p
34045 /@infodir@/p
34046 /@localedir@/p
34047 /@mandir@/p
34048 ' $ac_file_inputs` in
34049 *datarootdir*) ac_datarootdir_seen=yes;;
34050 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
34051   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
34052 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
34053 _ACEOF
34054 cat >>$CONFIG_STATUS <<_ACEOF
34055   ac_datarootdir_hack='
34056   s&@datadir@&$datadir&g
34057   s&@docdir@&$docdir&g
34058   s&@infodir@&$infodir&g
34059   s&@localedir@&$localedir&g
34060   s&@mandir@&$mandir&g
34061     s&\\\${datarootdir}&$datarootdir&g' ;;
34062 esac
34063 _ACEOF
34065 # Neutralize VPATH when `$srcdir' = `.'.
34066 # Shell code in configure.ac might set extrasub.
34067 # FIXME: do we really want to maintain this feature?
34068 cat >>$CONFIG_STATUS <<_ACEOF
34069   sed "$ac_vpsub
34070 $extrasub
34071 _ACEOF
34072 cat >>$CONFIG_STATUS <<\_ACEOF
34074 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34075 s&@configure_input@&$configure_input&;t t
34076 s&@top_builddir@&$ac_top_builddir_sub&;t t
34077 s&@srcdir@&$ac_srcdir&;t t
34078 s&@abs_srcdir@&$ac_abs_srcdir&;t t
34079 s&@top_srcdir@&$ac_top_srcdir&;t t
34080 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
34081 s&@builddir@&$ac_builddir&;t t
34082 s&@abs_builddir@&$ac_abs_builddir&;t t
34083 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
34084 s&@INSTALL@&$ac_INSTALL&;t t
34085 $ac_datarootdir_hack
34086 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
34088 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
34089   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
34090   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
34091   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34092 which seems to be undefined.  Please make sure it is defined." >&5
34093 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34094 which seems to be undefined.  Please make sure it is defined." >&2;}
34096   rm -f "$tmp/stdin"
34097   case $ac_file in
34098   -) cat "$tmp/out"; rm -f "$tmp/out";;
34099   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
34100   esac
34101  ;;
34102   :H)
34103   #
34104   # CONFIG_HEADER
34105   #
34106 _ACEOF
34108 # Transform confdefs.h into a sed script `conftest.defines', that
34109 # substitutes the proper values into config.h.in to produce config.h.
34110 rm -f conftest.defines conftest.tail
34111 # First, append a space to every undef/define line, to ease matching.
34112 echo 's/$/ /' >conftest.defines
34113 # Then, protect against being on the right side of a sed subst, or in
34114 # an unquoted here document, in config.status.  If some macros were
34115 # called several times there might be several #defines for the same
34116 # symbol, which is useless.  But do not sort them, since the last
34117 # AC_DEFINE must be honored.
34118 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
34119 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
34120 # NAME is the cpp macro being defined, VALUE is the value it is being given.
34121 # PARAMS is the parameter list in the macro definition--in most cases, it's
34122 # just an empty string.
34123 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
34124 ac_dB='\\)[      (].*,\\1define\\2'
34125 ac_dC=' '
34126 ac_dD=' ,'
34128 uniq confdefs.h |
34129   sed -n '
34130         t rset
34131         :rset
34132         s/^[     ]*#[    ]*define[       ][      ]*//
34133         t ok
34134         d
34135         :ok
34136         s/[\\&,]/\\&/g
34137         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
34138         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
34139   ' >>conftest.defines
34141 # Remove the space that was appended to ease matching.
34142 # Then replace #undef with comments.  This is necessary, for
34143 # example, in the case of _POSIX_SOURCE, which is predefined and required
34144 # on some systems where configure will not decide to define it.
34145 # (The regexp can be short, since the line contains either #define or #undef.)
34146 echo 's/ $//
34147 s,^[     #]*u.*,/* & */,' >>conftest.defines
34149 # Break up conftest.defines:
34150 ac_max_sed_lines=50
34152 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
34153 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
34154 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
34155 # et cetera.
34156 ac_in='$ac_file_inputs'
34157 ac_out='"$tmp/out1"'
34158 ac_nxt='"$tmp/out2"'
34160 while :
34162   # Write a here document:
34163     cat >>$CONFIG_STATUS <<_ACEOF
34164     # First, check the format of the line:
34165     cat >"\$tmp/defines.sed" <<\\CEOF
34166 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
34167 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
34169 :def
34170 _ACEOF
34171   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
34172   echo 'CEOF
34173     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
34174   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
34175   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
34176   grep . conftest.tail >/dev/null || break
34177   rm -f conftest.defines
34178   mv conftest.tail conftest.defines
34179 done
34180 rm -f conftest.defines conftest.tail
34182 echo "ac_result=$ac_in" >>$CONFIG_STATUS
34183 cat >>$CONFIG_STATUS <<\_ACEOF
34184   if test x"$ac_file" != x-; then
34185     echo "/* $configure_input  */" >"$tmp/config.h"
34186     cat "$ac_result" >>"$tmp/config.h"
34187     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
34188       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
34189 echo "$as_me: $ac_file is unchanged" >&6;}
34190     else
34191       rm -f $ac_file
34192       mv "$tmp/config.h" $ac_file
34193     fi
34194   else
34195     echo "/* $configure_input  */"
34196     cat "$ac_result"
34197   fi
34198   rm -f "$tmp/out12"
34199 # Compute $ac_file's index in $config_headers.
34200 _am_stamp_count=1
34201 for _am_header in $config_headers :; do
34202   case $_am_header in
34203     $ac_file | $ac_file:* )
34204       break ;;
34205     * )
34206       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
34207   esac
34208 done
34209 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
34210 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34211          X$ac_file : 'X\(//\)[^/]' \| \
34212          X$ac_file : 'X\(//\)$' \| \
34213          X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
34214 echo X$ac_file |
34215     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34216             s//\1/
34217             q
34218           }
34219           /^X\(\/\/\)[^/].*/{
34220             s//\1/
34221             q
34222           }
34223           /^X\(\/\/\)$/{
34224             s//\1/
34225             q
34226           }
34227           /^X\(\/\).*/{
34228             s//\1/
34229             q
34230           }
34231           s/.*/./; q'`/stamp-h$_am_stamp_count
34232  ;;
34234   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
34235 echo "$as_me: executing $ac_file commands" >&6;}
34236  ;;
34237   esac
34240   case $ac_file$ac_mode in
34241     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
34242   # Strip MF so we end up with the name of the file.
34243   mf=`echo "$mf" | sed -e 's/:.*$//'`
34244   # Check whether this is an Automake generated Makefile or not.
34245   # We used to match only the files named `Makefile.in', but
34246   # some people rename them; so instead we look at the file content.
34247   # Grep'ing the first line is not enough: some people post-process
34248   # each Makefile.in and add a new line on top of each file to say so.
34249   # So let's grep whole file.
34250   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
34251     dirpart=`$as_dirname -- "$mf" ||
34252 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34253          X"$mf" : 'X\(//\)[^/]' \| \
34254          X"$mf" : 'X\(//\)$' \| \
34255          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
34256 echo X"$mf" |
34257     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34258             s//\1/
34259             q
34260           }
34261           /^X\(\/\/\)[^/].*/{
34262             s//\1/
34263             q
34264           }
34265           /^X\(\/\/\)$/{
34266             s//\1/
34267             q
34268           }
34269           /^X\(\/\).*/{
34270             s//\1/
34271             q
34272           }
34273           s/.*/./; q'`
34274   else
34275     continue
34276   fi
34277   # Extract the definition of DEPDIR, am__include, and am__quote
34278   # from the Makefile without running `make'.
34279   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
34280   test -z "$DEPDIR" && continue
34281   am__include=`sed -n 's/^am__include = //p' < "$mf"`
34282   test -z "am__include" && continue
34283   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
34284   # When using ansi2knr, U may be empty or an underscore; expand it
34285   U=`sed -n 's/^U = //p' < "$mf"`
34286   # Find all dependency output files, they are included files with
34287   # $(DEPDIR) in their names.  We invoke sed twice because it is the
34288   # simplest approach to changing $(DEPDIR) to its actual value in the
34289   # expansion.
34290   for file in `sed -n "
34291     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
34292        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
34293     # Make sure the directory exists.
34294     test -f "$dirpart/$file" && continue
34295     fdir=`$as_dirname -- "$file" ||
34296 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34297          X"$file" : 'X\(//\)[^/]' \| \
34298          X"$file" : 'X\(//\)$' \| \
34299          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
34300 echo X"$file" |
34301     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34302             s//\1/
34303             q
34304           }
34305           /^X\(\/\/\)[^/].*/{
34306             s//\1/
34307             q
34308           }
34309           /^X\(\/\/\)$/{
34310             s//\1/
34311             q
34312           }
34313           /^X\(\/\).*/{
34314             s//\1/
34315             q
34316           }
34317           s/.*/./; q'`
34318     { as_dir=$dirpart/$fdir
34319   case $as_dir in #(
34320   -*) as_dir=./$as_dir;;
34321   esac
34322   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
34323     as_dirs=
34324     while :; do
34325       case $as_dir in #(
34326       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
34327       *) as_qdir=$as_dir;;
34328       esac
34329       as_dirs="'$as_qdir' $as_dirs"
34330       as_dir=`$as_dirname -- "$as_dir" ||
34331 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34332          X"$as_dir" : 'X\(//\)[^/]' \| \
34333          X"$as_dir" : 'X\(//\)$' \| \
34334          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
34335 echo X"$as_dir" |
34336     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34337             s//\1/
34338             q
34339           }
34340           /^X\(\/\/\)[^/].*/{
34341             s//\1/
34342             q
34343           }
34344           /^X\(\/\/\)$/{
34345             s//\1/
34346             q
34347           }
34348           /^X\(\/\).*/{
34349             s//\1/
34350             q
34351           }
34352           s/.*/./; q'`
34353       test -d "$as_dir" && break
34354     done
34355     test -z "$as_dirs" || eval "mkdir $as_dirs"
34356   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
34357 echo "$as_me: error: cannot create directory $as_dir" >&2;}
34358    { (exit 1); exit 1; }; }; }
34359     # echo "creating $dirpart/$file"
34360     echo '# dummy' > "$dirpart/$file"
34361   done
34362 done
34363  ;;
34364     "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
34365         sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
34366       esac ;;
34367     "intltool":C)
34369 for file in intltool-extract intltool-merge intltool-update; do
34370   sed -e "s|@INTLTOOL_EXTRACT@|`pwd`/intltool-extract|g" \
34371       -e "s|@INTLTOOL_LIBDIR@|${INTLTOOL_LIBDIR}|g" \
34372       -e "s|@INTLTOOL_PERL@|${INTLTOOL_PERL}|g" \
34373         < ${ac_aux_dir}/${file}.in > ${file}.out
34374   if cmp -s ${file} ${file}.out 2>/dev/null; then
34375     rm -f ${file}.out
34376   else
34377     mv -f ${file}.out ${file}
34378   fi
34379   chmod ugo+x ${file}
34380   chmod u+w ${file}
34381 done
34383  ;;
34384     "default":C)  chmod +x examples/*.pl ;;
34385     "po/stamp-it":C)
34386     rm -f "po/stamp-it" "po/stamp-it.tmp" "po/POTFILES" "po/Makefile.tmp"
34387     >"po/stamp-it.tmp"
34388     sed '/^#/d
34389          s/^[[].*] *//
34390          /^[    ]*$/d
34391         '"s|^|  $ac_top_srcdir/|" \
34392       "$srcdir/po/POTFILES.in" | sed '$!s/$/ \\/' >"po/POTFILES"
34394     if test ! -f "po/Makefile"; then
34395       { { echo "$as_me:$LINENO: error: po/Makefile is not ready." >&5
34396 echo "$as_me: error: po/Makefile is not ready." >&2;}
34397    { (exit 1); exit 1; }; }
34398     fi
34399     mv "po/Makefile" "po/Makefile.tmp"
34400     sed '/^POTFILES =/,/[^\\]$/ {
34401                 /^POTFILES =/!d
34402                 r po/POTFILES
34403           }
34404          ' "po/Makefile.tmp" >"po/Makefile"
34405     rm -f "po/Makefile.tmp"
34406     mv "po/stamp-it.tmp" "po/stamp-it"
34407    ;;
34409   esac
34410 done # for ac_tag
34413 { (exit 0); exit 0; }
34414 _ACEOF
34415 chmod +x $CONFIG_STATUS
34416 ac_clean_files=$ac_clean_files_save
34419 # configure is writing to config.log, and then calls config.status.
34420 # config.status does its own redirection, appending to config.log.
34421 # Unfortunately, on DOS this fails, as config.log is still kept open
34422 # by configure, so config.status won't be able to write to it; its
34423 # output is simply discarded.  So we exec the FD to /dev/null,
34424 # effectively closing config.log, so it can be properly (re)opened and
34425 # appended to by config.status.  When coming back to configure, we
34426 # need to make the FD available again.
34427 if test "$no_create" != yes; then
34428   ac_cs_success=:
34429   ac_config_status_args=
34430   test "$silent" = yes &&
34431     ac_config_status_args="$ac_config_status_args --quiet"
34432   exec 5>/dev/null
34433   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
34434   exec 5>>config.log
34435   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
34436   # would make configure fail if this is the last instruction.
34437   $ac_cs_success || { (exit 1); exit 1; }
34441 { echo "$as_me:$LINENO: checking in" >&5
34442 echo $ECHO_N "checking in... $ECHO_C" >&6; }
34443 { echo "$as_me:$LINENO: result: and out again" >&5
34444 echo "${ECHO_T}and out again" >&6; }
34446 echo $ECHO_N "ordering CD from http://tobi.oetiker.ch/wish $ECHO_C" 1>&6
34447 sleep 1
34448 echo $ECHO_N ".$ECHO_C" 1>&6
34449 sleep 1
34450 echo $ECHO_N ".$ECHO_C" 1>&6
34451 sleep 1
34452 echo $ECHO_N ".$ECHO_C" 1>&6
34453 sleep 1
34454 echo $ECHO_N ".$ECHO_C" 1>&6
34455 sleep 1
34456 { echo "$as_me:$LINENO: result:  just kidding ;-)" >&5
34457 echo "${ECHO_T} just kidding ;-)" >&6; }
34458 echo
34459 echo "----------------------------------------------------------------"
34460 echo "Config is DONE!"
34461 echo
34462 echo "          With MMAP IO: $enable_mmap"
34463 echo "      Build rrd_getopt: $build_getopt"
34464 echo "       Static programs: $staticprogs"
34465 echo "          Perl Modules: $COMP_PERL"
34466 echo "           Perl Binary: $PERL"
34467 echo "          Perl Version: $PERL_VERSION"
34468 echo "          Perl Options: $PERL_MAKE_OPTIONS"
34469 echo "          Ruby Modules: $COMP_RUBY"
34470 echo "           Ruby Binary: $RUBY"
34471 echo "          Ruby Options: $RUBY_MAKE_OPTIONS"
34472 echo "    Build Tcl Bindings: $enable_tcl"
34473 echo " Build Python Bindings: $enable_python"
34474 echo "          Build rrdcgi: $enable_rrdcgi"
34475 echo "       Build librrd MT: $enable_pthread"
34476 echo "     Link with libintl: $enable_libintl"
34477 echo
34478 echo "             Libraries: $ALL_LIBS"
34479 echo
34480 echo "Type 'make' to compile the software and use 'make install' to "
34481 echo "install everything to: $prefix."
34482 echo
34483 echo "       ... that wishlist is NO JOKE. If you find RRDtool useful"
34484 echo "make me happy. Go to http://tobi.oetiker.ch/wish and"
34485 echo "place an order."
34486 echo
34487 echo "                               -- Tobi Oetiker <tobi@oetiker.ch>"
34488 echo "----------------------------------------------------------------"