]> git.decadent.org.uk Git - nfs-utils.git/blob - configure
Merge branch 'upstream'
[nfs-utils.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for linux nfs-utils 1.0.10.
4 #
5 # Report bugs to <nfs@lists.sf.net>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization.  ##
13 ## --------------------- ##
14
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17   emulate sh
18   NULLCMD=:
19   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20   # is contrary to our usage.  Disable this feature.
21   alias -g '${1+"$@"}'='"$@"'
22   setopt NO_GLOB_SUBST
23 else
24   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
25 fi
26 BIN_SH=xpg4; export BIN_SH # for Tru64
27 DUALCASE=1; export DUALCASE # for MKS sh
28
29
30 # PATH needs CR
31 # Avoid depending upon Character Ranges.
32 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35 as_cr_digits='0123456789'
36 as_cr_alnum=$as_cr_Letters$as_cr_digits
37
38 # The user is always right.
39 if test "${PATH_SEPARATOR+set}" != set; then
40   echo "#! /bin/sh" >conf$$.sh
41   echo  "exit 0"   >>conf$$.sh
42   chmod +x conf$$.sh
43   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
44     PATH_SEPARATOR=';'
45   else
46     PATH_SEPARATOR=:
47   fi
48   rm -f conf$$.sh
49 fi
50
51 # Support unset when possible.
52 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
53   as_unset=unset
54 else
55   as_unset=false
56 fi
57
58
59 # IFS
60 # We need space, tab and new line, in precisely that order.  Quoting is
61 # there to prevent editors from complaining about space-tab.
62 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
63 # splitting by setting IFS to empty value.)
64 as_nl='
65 '
66 IFS=" ""        $as_nl"
67
68 # Find who we are.  Look in the path if we contain no directory separator.
69 case $0 in
70   *[\\/]* ) as_myself=$0 ;;
71   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
72 for as_dir in $PATH
73 do
74   IFS=$as_save_IFS
75   test -z "$as_dir" && as_dir=.
76   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
77 done
78 IFS=$as_save_IFS
79
80      ;;
81 esac
82 # We did not find ourselves, most probably we were run as `sh COMMAND'
83 # in which case we are not to be found in the path.
84 if test "x$as_myself" = x; then
85   as_myself=$0
86 fi
87 if test ! -f "$as_myself"; then
88   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
89   { (exit 1); exit 1; }
90 fi
91
92 # Work around bugs in pre-3.0 UWIN ksh.
93 for as_var in ENV MAIL MAILPATH
94 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
95 done
96 PS1='$ '
97 PS2='> '
98 PS4='+ '
99
100 # NLS nuisances.
101 for as_var in \
102   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
103   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
104   LC_TELEPHONE LC_TIME
105 do
106   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
107     eval $as_var=C; export $as_var
108   else
109     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
110   fi
111 done
112
113 # Required to use basename.
114 if expr a : '\(a\)' >/dev/null 2>&1 &&
115    test "X`expr 00001 : '.*\(...\)'`" = X001; then
116   as_expr=expr
117 else
118   as_expr=false
119 fi
120
121 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
122   as_basename=basename
123 else
124   as_basename=false
125 fi
126
127
128 # Name of the executable.
129 as_me=`$as_basename -- "$0" ||
130 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
131          X"$0" : 'X\(//\)$' \| \
132          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
133 echo X/"$0" |
134     sed '/^.*\/\([^/][^/]*\)\/*$/{
135             s//\1/
136             q
137           }
138           /^X\/\(\/\/\)$/{
139             s//\1/
140             q
141           }
142           /^X\/\(\/\).*/{
143             s//\1/
144             q
145           }
146           s/.*/./; q'`
147
148 # CDPATH.
149 $as_unset CDPATH
150
151
152 if test "x$CONFIG_SHELL" = x; then
153   if (eval ":") 2>/dev/null; then
154   as_have_required=yes
155 else
156   as_have_required=no
157 fi
158
159   if test $as_have_required = yes &&     (eval ":
160 (as_func_return () {
161   (exit \$1)
162 }
163 as_func_success () {
164   as_func_return 0
165 }
166 as_func_failure () {
167   as_func_return 1
168 }
169 as_func_ret_success () {
170   return 0
171 }
172 as_func_ret_failure () {
173   return 1
174 }
175
176 exitcode=0
177 if as_func_success; then
178   :
179 else
180   exitcode=1
181   echo as_func_success failed.
182 fi
183
184 if as_func_failure; then
185   exitcode=1
186   echo as_func_failure succeeded.
187 fi
188
189 if as_func_ret_success; then
190   :
191 else
192   exitcode=1
193   echo as_func_ret_success failed.
194 fi
195
196 if as_func_ret_failure; then
197   exitcode=1
198   echo as_func_ret_failure succeeded.
199 fi
200
201 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
202   :
203 else
204   exitcode=1
205   echo positional parameters were not saved.
206 fi
207
208 test \$exitcode = 0) || { (exit 1); exit 1; }
209
210 (
211   as_lineno_1=\$LINENO
212   as_lineno_2=\$LINENO
213   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
214   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
215 ") 2> /dev/null; then
216   :
217 else
218   as_candidate_shells=
219     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222   IFS=$as_save_IFS
223   test -z "$as_dir" && as_dir=.
224   case $as_dir in
225          /*)
226            for as_base in sh bash ksh sh5; do
227              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
228            done;;
229        esac
230 done
231 IFS=$as_save_IFS
232
233
234       for as_shell in $as_candidate_shells $SHELL; do
235          # Try only shells that exist, to save several forks.
236          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
237                 { ("$as_shell") 2> /dev/null <<\_ASEOF
238 # Be Bourne compatible
239 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
240   emulate sh
241   NULLCMD=:
242   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
243   # is contrary to our usage.  Disable this feature.
244   alias -g '${1+"$@"}'='"$@"'
245   setopt NO_GLOB_SUBST
246 else
247   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
248 fi
249 BIN_SH=xpg4; export BIN_SH # for Tru64
250 DUALCASE=1; export DUALCASE # for MKS sh
251
252 :
253 _ASEOF
254 }; then
255   CONFIG_SHELL=$as_shell
256                as_have_required=yes
257                if { "$as_shell" 2> /dev/null <<\_ASEOF
258 # Be Bourne compatible
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260   emulate sh
261   NULLCMD=:
262   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
263   # is contrary to our usage.  Disable this feature.
264   alias -g '${1+"$@"}'='"$@"'
265   setopt NO_GLOB_SUBST
266 else
267   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
268 fi
269 BIN_SH=xpg4; export BIN_SH # for Tru64
270 DUALCASE=1; export DUALCASE # for MKS sh
271
272 :
273 (as_func_return () {
274   (exit $1)
275 }
276 as_func_success () {
277   as_func_return 0
278 }
279 as_func_failure () {
280   as_func_return 1
281 }
282 as_func_ret_success () {
283   return 0
284 }
285 as_func_ret_failure () {
286   return 1
287 }
288
289 exitcode=0
290 if as_func_success; then
291   :
292 else
293   exitcode=1
294   echo as_func_success failed.
295 fi
296
297 if as_func_failure; then
298   exitcode=1
299   echo as_func_failure succeeded.
300 fi
301
302 if as_func_ret_success; then
303   :
304 else
305   exitcode=1
306   echo as_func_ret_success failed.
307 fi
308
309 if as_func_ret_failure; then
310   exitcode=1
311   echo as_func_ret_failure succeeded.
312 fi
313
314 if ( set x; as_func_ret_success y && test x = "$1" ); then
315   :
316 else
317   exitcode=1
318   echo positional parameters were not saved.
319 fi
320
321 test $exitcode = 0) || { (exit 1); exit 1; }
322
323 (
324   as_lineno_1=$LINENO
325   as_lineno_2=$LINENO
326   test "x$as_lineno_1" != "x$as_lineno_2" &&
327   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
328
329 _ASEOF
330 }; then
331   break
332 fi
333
334 fi
335
336       done
337
338       if test "x$CONFIG_SHELL" != x; then
339   for as_var in BASH_ENV ENV
340         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
341         done
342         export CONFIG_SHELL
343         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
344 fi
345
346
347     if test $as_have_required = no; then
348   echo This script requires a shell more modern than all the
349       echo shells that I found on your system.  Please install a
350       echo modern shell, or manually run the script under such a
351       echo shell if you do have one.
352       { (exit 1); exit 1; }
353 fi
354
355
356 fi
357
358 fi
359
360
361
362 (eval "as_func_return () {
363   (exit \$1)
364 }
365 as_func_success () {
366   as_func_return 0
367 }
368 as_func_failure () {
369   as_func_return 1
370 }
371 as_func_ret_success () {
372   return 0
373 }
374 as_func_ret_failure () {
375   return 1
376 }
377
378 exitcode=0
379 if as_func_success; then
380   :
381 else
382   exitcode=1
383   echo as_func_success failed.
384 fi
385
386 if as_func_failure; then
387   exitcode=1
388   echo as_func_failure succeeded.
389 fi
390
391 if as_func_ret_success; then
392   :
393 else
394   exitcode=1
395   echo as_func_ret_success failed.
396 fi
397
398 if as_func_ret_failure; then
399   exitcode=1
400   echo as_func_ret_failure succeeded.
401 fi
402
403 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
404   :
405 else
406   exitcode=1
407   echo positional parameters were not saved.
408 fi
409
410 test \$exitcode = 0") || {
411   echo No shell found that supports shell functions.
412   echo Please tell autoconf@gnu.org about your system,
413   echo including any error possibly output before this
414   echo message
415 }
416
417
418
419   as_lineno_1=$LINENO
420   as_lineno_2=$LINENO
421   test "x$as_lineno_1" != "x$as_lineno_2" &&
422   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
423
424   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
425   # uniformly replaced by the line number.  The first 'sed' inserts a
426   # line-number line after each line using $LINENO; the second 'sed'
427   # does the real work.  The second script uses 'N' to pair each
428   # line-number line with the line containing $LINENO, and appends
429   # trailing '-' during substitution so that $LINENO is not a special
430   # case at line end.
431   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
432   # scripts with optimization help from Paolo Bonzini.  Blame Lee
433   # E. McMahon (1931-1989) for sed's syntax.  :-)
434   sed -n '
435     p
436     /[$]LINENO/=
437   ' <$as_myself |
438     sed '
439       s/[$]LINENO.*/&-/
440       t lineno
441       b
442       :lineno
443       N
444       :loop
445       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
446       t loop
447       s/-\n.*//
448     ' >$as_me.lineno &&
449   chmod +x "$as_me.lineno" ||
450     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
451    { (exit 1); exit 1; }; }
452
453   # Don't try to exec as it changes $[0], causing all sort of problems
454   # (the dirname of $[0] is not the place where we might find the
455   # original and so on.  Autoconf is especially sensitive to this).
456   . "./$as_me.lineno"
457   # Exit status is that of the last command.
458   exit
459 }
460
461
462 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
463   as_dirname=dirname
464 else
465   as_dirname=false
466 fi
467
468 ECHO_C= ECHO_N= ECHO_T=
469 case `echo -n x` in
470 -n*)
471   case `echo 'x\c'` in
472   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
473   *)   ECHO_C='\c';;
474   esac;;
475 *)
476   ECHO_N='-n';;
477 esac
478
479 if expr a : '\(a\)' >/dev/null 2>&1 &&
480    test "X`expr 00001 : '.*\(...\)'`" = X001; then
481   as_expr=expr
482 else
483   as_expr=false
484 fi
485
486 rm -f conf$$ conf$$.exe conf$$.file
487 if test -d conf$$.dir; then
488   rm -f conf$$.dir/conf$$.file
489 else
490   rm -f conf$$.dir
491   mkdir conf$$.dir
492 fi
493 echo >conf$$.file
494 if ln -s conf$$.file conf$$ 2>/dev/null; then
495   as_ln_s='ln -s'
496   # ... but there are two gotchas:
497   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
498   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
499   # In both cases, we have to default to `cp -p'.
500   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
501     as_ln_s='cp -p'
502 elif ln conf$$.file conf$$ 2>/dev/null; then
503   as_ln_s=ln
504 else
505   as_ln_s='cp -p'
506 fi
507 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
508 rmdir conf$$.dir 2>/dev/null
509
510 if mkdir -p . 2>/dev/null; then
511   as_mkdir_p=:
512 else
513   test -d ./-p && rmdir ./-p
514   as_mkdir_p=false
515 fi
516
517 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
518 # systems may use methods other than mode bits to determine executability.
519 cat >conf$$.file <<_ASEOF
520 #! /bin/sh
521 exit 0
522 _ASEOF
523 chmod +x conf$$.file
524 if test -x conf$$.file >/dev/null 2>&1; then
525   as_executable_p="test -x"
526 else
527   as_executable_p=:
528 fi
529 rm -f conf$$.file
530
531 # Sed expression to map a string onto a valid CPP name.
532 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
533
534 # Sed expression to map a string onto a valid variable name.
535 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
536
537
538
539
540 # Check that we are running under the correct shell.
541 SHELL=${CONFIG_SHELL-/bin/sh}
542
543 case X$ECHO in
544 X*--fallback-echo)
545   # Remove one level of quotation (which was required for Make).
546   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
547   ;;
548 esac
549
550 echo=${ECHO-echo}
551 if test "X$1" = X--no-reexec; then
552   # Discard the --no-reexec flag, and continue.
553   shift
554 elif test "X$1" = X--fallback-echo; then
555   # Avoid inline document here, it may be left over
556   :
557 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
558   # Yippee, $echo works!
559   :
560 else
561   # Restart under the correct shell.
562   exec $SHELL "$0" --no-reexec ${1+"$@"}
563 fi
564
565 if test "X$1" = X--fallback-echo; then
566   # used as fallback echo
567   shift
568   cat <<EOF
569 $*
570 EOF
571   exit 0
572 fi
573
574 # The HP-UX ksh and POSIX shell print the target directory to stdout
575 # if CDPATH is set.
576 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
577
578 if test -z "$ECHO"; then
579 if test "X${echo_test_string+set}" != Xset; then
580 # find a string as large as possible, as long as the shell can cope with it
581   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
582     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
583     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
584        echo_test_string=`eval $cmd` &&
585        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
586     then
587       break
588     fi
589   done
590 fi
591
592 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
593    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
594    test "X$echo_testing_string" = "X$echo_test_string"; then
595   :
596 else
597   # The Solaris, AIX, and Digital Unix default echo programs unquote
598   # backslashes.  This makes it impossible to quote backslashes using
599   #   echo "$something" | sed 's/\\/\\\\/g'
600   #
601   # So, first we look for a working echo in the user's PATH.
602
603   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
604   for dir in $PATH /usr/ucb; do
605     IFS="$lt_save_ifs"
606     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
607        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
608        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
609        test "X$echo_testing_string" = "X$echo_test_string"; then
610       echo="$dir/echo"
611       break
612     fi
613   done
614   IFS="$lt_save_ifs"
615
616   if test "X$echo" = Xecho; then
617     # We didn't find a better echo, so look for alternatives.
618     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
619        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
620        test "X$echo_testing_string" = "X$echo_test_string"; then
621       # This shell has a builtin print -r that does the trick.
622       echo='print -r'
623     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
624          test "X$CONFIG_SHELL" != X/bin/ksh; then
625       # If we have ksh, try running configure again with it.
626       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
627       export ORIGINAL_CONFIG_SHELL
628       CONFIG_SHELL=/bin/ksh
629       export CONFIG_SHELL
630       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
631     else
632       # Try using printf.
633       echo='printf %s\n'
634       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
635          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
636          test "X$echo_testing_string" = "X$echo_test_string"; then
637         # Cool, printf works
638         :
639       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
640            test "X$echo_testing_string" = 'X\t' &&
641            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
642            test "X$echo_testing_string" = "X$echo_test_string"; then
643         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
644         export CONFIG_SHELL
645         SHELL="$CONFIG_SHELL"
646         export SHELL
647         echo="$CONFIG_SHELL $0 --fallback-echo"
648       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
649            test "X$echo_testing_string" = 'X\t' &&
650            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
651            test "X$echo_testing_string" = "X$echo_test_string"; then
652         echo="$CONFIG_SHELL $0 --fallback-echo"
653       else
654         # maybe with a smaller string...
655         prev=:
656
657         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
658           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
659           then
660             break
661           fi
662           prev="$cmd"
663         done
664
665         if test "$prev" != 'sed 50q "$0"'; then
666           echo_test_string=`eval $prev`
667           export echo_test_string
668           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
669         else
670           # Oops.  We lost completely, so just stick with echo.
671           echo=echo
672         fi
673       fi
674     fi
675   fi
676 fi
677 fi
678
679 # Copy echo and quote the copy suitably for passing to libtool from
680 # the Makefile, instead of quoting the original, which is used later.
681 ECHO=$echo
682 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
683    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
684 fi
685
686
687
688
689 tagnames=${tagnames+${tagnames},}CXX
690
691 tagnames=${tagnames+${tagnames},}F77
692
693 exec 7<&0 </dev/null 6>&1
694
695 # Name of the host.
696 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
697 # so uname gets run too.
698 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
699
700 #
701 # Initializations.
702 #
703 ac_default_prefix=/usr/local
704 ac_clean_files=
705 ac_config_libobj_dir=.
706 LIBOBJS=
707 cross_compiling=no
708 subdirs=
709 MFLAGS=
710 MAKEFLAGS=
711 SHELL=${CONFIG_SHELL-/bin/sh}
712
713 # Identity of this package.
714 PACKAGE_NAME='linux nfs-utils'
715 PACKAGE_TARNAME='nfs-utils'
716 PACKAGE_VERSION='1.0.10'
717 PACKAGE_STRING='linux nfs-utils 1.0.10'
718 PACKAGE_BUGREPORT='nfs@lists.sf.net'
719
720 ac_unique_file="tools/getiversion/getiversion.c"
721 ac_default_prefix=/usr
722 ac_unique_file="support/include/config.h.in"
723 # Factoring default headers for most tests.
724 ac_includes_default="\
725 #include <stdio.h>
726 #if HAVE_SYS_TYPES_H
727 # include <sys/types.h>
728 #endif
729 #if HAVE_SYS_STAT_H
730 # include <sys/stat.h>
731 #endif
732 #if STDC_HEADERS
733 # include <stdlib.h>
734 # include <stddef.h>
735 #else
736 # if HAVE_STDLIB_H
737 #  include <stdlib.h>
738 # endif
739 #endif
740 #if HAVE_STRING_H
741 # if !STDC_HEADERS && HAVE_MEMORY_H
742 #  include <memory.h>
743 # endif
744 # include <string.h>
745 #endif
746 #if HAVE_STRINGS_H
747 # include <strings.h>
748 #endif
749 #if HAVE_INTTYPES_H
750 # include <inttypes.h>
751 #endif
752 #if HAVE_STDINT_H
753 # include <stdint.h>
754 #endif
755 #if HAVE_UNISTD_H
756 # include <unistd.h>
757 #endif"
758
759 ac_subst_vars='SHELL
760 PATH_SEPARATOR
761 PACKAGE_NAME
762 PACKAGE_TARNAME
763 PACKAGE_VERSION
764 PACKAGE_STRING
765 PACKAGE_BUGREPORT
766 exec_prefix
767 prefix
768 program_transform_name
769 bindir
770 sbindir
771 libexecdir
772 datarootdir
773 datadir
774 sysconfdir
775 sharedstatedir
776 localstatedir
777 includedir
778 oldincludedir
779 docdir
780 infodir
781 htmldir
782 dvidir
783 pdfdir
784 psdir
785 libdir
786 localedir
787 mandir
788 DEFS
789 ECHO_C
790 ECHO_N
791 ECHO_T
792 LIBS
793 build_alias
794 host_alias
795 target_alias
796 build
797 build_cpu
798 build_vendor
799 build_os
800 host
801 host_cpu
802 host_vendor
803 host_os
804 INSTALL_PROGRAM
805 INSTALL_SCRIPT
806 INSTALL_DATA
807 CYGPATH_W
808 PACKAGE
809 VERSION
810 ACLOCAL
811 AUTOCONF
812 AUTOMAKE
813 AUTOHEADER
814 MAKEINFO
815 install_sh
816 STRIP
817 INSTALL_STRIP_PROGRAM
818 mkdir_p
819 AWK
820 SET_MAKE
821 am__leading_dot
822 AMTAR
823 am__tar
824 am__untar
825 RELEASE
826 statedir
827 statduser
828 enable_nfsv3
829 IDMAPD
830 enable_nfsv4
831 CONFIG_NFSV4_TRUE
832 CONFIG_NFSV4_FALSE
833 GSSD
834 SVCGSSD
835 enable_gss
836 CONFIG_GSS_TRUE
837 CONFIG_GSS_FALSE
838 kprefix
839 secure_statd
840 CONFIG_RQUOTAD_TRUE
841 CONFIG_RQUOTAD_FALSE
842 CONFIG_MOUNT_TRUE
843 CONFIG_MOUNT_FALSE
844 CC
845 CFLAGS
846 LDFLAGS
847 CPPFLAGS
848 ac_ct_CC
849 EXEEXT
850 OBJEXT
851 DEPDIR
852 am__include
853 am__quote
854 AMDEP_TRUE
855 AMDEP_FALSE
856 AMDEPBACKSLASH
857 CCDEPMODE
858 am__fastdepCC_TRUE
859 am__fastdepCC_FALSE
860 LIBWRAP
861 HAVE_LIBWRAP
862 HAVE_TCP_WRAPPER
863 CXX
864 CXXFLAGS
865 ac_ct_CXX
866 CXXDEPMODE
867 am__fastdepCXX_TRUE
868 am__fastdepCXX_FALSE
869 CPP
870 LN_S
871 GREP
872 EGREP
873 ECHO
874 AR
875 RANLIB
876 CXXCPP
877 F77
878 FFLAGS
879 ac_ct_F77
880 LIBTOOL
881 CC_FOR_BUILD
882 LD
883 PKG_CONFIG
884 RPCSECGSS_CFLAGS
885 RPCSECGSS_LIBS
886 GSSAPI_CFLAGS
887 GSSAPI_LIBS
888 LIBSOCKET
889 LIBNSL
890 LIBCRYPT
891 LIBBSD
892 KRBDIR
893 KRBLIBS
894 KRBCFLAGS
895 KRBLDFLAGS
896 K5VERS
897 ALLOCA
898 LIBOBJS
899 CFLAGS_FOR_BUILD
900 CXXFLAGS_FOR_BUILD
901 CPPFLAGS_FOR_BUILD
902 LDFLAGS_FOR_BUILD
903 AM_CPPFLAGS
904 AM_CFLAGS
905 ACLOCAL_AMFLAGS
906 LTLIBOBJS'
907 ac_subst_files=''
908       ac_precious_vars='build_alias
909 host_alias
910 target_alias
911 CC
912 CFLAGS
913 LDFLAGS
914 CPPFLAGS
915 CXX
916 CXXFLAGS
917 CCC
918 CPP
919 CXXCPP
920 F77
921 FFLAGS
922 PKG_CONFIG
923 RPCSECGSS_CFLAGS
924 RPCSECGSS_LIBS
925 GSSAPI_CFLAGS
926 GSSAPI_LIBS'
927
928
929 # Initialize some variables set by options.
930 ac_init_help=
931 ac_init_version=false
932 # The variables have the same names as the options, with
933 # dashes changed to underlines.
934 cache_file=/dev/null
935 exec_prefix=NONE
936 no_create=
937 no_recursion=
938 prefix=NONE
939 program_prefix=NONE
940 program_suffix=NONE
941 program_transform_name=s,x,x,
942 silent=
943 site=
944 srcdir=
945 verbose=
946 x_includes=NONE
947 x_libraries=NONE
948
949 # Installation directory options.
950 # These are left unexpanded so users can "make install exec_prefix=/foo"
951 # and all the variables that are supposed to be based on exec_prefix
952 # by default will actually change.
953 # Use braces instead of parens because sh, perl, etc. also accept them.
954 # (The list follows the same order as the GNU Coding Standards.)
955 bindir='${exec_prefix}/bin'
956 sbindir='${exec_prefix}/sbin'
957 libexecdir='${exec_prefix}/libexec'
958 datarootdir='${prefix}/share'
959 datadir='${datarootdir}'
960 sysconfdir='${prefix}/etc'
961 sharedstatedir='${prefix}/com'
962 localstatedir='${prefix}/var'
963 includedir='${prefix}/include'
964 oldincludedir='/usr/include'
965 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
966 infodir='${datarootdir}/info'
967 htmldir='${docdir}'
968 dvidir='${docdir}'
969 pdfdir='${docdir}'
970 psdir='${docdir}'
971 libdir='${exec_prefix}/lib'
972 localedir='${datarootdir}/locale'
973 mandir='${datarootdir}/man'
974
975 ac_prev=
976 ac_dashdash=
977 for ac_option
978 do
979   # If the previous option needs an argument, assign it.
980   if test -n "$ac_prev"; then
981     eval $ac_prev=\$ac_option
982     ac_prev=
983     continue
984   fi
985
986   case $ac_option in
987   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
988   *)    ac_optarg=yes ;;
989   esac
990
991   # Accept the important Cygnus configure options, so we can diagnose typos.
992
993   case $ac_dashdash$ac_option in
994   --)
995     ac_dashdash=yes ;;
996
997   -bindir | --bindir | --bindi | --bind | --bin | --bi)
998     ac_prev=bindir ;;
999   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1000     bindir=$ac_optarg ;;
1001
1002   -build | --build | --buil | --bui | --bu)
1003     ac_prev=build_alias ;;
1004   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1005     build_alias=$ac_optarg ;;
1006
1007   -cache-file | --cache-file | --cache-fil | --cache-fi \
1008   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1009     ac_prev=cache_file ;;
1010   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1011   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1012     cache_file=$ac_optarg ;;
1013
1014   --config-cache | -C)
1015     cache_file=config.cache ;;
1016
1017   -datadir | --datadir | --datadi | --datad)
1018     ac_prev=datadir ;;
1019   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1020     datadir=$ac_optarg ;;
1021
1022   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1023   | --dataroo | --dataro | --datar)
1024     ac_prev=datarootdir ;;
1025   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1026   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1027     datarootdir=$ac_optarg ;;
1028
1029   -disable-* | --disable-*)
1030     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1031     # Reject names that are not valid shell variable names.
1032     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1033       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1034    { (exit 1); exit 1; }; }
1035     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1036     eval enable_$ac_feature=no ;;
1037
1038   -docdir | --docdir | --docdi | --doc | --do)
1039     ac_prev=docdir ;;
1040   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1041     docdir=$ac_optarg ;;
1042
1043   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1044     ac_prev=dvidir ;;
1045   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1046     dvidir=$ac_optarg ;;
1047
1048   -enable-* | --enable-*)
1049     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1050     # Reject names that are not valid shell variable names.
1051     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1052       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1053    { (exit 1); exit 1; }; }
1054     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1055     eval enable_$ac_feature=\$ac_optarg ;;
1056
1057   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1058   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1059   | --exec | --exe | --ex)
1060     ac_prev=exec_prefix ;;
1061   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1062   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1063   | --exec=* | --exe=* | --ex=*)
1064     exec_prefix=$ac_optarg ;;
1065
1066   -gas | --gas | --ga | --g)
1067     # Obsolete; use --with-gas.
1068     with_gas=yes ;;
1069
1070   -help | --help | --hel | --he | -h)
1071     ac_init_help=long ;;
1072   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1073     ac_init_help=recursive ;;
1074   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1075     ac_init_help=short ;;
1076
1077   -host | --host | --hos | --ho)
1078     ac_prev=host_alias ;;
1079   -host=* | --host=* | --hos=* | --ho=*)
1080     host_alias=$ac_optarg ;;
1081
1082   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1083     ac_prev=htmldir ;;
1084   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1085   | --ht=*)
1086     htmldir=$ac_optarg ;;
1087
1088   -includedir | --includedir | --includedi | --included | --include \
1089   | --includ | --inclu | --incl | --inc)
1090     ac_prev=includedir ;;
1091   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1092   | --includ=* | --inclu=* | --incl=* | --inc=*)
1093     includedir=$ac_optarg ;;
1094
1095   -infodir | --infodir | --infodi | --infod | --info | --inf)
1096     ac_prev=infodir ;;
1097   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1098     infodir=$ac_optarg ;;
1099
1100   -libdir | --libdir | --libdi | --libd)
1101     ac_prev=libdir ;;
1102   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1103     libdir=$ac_optarg ;;
1104
1105   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1106   | --libexe | --libex | --libe)
1107     ac_prev=libexecdir ;;
1108   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1109   | --libexe=* | --libex=* | --libe=*)
1110     libexecdir=$ac_optarg ;;
1111
1112   -localedir | --localedir | --localedi | --localed | --locale)
1113     ac_prev=localedir ;;
1114   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1115     localedir=$ac_optarg ;;
1116
1117   -localstatedir | --localstatedir | --localstatedi | --localstated \
1118   | --localstate | --localstat | --localsta | --localst | --locals)
1119     ac_prev=localstatedir ;;
1120   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1121   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1122     localstatedir=$ac_optarg ;;
1123
1124   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1125     ac_prev=mandir ;;
1126   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1127     mandir=$ac_optarg ;;
1128
1129   -nfp | --nfp | --nf)
1130     # Obsolete; use --without-fp.
1131     with_fp=no ;;
1132
1133   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1134   | --no-cr | --no-c | -n)
1135     no_create=yes ;;
1136
1137   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1138   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1139     no_recursion=yes ;;
1140
1141   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1142   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1143   | --oldin | --oldi | --old | --ol | --o)
1144     ac_prev=oldincludedir ;;
1145   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1146   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1147   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1148     oldincludedir=$ac_optarg ;;
1149
1150   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1151     ac_prev=prefix ;;
1152   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1153     prefix=$ac_optarg ;;
1154
1155   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1156   | --program-pre | --program-pr | --program-p)
1157     ac_prev=program_prefix ;;
1158   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1159   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1160     program_prefix=$ac_optarg ;;
1161
1162   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1163   | --program-suf | --program-su | --program-s)
1164     ac_prev=program_suffix ;;
1165   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1166   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1167     program_suffix=$ac_optarg ;;
1168
1169   -program-transform-name | --program-transform-name \
1170   | --program-transform-nam | --program-transform-na \
1171   | --program-transform-n | --program-transform- \
1172   | --program-transform | --program-transfor \
1173   | --program-transfo | --program-transf \
1174   | --program-trans | --program-tran \
1175   | --progr-tra | --program-tr | --program-t)
1176     ac_prev=program_transform_name ;;
1177   -program-transform-name=* | --program-transform-name=* \
1178   | --program-transform-nam=* | --program-transform-na=* \
1179   | --program-transform-n=* | --program-transform-=* \
1180   | --program-transform=* | --program-transfor=* \
1181   | --program-transfo=* | --program-transf=* \
1182   | --program-trans=* | --program-tran=* \
1183   | --progr-tra=* | --program-tr=* | --program-t=*)
1184     program_transform_name=$ac_optarg ;;
1185
1186   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1187     ac_prev=pdfdir ;;
1188   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1189     pdfdir=$ac_optarg ;;
1190
1191   -psdir | --psdir | --psdi | --psd | --ps)
1192     ac_prev=psdir ;;
1193   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1194     psdir=$ac_optarg ;;
1195
1196   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1197   | -silent | --silent | --silen | --sile | --sil)
1198     silent=yes ;;
1199
1200   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1201     ac_prev=sbindir ;;
1202   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1203   | --sbi=* | --sb=*)
1204     sbindir=$ac_optarg ;;
1205
1206   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1207   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1208   | --sharedst | --shareds | --shared | --share | --shar \
1209   | --sha | --sh)
1210     ac_prev=sharedstatedir ;;
1211   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1212   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1213   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1214   | --sha=* | --sh=*)
1215     sharedstatedir=$ac_optarg ;;
1216
1217   -site | --site | --sit)
1218     ac_prev=site ;;
1219   -site=* | --site=* | --sit=*)
1220     site=$ac_optarg ;;
1221
1222   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1223     ac_prev=srcdir ;;
1224   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1225     srcdir=$ac_optarg ;;
1226
1227   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1228   | --syscon | --sysco | --sysc | --sys | --sy)
1229     ac_prev=sysconfdir ;;
1230   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1231   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1232     sysconfdir=$ac_optarg ;;
1233
1234   -target | --target | --targe | --targ | --tar | --ta | --t)
1235     ac_prev=target_alias ;;
1236   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1237     target_alias=$ac_optarg ;;
1238
1239   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1240     verbose=yes ;;
1241
1242   -version | --version | --versio | --versi | --vers | -V)
1243     ac_init_version=: ;;
1244
1245   -with-* | --with-*)
1246     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1247     # Reject names that are not valid shell variable names.
1248     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1249       { echo "$as_me: error: invalid package name: $ac_package" >&2
1250    { (exit 1); exit 1; }; }
1251     ac_package=`echo $ac_package| sed 's/-/_/g'`
1252     eval with_$ac_package=\$ac_optarg ;;
1253
1254   -without-* | --without-*)
1255     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1256     # Reject names that are not valid shell variable names.
1257     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1258       { echo "$as_me: error: invalid package name: $ac_package" >&2
1259    { (exit 1); exit 1; }; }
1260     ac_package=`echo $ac_package | sed 's/-/_/g'`
1261     eval with_$ac_package=no ;;
1262
1263   --x)
1264     # Obsolete; use --with-x.
1265     with_x=yes ;;
1266
1267   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1268   | --x-incl | --x-inc | --x-in | --x-i)
1269     ac_prev=x_includes ;;
1270   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1271   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1272     x_includes=$ac_optarg ;;
1273
1274   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1275   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1276     ac_prev=x_libraries ;;
1277   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1278   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1279     x_libraries=$ac_optarg ;;
1280
1281   -*) { echo "$as_me: error: unrecognized option: $ac_option
1282 Try \`$0 --help' for more information." >&2
1283    { (exit 1); exit 1; }; }
1284     ;;
1285
1286   *=*)
1287     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1288     # Reject names that are not valid shell variable names.
1289     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1290       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1291    { (exit 1); exit 1; }; }
1292     eval $ac_envvar=\$ac_optarg
1293     export $ac_envvar ;;
1294
1295   *)
1296     # FIXME: should be removed in autoconf 3.0.
1297     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1298     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1299       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1300     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1301     ;;
1302
1303   esac
1304 done
1305
1306 if test -n "$ac_prev"; then
1307   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1308   { echo "$as_me: error: missing argument to $ac_option" >&2
1309    { (exit 1); exit 1; }; }
1310 fi
1311
1312 # Be sure to have absolute directory names.
1313 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1314                 datadir sysconfdir sharedstatedir localstatedir includedir \
1315                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1316                 libdir localedir mandir
1317 do
1318   eval ac_val=\$$ac_var
1319   case $ac_val in
1320     [\\/$]* | ?:[\\/]* )  continue;;
1321     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1322   esac
1323   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1324    { (exit 1); exit 1; }; }
1325 done
1326
1327 # There might be people who depend on the old broken behavior: `$host'
1328 # used to hold the argument of --host etc.
1329 # FIXME: To remove some day.
1330 build=$build_alias
1331 host=$host_alias
1332 target=$target_alias
1333
1334 # FIXME: To remove some day.
1335 if test "x$host_alias" != x; then
1336   if test "x$build_alias" = x; then
1337     cross_compiling=maybe
1338     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1339     If a cross compiler is detected then cross compile mode will be used." >&2
1340   elif test "x$build_alias" != "x$host_alias"; then
1341     cross_compiling=yes
1342   fi
1343 fi
1344
1345 ac_tool_prefix=
1346 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1347
1348 test "$silent" = yes && exec 6>/dev/null
1349
1350
1351 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1352 ac_ls_di=`ls -di .` &&
1353 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1354   { echo "$as_me: error: Working directory cannot be determined" >&2
1355    { (exit 1); exit 1; }; }
1356 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1357   { echo "$as_me: error: pwd does not report name of working directory" >&2
1358    { (exit 1); exit 1; }; }
1359
1360
1361 # Find the source files, if location was not specified.
1362 if test -z "$srcdir"; then
1363   ac_srcdir_defaulted=yes
1364   # Try the directory containing this script, then the parent directory.
1365   ac_confdir=`$as_dirname -- "$0" ||
1366 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1367          X"$0" : 'X\(//\)[^/]' \| \
1368          X"$0" : 'X\(//\)$' \| \
1369          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1370 echo X"$0" |
1371     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1372             s//\1/
1373             q
1374           }
1375           /^X\(\/\/\)[^/].*/{
1376             s//\1/
1377             q
1378           }
1379           /^X\(\/\/\)$/{
1380             s//\1/
1381             q
1382           }
1383           /^X\(\/\).*/{
1384             s//\1/
1385             q
1386           }
1387           s/.*/./; q'`
1388   srcdir=$ac_confdir
1389   if test ! -r "$srcdir/$ac_unique_file"; then
1390     srcdir=..
1391   fi
1392 else
1393   ac_srcdir_defaulted=no
1394 fi
1395 if test ! -r "$srcdir/$ac_unique_file"; then
1396   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1397   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1398    { (exit 1); exit 1; }; }
1399 fi
1400 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1401 ac_abs_confdir=`(
1402         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1403    { (exit 1); exit 1; }; }
1404         pwd)`
1405 # When building in place, set srcdir=.
1406 if test "$ac_abs_confdir" = "$ac_pwd"; then
1407   srcdir=.
1408 fi
1409 # Remove unnecessary trailing slashes from srcdir.
1410 # Double slashes in file names in object file debugging info
1411 # mess up M-x gdb in Emacs.
1412 case $srcdir in
1413 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1414 esac
1415 for ac_var in $ac_precious_vars; do
1416   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1417   eval ac_env_${ac_var}_value=\$${ac_var}
1418   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1419   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1420 done
1421
1422 #
1423 # Report the --help message.
1424 #
1425 if test "$ac_init_help" = "long"; then
1426   # Omit some internal or obsolete options to make the list less imposing.
1427   # This message is too long to be a string in the A/UX 3.1 sh.
1428   cat <<_ACEOF
1429 \`configure' configures linux nfs-utils 1.0.10 to adapt to many kinds of systems.
1430
1431 Usage: $0 [OPTION]... [VAR=VALUE]...
1432
1433 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1434 VAR=VALUE.  See below for descriptions of some of the useful variables.
1435
1436 Defaults for the options are specified in brackets.
1437
1438 Configuration:
1439   -h, --help              display this help and exit
1440       --help=short        display options specific to this package
1441       --help=recursive    display the short help of all the included packages
1442   -V, --version           display version information and exit
1443   -q, --quiet, --silent   do not print \`checking...' messages
1444       --cache-file=FILE   cache test results in FILE [disabled]
1445   -C, --config-cache      alias for \`--cache-file=config.cache'
1446   -n, --no-create         do not create output files
1447       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1448
1449 Installation directories:
1450   --prefix=PREFIX         install architecture-independent files in PREFIX
1451                           [$ac_default_prefix]
1452   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1453                           [PREFIX]
1454
1455 By default, \`make install' will install all the files in
1456 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1457 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1458 for instance \`--prefix=\$HOME'.
1459
1460 For better control, use the options below.
1461
1462 Fine tuning of the installation directories:
1463   --bindir=DIR           user executables [EPREFIX/bin]
1464   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1465   --libexecdir=DIR       program executables [EPREFIX/libexec]
1466   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1467   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1468   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1469   --libdir=DIR           object code libraries [EPREFIX/lib]
1470   --includedir=DIR       C header files [PREFIX/include]
1471   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1472   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1473   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1474   --infodir=DIR          info documentation [DATAROOTDIR/info]
1475   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1476   --mandir=DIR           man documentation [DATAROOTDIR/man]
1477   --docdir=DIR           documentation root [DATAROOTDIR/doc/nfs-utils]
1478   --htmldir=DIR          html documentation [DOCDIR]
1479   --dvidir=DIR           dvi documentation [DOCDIR]
1480   --pdfdir=DIR           pdf documentation [DOCDIR]
1481   --psdir=DIR            ps documentation [DOCDIR]
1482 _ACEOF
1483
1484   cat <<\_ACEOF
1485
1486 Program names:
1487   --program-prefix=PREFIX            prepend PREFIX to installed program names
1488   --program-suffix=SUFFIX            append SUFFIX to installed program names
1489   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1490
1491 System types:
1492   --build=BUILD     configure for building on BUILD [guessed]
1493   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1494 _ACEOF
1495 fi
1496
1497 if test -n "$ac_init_help"; then
1498   case $ac_init_help in
1499      short | recursive ) echo "Configuration of linux nfs-utils 1.0.10:";;
1500    esac
1501   cat <<\_ACEOF
1502
1503 Optional Features:
1504   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1505   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1506   --enable-nfsv3          enable support for NFSv3 [default=yes]
1507   --enable-nfsv4          enable support for NFSv4 [default=yes]
1508   --enable-gss            enable support for rpcsec_gss [default=yes]
1509   --enable-kprefix        install progs as rpc.knfsd etc
1510   --enable-secure-statd   Only lockd can use statd (security)
1511   --enable-rquotad        enable rquotad [default=yes]
1512   --enable-mount          Create mount.nfs and don't use the util-linux
1513                           mount(8) functionality. [default=no]
1514   --disable-dependency-tracking  speeds up one-time build
1515   --enable-dependency-tracking   do not reject slow dependency extractors
1516   --enable-shared[=PKGS]  build shared libraries [default=yes]
1517   --enable-static[=PKGS]  build static libraries [default=yes]
1518   --enable-fast-install[=PKGS]
1519                           optimize for fast installation [default=yes]
1520   --disable-libtool-lock  avoid locking (might break parallel builds)
1521
1522 Optional Packages:
1523   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1524   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1525   --with-release=XXX      set release to XXX [1]
1526   --with-statedir=/foo    use state dir /foo /var/lib/nfs
1527   --with-statduser=rpcuser
1528                           statd to run under [rpcuser or nobody]
1529   --with-tcp-wrappers[=PATH]      Enable tcpwrappers support
1530                  (optionally in PATH)
1531   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1532   --with-pic              try to use only PIC/non-PIC objects [default=use
1533                           both]
1534   --with-tags[=TAGS]      include additional configurations [automatic]
1535   --with-krb5=DIR         use Kerberos v5 installation in DIR
1536
1537 Some influential environment variables:
1538   CC          C compiler command
1539   CFLAGS      C compiler flags
1540   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1541               nonstandard directory <lib dir>
1542   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1543               you have headers in a nonstandard directory <include dir>
1544   CXX         C++ compiler command
1545   CXXFLAGS    C++ compiler flags
1546   CPP         C preprocessor
1547   CXXCPP      C++ preprocessor
1548   F77         Fortran 77 compiler command
1549   FFLAGS      Fortran 77 compiler flags
1550   PKG_CONFIG  path to pkg-config utility
1551   RPCSECGSS_CFLAGS
1552               C compiler flags for RPCSECGSS, overriding pkg-config
1553   RPCSECGSS_LIBS
1554               linker flags for RPCSECGSS, overriding pkg-config
1555   GSSAPI_CFLAGS
1556               C compiler flags for GSSAPI, overriding pkg-config
1557   GSSAPI_LIBS linker flags for GSSAPI, overriding pkg-config
1558
1559 Use these variables to override the choices made by `configure' or to help
1560 it to find libraries and programs with nonstandard names/locations.
1561
1562 Report bugs to <nfs@lists.sf.net>.
1563 _ACEOF
1564 ac_status=$?
1565 fi
1566
1567 if test "$ac_init_help" = "recursive"; then
1568   # If there are subdirs, report their specific --help.
1569   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1570     test -d "$ac_dir" || continue
1571     ac_builddir=.
1572
1573 case "$ac_dir" in
1574 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1575 *)
1576   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1577   # A ".." for each directory in $ac_dir_suffix.
1578   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1579   case $ac_top_builddir_sub in
1580   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1581   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1582   esac ;;
1583 esac
1584 ac_abs_top_builddir=$ac_pwd
1585 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1586 # for backward compatibility:
1587 ac_top_builddir=$ac_top_build_prefix
1588
1589 case $srcdir in
1590   .)  # We are building in place.
1591     ac_srcdir=.
1592     ac_top_srcdir=$ac_top_builddir_sub
1593     ac_abs_top_srcdir=$ac_pwd ;;
1594   [\\/]* | ?:[\\/]* )  # Absolute name.
1595     ac_srcdir=$srcdir$ac_dir_suffix;
1596     ac_top_srcdir=$srcdir
1597     ac_abs_top_srcdir=$srcdir ;;
1598   *) # Relative name.
1599     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1600     ac_top_srcdir=$ac_top_build_prefix$srcdir
1601     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1602 esac
1603 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1604
1605     cd "$ac_dir" || { ac_status=$?; continue; }
1606     # Check for guested configure.
1607     if test -f "$ac_srcdir/configure.gnu"; then
1608       echo &&
1609       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1610     elif test -f "$ac_srcdir/configure"; then
1611       echo &&
1612       $SHELL "$ac_srcdir/configure" --help=recursive
1613     else
1614       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1615     fi || ac_status=$?
1616     cd "$ac_pwd" || { ac_status=$?; break; }
1617   done
1618 fi
1619
1620 test -n "$ac_init_help" && exit $ac_status
1621 if $ac_init_version; then
1622   cat <<\_ACEOF
1623 linux nfs-utils configure 1.0.10
1624 generated by GNU Autoconf 2.60
1625
1626 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1627 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1628 This configure script is free software; the Free Software Foundation
1629 gives unlimited permission to copy, distribute and modify it.
1630 _ACEOF
1631   exit
1632 fi
1633 cat >config.log <<_ACEOF
1634 This file contains any messages produced by compilers while
1635 running configure, to aid debugging if configure makes a mistake.
1636
1637 It was created by linux nfs-utils $as_me 1.0.10, which was
1638 generated by GNU Autoconf 2.60.  Invocation command line was
1639
1640   $ $0 $@
1641
1642 _ACEOF
1643 exec 5>>config.log
1644 {
1645 cat <<_ASUNAME
1646 ## --------- ##
1647 ## Platform. ##
1648 ## --------- ##
1649
1650 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1651 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1652 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1653 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1654 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1655
1656 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1657 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1658
1659 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1660 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1661 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1662 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1663 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1664 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1665 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1666
1667 _ASUNAME
1668
1669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1670 for as_dir in $PATH
1671 do
1672   IFS=$as_save_IFS
1673   test -z "$as_dir" && as_dir=.
1674   echo "PATH: $as_dir"
1675 done
1676 IFS=$as_save_IFS
1677
1678 } >&5
1679
1680 cat >&5 <<_ACEOF
1681
1682
1683 ## ----------- ##
1684 ## Core tests. ##
1685 ## ----------- ##
1686
1687 _ACEOF
1688
1689
1690 # Keep a trace of the command line.
1691 # Strip out --no-create and --no-recursion so they do not pile up.
1692 # Strip out --silent because we don't want to record it for future runs.
1693 # Also quote any args containing shell meta-characters.
1694 # Make two passes to allow for proper duplicate-argument suppression.
1695 ac_configure_args=
1696 ac_configure_args0=
1697 ac_configure_args1=
1698 ac_must_keep_next=false
1699 for ac_pass in 1 2
1700 do
1701   for ac_arg
1702   do
1703     case $ac_arg in
1704     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1705     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1706     | -silent | --silent | --silen | --sile | --sil)
1707       continue ;;
1708     *\'*)
1709       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1710     esac
1711     case $ac_pass in
1712     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1713     2)
1714       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1715       if test $ac_must_keep_next = true; then
1716         ac_must_keep_next=false # Got value, back to normal.
1717       else
1718         case $ac_arg in
1719           *=* | --config-cache | -C | -disable-* | --disable-* \
1720           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1721           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1722           | -with-* | --with-* | -without-* | --without-* | --x)
1723             case "$ac_configure_args0 " in
1724               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1725             esac
1726             ;;
1727           -* ) ac_must_keep_next=true ;;
1728         esac
1729       fi
1730       ac_configure_args="$ac_configure_args '$ac_arg'"
1731       ;;
1732     esac
1733   done
1734 done
1735 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1736 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1737
1738 # When interrupted or exit'd, cleanup temporary files, and complete
1739 # config.log.  We remove comments because anyway the quotes in there
1740 # would cause problems or look ugly.
1741 # WARNING: Use '\'' to represent an apostrophe within the trap.
1742 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1743 trap 'exit_status=$?
1744   # Save into config.log some information that might help in debugging.
1745   {
1746     echo
1747
1748     cat <<\_ASBOX
1749 ## ---------------- ##
1750 ## Cache variables. ##
1751 ## ---------------- ##
1752 _ASBOX
1753     echo
1754     # The following way of writing the cache mishandles newlines in values,
1755 (
1756   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1757     eval ac_val=\$$ac_var
1758     case $ac_val in #(
1759     *${as_nl}*)
1760       case $ac_var in #(
1761       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1762 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1763       esac
1764       case $ac_var in #(
1765       _ | IFS | as_nl) ;; #(
1766       *) $as_unset $ac_var ;;
1767       esac ;;
1768     esac
1769   done
1770   (set) 2>&1 |
1771     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1772     *${as_nl}ac_space=\ *)
1773       sed -n \
1774         "s/'\''/'\''\\\\'\'''\''/g;
1775           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1776       ;; #(
1777     *)
1778       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1779       ;;
1780     esac |
1781     sort
1782 )
1783     echo
1784
1785     cat <<\_ASBOX
1786 ## ----------------- ##
1787 ## Output variables. ##
1788 ## ----------------- ##
1789 _ASBOX
1790     echo
1791     for ac_var in $ac_subst_vars
1792     do
1793       eval ac_val=\$$ac_var
1794       case $ac_val in
1795       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1796       esac
1797       echo "$ac_var='\''$ac_val'\''"
1798     done | sort
1799     echo
1800
1801     if test -n "$ac_subst_files"; then
1802       cat <<\_ASBOX
1803 ## ------------------- ##
1804 ## File substitutions. ##
1805 ## ------------------- ##
1806 _ASBOX
1807       echo
1808       for ac_var in $ac_subst_files
1809       do
1810         eval ac_val=\$$ac_var
1811         case $ac_val in
1812         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1813         esac
1814         echo "$ac_var='\''$ac_val'\''"
1815       done | sort
1816       echo
1817     fi
1818
1819     if test -s confdefs.h; then
1820       cat <<\_ASBOX
1821 ## ----------- ##
1822 ## confdefs.h. ##
1823 ## ----------- ##
1824 _ASBOX
1825       echo
1826       cat confdefs.h
1827       echo
1828     fi
1829     test "$ac_signal" != 0 &&
1830       echo "$as_me: caught signal $ac_signal"
1831     echo "$as_me: exit $exit_status"
1832   } >&5
1833   rm -f core *.core core.conftest.* &&
1834     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1835     exit $exit_status
1836 ' 0
1837 for ac_signal in 1 2 13 15; do
1838   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1839 done
1840 ac_signal=0
1841
1842 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1843 rm -f -r conftest* confdefs.h
1844
1845 # Predefined preprocessor variables.
1846
1847 cat >>confdefs.h <<_ACEOF
1848 #define PACKAGE_NAME "$PACKAGE_NAME"
1849 _ACEOF
1850
1851
1852 cat >>confdefs.h <<_ACEOF
1853 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1854 _ACEOF
1855
1856
1857 cat >>confdefs.h <<_ACEOF
1858 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1859 _ACEOF
1860
1861
1862 cat >>confdefs.h <<_ACEOF
1863 #define PACKAGE_STRING "$PACKAGE_STRING"
1864 _ACEOF
1865
1866
1867 cat >>confdefs.h <<_ACEOF
1868 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1869 _ACEOF
1870
1871
1872 # Let the site file select an alternate cache file if it wants to.
1873 # Prefer explicitly selected file to automatically selected ones.
1874 if test -n "$CONFIG_SITE"; then
1875   set x "$CONFIG_SITE"
1876 elif test "x$prefix" != xNONE; then
1877   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1878 else
1879   set x "$ac_default_prefix/share/config.site" \
1880         "$ac_default_prefix/etc/config.site"
1881 fi
1882 shift
1883 for ac_site_file
1884 do
1885   if test -r "$ac_site_file"; then
1886     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1887 echo "$as_me: loading site script $ac_site_file" >&6;}
1888     sed 's/^/| /' "$ac_site_file" >&5
1889     . "$ac_site_file"
1890   fi
1891 done
1892
1893 if test -r "$cache_file"; then
1894   # Some versions of bash will fail to source /dev/null (special
1895   # files actually), so we avoid doing that.
1896   if test -f "$cache_file"; then
1897     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1898 echo "$as_me: loading cache $cache_file" >&6;}
1899     case $cache_file in
1900       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1901       *)                      . "./$cache_file";;
1902     esac
1903   fi
1904 else
1905   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1906 echo "$as_me: creating cache $cache_file" >&6;}
1907   >$cache_file
1908 fi
1909
1910 # Check that the precious variables saved in the cache have kept the same
1911 # value.
1912 ac_cache_corrupted=false
1913 for ac_var in $ac_precious_vars; do
1914   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1915   eval ac_new_set=\$ac_env_${ac_var}_set
1916   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1917   eval ac_new_val=\$ac_env_${ac_var}_value
1918   case $ac_old_set,$ac_new_set in
1919     set,)
1920       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1921 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1922       ac_cache_corrupted=: ;;
1923     ,set)
1924       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1925 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1926       ac_cache_corrupted=: ;;
1927     ,);;
1928     *)
1929       if test "x$ac_old_val" != "x$ac_new_val"; then
1930         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1931 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1932         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1933 echo "$as_me:   former value:  $ac_old_val" >&2;}
1934         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1935 echo "$as_me:   current value: $ac_new_val" >&2;}
1936         ac_cache_corrupted=:
1937       fi;;
1938   esac
1939   # Pass precious variables to config.status.
1940   if test "$ac_new_set" = set; then
1941     case $ac_new_val in
1942     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1943     *) ac_arg=$ac_var=$ac_new_val ;;
1944     esac
1945     case " $ac_configure_args " in
1946       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1947       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1948     esac
1949   fi
1950 done
1951 if $ac_cache_corrupted; then
1952   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1953 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1954   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1955 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1956    { (exit 1); exit 1; }; }
1957 fi
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983 ac_ext=c
1984 ac_cpp='$CPP $CPPFLAGS'
1985 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1986 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1987 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1988
1989
1990 ac_aux_dir=
1991 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1992   if test -f "$ac_dir/install-sh"; then
1993     ac_aux_dir=$ac_dir
1994     ac_install_sh="$ac_aux_dir/install-sh -c"
1995     break
1996   elif test -f "$ac_dir/install.sh"; then
1997     ac_aux_dir=$ac_dir
1998     ac_install_sh="$ac_aux_dir/install.sh -c"
1999     break
2000   elif test -f "$ac_dir/shtool"; then
2001     ac_aux_dir=$ac_dir
2002     ac_install_sh="$ac_aux_dir/shtool install -c"
2003     break
2004   fi
2005 done
2006 if test -z "$ac_aux_dir"; then
2007   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2008 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2009    { (exit 1); exit 1; }; }
2010 fi
2011
2012 # These three variables are undocumented and unsupported,
2013 # and are intended to be withdrawn in a future Autoconf release.
2014 # They can cause serious problems if a builder's source tree is in a directory
2015 # whose full name contains unusual characters.
2016 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2017 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2018 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2019
2020
2021 # Make sure we can run config.sub.
2022 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2023   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2024 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2025    { (exit 1); exit 1; }; }
2026
2027 { echo "$as_me:$LINENO: checking build system type" >&5
2028 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2029 if test "${ac_cv_build+set}" = set; then
2030   echo $ECHO_N "(cached) $ECHO_C" >&6
2031 else
2032   ac_build_alias=$build_alias
2033 test "x$ac_build_alias" = x &&
2034   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2035 test "x$ac_build_alias" = x &&
2036   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2037 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2038    { (exit 1); exit 1; }; }
2039 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2040   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2041 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2042    { (exit 1); exit 1; }; }
2043
2044 fi
2045 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2046 echo "${ECHO_T}$ac_cv_build" >&6; }
2047 case $ac_cv_build in
2048 *-*-*) ;;
2049 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2050 echo "$as_me: error: invalid value of canonical build" >&2;}
2051    { (exit 1); exit 1; }; };;
2052 esac
2053 build=$ac_cv_build
2054 ac_save_IFS=$IFS; IFS='-'
2055 set x $ac_cv_build
2056 shift
2057 build_cpu=$1
2058 build_vendor=$2
2059 shift; shift
2060 # Remember, the first character of IFS is used to create $*,
2061 # except with old shells:
2062 build_os=$*
2063 IFS=$ac_save_IFS
2064 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2065
2066
2067 { echo "$as_me:$LINENO: checking host system type" >&5
2068 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2069 if test "${ac_cv_host+set}" = set; then
2070   echo $ECHO_N "(cached) $ECHO_C" >&6
2071 else
2072   if test "x$host_alias" = x; then
2073   ac_cv_host=$ac_cv_build
2074 else
2075   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2076     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2077 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2078    { (exit 1); exit 1; }; }
2079 fi
2080
2081 fi
2082 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2083 echo "${ECHO_T}$ac_cv_host" >&6; }
2084 case $ac_cv_host in
2085 *-*-*) ;;
2086 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2087 echo "$as_me: error: invalid value of canonical host" >&2;}
2088    { (exit 1); exit 1; }; };;
2089 esac
2090 host=$ac_cv_host
2091 ac_save_IFS=$IFS; IFS='-'
2092 set x $ac_cv_host
2093 shift
2094 host_cpu=$1
2095 host_vendor=$2
2096 shift; shift
2097 # Remember, the first character of IFS is used to create $*,
2098 # except with old shells:
2099 host_os=$*
2100 IFS=$ac_save_IFS
2101 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2102
2103
2104
2105 case aclocal in
2106   [\\/]* | ?:[\\/]* ) ac_macro_dir=aclocal         ;;
2107   *)                      ac_macro_dir=$srcdir/aclocal ;;
2108 esac
2109 test -d "$ac_macro_dir" ||
2110   { { echo "$as_me:$LINENO: error: cannot find macro directory \`aclocal'" >&5
2111 echo "$as_me: error: cannot find macro directory \`aclocal'" >&2;}
2112    { (exit 1); exit 1; }; }
2113
2114 am__api_version="1.9"
2115 # Find a good install program.  We prefer a C program (faster),
2116 # so one script is as good as another.  But avoid the broken or
2117 # incompatible versions:
2118 # SysV /etc/install, /usr/sbin/install
2119 # SunOS /usr/etc/install
2120 # IRIX /sbin/install
2121 # AIX /bin/install
2122 # AmigaOS /C/install, which installs bootblocks on floppy discs
2123 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2124 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2125 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2126 # OS/2's system install, which has a completely different semantic
2127 # ./install, which can be erroneously created by make from ./install.sh.
2128 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2129 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2130 if test -z "$INSTALL"; then
2131 if test "${ac_cv_path_install+set}" = set; then
2132   echo $ECHO_N "(cached) $ECHO_C" >&6
2133 else
2134   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2135 for as_dir in $PATH
2136 do
2137   IFS=$as_save_IFS
2138   test -z "$as_dir" && as_dir=.
2139   # Account for people who put trailing slashes in PATH elements.
2140 case $as_dir/ in
2141   ./ | .// | /cC/* | \
2142   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2143   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2144   /usr/ucb/* ) ;;
2145   *)
2146     # OSF1 and SCO ODT 3.0 have their own names for install.
2147     # Don't use installbsd from OSF since it installs stuff as root
2148     # by default.
2149     for ac_prog in ginstall scoinst install; do
2150       for ac_exec_ext in '' $ac_executable_extensions; do
2151         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
2152           if test $ac_prog = install &&
2153             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2154             # AIX install.  It has an incompatible calling convention.
2155             :
2156           elif test $ac_prog = install &&
2157             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2158             # program-specific install script used by HP pwplus--don't use.
2159             :
2160           else
2161             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2162             break 3
2163           fi
2164         fi
2165       done
2166     done
2167     ;;
2168 esac
2169 done
2170 IFS=$as_save_IFS
2171
2172
2173 fi
2174   if test "${ac_cv_path_install+set}" = set; then
2175     INSTALL=$ac_cv_path_install
2176   else
2177     # As a last resort, use the slow shell script.  Don't cache a
2178     # value for INSTALL within a source directory, because that will
2179     # break other packages using the cache if that directory is
2180     # removed, or if the value is a relative name.
2181     INSTALL=$ac_install_sh
2182   fi
2183 fi
2184 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2185 echo "${ECHO_T}$INSTALL" >&6; }
2186
2187 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2188 # It thinks the first close brace ends the variable substitution.
2189 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2190
2191 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2192
2193 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2194
2195 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2196 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2197 # Just in case
2198 sleep 1
2199 echo timestamp > conftest.file
2200 # Do `set' in a subshell so we don't clobber the current shell's
2201 # arguments.  Must try -L first in case configure is actually a
2202 # symlink; some systems play weird games with the mod time of symlinks
2203 # (eg FreeBSD returns the mod time of the symlink's containing
2204 # directory).
2205 if (
2206    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2207    if test "$*" = "X"; then
2208       # -L didn't work.
2209       set X `ls -t $srcdir/configure conftest.file`
2210    fi
2211    rm -f conftest.file
2212    if test "$*" != "X $srcdir/configure conftest.file" \
2213       && test "$*" != "X conftest.file $srcdir/configure"; then
2214
2215       # If neither matched, then we have a broken ls.  This can happen
2216       # if, for instance, CONFIG_SHELL is bash and it inherits a
2217       # broken ls alias from the environment.  This has actually
2218       # happened.  Such a system could not be considered "sane".
2219       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2220 alias in your environment" >&5
2221 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2222 alias in your environment" >&2;}
2223    { (exit 1); exit 1; }; }
2224    fi
2225
2226    test "$2" = conftest.file
2227    )
2228 then
2229    # Ok.
2230    :
2231 else
2232    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2233 Check your system clock" >&5
2234 echo "$as_me: error: newly created file is older than distributed files!
2235 Check your system clock" >&2;}
2236    { (exit 1); exit 1; }; }
2237 fi
2238 { echo "$as_me:$LINENO: result: yes" >&5
2239 echo "${ECHO_T}yes" >&6; }
2240 test "$program_prefix" != NONE &&
2241   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2242 # Use a double $ so make ignores it.
2243 test "$program_suffix" != NONE &&
2244   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2245 # Double any \ or $.  echo might interpret backslashes.
2246 # By default was `s,x,x', remove it if useless.
2247 cat <<\_ACEOF >conftest.sed
2248 s/[\\$]/&&/g;s/;s,x,x,$//
2249 _ACEOF
2250 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2251 rm -f conftest.sed
2252
2253 # expand $ac_aux_dir to an absolute path
2254 am_aux_dir=`cd $ac_aux_dir && pwd`
2255
2256 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2257 # Use eval to expand $SHELL
2258 if eval "$MISSING --run true"; then
2259   am_missing_run="$MISSING --run "
2260 else
2261   am_missing_run=
2262   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2263 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2264 fi
2265
2266 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2267   # We used to keeping the `.' as first argument, in order to
2268   # allow $(mkdir_p) to be used without argument.  As in
2269   #   $(mkdir_p) $(somedir)
2270   # where $(somedir) is conditionally defined.  However this is wrong
2271   # for two reasons:
2272   #  1. if the package is installed by a user who cannot write `.'
2273   #     make install will fail,
2274   #  2. the above comment should most certainly read
2275   #     $(mkdir_p) $(DESTDIR)$(somedir)
2276   #     so it does not work when $(somedir) is undefined and
2277   #     $(DESTDIR) is not.
2278   #  To support the latter case, we have to write
2279   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2280   #  so the `.' trick is pointless.
2281   mkdir_p='mkdir -p --'
2282 else
2283   # On NextStep and OpenStep, the `mkdir' command does not
2284   # recognize any option.  It will interpret all options as
2285   # directories to create, and then abort because `.' already
2286   # exists.
2287   for d in ./-p ./--version;
2288   do
2289     test -d $d && rmdir $d
2290   done
2291   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2292   if test -f "$ac_aux_dir/mkinstalldirs"; then
2293     mkdir_p='$(mkinstalldirs)'
2294   else
2295     mkdir_p='$(install_sh) -d'
2296   fi
2297 fi
2298
2299 for ac_prog in gawk mawk nawk awk
2300 do
2301   # Extract the first word of "$ac_prog", so it can be a program name with args.
2302 set dummy $ac_prog; ac_word=$2
2303 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2305 if test "${ac_cv_prog_AWK+set}" = set; then
2306   echo $ECHO_N "(cached) $ECHO_C" >&6
2307 else
2308   if test -n "$AWK"; then
2309   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2310 else
2311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2312 for as_dir in $PATH
2313 do
2314   IFS=$as_save_IFS
2315   test -z "$as_dir" && as_dir=.
2316   for ac_exec_ext in '' $ac_executable_extensions; do
2317   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2318     ac_cv_prog_AWK="$ac_prog"
2319     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2320     break 2
2321   fi
2322 done
2323 done
2324 IFS=$as_save_IFS
2325
2326 fi
2327 fi
2328 AWK=$ac_cv_prog_AWK
2329 if test -n "$AWK"; then
2330   { echo "$as_me:$LINENO: result: $AWK" >&5
2331 echo "${ECHO_T}$AWK" >&6; }
2332 else
2333   { echo "$as_me:$LINENO: result: no" >&5
2334 echo "${ECHO_T}no" >&6; }
2335 fi
2336
2337
2338   test -n "$AWK" && break
2339 done
2340
2341 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2342 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2343 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2344 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2345   echo $ECHO_N "(cached) $ECHO_C" >&6
2346 else
2347   cat >conftest.make <<\_ACEOF
2348 SHELL = /bin/sh
2349 all:
2350         @echo '@@@%%%=$(MAKE)=@@@%%%'
2351 _ACEOF
2352 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2353 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2354   *@@@%%%=?*=@@@%%%*)
2355     eval ac_cv_prog_make_${ac_make}_set=yes;;
2356   *)
2357     eval ac_cv_prog_make_${ac_make}_set=no;;
2358 esac
2359 rm -f conftest.make
2360 fi
2361 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2362   { echo "$as_me:$LINENO: result: yes" >&5
2363 echo "${ECHO_T}yes" >&6; }
2364   SET_MAKE=
2365 else
2366   { echo "$as_me:$LINENO: result: no" >&5
2367 echo "${ECHO_T}no" >&6; }
2368   SET_MAKE="MAKE=${MAKE-make}"
2369 fi
2370
2371 rm -rf .tst 2>/dev/null
2372 mkdir .tst 2>/dev/null
2373 if test -d .tst; then
2374   am__leading_dot=.
2375 else
2376   am__leading_dot=_
2377 fi
2378 rmdir .tst 2>/dev/null
2379
2380 # test to see if srcdir already configured
2381 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2382    test -f $srcdir/config.status; then
2383   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2384 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2385    { (exit 1); exit 1; }; }
2386 fi
2387
2388 # test whether we have cygpath
2389 if test -z "$CYGPATH_W"; then
2390   if (cygpath --version) >/dev/null 2>/dev/null; then
2391     CYGPATH_W='cygpath -w'
2392   else
2393     CYGPATH_W=echo
2394   fi
2395 fi
2396
2397
2398 # Define the identity of the package.
2399  PACKAGE='nfs-utils'
2400  VERSION='1.0.10'
2401
2402
2403 cat >>confdefs.h <<_ACEOF
2404 #define PACKAGE "$PACKAGE"
2405 _ACEOF
2406
2407
2408 cat >>confdefs.h <<_ACEOF
2409 #define VERSION "$VERSION"
2410 _ACEOF
2411
2412 # Some tools Automake needs.
2413
2414 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2415
2416
2417 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2418
2419
2420 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2421
2422
2423 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2424
2425
2426 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2427
2428 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2429
2430 # Installed binaries are usually stripped using `strip' when the user
2431 # run `make install-strip'.  However `strip' might not be the right
2432 # tool to use in cross-compilation environments, therefore Automake
2433 # will honor the `STRIP' environment variable to overrule this program.
2434 if test "$cross_compiling" != no; then
2435   if test -n "$ac_tool_prefix"; then
2436   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2437 set dummy ${ac_tool_prefix}strip; ac_word=$2
2438 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2440 if test "${ac_cv_prog_STRIP+set}" = set; then
2441   echo $ECHO_N "(cached) $ECHO_C" >&6
2442 else
2443   if test -n "$STRIP"; then
2444   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2445 else
2446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2447 for as_dir in $PATH
2448 do
2449   IFS=$as_save_IFS
2450   test -z "$as_dir" && as_dir=.
2451   for ac_exec_ext in '' $ac_executable_extensions; do
2452   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2453     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2454     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2455     break 2
2456   fi
2457 done
2458 done
2459 IFS=$as_save_IFS
2460
2461 fi
2462 fi
2463 STRIP=$ac_cv_prog_STRIP
2464 if test -n "$STRIP"; then
2465   { echo "$as_me:$LINENO: result: $STRIP" >&5
2466 echo "${ECHO_T}$STRIP" >&6; }
2467 else
2468   { echo "$as_me:$LINENO: result: no" >&5
2469 echo "${ECHO_T}no" >&6; }
2470 fi
2471
2472
2473 fi
2474 if test -z "$ac_cv_prog_STRIP"; then
2475   ac_ct_STRIP=$STRIP
2476   # Extract the first word of "strip", so it can be a program name with args.
2477 set dummy strip; ac_word=$2
2478 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2480 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2481   echo $ECHO_N "(cached) $ECHO_C" >&6
2482 else
2483   if test -n "$ac_ct_STRIP"; then
2484   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2485 else
2486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2487 for as_dir in $PATH
2488 do
2489   IFS=$as_save_IFS
2490   test -z "$as_dir" && as_dir=.
2491   for ac_exec_ext in '' $ac_executable_extensions; do
2492   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2493     ac_cv_prog_ac_ct_STRIP="strip"
2494     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2495     break 2
2496   fi
2497 done
2498 done
2499 IFS=$as_save_IFS
2500
2501 fi
2502 fi
2503 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2504 if test -n "$ac_ct_STRIP"; then
2505   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2506 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2507 else
2508   { echo "$as_me:$LINENO: result: no" >&5
2509 echo "${ECHO_T}no" >&6; }
2510 fi
2511
2512   if test "x$ac_ct_STRIP" = x; then
2513     STRIP=":"
2514   else
2515     case $cross_compiling:$ac_tool_warned in
2516 yes:)
2517 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2518 whose name does not start with the host triplet.  If you think this
2519 configuration is useful to you, please write to autoconf@gnu.org." >&5
2520 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2521 whose name does not start with the host triplet.  If you think this
2522 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2523 ac_tool_warned=yes ;;
2524 esac
2525     STRIP=$ac_ct_STRIP
2526   fi
2527 else
2528   STRIP="$ac_cv_prog_STRIP"
2529 fi
2530
2531 fi
2532 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2533
2534 # We need awk for the "check" target.  The system "awk" is bad on
2535 # some platforms.
2536 # Always define AMTAR for backward compatibility.
2537
2538 AMTAR=${AMTAR-"${am_missing_run}tar"}
2539
2540 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550 # Check whether --with-release was given.
2551 if test "${with_release+set}" = set; then
2552   withval=$with_release; RELEASE=$withval
2553 else
2554   RELEASE=1
2555 fi
2556
2557
2558
2559 # Check whether --with-statedir was given.
2560 if test "${with_statedir+set}" = set; then
2561   withval=$with_statedir; statedir=$withval
2562 else
2563   statedir=/var/lib/nfs
2564 fi
2565
2566
2567
2568 # Check whether --with-statduser was given.
2569 if test "${with_statduser+set}" = set; then
2570   withval=$with_statduser; statduser=$withval
2571 else
2572   if test "x$cross_compiling" = "xno"; then
2573                 if grep -s '^rpcuser:' /etc/passwd > /dev/null; then
2574                         statduser=rpcuser
2575                 else
2576                         statduser=nobody
2577                 fi
2578         else
2579                 statduser=nobody
2580         fi
2581 fi
2582
2583
2584 # Check whether --enable-nfsv3 was given.
2585 if test "${enable_nfsv3+set}" = set; then
2586   enableval=$enable_nfsv3; enable_nfsv3=$enableval
2587 else
2588   enable_nfsv3=yes
2589 fi
2590
2591         if test "$enable_nfsv3" = yes; then
2592
2593 cat >>confdefs.h <<\_ACEOF
2594 #define NFS3_SUPPORTED 1
2595 _ACEOF
2596
2597         else
2598                 enable_nfsv3=
2599         fi
2600
2601 # Check whether --enable-nfsv4 was given.
2602 if test "${enable_nfsv4+set}" = set; then
2603   enableval=$enable_nfsv4; enable_nfsv4=$enableval
2604 else
2605   enable_nfsv4=yes
2606 fi
2607
2608         if test "$enable_nfsv4" = yes; then
2609
2610 cat >>confdefs.h <<\_ACEOF
2611 #define NFS4_SUPPORTED 1
2612 _ACEOF
2613
2614                 IDMAPD=idmapd
2615         else
2616                 enable_nfsv4=
2617                 IDMAPD=
2618         fi
2619
2620
2621
2622
2623 if test "$enable_nfsv4" = "yes"; then
2624   CONFIG_NFSV4_TRUE=
2625   CONFIG_NFSV4_FALSE='#'
2626 else
2627   CONFIG_NFSV4_TRUE='#'
2628   CONFIG_NFSV4_FALSE=
2629 fi
2630
2631 # Check whether --enable-gss was given.
2632 if test "${enable_gss+set}" = set; then
2633   enableval=$enable_gss; enable_gss=$enableval
2634 else
2635   enable_gss=yes
2636 fi
2637
2638         if test "$enable_gss" = yes; then
2639
2640 cat >>confdefs.h <<\_ACEOF
2641 #define GSS_SUPPORTED 1
2642 _ACEOF
2643
2644                 GSSD=gssd
2645                 SVCGSSD=svcgssd
2646         else
2647                 enable_gss=
2648                 GSSD=
2649                 SVCGSSD=
2650         fi
2651
2652
2653
2654
2655
2656 if test "$enable_gss" = "yes"; then
2657   CONFIG_GSS_TRUE=
2658   CONFIG_GSS_FALSE='#'
2659 else
2660   CONFIG_GSS_TRUE='#'
2661   CONFIG_GSS_FALSE=
2662 fi
2663
2664 # Check whether --enable-kprefix was given.
2665 if test "${enable_kprefix+set}" = set; then
2666   enableval=$enable_kprefix; test "$enableval" = "yes" && kprefix=k
2667 else
2668   kprefix=
2669 fi
2670
2671
2672 # Check whether --enable-secure-statd was given.
2673 if test "${enable_secure_statd+set}" = set; then
2674   enableval=$enable_secure_statd; test "$enableval" = "yes" && secure_statd=yes
2675 else
2676   secure_statd=no
2677 fi
2678
2679         if test "$secure_statd" = yes; then
2680
2681 cat >>confdefs.h <<\_ACEOF
2682 #define RESTRICTED_STATD 1
2683 _ACEOF
2684
2685         fi
2686
2687 # Check whether --enable-rquotad was given.
2688 if test "${enable_rquotad+set}" = set; then
2689   enableval=$enable_rquotad; enable_rquotad=$enableval
2690 else
2691   enable_rquotad=yes
2692 fi
2693
2694         if test "$enable_rquotad" = yes; then
2695                 RQUOTAD=rquotad
2696         else
2697                 RQUOTAD=
2698         fi
2699
2700
2701 if test "$enable_rquotad" = "yes"; then
2702   CONFIG_RQUOTAD_TRUE=
2703   CONFIG_RQUOTAD_FALSE='#'
2704 else
2705   CONFIG_RQUOTAD_TRUE='#'
2706   CONFIG_RQUOTAD_FALSE=
2707 fi
2708
2709
2710 # Check whether --enable-mount was given.
2711 if test "${enable_mount+set}" = set; then
2712   enableval=$enable_mount; enable_mount=$enableval
2713 else
2714   enable_mount=no
2715 fi
2716
2717
2718
2719 if test "$enable_mount" = "yes"; then
2720   CONFIG_MOUNT_TRUE=
2721   CONFIG_MOUNT_FALSE='#'
2722 else
2723   CONFIG_MOUNT_TRUE='#'
2724   CONFIG_MOUNT_FALSE=
2725 fi
2726
2727
2728 # Check whether user wants TCP wrappers support
2729 DEPDIR="${am__leading_dot}deps"
2730
2731 ac_config_commands="$ac_config_commands depfiles"
2732
2733
2734 am_make=${MAKE-make}
2735 cat > confinc << 'END'
2736 am__doit:
2737         @echo done
2738 .PHONY: am__doit
2739 END
2740 # If we don't find an include directive, just comment out the code.
2741 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2742 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2743 am__include="#"
2744 am__quote=
2745 _am_result=none
2746 # First try GNU make style include.
2747 echo "include confinc" > confmf
2748 # We grep out `Entering directory' and `Leaving directory'
2749 # messages which can occur if `w' ends up in MAKEFLAGS.
2750 # In particular we don't look at `^make:' because GNU make might
2751 # be invoked under some other name (usually "gmake"), in which
2752 # case it prints its new name instead of `make'.
2753 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2754    am__include=include
2755    am__quote=
2756    _am_result=GNU
2757 fi
2758 # Now try BSD make style include.
2759 if test "$am__include" = "#"; then
2760    echo '.include "confinc"' > confmf
2761    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2762       am__include=.include
2763       am__quote="\""
2764       _am_result=BSD
2765    fi
2766 fi
2767
2768
2769 { echo "$as_me:$LINENO: result: $_am_result" >&5
2770 echo "${ECHO_T}$_am_result" >&6; }
2771 rm -f confinc confmf
2772
2773 # Check whether --enable-dependency-tracking was given.
2774 if test "${enable_dependency_tracking+set}" = set; then
2775   enableval=$enable_dependency_tracking;
2776 fi
2777
2778 if test "x$enable_dependency_tracking" != xno; then
2779   am_depcomp="$ac_aux_dir/depcomp"
2780   AMDEPBACKSLASH='\'
2781 fi
2782
2783
2784 if test "x$enable_dependency_tracking" != xno; then
2785   AMDEP_TRUE=
2786   AMDEP_FALSE='#'
2787 else
2788   AMDEP_TRUE='#'
2789   AMDEP_FALSE=
2790 fi
2791
2792
2793
2794 ac_ext=c
2795 ac_cpp='$CPP $CPPFLAGS'
2796 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2797 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2798 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2799 if test -n "$ac_tool_prefix"; then
2800   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2801 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2802 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2803 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2804 if test "${ac_cv_prog_CC+set}" = set; then
2805   echo $ECHO_N "(cached) $ECHO_C" >&6
2806 else
2807   if test -n "$CC"; then
2808   ac_cv_prog_CC="$CC" # Let the user override the test.
2809 else
2810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2811 for as_dir in $PATH
2812 do
2813   IFS=$as_save_IFS
2814   test -z "$as_dir" && as_dir=.
2815   for ac_exec_ext in '' $ac_executable_extensions; do
2816   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2817     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2818     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2819     break 2
2820   fi
2821 done
2822 done
2823 IFS=$as_save_IFS
2824
2825 fi
2826 fi
2827 CC=$ac_cv_prog_CC
2828 if test -n "$CC"; then
2829   { echo "$as_me:$LINENO: result: $CC" >&5
2830 echo "${ECHO_T}$CC" >&6; }
2831 else
2832   { echo "$as_me:$LINENO: result: no" >&5
2833 echo "${ECHO_T}no" >&6; }
2834 fi
2835
2836
2837 fi
2838 if test -z "$ac_cv_prog_CC"; then
2839   ac_ct_CC=$CC
2840   # Extract the first word of "gcc", so it can be a program name with args.
2841 set dummy gcc; ac_word=$2
2842 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2843 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2844 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2845   echo $ECHO_N "(cached) $ECHO_C" >&6
2846 else
2847   if test -n "$ac_ct_CC"; then
2848   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2849 else
2850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2851 for as_dir in $PATH
2852 do
2853   IFS=$as_save_IFS
2854   test -z "$as_dir" && as_dir=.
2855   for ac_exec_ext in '' $ac_executable_extensions; do
2856   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2857     ac_cv_prog_ac_ct_CC="gcc"
2858     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2859     break 2
2860   fi
2861 done
2862 done
2863 IFS=$as_save_IFS
2864
2865 fi
2866 fi
2867 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2868 if test -n "$ac_ct_CC"; then
2869   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2870 echo "${ECHO_T}$ac_ct_CC" >&6; }
2871 else
2872   { echo "$as_me:$LINENO: result: no" >&5
2873 echo "${ECHO_T}no" >&6; }
2874 fi
2875
2876   if test "x$ac_ct_CC" = x; then
2877     CC=""
2878   else
2879     case $cross_compiling:$ac_tool_warned in
2880 yes:)
2881 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2882 whose name does not start with the host triplet.  If you think this
2883 configuration is useful to you, please write to autoconf@gnu.org." >&5
2884 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2885 whose name does not start with the host triplet.  If you think this
2886 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2887 ac_tool_warned=yes ;;
2888 esac
2889     CC=$ac_ct_CC
2890   fi
2891 else
2892   CC="$ac_cv_prog_CC"
2893 fi
2894
2895 if test -z "$CC"; then
2896           if test -n "$ac_tool_prefix"; then
2897     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2898 set dummy ${ac_tool_prefix}cc; ac_word=$2
2899 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2901 if test "${ac_cv_prog_CC+set}" = set; then
2902   echo $ECHO_N "(cached) $ECHO_C" >&6
2903 else
2904   if test -n "$CC"; then
2905   ac_cv_prog_CC="$CC" # Let the user override the test.
2906 else
2907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2908 for as_dir in $PATH
2909 do
2910   IFS=$as_save_IFS
2911   test -z "$as_dir" && as_dir=.
2912   for ac_exec_ext in '' $ac_executable_extensions; do
2913   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2914     ac_cv_prog_CC="${ac_tool_prefix}cc"
2915     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2916     break 2
2917   fi
2918 done
2919 done
2920 IFS=$as_save_IFS
2921
2922 fi
2923 fi
2924 CC=$ac_cv_prog_CC
2925 if test -n "$CC"; then
2926   { echo "$as_me:$LINENO: result: $CC" >&5
2927 echo "${ECHO_T}$CC" >&6; }
2928 else
2929   { echo "$as_me:$LINENO: result: no" >&5
2930 echo "${ECHO_T}no" >&6; }
2931 fi
2932
2933
2934   fi
2935 fi
2936 if test -z "$CC"; then
2937   # Extract the first word of "cc", so it can be a program name with args.
2938 set dummy cc; ac_word=$2
2939 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2941 if test "${ac_cv_prog_CC+set}" = set; then
2942   echo $ECHO_N "(cached) $ECHO_C" >&6
2943 else
2944   if test -n "$CC"; then
2945   ac_cv_prog_CC="$CC" # Let the user override the test.
2946 else
2947   ac_prog_rejected=no
2948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2949 for as_dir in $PATH
2950 do
2951   IFS=$as_save_IFS
2952   test -z "$as_dir" && as_dir=.
2953   for ac_exec_ext in '' $ac_executable_extensions; do
2954   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2955     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2956        ac_prog_rejected=yes
2957        continue
2958      fi
2959     ac_cv_prog_CC="cc"
2960     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2961     break 2
2962   fi
2963 done
2964 done
2965 IFS=$as_save_IFS
2966
2967 if test $ac_prog_rejected = yes; then
2968   # We found a bogon in the path, so make sure we never use it.
2969   set dummy $ac_cv_prog_CC
2970   shift
2971   if test $# != 0; then
2972     # We chose a different compiler from the bogus one.
2973     # However, it has the same basename, so the bogon will be chosen
2974     # first if we set CC to just the basename; use the full file name.
2975     shift
2976     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2977   fi
2978 fi
2979 fi
2980 fi
2981 CC=$ac_cv_prog_CC
2982 if test -n "$CC"; then
2983   { echo "$as_me:$LINENO: result: $CC" >&5
2984 echo "${ECHO_T}$CC" >&6; }
2985 else
2986   { echo "$as_me:$LINENO: result: no" >&5
2987 echo "${ECHO_T}no" >&6; }
2988 fi
2989
2990
2991 fi
2992 if test -z "$CC"; then
2993   if test -n "$ac_tool_prefix"; then
2994   for ac_prog in cl.exe
2995   do
2996     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2997 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2998 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2999 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3000 if test "${ac_cv_prog_CC+set}" = set; then
3001   echo $ECHO_N "(cached) $ECHO_C" >&6
3002 else
3003   if test -n "$CC"; then
3004   ac_cv_prog_CC="$CC" # Let the user override the test.
3005 else
3006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3007 for as_dir in $PATH
3008 do
3009   IFS=$as_save_IFS
3010   test -z "$as_dir" && as_dir=.
3011   for ac_exec_ext in '' $ac_executable_extensions; do
3012   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3013     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3014     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3015     break 2
3016   fi
3017 done
3018 done
3019 IFS=$as_save_IFS
3020
3021 fi
3022 fi
3023 CC=$ac_cv_prog_CC
3024 if test -n "$CC"; then
3025   { echo "$as_me:$LINENO: result: $CC" >&5
3026 echo "${ECHO_T}$CC" >&6; }
3027 else
3028   { echo "$as_me:$LINENO: result: no" >&5
3029 echo "${ECHO_T}no" >&6; }
3030 fi
3031
3032
3033     test -n "$CC" && break
3034   done
3035 fi
3036 if test -z "$CC"; then
3037   ac_ct_CC=$CC
3038   for ac_prog in cl.exe
3039 do
3040   # Extract the first word of "$ac_prog", so it can be a program name with args.
3041 set dummy $ac_prog; ac_word=$2
3042 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3043 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3044 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3045   echo $ECHO_N "(cached) $ECHO_C" >&6
3046 else
3047   if test -n "$ac_ct_CC"; then
3048   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3049 else
3050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3051 for as_dir in $PATH
3052 do
3053   IFS=$as_save_IFS
3054   test -z "$as_dir" && as_dir=.
3055   for ac_exec_ext in '' $ac_executable_extensions; do
3056   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3057     ac_cv_prog_ac_ct_CC="$ac_prog"
3058     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3059     break 2
3060   fi
3061 done
3062 done
3063 IFS=$as_save_IFS
3064
3065 fi
3066 fi
3067 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3068 if test -n "$ac_ct_CC"; then
3069   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3070 echo "${ECHO_T}$ac_ct_CC" >&6; }
3071 else
3072   { echo "$as_me:$LINENO: result: no" >&5
3073 echo "${ECHO_T}no" >&6; }
3074 fi
3075
3076
3077   test -n "$ac_ct_CC" && break
3078 done
3079
3080   if test "x$ac_ct_CC" = x; then
3081     CC=""
3082   else
3083     case $cross_compiling:$ac_tool_warned in
3084 yes:)
3085 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3086 whose name does not start with the host triplet.  If you think this
3087 configuration is useful to you, please write to autoconf@gnu.org." >&5
3088 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3089 whose name does not start with the host triplet.  If you think this
3090 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3091 ac_tool_warned=yes ;;
3092 esac
3093     CC=$ac_ct_CC
3094   fi
3095 fi
3096
3097 fi
3098
3099
3100 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3101 See \`config.log' for more details." >&5
3102 echo "$as_me: error: no acceptable C compiler found in \$PATH
3103 See \`config.log' for more details." >&2;}
3104    { (exit 1); exit 1; }; }
3105
3106 # Provide some information about the compiler.
3107 echo "$as_me:$LINENO: checking for C compiler version" >&5
3108 ac_compiler=`set X $ac_compile; echo $2`
3109 { (ac_try="$ac_compiler --version >&5"
3110 case "(($ac_try" in
3111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3112   *) ac_try_echo=$ac_try;;
3113 esac
3114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3115   (eval "$ac_compiler --version >&5") 2>&5
3116   ac_status=$?
3117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3118   (exit $ac_status); }
3119 { (ac_try="$ac_compiler -v >&5"
3120 case "(($ac_try" in
3121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3122   *) ac_try_echo=$ac_try;;
3123 esac
3124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3125   (eval "$ac_compiler -v >&5") 2>&5
3126   ac_status=$?
3127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3128   (exit $ac_status); }
3129 { (ac_try="$ac_compiler -V >&5"
3130 case "(($ac_try" in
3131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3132   *) ac_try_echo=$ac_try;;
3133 esac
3134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3135   (eval "$ac_compiler -V >&5") 2>&5
3136   ac_status=$?
3137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3138   (exit $ac_status); }
3139
3140 cat >conftest.$ac_ext <<_ACEOF
3141 /* confdefs.h.  */
3142 _ACEOF
3143 cat confdefs.h >>conftest.$ac_ext
3144 cat >>conftest.$ac_ext <<_ACEOF
3145 /* end confdefs.h.  */
3146
3147 int
3148 main ()
3149 {
3150
3151   ;
3152   return 0;
3153 }
3154 _ACEOF
3155 ac_clean_files_save=$ac_clean_files
3156 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3157 # Try to create an executable without -o first, disregard a.out.
3158 # It will help us diagnose broken compilers, and finding out an intuition
3159 # of exeext.
3160 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3161 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3162 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3163 #
3164 # List of possible output files, starting from the most likely.
3165 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3166 # only as a last resort.  b.out is created by i960 compilers.
3167 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3168 #
3169 # The IRIX 6 linker writes into existing files which may not be
3170 # executable, retaining their permissions.  Remove them first so a
3171 # subsequent execution test works.
3172 ac_rmfiles=
3173 for ac_file in $ac_files
3174 do
3175   case $ac_file in
3176     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3177     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3178   esac
3179 done
3180 rm -f $ac_rmfiles
3181
3182 if { (ac_try="$ac_link_default"
3183 case "(($ac_try" in
3184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3185   *) ac_try_echo=$ac_try;;
3186 esac
3187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3188   (eval "$ac_link_default") 2>&5
3189   ac_status=$?
3190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3191   (exit $ac_status); }; then
3192   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3193 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3194 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3195 # so that the user can short-circuit this test for compilers unknown to
3196 # Autoconf.
3197 for ac_file in $ac_files
3198 do
3199   test -f "$ac_file" || continue
3200   case $ac_file in
3201     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3202         ;;
3203     [ab].out )
3204         # We found the default executable, but exeext='' is most
3205         # certainly right.
3206         break;;
3207     *.* )
3208         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3209         then :; else
3210            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3211         fi
3212         # We set ac_cv_exeext here because the later test for it is not
3213         # safe: cross compilers may not add the suffix if given an `-o'
3214         # argument, so we may need to know it at that point already.
3215         # Even if this section looks crufty: it has the advantage of
3216         # actually working.
3217         break;;
3218     * )
3219         break;;
3220   esac
3221 done
3222 test "$ac_cv_exeext" = no && ac_cv_exeext=
3223
3224 else
3225   echo "$as_me: failed program was:" >&5
3226 sed 's/^/| /' conftest.$ac_ext >&5
3227
3228 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3229 See \`config.log' for more details." >&5
3230 echo "$as_me: error: C compiler cannot create executables
3231 See \`config.log' for more details." >&2;}
3232    { (exit 77); exit 77; }; }
3233 fi
3234
3235 ac_exeext=$ac_cv_exeext
3236 { echo "$as_me:$LINENO: result: $ac_file" >&5
3237 echo "${ECHO_T}$ac_file" >&6; }
3238
3239 # Check that the compiler produces executables we can run.  If not, either
3240 # the compiler is broken, or we cross compile.
3241 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3242 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3243 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3244 # If not cross compiling, check that we can run a simple program.
3245 if test "$cross_compiling" != yes; then
3246   if { ac_try='./$ac_file'
3247   { (case "(($ac_try" in
3248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3249   *) ac_try_echo=$ac_try;;
3250 esac
3251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3252   (eval "$ac_try") 2>&5
3253   ac_status=$?
3254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3255   (exit $ac_status); }; }; then
3256     cross_compiling=no
3257   else
3258     if test "$cross_compiling" = maybe; then
3259         cross_compiling=yes
3260     else
3261         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3262 If you meant to cross compile, use \`--host'.
3263 See \`config.log' for more details." >&5
3264 echo "$as_me: error: cannot run C compiled programs.
3265 If you meant to cross compile, use \`--host'.
3266 See \`config.log' for more details." >&2;}
3267    { (exit 1); exit 1; }; }
3268     fi
3269   fi
3270 fi
3271 { echo "$as_me:$LINENO: result: yes" >&5
3272 echo "${ECHO_T}yes" >&6; }
3273
3274 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3275 ac_clean_files=$ac_clean_files_save
3276 # Check that the compiler produces executables we can run.  If not, either
3277 # the compiler is broken, or we cross compile.
3278 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3279 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3280 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3281 echo "${ECHO_T}$cross_compiling" >&6; }
3282
3283 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3284 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3285 if { (ac_try="$ac_link"
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_link") 2>&5
3292   ac_status=$?
3293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3294   (exit $ac_status); }; then
3295   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3296 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3297 # work properly (i.e., refer to `conftest.exe'), while it won't with
3298 # `rm'.
3299 for ac_file in conftest.exe conftest conftest.*; do
3300   test -f "$ac_file" || continue
3301   case $ac_file in
3302     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3303     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3304           break;;
3305     * ) break;;
3306   esac
3307 done
3308 else
3309   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3310 See \`config.log' for more details." >&5
3311 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3312 See \`config.log' for more details." >&2;}
3313    { (exit 1); exit 1; }; }
3314 fi
3315
3316 rm -f conftest$ac_cv_exeext
3317 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3318 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3319
3320 rm -f conftest.$ac_ext
3321 EXEEXT=$ac_cv_exeext
3322 ac_exeext=$EXEEXT
3323 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3324 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3325 if test "${ac_cv_objext+set}" = set; then
3326   echo $ECHO_N "(cached) $ECHO_C" >&6
3327 else
3328   cat >conftest.$ac_ext <<_ACEOF
3329 /* confdefs.h.  */
3330 _ACEOF
3331 cat confdefs.h >>conftest.$ac_ext
3332 cat >>conftest.$ac_ext <<_ACEOF
3333 /* end confdefs.h.  */
3334
3335 int
3336 main ()
3337 {
3338
3339   ;
3340   return 0;
3341 }
3342 _ACEOF
3343 rm -f conftest.o conftest.obj
3344 if { (ac_try="$ac_compile"
3345 case "(($ac_try" in
3346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3347   *) ac_try_echo=$ac_try;;
3348 esac
3349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3350   (eval "$ac_compile") 2>&5
3351   ac_status=$?
3352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3353   (exit $ac_status); }; then
3354   for ac_file in conftest.o conftest.obj conftest.*; do
3355   test -f "$ac_file" || continue;
3356   case $ac_file in
3357     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3358     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3359        break;;
3360   esac
3361 done
3362 else
3363   echo "$as_me: failed program was:" >&5
3364 sed 's/^/| /' conftest.$ac_ext >&5
3365
3366 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3367 See \`config.log' for more details." >&5
3368 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3369 See \`config.log' for more details." >&2;}
3370    { (exit 1); exit 1; }; }
3371 fi
3372
3373 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3374 fi
3375 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3376 echo "${ECHO_T}$ac_cv_objext" >&6; }
3377 OBJEXT=$ac_cv_objext
3378 ac_objext=$OBJEXT
3379 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3380 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3381 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3382   echo $ECHO_N "(cached) $ECHO_C" >&6
3383 else
3384   cat >conftest.$ac_ext <<_ACEOF
3385 /* confdefs.h.  */
3386 _ACEOF
3387 cat confdefs.h >>conftest.$ac_ext
3388 cat >>conftest.$ac_ext <<_ACEOF
3389 /* end confdefs.h.  */
3390
3391 int
3392 main ()
3393 {
3394 #ifndef __GNUC__
3395        choke me
3396 #endif
3397
3398   ;
3399   return 0;
3400 }
3401 _ACEOF
3402 rm -f conftest.$ac_objext
3403 if { (ac_try="$ac_compile"
3404 case "(($ac_try" in
3405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3406   *) ac_try_echo=$ac_try;;
3407 esac
3408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3409   (eval "$ac_compile") 2>conftest.er1
3410   ac_status=$?
3411   grep -v '^ *+' conftest.er1 >conftest.err
3412   rm -f conftest.er1
3413   cat conftest.err >&5
3414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3415   (exit $ac_status); } &&
3416          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3417   { (case "(($ac_try" in
3418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3419   *) ac_try_echo=$ac_try;;
3420 esac
3421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3422   (eval "$ac_try") 2>&5
3423   ac_status=$?
3424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3425   (exit $ac_status); }; } &&
3426          { ac_try='test -s conftest.$ac_objext'
3427   { (case "(($ac_try" in
3428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3429   *) ac_try_echo=$ac_try;;
3430 esac
3431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3432   (eval "$ac_try") 2>&5
3433   ac_status=$?
3434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3435   (exit $ac_status); }; }; then
3436   ac_compiler_gnu=yes
3437 else
3438   echo "$as_me: failed program was:" >&5
3439 sed 's/^/| /' conftest.$ac_ext >&5
3440
3441         ac_compiler_gnu=no
3442 fi
3443
3444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3445 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3446
3447 fi
3448 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3449 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3450 GCC=`test $ac_compiler_gnu = yes && echo yes`
3451 ac_test_CFLAGS=${CFLAGS+set}
3452 ac_save_CFLAGS=$CFLAGS
3453 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3454 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3455 if test "${ac_cv_prog_cc_g+set}" = set; then
3456   echo $ECHO_N "(cached) $ECHO_C" >&6
3457 else
3458   ac_save_c_werror_flag=$ac_c_werror_flag
3459    ac_c_werror_flag=yes
3460    ac_cv_prog_cc_g=no
3461    CFLAGS="-g"
3462    cat >conftest.$ac_ext <<_ACEOF
3463 /* confdefs.h.  */
3464 _ACEOF
3465 cat confdefs.h >>conftest.$ac_ext
3466 cat >>conftest.$ac_ext <<_ACEOF
3467 /* end confdefs.h.  */
3468
3469 int
3470 main ()
3471 {
3472
3473   ;
3474   return 0;
3475 }
3476 _ACEOF
3477 rm -f conftest.$ac_objext
3478 if { (ac_try="$ac_compile"
3479 case "(($ac_try" in
3480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3481   *) ac_try_echo=$ac_try;;
3482 esac
3483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3484   (eval "$ac_compile") 2>conftest.er1
3485   ac_status=$?
3486   grep -v '^ *+' conftest.er1 >conftest.err
3487   rm -f conftest.er1
3488   cat conftest.err >&5
3489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3490   (exit $ac_status); } &&
3491          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3492   { (case "(($ac_try" in
3493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3494   *) ac_try_echo=$ac_try;;
3495 esac
3496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3497   (eval "$ac_try") 2>&5
3498   ac_status=$?
3499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3500   (exit $ac_status); }; } &&
3501          { ac_try='test -s conftest.$ac_objext'
3502   { (case "(($ac_try" in
3503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3504   *) ac_try_echo=$ac_try;;
3505 esac
3506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3507   (eval "$ac_try") 2>&5
3508   ac_status=$?
3509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3510   (exit $ac_status); }; }; then
3511   ac_cv_prog_cc_g=yes
3512 else
3513   echo "$as_me: failed program was:" >&5
3514 sed 's/^/| /' conftest.$ac_ext >&5
3515
3516         CFLAGS=""
3517       cat >conftest.$ac_ext <<_ACEOF
3518 /* confdefs.h.  */
3519 _ACEOF
3520 cat confdefs.h >>conftest.$ac_ext
3521 cat >>conftest.$ac_ext <<_ACEOF
3522 /* end confdefs.h.  */
3523
3524 int
3525 main ()
3526 {
3527
3528   ;
3529   return 0;
3530 }
3531 _ACEOF
3532 rm -f conftest.$ac_objext
3533 if { (ac_try="$ac_compile"
3534 case "(($ac_try" in
3535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3536   *) ac_try_echo=$ac_try;;
3537 esac
3538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3539   (eval "$ac_compile") 2>conftest.er1
3540   ac_status=$?
3541   grep -v '^ *+' conftest.er1 >conftest.err
3542   rm -f conftest.er1
3543   cat conftest.err >&5
3544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3545   (exit $ac_status); } &&
3546          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3547   { (case "(($ac_try" in
3548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3549   *) ac_try_echo=$ac_try;;
3550 esac
3551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3552   (eval "$ac_try") 2>&5
3553   ac_status=$?
3554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3555   (exit $ac_status); }; } &&
3556          { ac_try='test -s conftest.$ac_objext'
3557   { (case "(($ac_try" in
3558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3559   *) ac_try_echo=$ac_try;;
3560 esac
3561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3562   (eval "$ac_try") 2>&5
3563   ac_status=$?
3564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3565   (exit $ac_status); }; }; then
3566   :
3567 else
3568   echo "$as_me: failed program was:" >&5
3569 sed 's/^/| /' conftest.$ac_ext >&5
3570
3571         ac_c_werror_flag=$ac_save_c_werror_flag
3572          CFLAGS="-g"
3573          cat >conftest.$ac_ext <<_ACEOF
3574 /* confdefs.h.  */
3575 _ACEOF
3576 cat confdefs.h >>conftest.$ac_ext
3577 cat >>conftest.$ac_ext <<_ACEOF
3578 /* end confdefs.h.  */
3579
3580 int
3581 main ()
3582 {
3583
3584   ;
3585   return 0;
3586 }
3587 _ACEOF
3588 rm -f conftest.$ac_objext
3589 if { (ac_try="$ac_compile"
3590 case "(($ac_try" in
3591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3592   *) ac_try_echo=$ac_try;;
3593 esac
3594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3595   (eval "$ac_compile") 2>conftest.er1
3596   ac_status=$?
3597   grep -v '^ *+' conftest.er1 >conftest.err
3598   rm -f conftest.er1
3599   cat conftest.err >&5
3600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3601   (exit $ac_status); } &&
3602          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3603   { (case "(($ac_try" in
3604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3605   *) ac_try_echo=$ac_try;;
3606 esac
3607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3608   (eval "$ac_try") 2>&5
3609   ac_status=$?
3610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3611   (exit $ac_status); }; } &&
3612          { ac_try='test -s conftest.$ac_objext'
3613   { (case "(($ac_try" in
3614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3615   *) ac_try_echo=$ac_try;;
3616 esac
3617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3618   (eval "$ac_try") 2>&5
3619   ac_status=$?
3620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621   (exit $ac_status); }; }; then
3622   ac_cv_prog_cc_g=yes
3623 else
3624   echo "$as_me: failed program was:" >&5
3625 sed 's/^/| /' conftest.$ac_ext >&5
3626
3627
3628 fi
3629
3630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3631 fi
3632
3633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3634 fi
3635
3636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3637    ac_c_werror_flag=$ac_save_c_werror_flag
3638 fi
3639 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3640 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3641 if test "$ac_test_CFLAGS" = set; then
3642   CFLAGS=$ac_save_CFLAGS
3643 elif test $ac_cv_prog_cc_g = yes; then
3644   if test "$GCC" = yes; then
3645     CFLAGS="-g -O2"
3646   else
3647     CFLAGS="-g"
3648   fi
3649 else
3650   if test "$GCC" = yes; then
3651     CFLAGS="-O2"
3652   else
3653     CFLAGS=
3654   fi
3655 fi
3656 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3657 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3658 if test "${ac_cv_prog_cc_c89+set}" = set; then
3659   echo $ECHO_N "(cached) $ECHO_C" >&6
3660 else
3661   ac_cv_prog_cc_c89=no
3662 ac_save_CC=$CC
3663 cat >conftest.$ac_ext <<_ACEOF
3664 /* confdefs.h.  */
3665 _ACEOF
3666 cat confdefs.h >>conftest.$ac_ext
3667 cat >>conftest.$ac_ext <<_ACEOF
3668 /* end confdefs.h.  */
3669 #include <stdarg.h>
3670 #include <stdio.h>
3671 #include <sys/types.h>
3672 #include <sys/stat.h>
3673 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3674 struct buf { int x; };
3675 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3676 static char *e (p, i)
3677      char **p;
3678      int i;
3679 {
3680   return p[i];
3681 }
3682 static char *f (char * (*g) (char **, int), char **p, ...)
3683 {
3684   char *s;
3685   va_list v;
3686   va_start (v,p);
3687   s = g (p, va_arg (v,int));
3688   va_end (v);
3689   return s;
3690 }
3691
3692 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3693    function prototypes and stuff, but not '\xHH' hex character constants.
3694    These don't provoke an error unfortunately, instead are silently treated
3695    as 'x'.  The following induces an error, until -std is added to get
3696    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3697    array size at least.  It's necessary to write '\x00'==0 to get something
3698    that's true only with -std.  */
3699 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3700
3701 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3702    inside strings and character constants.  */
3703 #define FOO(x) 'x'
3704 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3705
3706 int test (int i, double x);
3707 struct s1 {int (*f) (int a);};
3708 struct s2 {int (*f) (double a);};
3709 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3710 int argc;
3711 char **argv;
3712 int
3713 main ()
3714 {
3715 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3716   ;
3717   return 0;
3718 }
3719 _ACEOF
3720 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3721         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3722 do
3723   CC="$ac_save_CC $ac_arg"
3724   rm -f conftest.$ac_objext
3725 if { (ac_try="$ac_compile"
3726 case "(($ac_try" in
3727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3728   *) ac_try_echo=$ac_try;;
3729 esac
3730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3731   (eval "$ac_compile") 2>conftest.er1
3732   ac_status=$?
3733   grep -v '^ *+' conftest.er1 >conftest.err
3734   rm -f conftest.er1
3735   cat conftest.err >&5
3736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3737   (exit $ac_status); } &&
3738          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3739   { (case "(($ac_try" in
3740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3741   *) ac_try_echo=$ac_try;;
3742 esac
3743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3744   (eval "$ac_try") 2>&5
3745   ac_status=$?
3746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3747   (exit $ac_status); }; } &&
3748          { ac_try='test -s conftest.$ac_objext'
3749   { (case "(($ac_try" in
3750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3751   *) ac_try_echo=$ac_try;;
3752 esac
3753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3754   (eval "$ac_try") 2>&5
3755   ac_status=$?
3756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3757   (exit $ac_status); }; }; then
3758   ac_cv_prog_cc_c89=$ac_arg
3759 else
3760   echo "$as_me: failed program was:" >&5
3761 sed 's/^/| /' conftest.$ac_ext >&5
3762
3763
3764 fi
3765
3766 rm -f core conftest.err conftest.$ac_objext
3767   test "x$ac_cv_prog_cc_c89" != "xno" && break
3768 done
3769 rm -f conftest.$ac_ext
3770 CC=$ac_save_CC
3771
3772 fi
3773 # AC_CACHE_VAL
3774 case "x$ac_cv_prog_cc_c89" in
3775   x)
3776     { echo "$as_me:$LINENO: result: none needed" >&5
3777 echo "${ECHO_T}none needed" >&6; } ;;
3778   xno)
3779     { echo "$as_me:$LINENO: result: unsupported" >&5
3780 echo "${ECHO_T}unsupported" >&6; } ;;
3781   *)
3782     CC="$CC $ac_cv_prog_cc_c89"
3783     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3784 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3785 esac
3786
3787
3788 ac_ext=c
3789 ac_cpp='$CPP $CPPFLAGS'
3790 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3791 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3792 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3793
3794 depcc="$CC"   am_compiler_list=
3795
3796 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3797 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3798 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3799   echo $ECHO_N "(cached) $ECHO_C" >&6
3800 else
3801   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3802   # We make a subdir and do the tests there.  Otherwise we can end up
3803   # making bogus files that we don't know about and never remove.  For
3804   # instance it was reported that on HP-UX the gcc test will end up
3805   # making a dummy file named `D' -- because `-MD' means `put the output
3806   # in D'.
3807   mkdir conftest.dir
3808   # Copy depcomp to subdir because otherwise we won't find it if we're
3809   # using a relative directory.
3810   cp "$am_depcomp" conftest.dir
3811   cd conftest.dir
3812   # We will build objects and dependencies in a subdirectory because
3813   # it helps to detect inapplicable dependency modes.  For instance
3814   # both Tru64's cc and ICC support -MD to output dependencies as a
3815   # side effect of compilation, but ICC will put the dependencies in
3816   # the current directory while Tru64 will put them in the object
3817   # directory.
3818   mkdir sub
3819
3820   am_cv_CC_dependencies_compiler_type=none
3821   if test "$am_compiler_list" = ""; then
3822      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3823   fi
3824   for depmode in $am_compiler_list; do
3825     # Setup a source with many dependencies, because some compilers
3826     # like to wrap large dependency lists on column 80 (with \), and
3827     # we should not choose a depcomp mode which is confused by this.
3828     #
3829     # We need to recreate these files for each test, as the compiler may
3830     # overwrite some of them when testing with obscure command lines.
3831     # This happens at least with the AIX C compiler.
3832     : > sub/conftest.c
3833     for i in 1 2 3 4 5 6; do
3834       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3835       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3836       # Solaris 8's {/usr,}/bin/sh.
3837       touch sub/conftst$i.h
3838     done
3839     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3840
3841     case $depmode in
3842     nosideeffect)
3843       # after this tag, mechanisms are not by side-effect, so they'll
3844       # only be used when explicitly requested
3845       if test "x$enable_dependency_tracking" = xyes; then
3846         continue
3847       else
3848         break
3849       fi
3850       ;;
3851     none) break ;;
3852     esac
3853     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3854     # mode.  It turns out that the SunPro C++ compiler does not properly
3855     # handle `-M -o', and we need to detect this.
3856     if depmode=$depmode \
3857        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3858        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3859        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3860          >/dev/null 2>conftest.err &&
3861        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3862        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3863        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3864       # icc doesn't choke on unknown options, it will just issue warnings
3865       # or remarks (even with -Werror).  So we grep stderr for any message
3866       # that says an option was ignored or not supported.
3867       # When given -MP, icc 7.0 and 7.1 complain thusly:
3868       #   icc: Command line warning: ignoring option '-M'; no argument required
3869       # The diagnosis changed in icc 8.0:
3870       #   icc: Command line remark: option '-MP' not supported
3871       if (grep 'ignoring option' conftest.err ||
3872           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3873         am_cv_CC_dependencies_compiler_type=$depmode
3874         break
3875       fi
3876     fi
3877   done
3878
3879   cd ..
3880   rm -rf conftest.dir
3881 else
3882   am_cv_CC_dependencies_compiler_type=none
3883 fi
3884
3885 fi
3886 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3887 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3888 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3889
3890
3891
3892 if
3893   test "x$enable_dependency_tracking" != xno \
3894   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3895   am__fastdepCC_TRUE=
3896   am__fastdepCC_FALSE='#'
3897 else
3898   am__fastdepCC_TRUE='#'
3899   am__fastdepCC_FALSE=
3900 fi
3901
3902
3903
3904
3905   TCPW_MSG="no"
3906
3907 # Check whether --with-tcp-wrappers was given.
3908 if test "${with_tcp_wrappers+set}" = set; then
3909   withval=$with_tcp_wrappers;
3910         if test "x$withval" != "xno" ; then
3911             saved_LIBS="$LIBS"
3912             saved_LDFLAGS="$LDFLAGS"
3913             saved_CPPFLAGS="$CPPFLAGS"
3914             if test -n "${withval}" -a "${withval}" != "yes"; then
3915                 if test -d "${withval}/lib"; then
3916                     if test -n "${need_dash_r}"; then
3917                         LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
3918                     else
3919                         LDFLAGS="-L${withval}/lib ${LDFLAGS}"
3920                     fi
3921                 else
3922                     if test -n "${need_dash_r}"; then
3923                         LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
3924                     else
3925                         LDFLAGS="-L${withval} ${LDFLAGS}"
3926                     fi
3927                 fi
3928                 if test -d "${withval}/include"; then
3929                     CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
3930                 else
3931                     CPPFLAGS="-I${withval} ${CPPFLAGS}"
3932                 fi
3933             fi
3934             LIBWRAP="-lwrap"
3935             LIBS="$LIBWRAP $LIBS"
3936             { echo "$as_me:$LINENO: checking for libwrap" >&5
3937 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
3938             cat >conftest.$ac_ext <<_ACEOF
3939 /* confdefs.h.  */
3940 _ACEOF
3941 cat confdefs.h >>conftest.$ac_ext
3942 cat >>conftest.$ac_ext <<_ACEOF
3943 /* end confdefs.h.  */
3944
3945                 #include <tcpd.h>
3946                 int deny_severity = 0, allow_severity = 0;
3947
3948 int
3949 main ()
3950 {
3951 hosts_access(0);
3952   ;
3953   return 0;
3954 }
3955 _ACEOF
3956 rm -f conftest.$ac_objext conftest$ac_exeext
3957 if { (ac_try="$ac_link"
3958 case "(($ac_try" in
3959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3960   *) ac_try_echo=$ac_try;;
3961 esac
3962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3963   (eval "$ac_link") 2>conftest.er1
3964   ac_status=$?
3965   grep -v '^ *+' conftest.er1 >conftest.err
3966   rm -f conftest.er1
3967   cat conftest.err >&5
3968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3969   (exit $ac_status); } &&
3970          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3971   { (case "(($ac_try" in
3972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3973   *) ac_try_echo=$ac_try;;
3974 esac
3975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3976   (eval "$ac_try") 2>&5
3977   ac_status=$?
3978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3979   (exit $ac_status); }; } &&
3980          { ac_try='test -s conftest$ac_exeext'
3981   { (case "(($ac_try" in
3982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3983   *) ac_try_echo=$ac_try;;
3984 esac
3985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3986   (eval "$ac_try") 2>&5
3987   ac_status=$?
3988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3989   (exit $ac_status); }; }; then
3990
3991                 { echo "$as_me:$LINENO: result: yes" >&5
3992 echo "${ECHO_T}yes" >&6; }
3993
3994
3995 cat >>confdefs.h <<\_ACEOF
3996 #define LIBWRAP 1
3997 _ACEOF
3998
3999
4000 cat >>confdefs.h <<\_ACEOF
4001 #define HAVE_LIBWRAP 1
4002 _ACEOF
4003
4004
4005 cat >>confdefs.h <<\_ACEOF
4006 #define HAVE_TCP_WRAPPER 1
4007 _ACEOF
4008
4009                 TCPW_MSG="yes"
4010
4011 else
4012   echo "$as_me: failed program was:" >&5
4013 sed 's/^/| /' conftest.$ac_ext >&5
4014
4015
4016                 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
4017 echo "$as_me: error: *** libwrap missing" >&2;}
4018    { (exit 1); exit 1; }; }
4019
4020
4021 fi
4022
4023 rm -f core conftest.err conftest.$ac_objext \
4024       conftest$ac_exeext conftest.$ac_ext
4025             LIBS="$saved_LIBS"
4026         fi
4027
4028
4029 fi
4030
4031
4032
4033
4034
4035
4036
4037 ac_config_headers="$ac_config_headers support/include/config.h"
4038
4039
4040 # Checks for programs.
4041 ac_ext=cpp
4042 ac_cpp='$CXXCPP $CPPFLAGS'
4043 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4044 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4045 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4046 if test -z "$CXX"; then
4047   if test -n "$CCC"; then
4048     CXX=$CCC
4049   else
4050     if test -n "$ac_tool_prefix"; then
4051   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4052   do
4053     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4054 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4055 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4056 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4057 if test "${ac_cv_prog_CXX+set}" = set; then
4058   echo $ECHO_N "(cached) $ECHO_C" >&6
4059 else
4060   if test -n "$CXX"; then
4061   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4062 else
4063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4064 for as_dir in $PATH
4065 do
4066   IFS=$as_save_IFS
4067   test -z "$as_dir" && as_dir=.
4068   for ac_exec_ext in '' $ac_executable_extensions; do
4069   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4070     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4071     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4072     break 2
4073   fi
4074 done
4075 done
4076 IFS=$as_save_IFS
4077
4078 fi
4079 fi
4080 CXX=$ac_cv_prog_CXX
4081 if test -n "$CXX"; then
4082   { echo "$as_me:$LINENO: result: $CXX" >&5
4083 echo "${ECHO_T}$CXX" >&6; }
4084 else
4085   { echo "$as_me:$LINENO: result: no" >&5
4086 echo "${ECHO_T}no" >&6; }
4087 fi
4088
4089
4090     test -n "$CXX" && break
4091   done
4092 fi
4093 if test -z "$CXX"; then
4094   ac_ct_CXX=$CXX
4095   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4096 do
4097   # Extract the first word of "$ac_prog", so it can be a program name with args.
4098 set dummy $ac_prog; ac_word=$2
4099 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4100 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4101 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4102   echo $ECHO_N "(cached) $ECHO_C" >&6
4103 else
4104   if test -n "$ac_ct_CXX"; then
4105   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4106 else
4107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4108 for as_dir in $PATH
4109 do
4110   IFS=$as_save_IFS
4111   test -z "$as_dir" && as_dir=.
4112   for ac_exec_ext in '' $ac_executable_extensions; do
4113   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4114     ac_cv_prog_ac_ct_CXX="$ac_prog"
4115     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4116     break 2
4117   fi
4118 done
4119 done
4120 IFS=$as_save_IFS
4121
4122 fi
4123 fi
4124 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4125 if test -n "$ac_ct_CXX"; then
4126   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4127 echo "${ECHO_T}$ac_ct_CXX" >&6; }
4128 else
4129   { echo "$as_me:$LINENO: result: no" >&5
4130 echo "${ECHO_T}no" >&6; }
4131 fi
4132
4133
4134   test -n "$ac_ct_CXX" && break
4135 done
4136
4137   if test "x$ac_ct_CXX" = x; then
4138     CXX="g++"
4139   else
4140     case $cross_compiling:$ac_tool_warned in
4141 yes:)
4142 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4143 whose name does not start with the host triplet.  If you think this
4144 configuration is useful to you, please write to autoconf@gnu.org." >&5
4145 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4146 whose name does not start with the host triplet.  If you think this
4147 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4148 ac_tool_warned=yes ;;
4149 esac
4150     CXX=$ac_ct_CXX
4151   fi
4152 fi
4153
4154   fi
4155 fi
4156 # Provide some information about the compiler.
4157 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4158 ac_compiler=`set X $ac_compile; echo $2`
4159 { (ac_try="$ac_compiler --version >&5"
4160 case "(($ac_try" in
4161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4162   *) ac_try_echo=$ac_try;;
4163 esac
4164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4165   (eval "$ac_compiler --version >&5") 2>&5
4166   ac_status=$?
4167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4168   (exit $ac_status); }
4169 { (ac_try="$ac_compiler -v >&5"
4170 case "(($ac_try" in
4171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4172   *) ac_try_echo=$ac_try;;
4173 esac
4174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4175   (eval "$ac_compiler -v >&5") 2>&5
4176   ac_status=$?
4177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4178   (exit $ac_status); }
4179 { (ac_try="$ac_compiler -V >&5"
4180 case "(($ac_try" in
4181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4182   *) ac_try_echo=$ac_try;;
4183 esac
4184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4185   (eval "$ac_compiler -V >&5") 2>&5
4186   ac_status=$?
4187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4188   (exit $ac_status); }
4189
4190 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4191 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
4192 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4193   echo $ECHO_N "(cached) $ECHO_C" >&6
4194 else
4195   cat >conftest.$ac_ext <<_ACEOF
4196 /* confdefs.h.  */
4197 _ACEOF
4198 cat confdefs.h >>conftest.$ac_ext
4199 cat >>conftest.$ac_ext <<_ACEOF
4200 /* end confdefs.h.  */
4201
4202 int
4203 main ()
4204 {
4205 #ifndef __GNUC__
4206        choke me
4207 #endif
4208
4209   ;
4210   return 0;
4211 }
4212 _ACEOF
4213 rm -f conftest.$ac_objext
4214 if { (ac_try="$ac_compile"
4215 case "(($ac_try" in
4216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4217   *) ac_try_echo=$ac_try;;
4218 esac
4219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4220   (eval "$ac_compile") 2>conftest.er1
4221   ac_status=$?
4222   grep -v '^ *+' conftest.er1 >conftest.err
4223   rm -f conftest.er1
4224   cat conftest.err >&5
4225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4226   (exit $ac_status); } &&
4227          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4228   { (case "(($ac_try" in
4229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4230   *) ac_try_echo=$ac_try;;
4231 esac
4232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4233   (eval "$ac_try") 2>&5
4234   ac_status=$?
4235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4236   (exit $ac_status); }; } &&
4237          { ac_try='test -s conftest.$ac_objext'
4238   { (case "(($ac_try" in
4239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4240   *) ac_try_echo=$ac_try;;
4241 esac
4242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4243   (eval "$ac_try") 2>&5
4244   ac_status=$?
4245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4246   (exit $ac_status); }; }; then
4247   ac_compiler_gnu=yes
4248 else
4249   echo "$as_me: failed program was:" >&5
4250 sed 's/^/| /' conftest.$ac_ext >&5
4251
4252         ac_compiler_gnu=no
4253 fi
4254
4255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4256 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4257
4258 fi
4259 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4260 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
4261 GXX=`test $ac_compiler_gnu = yes && echo yes`
4262 ac_test_CXXFLAGS=${CXXFLAGS+set}
4263 ac_save_CXXFLAGS=$CXXFLAGS
4264 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4265 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
4266 if test "${ac_cv_prog_cxx_g+set}" = set; then
4267   echo $ECHO_N "(cached) $ECHO_C" >&6
4268 else
4269   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4270    ac_cxx_werror_flag=yes
4271    ac_cv_prog_cxx_g=no
4272    CXXFLAGS="-g"
4273    cat >conftest.$ac_ext <<_ACEOF
4274 /* confdefs.h.  */
4275 _ACEOF
4276 cat confdefs.h >>conftest.$ac_ext
4277 cat >>conftest.$ac_ext <<_ACEOF
4278 /* end confdefs.h.  */
4279
4280 int
4281 main ()
4282 {
4283
4284   ;
4285   return 0;
4286 }
4287 _ACEOF
4288 rm -f conftest.$ac_objext
4289 if { (ac_try="$ac_compile"
4290 case "(($ac_try" in
4291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4292   *) ac_try_echo=$ac_try;;
4293 esac
4294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4295   (eval "$ac_compile") 2>conftest.er1
4296   ac_status=$?
4297   grep -v '^ *+' conftest.er1 >conftest.err
4298   rm -f conftest.er1
4299   cat conftest.err >&5
4300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4301   (exit $ac_status); } &&
4302          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4303   { (case "(($ac_try" in
4304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4305   *) ac_try_echo=$ac_try;;
4306 esac
4307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4308   (eval "$ac_try") 2>&5
4309   ac_status=$?
4310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4311   (exit $ac_status); }; } &&
4312          { ac_try='test -s conftest.$ac_objext'
4313   { (case "(($ac_try" in
4314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4315   *) ac_try_echo=$ac_try;;
4316 esac
4317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4318   (eval "$ac_try") 2>&5
4319   ac_status=$?
4320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4321   (exit $ac_status); }; }; then
4322   ac_cv_prog_cxx_g=yes
4323 else
4324   echo "$as_me: failed program was:" >&5
4325 sed 's/^/| /' conftest.$ac_ext >&5
4326
4327         CXXFLAGS=""
4328       cat >conftest.$ac_ext <<_ACEOF
4329 /* confdefs.h.  */
4330 _ACEOF
4331 cat confdefs.h >>conftest.$ac_ext
4332 cat >>conftest.$ac_ext <<_ACEOF
4333 /* end confdefs.h.  */
4334
4335 int
4336 main ()
4337 {
4338
4339   ;
4340   return 0;
4341 }
4342 _ACEOF
4343 rm -f conftest.$ac_objext
4344 if { (ac_try="$ac_compile"
4345 case "(($ac_try" in
4346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4347   *) ac_try_echo=$ac_try;;
4348 esac
4349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4350   (eval "$ac_compile") 2>conftest.er1
4351   ac_status=$?
4352   grep -v '^ *+' conftest.er1 >conftest.err
4353   rm -f conftest.er1
4354   cat conftest.err >&5
4355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4356   (exit $ac_status); } &&
4357          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4358   { (case "(($ac_try" in
4359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4360   *) ac_try_echo=$ac_try;;
4361 esac
4362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4363   (eval "$ac_try") 2>&5
4364   ac_status=$?
4365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4366   (exit $ac_status); }; } &&
4367          { ac_try='test -s conftest.$ac_objext'
4368   { (case "(($ac_try" in
4369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4370   *) ac_try_echo=$ac_try;;
4371 esac
4372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4373   (eval "$ac_try") 2>&5
4374   ac_status=$?
4375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4376   (exit $ac_status); }; }; then
4377   :
4378 else
4379   echo "$as_me: failed program was:" >&5
4380 sed 's/^/| /' conftest.$ac_ext >&5
4381
4382         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4383          CXXFLAGS="-g"
4384          cat >conftest.$ac_ext <<_ACEOF
4385 /* confdefs.h.  */
4386 _ACEOF
4387 cat confdefs.h >>conftest.$ac_ext
4388 cat >>conftest.$ac_ext <<_ACEOF
4389 /* end confdefs.h.  */
4390
4391 int
4392 main ()
4393 {
4394
4395   ;
4396   return 0;
4397 }
4398 _ACEOF
4399 rm -f conftest.$ac_objext
4400 if { (ac_try="$ac_compile"
4401 case "(($ac_try" in
4402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4403   *) ac_try_echo=$ac_try;;
4404 esac
4405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4406   (eval "$ac_compile") 2>conftest.er1
4407   ac_status=$?
4408   grep -v '^ *+' conftest.er1 >conftest.err
4409   rm -f conftest.er1
4410   cat conftest.err >&5
4411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4412   (exit $ac_status); } &&
4413          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4414   { (case "(($ac_try" in
4415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4416   *) ac_try_echo=$ac_try;;
4417 esac
4418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4419   (eval "$ac_try") 2>&5
4420   ac_status=$?
4421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4422   (exit $ac_status); }; } &&
4423          { ac_try='test -s conftest.$ac_objext'
4424   { (case "(($ac_try" in
4425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4426   *) ac_try_echo=$ac_try;;
4427 esac
4428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4429   (eval "$ac_try") 2>&5
4430   ac_status=$?
4431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4432   (exit $ac_status); }; }; then
4433   ac_cv_prog_cxx_g=yes
4434 else
4435   echo "$as_me: failed program was:" >&5
4436 sed 's/^/| /' conftest.$ac_ext >&5
4437
4438
4439 fi
4440
4441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4442 fi
4443
4444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4445 fi
4446
4447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4448    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4449 fi
4450 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4451 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4452 if test "$ac_test_CXXFLAGS" = set; then
4453   CXXFLAGS=$ac_save_CXXFLAGS
4454 elif test $ac_cv_prog_cxx_g = yes; then
4455   if test "$GXX" = yes; then
4456     CXXFLAGS="-g -O2"
4457   else
4458     CXXFLAGS="-g"
4459   fi
4460 else
4461   if test "$GXX" = yes; then
4462     CXXFLAGS="-O2"
4463   else
4464     CXXFLAGS=
4465   fi
4466 fi
4467 ac_ext=c
4468 ac_cpp='$CPP $CPPFLAGS'
4469 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4470 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4471 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4472
4473 depcc="$CXX"  am_compiler_list=
4474
4475 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4476 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4477 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4478   echo $ECHO_N "(cached) $ECHO_C" >&6
4479 else
4480   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4481   # We make a subdir and do the tests there.  Otherwise we can end up
4482   # making bogus files that we don't know about and never remove.  For
4483   # instance it was reported that on HP-UX the gcc test will end up
4484   # making a dummy file named `D' -- because `-MD' means `put the output
4485   # in D'.
4486   mkdir conftest.dir
4487   # Copy depcomp to subdir because otherwise we won't find it if we're
4488   # using a relative directory.
4489   cp "$am_depcomp" conftest.dir
4490   cd conftest.dir
4491   # We will build objects and dependencies in a subdirectory because
4492   # it helps to detect inapplicable dependency modes.  For instance
4493   # both Tru64's cc and ICC support -MD to output dependencies as a
4494   # side effect of compilation, but ICC will put the dependencies in
4495   # the current directory while Tru64 will put them in the object
4496   # directory.
4497   mkdir sub
4498
4499   am_cv_CXX_dependencies_compiler_type=none
4500   if test "$am_compiler_list" = ""; then
4501      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4502   fi
4503   for depmode in $am_compiler_list; do
4504     # Setup a source with many dependencies, because some compilers
4505     # like to wrap large dependency lists on column 80 (with \), and
4506     # we should not choose a depcomp mode which is confused by this.
4507     #
4508     # We need to recreate these files for each test, as the compiler may
4509     # overwrite some of them when testing with obscure command lines.
4510     # This happens at least with the AIX C compiler.
4511     : > sub/conftest.c
4512     for i in 1 2 3 4 5 6; do
4513       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4514       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4515       # Solaris 8's {/usr,}/bin/sh.
4516       touch sub/conftst$i.h
4517     done
4518     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4519
4520     case $depmode in
4521     nosideeffect)
4522       # after this tag, mechanisms are not by side-effect, so they'll
4523       # only be used when explicitly requested
4524       if test "x$enable_dependency_tracking" = xyes; then
4525         continue
4526       else
4527         break
4528       fi
4529       ;;
4530     none) break ;;
4531     esac
4532     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4533     # mode.  It turns out that the SunPro C++ compiler does not properly
4534     # handle `-M -o', and we need to detect this.
4535     if depmode=$depmode \
4536        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4537        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4538        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4539          >/dev/null 2>conftest.err &&
4540        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4541        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4542        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4543       # icc doesn't choke on unknown options, it will just issue warnings
4544       # or remarks (even with -Werror).  So we grep stderr for any message
4545       # that says an option was ignored or not supported.
4546       # When given -MP, icc 7.0 and 7.1 complain thusly:
4547       #   icc: Command line warning: ignoring option '-M'; no argument required
4548       # The diagnosis changed in icc 8.0:
4549       #   icc: Command line remark: option '-MP' not supported
4550       if (grep 'ignoring option' conftest.err ||
4551           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4552         am_cv_CXX_dependencies_compiler_type=$depmode
4553         break
4554       fi
4555     fi
4556   done
4557
4558   cd ..
4559   rm -rf conftest.dir
4560 else
4561   am_cv_CXX_dependencies_compiler_type=none
4562 fi
4563
4564 fi
4565 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4566 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
4567 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4568
4569
4570
4571 if
4572   test "x$enable_dependency_tracking" != xno \
4573   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4574   am__fastdepCXX_TRUE=
4575   am__fastdepCXX_FALSE='#'
4576 else
4577   am__fastdepCXX_TRUE='#'
4578   am__fastdepCXX_FALSE=
4579 fi
4580
4581
4582 ac_ext=c
4583 ac_cpp='$CPP $CPPFLAGS'
4584 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4585 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4586 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4587 if test -n "$ac_tool_prefix"; then
4588   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4589 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4590 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4591 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4592 if test "${ac_cv_prog_CC+set}" = set; then
4593   echo $ECHO_N "(cached) $ECHO_C" >&6
4594 else
4595   if test -n "$CC"; then
4596   ac_cv_prog_CC="$CC" # Let the user override the test.
4597 else
4598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4599 for as_dir in $PATH
4600 do
4601   IFS=$as_save_IFS
4602   test -z "$as_dir" && as_dir=.
4603   for ac_exec_ext in '' $ac_executable_extensions; do
4604   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4605     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4606     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4607     break 2
4608   fi
4609 done
4610 done
4611 IFS=$as_save_IFS
4612
4613 fi
4614 fi
4615 CC=$ac_cv_prog_CC
4616 if test -n "$CC"; then
4617   { echo "$as_me:$LINENO: result: $CC" >&5
4618 echo "${ECHO_T}$CC" >&6; }
4619 else
4620   { echo "$as_me:$LINENO: result: no" >&5
4621 echo "${ECHO_T}no" >&6; }
4622 fi
4623
4624
4625 fi
4626 if test -z "$ac_cv_prog_CC"; then
4627   ac_ct_CC=$CC
4628   # Extract the first word of "gcc", so it can be a program name with args.
4629 set dummy gcc; ac_word=$2
4630 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4631 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4632 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4633   echo $ECHO_N "(cached) $ECHO_C" >&6
4634 else
4635   if test -n "$ac_ct_CC"; then
4636   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4637 else
4638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4639 for as_dir in $PATH
4640 do
4641   IFS=$as_save_IFS
4642   test -z "$as_dir" && as_dir=.
4643   for ac_exec_ext in '' $ac_executable_extensions; do
4644   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4645     ac_cv_prog_ac_ct_CC="gcc"
4646     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4647     break 2
4648   fi
4649 done
4650 done
4651 IFS=$as_save_IFS
4652
4653 fi
4654 fi
4655 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4656 if test -n "$ac_ct_CC"; then
4657   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4658 echo "${ECHO_T}$ac_ct_CC" >&6; }
4659 else
4660   { echo "$as_me:$LINENO: result: no" >&5
4661 echo "${ECHO_T}no" >&6; }
4662 fi
4663
4664   if test "x$ac_ct_CC" = x; then
4665     CC=""
4666   else
4667     case $cross_compiling:$ac_tool_warned in
4668 yes:)
4669 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4670 whose name does not start with the host triplet.  If you think this
4671 configuration is useful to you, please write to autoconf@gnu.org." >&5
4672 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4673 whose name does not start with the host triplet.  If you think this
4674 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4675 ac_tool_warned=yes ;;
4676 esac
4677     CC=$ac_ct_CC
4678   fi
4679 else
4680   CC="$ac_cv_prog_CC"
4681 fi
4682
4683 if test -z "$CC"; then
4684           if test -n "$ac_tool_prefix"; then
4685     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4686 set dummy ${ac_tool_prefix}cc; ac_word=$2
4687 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4688 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4689 if test "${ac_cv_prog_CC+set}" = set; then
4690   echo $ECHO_N "(cached) $ECHO_C" >&6
4691 else
4692   if test -n "$CC"; then
4693   ac_cv_prog_CC="$CC" # Let the user override the test.
4694 else
4695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4696 for as_dir in $PATH
4697 do
4698   IFS=$as_save_IFS
4699   test -z "$as_dir" && as_dir=.
4700   for ac_exec_ext in '' $ac_executable_extensions; do
4701   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4702     ac_cv_prog_CC="${ac_tool_prefix}cc"
4703     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4704     break 2
4705   fi
4706 done
4707 done
4708 IFS=$as_save_IFS
4709
4710 fi
4711 fi
4712 CC=$ac_cv_prog_CC
4713 if test -n "$CC"; then
4714   { echo "$as_me:$LINENO: result: $CC" >&5
4715 echo "${ECHO_T}$CC" >&6; }
4716 else
4717   { echo "$as_me:$LINENO: result: no" >&5
4718 echo "${ECHO_T}no" >&6; }
4719 fi
4720
4721
4722   fi
4723 fi
4724 if test -z "$CC"; then
4725   # Extract the first word of "cc", so it can be a program name with args.
4726 set dummy cc; ac_word=$2
4727 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4728 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4729 if test "${ac_cv_prog_CC+set}" = set; then
4730   echo $ECHO_N "(cached) $ECHO_C" >&6
4731 else
4732   if test -n "$CC"; then
4733   ac_cv_prog_CC="$CC" # Let the user override the test.
4734 else
4735   ac_prog_rejected=no
4736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4737 for as_dir in $PATH
4738 do
4739   IFS=$as_save_IFS
4740   test -z "$as_dir" && as_dir=.
4741   for ac_exec_ext in '' $ac_executable_extensions; do
4742   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4743     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4744        ac_prog_rejected=yes
4745        continue
4746      fi
4747     ac_cv_prog_CC="cc"
4748     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4749     break 2
4750   fi
4751 done
4752 done
4753 IFS=$as_save_IFS
4754
4755 if test $ac_prog_rejected = yes; then
4756   # We found a bogon in the path, so make sure we never use it.
4757   set dummy $ac_cv_prog_CC
4758   shift
4759   if test $# != 0; then
4760     # We chose a different compiler from the bogus one.
4761     # However, it has the same basename, so the bogon will be chosen
4762     # first if we set CC to just the basename; use the full file name.
4763     shift
4764     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4765   fi
4766 fi
4767 fi
4768 fi
4769 CC=$ac_cv_prog_CC
4770 if test -n "$CC"; then
4771   { echo "$as_me:$LINENO: result: $CC" >&5
4772 echo "${ECHO_T}$CC" >&6; }
4773 else
4774   { echo "$as_me:$LINENO: result: no" >&5
4775 echo "${ECHO_T}no" >&6; }
4776 fi
4777
4778
4779 fi
4780 if test -z "$CC"; then
4781   if test -n "$ac_tool_prefix"; then
4782   for ac_prog in cl.exe
4783   do
4784     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4785 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4786 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4787 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4788 if test "${ac_cv_prog_CC+set}" = set; then
4789   echo $ECHO_N "(cached) $ECHO_C" >&6
4790 else
4791   if test -n "$CC"; then
4792   ac_cv_prog_CC="$CC" # Let the user override the test.
4793 else
4794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4795 for as_dir in $PATH
4796 do
4797   IFS=$as_save_IFS
4798   test -z "$as_dir" && as_dir=.
4799   for ac_exec_ext in '' $ac_executable_extensions; do
4800   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4801     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4802     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4803     break 2
4804   fi
4805 done
4806 done
4807 IFS=$as_save_IFS
4808
4809 fi
4810 fi
4811 CC=$ac_cv_prog_CC
4812 if test -n "$CC"; then
4813   { echo "$as_me:$LINENO: result: $CC" >&5
4814 echo "${ECHO_T}$CC" >&6; }
4815 else
4816   { echo "$as_me:$LINENO: result: no" >&5
4817 echo "${ECHO_T}no" >&6; }
4818 fi
4819
4820
4821     test -n "$CC" && break
4822   done
4823 fi
4824 if test -z "$CC"; then
4825   ac_ct_CC=$CC
4826   for ac_prog in cl.exe
4827 do
4828   # Extract the first word of "$ac_prog", so it can be a program name with args.
4829 set dummy $ac_prog; ac_word=$2
4830 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4832 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4833   echo $ECHO_N "(cached) $ECHO_C" >&6
4834 else
4835   if test -n "$ac_ct_CC"; then
4836   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4837 else
4838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4839 for as_dir in $PATH
4840 do
4841   IFS=$as_save_IFS
4842   test -z "$as_dir" && as_dir=.
4843   for ac_exec_ext in '' $ac_executable_extensions; do
4844   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4845     ac_cv_prog_ac_ct_CC="$ac_prog"
4846     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4847     break 2
4848   fi
4849 done
4850 done
4851 IFS=$as_save_IFS
4852
4853 fi
4854 fi
4855 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4856 if test -n "$ac_ct_CC"; then
4857   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4858 echo "${ECHO_T}$ac_ct_CC" >&6; }
4859 else
4860   { echo "$as_me:$LINENO: result: no" >&5
4861 echo "${ECHO_T}no" >&6; }
4862 fi
4863
4864
4865   test -n "$ac_ct_CC" && break
4866 done
4867
4868   if test "x$ac_ct_CC" = x; then
4869     CC=""
4870   else
4871     case $cross_compiling:$ac_tool_warned in
4872 yes:)
4873 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4874 whose name does not start with the host triplet.  If you think this
4875 configuration is useful to you, please write to autoconf@gnu.org." >&5
4876 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4877 whose name does not start with the host triplet.  If you think this
4878 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4879 ac_tool_warned=yes ;;
4880 esac
4881     CC=$ac_ct_CC
4882   fi
4883 fi
4884
4885 fi
4886
4887
4888 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4889 See \`config.log' for more details." >&5
4890 echo "$as_me: error: no acceptable C compiler found in \$PATH
4891 See \`config.log' for more details." >&2;}
4892    { (exit 1); exit 1; }; }
4893
4894 # Provide some information about the compiler.
4895 echo "$as_me:$LINENO: checking for C compiler version" >&5
4896 ac_compiler=`set X $ac_compile; echo $2`
4897 { (ac_try="$ac_compiler --version >&5"
4898 case "(($ac_try" in
4899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4900   *) ac_try_echo=$ac_try;;
4901 esac
4902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4903   (eval "$ac_compiler --version >&5") 2>&5
4904   ac_status=$?
4905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4906   (exit $ac_status); }
4907 { (ac_try="$ac_compiler -v >&5"
4908 case "(($ac_try" in
4909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4910   *) ac_try_echo=$ac_try;;
4911 esac
4912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4913   (eval "$ac_compiler -v >&5") 2>&5
4914   ac_status=$?
4915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4916   (exit $ac_status); }
4917 { (ac_try="$ac_compiler -V >&5"
4918 case "(($ac_try" in
4919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4920   *) ac_try_echo=$ac_try;;
4921 esac
4922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4923   (eval "$ac_compiler -V >&5") 2>&5
4924   ac_status=$?
4925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4926   (exit $ac_status); }
4927
4928 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4929 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4930 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4931   echo $ECHO_N "(cached) $ECHO_C" >&6
4932 else
4933   cat >conftest.$ac_ext <<_ACEOF
4934 /* confdefs.h.  */
4935 _ACEOF
4936 cat confdefs.h >>conftest.$ac_ext
4937 cat >>conftest.$ac_ext <<_ACEOF
4938 /* end confdefs.h.  */
4939
4940 int
4941 main ()
4942 {
4943 #ifndef __GNUC__
4944        choke me
4945 #endif
4946
4947   ;
4948   return 0;
4949 }
4950 _ACEOF
4951 rm -f conftest.$ac_objext
4952 if { (ac_try="$ac_compile"
4953 case "(($ac_try" in
4954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4955   *) ac_try_echo=$ac_try;;
4956 esac
4957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4958   (eval "$ac_compile") 2>conftest.er1
4959   ac_status=$?
4960   grep -v '^ *+' conftest.er1 >conftest.err
4961   rm -f conftest.er1
4962   cat conftest.err >&5
4963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4964   (exit $ac_status); } &&
4965          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4966   { (case "(($ac_try" in
4967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4968   *) ac_try_echo=$ac_try;;
4969 esac
4970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4971   (eval "$ac_try") 2>&5
4972   ac_status=$?
4973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4974   (exit $ac_status); }; } &&
4975          { ac_try='test -s conftest.$ac_objext'
4976   { (case "(($ac_try" in
4977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4978   *) ac_try_echo=$ac_try;;
4979 esac
4980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4981   (eval "$ac_try") 2>&5
4982   ac_status=$?
4983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4984   (exit $ac_status); }; }; then
4985   ac_compiler_gnu=yes
4986 else
4987   echo "$as_me: failed program was:" >&5
4988 sed 's/^/| /' conftest.$ac_ext >&5
4989
4990         ac_compiler_gnu=no
4991 fi
4992
4993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4994 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4995
4996 fi
4997 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4998 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4999 GCC=`test $ac_compiler_gnu = yes && echo yes`
5000 ac_test_CFLAGS=${CFLAGS+set}
5001 ac_save_CFLAGS=$CFLAGS
5002 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5003 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5004 if test "${ac_cv_prog_cc_g+set}" = set; then
5005   echo $ECHO_N "(cached) $ECHO_C" >&6
5006 else
5007   ac_save_c_werror_flag=$ac_c_werror_flag
5008    ac_c_werror_flag=yes
5009    ac_cv_prog_cc_g=no
5010    CFLAGS="-g"
5011    cat >conftest.$ac_ext <<_ACEOF
5012 /* confdefs.h.  */
5013 _ACEOF
5014 cat confdefs.h >>conftest.$ac_ext
5015 cat >>conftest.$ac_ext <<_ACEOF
5016 /* end confdefs.h.  */
5017
5018 int
5019 main ()
5020 {
5021
5022   ;
5023   return 0;
5024 }
5025 _ACEOF
5026 rm -f conftest.$ac_objext
5027 if { (ac_try="$ac_compile"
5028 case "(($ac_try" in
5029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5030   *) ac_try_echo=$ac_try;;
5031 esac
5032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5033   (eval "$ac_compile") 2>conftest.er1
5034   ac_status=$?
5035   grep -v '^ *+' conftest.er1 >conftest.err
5036   rm -f conftest.er1
5037   cat conftest.err >&5
5038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5039   (exit $ac_status); } &&
5040          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5041   { (case "(($ac_try" in
5042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5043   *) ac_try_echo=$ac_try;;
5044 esac
5045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5046   (eval "$ac_try") 2>&5
5047   ac_status=$?
5048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5049   (exit $ac_status); }; } &&
5050          { ac_try='test -s conftest.$ac_objext'
5051   { (case "(($ac_try" in
5052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5053   *) ac_try_echo=$ac_try;;
5054 esac
5055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5056   (eval "$ac_try") 2>&5
5057   ac_status=$?
5058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5059   (exit $ac_status); }; }; then
5060   ac_cv_prog_cc_g=yes
5061 else
5062   echo "$as_me: failed program was:" >&5
5063 sed 's/^/| /' conftest.$ac_ext >&5
5064
5065         CFLAGS=""
5066       cat >conftest.$ac_ext <<_ACEOF
5067 /* confdefs.h.  */
5068 _ACEOF
5069 cat confdefs.h >>conftest.$ac_ext
5070 cat >>conftest.$ac_ext <<_ACEOF
5071 /* end confdefs.h.  */
5072
5073 int
5074 main ()
5075 {
5076
5077   ;
5078   return 0;
5079 }
5080 _ACEOF
5081 rm -f conftest.$ac_objext
5082 if { (ac_try="$ac_compile"
5083 case "(($ac_try" in
5084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5085   *) ac_try_echo=$ac_try;;
5086 esac
5087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5088   (eval "$ac_compile") 2>conftest.er1
5089   ac_status=$?
5090   grep -v '^ *+' conftest.er1 >conftest.err
5091   rm -f conftest.er1
5092   cat conftest.err >&5
5093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5094   (exit $ac_status); } &&
5095          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5096   { (case "(($ac_try" in
5097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5098   *) ac_try_echo=$ac_try;;
5099 esac
5100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5101   (eval "$ac_try") 2>&5
5102   ac_status=$?
5103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5104   (exit $ac_status); }; } &&
5105          { ac_try='test -s conftest.$ac_objext'
5106   { (case "(($ac_try" in
5107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5108   *) ac_try_echo=$ac_try;;
5109 esac
5110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5111   (eval "$ac_try") 2>&5
5112   ac_status=$?
5113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5114   (exit $ac_status); }; }; then
5115   :
5116 else
5117   echo "$as_me: failed program was:" >&5
5118 sed 's/^/| /' conftest.$ac_ext >&5
5119
5120         ac_c_werror_flag=$ac_save_c_werror_flag
5121          CFLAGS="-g"
5122          cat >conftest.$ac_ext <<_ACEOF
5123 /* confdefs.h.  */
5124 _ACEOF
5125 cat confdefs.h >>conftest.$ac_ext
5126 cat >>conftest.$ac_ext <<_ACEOF
5127 /* end confdefs.h.  */
5128
5129 int
5130 main ()
5131 {
5132
5133   ;
5134   return 0;
5135 }
5136 _ACEOF
5137 rm -f conftest.$ac_objext
5138 if { (ac_try="$ac_compile"
5139 case "(($ac_try" in
5140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5141   *) ac_try_echo=$ac_try;;
5142 esac
5143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5144   (eval "$ac_compile") 2>conftest.er1
5145   ac_status=$?
5146   grep -v '^ *+' conftest.er1 >conftest.err
5147   rm -f conftest.er1
5148   cat conftest.err >&5
5149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5150   (exit $ac_status); } &&
5151          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5152   { (case "(($ac_try" in
5153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5154   *) ac_try_echo=$ac_try;;
5155 esac
5156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5157   (eval "$ac_try") 2>&5
5158   ac_status=$?
5159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5160   (exit $ac_status); }; } &&
5161          { ac_try='test -s conftest.$ac_objext'
5162   { (case "(($ac_try" in
5163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5164   *) ac_try_echo=$ac_try;;
5165 esac
5166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5167   (eval "$ac_try") 2>&5
5168   ac_status=$?
5169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5170   (exit $ac_status); }; }; then
5171   ac_cv_prog_cc_g=yes
5172 else
5173   echo "$as_me: failed program was:" >&5
5174 sed 's/^/| /' conftest.$ac_ext >&5
5175
5176
5177 fi
5178
5179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5180 fi
5181
5182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5183 fi
5184
5185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5186    ac_c_werror_flag=$ac_save_c_werror_flag
5187 fi
5188 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5189 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5190 if test "$ac_test_CFLAGS" = set; then
5191   CFLAGS=$ac_save_CFLAGS
5192 elif test $ac_cv_prog_cc_g = yes; then
5193   if test "$GCC" = yes; then
5194     CFLAGS="-g -O2"
5195   else
5196     CFLAGS="-g"
5197   fi
5198 else
5199   if test "$GCC" = yes; then
5200     CFLAGS="-O2"
5201   else
5202     CFLAGS=
5203   fi
5204 fi
5205 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5206 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5207 if test "${ac_cv_prog_cc_c89+set}" = set; then
5208   echo $ECHO_N "(cached) $ECHO_C" >&6
5209 else
5210   ac_cv_prog_cc_c89=no
5211 ac_save_CC=$CC
5212 cat >conftest.$ac_ext <<_ACEOF
5213 /* confdefs.h.  */
5214 _ACEOF
5215 cat confdefs.h >>conftest.$ac_ext
5216 cat >>conftest.$ac_ext <<_ACEOF
5217 /* end confdefs.h.  */
5218 #include <stdarg.h>
5219 #include <stdio.h>
5220 #include <sys/types.h>
5221 #include <sys/stat.h>
5222 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5223 struct buf { int x; };
5224 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5225 static char *e (p, i)
5226      char **p;
5227      int i;
5228 {
5229   return p[i];
5230 }
5231 static char *f (char * (*g) (char **, int), char **p, ...)
5232 {
5233   char *s;
5234   va_list v;
5235   va_start (v,p);
5236   s = g (p, va_arg (v,int));
5237   va_end (v);
5238   return s;
5239 }
5240
5241 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5242    function prototypes and stuff, but not '\xHH' hex character constants.
5243    These don't provoke an error unfortunately, instead are silently treated
5244    as 'x'.  The following induces an error, until -std is added to get
5245    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5246    array size at least.  It's necessary to write '\x00'==0 to get something
5247    that's true only with -std.  */
5248 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5249
5250 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5251    inside strings and character constants.  */
5252 #define FOO(x) 'x'
5253 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5254
5255 int test (int i, double x);
5256 struct s1 {int (*f) (int a);};
5257 struct s2 {int (*f) (double a);};
5258 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5259 int argc;
5260 char **argv;
5261 int
5262 main ()
5263 {
5264 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5265   ;
5266   return 0;
5267 }
5268 _ACEOF
5269 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5270         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5271 do
5272   CC="$ac_save_CC $ac_arg"
5273   rm -f conftest.$ac_objext
5274 if { (ac_try="$ac_compile"
5275 case "(($ac_try" in
5276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5277   *) ac_try_echo=$ac_try;;
5278 esac
5279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5280   (eval "$ac_compile") 2>conftest.er1
5281   ac_status=$?
5282   grep -v '^ *+' conftest.er1 >conftest.err
5283   rm -f conftest.er1
5284   cat conftest.err >&5
5285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5286   (exit $ac_status); } &&
5287          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5288   { (case "(($ac_try" in
5289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5290   *) ac_try_echo=$ac_try;;
5291 esac
5292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5293   (eval "$ac_try") 2>&5
5294   ac_status=$?
5295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5296   (exit $ac_status); }; } &&
5297          { ac_try='test -s conftest.$ac_objext'
5298   { (case "(($ac_try" in
5299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5300   *) ac_try_echo=$ac_try;;
5301 esac
5302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5303   (eval "$ac_try") 2>&5
5304   ac_status=$?
5305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5306   (exit $ac_status); }; }; then
5307   ac_cv_prog_cc_c89=$ac_arg
5308 else
5309   echo "$as_me: failed program was:" >&5
5310 sed 's/^/| /' conftest.$ac_ext >&5
5311
5312
5313 fi
5314
5315 rm -f core conftest.err conftest.$ac_objext
5316   test "x$ac_cv_prog_cc_c89" != "xno" && break
5317 done
5318 rm -f conftest.$ac_ext
5319 CC=$ac_save_CC
5320
5321 fi
5322 # AC_CACHE_VAL
5323 case "x$ac_cv_prog_cc_c89" in
5324   x)
5325     { echo "$as_me:$LINENO: result: none needed" >&5
5326 echo "${ECHO_T}none needed" >&6; } ;;
5327   xno)
5328     { echo "$as_me:$LINENO: result: unsupported" >&5
5329 echo "${ECHO_T}unsupported" >&6; } ;;
5330   *)
5331     CC="$CC $ac_cv_prog_cc_c89"
5332     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5333 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5334 esac
5335
5336
5337 ac_ext=c
5338 ac_cpp='$CPP $CPPFLAGS'
5339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5342
5343 depcc="$CC"   am_compiler_list=
5344
5345 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5346 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5347 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5348   echo $ECHO_N "(cached) $ECHO_C" >&6
5349 else
5350   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5351   # We make a subdir and do the tests there.  Otherwise we can end up
5352   # making bogus files that we don't know about and never remove.  For
5353   # instance it was reported that on HP-UX the gcc test will end up
5354   # making a dummy file named `D' -- because `-MD' means `put the output
5355   # in D'.
5356   mkdir conftest.dir
5357   # Copy depcomp to subdir because otherwise we won't find it if we're
5358   # using a relative directory.
5359   cp "$am_depcomp" conftest.dir
5360   cd conftest.dir
5361   # We will build objects and dependencies in a subdirectory because
5362   # it helps to detect inapplicable dependency modes.  For instance
5363   # both Tru64's cc and ICC support -MD to output dependencies as a
5364   # side effect of compilation, but ICC will put the dependencies in
5365   # the current directory while Tru64 will put them in the object
5366   # directory.
5367   mkdir sub
5368
5369   am_cv_CC_dependencies_compiler_type=none
5370   if test "$am_compiler_list" = ""; then
5371      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5372   fi
5373   for depmode in $am_compiler_list; do
5374     # Setup a source with many dependencies, because some compilers
5375     # like to wrap large dependency lists on column 80 (with \), and
5376     # we should not choose a depcomp mode which is confused by this.
5377     #
5378     # We need to recreate these files for each test, as the compiler may
5379     # overwrite some of them when testing with obscure command lines.
5380     # This happens at least with the AIX C compiler.
5381     : > sub/conftest.c
5382     for i in 1 2 3 4 5 6; do
5383       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5384       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5385       # Solaris 8's {/usr,}/bin/sh.
5386       touch sub/conftst$i.h
5387     done
5388     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5389
5390     case $depmode in
5391     nosideeffect)
5392       # after this tag, mechanisms are not by side-effect, so they'll
5393       # only be used when explicitly requested
5394       if test "x$enable_dependency_tracking" = xyes; then
5395         continue
5396       else
5397         break
5398       fi
5399       ;;
5400     none) break ;;
5401     esac
5402     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5403     # mode.  It turns out that the SunPro C++ compiler does not properly
5404     # handle `-M -o', and we need to detect this.
5405     if depmode=$depmode \
5406        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5407        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5408        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5409          >/dev/null 2>conftest.err &&
5410        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5411        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5412        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5413       # icc doesn't choke on unknown options, it will just issue warnings
5414       # or remarks (even with -Werror).  So we grep stderr for any message
5415       # that says an option was ignored or not supported.
5416       # When given -MP, icc 7.0 and 7.1 complain thusly:
5417       #   icc: Command line warning: ignoring option '-M'; no argument required
5418       # The diagnosis changed in icc 8.0:
5419       #   icc: Command line remark: option '-MP' not supported
5420       if (grep 'ignoring option' conftest.err ||
5421           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5422         am_cv_CC_dependencies_compiler_type=$depmode
5423         break
5424       fi
5425     fi
5426   done
5427
5428   cd ..
5429   rm -rf conftest.dir
5430 else
5431   am_cv_CC_dependencies_compiler_type=none
5432 fi
5433
5434 fi
5435 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5436 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
5437 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5438
5439
5440
5441 if
5442   test "x$enable_dependency_tracking" != xno \
5443   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5444   am__fastdepCC_TRUE=
5445   am__fastdepCC_FALSE='#'
5446 else
5447   am__fastdepCC_TRUE='#'
5448   am__fastdepCC_FALSE=
5449 fi
5450
5451
5452 ac_ext=c
5453 ac_cpp='$CPP $CPPFLAGS'
5454 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5455 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5456 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5457 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5458 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5459 # On Suns, sometimes $CPP names a directory.
5460 if test -n "$CPP" && test -d "$CPP"; then
5461   CPP=
5462 fi
5463 if test -z "$CPP"; then
5464   if test "${ac_cv_prog_CPP+set}" = set; then
5465   echo $ECHO_N "(cached) $ECHO_C" >&6
5466 else
5467       # Double quotes because CPP needs to be expanded
5468     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5469     do
5470       ac_preproc_ok=false
5471 for ac_c_preproc_warn_flag in '' yes
5472 do
5473   # Use a header file that comes with gcc, so configuring glibc
5474   # with a fresh cross-compiler works.
5475   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5476   # <limits.h> exists even on freestanding compilers.
5477   # On the NeXT, cc -E runs the code through the compiler's parser,
5478   # not just through cpp. "Syntax error" is here to catch this case.
5479   cat >conftest.$ac_ext <<_ACEOF
5480 /* confdefs.h.  */
5481 _ACEOF
5482 cat confdefs.h >>conftest.$ac_ext
5483 cat >>conftest.$ac_ext <<_ACEOF
5484 /* end confdefs.h.  */
5485 #ifdef __STDC__
5486 # include <limits.h>
5487 #else
5488 # include <assert.h>
5489 #endif
5490                      Syntax error
5491 _ACEOF
5492 if { (ac_try="$ac_cpp conftest.$ac_ext"
5493 case "(($ac_try" in
5494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5495   *) ac_try_echo=$ac_try;;
5496 esac
5497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5498   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5499   ac_status=$?
5500   grep -v '^ *+' conftest.er1 >conftest.err
5501   rm -f conftest.er1
5502   cat conftest.err >&5
5503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5504   (exit $ac_status); } >/dev/null; then
5505   if test -s conftest.err; then
5506     ac_cpp_err=$ac_c_preproc_warn_flag
5507     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5508   else
5509     ac_cpp_err=
5510   fi
5511 else
5512   ac_cpp_err=yes
5513 fi
5514 if test -z "$ac_cpp_err"; then
5515   :
5516 else
5517   echo "$as_me: failed program was:" >&5
5518 sed 's/^/| /' conftest.$ac_ext >&5
5519
5520   # Broken: fails on valid input.
5521 continue
5522 fi
5523
5524 rm -f conftest.err conftest.$ac_ext
5525
5526   # OK, works on sane cases.  Now check whether nonexistent headers
5527   # can be detected and how.
5528   cat >conftest.$ac_ext <<_ACEOF
5529 /* confdefs.h.  */
5530 _ACEOF
5531 cat confdefs.h >>conftest.$ac_ext
5532 cat >>conftest.$ac_ext <<_ACEOF
5533 /* end confdefs.h.  */
5534 #include <ac_nonexistent.h>
5535 _ACEOF
5536 if { (ac_try="$ac_cpp conftest.$ac_ext"
5537 case "(($ac_try" in
5538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5539   *) ac_try_echo=$ac_try;;
5540 esac
5541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5542   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5543   ac_status=$?
5544   grep -v '^ *+' conftest.er1 >conftest.err
5545   rm -f conftest.er1
5546   cat conftest.err >&5
5547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5548   (exit $ac_status); } >/dev/null; then
5549   if test -s conftest.err; then
5550     ac_cpp_err=$ac_c_preproc_warn_flag
5551     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5552   else
5553     ac_cpp_err=
5554   fi
5555 else
5556   ac_cpp_err=yes
5557 fi
5558 if test -z "$ac_cpp_err"; then
5559   # Broken: success on invalid input.
5560 continue
5561 else
5562   echo "$as_me: failed program was:" >&5
5563 sed 's/^/| /' conftest.$ac_ext >&5
5564
5565   # Passes both tests.
5566 ac_preproc_ok=:
5567 break
5568 fi
5569
5570 rm -f conftest.err conftest.$ac_ext
5571
5572 done
5573 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5574 rm -f conftest.err conftest.$ac_ext
5575 if $ac_preproc_ok; then
5576   break
5577 fi
5578
5579     done
5580     ac_cv_prog_CPP=$CPP
5581
5582 fi
5583   CPP=$ac_cv_prog_CPP
5584 else
5585   ac_cv_prog_CPP=$CPP
5586 fi
5587 { echo "$as_me:$LINENO: result: $CPP" >&5
5588 echo "${ECHO_T}$CPP" >&6; }
5589 ac_preproc_ok=false
5590 for ac_c_preproc_warn_flag in '' yes
5591 do
5592   # Use a header file that comes with gcc, so configuring glibc
5593   # with a fresh cross-compiler works.
5594   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5595   # <limits.h> exists even on freestanding compilers.
5596   # On the NeXT, cc -E runs the code through the compiler's parser,
5597   # not just through cpp. "Syntax error" is here to catch this case.
5598   cat >conftest.$ac_ext <<_ACEOF
5599 /* confdefs.h.  */
5600 _ACEOF
5601 cat confdefs.h >>conftest.$ac_ext
5602 cat >>conftest.$ac_ext <<_ACEOF
5603 /* end confdefs.h.  */
5604 #ifdef __STDC__
5605 # include <limits.h>
5606 #else
5607 # include <assert.h>
5608 #endif
5609                      Syntax error
5610 _ACEOF
5611 if { (ac_try="$ac_cpp conftest.$ac_ext"
5612 case "(($ac_try" in
5613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5614   *) ac_try_echo=$ac_try;;
5615 esac
5616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5617   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5618   ac_status=$?
5619   grep -v '^ *+' conftest.er1 >conftest.err
5620   rm -f conftest.er1
5621   cat conftest.err >&5
5622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5623   (exit $ac_status); } >/dev/null; then
5624   if test -s conftest.err; then
5625     ac_cpp_err=$ac_c_preproc_warn_flag
5626     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5627   else
5628     ac_cpp_err=
5629   fi
5630 else
5631   ac_cpp_err=yes
5632 fi
5633 if test -z "$ac_cpp_err"; then
5634   :
5635 else
5636   echo "$as_me: failed program was:" >&5
5637 sed 's/^/| /' conftest.$ac_ext >&5
5638
5639   # Broken: fails on valid input.
5640 continue
5641 fi
5642
5643 rm -f conftest.err conftest.$ac_ext
5644
5645   # OK, works on sane cases.  Now check whether nonexistent headers
5646   # can be detected and how.
5647   cat >conftest.$ac_ext <<_ACEOF
5648 /* confdefs.h.  */
5649 _ACEOF
5650 cat confdefs.h >>conftest.$ac_ext
5651 cat >>conftest.$ac_ext <<_ACEOF
5652 /* end confdefs.h.  */
5653 #include <ac_nonexistent.h>
5654 _ACEOF
5655 if { (ac_try="$ac_cpp conftest.$ac_ext"
5656 case "(($ac_try" in
5657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5658   *) ac_try_echo=$ac_try;;
5659 esac
5660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5661   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5662   ac_status=$?
5663   grep -v '^ *+' conftest.er1 >conftest.err
5664   rm -f conftest.er1
5665   cat conftest.err >&5
5666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5667   (exit $ac_status); } >/dev/null; then
5668   if test -s conftest.err; then
5669     ac_cpp_err=$ac_c_preproc_warn_flag
5670     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5671   else
5672     ac_cpp_err=
5673   fi
5674 else
5675   ac_cpp_err=yes
5676 fi
5677 if test -z "$ac_cpp_err"; then
5678   # Broken: success on invalid input.
5679 continue
5680 else
5681   echo "$as_me: failed program was:" >&5
5682 sed 's/^/| /' conftest.$ac_ext >&5
5683
5684   # Passes both tests.
5685 ac_preproc_ok=:
5686 break
5687 fi
5688
5689 rm -f conftest.err conftest.$ac_ext
5690
5691 done
5692 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5693 rm -f conftest.err conftest.$ac_ext
5694 if $ac_preproc_ok; then
5695   :
5696 else
5697   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5698 See \`config.log' for more details." >&5
5699 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5700 See \`config.log' for more details." >&2;}
5701    { (exit 1); exit 1; }; }
5702 fi
5703
5704 ac_ext=c
5705 ac_cpp='$CPP $CPPFLAGS'
5706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5709
5710 # Find a good install program.  We prefer a C program (faster),
5711 # so one script is as good as another.  But avoid the broken or
5712 # incompatible versions:
5713 # SysV /etc/install, /usr/sbin/install
5714 # SunOS /usr/etc/install
5715 # IRIX /sbin/install
5716 # AIX /bin/install
5717 # AmigaOS /C/install, which installs bootblocks on floppy discs
5718 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5719 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5720 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5721 # OS/2's system install, which has a completely different semantic
5722 # ./install, which can be erroneously created by make from ./install.sh.
5723 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5724 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
5725 if test -z "$INSTALL"; then
5726 if test "${ac_cv_path_install+set}" = set; then
5727   echo $ECHO_N "(cached) $ECHO_C" >&6
5728 else
5729   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5730 for as_dir in $PATH
5731 do
5732   IFS=$as_save_IFS
5733   test -z "$as_dir" && as_dir=.
5734   # Account for people who put trailing slashes in PATH elements.
5735 case $as_dir/ in
5736   ./ | .// | /cC/* | \
5737   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5738   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5739   /usr/ucb/* ) ;;
5740   *)
5741     # OSF1 and SCO ODT 3.0 have their own names for install.
5742     # Don't use installbsd from OSF since it installs stuff as root
5743     # by default.
5744     for ac_prog in ginstall scoinst install; do
5745       for ac_exec_ext in '' $ac_executable_extensions; do
5746         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
5747           if test $ac_prog = install &&
5748             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5749             # AIX install.  It has an incompatible calling convention.
5750             :
5751           elif test $ac_prog = install &&
5752             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5753             # program-specific install script used by HP pwplus--don't use.
5754             :
5755           else
5756             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5757             break 3
5758           fi
5759         fi
5760       done
5761     done
5762     ;;
5763 esac
5764 done
5765 IFS=$as_save_IFS
5766
5767
5768 fi
5769   if test "${ac_cv_path_install+set}" = set; then
5770     INSTALL=$ac_cv_path_install
5771   else
5772     # As a last resort, use the slow shell script.  Don't cache a
5773     # value for INSTALL within a source directory, because that will
5774     # break other packages using the cache if that directory is
5775     # removed, or if the value is a relative name.
5776     INSTALL=$ac_install_sh
5777   fi
5778 fi
5779 { echo "$as_me:$LINENO: result: $INSTALL" >&5
5780 echo "${ECHO_T}$INSTALL" >&6; }
5781
5782 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5783 # It thinks the first close brace ends the variable substitution.
5784 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5785
5786 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5787
5788 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5789
5790 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5791 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5792 LN_S=$as_ln_s
5793 if test "$LN_S" = "ln -s"; then
5794   { echo "$as_me:$LINENO: result: yes" >&5
5795 echo "${ECHO_T}yes" >&6; }
5796 else
5797   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5798 echo "${ECHO_T}no, using $LN_S" >&6; }
5799 fi
5800
5801 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5802 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
5803 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5804 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
5805   echo $ECHO_N "(cached) $ECHO_C" >&6
5806 else
5807   cat >conftest.make <<\_ACEOF
5808 SHELL = /bin/sh
5809 all:
5810         @echo '@@@%%%=$(MAKE)=@@@%%%'
5811 _ACEOF
5812 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5813 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5814   *@@@%%%=?*=@@@%%%*)
5815     eval ac_cv_prog_make_${ac_make}_set=yes;;
5816   *)
5817     eval ac_cv_prog_make_${ac_make}_set=no;;
5818 esac
5819 rm -f conftest.make
5820 fi
5821 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5822   { echo "$as_me:$LINENO: result: yes" >&5
5823 echo "${ECHO_T}yes" >&6; }
5824   SET_MAKE=
5825 else
5826   { echo "$as_me:$LINENO: result: no" >&5
5827 echo "${ECHO_T}no" >&6; }
5828   SET_MAKE="MAKE=${MAKE-make}"
5829 fi
5830
5831 # Check whether --enable-shared was given.
5832 if test "${enable_shared+set}" = set; then
5833   enableval=$enable_shared; p=${PACKAGE-default}
5834     case $enableval in
5835     yes) enable_shared=yes ;;
5836     no) enable_shared=no ;;
5837     *)
5838       enable_shared=no
5839       # Look at the argument we got.  We use all the common list separators.
5840       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5841       for pkg in $enableval; do
5842         IFS="$lt_save_ifs"
5843         if test "X$pkg" = "X$p"; then
5844           enable_shared=yes
5845         fi
5846       done
5847       IFS="$lt_save_ifs"
5848       ;;
5849     esac
5850 else
5851   enable_shared=yes
5852 fi
5853
5854
5855 # Check whether --enable-static was given.
5856 if test "${enable_static+set}" = set; then
5857   enableval=$enable_static; p=${PACKAGE-default}
5858     case $enableval in
5859     yes) enable_static=yes ;;
5860     no) enable_static=no ;;
5861     *)
5862      enable_static=no
5863       # Look at the argument we got.  We use all the common list separators.
5864       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5865       for pkg in $enableval; do
5866         IFS="$lt_save_ifs"
5867         if test "X$pkg" = "X$p"; then
5868           enable_static=yes
5869         fi
5870       done
5871       IFS="$lt_save_ifs"
5872       ;;
5873     esac
5874 else
5875   enable_static=yes
5876 fi
5877
5878
5879 # Check whether --enable-fast-install was given.
5880 if test "${enable_fast_install+set}" = set; then
5881   enableval=$enable_fast_install; p=${PACKAGE-default}
5882     case $enableval in
5883     yes) enable_fast_install=yes ;;
5884     no) enable_fast_install=no ;;
5885     *)
5886       enable_fast_install=no
5887       # Look at the argument we got.  We use all the common list separators.
5888       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5889       for pkg in $enableval; do
5890         IFS="$lt_save_ifs"
5891         if test "X$pkg" = "X$p"; then
5892           enable_fast_install=yes
5893         fi
5894       done
5895       IFS="$lt_save_ifs"
5896       ;;
5897     esac
5898 else
5899   enable_fast_install=yes
5900 fi
5901
5902
5903 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5904 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5905 if test "${lt_cv_path_SED+set}" = set; then
5906   echo $ECHO_N "(cached) $ECHO_C" >&6
5907 else
5908   # Loop through the user's path and test for sed and gsed.
5909 # Then use that list of sed's as ones to test for truncation.
5910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5911 for as_dir in $PATH
5912 do
5913   IFS=$as_save_IFS
5914   test -z "$as_dir" && as_dir=.
5915   for lt_ac_prog in sed gsed; do
5916     for ac_exec_ext in '' $ac_executable_extensions; do
5917       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5918         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5919       fi
5920     done
5921   done
5922 done
5923 lt_ac_max=0
5924 lt_ac_count=0
5925 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5926 # along with /bin/sed that truncates output.
5927 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5928   test ! -f $lt_ac_sed && continue
5929   cat /dev/null > conftest.in
5930   lt_ac_count=0
5931   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5932   # Check for GNU sed and select it if it is found.
5933   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5934     lt_cv_path_SED=$lt_ac_sed
5935     break
5936   fi
5937   while true; do
5938     cat conftest.in conftest.in >conftest.tmp
5939     mv conftest.tmp conftest.in
5940     cp conftest.in conftest.nl
5941     echo >>conftest.nl
5942     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5943     cmp -s conftest.out conftest.nl || break
5944     # 10000 chars as input seems more than enough
5945     test $lt_ac_count -gt 10 && break
5946     lt_ac_count=`expr $lt_ac_count + 1`
5947     if test $lt_ac_count -gt $lt_ac_max; then
5948       lt_ac_max=$lt_ac_count
5949       lt_cv_path_SED=$lt_ac_sed
5950     fi
5951   done
5952 done
5953
5954 fi
5955
5956 SED=$lt_cv_path_SED
5957 { echo "$as_me:$LINENO: result: $SED" >&5
5958 echo "${ECHO_T}$SED" >&6; }
5959
5960 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5961 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5962 if test "${ac_cv_path_GREP+set}" = set; then
5963   echo $ECHO_N "(cached) $ECHO_C" >&6
5964 else
5965   # Extract the first word of "grep ggrep" to use in msg output
5966 if test -z "$GREP"; then
5967 set dummy grep ggrep; ac_prog_name=$2
5968 if test "${ac_cv_path_GREP+set}" = set; then
5969   echo $ECHO_N "(cached) $ECHO_C" >&6
5970 else
5971   ac_path_GREP_found=false
5972 # Loop through the user's path and test for each of PROGNAME-LIST
5973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5974 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5975 do
5976   IFS=$as_save_IFS
5977   test -z "$as_dir" && as_dir=.
5978   for ac_prog in grep ggrep; do
5979   for ac_exec_ext in '' $ac_executable_extensions; do
5980     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5981     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
5982     # Check for GNU ac_path_GREP and select it if it is found.
5983   # Check for GNU $ac_path_GREP
5984 case `"$ac_path_GREP" --version 2>&1` in
5985 *GNU*)
5986   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5987 *)
5988   ac_count=0
5989   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5990   while :
5991   do
5992     cat "conftest.in" "conftest.in" >"conftest.tmp"
5993     mv "conftest.tmp" "conftest.in"
5994     cp "conftest.in" "conftest.nl"
5995     echo 'GREP' >> "conftest.nl"
5996     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5997     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5998     ac_count=`expr $ac_count + 1`
5999     if test $ac_count -gt ${ac_path_GREP_max-0}; then
6000       # Best one so far, save it but keep looking for a better one
6001       ac_cv_path_GREP="$ac_path_GREP"
6002       ac_path_GREP_max=$ac_count
6003     fi
6004     # 10*(2^10) chars as input seems more than enough
6005     test $ac_count -gt 10 && break
6006   done
6007   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6008 esac
6009
6010
6011     $ac_path_GREP_found && break 3
6012   done
6013 done
6014
6015 done
6016 IFS=$as_save_IFS
6017
6018
6019 fi
6020
6021 GREP="$ac_cv_path_GREP"
6022 if test -z "$GREP"; then
6023   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6024 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6025    { (exit 1); exit 1; }; }
6026 fi
6027
6028 else
6029   ac_cv_path_GREP=$GREP
6030 fi
6031
6032
6033 fi
6034 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
6035 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
6036  GREP="$ac_cv_path_GREP"
6037
6038
6039 { echo "$as_me:$LINENO: checking for egrep" >&5
6040 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
6041 if test "${ac_cv_path_EGREP+set}" = set; then
6042   echo $ECHO_N "(cached) $ECHO_C" >&6
6043 else
6044   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6045    then ac_cv_path_EGREP="$GREP -E"
6046    else
6047      # Extract the first word of "egrep" to use in msg output
6048 if test -z "$EGREP"; then
6049 set dummy egrep; ac_prog_name=$2
6050 if test "${ac_cv_path_EGREP+set}" = set; then
6051   echo $ECHO_N "(cached) $ECHO_C" >&6
6052 else
6053   ac_path_EGREP_found=false
6054 # Loop through the user's path and test for each of PROGNAME-LIST
6055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6056 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6057 do
6058   IFS=$as_save_IFS
6059   test -z "$as_dir" && as_dir=.
6060   for ac_prog in egrep; do
6061   for ac_exec_ext in '' $ac_executable_extensions; do
6062     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6063     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
6064     # Check for GNU ac_path_EGREP and select it if it is found.
6065   # Check for GNU $ac_path_EGREP
6066 case `"$ac_path_EGREP" --version 2>&1` in
6067 *GNU*)
6068   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6069 *)
6070   ac_count=0
6071   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6072   while :
6073   do
6074     cat "conftest.in" "conftest.in" >"conftest.tmp"
6075     mv "conftest.tmp" "conftest.in"
6076     cp "conftest.in" "conftest.nl"
6077     echo 'EGREP' >> "conftest.nl"
6078     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6079     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6080     ac_count=`expr $ac_count + 1`
6081     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6082       # Best one so far, save it but keep looking for a better one
6083       ac_cv_path_EGREP="$ac_path_EGREP"
6084       ac_path_EGREP_max=$ac_count
6085     fi
6086     # 10*(2^10) chars as input seems more than enough
6087     test $ac_count -gt 10 && break
6088   done
6089   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6090 esac
6091
6092
6093     $ac_path_EGREP_found && break 3
6094   done
6095 done
6096
6097 done
6098 IFS=$as_save_IFS
6099
6100
6101 fi
6102
6103 EGREP="$ac_cv_path_EGREP"
6104 if test -z "$EGREP"; then
6105   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6106 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6107    { (exit 1); exit 1; }; }
6108 fi
6109
6110 else
6111   ac_cv_path_EGREP=$EGREP
6112 fi
6113
6114
6115    fi
6116 fi
6117 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6118 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
6119  EGREP="$ac_cv_path_EGREP"
6120
6121
6122
6123 # Check whether --with-gnu-ld was given.
6124 if test "${with_gnu_ld+set}" = set; then
6125   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6126 else
6127   with_gnu_ld=no
6128 fi
6129
6130 ac_prog=ld
6131 if test "$GCC" = yes; then
6132   # Check if gcc -print-prog-name=ld gives a path.
6133   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6134 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
6135   case $host in
6136   *-*-mingw*)
6137     # gcc leaves a trailing carriage return which upsets mingw
6138     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6139   *)
6140     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6141   esac
6142   case $ac_prog in
6143     # Accept absolute paths.
6144     [\\/]* | ?:[\\/]*)
6145       re_direlt='/[^/][^/]*/\.\./'
6146       # Canonicalize the pathname of ld
6147       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6148       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6149         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6150       done
6151       test -z "$LD" && LD="$ac_prog"
6152       ;;
6153   "")
6154     # If it fails, then pretend we aren't using GCC.
6155     ac_prog=ld
6156     ;;
6157   *)
6158     # If it is relative, then search for the first ld in PATH.
6159     with_gnu_ld=unknown
6160     ;;
6161   esac
6162 elif test "$with_gnu_ld" = yes; then
6163   { echo "$as_me:$LINENO: checking for GNU ld" >&5
6164 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6165 else
6166   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6167 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6168 fi
6169 if test "${lt_cv_path_LD+set}" = set; then
6170   echo $ECHO_N "(cached) $ECHO_C" >&6
6171 else
6172   if test -z "$LD"; then
6173   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6174   for ac_dir in $PATH; do
6175     IFS="$lt_save_ifs"
6176     test -z "$ac_dir" && ac_dir=.
6177     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6178       lt_cv_path_LD="$ac_dir/$ac_prog"
6179       # Check to see if the program is GNU ld.  I'd rather use --version,
6180       # but apparently some variants of GNU ld only accept -v.
6181       # Break only if it was the GNU/non-GNU ld that we prefer.
6182       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6183       *GNU* | *'with BFD'*)
6184         test "$with_gnu_ld" != no && break
6185         ;;
6186       *)
6187         test "$with_gnu_ld" != yes && break
6188         ;;
6189       esac
6190     fi
6191   done
6192   IFS="$lt_save_ifs"
6193 else
6194   lt_cv_path_LD="$LD" # Let the user override the test with a path.
6195 fi
6196 fi
6197
6198 LD="$lt_cv_path_LD"
6199 if test -n "$LD"; then
6200   { echo "$as_me:$LINENO: result: $LD" >&5
6201 echo "${ECHO_T}$LD" >&6; }
6202 else
6203   { echo "$as_me:$LINENO: result: no" >&5
6204 echo "${ECHO_T}no" >&6; }
6205 fi
6206 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6207 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6208    { (exit 1); exit 1; }; }
6209 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6210 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6211 if test "${lt_cv_prog_gnu_ld+set}" = set; then
6212   echo $ECHO_N "(cached) $ECHO_C" >&6
6213 else
6214   # I'd rather use --version here, but apparently some GNU lds only accept -v.
6215 case `$LD -v 2>&1 </dev/null` in
6216 *GNU* | *'with BFD'*)
6217   lt_cv_prog_gnu_ld=yes
6218   ;;
6219 *)
6220   lt_cv_prog_gnu_ld=no
6221   ;;
6222 esac
6223 fi
6224 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6225 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
6226 with_gnu_ld=$lt_cv_prog_gnu_ld
6227
6228
6229 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6230 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6231 if test "${lt_cv_ld_reload_flag+set}" = set; then
6232   echo $ECHO_N "(cached) $ECHO_C" >&6
6233 else
6234   lt_cv_ld_reload_flag='-r'
6235 fi
6236 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6237 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6238 reload_flag=$lt_cv_ld_reload_flag
6239 case $reload_flag in
6240 "" | " "*) ;;
6241 *) reload_flag=" $reload_flag" ;;
6242 esac
6243 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6244 case $host_os in
6245   darwin*)
6246     if test "$GCC" = yes; then
6247       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6248     else
6249       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6250     fi
6251     ;;
6252 esac
6253
6254 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6255 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6256 if test "${lt_cv_path_NM+set}" = set; then
6257   echo $ECHO_N "(cached) $ECHO_C" >&6
6258 else
6259   if test -n "$NM"; then
6260   # Let the user override the test.
6261   lt_cv_path_NM="$NM"
6262 else
6263   lt_nm_to_check="${ac_tool_prefix}nm"
6264   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6265     lt_nm_to_check="$lt_nm_to_check nm"
6266   fi
6267   for lt_tmp_nm in $lt_nm_to_check; do
6268     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6269     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6270       IFS="$lt_save_ifs"
6271       test -z "$ac_dir" && ac_dir=.
6272       tmp_nm="$ac_dir/$lt_tmp_nm"
6273       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6274         # Check to see if the nm accepts a BSD-compat flag.
6275         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6276         #   nm: unknown option "B" ignored
6277         # Tru64's nm complains that /dev/null is an invalid object file
6278         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6279         */dev/null* | *'Invalid file or object type'*)
6280           lt_cv_path_NM="$tmp_nm -B"
6281           break
6282           ;;
6283         *)
6284           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6285           */dev/null*)
6286             lt_cv_path_NM="$tmp_nm -p"
6287             break
6288             ;;
6289           *)
6290             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6291             continue # so that we can try to find one that supports BSD flags
6292             ;;
6293           esac
6294           ;;
6295         esac
6296       fi
6297     done
6298     IFS="$lt_save_ifs"
6299   done
6300   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6301 fi
6302 fi
6303 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6304 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6305 NM="$lt_cv_path_NM"
6306
6307 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6308 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
6309 if test "${lt_cv_deplibs_check_method+set}" = set; then
6310   echo $ECHO_N "(cached) $ECHO_C" >&6
6311 else
6312   lt_cv_file_magic_cmd='$MAGIC_CMD'
6313 lt_cv_file_magic_test_file=
6314 lt_cv_deplibs_check_method='unknown'
6315 # Need to set the preceding variable on all platforms that support
6316 # interlibrary dependencies.
6317 # 'none' -- dependencies not supported.
6318 # `unknown' -- same as none, but documents that we really don't know.
6319 # 'pass_all' -- all dependencies passed with no checks.
6320 # 'test_compile' -- check by making test program.
6321 # 'file_magic [[regex]]' -- check by looking for files in library path
6322 # which responds to the $file_magic_cmd with a given extended regex.
6323 # If you have `file' or equivalent on your system and you're not sure
6324 # whether `pass_all' will *always* work, you probably want this one.
6325
6326 case $host_os in
6327 aix4* | aix5*)
6328   lt_cv_deplibs_check_method=pass_all
6329   ;;
6330
6331 beos*)
6332   lt_cv_deplibs_check_method=pass_all
6333   ;;
6334
6335 bsdi[45]*)
6336   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6337   lt_cv_file_magic_cmd='/usr/bin/file -L'
6338   lt_cv_file_magic_test_file=/shlib/libc.so
6339   ;;
6340
6341 cygwin*)
6342   # func_win32_libid is a shell function defined in ltmain.sh
6343   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6344   lt_cv_file_magic_cmd='func_win32_libid'
6345   ;;
6346
6347 mingw* | pw32*)
6348   # Base MSYS/MinGW do not provide the 'file' command needed by
6349   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6350   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6351   lt_cv_file_magic_cmd='$OBJDUMP -f'
6352   ;;
6353
6354 darwin* | rhapsody*)
6355   lt_cv_deplibs_check_method=pass_all
6356   ;;
6357
6358 freebsd* | dragonfly*)
6359   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6360     case $host_cpu in
6361     i*86 )
6362       # Not sure whether the presence of OpenBSD here was a mistake.
6363       # Let's accept both of them until this is cleared up.
6364       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6365       lt_cv_file_magic_cmd=/usr/bin/file
6366       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6367       ;;
6368     esac
6369   else
6370     lt_cv_deplibs_check_method=pass_all
6371   fi
6372   ;;
6373
6374 gnu*)
6375   lt_cv_deplibs_check_method=pass_all
6376   ;;
6377
6378 hpux10.20* | hpux11*)
6379   lt_cv_file_magic_cmd=/usr/bin/file
6380   case $host_cpu in
6381   ia64*)
6382     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6383     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6384     ;;
6385   hppa*64*)
6386     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]'
6387     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6388     ;;
6389   *)
6390     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6391     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6392     ;;
6393   esac
6394   ;;
6395
6396 interix3*)
6397   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6398   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6399   ;;
6400
6401 irix5* | irix6* | nonstopux*)
6402   case $LD in
6403   *-32|*"-32 ") libmagic=32-bit;;
6404   *-n32|*"-n32 ") libmagic=N32;;
6405   *-64|*"-64 ") libmagic=64-bit;;
6406   *) libmagic=never-match;;
6407   esac
6408   lt_cv_deplibs_check_method=pass_all
6409   ;;
6410
6411 # This must be Linux ELF.
6412 linux* | k*bsd*-gnu)
6413   lt_cv_deplibs_check_method=pass_all
6414   ;;
6415
6416 netbsd* | netbsdelf*-gnu)
6417   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6418     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6419   else
6420     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6421   fi
6422   ;;
6423
6424 newos6*)
6425   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6426   lt_cv_file_magic_cmd=/usr/bin/file
6427   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6428   ;;
6429
6430 nto-qnx*)
6431   lt_cv_deplibs_check_method=unknown
6432   ;;
6433
6434 openbsd*)
6435   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6436     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6437   else
6438     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6439   fi
6440   ;;
6441
6442 osf3* | osf4* | osf5*)
6443   lt_cv_deplibs_check_method=pass_all
6444   ;;
6445
6446 solaris*)
6447   lt_cv_deplibs_check_method=pass_all
6448   ;;
6449
6450 sysv4 | sysv4.3*)
6451   case $host_vendor in
6452   motorola)
6453     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]'
6454     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6455     ;;
6456   ncr)
6457     lt_cv_deplibs_check_method=pass_all
6458     ;;
6459   sequent)
6460     lt_cv_file_magic_cmd='/bin/file'
6461     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6462     ;;
6463   sni)
6464     lt_cv_file_magic_cmd='/bin/file'
6465     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6466     lt_cv_file_magic_test_file=/lib/libc.so
6467     ;;
6468   siemens)
6469     lt_cv_deplibs_check_method=pass_all
6470     ;;
6471   pc)
6472     lt_cv_deplibs_check_method=pass_all
6473     ;;
6474   esac
6475   ;;
6476
6477 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6478   lt_cv_deplibs_check_method=pass_all
6479   ;;
6480 esac
6481
6482 fi
6483 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6484 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6485 file_magic_cmd=$lt_cv_file_magic_cmd
6486 deplibs_check_method=$lt_cv_deplibs_check_method
6487 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6488
6489
6490
6491
6492 # If no C compiler was specified, use CC.
6493 LTCC=${LTCC-"$CC"}
6494
6495 # If no C compiler flags were specified, use CFLAGS.
6496 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6497
6498 # Allow CC to be a program name with arguments.
6499 compiler=$CC
6500
6501 # Check whether --enable-libtool-lock was given.
6502 if test "${enable_libtool_lock+set}" = set; then
6503   enableval=$enable_libtool_lock;
6504 fi
6505
6506 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6507
6508 # Some flags need to be propagated to the compiler or linker for good
6509 # libtool support.
6510 case $host in
6511 ia64-*-hpux*)
6512   # Find out which ABI we are using.
6513   echo 'int i;' > conftest.$ac_ext
6514   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6515   (eval $ac_compile) 2>&5
6516   ac_status=$?
6517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6518   (exit $ac_status); }; then
6519     case `/usr/bin/file conftest.$ac_objext` in
6520     *ELF-32*)
6521       HPUX_IA64_MODE="32"
6522       ;;
6523     *ELF-64*)
6524       HPUX_IA64_MODE="64"
6525       ;;
6526     esac
6527   fi
6528   rm -rf conftest*
6529   ;;
6530 *-*-irix6*)
6531   # Find out which ABI we are using.
6532   echo '#line 6532 "configure"' > conftest.$ac_ext
6533   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6534   (eval $ac_compile) 2>&5
6535   ac_status=$?
6536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6537   (exit $ac_status); }; then
6538    if test "$lt_cv_prog_gnu_ld" = yes; then
6539     case `/usr/bin/file conftest.$ac_objext` in
6540     *32-bit*)
6541       LD="${LD-ld} -melf32bsmip"
6542       ;;
6543     *N32*)
6544       LD="${LD-ld} -melf32bmipn32"
6545       ;;
6546     *64-bit*)
6547       LD="${LD-ld} -melf64bmip"
6548       ;;
6549     esac
6550    else
6551     case `/usr/bin/file conftest.$ac_objext` in
6552     *32-bit*)
6553       LD="${LD-ld} -32"
6554       ;;
6555     *N32*)
6556       LD="${LD-ld} -n32"
6557       ;;
6558     *64-bit*)
6559       LD="${LD-ld} -64"
6560       ;;
6561     esac
6562    fi
6563   fi
6564   rm -rf conftest*
6565   ;;
6566
6567 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6568   # Find out which ABI we are using.
6569   echo 'int i;' > conftest.$ac_ext
6570   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6571   (eval $ac_compile) 2>&5
6572   ac_status=$?
6573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6574   (exit $ac_status); }; then
6575     case `/usr/bin/file conftest.o` in
6576     *32-bit*)
6577       case $host in
6578         x86_64-*linux*)
6579           LD="${LD-ld} -m elf_i386"
6580           ;;
6581         ppc64-*linux*|powerpc64-*linux*)
6582           LD="${LD-ld} -m elf32ppclinux"
6583           ;;
6584         s390x-*linux*)
6585           LD="${LD-ld} -m elf_s390"
6586           ;;
6587         sparc64-*linux*)
6588           LD="${LD-ld} -m elf32_sparc"
6589           ;;
6590       esac
6591       ;;
6592     *64-bit*)
6593       case $host in
6594         x86_64-*linux*)
6595           LD="${LD-ld} -m elf_x86_64"
6596           ;;
6597         ppc*-*linux*|powerpc*-*linux*)
6598           LD="${LD-ld} -m elf64ppc"
6599           ;;
6600         s390*-*linux*)
6601           LD="${LD-ld} -m elf64_s390"
6602           ;;
6603         sparc*-*linux*)
6604           LD="${LD-ld} -m elf64_sparc"
6605           ;;
6606       esac
6607       ;;
6608     esac
6609   fi
6610   rm -rf conftest*
6611   ;;
6612
6613 *-*-sco3.2v5*)
6614   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6615   SAVE_CFLAGS="$CFLAGS"
6616   CFLAGS="$CFLAGS -belf"
6617   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6618 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
6619 if test "${lt_cv_cc_needs_belf+set}" = set; then
6620   echo $ECHO_N "(cached) $ECHO_C" >&6
6621 else
6622   ac_ext=c
6623 ac_cpp='$CPP $CPPFLAGS'
6624 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6625 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6626 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6627
6628      cat >conftest.$ac_ext <<_ACEOF
6629 /* confdefs.h.  */
6630 _ACEOF
6631 cat confdefs.h >>conftest.$ac_ext
6632 cat >>conftest.$ac_ext <<_ACEOF
6633 /* end confdefs.h.  */
6634
6635 int
6636 main ()
6637 {
6638
6639   ;
6640   return 0;
6641 }
6642 _ACEOF
6643 rm -f conftest.$ac_objext conftest$ac_exeext
6644 if { (ac_try="$ac_link"
6645 case "(($ac_try" in
6646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6647   *) ac_try_echo=$ac_try;;
6648 esac
6649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6650   (eval "$ac_link") 2>conftest.er1
6651   ac_status=$?
6652   grep -v '^ *+' conftest.er1 >conftest.err
6653   rm -f conftest.er1
6654   cat conftest.err >&5
6655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6656   (exit $ac_status); } &&
6657          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6658   { (case "(($ac_try" in
6659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6660   *) ac_try_echo=$ac_try;;
6661 esac
6662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6663   (eval "$ac_try") 2>&5
6664   ac_status=$?
6665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6666   (exit $ac_status); }; } &&
6667          { ac_try='test -s conftest$ac_exeext'
6668   { (case "(($ac_try" in
6669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6670   *) ac_try_echo=$ac_try;;
6671 esac
6672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6673   (eval "$ac_try") 2>&5
6674   ac_status=$?
6675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6676   (exit $ac_status); }; }; then
6677   lt_cv_cc_needs_belf=yes
6678 else
6679   echo "$as_me: failed program was:" >&5
6680 sed 's/^/| /' conftest.$ac_ext >&5
6681
6682         lt_cv_cc_needs_belf=no
6683 fi
6684
6685 rm -f core conftest.err conftest.$ac_objext \
6686       conftest$ac_exeext conftest.$ac_ext
6687      ac_ext=c
6688 ac_cpp='$CPP $CPPFLAGS'
6689 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6690 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6691 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6692
6693 fi
6694 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6695 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6696   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6697     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6698     CFLAGS="$SAVE_CFLAGS"
6699   fi
6700   ;;
6701 sparc*-*solaris*)
6702   # Find out which ABI we are using.
6703   echo 'int i;' > conftest.$ac_ext
6704   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6705   (eval $ac_compile) 2>&5
6706   ac_status=$?
6707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6708   (exit $ac_status); }; then
6709     case `/usr/bin/file conftest.o` in
6710     *64-bit*)
6711       case $lt_cv_prog_gnu_ld in
6712       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6713       *)    LD="${LD-ld} -64" ;;
6714       esac
6715       ;;
6716     esac
6717   fi
6718   rm -rf conftest*
6719   ;;
6720
6721
6722 esac
6723
6724 need_locks="$enable_libtool_lock"
6725
6726
6727
6728 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6729 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6730 if test "${ac_cv_header_stdc+set}" = set; then
6731   echo $ECHO_N "(cached) $ECHO_C" >&6
6732 else
6733   cat >conftest.$ac_ext <<_ACEOF
6734 /* confdefs.h.  */
6735 _ACEOF
6736 cat confdefs.h >>conftest.$ac_ext
6737 cat >>conftest.$ac_ext <<_ACEOF
6738 /* end confdefs.h.  */
6739 #include <stdlib.h>
6740 #include <stdarg.h>
6741 #include <string.h>
6742 #include <float.h>
6743
6744 int
6745 main ()
6746 {
6747
6748   ;
6749   return 0;
6750 }
6751 _ACEOF
6752 rm -f conftest.$ac_objext
6753 if { (ac_try="$ac_compile"
6754 case "(($ac_try" in
6755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6756   *) ac_try_echo=$ac_try;;
6757 esac
6758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6759   (eval "$ac_compile") 2>conftest.er1
6760   ac_status=$?
6761   grep -v '^ *+' conftest.er1 >conftest.err
6762   rm -f conftest.er1
6763   cat conftest.err >&5
6764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6765   (exit $ac_status); } &&
6766          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6767   { (case "(($ac_try" in
6768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6769   *) ac_try_echo=$ac_try;;
6770 esac
6771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6772   (eval "$ac_try") 2>&5
6773   ac_status=$?
6774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6775   (exit $ac_status); }; } &&
6776          { ac_try='test -s conftest.$ac_objext'
6777   { (case "(($ac_try" in
6778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6779   *) ac_try_echo=$ac_try;;
6780 esac
6781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6782   (eval "$ac_try") 2>&5
6783   ac_status=$?
6784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6785   (exit $ac_status); }; }; then
6786   ac_cv_header_stdc=yes
6787 else
6788   echo "$as_me: failed program was:" >&5
6789 sed 's/^/| /' conftest.$ac_ext >&5
6790
6791         ac_cv_header_stdc=no
6792 fi
6793
6794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6795
6796 if test $ac_cv_header_stdc = yes; then
6797   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6798   cat >conftest.$ac_ext <<_ACEOF
6799 /* confdefs.h.  */
6800 _ACEOF
6801 cat confdefs.h >>conftest.$ac_ext
6802 cat >>conftest.$ac_ext <<_ACEOF
6803 /* end confdefs.h.  */
6804 #include <string.h>
6805
6806 _ACEOF
6807 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6808   $EGREP "memchr" >/dev/null 2>&1; then
6809   :
6810 else
6811   ac_cv_header_stdc=no
6812 fi
6813 rm -f conftest*
6814
6815 fi
6816
6817 if test $ac_cv_header_stdc = yes; then
6818   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6819   cat >conftest.$ac_ext <<_ACEOF
6820 /* confdefs.h.  */
6821 _ACEOF
6822 cat confdefs.h >>conftest.$ac_ext
6823 cat >>conftest.$ac_ext <<_ACEOF
6824 /* end confdefs.h.  */
6825 #include <stdlib.h>
6826
6827 _ACEOF
6828 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6829   $EGREP "free" >/dev/null 2>&1; then
6830   :
6831 else
6832   ac_cv_header_stdc=no
6833 fi
6834 rm -f conftest*
6835
6836 fi
6837
6838 if test $ac_cv_header_stdc = yes; then
6839   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6840   if test "$cross_compiling" = yes; then
6841   :
6842 else
6843   cat >conftest.$ac_ext <<_ACEOF
6844 /* confdefs.h.  */
6845 _ACEOF
6846 cat confdefs.h >>conftest.$ac_ext
6847 cat >>conftest.$ac_ext <<_ACEOF
6848 /* end confdefs.h.  */
6849 #include <ctype.h>
6850 #include <stdlib.h>
6851 #if ((' ' & 0x0FF) == 0x020)
6852 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6853 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6854 #else
6855 # define ISLOWER(c) \
6856                    (('a' <= (c) && (c) <= 'i') \
6857                      || ('j' <= (c) && (c) <= 'r') \
6858                      || ('s' <= (c) && (c) <= 'z'))
6859 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6860 #endif
6861
6862 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6863 int
6864 main ()
6865 {
6866   int i;
6867   for (i = 0; i < 256; i++)
6868     if (XOR (islower (i), ISLOWER (i))
6869         || toupper (i) != TOUPPER (i))
6870       return 2;
6871   return 0;
6872 }
6873 _ACEOF
6874 rm -f conftest$ac_exeext
6875 if { (ac_try="$ac_link"
6876 case "(($ac_try" in
6877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6878   *) ac_try_echo=$ac_try;;
6879 esac
6880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6881   (eval "$ac_link") 2>&5
6882   ac_status=$?
6883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6884   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6885   { (case "(($ac_try" in
6886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6887   *) ac_try_echo=$ac_try;;
6888 esac
6889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6890   (eval "$ac_try") 2>&5
6891   ac_status=$?
6892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6893   (exit $ac_status); }; }; then
6894   :
6895 else
6896   echo "$as_me: program exited with status $ac_status" >&5
6897 echo "$as_me: failed program was:" >&5
6898 sed 's/^/| /' conftest.$ac_ext >&5
6899
6900 ( exit $ac_status )
6901 ac_cv_header_stdc=no
6902 fi
6903 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6904 fi
6905
6906
6907 fi
6908 fi
6909 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6910 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6911 if test $ac_cv_header_stdc = yes; then
6912
6913 cat >>confdefs.h <<\_ACEOF
6914 #define STDC_HEADERS 1
6915 _ACEOF
6916
6917 fi
6918
6919 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6930                   inttypes.h stdint.h unistd.h
6931 do
6932 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6933 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6934 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6935 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6936   echo $ECHO_N "(cached) $ECHO_C" >&6
6937 else
6938   cat >conftest.$ac_ext <<_ACEOF
6939 /* confdefs.h.  */
6940 _ACEOF
6941 cat confdefs.h >>conftest.$ac_ext
6942 cat >>conftest.$ac_ext <<_ACEOF
6943 /* end confdefs.h.  */
6944 $ac_includes_default
6945
6946 #include <$ac_header>
6947 _ACEOF
6948 rm -f conftest.$ac_objext
6949 if { (ac_try="$ac_compile"
6950 case "(($ac_try" in
6951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6952   *) ac_try_echo=$ac_try;;
6953 esac
6954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6955   (eval "$ac_compile") 2>conftest.er1
6956   ac_status=$?
6957   grep -v '^ *+' conftest.er1 >conftest.err
6958   rm -f conftest.er1
6959   cat conftest.err >&5
6960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6961   (exit $ac_status); } &&
6962          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6963   { (case "(($ac_try" in
6964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6965   *) ac_try_echo=$ac_try;;
6966 esac
6967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6968   (eval "$ac_try") 2>&5
6969   ac_status=$?
6970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6971   (exit $ac_status); }; } &&
6972          { ac_try='test -s conftest.$ac_objext'
6973   { (case "(($ac_try" in
6974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6975   *) ac_try_echo=$ac_try;;
6976 esac
6977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6978   (eval "$ac_try") 2>&5
6979   ac_status=$?
6980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6981   (exit $ac_status); }; }; then
6982   eval "$as_ac_Header=yes"
6983 else
6984   echo "$as_me: failed program was:" >&5
6985 sed 's/^/| /' conftest.$ac_ext >&5
6986
6987         eval "$as_ac_Header=no"
6988 fi
6989
6990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6991 fi
6992 ac_res=`eval echo '${'$as_ac_Header'}'`
6993                { echo "$as_me:$LINENO: result: $ac_res" >&5
6994 echo "${ECHO_T}$ac_res" >&6; }
6995 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6996   cat >>confdefs.h <<_ACEOF
6997 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6998 _ACEOF
6999
7000 fi
7001
7002 done
7003
7004
7005
7006 for ac_header in dlfcn.h
7007 do
7008 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7009 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7010   { echo "$as_me:$LINENO: checking for $ac_header" >&5
7011 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7012 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7013   echo $ECHO_N "(cached) $ECHO_C" >&6
7014 fi
7015 ac_res=`eval echo '${'$as_ac_Header'}'`
7016                { echo "$as_me:$LINENO: result: $ac_res" >&5
7017 echo "${ECHO_T}$ac_res" >&6; }
7018 else
7019   # Is the header compilable?
7020 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7021 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7022 cat >conftest.$ac_ext <<_ACEOF
7023 /* confdefs.h.  */
7024 _ACEOF
7025 cat confdefs.h >>conftest.$ac_ext
7026 cat >>conftest.$ac_ext <<_ACEOF
7027 /* end confdefs.h.  */
7028 $ac_includes_default
7029 #include <$ac_header>
7030 _ACEOF
7031 rm -f conftest.$ac_objext
7032 if { (ac_try="$ac_compile"
7033 case "(($ac_try" in
7034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7035   *) ac_try_echo=$ac_try;;
7036 esac
7037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7038   (eval "$ac_compile") 2>conftest.er1
7039   ac_status=$?
7040   grep -v '^ *+' conftest.er1 >conftest.err
7041   rm -f conftest.er1
7042   cat conftest.err >&5
7043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7044   (exit $ac_status); } &&
7045          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7046   { (case "(($ac_try" in
7047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7048   *) ac_try_echo=$ac_try;;
7049 esac
7050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7051   (eval "$ac_try") 2>&5
7052   ac_status=$?
7053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7054   (exit $ac_status); }; } &&
7055          { ac_try='test -s conftest.$ac_objext'
7056   { (case "(($ac_try" in
7057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7058   *) ac_try_echo=$ac_try;;
7059 esac
7060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7061   (eval "$ac_try") 2>&5
7062   ac_status=$?
7063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7064   (exit $ac_status); }; }; then
7065   ac_header_compiler=yes
7066 else
7067   echo "$as_me: failed program was:" >&5
7068 sed 's/^/| /' conftest.$ac_ext >&5
7069
7070         ac_header_compiler=no
7071 fi
7072
7073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7074 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7075 echo "${ECHO_T}$ac_header_compiler" >&6; }
7076
7077 # Is the header present?
7078 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7079 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7080 cat >conftest.$ac_ext <<_ACEOF
7081 /* confdefs.h.  */
7082 _ACEOF
7083 cat confdefs.h >>conftest.$ac_ext
7084 cat >>conftest.$ac_ext <<_ACEOF
7085 /* end confdefs.h.  */
7086 #include <$ac_header>
7087 _ACEOF
7088 if { (ac_try="$ac_cpp conftest.$ac_ext"
7089 case "(($ac_try" in
7090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7091   *) ac_try_echo=$ac_try;;
7092 esac
7093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7094   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7095   ac_status=$?
7096   grep -v '^ *+' conftest.er1 >conftest.err
7097   rm -f conftest.er1
7098   cat conftest.err >&5
7099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7100   (exit $ac_status); } >/dev/null; then
7101   if test -s conftest.err; then
7102     ac_cpp_err=$ac_c_preproc_warn_flag
7103     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7104   else
7105     ac_cpp_err=
7106   fi
7107 else
7108   ac_cpp_err=yes
7109 fi
7110 if test -z "$ac_cpp_err"; then
7111   ac_header_preproc=yes
7112 else
7113   echo "$as_me: failed program was:" >&5
7114 sed 's/^/| /' conftest.$ac_ext >&5
7115
7116   ac_header_preproc=no
7117 fi
7118
7119 rm -f conftest.err conftest.$ac_ext
7120 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7121 echo "${ECHO_T}$ac_header_preproc" >&6; }
7122
7123 # So?  What about this header?
7124 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7125   yes:no: )
7126     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7127 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7128     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7129 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7130     ac_header_preproc=yes
7131     ;;
7132   no:yes:* )
7133     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7134 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7135     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7136 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7137     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7138 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7139     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7140 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7141     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7142 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7143     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7144 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7145     ( cat <<\_ASBOX
7146 ## ------------------------------- ##
7147 ## Report this to nfs@lists.sf.net ##
7148 ## ------------------------------- ##
7149 _ASBOX
7150      ) | sed "s/^/$as_me: WARNING:     /" >&2
7151     ;;
7152 esac
7153 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7154 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7155 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7156   echo $ECHO_N "(cached) $ECHO_C" >&6
7157 else
7158   eval "$as_ac_Header=\$ac_header_preproc"
7159 fi
7160 ac_res=`eval echo '${'$as_ac_Header'}'`
7161                { echo "$as_me:$LINENO: result: $ac_res" >&5
7162 echo "${ECHO_T}$ac_res" >&6; }
7163
7164 fi
7165 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7166   cat >>confdefs.h <<_ACEOF
7167 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7168 _ACEOF
7169
7170 fi
7171
7172 done
7173
7174
7175
7176 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7177     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7178     (test "X$CXX" != "Xg++"))) ; then
7179   ac_ext=cpp
7180 ac_cpp='$CXXCPP $CPPFLAGS'
7181 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7182 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7183 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7184 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7185 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
7186 if test -z "$CXXCPP"; then
7187   if test "${ac_cv_prog_CXXCPP+set}" = set; then
7188   echo $ECHO_N "(cached) $ECHO_C" >&6
7189 else
7190       # Double quotes because CXXCPP needs to be expanded
7191     for CXXCPP in "$CXX -E" "/lib/cpp"
7192     do
7193       ac_preproc_ok=false
7194 for ac_cxx_preproc_warn_flag in '' yes
7195 do
7196   # Use a header file that comes with gcc, so configuring glibc
7197   # with a fresh cross-compiler works.
7198   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7199   # <limits.h> exists even on freestanding compilers.
7200   # On the NeXT, cc -E runs the code through the compiler's parser,
7201   # not just through cpp. "Syntax error" is here to catch this case.
7202   cat >conftest.$ac_ext <<_ACEOF
7203 /* confdefs.h.  */
7204 _ACEOF
7205 cat confdefs.h >>conftest.$ac_ext
7206 cat >>conftest.$ac_ext <<_ACEOF
7207 /* end confdefs.h.  */
7208 #ifdef __STDC__
7209 # include <limits.h>
7210 #else
7211 # include <assert.h>
7212 #endif
7213                      Syntax error
7214 _ACEOF
7215 if { (ac_try="$ac_cpp conftest.$ac_ext"
7216 case "(($ac_try" in
7217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7218   *) ac_try_echo=$ac_try;;
7219 esac
7220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7221   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7222   ac_status=$?
7223   grep -v '^ *+' conftest.er1 >conftest.err
7224   rm -f conftest.er1
7225   cat conftest.err >&5
7226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7227   (exit $ac_status); } >/dev/null; then
7228   if test -s conftest.err; then
7229     ac_cpp_err=$ac_cxx_preproc_warn_flag
7230     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7231   else
7232     ac_cpp_err=
7233   fi
7234 else
7235   ac_cpp_err=yes
7236 fi
7237 if test -z "$ac_cpp_err"; then
7238   :
7239 else
7240   echo "$as_me: failed program was:" >&5
7241 sed 's/^/| /' conftest.$ac_ext >&5
7242
7243   # Broken: fails on valid input.
7244 continue
7245 fi
7246
7247 rm -f conftest.err conftest.$ac_ext
7248
7249   # OK, works on sane cases.  Now check whether nonexistent headers
7250   # can be detected and how.
7251   cat >conftest.$ac_ext <<_ACEOF
7252 /* confdefs.h.  */
7253 _ACEOF
7254 cat confdefs.h >>conftest.$ac_ext
7255 cat >>conftest.$ac_ext <<_ACEOF
7256 /* end confdefs.h.  */
7257 #include <ac_nonexistent.h>
7258 _ACEOF
7259 if { (ac_try="$ac_cpp conftest.$ac_ext"
7260 case "(($ac_try" in
7261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7262   *) ac_try_echo=$ac_try;;
7263 esac
7264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7265   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7266   ac_status=$?
7267   grep -v '^ *+' conftest.er1 >conftest.err
7268   rm -f conftest.er1
7269   cat conftest.err >&5
7270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7271   (exit $ac_status); } >/dev/null; then
7272   if test -s conftest.err; then
7273     ac_cpp_err=$ac_cxx_preproc_warn_flag
7274     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7275   else
7276     ac_cpp_err=
7277   fi
7278 else
7279   ac_cpp_err=yes
7280 fi
7281 if test -z "$ac_cpp_err"; then
7282   # Broken: success on invalid input.
7283 continue
7284 else
7285   echo "$as_me: failed program was:" >&5
7286 sed 's/^/| /' conftest.$ac_ext >&5
7287
7288   # Passes both tests.
7289 ac_preproc_ok=:
7290 break
7291 fi
7292
7293 rm -f conftest.err conftest.$ac_ext
7294
7295 done
7296 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7297 rm -f conftest.err conftest.$ac_ext
7298 if $ac_preproc_ok; then
7299   break
7300 fi
7301
7302     done
7303     ac_cv_prog_CXXCPP=$CXXCPP
7304
7305 fi
7306   CXXCPP=$ac_cv_prog_CXXCPP
7307 else
7308   ac_cv_prog_CXXCPP=$CXXCPP
7309 fi
7310 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
7311 echo "${ECHO_T}$CXXCPP" >&6; }
7312 ac_preproc_ok=false
7313 for ac_cxx_preproc_warn_flag in '' yes
7314 do
7315   # Use a header file that comes with gcc, so configuring glibc
7316   # with a fresh cross-compiler works.
7317   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7318   # <limits.h> exists even on freestanding compilers.
7319   # On the NeXT, cc -E runs the code through the compiler's parser,
7320   # not just through cpp. "Syntax error" is here to catch this case.
7321   cat >conftest.$ac_ext <<_ACEOF
7322 /* confdefs.h.  */
7323 _ACEOF
7324 cat confdefs.h >>conftest.$ac_ext
7325 cat >>conftest.$ac_ext <<_ACEOF
7326 /* end confdefs.h.  */
7327 #ifdef __STDC__
7328 # include <limits.h>
7329 #else
7330 # include <assert.h>
7331 #endif
7332                      Syntax error
7333 _ACEOF
7334 if { (ac_try="$ac_cpp conftest.$ac_ext"
7335 case "(($ac_try" in
7336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7337   *) ac_try_echo=$ac_try;;
7338 esac
7339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7340   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7341   ac_status=$?
7342   grep -v '^ *+' conftest.er1 >conftest.err
7343   rm -f conftest.er1
7344   cat conftest.err >&5
7345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7346   (exit $ac_status); } >/dev/null; then
7347   if test -s conftest.err; then
7348     ac_cpp_err=$ac_cxx_preproc_warn_flag
7349     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7350   else
7351     ac_cpp_err=
7352   fi
7353 else
7354   ac_cpp_err=yes
7355 fi
7356 if test -z "$ac_cpp_err"; then
7357   :
7358 else
7359   echo "$as_me: failed program was:" >&5
7360 sed 's/^/| /' conftest.$ac_ext >&5
7361
7362   # Broken: fails on valid input.
7363 continue
7364 fi
7365
7366 rm -f conftest.err conftest.$ac_ext
7367
7368   # OK, works on sane cases.  Now check whether nonexistent headers
7369   # can be detected and how.
7370   cat >conftest.$ac_ext <<_ACEOF
7371 /* confdefs.h.  */
7372 _ACEOF
7373 cat confdefs.h >>conftest.$ac_ext
7374 cat >>conftest.$ac_ext <<_ACEOF
7375 /* end confdefs.h.  */
7376 #include <ac_nonexistent.h>
7377 _ACEOF
7378 if { (ac_try="$ac_cpp conftest.$ac_ext"
7379 case "(($ac_try" in
7380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7381   *) ac_try_echo=$ac_try;;
7382 esac
7383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7384   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7385   ac_status=$?
7386   grep -v '^ *+' conftest.er1 >conftest.err
7387   rm -f conftest.er1
7388   cat conftest.err >&5
7389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7390   (exit $ac_status); } >/dev/null; then
7391   if test -s conftest.err; then
7392     ac_cpp_err=$ac_cxx_preproc_warn_flag
7393     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7394   else
7395     ac_cpp_err=
7396   fi
7397 else
7398   ac_cpp_err=yes
7399 fi
7400 if test -z "$ac_cpp_err"; then
7401   # Broken: success on invalid input.
7402 continue
7403 else
7404   echo "$as_me: failed program was:" >&5
7405 sed 's/^/| /' conftest.$ac_ext >&5
7406
7407   # Passes both tests.
7408 ac_preproc_ok=:
7409 break
7410 fi
7411
7412 rm -f conftest.err conftest.$ac_ext
7413
7414 done
7415 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7416 rm -f conftest.err conftest.$ac_ext
7417 if $ac_preproc_ok; then
7418   :
7419 else
7420   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7421 See \`config.log' for more details." >&5
7422 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7423 See \`config.log' for more details." >&2;}
7424    { (exit 1); exit 1; }; }
7425 fi
7426
7427 ac_ext=cpp
7428 ac_cpp='$CXXCPP $CPPFLAGS'
7429 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7430 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7431 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7432
7433 fi
7434
7435
7436 ac_ext=f
7437 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7438 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7439 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7440 if test -n "$ac_tool_prefix"; then
7441   for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
7442   do
7443     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7444 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7445 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7447 if test "${ac_cv_prog_F77+set}" = set; then
7448   echo $ECHO_N "(cached) $ECHO_C" >&6
7449 else
7450   if test -n "$F77"; then
7451   ac_cv_prog_F77="$F77" # Let the user override the test.
7452 else
7453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7454 for as_dir in $PATH
7455 do
7456   IFS=$as_save_IFS
7457   test -z "$as_dir" && as_dir=.
7458   for ac_exec_ext in '' $ac_executable_extensions; do
7459   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7460     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7461     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7462     break 2
7463   fi
7464 done
7465 done
7466 IFS=$as_save_IFS
7467
7468 fi
7469 fi
7470 F77=$ac_cv_prog_F77
7471 if test -n "$F77"; then
7472   { echo "$as_me:$LINENO: result: $F77" >&5
7473 echo "${ECHO_T}$F77" >&6; }
7474 else
7475   { echo "$as_me:$LINENO: result: no" >&5
7476 echo "${ECHO_T}no" >&6; }
7477 fi
7478
7479
7480     test -n "$F77" && break
7481   done
7482 fi
7483 if test -z "$F77"; then
7484   ac_ct_F77=$F77
7485   for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
7486 do
7487   # Extract the first word of "$ac_prog", so it can be a program name with args.
7488 set dummy $ac_prog; ac_word=$2
7489 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7491 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7492   echo $ECHO_N "(cached) $ECHO_C" >&6
7493 else
7494   if test -n "$ac_ct_F77"; then
7495   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7496 else
7497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7498 for as_dir in $PATH
7499 do
7500   IFS=$as_save_IFS
7501   test -z "$as_dir" && as_dir=.
7502   for ac_exec_ext in '' $ac_executable_extensions; do
7503   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7504     ac_cv_prog_ac_ct_F77="$ac_prog"
7505     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7506     break 2
7507   fi
7508 done
7509 done
7510 IFS=$as_save_IFS
7511
7512 fi
7513 fi
7514 ac_ct_F77=$ac_cv_prog_ac_ct_F77
7515 if test -n "$ac_ct_F77"; then
7516   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7517 echo "${ECHO_T}$ac_ct_F77" >&6; }
7518 else
7519   { echo "$as_me:$LINENO: result: no" >&5
7520 echo "${ECHO_T}no" >&6; }
7521 fi
7522
7523
7524   test -n "$ac_ct_F77" && break
7525 done
7526
7527   if test "x$ac_ct_F77" = x; then
7528     F77=""
7529   else
7530     case $cross_compiling:$ac_tool_warned in
7531 yes:)
7532 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7533 whose name does not start with the host triplet.  If you think this
7534 configuration is useful to you, please write to autoconf@gnu.org." >&5
7535 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7536 whose name does not start with the host triplet.  If you think this
7537 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7538 ac_tool_warned=yes ;;
7539 esac
7540     F77=$ac_ct_F77
7541   fi
7542 fi
7543
7544
7545 # Provide some information about the compiler.
7546 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
7547 ac_compiler=`set X $ac_compile; echo $2`
7548 { (ac_try="$ac_compiler --version >&5"
7549 case "(($ac_try" in
7550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7551   *) ac_try_echo=$ac_try;;
7552 esac
7553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7554   (eval "$ac_compiler --version >&5") 2>&5
7555   ac_status=$?
7556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7557   (exit $ac_status); }
7558 { (ac_try="$ac_compiler -v >&5"
7559 case "(($ac_try" in
7560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7561   *) ac_try_echo=$ac_try;;
7562 esac
7563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7564   (eval "$ac_compiler -v >&5") 2>&5
7565   ac_status=$?
7566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7567   (exit $ac_status); }
7568 { (ac_try="$ac_compiler -V >&5"
7569 case "(($ac_try" in
7570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7571   *) ac_try_echo=$ac_try;;
7572 esac
7573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7574   (eval "$ac_compiler -V >&5") 2>&5
7575   ac_status=$?
7576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7577   (exit $ac_status); }
7578 rm -f a.out
7579
7580 # If we don't use `.F' as extension, the preprocessor is not run on the
7581 # input file.  (Note that this only needs to work for GNU compilers.)
7582 ac_save_ext=$ac_ext
7583 ac_ext=F
7584 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7585 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
7586 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7587   echo $ECHO_N "(cached) $ECHO_C" >&6
7588 else
7589   cat >conftest.$ac_ext <<_ACEOF
7590       program main
7591 #ifndef __GNUC__
7592        choke me
7593 #endif
7594
7595       end
7596 _ACEOF
7597 rm -f conftest.$ac_objext
7598 if { (ac_try="$ac_compile"
7599 case "(($ac_try" in
7600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7601   *) ac_try_echo=$ac_try;;
7602 esac
7603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7604   (eval "$ac_compile") 2>conftest.er1
7605   ac_status=$?
7606   grep -v '^ *+' conftest.er1 >conftest.err
7607   rm -f conftest.er1
7608   cat conftest.err >&5
7609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7610   (exit $ac_status); } &&
7611          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
7612   { (case "(($ac_try" in
7613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7614   *) ac_try_echo=$ac_try;;
7615 esac
7616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7617   (eval "$ac_try") 2>&5
7618   ac_status=$?
7619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7620   (exit $ac_status); }; } &&
7621          { ac_try='test -s conftest.$ac_objext'
7622   { (case "(($ac_try" in
7623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7624   *) ac_try_echo=$ac_try;;
7625 esac
7626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7627   (eval "$ac_try") 2>&5
7628   ac_status=$?
7629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7630   (exit $ac_status); }; }; then
7631   ac_compiler_gnu=yes
7632 else
7633   echo "$as_me: failed program was:" >&5
7634 sed 's/^/| /' conftest.$ac_ext >&5
7635
7636         ac_compiler_gnu=no
7637 fi
7638
7639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7640 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7641
7642 fi
7643 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7644 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
7645 ac_ext=$ac_save_ext
7646 ac_test_FFLAGS=${FFLAGS+set}
7647 ac_save_FFLAGS=$FFLAGS
7648 FFLAGS=
7649 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7650 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
7651 if test "${ac_cv_prog_f77_g+set}" = set; then
7652   echo $ECHO_N "(cached) $ECHO_C" >&6
7653 else
7654   FFLAGS=-g
7655 cat >conftest.$ac_ext <<_ACEOF
7656       program main
7657
7658       end
7659 _ACEOF
7660 rm -f conftest.$ac_objext
7661 if { (ac_try="$ac_compile"
7662 case "(($ac_try" in
7663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7664   *) ac_try_echo=$ac_try;;
7665 esac
7666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7667   (eval "$ac_compile") 2>conftest.er1
7668   ac_status=$?
7669   grep -v '^ *+' conftest.er1 >conftest.err
7670   rm -f conftest.er1
7671   cat conftest.err >&5
7672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7673   (exit $ac_status); } &&
7674          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
7675   { (case "(($ac_try" in
7676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7677   *) ac_try_echo=$ac_try;;
7678 esac
7679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7680   (eval "$ac_try") 2>&5
7681   ac_status=$?
7682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7683   (exit $ac_status); }; } &&
7684          { ac_try='test -s conftest.$ac_objext'
7685   { (case "(($ac_try" in
7686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7687   *) ac_try_echo=$ac_try;;
7688 esac
7689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7690   (eval "$ac_try") 2>&5
7691   ac_status=$?
7692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7693   (exit $ac_status); }; }; then
7694   ac_cv_prog_f77_g=yes
7695 else
7696   echo "$as_me: failed program was:" >&5
7697 sed 's/^/| /' conftest.$ac_ext >&5
7698
7699         ac_cv_prog_f77_g=no
7700 fi
7701
7702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7703
7704 fi
7705 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7706 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
7707 if test "$ac_test_FFLAGS" = set; then
7708   FFLAGS=$ac_save_FFLAGS
7709 elif test $ac_cv_prog_f77_g = yes; then
7710   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7711     FFLAGS="-g -O2"
7712   else
7713     FFLAGS="-g"
7714   fi
7715 else
7716   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7717     FFLAGS="-O2"
7718   else
7719     FFLAGS=
7720   fi
7721 fi
7722
7723 G77=`test $ac_compiler_gnu = yes && echo yes`
7724 ac_ext=c
7725 ac_cpp='$CPP $CPPFLAGS'
7726 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7727 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7728 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7729
7730
7731
7732 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7733
7734 # find the maximum length of command line arguments
7735 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7736 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
7737 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7738   echo $ECHO_N "(cached) $ECHO_C" >&6
7739 else
7740     i=0
7741   teststring="ABCD"
7742
7743   case $build_os in
7744   msdosdjgpp*)
7745     # On DJGPP, this test can blow up pretty badly due to problems in libc
7746     # (any single argument exceeding 2000 bytes causes a buffer overrun
7747     # during glob expansion).  Even if it were fixed, the result of this
7748     # check would be larger than it should be.
7749     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7750     ;;
7751
7752   gnu*)
7753     # Under GNU Hurd, this test is not required because there is
7754     # no limit to the length of command line arguments.
7755     # Libtool will interpret -1 as no limit whatsoever
7756     lt_cv_sys_max_cmd_len=-1;
7757     ;;
7758
7759   cygwin* | mingw*)
7760     # On Win9x/ME, this test blows up -- it succeeds, but takes
7761     # about 5 minutes as the teststring grows exponentially.
7762     # Worse, since 9x/ME are not pre-emptively multitasking,
7763     # you end up with a "frozen" computer, even though with patience
7764     # the test eventually succeeds (with a max line length of 256k).
7765     # Instead, let's just punt: use the minimum linelength reported by
7766     # all of the supported platforms: 8192 (on NT/2K/XP).
7767     lt_cv_sys_max_cmd_len=8192;
7768     ;;
7769
7770   amigaos*)
7771     # On AmigaOS with pdksh, this test takes hours, literally.
7772     # So we just punt and use a minimum line length of 8192.
7773     lt_cv_sys_max_cmd_len=8192;
7774     ;;
7775
7776   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7777     # This has been around since 386BSD, at least.  Likely further.
7778     if test -x /sbin/sysctl; then
7779       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7780     elif test -x /usr/sbin/sysctl; then
7781       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7782     else
7783       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7784     fi
7785     # And add a safety zone
7786     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7787     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7788     ;;
7789
7790   interix*)
7791     # We know the value 262144 and hardcode it with a safety zone (like BSD)
7792     lt_cv_sys_max_cmd_len=196608
7793     ;;
7794
7795   osf*)
7796     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7797     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7798     # nice to cause kernel panics so lets avoid the loop below.
7799     # First set a reasonable default.
7800     lt_cv_sys_max_cmd_len=16384
7801     #
7802     if test -x /sbin/sysconfig; then
7803       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7804         *1*) lt_cv_sys_max_cmd_len=-1 ;;
7805       esac
7806     fi
7807     ;;
7808   sco3.2v5*)
7809     lt_cv_sys_max_cmd_len=102400
7810     ;;
7811   sysv5* | sco5v6* | sysv4.2uw2*)
7812     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7813     if test -n "$kargmax"; then
7814       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
7815     else
7816       lt_cv_sys_max_cmd_len=32768
7817     fi
7818     ;;
7819   *)
7820     # If test is not a shell built-in, we'll probably end up computing a
7821     # maximum length that is only half of the actual maximum length, but
7822     # we can't tell.
7823     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7824     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7825                = "XX$teststring") >/dev/null 2>&1 &&
7826             new_result=`expr "X$teststring" : ".*" 2>&1` &&
7827             lt_cv_sys_max_cmd_len=$new_result &&
7828             test $i != 17 # 1/2 MB should be enough
7829     do
7830       i=`expr $i + 1`
7831       teststring=$teststring$teststring
7832     done
7833     teststring=
7834     # Add a significant safety factor because C++ compilers can tack on massive
7835     # amounts of additional arguments before passing them to the linker.
7836     # It appears as though 1/2 is a usable value.
7837     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7838     ;;
7839   esac
7840
7841 fi
7842
7843 if test -n $lt_cv_sys_max_cmd_len ; then
7844   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7845 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
7846 else
7847   { echo "$as_me:$LINENO: result: none" >&5
7848 echo "${ECHO_T}none" >&6; }
7849 fi
7850
7851
7852
7853
7854 # Check for command to grab the raw symbol name followed by C symbol from nm.
7855 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7856 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
7857 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7858   echo $ECHO_N "(cached) $ECHO_C" >&6
7859 else
7860
7861 # These are sane defaults that work on at least a few old systems.
7862 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7863
7864 # Character class describing NM global symbol codes.
7865 symcode='[BCDEGRST]'
7866
7867 # Regexp to match symbols that can be accessed directly from C.
7868 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7869
7870 # Transform an extracted symbol line into a proper C declaration
7871 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7872
7873 # Transform an extracted symbol line into symbol name and symbol address
7874 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'"
7875
7876 # Define system-specific variables.
7877 case $host_os in
7878 aix*)
7879   symcode='[BCDT]'
7880   ;;
7881 cygwin* | mingw* | pw32*)
7882   symcode='[ABCDGISTW]'
7883   ;;
7884 hpux*) # Its linker distinguishes data from code symbols
7885   if test "$host_cpu" = ia64; then
7886     symcode='[ABCDEGRST]'
7887   fi
7888   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7889   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'"
7890   ;;
7891 linux* | k*bsd*-gnu)
7892   if test "$host_cpu" = ia64; then
7893     symcode='[ABCDGIRSTW]'
7894     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7895     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'"
7896   fi
7897   ;;
7898 irix* | nonstopux*)
7899   symcode='[BCDEGRST]'
7900   ;;
7901 osf*)
7902   symcode='[BCDEGQRST]'
7903   ;;
7904 solaris*)
7905   symcode='[BDRT]'
7906   ;;
7907 sco3.2v5*)
7908   symcode='[DT]'
7909   ;;
7910 sysv4.2uw2*)
7911   symcode='[DT]'
7912   ;;
7913 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7914   symcode='[ABDT]'
7915   ;;
7916 sysv4)
7917   symcode='[DFNSTU]'
7918   ;;
7919 esac
7920
7921 # Handle CRLF in mingw tool chain
7922 opt_cr=
7923 case $build_os in
7924 mingw*)
7925   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7926   ;;
7927 esac
7928
7929 # If we're using GNU nm, then use its standard symbol codes.
7930 case `$NM -V 2>&1` in
7931 *GNU* | *'with BFD'*)
7932   symcode='[ABCDGIRSTW]' ;;
7933 esac
7934
7935 # Try without a prefix undercore, then with it.
7936 for ac_symprfx in "" "_"; do
7937
7938   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7939   symxfrm="\\1 $ac_symprfx\\2 \\2"
7940
7941   # Write the raw and C identifiers.
7942   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7943
7944   # Check to see that the pipe works correctly.
7945   pipe_works=no
7946
7947   rm -f conftest*
7948   cat > conftest.$ac_ext <<EOF
7949 #ifdef __cplusplus
7950 extern "C" {
7951 #endif
7952 char nm_test_var;
7953 void nm_test_func(){}
7954 #ifdef __cplusplus
7955 }
7956 #endif
7957 int main(){nm_test_var='a';nm_test_func();return(0);}
7958 EOF
7959
7960   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7961   (eval $ac_compile) 2>&5
7962   ac_status=$?
7963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7964   (exit $ac_status); }; then
7965     # Now try to grab the symbols.
7966     nlist=conftest.nm
7967     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7968   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7969   ac_status=$?
7970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7971   (exit $ac_status); } && test -s "$nlist"; then
7972       # Try sorting and uniquifying the output.
7973       if sort "$nlist" | uniq > "$nlist"T; then
7974         mv -f "$nlist"T "$nlist"
7975       else
7976         rm -f "$nlist"T
7977       fi
7978
7979       # Make sure that we snagged all the symbols we need.
7980       if grep ' nm_test_var$' "$nlist" >/dev/null; then
7981         if grep ' nm_test_func$' "$nlist" >/dev/null; then
7982           cat <<EOF > conftest.$ac_ext
7983 #ifdef __cplusplus
7984 extern "C" {
7985 #endif
7986
7987 EOF
7988           # Now generate the symbol file.
7989           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7990
7991           cat <<EOF >> conftest.$ac_ext
7992 #if defined (__STDC__) && __STDC__
7993 # define lt_ptr_t void *
7994 #else
7995 # define lt_ptr_t char *
7996 # define const
7997 #endif
7998
7999 /* The mapping between symbol names and symbols. */
8000 const struct {
8001   const char *name;
8002   lt_ptr_t address;
8003 }
8004 lt_preloaded_symbols[] =
8005 {
8006 EOF
8007           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
8008           cat <<\EOF >> conftest.$ac_ext
8009   {0, (lt_ptr_t) 0}
8010 };
8011
8012 #ifdef __cplusplus
8013 }
8014 #endif
8015 EOF
8016           # Now try linking the two files.
8017           mv conftest.$ac_objext conftstm.$ac_objext
8018           lt_save_LIBS="$LIBS"
8019           lt_save_CFLAGS="$CFLAGS"
8020           LIBS="conftstm.$ac_objext"
8021           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8022           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8023   (eval $ac_link) 2>&5
8024   ac_status=$?
8025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8026   (exit $ac_status); } && test -s conftest${ac_exeext}; then
8027             pipe_works=yes
8028           fi
8029           LIBS="$lt_save_LIBS"
8030           CFLAGS="$lt_save_CFLAGS"
8031         else
8032           echo "cannot find nm_test_func in $nlist" >&5
8033         fi
8034       else
8035         echo "cannot find nm_test_var in $nlist" >&5
8036       fi
8037     else
8038       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8039     fi
8040   else
8041     echo "$progname: failed program was:" >&5
8042     cat conftest.$ac_ext >&5
8043   fi
8044   rm -f conftest* conftst*
8045
8046   # Do not use the global_symbol_pipe unless it works.
8047   if test "$pipe_works" = yes; then
8048     break
8049   else
8050     lt_cv_sys_global_symbol_pipe=
8051   fi
8052 done
8053
8054 fi
8055
8056 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8057   lt_cv_sys_global_symbol_to_cdecl=
8058 fi
8059 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8060   { echo "$as_me:$LINENO: result: failed" >&5
8061 echo "${ECHO_T}failed" >&6; }
8062 else
8063   { echo "$as_me:$LINENO: result: ok" >&5
8064 echo "${ECHO_T}ok" >&6; }
8065 fi
8066
8067 { echo "$as_me:$LINENO: checking for objdir" >&5
8068 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
8069 if test "${lt_cv_objdir+set}" = set; then
8070   echo $ECHO_N "(cached) $ECHO_C" >&6
8071 else
8072   rm -f .libs 2>/dev/null
8073 mkdir .libs 2>/dev/null
8074 if test -d .libs; then
8075   lt_cv_objdir=.libs
8076 else
8077   # MS-DOS does not allow filenames that begin with a dot.
8078   lt_cv_objdir=_libs
8079 fi
8080 rmdir .libs 2>/dev/null
8081 fi
8082 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8083 echo "${ECHO_T}$lt_cv_objdir" >&6; }
8084 objdir=$lt_cv_objdir
8085
8086
8087
8088
8089
8090 case $host_os in
8091 aix3*)
8092   # AIX sometimes has problems with the GCC collect2 program.  For some
8093   # reason, if we set the COLLECT_NAMES environment variable, the problems
8094   # vanish in a puff of smoke.
8095   if test "X${COLLECT_NAMES+set}" != Xset; then
8096     COLLECT_NAMES=
8097     export COLLECT_NAMES
8098   fi
8099   ;;
8100 esac
8101
8102 # Sed substitution that helps us do robust quoting.  It backslashifies
8103 # metacharacters that are still active within double-quoted strings.
8104 Xsed='sed -e 1s/^X//'
8105 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
8106
8107 # Same as above, but do not quote variable references.
8108 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
8109
8110 # Sed substitution to delay expansion of an escaped shell variable in a
8111 # double_quote_subst'ed string.
8112 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8113
8114 # Sed substitution to avoid accidental globbing in evaled expressions
8115 no_glob_subst='s/\*/\\\*/g'
8116
8117 # Constants:
8118 rm="rm -f"
8119
8120 # Global variables:
8121 default_ofile=libtool
8122 can_build_shared=yes
8123
8124 # All known linkers require a `.a' archive for static linking (except MSVC,
8125 # which needs '.lib').
8126 libext=a
8127 ltmain="$ac_aux_dir/ltmain.sh"
8128 ofile="$default_ofile"
8129 with_gnu_ld="$lt_cv_prog_gnu_ld"
8130
8131 if test -n "$ac_tool_prefix"; then
8132   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8133 set dummy ${ac_tool_prefix}ar; ac_word=$2
8134 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8135 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8136 if test "${ac_cv_prog_AR+set}" = set; then
8137   echo $ECHO_N "(cached) $ECHO_C" >&6
8138 else
8139   if test -n "$AR"; then
8140   ac_cv_prog_AR="$AR" # Let the user override the test.
8141 else
8142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8143 for as_dir in $PATH
8144 do
8145   IFS=$as_save_IFS
8146   test -z "$as_dir" && as_dir=.
8147   for ac_exec_ext in '' $ac_executable_extensions; do
8148   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8149     ac_cv_prog_AR="${ac_tool_prefix}ar"
8150     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8151     break 2
8152   fi
8153 done
8154 done
8155 IFS=$as_save_IFS
8156
8157 fi
8158 fi
8159 AR=$ac_cv_prog_AR
8160 if test -n "$AR"; then
8161   { echo "$as_me:$LINENO: result: $AR" >&5
8162 echo "${ECHO_T}$AR" >&6; }
8163 else
8164   { echo "$as_me:$LINENO: result: no" >&5
8165 echo "${ECHO_T}no" >&6; }
8166 fi
8167
8168
8169 fi
8170 if test -z "$ac_cv_prog_AR"; then
8171   ac_ct_AR=$AR
8172   # Extract the first word of "ar", so it can be a program name with args.
8173 set dummy ar; ac_word=$2
8174 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8176 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8177   echo $ECHO_N "(cached) $ECHO_C" >&6
8178 else
8179   if test -n "$ac_ct_AR"; then
8180   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8181 else
8182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8183 for as_dir in $PATH
8184 do
8185   IFS=$as_save_IFS
8186   test -z "$as_dir" && as_dir=.
8187   for ac_exec_ext in '' $ac_executable_extensions; do
8188   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8189     ac_cv_prog_ac_ct_AR="ar"
8190     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8191     break 2
8192   fi
8193 done
8194 done
8195 IFS=$as_save_IFS
8196
8197 fi
8198 fi
8199 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8200 if test -n "$ac_ct_AR"; then
8201   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8202 echo "${ECHO_T}$ac_ct_AR" >&6; }
8203 else
8204   { echo "$as_me:$LINENO: result: no" >&5
8205 echo "${ECHO_T}no" >&6; }
8206 fi
8207
8208   if test "x$ac_ct_AR" = x; then
8209     AR="false"
8210   else
8211     case $cross_compiling:$ac_tool_warned in
8212 yes:)
8213 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8214 whose name does not start with the host triplet.  If you think this
8215 configuration is useful to you, please write to autoconf@gnu.org." >&5
8216 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8217 whose name does not start with the host triplet.  If you think this
8218 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8219 ac_tool_warned=yes ;;
8220 esac
8221     AR=$ac_ct_AR
8222   fi
8223 else
8224   AR="$ac_cv_prog_AR"
8225 fi
8226
8227 if test -n "$ac_tool_prefix"; then
8228   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8229 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8230 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8231 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8232 if test "${ac_cv_prog_RANLIB+set}" = set; then
8233   echo $ECHO_N "(cached) $ECHO_C" >&6
8234 else
8235   if test -n "$RANLIB"; then
8236   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8237 else
8238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8239 for as_dir in $PATH
8240 do
8241   IFS=$as_save_IFS
8242   test -z "$as_dir" && as_dir=.
8243   for ac_exec_ext in '' $ac_executable_extensions; do
8244   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8245     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8246     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8247     break 2
8248   fi
8249 done
8250 done
8251 IFS=$as_save_IFS
8252
8253 fi
8254 fi
8255 RANLIB=$ac_cv_prog_RANLIB
8256 if test -n "$RANLIB"; then
8257   { echo "$as_me:$LINENO: result: $RANLIB" >&5
8258 echo "${ECHO_T}$RANLIB" >&6; }
8259 else
8260   { echo "$as_me:$LINENO: result: no" >&5
8261 echo "${ECHO_T}no" >&6; }
8262 fi
8263
8264
8265 fi
8266 if test -z "$ac_cv_prog_RANLIB"; then
8267   ac_ct_RANLIB=$RANLIB
8268   # Extract the first word of "ranlib", so it can be a program name with args.
8269 set dummy ranlib; ac_word=$2
8270 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8271 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8272 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8273   echo $ECHO_N "(cached) $ECHO_C" >&6
8274 else
8275   if test -n "$ac_ct_RANLIB"; then
8276   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8277 else
8278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8279 for as_dir in $PATH
8280 do
8281   IFS=$as_save_IFS
8282   test -z "$as_dir" && as_dir=.
8283   for ac_exec_ext in '' $ac_executable_extensions; do
8284   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8285     ac_cv_prog_ac_ct_RANLIB="ranlib"
8286     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8287     break 2
8288   fi
8289 done
8290 done
8291 IFS=$as_save_IFS
8292
8293 fi
8294 fi
8295 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8296 if test -n "$ac_ct_RANLIB"; then
8297   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8298 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
8299 else
8300   { echo "$as_me:$LINENO: result: no" >&5
8301 echo "${ECHO_T}no" >&6; }
8302 fi
8303
8304   if test "x$ac_ct_RANLIB" = x; then
8305     RANLIB=":"
8306   else
8307     case $cross_compiling:$ac_tool_warned in
8308 yes:)
8309 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8310 whose name does not start with the host triplet.  If you think this
8311 configuration is useful to you, please write to autoconf@gnu.org." >&5
8312 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8313 whose name does not start with the host triplet.  If you think this
8314 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8315 ac_tool_warned=yes ;;
8316 esac
8317     RANLIB=$ac_ct_RANLIB
8318   fi
8319 else
8320   RANLIB="$ac_cv_prog_RANLIB"
8321 fi
8322
8323 if test -n "$ac_tool_prefix"; then
8324   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8325 set dummy ${ac_tool_prefix}strip; ac_word=$2
8326 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8327 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8328 if test "${ac_cv_prog_STRIP+set}" = set; then
8329   echo $ECHO_N "(cached) $ECHO_C" >&6
8330 else
8331   if test -n "$STRIP"; then
8332   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8333 else
8334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8335 for as_dir in $PATH
8336 do
8337   IFS=$as_save_IFS
8338   test -z "$as_dir" && as_dir=.
8339   for ac_exec_ext in '' $ac_executable_extensions; do
8340   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8341     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8342     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8343     break 2
8344   fi
8345 done
8346 done
8347 IFS=$as_save_IFS
8348
8349 fi
8350 fi
8351 STRIP=$ac_cv_prog_STRIP
8352 if test -n "$STRIP"; then
8353   { echo "$as_me:$LINENO: result: $STRIP" >&5
8354 echo "${ECHO_T}$STRIP" >&6; }
8355 else
8356   { echo "$as_me:$LINENO: result: no" >&5
8357 echo "${ECHO_T}no" >&6; }
8358 fi
8359
8360
8361 fi
8362 if test -z "$ac_cv_prog_STRIP"; then
8363   ac_ct_STRIP=$STRIP
8364   # Extract the first word of "strip", so it can be a program name with args.
8365 set dummy strip; ac_word=$2
8366 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8367 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8368 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8369   echo $ECHO_N "(cached) $ECHO_C" >&6
8370 else
8371   if test -n "$ac_ct_STRIP"; then
8372   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8373 else
8374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8375 for as_dir in $PATH
8376 do
8377   IFS=$as_save_IFS
8378   test -z "$as_dir" && as_dir=.
8379   for ac_exec_ext in '' $ac_executable_extensions; do
8380   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8381     ac_cv_prog_ac_ct_STRIP="strip"
8382     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8383     break 2
8384   fi
8385 done
8386 done
8387 IFS=$as_save_IFS
8388
8389 fi
8390 fi
8391 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8392 if test -n "$ac_ct_STRIP"; then
8393   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8394 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
8395 else
8396   { echo "$as_me:$LINENO: result: no" >&5
8397 echo "${ECHO_T}no" >&6; }
8398 fi
8399
8400   if test "x$ac_ct_STRIP" = x; then
8401     STRIP=":"
8402   else
8403     case $cross_compiling:$ac_tool_warned in
8404 yes:)
8405 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8406 whose name does not start with the host triplet.  If you think this
8407 configuration is useful to you, please write to autoconf@gnu.org." >&5
8408 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8409 whose name does not start with the host triplet.  If you think this
8410 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8411 ac_tool_warned=yes ;;
8412 esac
8413     STRIP=$ac_ct_STRIP
8414   fi
8415 else
8416   STRIP="$ac_cv_prog_STRIP"
8417 fi
8418
8419
8420 old_CC="$CC"
8421 old_CFLAGS="$CFLAGS"
8422
8423 # Set sane defaults for various variables
8424 test -z "$AR" && AR=ar
8425 test -z "$AR_FLAGS" && AR_FLAGS=cru
8426 test -z "$AS" && AS=as
8427 test -z "$CC" && CC=cc
8428 test -z "$LTCC" && LTCC=$CC
8429 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8430 test -z "$DLLTOOL" && DLLTOOL=dlltool
8431 test -z "$LD" && LD=ld
8432 test -z "$LN_S" && LN_S="ln -s"
8433 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8434 test -z "$NM" && NM=nm
8435 test -z "$SED" && SED=sed
8436 test -z "$OBJDUMP" && OBJDUMP=objdump
8437 test -z "$RANLIB" && RANLIB=:
8438 test -z "$STRIP" && STRIP=:
8439 test -z "$ac_objext" && ac_objext=o
8440
8441 # Determine commands to create old-style static archives.
8442 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8443 old_postinstall_cmds='chmod 644 $oldlib'
8444 old_postuninstall_cmds=
8445
8446 if test -n "$RANLIB"; then
8447   case $host_os in
8448   openbsd*)
8449     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8450     ;;
8451   *)
8452     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8453     ;;
8454   esac
8455   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8456 fi
8457
8458 for cc_temp in $compiler""; do
8459   case $cc_temp in
8460     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8461     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8462     \-*) ;;
8463     *) break;;
8464   esac
8465 done
8466 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8467
8468
8469 # Only perform the check for file, if the check method requires it
8470 case $deplibs_check_method in
8471 file_magic*)
8472   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8473     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8474 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
8475 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8476   echo $ECHO_N "(cached) $ECHO_C" >&6
8477 else
8478   case $MAGIC_CMD in
8479 [\\/*] |  ?:[\\/]*)
8480   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8481   ;;
8482 *)
8483   lt_save_MAGIC_CMD="$MAGIC_CMD"
8484   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8485   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8486   for ac_dir in $ac_dummy; do
8487     IFS="$lt_save_ifs"
8488     test -z "$ac_dir" && ac_dir=.
8489     if test -f $ac_dir/${ac_tool_prefix}file; then
8490       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8491       if test -n "$file_magic_test_file"; then
8492         case $deplibs_check_method in
8493         "file_magic "*)
8494           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8495           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8496           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8497             $EGREP "$file_magic_regex" > /dev/null; then
8498             :
8499           else
8500             cat <<EOF 1>&2
8501
8502 *** Warning: the command libtool uses to detect shared libraries,
8503 *** $file_magic_cmd, produces output that libtool cannot recognize.
8504 *** The result is that libtool may fail to recognize shared libraries
8505 *** as such.  This will affect the creation of libtool libraries that
8506 *** depend on shared libraries, but programs linked with such libtool
8507 *** libraries will work regardless of this problem.  Nevertheless, you
8508 *** may want to report the problem to your system manager and/or to
8509 *** bug-libtool@gnu.org
8510
8511 EOF
8512           fi ;;
8513         esac
8514       fi
8515       break
8516     fi
8517   done
8518   IFS="$lt_save_ifs"
8519   MAGIC_CMD="$lt_save_MAGIC_CMD"
8520   ;;
8521 esac
8522 fi
8523
8524 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8525 if test -n "$MAGIC_CMD"; then
8526   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8527 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8528 else
8529   { echo "$as_me:$LINENO: result: no" >&5
8530 echo "${ECHO_T}no" >&6; }
8531 fi
8532
8533 if test -z "$lt_cv_path_MAGIC_CMD"; then
8534   if test -n "$ac_tool_prefix"; then
8535     { echo "$as_me:$LINENO: checking for file" >&5
8536 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
8537 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8538   echo $ECHO_N "(cached) $ECHO_C" >&6
8539 else
8540   case $MAGIC_CMD in
8541 [\\/*] |  ?:[\\/]*)
8542   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8543   ;;
8544 *)
8545   lt_save_MAGIC_CMD="$MAGIC_CMD"
8546   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8547   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8548   for ac_dir in $ac_dummy; do
8549     IFS="$lt_save_ifs"
8550     test -z "$ac_dir" && ac_dir=.
8551     if test -f $ac_dir/file; then
8552       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8553       if test -n "$file_magic_test_file"; then
8554         case $deplibs_check_method in
8555         "file_magic "*)
8556           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8557           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8558           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8559             $EGREP "$file_magic_regex" > /dev/null; then
8560             :
8561           else
8562             cat <<EOF 1>&2
8563
8564 *** Warning: the command libtool uses to detect shared libraries,
8565 *** $file_magic_cmd, produces output that libtool cannot recognize.
8566 *** The result is that libtool may fail to recognize shared libraries
8567 *** as such.  This will affect the creation of libtool libraries that
8568 *** depend on shared libraries, but programs linked with such libtool
8569 *** libraries will work regardless of this problem.  Nevertheless, you
8570 *** may want to report the problem to your system manager and/or to
8571 *** bug-libtool@gnu.org
8572
8573 EOF
8574           fi ;;
8575         esac
8576       fi
8577       break
8578     fi
8579   done
8580   IFS="$lt_save_ifs"
8581   MAGIC_CMD="$lt_save_MAGIC_CMD"
8582   ;;
8583 esac
8584 fi
8585
8586 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8587 if test -n "$MAGIC_CMD"; then
8588   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8589 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8590 else
8591   { echo "$as_me:$LINENO: result: no" >&5
8592 echo "${ECHO_T}no" >&6; }
8593 fi
8594
8595   else
8596     MAGIC_CMD=:
8597   fi
8598 fi
8599
8600   fi
8601   ;;
8602 esac
8603
8604 enable_dlopen=no
8605 enable_win32_dll=no
8606
8607 # Check whether --enable-libtool-lock was given.
8608 if test "${enable_libtool_lock+set}" = set; then
8609   enableval=$enable_libtool_lock;
8610 fi
8611
8612 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8613
8614
8615 # Check whether --with-pic was given.
8616 if test "${with_pic+set}" = set; then
8617   withval=$with_pic; pic_mode="$withval"
8618 else
8619   pic_mode=default
8620 fi
8621
8622 test -z "$pic_mode" && pic_mode=default
8623
8624 # Use C for the default configuration in the libtool script
8625 tagname=
8626 lt_save_CC="$CC"
8627 ac_ext=c
8628 ac_cpp='$CPP $CPPFLAGS'
8629 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8630 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8631 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8632
8633
8634 # Source file extension for C test sources.
8635 ac_ext=c
8636
8637 # Object file extension for compiled C test sources.
8638 objext=o
8639 objext=$objext
8640
8641 # Code to be used in simple compile tests
8642 lt_simple_compile_test_code="int some_variable = 0;\n"
8643
8644 # Code to be used in simple link tests
8645 lt_simple_link_test_code='int main(){return(0);}\n'
8646
8647
8648 # If no C compiler was specified, use CC.
8649 LTCC=${LTCC-"$CC"}
8650
8651 # If no C compiler flags were specified, use CFLAGS.
8652 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8653
8654 # Allow CC to be a program name with arguments.
8655 compiler=$CC
8656
8657
8658 # save warnings/boilerplate of simple test code
8659 ac_outfile=conftest.$ac_objext
8660 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8661 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8662 _lt_compiler_boilerplate=`cat conftest.err`
8663 $rm conftest*
8664
8665 ac_outfile=conftest.$ac_objext
8666 printf "$lt_simple_link_test_code" >conftest.$ac_ext
8667 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8668 _lt_linker_boilerplate=`cat conftest.err`
8669 $rm conftest*
8670
8671
8672
8673 lt_prog_compiler_no_builtin_flag=
8674
8675 if test "$GCC" = yes; then
8676   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8677
8678
8679 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8680 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
8681 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8682   echo $ECHO_N "(cached) $ECHO_C" >&6
8683 else
8684   lt_cv_prog_compiler_rtti_exceptions=no
8685   ac_outfile=conftest.$ac_objext
8686    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8687    lt_compiler_flag="-fno-rtti -fno-exceptions"
8688    # Insert the option either (1) after the last *FLAGS variable, or
8689    # (2) before a word containing "conftest.", or (3) at the end.
8690    # Note that $ac_compile itself does not contain backslashes and begins
8691    # with a dollar sign (not a hyphen), so the echo should work correctly.
8692    # The option is referenced via a variable to avoid confusing sed.
8693    lt_compile=`echo "$ac_compile" | $SED \
8694    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8695    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8696    -e 's:$: $lt_compiler_flag:'`
8697    (eval echo "\"\$as_me:8697: $lt_compile\"" >&5)
8698    (eval "$lt_compile" 2>conftest.err)
8699    ac_status=$?
8700    cat conftest.err >&5
8701    echo "$as_me:8701: \$? = $ac_status" >&5
8702    if (exit $ac_status) && test -s "$ac_outfile"; then
8703      # The compiler can only warn and ignore the option if not recognized
8704      # So say no if there are warnings other than the usual output.
8705      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8706      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8707      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8708        lt_cv_prog_compiler_rtti_exceptions=yes
8709      fi
8710    fi
8711    $rm conftest*
8712
8713 fi
8714 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8715 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8716
8717 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8718     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8719 else
8720     :
8721 fi
8722
8723 fi
8724
8725 lt_prog_compiler_wl=
8726 lt_prog_compiler_pic=
8727 lt_prog_compiler_static=
8728
8729 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8730 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
8731
8732   if test "$GCC" = yes; then
8733     lt_prog_compiler_wl='-Wl,'
8734     lt_prog_compiler_static='-static'
8735
8736     case $host_os in
8737       aix*)
8738       # All AIX code is PIC.
8739       if test "$host_cpu" = ia64; then
8740         # AIX 5 now supports IA64 processor
8741         lt_prog_compiler_static='-Bstatic'
8742       fi
8743       ;;
8744
8745     amigaos*)
8746       # FIXME: we need at least 68020 code to build shared libraries, but
8747       # adding the `-m68020' flag to GCC prevents building anything better,
8748       # like `-m68040'.
8749       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8750       ;;
8751
8752     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8753       # PIC is the default for these OSes.
8754       ;;
8755
8756     mingw* | pw32* | os2*)
8757       # This hack is so that the source file can tell whether it is being
8758       # built for inclusion in a dll (and should export symbols for example).
8759       lt_prog_compiler_pic='-DDLL_EXPORT'
8760       ;;
8761
8762     darwin* | rhapsody*)
8763       # PIC is the default on this platform
8764       # Common symbols not allowed in MH_DYLIB files
8765       lt_prog_compiler_pic='-fno-common'
8766       ;;
8767
8768     interix3*)
8769       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8770       # Instead, we relocate shared libraries at runtime.
8771       ;;
8772
8773     msdosdjgpp*)
8774       # Just because we use GCC doesn't mean we suddenly get shared libraries
8775       # on systems that don't support them.
8776       lt_prog_compiler_can_build_shared=no
8777       enable_shared=no
8778       ;;
8779
8780     sysv4*MP*)
8781       if test -d /usr/nec; then
8782         lt_prog_compiler_pic=-Kconform_pic
8783       fi
8784       ;;
8785
8786     hpux*)
8787       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8788       # not for PA HP-UX.
8789       case $host_cpu in
8790       hppa*64*|ia64*)
8791         # +Z the default
8792         ;;
8793       *)
8794         lt_prog_compiler_pic='-fPIC'
8795         ;;
8796       esac
8797       ;;
8798
8799     *)
8800       lt_prog_compiler_pic='-fPIC'
8801       ;;
8802     esac
8803   else
8804     # PORTME Check for flag to pass linker flags through the system compiler.
8805     case $host_os in
8806     aix*)
8807       lt_prog_compiler_wl='-Wl,'
8808       if test "$host_cpu" = ia64; then
8809         # AIX 5 now supports IA64 processor
8810         lt_prog_compiler_static='-Bstatic'
8811       else
8812         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8813       fi
8814       ;;
8815       darwin*)
8816         # PIC is the default on this platform
8817         # Common symbols not allowed in MH_DYLIB files
8818        case $cc_basename in
8819          xlc*)
8820          lt_prog_compiler_pic='-qnocommon'
8821          lt_prog_compiler_wl='-Wl,'
8822          ;;
8823        esac
8824        ;;
8825
8826     mingw* | pw32* | os2*)
8827       # This hack is so that the source file can tell whether it is being
8828       # built for inclusion in a dll (and should export symbols for example).
8829       lt_prog_compiler_pic='-DDLL_EXPORT'
8830       ;;
8831
8832     hpux9* | hpux10* | hpux11*)
8833       lt_prog_compiler_wl='-Wl,'
8834       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8835       # not for PA HP-UX.
8836       case $host_cpu in
8837       hppa*64*|ia64*)
8838         # +Z the default
8839         ;;
8840       *)
8841         lt_prog_compiler_pic='+Z'
8842         ;;
8843       esac
8844       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8845       lt_prog_compiler_static='${wl}-a ${wl}archive'
8846       ;;
8847
8848     irix5* | irix6* | nonstopux*)
8849       lt_prog_compiler_wl='-Wl,'
8850       # PIC (with -KPIC) is the default.
8851       lt_prog_compiler_static='-non_shared'
8852       ;;
8853
8854     newsos6)
8855       lt_prog_compiler_pic='-KPIC'
8856       lt_prog_compiler_static='-Bstatic'
8857       ;;
8858
8859     linux* | k*bsd*-gnu)
8860       case $cc_basename in
8861       icc* | ecc*)
8862         lt_prog_compiler_wl='-Wl,'
8863         lt_prog_compiler_pic='-KPIC'
8864         lt_prog_compiler_static='-static'
8865         ;;
8866       pgcc* | pgf77* | pgf90* | pgf95*)
8867         # Portland Group compilers (*not* the Pentium gcc compiler,
8868         # which looks to be a dead project)
8869         lt_prog_compiler_wl='-Wl,'
8870         lt_prog_compiler_pic='-fpic'
8871         lt_prog_compiler_static='-Bstatic'
8872         ;;
8873       ccc*)
8874         lt_prog_compiler_wl='-Wl,'
8875         # All Alpha code is PIC.
8876         lt_prog_compiler_static='-non_shared'
8877         ;;
8878       esac
8879       ;;
8880
8881     osf3* | osf4* | osf5*)
8882       lt_prog_compiler_wl='-Wl,'
8883       # All OSF/1 code is PIC.
8884       lt_prog_compiler_static='-non_shared'
8885       ;;
8886
8887     solaris*)
8888       lt_prog_compiler_pic='-KPIC'
8889       lt_prog_compiler_static='-Bstatic'
8890       case $cc_basename in
8891       f77* | f90* | f95*)
8892         lt_prog_compiler_wl='-Qoption ld ';;
8893       *)
8894         lt_prog_compiler_wl='-Wl,';;
8895       esac
8896       ;;
8897
8898     sunos4*)
8899       lt_prog_compiler_wl='-Qoption ld '
8900       lt_prog_compiler_pic='-PIC'
8901       lt_prog_compiler_static='-Bstatic'
8902       ;;
8903
8904     sysv4 | sysv4.2uw2* | sysv4.3*)
8905       lt_prog_compiler_wl='-Wl,'
8906       lt_prog_compiler_pic='-KPIC'
8907       lt_prog_compiler_static='-Bstatic'
8908       ;;
8909
8910     sysv4*MP*)
8911       if test -d /usr/nec ;then
8912         lt_prog_compiler_pic='-Kconform_pic'
8913         lt_prog_compiler_static='-Bstatic'
8914       fi
8915       ;;
8916
8917     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8918       lt_prog_compiler_wl='-Wl,'
8919       lt_prog_compiler_pic='-KPIC'
8920       lt_prog_compiler_static='-Bstatic'
8921       ;;
8922
8923     unicos*)
8924       lt_prog_compiler_wl='-Wl,'
8925       lt_prog_compiler_can_build_shared=no
8926       ;;
8927
8928     uts4*)
8929       lt_prog_compiler_pic='-pic'
8930       lt_prog_compiler_static='-Bstatic'
8931       ;;
8932
8933     *)
8934       lt_prog_compiler_can_build_shared=no
8935       ;;
8936     esac
8937   fi
8938
8939 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8940 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8941
8942 #
8943 # Check to make sure the PIC flag actually works.
8944 #
8945 if test -n "$lt_prog_compiler_pic"; then
8946
8947 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8948 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
8949 if test "${lt_prog_compiler_pic_works+set}" = set; then
8950   echo $ECHO_N "(cached) $ECHO_C" >&6
8951 else
8952   lt_prog_compiler_pic_works=no
8953   ac_outfile=conftest.$ac_objext
8954    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8955    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8956    # Insert the option either (1) after the last *FLAGS variable, or
8957    # (2) before a word containing "conftest.", or (3) at the end.
8958    # Note that $ac_compile itself does not contain backslashes and begins
8959    # with a dollar sign (not a hyphen), so the echo should work correctly.
8960    # The option is referenced via a variable to avoid confusing sed.
8961    lt_compile=`echo "$ac_compile" | $SED \
8962    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8963    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8964    -e 's:$: $lt_compiler_flag:'`
8965    (eval echo "\"\$as_me:8965: $lt_compile\"" >&5)
8966    (eval "$lt_compile" 2>conftest.err)
8967    ac_status=$?
8968    cat conftest.err >&5
8969    echo "$as_me:8969: \$? = $ac_status" >&5
8970    if (exit $ac_status) && test -s "$ac_outfile"; then
8971      # The compiler can only warn and ignore the option if not recognized
8972      # So say no if there are warnings other than the usual output.
8973      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8974      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8975      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8976        lt_prog_compiler_pic_works=yes
8977      fi
8978    fi
8979    $rm conftest*
8980
8981 fi
8982 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8983 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
8984
8985 if test x"$lt_prog_compiler_pic_works" = xyes; then
8986     case $lt_prog_compiler_pic in
8987      "" | " "*) ;;
8988      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8989      esac
8990 else
8991     lt_prog_compiler_pic=
8992      lt_prog_compiler_can_build_shared=no
8993 fi
8994
8995 fi
8996 case $host_os in
8997   # For platforms which do not support PIC, -DPIC is meaningless:
8998   *djgpp*)
8999     lt_prog_compiler_pic=
9000     ;;
9001   *)
9002     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9003     ;;
9004 esac
9005
9006 #
9007 # Check to make sure the static flag actually works.
9008 #
9009 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9010 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9011 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
9012 if test "${lt_prog_compiler_static_works+set}" = set; then
9013   echo $ECHO_N "(cached) $ECHO_C" >&6
9014 else
9015   lt_prog_compiler_static_works=no
9016    save_LDFLAGS="$LDFLAGS"
9017    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9018    printf "$lt_simple_link_test_code" > conftest.$ac_ext
9019    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9020      # The linker can only warn and ignore the option if not recognized
9021      # So say no if there are warnings
9022      if test -s conftest.err; then
9023        # Append any errors to the config.log.
9024        cat conftest.err 1>&5
9025        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9026        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9027        if diff conftest.exp conftest.er2 >/dev/null; then
9028          lt_prog_compiler_static_works=yes
9029        fi
9030      else
9031        lt_prog_compiler_static_works=yes
9032      fi
9033    fi
9034    $rm conftest*
9035    LDFLAGS="$save_LDFLAGS"
9036
9037 fi
9038 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
9039 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
9040
9041 if test x"$lt_prog_compiler_static_works" = xyes; then
9042     :
9043 else
9044     lt_prog_compiler_static=
9045 fi
9046
9047
9048 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9049 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9050 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9051   echo $ECHO_N "(cached) $ECHO_C" >&6
9052 else
9053   lt_cv_prog_compiler_c_o=no
9054    $rm -r conftest 2>/dev/null
9055    mkdir conftest
9056    cd conftest
9057    mkdir out
9058    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9059
9060    lt_compiler_flag="-o out/conftest2.$ac_objext"
9061    # Insert the option either (1) after the last *FLAGS variable, or
9062    # (2) before a word containing "conftest.", or (3) at the end.
9063    # Note that $ac_compile itself does not contain backslashes and begins
9064    # with a dollar sign (not a hyphen), so the echo should work correctly.
9065    lt_compile=`echo "$ac_compile" | $SED \
9066    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9067    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9068    -e 's:$: $lt_compiler_flag:'`
9069    (eval echo "\"\$as_me:9069: $lt_compile\"" >&5)
9070    (eval "$lt_compile" 2>out/conftest.err)
9071    ac_status=$?
9072    cat out/conftest.err >&5
9073    echo "$as_me:9073: \$? = $ac_status" >&5
9074    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9075    then
9076      # The compiler can only warn and ignore the option if not recognized
9077      # So say no if there are warnings
9078      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9079      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9080      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9081        lt_cv_prog_compiler_c_o=yes
9082      fi
9083    fi
9084    chmod u+w . 2>&5
9085    $rm conftest*
9086    # SGI C++ compiler will create directory out/ii_files/ for
9087    # template instantiation
9088    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
9089    $rm out/* && rmdir out
9090    cd ..
9091    rmdir conftest
9092    $rm conftest*
9093
9094 fi
9095 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9096 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9097
9098
9099 hard_links="nottested"
9100 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9101   # do not overwrite the value of need_locks provided by the user
9102   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9103 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
9104   hard_links=yes
9105   $rm conftest*
9106   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9107   touch conftest.a
9108   ln conftest.a conftest.b 2>&5 || hard_links=no
9109   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9110   { echo "$as_me:$LINENO: result: $hard_links" >&5
9111 echo "${ECHO_T}$hard_links" >&6; }
9112   if test "$hard_links" = no; then
9113     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9114 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9115     need_locks=warn
9116   fi
9117 else
9118   need_locks=no
9119 fi
9120
9121 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9122 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
9123
9124   runpath_var=
9125   allow_undefined_flag=
9126   enable_shared_with_static_runtimes=no
9127   archive_cmds=
9128   archive_expsym_cmds=
9129   old_archive_From_new_cmds=
9130   old_archive_from_expsyms_cmds=
9131   export_dynamic_flag_spec=
9132   whole_archive_flag_spec=
9133   thread_safe_flag_spec=
9134   hardcode_libdir_flag_spec=
9135   hardcode_libdir_flag_spec_ld=
9136   hardcode_libdir_separator=
9137   hardcode_direct=no
9138   hardcode_minus_L=no
9139   hardcode_shlibpath_var=unsupported
9140   link_all_deplibs=unknown
9141   hardcode_automatic=no
9142   module_cmds=
9143   module_expsym_cmds=
9144   always_export_symbols=no
9145   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9146   # include_expsyms should be a list of space-separated symbols to be *always*
9147   # included in the symbol list
9148   include_expsyms=
9149   # exclude_expsyms can be an extended regexp of symbols to exclude
9150   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9151   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9152   # as well as any symbol that contains `d'.
9153   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
9154   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9155   # platforms (ab)use it in PIC code, but their linkers get confused if
9156   # the symbol is explicitly referenced.  Since portable code cannot
9157   # rely on this symbol name, it's probably fine to never include it in
9158   # preloaded symbol tables.
9159   extract_expsyms_cmds=
9160   # Just being paranoid about ensuring that cc_basename is set.
9161   for cc_temp in $compiler""; do
9162   case $cc_temp in
9163     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9164     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9165     \-*) ;;
9166     *) break;;
9167   esac
9168 done
9169 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9170
9171   case $host_os in
9172   cygwin* | mingw* | pw32*)
9173     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9174     # When not using gcc, we currently assume that we are using
9175     # Microsoft Visual C++.
9176     if test "$GCC" != yes; then
9177       with_gnu_ld=no
9178     fi
9179     ;;
9180   interix*)
9181     # we just hope/assume this is gcc and not c89 (= MSVC++)
9182     with_gnu_ld=yes
9183     ;;
9184   openbsd*)
9185     with_gnu_ld=no
9186     ;;
9187   esac
9188
9189   ld_shlibs=yes
9190   if test "$with_gnu_ld" = yes; then
9191     # If archive_cmds runs LD, not CC, wlarc should be empty
9192     wlarc='${wl}'
9193
9194     # Set some defaults for GNU ld with shared library support. These
9195     # are reset later if shared libraries are not supported. Putting them
9196     # here allows them to be overridden if necessary.
9197     runpath_var=LD_RUN_PATH
9198     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9199     export_dynamic_flag_spec='${wl}--export-dynamic'
9200     # ancient GNU ld didn't support --whole-archive et. al.
9201     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9202         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9203       else
9204         whole_archive_flag_spec=
9205     fi
9206     supports_anon_versioning=no
9207     case `$LD -v 2>/dev/null` in
9208       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9209       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9210       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9211       *\ 2.11.*) ;; # other 2.11 versions
9212       *) supports_anon_versioning=yes ;;
9213     esac
9214
9215     # See if GNU ld supports shared libraries.
9216     case $host_os in
9217     aix3* | aix4* | aix5*)
9218       # On AIX/PPC, the GNU linker is very broken
9219       if test "$host_cpu" != ia64; then
9220         ld_shlibs=no
9221         cat <<EOF 1>&2
9222
9223 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9224 *** to be unable to reliably create shared libraries on AIX.
9225 *** Therefore, libtool is disabling shared libraries support.  If you
9226 *** really care for shared libraries, you may want to modify your PATH
9227 *** so that a non-GNU linker is found, and then restart.
9228
9229 EOF
9230       fi
9231       ;;
9232
9233     amigaos*)
9234       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)'
9235       hardcode_libdir_flag_spec='-L$libdir'
9236       hardcode_minus_L=yes
9237
9238       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9239       # that the semantics of dynamic libraries on AmigaOS, at least up
9240       # to version 4, is to share data among multiple programs linked
9241       # with the same dynamic library.  Since this doesn't match the
9242       # behavior of shared libraries on other platforms, we can't use
9243       # them.
9244       ld_shlibs=no
9245       ;;
9246
9247     beos*)
9248       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9249         allow_undefined_flag=unsupported
9250         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9251         # support --undefined.  This deserves some investigation.  FIXME
9252         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9253       else
9254         ld_shlibs=no
9255       fi
9256       ;;
9257
9258     cygwin* | mingw* | pw32*)
9259       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9260       # as there is no search path for DLLs.
9261       hardcode_libdir_flag_spec='-L$libdir'
9262       allow_undefined_flag=unsupported
9263       always_export_symbols=no
9264       enable_shared_with_static_runtimes=yes
9265       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9266
9267       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9268         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9269         # If the export-symbols file already is a .def file (1st line
9270         # is EXPORTS), use it as is; otherwise, prepend...
9271         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9272           cp $export_symbols $output_objdir/$soname.def;
9273         else
9274           echo EXPORTS > $output_objdir/$soname.def;
9275           cat $export_symbols >> $output_objdir/$soname.def;
9276         fi~
9277         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9278       else
9279         ld_shlibs=no
9280       fi
9281       ;;
9282
9283     interix3*)
9284       hardcode_direct=no
9285       hardcode_shlibpath_var=no
9286       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9287       export_dynamic_flag_spec='${wl}-E'
9288       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9289       # Instead, shared libraries are loaded at an image base (0x10000000 by
9290       # default) and relocated if they conflict, which is a slow very memory
9291       # consuming and fragmenting process.  To avoid this, we pick a random,
9292       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9293       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9294       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9295       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'
9296       ;;
9297
9298     linux* | k*bsd*-gnu)
9299       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9300         tmp_addflag=
9301         case $cc_basename,$host_cpu in
9302         pgcc*)                          # Portland Group C compiler
9303           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'
9304           tmp_addflag=' $pic_flag'
9305           ;;
9306         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9307           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'
9308           tmp_addflag=' $pic_flag -Mnomain' ;;
9309         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
9310           tmp_addflag=' -i_dynamic' ;;
9311         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9312           tmp_addflag=' -i_dynamic -nofor_main' ;;
9313         ifc* | ifort*)                  # Intel Fortran compiler
9314           tmp_addflag=' -nofor_main' ;;
9315         esac
9316         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9317
9318         if test $supports_anon_versioning = yes; then
9319           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9320   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9321   $echo "local: *; };" >> $output_objdir/$libname.ver~
9322           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9323         fi
9324         link_all_deplibs=no
9325       else
9326         ld_shlibs=no
9327       fi
9328       ;;
9329
9330     netbsd* | netbsdelf*-gnu)
9331       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9332         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9333         wlarc=
9334       else
9335         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9336         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9337       fi
9338       ;;
9339
9340     solaris*)
9341       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9342         ld_shlibs=no
9343         cat <<EOF 1>&2
9344
9345 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9346 *** create shared libraries on Solaris systems.  Therefore, libtool
9347 *** is disabling shared libraries support.  We urge you to upgrade GNU
9348 *** binutils to release 2.9.1 or newer.  Another option is to modify
9349 *** your PATH or compiler configuration so that the native linker is
9350 *** used, and then restart.
9351
9352 EOF
9353       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9354         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9355         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9356       else
9357         ld_shlibs=no
9358       fi
9359       ;;
9360
9361     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9362       case `$LD -v 2>&1` in
9363         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9364         ld_shlibs=no
9365         cat <<_LT_EOF 1>&2
9366
9367 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9368 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9369 *** is disabling shared libraries support.  We urge you to upgrade GNU
9370 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9371 *** your PATH or compiler configuration so that the native linker is
9372 *** used, and then restart.
9373
9374 _LT_EOF
9375         ;;
9376         *)
9377           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9378             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9379             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9380             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9381           else
9382             ld_shlibs=no
9383           fi
9384         ;;
9385       esac
9386       ;;
9387
9388     sunos4*)
9389       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9390       wlarc=
9391       hardcode_direct=yes
9392       hardcode_shlibpath_var=no
9393       ;;
9394
9395     *)
9396       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9397         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9398         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9399       else
9400         ld_shlibs=no
9401       fi
9402       ;;
9403     esac
9404
9405     if test "$ld_shlibs" = no; then
9406       runpath_var=
9407       hardcode_libdir_flag_spec=
9408       export_dynamic_flag_spec=
9409       whole_archive_flag_spec=
9410     fi
9411   else
9412     # PORTME fill in a description of your system's linker (not GNU ld)
9413     case $host_os in
9414     aix3*)
9415       allow_undefined_flag=unsupported
9416       always_export_symbols=yes
9417       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'
9418       # Note: this linker hardcodes the directories in LIBPATH if there
9419       # are no directories specified by -L.
9420       hardcode_minus_L=yes
9421       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9422         # Neither direct hardcoding nor static linking is supported with a
9423         # broken collect2.
9424         hardcode_direct=unsupported
9425       fi
9426       ;;
9427
9428     aix4* | aix5*)
9429       if test "$host_cpu" = ia64; then
9430         # On IA64, the linker does run time linking by default, so we don't
9431         # have to do anything special.
9432         aix_use_runtimelinking=no
9433         exp_sym_flag='-Bexport'
9434         no_entry_flag=""
9435       else
9436         # If we're using GNU nm, then we don't want the "-C" option.
9437         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9438         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9439           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'
9440         else
9441           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'
9442         fi
9443         aix_use_runtimelinking=no
9444
9445         # Test if we are trying to use run time linking or normal
9446         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9447         # need to do runtime linking.
9448         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9449           for ld_flag in $LDFLAGS; do
9450           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9451             aix_use_runtimelinking=yes
9452             break
9453           fi
9454           done
9455           ;;
9456         esac
9457
9458         exp_sym_flag='-bexport'
9459         no_entry_flag='-bnoentry'
9460       fi
9461
9462       # When large executables or shared objects are built, AIX ld can
9463       # have problems creating the table of contents.  If linking a library
9464       # or program results in "error TOC overflow" add -mminimal-toc to
9465       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9466       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9467
9468       archive_cmds=''
9469       hardcode_direct=yes
9470       hardcode_libdir_separator=':'
9471       link_all_deplibs=yes
9472
9473       if test "$GCC" = yes; then
9474         case $host_os in aix4.[012]|aix4.[012].*)
9475         # We only want to do this on AIX 4.2 and lower, the check
9476         # below for broken collect2 doesn't work under 4.3+
9477           collect2name=`${CC} -print-prog-name=collect2`
9478           if test -f "$collect2name" && \
9479            strings "$collect2name" | grep resolve_lib_name >/dev/null
9480           then
9481           # We have reworked collect2
9482           hardcode_direct=yes
9483           else
9484           # We have old collect2
9485           hardcode_direct=unsupported
9486           # It fails to find uninstalled libraries when the uninstalled
9487           # path is not listed in the libpath.  Setting hardcode_minus_L
9488           # to unsupported forces relinking
9489           hardcode_minus_L=yes
9490           hardcode_libdir_flag_spec='-L$libdir'
9491           hardcode_libdir_separator=
9492           fi
9493           ;;
9494         esac
9495         shared_flag='-shared'
9496         if test "$aix_use_runtimelinking" = yes; then
9497           shared_flag="$shared_flag "'${wl}-G'
9498         fi
9499       else
9500         # not using gcc
9501         if test "$host_cpu" = ia64; then
9502         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9503         # chokes on -Wl,-G. The following line is correct:
9504           shared_flag='-G'
9505         else
9506           if test "$aix_use_runtimelinking" = yes; then
9507             shared_flag='${wl}-G'
9508           else
9509             shared_flag='${wl}-bM:SRE'
9510           fi
9511         fi
9512       fi
9513
9514       # It seems that -bexpall does not export symbols beginning with
9515       # underscore (_), so it is better to generate a list of symbols to export.
9516       always_export_symbols=yes
9517       if test "$aix_use_runtimelinking" = yes; then
9518         # Warning - without using the other runtime loading flags (-brtl),
9519         # -berok will link without error, but may produce a broken library.
9520         allow_undefined_flag='-berok'
9521        # Determine the default libpath from the value encoded in an empty executable.
9522        cat >conftest.$ac_ext <<_ACEOF
9523 /* confdefs.h.  */
9524 _ACEOF
9525 cat confdefs.h >>conftest.$ac_ext
9526 cat >>conftest.$ac_ext <<_ACEOF
9527 /* end confdefs.h.  */
9528
9529 int
9530 main ()
9531 {
9532
9533   ;
9534   return 0;
9535 }
9536 _ACEOF
9537 rm -f conftest.$ac_objext conftest$ac_exeext
9538 if { (ac_try="$ac_link"
9539 case "(($ac_try" in
9540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9541   *) ac_try_echo=$ac_try;;
9542 esac
9543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9544   (eval "$ac_link") 2>conftest.er1
9545   ac_status=$?
9546   grep -v '^ *+' conftest.er1 >conftest.err
9547   rm -f conftest.er1
9548   cat conftest.err >&5
9549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9550   (exit $ac_status); } &&
9551          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9552   { (case "(($ac_try" in
9553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9554   *) ac_try_echo=$ac_try;;
9555 esac
9556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9557   (eval "$ac_try") 2>&5
9558   ac_status=$?
9559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9560   (exit $ac_status); }; } &&
9561          { ac_try='test -s conftest$ac_exeext'
9562   { (case "(($ac_try" in
9563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9564   *) ac_try_echo=$ac_try;;
9565 esac
9566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9567   (eval "$ac_try") 2>&5
9568   ac_status=$?
9569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9570   (exit $ac_status); }; }; then
9571
9572 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9573 }'`
9574 # Check for a 64-bit object if we didn't find anything.
9575 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9576 }'`; fi
9577 else
9578   echo "$as_me: failed program was:" >&5
9579 sed 's/^/| /' conftest.$ac_ext >&5
9580
9581
9582 fi
9583
9584 rm -f core conftest.err conftest.$ac_objext \
9585       conftest$ac_exeext conftest.$ac_ext
9586 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9587
9588        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9589         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"
9590        else
9591         if test "$host_cpu" = ia64; then
9592           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9593           allow_undefined_flag="-z nodefs"
9594           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"
9595         else
9596          # Determine the default libpath from the value encoded in an empty executable.
9597          cat >conftest.$ac_ext <<_ACEOF
9598 /* confdefs.h.  */
9599 _ACEOF
9600 cat confdefs.h >>conftest.$ac_ext
9601 cat >>conftest.$ac_ext <<_ACEOF
9602 /* end confdefs.h.  */
9603
9604 int
9605 main ()
9606 {
9607
9608   ;
9609   return 0;
9610 }
9611 _ACEOF
9612 rm -f conftest.$ac_objext conftest$ac_exeext
9613 if { (ac_try="$ac_link"
9614 case "(($ac_try" in
9615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9616   *) ac_try_echo=$ac_try;;
9617 esac
9618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9619   (eval "$ac_link") 2>conftest.er1
9620   ac_status=$?
9621   grep -v '^ *+' conftest.er1 >conftest.err
9622   rm -f conftest.er1
9623   cat conftest.err >&5
9624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9625   (exit $ac_status); } &&
9626          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9627   { (case "(($ac_try" in
9628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9629   *) ac_try_echo=$ac_try;;
9630 esac
9631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9632   (eval "$ac_try") 2>&5
9633   ac_status=$?
9634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9635   (exit $ac_status); }; } &&
9636          { ac_try='test -s conftest$ac_exeext'
9637   { (case "(($ac_try" in
9638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9639   *) ac_try_echo=$ac_try;;
9640 esac
9641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9642   (eval "$ac_try") 2>&5
9643   ac_status=$?
9644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9645   (exit $ac_status); }; }; then
9646
9647 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9648 }'`
9649 # Check for a 64-bit object if we didn't find anything.
9650 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9651 }'`; fi
9652 else
9653   echo "$as_me: failed program was:" >&5
9654 sed 's/^/| /' conftest.$ac_ext >&5
9655
9656
9657 fi
9658
9659 rm -f core conftest.err conftest.$ac_objext \
9660       conftest$ac_exeext conftest.$ac_ext
9661 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9662
9663          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9664           # Warning - without using the other run time loading flags,
9665           # -berok will link without error, but may produce a broken library.
9666           no_undefined_flag=' ${wl}-bernotok'
9667           allow_undefined_flag=' ${wl}-berok'
9668           # Exported symbols can be pulled into shared objects from archives
9669           whole_archive_flag_spec='$convenience'
9670           archive_cmds_need_lc=yes
9671           # This is similar to how AIX traditionally builds its shared libraries.
9672           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'
9673         fi
9674       fi
9675       ;;
9676
9677     amigaos*)
9678       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)'
9679       hardcode_libdir_flag_spec='-L$libdir'
9680       hardcode_minus_L=yes
9681       # see comment about different semantics on the GNU ld section
9682       ld_shlibs=no
9683       ;;
9684
9685     bsdi[45]*)
9686       export_dynamic_flag_spec=-rdynamic
9687       ;;
9688
9689     cygwin* | mingw* | pw32*)
9690       # When not using gcc, we currently assume that we are using
9691       # Microsoft Visual C++.
9692       # hardcode_libdir_flag_spec is actually meaningless, as there is
9693       # no search path for DLLs.
9694       hardcode_libdir_flag_spec=' '
9695       allow_undefined_flag=unsupported
9696       # Tell ltmain to make .lib files, not .a files.
9697       libext=lib
9698       # Tell ltmain to make .dll files, not .so files.
9699       shrext_cmds=".dll"
9700       # FIXME: Setting linknames here is a bad hack.
9701       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9702       # The linker will automatically build a .lib file if we build a DLL.
9703       old_archive_From_new_cmds='true'
9704       # FIXME: Should let the user specify the lib program.
9705       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9706       fix_srcfile_path='`cygpath -w "$srcfile"`'
9707       enable_shared_with_static_runtimes=yes
9708       ;;
9709
9710     darwin* | rhapsody*)
9711       case $host_os in
9712         rhapsody* | darwin1.[012])
9713          allow_undefined_flag='${wl}-undefined ${wl}suppress'
9714          ;;
9715        *) # Darwin 1.3 on
9716          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9717            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9718          else
9719            case ${MACOSX_DEPLOYMENT_TARGET} in
9720              10.[012])
9721                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9722                ;;
9723              10.*)
9724                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9725                ;;
9726            esac
9727          fi
9728          ;;
9729       esac
9730       archive_cmds_need_lc=no
9731       hardcode_direct=no
9732       hardcode_automatic=yes
9733       hardcode_shlibpath_var=unsupported
9734       whole_archive_flag_spec=''
9735       link_all_deplibs=yes
9736     if test "$GCC" = yes ; then
9737         output_verbose_link_cmd='echo'
9738         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9739       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9740       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9741       archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9742       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}'
9743     else
9744       case $cc_basename in
9745         xlc*)
9746          output_verbose_link_cmd='echo'
9747          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9748          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9749           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9750          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9751           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}'
9752           ;;
9753        *)
9754          ld_shlibs=no
9755           ;;
9756       esac
9757     fi
9758       ;;
9759
9760     dgux*)
9761       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9762       hardcode_libdir_flag_spec='-L$libdir'
9763       hardcode_shlibpath_var=no
9764       ;;
9765
9766     freebsd1*)
9767       ld_shlibs=no
9768       ;;
9769
9770     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9771     # support.  Future versions do this automatically, but an explicit c++rt0.o
9772     # does not break anything, and helps significantly (at the cost of a little
9773     # extra space).
9774     freebsd2.2*)
9775       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9776       hardcode_libdir_flag_spec='-R$libdir'
9777       hardcode_direct=yes
9778       hardcode_shlibpath_var=no
9779       ;;
9780
9781     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9782     freebsd2*)
9783       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9784       hardcode_direct=yes
9785       hardcode_minus_L=yes
9786       hardcode_shlibpath_var=no
9787       ;;
9788
9789     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9790     freebsd* | dragonfly*)
9791       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9792       hardcode_libdir_flag_spec='-R$libdir'
9793       hardcode_direct=yes
9794       hardcode_shlibpath_var=no
9795       ;;
9796
9797     hpux9*)
9798       if test "$GCC" = yes; then
9799         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'
9800       else
9801         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'
9802       fi
9803       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9804       hardcode_libdir_separator=:
9805       hardcode_direct=yes
9806
9807       # hardcode_minus_L: Not really in the search PATH,
9808       # but as the default location of the library.
9809       hardcode_minus_L=yes
9810       export_dynamic_flag_spec='${wl}-E'
9811       ;;
9812
9813     hpux10*)
9814       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9815         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9816       else
9817         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9818       fi
9819       if test "$with_gnu_ld" = no; then
9820         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9821         hardcode_libdir_separator=:
9822
9823         hardcode_direct=yes
9824         export_dynamic_flag_spec='${wl}-E'
9825
9826         # hardcode_minus_L: Not really in the search PATH,
9827         # but as the default location of the library.
9828         hardcode_minus_L=yes
9829       fi
9830       ;;
9831
9832     hpux11*)
9833       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9834         case $host_cpu in
9835         hppa*64*)
9836           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9837           ;;
9838         ia64*)
9839           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9840           ;;
9841         *)
9842           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9843           ;;
9844         esac
9845       else
9846         case $host_cpu in
9847         hppa*64*)
9848           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9849           ;;
9850         ia64*)
9851           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9852           ;;
9853         *)
9854           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9855           ;;
9856         esac
9857       fi
9858       if test "$with_gnu_ld" = no; then
9859         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9860         hardcode_libdir_separator=:
9861
9862         case $host_cpu in
9863         hppa*64*|ia64*)
9864           hardcode_libdir_flag_spec_ld='+b $libdir'
9865           hardcode_direct=no
9866           hardcode_shlibpath_var=no
9867           ;;
9868         *)
9869           hardcode_direct=yes
9870           export_dynamic_flag_spec='${wl}-E'
9871
9872           # hardcode_minus_L: Not really in the search PATH,
9873           # but as the default location of the library.
9874           hardcode_minus_L=yes
9875           ;;
9876         esac
9877       fi
9878       ;;
9879
9880     irix5* | irix6* | nonstopux*)
9881       if test "$GCC" = yes; then
9882         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'
9883       else
9884         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'
9885         hardcode_libdir_flag_spec_ld='-rpath $libdir'
9886       fi
9887       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9888       hardcode_libdir_separator=:
9889       link_all_deplibs=yes
9890       ;;
9891
9892     netbsd* | netbsdelf*-gnu)
9893       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9894         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9895       else
9896         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9897       fi
9898       hardcode_libdir_flag_spec='-R$libdir'
9899       hardcode_direct=yes
9900       hardcode_shlibpath_var=no
9901       ;;
9902
9903     newsos6)
9904       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9905       hardcode_direct=yes
9906       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9907       hardcode_libdir_separator=:
9908       hardcode_shlibpath_var=no
9909       ;;
9910
9911     openbsd*)
9912       hardcode_direct=yes
9913       hardcode_shlibpath_var=no
9914       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9915         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9916         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9917         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9918         export_dynamic_flag_spec='${wl}-E'
9919       else
9920        case $host_os in
9921          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9922            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9923            hardcode_libdir_flag_spec='-R$libdir'
9924            ;;
9925          *)
9926            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9927            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9928            ;;
9929        esac
9930       fi
9931       ;;
9932
9933     os2*)
9934       hardcode_libdir_flag_spec='-L$libdir'
9935       hardcode_minus_L=yes
9936       allow_undefined_flag=unsupported
9937       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'
9938       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9939       ;;
9940
9941     osf3*)
9942       if test "$GCC" = yes; then
9943         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9944         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'
9945       else
9946         allow_undefined_flag=' -expect_unresolved \*'
9947         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'
9948       fi
9949       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9950       hardcode_libdir_separator=:
9951       ;;
9952
9953     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9954       if test "$GCC" = yes; then
9955         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9956         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'
9957         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9958       else
9959         allow_undefined_flag=' -expect_unresolved \*'
9960         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'
9961         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9962         $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'
9963
9964         # Both c and cxx compiler support -rpath directly
9965         hardcode_libdir_flag_spec='-rpath $libdir'
9966       fi
9967       hardcode_libdir_separator=:
9968       ;;
9969
9970     solaris*)
9971       no_undefined_flag=' -z text'
9972       if test "$GCC" = yes; then
9973         wlarc='${wl}'
9974         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9975         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9976           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9977       else
9978         wlarc=''
9979         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9980         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9981         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9982       fi
9983       hardcode_libdir_flag_spec='-R$libdir'
9984       hardcode_shlibpath_var=no
9985       case $host_os in
9986       solaris2.[0-5] | solaris2.[0-5].*) ;;
9987       *)
9988         # The compiler driver will combine linker options so we
9989         # cannot just pass the convience library names through
9990         # without $wl, iff we do not link with $LD.
9991         # Luckily, gcc supports the same syntax we need for Sun Studio.
9992         # Supported since Solaris 2.6 (maybe 2.5.1?)
9993         case $wlarc in
9994         '')
9995           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9996         *)
9997           whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
9998         esac ;;
9999       esac
10000       link_all_deplibs=yes
10001       ;;
10002
10003     sunos4*)
10004       if test "x$host_vendor" = xsequent; then
10005         # Use $CC to link under sequent, because it throws in some extra .o
10006         # files that make .init and .fini sections work.
10007         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10008       else
10009         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10010       fi
10011       hardcode_libdir_flag_spec='-L$libdir'
10012       hardcode_direct=yes
10013       hardcode_minus_L=yes
10014       hardcode_shlibpath_var=no
10015       ;;
10016
10017     sysv4)
10018       case $host_vendor in
10019         sni)
10020           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10021           hardcode_direct=yes # is this really true???
10022         ;;
10023         siemens)
10024           ## LD is ld it makes a PLAMLIB
10025           ## CC just makes a GrossModule.
10026           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10027           reload_cmds='$CC -r -o $output$reload_objs'
10028           hardcode_direct=no
10029         ;;
10030         motorola)
10031           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10032           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10033         ;;
10034       esac
10035       runpath_var='LD_RUN_PATH'
10036       hardcode_shlibpath_var=no
10037       ;;
10038
10039     sysv4.3*)
10040       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10041       hardcode_shlibpath_var=no
10042       export_dynamic_flag_spec='-Bexport'
10043       ;;
10044
10045     sysv4*MP*)
10046       if test -d /usr/nec; then
10047         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10048         hardcode_shlibpath_var=no
10049         runpath_var=LD_RUN_PATH
10050         hardcode_runpath_var=yes
10051         ld_shlibs=yes
10052       fi
10053       ;;
10054
10055     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
10056       no_undefined_flag='${wl}-z,text'
10057       archive_cmds_need_lc=no
10058       hardcode_shlibpath_var=no
10059       runpath_var='LD_RUN_PATH'
10060
10061       if test "$GCC" = yes; then
10062         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10063         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10064       else
10065         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10066         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10067       fi
10068       ;;
10069
10070     sysv5* | sco3.2v5* | sco5v6*)
10071       # Note: We can NOT use -z defs as we might desire, because we do not
10072       # link with -lc, and that would cause any symbols used from libc to
10073       # always be unresolved, which means just about no library would
10074       # ever link correctly.  If we're not using GNU ld we use -z text
10075       # though, which does catch some bad symbols but isn't as heavy-handed
10076       # as -z defs.
10077       no_undefined_flag='${wl}-z,text'
10078       allow_undefined_flag='${wl}-z,nodefs'
10079       archive_cmds_need_lc=no
10080       hardcode_shlibpath_var=no
10081       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
10082       hardcode_libdir_separator=':'
10083       link_all_deplibs=yes
10084       export_dynamic_flag_spec='${wl}-Bexport'
10085       runpath_var='LD_RUN_PATH'
10086
10087       if test "$GCC" = yes; then
10088         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10089         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10090       else
10091         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10092         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10093       fi
10094       ;;
10095
10096     uts4*)
10097       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10098       hardcode_libdir_flag_spec='-L$libdir'
10099       hardcode_shlibpath_var=no
10100       ;;
10101
10102     *)
10103       ld_shlibs=no
10104       ;;
10105     esac
10106   fi
10107
10108 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10109 echo "${ECHO_T}$ld_shlibs" >&6; }
10110 test "$ld_shlibs" = no && can_build_shared=no
10111
10112 #
10113 # Do we need to explicitly link libc?
10114 #
10115 case "x$archive_cmds_need_lc" in
10116 x|xyes)
10117   # Assume -lc should be added
10118   archive_cmds_need_lc=yes
10119
10120   if test "$enable_shared" = yes && test "$GCC" = yes; then
10121     case $archive_cmds in
10122     *'~'*)
10123       # FIXME: we may have to deal with multi-command sequences.
10124       ;;
10125     '$CC '*)
10126       # Test whether the compiler implicitly links with -lc since on some
10127       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10128       # to ld, don't add -lc before -lgcc.
10129       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10130 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
10131       $rm conftest*
10132       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10133
10134       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10135   (eval $ac_compile) 2>&5
10136   ac_status=$?
10137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10138   (exit $ac_status); } 2>conftest.err; then
10139         soname=conftest
10140         lib=conftest
10141         libobjs=conftest.$ac_objext
10142         deplibs=
10143         wl=$lt_prog_compiler_wl
10144         pic_flag=$lt_prog_compiler_pic
10145         compiler_flags=-v
10146         linker_flags=-v
10147         verstring=
10148         output_objdir=.
10149         libname=conftest
10150         lt_save_allow_undefined_flag=$allow_undefined_flag
10151         allow_undefined_flag=
10152         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10153   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10154   ac_status=$?
10155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10156   (exit $ac_status); }
10157         then
10158           archive_cmds_need_lc=no
10159         else
10160           archive_cmds_need_lc=yes
10161         fi
10162         allow_undefined_flag=$lt_save_allow_undefined_flag
10163       else
10164         cat conftest.err 1>&5
10165       fi
10166       $rm conftest*
10167       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10168 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
10169       ;;
10170     esac
10171   fi
10172   ;;
10173 esac
10174
10175 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10176 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
10177 library_names_spec=
10178 libname_spec='lib$name'
10179 soname_spec=
10180 shrext_cmds=".so"
10181 postinstall_cmds=
10182 postuninstall_cmds=
10183 finish_cmds=
10184 finish_eval=
10185 shlibpath_var=
10186 shlibpath_overrides_runpath=unknown
10187 version_type=none
10188 dynamic_linker="$host_os ld.so"
10189 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10190 if test "$GCC" = yes; then
10191   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10192   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10193     # if the path contains ";" then we assume it to be the separator
10194     # otherwise default to the standard path separator (i.e. ":") - it is
10195     # assumed that no part of a normal pathname contains ";" but that should
10196     # okay in the real world where ";" in dirpaths is itself problematic.
10197     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10198   else
10199     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10200   fi
10201 else
10202   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10203 fi
10204 need_lib_prefix=unknown
10205 hardcode_into_libs=no
10206
10207 # when you set need_version to no, make sure it does not cause -set_version
10208 # flags to be left without arguments
10209 need_version=unknown
10210
10211 case $host_os in
10212 aix3*)
10213   version_type=linux
10214   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10215   shlibpath_var=LIBPATH
10216
10217   # AIX 3 has no versioning support, so we append a major version to the name.
10218   soname_spec='${libname}${release}${shared_ext}$major'
10219   ;;
10220
10221 aix4* | aix5*)
10222   version_type=linux
10223   need_lib_prefix=no
10224   need_version=no
10225   hardcode_into_libs=yes
10226   if test "$host_cpu" = ia64; then
10227     # AIX 5 supports IA64
10228     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10229     shlibpath_var=LD_LIBRARY_PATH
10230   else
10231     # With GCC up to 2.95.x, collect2 would create an import file
10232     # for dependence libraries.  The import file would start with
10233     # the line `#! .'.  This would cause the generated library to
10234     # depend on `.', always an invalid library.  This was fixed in
10235     # development snapshots of GCC prior to 3.0.
10236     case $host_os in
10237       aix4 | aix4.[01] | aix4.[01].*)
10238       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10239            echo ' yes '
10240            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10241         :
10242       else
10243         can_build_shared=no
10244       fi
10245       ;;
10246     esac
10247     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10248     # soname into executable. Probably we can add versioning support to
10249     # collect2, so additional links can be useful in future.
10250     if test "$aix_use_runtimelinking" = yes; then
10251       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10252       # instead of lib<name>.a to let people know that these are not
10253       # typical AIX shared libraries.
10254       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10255     else
10256       # We preserve .a as extension for shared libraries through AIX4.2
10257       # and later when we are not doing run time linking.
10258       library_names_spec='${libname}${release}.a $libname.a'
10259       soname_spec='${libname}${release}${shared_ext}$major'
10260     fi
10261     shlibpath_var=LIBPATH
10262   fi
10263   ;;
10264
10265 amigaos*)
10266   library_names_spec='$libname.ixlibrary $libname.a'
10267   # Create ${libname}_ixlibrary.a entries in /sys/libs.
10268   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'
10269   ;;
10270
10271 beos*)
10272   library_names_spec='${libname}${shared_ext}'
10273   dynamic_linker="$host_os ld.so"
10274   shlibpath_var=LIBRARY_PATH
10275   ;;
10276
10277 bsdi[45]*)
10278   version_type=linux
10279   need_version=no
10280   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10281   soname_spec='${libname}${release}${shared_ext}$major'
10282   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10283   shlibpath_var=LD_LIBRARY_PATH
10284   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10285   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10286   # the default ld.so.conf also contains /usr/contrib/lib and
10287   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10288   # libtool to hard-code these into programs
10289   ;;
10290
10291 cygwin* | mingw* | pw32*)
10292   version_type=windows
10293   shrext_cmds=".dll"
10294   need_version=no
10295   need_lib_prefix=no
10296
10297   case $GCC,$host_os in
10298   yes,cygwin* | yes,mingw* | yes,pw32*)
10299     library_names_spec='$libname.dll.a'
10300     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10301     postinstall_cmds='base_file=`basename \${file}`~
10302       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10303       dldir=$destdir/`dirname \$dlpath`~
10304       test -d \$dldir || mkdir -p \$dldir~
10305       $install_prog $dir/$dlname \$dldir/$dlname~
10306       chmod a+x \$dldir/$dlname'
10307     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10308       dlpath=$dir/\$dldll~
10309        $rm \$dlpath'
10310     shlibpath_overrides_runpath=yes
10311
10312     case $host_os in
10313     cygwin*)
10314       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10315       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10316       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10317       ;;
10318     mingw*)
10319       # MinGW DLLs use traditional 'lib' prefix
10320       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10321       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10322       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10323         # It is most probably a Windows format PATH printed by
10324         # mingw gcc, but we are running on Cygwin. Gcc prints its search
10325         # path with ; separators, and with drive letters. We can handle the
10326         # drive letters (cygwin fileutils understands them), so leave them,
10327         # especially as we might pass files found there to a mingw objdump,
10328         # which wouldn't understand a cygwinified path. Ahh.
10329         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10330       else
10331         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10332       fi
10333       ;;
10334     pw32*)
10335       # pw32 DLLs use 'pw' prefix rather than 'lib'
10336       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10337       ;;
10338     esac
10339     ;;
10340
10341   *)
10342     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10343     ;;
10344   esac
10345   dynamic_linker='Win32 ld.exe'
10346   # FIXME: first we should search . and the directory the executable is in
10347   shlibpath_var=PATH
10348   ;;
10349
10350 darwin* | rhapsody*)
10351   dynamic_linker="$host_os dyld"
10352   version_type=darwin
10353   need_lib_prefix=no
10354   need_version=no
10355   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10356   soname_spec='${libname}${release}${major}$shared_ext'
10357   shlibpath_overrides_runpath=yes
10358   shlibpath_var=DYLD_LIBRARY_PATH
10359   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10360   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10361   if test "$GCC" = yes; then
10362     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
10363   else
10364     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10365   fi
10366   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10367   ;;
10368
10369 dgux*)
10370   version_type=linux
10371   need_lib_prefix=no
10372   need_version=no
10373   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10374   soname_spec='${libname}${release}${shared_ext}$major'
10375   shlibpath_var=LD_LIBRARY_PATH
10376   ;;
10377
10378 freebsd1*)
10379   dynamic_linker=no
10380   ;;
10381
10382 freebsd* | dragonfly*)
10383   # DragonFly does not have aout.  When/if they implement a new
10384   # versioning mechanism, adjust this.
10385   if test -x /usr/bin/objformat; then
10386     objformat=`/usr/bin/objformat`
10387   else
10388     case $host_os in
10389     freebsd[123]*) objformat=aout ;;
10390     *) objformat=elf ;;
10391     esac
10392   fi
10393   version_type=freebsd-$objformat
10394   case $version_type in
10395     freebsd-elf*)
10396       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10397       need_version=no
10398       need_lib_prefix=no
10399       ;;
10400     freebsd-*)
10401       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10402       need_version=yes
10403       ;;
10404   esac
10405   shlibpath_var=LD_LIBRARY_PATH
10406   case $host_os in
10407   freebsd2*)
10408     shlibpath_overrides_runpath=yes
10409     ;;
10410   freebsd3.[01]* | freebsdelf3.[01]*)
10411     shlibpath_overrides_runpath=yes
10412     hardcode_into_libs=yes
10413     ;;
10414   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10415   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10416     shlibpath_overrides_runpath=no
10417     hardcode_into_libs=yes
10418     ;;
10419   freebsd*) # from 4.6 on
10420     shlibpath_overrides_runpath=yes
10421     hardcode_into_libs=yes
10422     ;;
10423   esac
10424   ;;
10425
10426 gnu*)
10427   version_type=linux
10428   need_lib_prefix=no
10429   need_version=no
10430   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10431   soname_spec='${libname}${release}${shared_ext}$major'
10432   shlibpath_var=LD_LIBRARY_PATH
10433   hardcode_into_libs=yes
10434   ;;
10435
10436 hpux9* | hpux10* | hpux11*)
10437   # Give a soname corresponding to the major version so that dld.sl refuses to
10438   # link against other versions.
10439   version_type=sunos
10440   need_lib_prefix=no
10441   need_version=no
10442   case $host_cpu in
10443   ia64*)
10444     shrext_cmds='.so'
10445     hardcode_into_libs=yes
10446     dynamic_linker="$host_os dld.so"
10447     shlibpath_var=LD_LIBRARY_PATH
10448     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10449     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10450     soname_spec='${libname}${release}${shared_ext}$major'
10451     if test "X$HPUX_IA64_MODE" = X32; then
10452       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10453     else
10454       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10455     fi
10456     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10457     ;;
10458    hppa*64*)
10459      shrext_cmds='.sl'
10460      hardcode_into_libs=yes
10461      dynamic_linker="$host_os dld.sl"
10462      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10463      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10464      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10465      soname_spec='${libname}${release}${shared_ext}$major'
10466      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10467      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10468      ;;
10469    *)
10470     shrext_cmds='.sl'
10471     dynamic_linker="$host_os dld.sl"
10472     shlibpath_var=SHLIB_PATH
10473     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10474     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10475     soname_spec='${libname}${release}${shared_ext}$major'
10476     ;;
10477   esac
10478   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10479   postinstall_cmds='chmod 555 $lib'
10480   ;;
10481
10482 interix3*)
10483   version_type=linux
10484   need_lib_prefix=no
10485   need_version=no
10486   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10487   soname_spec='${libname}${release}${shared_ext}$major'
10488   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10489   shlibpath_var=LD_LIBRARY_PATH
10490   shlibpath_overrides_runpath=no
10491   hardcode_into_libs=yes
10492   ;;
10493
10494 irix5* | irix6* | nonstopux*)
10495   case $host_os in
10496     nonstopux*) version_type=nonstopux ;;
10497     *)
10498         if test "$lt_cv_prog_gnu_ld" = yes; then
10499                 version_type=linux
10500         else
10501                 version_type=irix
10502         fi ;;
10503   esac
10504   need_lib_prefix=no
10505   need_version=no
10506   soname_spec='${libname}${release}${shared_ext}$major'
10507   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10508   case $host_os in
10509   irix5* | nonstopux*)
10510     libsuff= shlibsuff=
10511     ;;
10512   *)
10513     case $LD in # libtool.m4 will add one of these switches to LD
10514     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10515       libsuff= shlibsuff= libmagic=32-bit;;
10516     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10517       libsuff=32 shlibsuff=N32 libmagic=N32;;
10518     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10519       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10520     *) libsuff= shlibsuff= libmagic=never-match;;
10521     esac
10522     ;;
10523   esac
10524   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10525   shlibpath_overrides_runpath=no
10526   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10527   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10528   hardcode_into_libs=yes
10529   ;;
10530
10531 # No shared lib support for Linux oldld, aout, or coff.
10532 linux*oldld* | linux*aout* | linux*coff*)
10533   dynamic_linker=no
10534   ;;
10535
10536 # This must be Linux ELF.
10537 linux* | k*bsd*-gnu)
10538   version_type=linux
10539   need_lib_prefix=no
10540   need_version=no
10541   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10542   soname_spec='${libname}${release}${shared_ext}$major'
10543   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10544   shlibpath_var=LD_LIBRARY_PATH
10545   shlibpath_overrides_runpath=no
10546   # This implies no fast_install, which is unacceptable.
10547   # Some rework will be needed to allow for fast_install
10548   # before this can be enabled.
10549   hardcode_into_libs=yes
10550
10551   # Append ld.so.conf contents to the search path
10552   if test -f /etc/ld.so.conf; then
10553     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
10554     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10555   fi
10556
10557   # We used to test for /lib/ld.so.1 and disable shared libraries on
10558   # powerpc, because MkLinux only supported shared libraries with the
10559   # GNU dynamic linker.  Since this was broken with cross compilers,
10560   # most powerpc-linux boxes support dynamic linking these days and
10561   # people can always --disable-shared, the test was removed, and we
10562   # assume the GNU/Linux dynamic linker is in use.
10563   dynamic_linker='GNU/Linux ld.so'
10564   ;;
10565
10566 netbsdelf*-gnu)
10567   version_type=linux
10568   need_lib_prefix=no
10569   need_version=no
10570   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10571   soname_spec='${libname}${release}${shared_ext}$major'
10572   shlibpath_var=LD_LIBRARY_PATH
10573   shlibpath_overrides_runpath=no
10574   hardcode_into_libs=yes
10575   dynamic_linker='NetBSD ld.elf_so'
10576   ;;
10577
10578 netbsd*)
10579   version_type=sunos
10580   need_lib_prefix=no
10581   need_version=no
10582   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10583     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10584     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10585     dynamic_linker='NetBSD (a.out) ld.so'
10586   else
10587     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10588     soname_spec='${libname}${release}${shared_ext}$major'
10589     dynamic_linker='NetBSD ld.elf_so'
10590   fi
10591   shlibpath_var=LD_LIBRARY_PATH
10592   shlibpath_overrides_runpath=yes
10593   hardcode_into_libs=yes
10594   ;;
10595
10596 newsos6)
10597   version_type=linux
10598   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10599   shlibpath_var=LD_LIBRARY_PATH
10600   shlibpath_overrides_runpath=yes
10601   ;;
10602
10603 nto-qnx*)
10604   version_type=linux
10605   need_lib_prefix=no
10606   need_version=no
10607   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10608   soname_spec='${libname}${release}${shared_ext}$major'
10609   shlibpath_var=LD_LIBRARY_PATH
10610   shlibpath_overrides_runpath=yes
10611   ;;
10612
10613 openbsd*)
10614   version_type=sunos
10615   sys_lib_dlsearch_path_spec="/usr/lib"
10616   need_lib_prefix=no
10617   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10618   case $host_os in
10619     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10620     *)                         need_version=no  ;;
10621   esac
10622   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10623   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10624   shlibpath_var=LD_LIBRARY_PATH
10625   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10626     case $host_os in
10627       openbsd2.[89] | openbsd2.[89].*)
10628         shlibpath_overrides_runpath=no
10629         ;;
10630       *)
10631         shlibpath_overrides_runpath=yes
10632         ;;
10633       esac
10634   else
10635     shlibpath_overrides_runpath=yes
10636   fi
10637   ;;
10638
10639 os2*)
10640   libname_spec='$name'
10641   shrext_cmds=".dll"
10642   need_lib_prefix=no
10643   library_names_spec='$libname${shared_ext} $libname.a'
10644   dynamic_linker='OS/2 ld.exe'
10645   shlibpath_var=LIBPATH
10646   ;;
10647
10648 osf3* | osf4* | osf5*)
10649   version_type=osf
10650   need_lib_prefix=no
10651   need_version=no
10652   soname_spec='${libname}${release}${shared_ext}$major'
10653   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10654   shlibpath_var=LD_LIBRARY_PATH
10655   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10656   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10657   ;;
10658
10659 solaris*)
10660   version_type=linux
10661   need_lib_prefix=no
10662   need_version=no
10663   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10664   soname_spec='${libname}${release}${shared_ext}$major'
10665   shlibpath_var=LD_LIBRARY_PATH
10666   shlibpath_overrides_runpath=yes
10667   hardcode_into_libs=yes
10668   # ldd complains unless libraries are executable
10669   postinstall_cmds='chmod +x $lib'
10670   ;;
10671
10672 sunos4*)
10673   version_type=sunos
10674   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10675   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10676   shlibpath_var=LD_LIBRARY_PATH
10677   shlibpath_overrides_runpath=yes
10678   if test "$with_gnu_ld" = yes; then
10679     need_lib_prefix=no
10680   fi
10681   need_version=yes
10682   ;;
10683
10684 sysv4 | sysv4.3*)
10685   version_type=linux
10686   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10687   soname_spec='${libname}${release}${shared_ext}$major'
10688   shlibpath_var=LD_LIBRARY_PATH
10689   case $host_vendor in
10690     sni)
10691       shlibpath_overrides_runpath=no
10692       need_lib_prefix=no
10693       export_dynamic_flag_spec='${wl}-Blargedynsym'
10694       runpath_var=LD_RUN_PATH
10695       ;;
10696     siemens)
10697       need_lib_prefix=no
10698       ;;
10699     motorola)
10700       need_lib_prefix=no
10701       need_version=no
10702       shlibpath_overrides_runpath=no
10703       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10704       ;;
10705   esac
10706   ;;
10707
10708 sysv4*MP*)
10709   if test -d /usr/nec ;then
10710     version_type=linux
10711     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10712     soname_spec='$libname${shared_ext}.$major'
10713     shlibpath_var=LD_LIBRARY_PATH
10714   fi
10715   ;;
10716
10717 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10718   version_type=freebsd-elf
10719   need_lib_prefix=no
10720   need_version=no
10721   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10722   soname_spec='${libname}${release}${shared_ext}$major'
10723   shlibpath_var=LD_LIBRARY_PATH
10724   hardcode_into_libs=yes
10725   if test "$with_gnu_ld" = yes; then
10726     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10727     shlibpath_overrides_runpath=no
10728   else
10729     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10730     shlibpath_overrides_runpath=yes
10731     case $host_os in
10732       sco3.2v5*)
10733         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10734         ;;
10735     esac
10736   fi
10737   sys_lib_dlsearch_path_spec='/usr/lib'
10738   ;;
10739
10740 uts4*)
10741   version_type=linux
10742   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10743   soname_spec='${libname}${release}${shared_ext}$major'
10744   shlibpath_var=LD_LIBRARY_PATH
10745   ;;
10746
10747 *)
10748   dynamic_linker=no
10749   ;;
10750 esac
10751 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10752 echo "${ECHO_T}$dynamic_linker" >&6; }
10753 test "$dynamic_linker" = no && can_build_shared=no
10754
10755 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10756 if test "$GCC" = yes; then
10757   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10758 fi
10759
10760 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10761 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10762 hardcode_action=
10763 if test -n "$hardcode_libdir_flag_spec" || \
10764    test -n "$runpath_var" || \
10765    test "X$hardcode_automatic" = "Xyes" ; then
10766
10767   # We can hardcode non-existant directories.
10768   if test "$hardcode_direct" != no &&
10769      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10770      # have to relink, otherwise we might link with an installed library
10771      # when we should be linking with a yet-to-be-installed one
10772      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10773      test "$hardcode_minus_L" != no; then
10774     # Linking always hardcodes the temporary library directory.
10775     hardcode_action=relink
10776   else
10777     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10778     hardcode_action=immediate
10779   fi
10780 else
10781   # We cannot hardcode anything, or else we can only hardcode existing
10782   # directories.
10783   hardcode_action=unsupported
10784 fi
10785 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
10786 echo "${ECHO_T}$hardcode_action" >&6; }
10787
10788 if test "$hardcode_action" = relink; then
10789   # Fast installation is not supported
10790   enable_fast_install=no
10791 elif test "$shlibpath_overrides_runpath" = yes ||
10792      test "$enable_shared" = no; then
10793   # Fast installation is not necessary
10794   enable_fast_install=needless
10795 fi
10796
10797 striplib=
10798 old_striplib=
10799 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10800 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10801 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10802   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10803   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10804   { echo "$as_me:$LINENO: result: yes" >&5
10805 echo "${ECHO_T}yes" >&6; }
10806 else
10807 # FIXME - insert some real tests, host_os isn't really good enough
10808   case $host_os in
10809    darwin*)
10810        if test -n "$STRIP" ; then
10811          striplib="$STRIP -x"
10812          { echo "$as_me:$LINENO: result: yes" >&5
10813 echo "${ECHO_T}yes" >&6; }
10814        else
10815   { echo "$as_me:$LINENO: result: no" >&5
10816 echo "${ECHO_T}no" >&6; }
10817 fi
10818        ;;
10819    *)
10820   { echo "$as_me:$LINENO: result: no" >&5
10821 echo "${ECHO_T}no" >&6; }
10822     ;;
10823   esac
10824 fi
10825
10826 if test "x$enable_dlopen" != xyes; then
10827   enable_dlopen=unknown
10828   enable_dlopen_self=unknown
10829   enable_dlopen_self_static=unknown
10830 else
10831   lt_cv_dlopen=no
10832   lt_cv_dlopen_libs=
10833
10834   case $host_os in
10835   beos*)
10836     lt_cv_dlopen="load_add_on"
10837     lt_cv_dlopen_libs=
10838     lt_cv_dlopen_self=yes
10839     ;;
10840
10841   mingw* | pw32*)
10842     lt_cv_dlopen="LoadLibrary"
10843     lt_cv_dlopen_libs=
10844    ;;
10845
10846   cygwin*)
10847     lt_cv_dlopen="dlopen"
10848     lt_cv_dlopen_libs=
10849    ;;
10850
10851   darwin*)
10852   # if libdl is installed we need to link against it
10853     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10854 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10855 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10856   echo $ECHO_N "(cached) $ECHO_C" >&6
10857 else
10858   ac_check_lib_save_LIBS=$LIBS
10859 LIBS="-ldl  $LIBS"
10860 cat >conftest.$ac_ext <<_ACEOF
10861 /* confdefs.h.  */
10862 _ACEOF
10863 cat confdefs.h >>conftest.$ac_ext
10864 cat >>conftest.$ac_ext <<_ACEOF
10865 /* end confdefs.h.  */
10866
10867 /* Override any GCC internal prototype to avoid an error.
10868    Use char because int might match the return type of a GCC
10869    builtin and then its argument prototype would still apply.  */
10870 #ifdef __cplusplus
10871 extern "C"
10872 #endif
10873 char dlopen ();
10874 int
10875 main ()
10876 {
10877 return dlopen ();
10878   ;
10879   return 0;
10880 }
10881 _ACEOF
10882 rm -f conftest.$ac_objext conftest$ac_exeext
10883 if { (ac_try="$ac_link"
10884 case "(($ac_try" in
10885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10886   *) ac_try_echo=$ac_try;;
10887 esac
10888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10889   (eval "$ac_link") 2>conftest.er1
10890   ac_status=$?
10891   grep -v '^ *+' conftest.er1 >conftest.err
10892   rm -f conftest.er1
10893   cat conftest.err >&5
10894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10895   (exit $ac_status); } &&
10896          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10897   { (case "(($ac_try" in
10898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10899   *) ac_try_echo=$ac_try;;
10900 esac
10901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10902   (eval "$ac_try") 2>&5
10903   ac_status=$?
10904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10905   (exit $ac_status); }; } &&
10906          { ac_try='test -s conftest$ac_exeext'
10907   { (case "(($ac_try" in
10908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10909   *) ac_try_echo=$ac_try;;
10910 esac
10911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10912   (eval "$ac_try") 2>&5
10913   ac_status=$?
10914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10915   (exit $ac_status); }; }; then
10916   ac_cv_lib_dl_dlopen=yes
10917 else
10918   echo "$as_me: failed program was:" >&5
10919 sed 's/^/| /' conftest.$ac_ext >&5
10920
10921         ac_cv_lib_dl_dlopen=no
10922 fi
10923
10924 rm -f core conftest.err conftest.$ac_objext \
10925       conftest$ac_exeext conftest.$ac_ext
10926 LIBS=$ac_check_lib_save_LIBS
10927 fi
10928 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10929 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10930 if test $ac_cv_lib_dl_dlopen = yes; then
10931   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10932 else
10933
10934     lt_cv_dlopen="dyld"
10935     lt_cv_dlopen_libs=
10936     lt_cv_dlopen_self=yes
10937
10938 fi
10939
10940    ;;
10941
10942   *)
10943     { echo "$as_me:$LINENO: checking for shl_load" >&5
10944 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10945 if test "${ac_cv_func_shl_load+set}" = set; then
10946   echo $ECHO_N "(cached) $ECHO_C" >&6
10947 else
10948   cat >conftest.$ac_ext <<_ACEOF
10949 /* confdefs.h.  */
10950 _ACEOF
10951 cat confdefs.h >>conftest.$ac_ext
10952 cat >>conftest.$ac_ext <<_ACEOF
10953 /* end confdefs.h.  */
10954 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10955    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10956 #define shl_load innocuous_shl_load
10957
10958 /* System header to define __stub macros and hopefully few prototypes,
10959     which can conflict with char shl_load (); below.
10960     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10961     <limits.h> exists even on freestanding compilers.  */
10962
10963 #ifdef __STDC__
10964 # include <limits.h>
10965 #else
10966 # include <assert.h>
10967 #endif
10968
10969 #undef shl_load
10970
10971 /* Override any GCC internal prototype to avoid an error.
10972    Use char because int might match the return type of a GCC
10973    builtin and then its argument prototype would still apply.  */
10974 #ifdef __cplusplus
10975 extern "C"
10976 #endif
10977 char shl_load ();
10978 /* The GNU C library defines this for functions which it implements
10979     to always fail with ENOSYS.  Some functions are actually named
10980     something starting with __ and the normal name is an alias.  */
10981 #if defined __stub_shl_load || defined __stub___shl_load
10982 choke me
10983 #endif
10984
10985 int
10986 main ()
10987 {
10988 return shl_load ();
10989   ;
10990   return 0;
10991 }
10992 _ACEOF
10993 rm -f conftest.$ac_objext conftest$ac_exeext
10994 if { (ac_try="$ac_link"
10995 case "(($ac_try" in
10996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10997   *) ac_try_echo=$ac_try;;
10998 esac
10999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11000   (eval "$ac_link") 2>conftest.er1
11001   ac_status=$?
11002   grep -v '^ *+' conftest.er1 >conftest.err
11003   rm -f conftest.er1
11004   cat conftest.err >&5
11005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11006   (exit $ac_status); } &&
11007          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11008   { (case "(($ac_try" in
11009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11010   *) ac_try_echo=$ac_try;;
11011 esac
11012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11013   (eval "$ac_try") 2>&5
11014   ac_status=$?
11015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11016   (exit $ac_status); }; } &&
11017          { ac_try='test -s conftest$ac_exeext'
11018   { (case "(($ac_try" in
11019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11020   *) ac_try_echo=$ac_try;;
11021 esac
11022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11023   (eval "$ac_try") 2>&5
11024   ac_status=$?
11025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11026   (exit $ac_status); }; }; then
11027   ac_cv_func_shl_load=yes
11028 else
11029   echo "$as_me: failed program was:" >&5
11030 sed 's/^/| /' conftest.$ac_ext >&5
11031
11032         ac_cv_func_shl_load=no
11033 fi
11034
11035 rm -f core conftest.err conftest.$ac_objext \
11036       conftest$ac_exeext conftest.$ac_ext
11037 fi
11038 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11039 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
11040 if test $ac_cv_func_shl_load = yes; then
11041   lt_cv_dlopen="shl_load"
11042 else
11043   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11044 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
11045 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11046   echo $ECHO_N "(cached) $ECHO_C" >&6
11047 else
11048   ac_check_lib_save_LIBS=$LIBS
11049 LIBS="-ldld  $LIBS"
11050 cat >conftest.$ac_ext <<_ACEOF
11051 /* confdefs.h.  */
11052 _ACEOF
11053 cat confdefs.h >>conftest.$ac_ext
11054 cat >>conftest.$ac_ext <<_ACEOF
11055 /* end confdefs.h.  */
11056
11057 /* Override any GCC internal prototype to avoid an error.
11058    Use char because int might match the return type of a GCC
11059    builtin and then its argument prototype would still apply.  */
11060 #ifdef __cplusplus
11061 extern "C"
11062 #endif
11063 char shl_load ();
11064 int
11065 main ()
11066 {
11067 return shl_load ();
11068   ;
11069   return 0;
11070 }
11071 _ACEOF
11072 rm -f conftest.$ac_objext conftest$ac_exeext
11073 if { (ac_try="$ac_link"
11074 case "(($ac_try" in
11075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11076   *) ac_try_echo=$ac_try;;
11077 esac
11078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11079   (eval "$ac_link") 2>conftest.er1
11080   ac_status=$?
11081   grep -v '^ *+' conftest.er1 >conftest.err
11082   rm -f conftest.er1
11083   cat conftest.err >&5
11084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11085   (exit $ac_status); } &&
11086          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11087   { (case "(($ac_try" in
11088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11089   *) ac_try_echo=$ac_try;;
11090 esac
11091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11092   (eval "$ac_try") 2>&5
11093   ac_status=$?
11094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11095   (exit $ac_status); }; } &&
11096          { ac_try='test -s conftest$ac_exeext'
11097   { (case "(($ac_try" in
11098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11099   *) ac_try_echo=$ac_try;;
11100 esac
11101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11102   (eval "$ac_try") 2>&5
11103   ac_status=$?
11104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11105   (exit $ac_status); }; }; then
11106   ac_cv_lib_dld_shl_load=yes
11107 else
11108   echo "$as_me: failed program was:" >&5
11109 sed 's/^/| /' conftest.$ac_ext >&5
11110
11111         ac_cv_lib_dld_shl_load=no
11112 fi
11113
11114 rm -f core conftest.err conftest.$ac_objext \
11115       conftest$ac_exeext conftest.$ac_ext
11116 LIBS=$ac_check_lib_save_LIBS
11117 fi
11118 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11119 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
11120 if test $ac_cv_lib_dld_shl_load = yes; then
11121   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11122 else
11123   { echo "$as_me:$LINENO: checking for dlopen" >&5
11124 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
11125 if test "${ac_cv_func_dlopen+set}" = set; then
11126   echo $ECHO_N "(cached) $ECHO_C" >&6
11127 else
11128   cat >conftest.$ac_ext <<_ACEOF
11129 /* confdefs.h.  */
11130 _ACEOF
11131 cat confdefs.h >>conftest.$ac_ext
11132 cat >>conftest.$ac_ext <<_ACEOF
11133 /* end confdefs.h.  */
11134 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11135    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11136 #define dlopen innocuous_dlopen
11137
11138 /* System header to define __stub macros and hopefully few prototypes,
11139     which can conflict with char dlopen (); below.
11140     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11141     <limits.h> exists even on freestanding compilers.  */
11142
11143 #ifdef __STDC__
11144 # include <limits.h>
11145 #else
11146 # include <assert.h>
11147 #endif
11148
11149 #undef dlopen
11150
11151 /* Override any GCC internal prototype to avoid an error.
11152    Use char because int might match the return type of a GCC
11153    builtin and then its argument prototype would still apply.  */
11154 #ifdef __cplusplus
11155 extern "C"
11156 #endif
11157 char dlopen ();
11158 /* The GNU C library defines this for functions which it implements
11159     to always fail with ENOSYS.  Some functions are actually named
11160     something starting with __ and the normal name is an alias.  */
11161 #if defined __stub_dlopen || defined __stub___dlopen
11162 choke me
11163 #endif
11164
11165 int
11166 main ()
11167 {
11168 return dlopen ();
11169   ;
11170   return 0;
11171 }
11172 _ACEOF
11173 rm -f conftest.$ac_objext conftest$ac_exeext
11174 if { (ac_try="$ac_link"
11175 case "(($ac_try" in
11176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11177   *) ac_try_echo=$ac_try;;
11178 esac
11179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11180   (eval "$ac_link") 2>conftest.er1
11181   ac_status=$?
11182   grep -v '^ *+' conftest.er1 >conftest.err
11183   rm -f conftest.er1
11184   cat conftest.err >&5
11185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11186   (exit $ac_status); } &&
11187          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11188   { (case "(($ac_try" in
11189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11190   *) ac_try_echo=$ac_try;;
11191 esac
11192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11193   (eval "$ac_try") 2>&5
11194   ac_status=$?
11195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11196   (exit $ac_status); }; } &&
11197          { ac_try='test -s conftest$ac_exeext'
11198   { (case "(($ac_try" in
11199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11200   *) ac_try_echo=$ac_try;;
11201 esac
11202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11203   (eval "$ac_try") 2>&5
11204   ac_status=$?
11205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11206   (exit $ac_status); }; }; then
11207   ac_cv_func_dlopen=yes
11208 else
11209   echo "$as_me: failed program was:" >&5
11210 sed 's/^/| /' conftest.$ac_ext >&5
11211
11212         ac_cv_func_dlopen=no
11213 fi
11214
11215 rm -f core conftest.err conftest.$ac_objext \
11216       conftest$ac_exeext conftest.$ac_ext
11217 fi
11218 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11219 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
11220 if test $ac_cv_func_dlopen = yes; then
11221   lt_cv_dlopen="dlopen"
11222 else
11223   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11224 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
11225 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11226   echo $ECHO_N "(cached) $ECHO_C" >&6
11227 else
11228   ac_check_lib_save_LIBS=$LIBS
11229 LIBS="-ldl  $LIBS"
11230 cat >conftest.$ac_ext <<_ACEOF
11231 /* confdefs.h.  */
11232 _ACEOF
11233 cat confdefs.h >>conftest.$ac_ext
11234 cat >>conftest.$ac_ext <<_ACEOF
11235 /* end confdefs.h.  */
11236
11237 /* Override any GCC internal prototype to avoid an error.
11238    Use char because int might match the return type of a GCC
11239    builtin and then its argument prototype would still apply.  */
11240 #ifdef __cplusplus
11241 extern "C"
11242 #endif
11243 char dlopen ();
11244 int
11245 main ()
11246 {
11247 return dlopen ();
11248   ;
11249   return 0;
11250 }
11251 _ACEOF
11252 rm -f conftest.$ac_objext conftest$ac_exeext
11253 if { (ac_try="$ac_link"
11254 case "(($ac_try" in
11255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11256   *) ac_try_echo=$ac_try;;
11257 esac
11258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11259   (eval "$ac_link") 2>conftest.er1
11260   ac_status=$?
11261   grep -v '^ *+' conftest.er1 >conftest.err
11262   rm -f conftest.er1
11263   cat conftest.err >&5
11264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11265   (exit $ac_status); } &&
11266          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11267   { (case "(($ac_try" in
11268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11269   *) ac_try_echo=$ac_try;;
11270 esac
11271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11272   (eval "$ac_try") 2>&5
11273   ac_status=$?
11274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11275   (exit $ac_status); }; } &&
11276          { ac_try='test -s conftest$ac_exeext'
11277   { (case "(($ac_try" in
11278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11279   *) ac_try_echo=$ac_try;;
11280 esac
11281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11282   (eval "$ac_try") 2>&5
11283   ac_status=$?
11284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11285   (exit $ac_status); }; }; then
11286   ac_cv_lib_dl_dlopen=yes
11287 else
11288   echo "$as_me: failed program was:" >&5
11289 sed 's/^/| /' conftest.$ac_ext >&5
11290
11291         ac_cv_lib_dl_dlopen=no
11292 fi
11293
11294 rm -f core conftest.err conftest.$ac_objext \
11295       conftest$ac_exeext conftest.$ac_ext
11296 LIBS=$ac_check_lib_save_LIBS
11297 fi
11298 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11299 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11300 if test $ac_cv_lib_dl_dlopen = yes; then
11301   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11302 else
11303   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11304 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
11305 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11306   echo $ECHO_N "(cached) $ECHO_C" >&6
11307 else
11308   ac_check_lib_save_LIBS=$LIBS
11309 LIBS="-lsvld  $LIBS"
11310 cat >conftest.$ac_ext <<_ACEOF
11311 /* confdefs.h.  */
11312 _ACEOF
11313 cat confdefs.h >>conftest.$ac_ext
11314 cat >>conftest.$ac_ext <<_ACEOF
11315 /* end confdefs.h.  */
11316
11317 /* Override any GCC internal prototype to avoid an error.
11318    Use char because int might match the return type of a GCC
11319    builtin and then its argument prototype would still apply.  */
11320 #ifdef __cplusplus
11321 extern "C"
11322 #endif
11323 char dlopen ();
11324 int
11325 main ()
11326 {
11327 return dlopen ();
11328   ;
11329   return 0;
11330 }
11331 _ACEOF
11332 rm -f conftest.$ac_objext conftest$ac_exeext
11333 if { (ac_try="$ac_link"
11334 case "(($ac_try" in
11335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11336   *) ac_try_echo=$ac_try;;
11337 esac
11338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11339   (eval "$ac_link") 2>conftest.er1
11340   ac_status=$?
11341   grep -v '^ *+' conftest.er1 >conftest.err
11342   rm -f conftest.er1
11343   cat conftest.err >&5
11344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11345   (exit $ac_status); } &&
11346          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11347   { (case "(($ac_try" in
11348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11349   *) ac_try_echo=$ac_try;;
11350 esac
11351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11352   (eval "$ac_try") 2>&5
11353   ac_status=$?
11354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11355   (exit $ac_status); }; } &&
11356          { ac_try='test -s conftest$ac_exeext'
11357   { (case "(($ac_try" in
11358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11359   *) ac_try_echo=$ac_try;;
11360 esac
11361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11362   (eval "$ac_try") 2>&5
11363   ac_status=$?
11364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11365   (exit $ac_status); }; }; then
11366   ac_cv_lib_svld_dlopen=yes
11367 else
11368   echo "$as_me: failed program was:" >&5
11369 sed 's/^/| /' conftest.$ac_ext >&5
11370
11371         ac_cv_lib_svld_dlopen=no
11372 fi
11373
11374 rm -f core conftest.err conftest.$ac_objext \
11375       conftest$ac_exeext conftest.$ac_ext
11376 LIBS=$ac_check_lib_save_LIBS
11377 fi
11378 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11379 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11380 if test $ac_cv_lib_svld_dlopen = yes; then
11381   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11382 else
11383   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11384 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11385 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11386   echo $ECHO_N "(cached) $ECHO_C" >&6
11387 else
11388   ac_check_lib_save_LIBS=$LIBS
11389 LIBS="-ldld  $LIBS"
11390 cat >conftest.$ac_ext <<_ACEOF
11391 /* confdefs.h.  */
11392 _ACEOF
11393 cat confdefs.h >>conftest.$ac_ext
11394 cat >>conftest.$ac_ext <<_ACEOF
11395 /* end confdefs.h.  */
11396
11397 /* Override any GCC internal prototype to avoid an error.
11398    Use char because int might match the return type of a GCC
11399    builtin and then its argument prototype would still apply.  */
11400 #ifdef __cplusplus
11401 extern "C"
11402 #endif
11403 char dld_link ();
11404 int
11405 main ()
11406 {
11407 return dld_link ();
11408   ;
11409   return 0;
11410 }
11411 _ACEOF
11412 rm -f conftest.$ac_objext conftest$ac_exeext
11413 if { (ac_try="$ac_link"
11414 case "(($ac_try" in
11415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11416   *) ac_try_echo=$ac_try;;
11417 esac
11418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11419   (eval "$ac_link") 2>conftest.er1
11420   ac_status=$?
11421   grep -v '^ *+' conftest.er1 >conftest.err
11422   rm -f conftest.er1
11423   cat conftest.err >&5
11424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11425   (exit $ac_status); } &&
11426          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11427   { (case "(($ac_try" in
11428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11429   *) ac_try_echo=$ac_try;;
11430 esac
11431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11432   (eval "$ac_try") 2>&5
11433   ac_status=$?
11434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11435   (exit $ac_status); }; } &&
11436          { ac_try='test -s conftest$ac_exeext'
11437   { (case "(($ac_try" in
11438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11439   *) ac_try_echo=$ac_try;;
11440 esac
11441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11442   (eval "$ac_try") 2>&5
11443   ac_status=$?
11444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11445   (exit $ac_status); }; }; then
11446   ac_cv_lib_dld_dld_link=yes
11447 else
11448   echo "$as_me: failed program was:" >&5
11449 sed 's/^/| /' conftest.$ac_ext >&5
11450
11451         ac_cv_lib_dld_dld_link=no
11452 fi
11453
11454 rm -f core conftest.err conftest.$ac_objext \
11455       conftest$ac_exeext conftest.$ac_ext
11456 LIBS=$ac_check_lib_save_LIBS
11457 fi
11458 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11459 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11460 if test $ac_cv_lib_dld_dld_link = yes; then
11461   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11462 fi
11463
11464
11465 fi
11466
11467
11468 fi
11469
11470
11471 fi
11472
11473
11474 fi
11475
11476
11477 fi
11478
11479     ;;
11480   esac
11481
11482   if test "x$lt_cv_dlopen" != xno; then
11483     enable_dlopen=yes
11484   else
11485     enable_dlopen=no
11486   fi
11487
11488   case $lt_cv_dlopen in
11489   dlopen)
11490     save_CPPFLAGS="$CPPFLAGS"
11491     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11492
11493     save_LDFLAGS="$LDFLAGS"
11494     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11495
11496     save_LIBS="$LIBS"
11497     LIBS="$lt_cv_dlopen_libs $LIBS"
11498
11499     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11500 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
11501 if test "${lt_cv_dlopen_self+set}" = set; then
11502   echo $ECHO_N "(cached) $ECHO_C" >&6
11503 else
11504           if test "$cross_compiling" = yes; then :
11505   lt_cv_dlopen_self=cross
11506 else
11507   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11508   lt_status=$lt_dlunknown
11509   cat > conftest.$ac_ext <<EOF
11510 #line 11510 "configure"
11511 #include "confdefs.h"
11512
11513 #if HAVE_DLFCN_H
11514 #include <dlfcn.h>
11515 #endif
11516
11517 #include <stdio.h>
11518
11519 #ifdef RTLD_GLOBAL
11520 #  define LT_DLGLOBAL           RTLD_GLOBAL
11521 #else
11522 #  ifdef DL_GLOBAL
11523 #    define LT_DLGLOBAL         DL_GLOBAL
11524 #  else
11525 #    define LT_DLGLOBAL         0
11526 #  endif
11527 #endif
11528
11529 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11530    find out it does not work in some platform. */
11531 #ifndef LT_DLLAZY_OR_NOW
11532 #  ifdef RTLD_LAZY
11533 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11534 #  else
11535 #    ifdef DL_LAZY
11536 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11537 #    else
11538 #      ifdef RTLD_NOW
11539 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11540 #      else
11541 #        ifdef DL_NOW
11542 #          define LT_DLLAZY_OR_NOW      DL_NOW
11543 #        else
11544 #          define LT_DLLAZY_OR_NOW      0
11545 #        endif
11546 #      endif
11547 #    endif
11548 #  endif
11549 #endif
11550
11551 #ifdef __cplusplus
11552 extern "C" void exit (int);
11553 #endif
11554
11555 void fnord() { int i=42;}
11556 int main ()
11557 {
11558   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11559   int status = $lt_dlunknown;
11560
11561   if (self)
11562     {
11563       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11564       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11565       /* dlclose (self); */
11566     }
11567   else
11568     puts (dlerror ());
11569
11570     exit (status);
11571 }
11572 EOF
11573   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11574   (eval $ac_link) 2>&5
11575   ac_status=$?
11576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11577   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11578     (./conftest; exit; ) >&5 2>/dev/null
11579     lt_status=$?
11580     case x$lt_status in
11581       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11582       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11583       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11584     esac
11585   else :
11586     # compilation failed
11587     lt_cv_dlopen_self=no
11588   fi
11589 fi
11590 rm -fr conftest*
11591
11592
11593 fi
11594 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11595 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
11596
11597     if test "x$lt_cv_dlopen_self" = xyes; then
11598       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11599       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11600 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
11601 if test "${lt_cv_dlopen_self_static+set}" = set; then
11602   echo $ECHO_N "(cached) $ECHO_C" >&6
11603 else
11604           if test "$cross_compiling" = yes; then :
11605   lt_cv_dlopen_self_static=cross
11606 else
11607   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11608   lt_status=$lt_dlunknown
11609   cat > conftest.$ac_ext <<EOF
11610 #line 11610 "configure"
11611 #include "confdefs.h"
11612
11613 #if HAVE_DLFCN_H
11614 #include <dlfcn.h>
11615 #endif
11616
11617 #include <stdio.h>
11618
11619 #ifdef RTLD_GLOBAL
11620 #  define LT_DLGLOBAL           RTLD_GLOBAL
11621 #else
11622 #  ifdef DL_GLOBAL
11623 #    define LT_DLGLOBAL         DL_GLOBAL
11624 #  else
11625 #    define LT_DLGLOBAL         0
11626 #  endif
11627 #endif
11628
11629 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11630    find out it does not work in some platform. */
11631 #ifndef LT_DLLAZY_OR_NOW
11632 #  ifdef RTLD_LAZY
11633 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11634 #  else
11635 #    ifdef DL_LAZY
11636 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11637 #    else
11638 #      ifdef RTLD_NOW
11639 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11640 #      else
11641 #        ifdef DL_NOW
11642 #          define LT_DLLAZY_OR_NOW      DL_NOW
11643 #        else
11644 #          define LT_DLLAZY_OR_NOW      0
11645 #        endif
11646 #      endif
11647 #    endif
11648 #  endif
11649 #endif
11650
11651 #ifdef __cplusplus
11652 extern "C" void exit (int);
11653 #endif
11654
11655 void fnord() { int i=42;}
11656 int main ()
11657 {
11658   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11659   int status = $lt_dlunknown;
11660
11661   if (self)
11662     {
11663       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11664       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11665       /* dlclose (self); */
11666     }
11667   else
11668     puts (dlerror ());
11669
11670     exit (status);
11671 }
11672 EOF
11673   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11674   (eval $ac_link) 2>&5
11675   ac_status=$?
11676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11677   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11678     (./conftest; exit; ) >&5 2>/dev/null
11679     lt_status=$?
11680     case x$lt_status in
11681       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11682       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11683       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11684     esac
11685   else :
11686     # compilation failed
11687     lt_cv_dlopen_self_static=no
11688   fi
11689 fi
11690 rm -fr conftest*
11691
11692
11693 fi
11694 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11695 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
11696     fi
11697
11698     CPPFLAGS="$save_CPPFLAGS"
11699     LDFLAGS="$save_LDFLAGS"
11700     LIBS="$save_LIBS"
11701     ;;
11702   esac
11703
11704   case $lt_cv_dlopen_self in
11705   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11706   *) enable_dlopen_self=unknown ;;
11707   esac
11708
11709   case $lt_cv_dlopen_self_static in
11710   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11711   *) enable_dlopen_self_static=unknown ;;
11712   esac
11713 fi
11714
11715
11716 # Report which library types will actually be built
11717 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11718 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11719 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
11720 echo "${ECHO_T}$can_build_shared" >&6; }
11721
11722 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11723 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11724 test "$can_build_shared" = "no" && enable_shared=no
11725
11726 # On AIX, shared libraries and static libraries use the same namespace, and
11727 # are all built from PIC.
11728 case $host_os in
11729 aix3*)
11730   test "$enable_shared" = yes && enable_static=no
11731   if test -n "$RANLIB"; then
11732     archive_cmds="$archive_cmds~\$RANLIB \$lib"
11733     postinstall_cmds='$RANLIB $lib'
11734   fi
11735   ;;
11736
11737 aix4* | aix5*)
11738   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11739     test "$enable_shared" = yes && enable_static=no
11740   fi
11741     ;;
11742 esac
11743 { echo "$as_me:$LINENO: result: $enable_shared" >&5
11744 echo "${ECHO_T}$enable_shared" >&6; }
11745
11746 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11747 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11748 # Make sure either enable_shared or enable_static is yes.
11749 test "$enable_shared" = yes || enable_static=yes
11750 { echo "$as_me:$LINENO: result: $enable_static" >&5
11751 echo "${ECHO_T}$enable_static" >&6; }
11752
11753 # The else clause should only fire when bootstrapping the
11754 # libtool distribution, otherwise you forgot to ship ltmain.sh
11755 # with your package, and you will get complaints that there are
11756 # no rules to generate ltmain.sh.
11757 if test -f "$ltmain"; then
11758   # See if we are running on zsh, and set the options which allow our commands through
11759   # without removal of \ escapes.
11760   if test -n "${ZSH_VERSION+set}" ; then
11761     setopt NO_GLOB_SUBST
11762   fi
11763   # Now quote all the things that may contain metacharacters while being
11764   # careful not to overquote the AC_SUBSTed values.  We take copies of the
11765   # variables and quote the copies for generation of the libtool script.
11766   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
11767     SED SHELL STRIP \
11768     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11769     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11770     deplibs_check_method reload_flag reload_cmds need_locks \
11771     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11772     lt_cv_sys_global_symbol_to_c_name_address \
11773     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11774     old_postinstall_cmds old_postuninstall_cmds \
11775     compiler \
11776     CC \
11777     LD \
11778     lt_prog_compiler_wl \
11779     lt_prog_compiler_pic \
11780     lt_prog_compiler_static \
11781     lt_prog_compiler_no_builtin_flag \
11782     export_dynamic_flag_spec \
11783     thread_safe_flag_spec \
11784     whole_archive_flag_spec \
11785     enable_shared_with_static_runtimes \
11786     old_archive_cmds \
11787     old_archive_from_new_cmds \
11788     predep_objects \
11789     postdep_objects \
11790     predeps \
11791     postdeps \
11792     compiler_lib_search_path \
11793     archive_cmds \
11794     archive_expsym_cmds \
11795     postinstall_cmds \
11796     postuninstall_cmds \
11797     old_archive_from_expsyms_cmds \
11798     allow_undefined_flag \
11799     no_undefined_flag \
11800     export_symbols_cmds \
11801     hardcode_libdir_flag_spec \
11802     hardcode_libdir_flag_spec_ld \
11803     hardcode_libdir_separator \
11804     hardcode_automatic \
11805     module_cmds \
11806     module_expsym_cmds \
11807     lt_cv_prog_compiler_c_o \
11808     exclude_expsyms \
11809     include_expsyms; do
11810
11811     case $var in
11812     old_archive_cmds | \
11813     old_archive_from_new_cmds | \
11814     archive_cmds | \
11815     archive_expsym_cmds | \
11816     module_cmds | \
11817     module_expsym_cmds | \
11818     old_archive_from_expsyms_cmds | \
11819     export_symbols_cmds | \
11820     extract_expsyms_cmds | reload_cmds | finish_cmds | \
11821     postinstall_cmds | postuninstall_cmds | \
11822     old_postinstall_cmds | old_postuninstall_cmds | \
11823     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11824       # Double-quote double-evaled strings.
11825       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11826       ;;
11827     *)
11828       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11829       ;;
11830     esac
11831   done
11832
11833   case $lt_echo in
11834   *'\$0 --fallback-echo"')
11835     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11836     ;;
11837   esac
11838
11839 cfgfile="${ofile}T"
11840   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11841   $rm -f "$cfgfile"
11842   { echo "$as_me:$LINENO: creating $ofile" >&5
11843 echo "$as_me: creating $ofile" >&6;}
11844
11845   cat <<__EOF__ >> "$cfgfile"
11846 #! $SHELL
11847
11848 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11849 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11850 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11851 #
11852 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11853 # Free Software Foundation, Inc.
11854 #
11855 # This file is part of GNU Libtool:
11856 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11857 #
11858 # This program is free software; you can redistribute it and/or modify
11859 # it under the terms of the GNU General Public License as published by
11860 # the Free Software Foundation; either version 2 of the License, or
11861 # (at your option) any later version.
11862 #
11863 # This program is distributed in the hope that it will be useful, but
11864 # WITHOUT ANY WARRANTY; without even the implied warranty of
11865 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11866 # General Public License for more details.
11867 #
11868 # You should have received a copy of the GNU General Public License
11869 # along with this program; if not, write to the Free Software
11870 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11871 #
11872 # As a special exception to the GNU General Public License, if you
11873 # distribute this file as part of a program that contains a
11874 # configuration script generated by Autoconf, you may include it under
11875 # the same distribution terms that you use for the rest of that program.
11876
11877 # A sed program that does not truncate output.
11878 SED=$lt_SED
11879
11880 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11881 Xsed="$SED -e 1s/^X//"
11882
11883 # The HP-UX ksh and POSIX shell print the target directory to stdout
11884 # if CDPATH is set.
11885 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11886
11887 # The names of the tagged configurations supported by this script.
11888 available_tags=
11889
11890 # ### BEGIN LIBTOOL CONFIG
11891
11892 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11893
11894 # Shell to use when invoking shell scripts.
11895 SHELL=$lt_SHELL
11896
11897 # Whether or not to build shared libraries.
11898 build_libtool_libs=$enable_shared
11899
11900 # Whether or not to build static libraries.
11901 build_old_libs=$enable_static
11902
11903 # Whether or not to add -lc for building shared libraries.
11904 build_libtool_need_lc=$archive_cmds_need_lc
11905
11906 # Whether or not to disallow shared libs when runtime libs are static
11907 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11908
11909 # Whether or not to optimize for fast installation.
11910 fast_install=$enable_fast_install
11911
11912 # The host system.
11913 host_alias=$host_alias
11914 host=$host
11915 host_os=$host_os
11916
11917 # The build system.
11918 build_alias=$build_alias
11919 build=$build
11920 build_os=$build_os
11921
11922 # An echo program that does not interpret backslashes.
11923 echo=$lt_echo
11924
11925 # The archiver.
11926 AR=$lt_AR
11927 AR_FLAGS=$lt_AR_FLAGS
11928
11929 # A C compiler.
11930 LTCC=$lt_LTCC
11931
11932 # LTCC compiler flags.
11933 LTCFLAGS=$lt_LTCFLAGS
11934
11935 # A language-specific compiler.
11936 CC=$lt_compiler
11937
11938 # Is the compiler the GNU C compiler?
11939 with_gcc=$GCC
11940
11941 # An ERE matcher.
11942 EGREP=$lt_EGREP
11943
11944 # The linker used to build libraries.
11945 LD=$lt_LD
11946
11947 # Whether we need hard or soft links.
11948 LN_S=$lt_LN_S
11949
11950 # A BSD-compatible nm program.
11951 NM=$lt_NM
11952
11953 # A symbol stripping program
11954 STRIP=$lt_STRIP
11955
11956 # Used to examine libraries when file_magic_cmd begins "file"
11957 MAGIC_CMD=$MAGIC_CMD
11958
11959 # Used on cygwin: DLL creation program.
11960 DLLTOOL="$DLLTOOL"
11961
11962 # Used on cygwin: object dumper.
11963 OBJDUMP="$OBJDUMP"
11964
11965 # Used on cygwin: assembler.
11966 AS="$AS"
11967
11968 # The name of the directory that contains temporary libtool files.
11969 objdir=$objdir
11970
11971 # How to create reloadable object files.
11972 reload_flag=$lt_reload_flag
11973 reload_cmds=$lt_reload_cmds
11974
11975 # How to pass a linker flag through the compiler.
11976 wl=$lt_lt_prog_compiler_wl
11977
11978 # Object file suffix (normally "o").
11979 objext="$ac_objext"
11980
11981 # Old archive suffix (normally "a").
11982 libext="$libext"
11983
11984 # Shared library suffix (normally ".so").
11985 shrext_cmds='$shrext_cmds'
11986
11987 # Executable file suffix (normally "").
11988 exeext="$exeext"
11989
11990 # Additional compiler flags for building library objects.
11991 pic_flag=$lt_lt_prog_compiler_pic
11992 pic_mode=$pic_mode
11993
11994 # What is the maximum length of a command?
11995 max_cmd_len=$lt_cv_sys_max_cmd_len
11996
11997 # Does compiler simultaneously support -c and -o options?
11998 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11999
12000 # Must we lock files when doing compilation?
12001 need_locks=$lt_need_locks
12002
12003 # Do we need the lib prefix for modules?
12004 need_lib_prefix=$need_lib_prefix
12005
12006 # Do we need a version for libraries?
12007 need_version=$need_version
12008
12009 # Whether dlopen is supported.
12010 dlopen_support=$enable_dlopen
12011
12012 # Whether dlopen of programs is supported.
12013 dlopen_self=$enable_dlopen_self
12014
12015 # Whether dlopen of statically linked programs is supported.
12016 dlopen_self_static=$enable_dlopen_self_static
12017
12018 # Compiler flag to prevent dynamic linking.
12019 link_static_flag=$lt_lt_prog_compiler_static
12020
12021 # Compiler flag to turn off builtin functions.
12022 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
12023
12024 # Compiler flag to allow reflexive dlopens.
12025 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
12026
12027 # Compiler flag to generate shared objects directly from archives.
12028 whole_archive_flag_spec=$lt_whole_archive_flag_spec
12029
12030 # Compiler flag to generate thread-safe objects.
12031 thread_safe_flag_spec=$lt_thread_safe_flag_spec
12032
12033 # Library versioning type.
12034 version_type=$version_type
12035
12036 # Format of library name prefix.
12037 libname_spec=$lt_libname_spec
12038
12039 # List of archive names.  First name is the real one, the rest are links.
12040 # The last name is the one that the linker finds with -lNAME.
12041 library_names_spec=$lt_library_names_spec
12042
12043 # The coded name of the library, if different from the real name.
12044 soname_spec=$lt_soname_spec
12045
12046 # Commands used to build and install an old-style archive.
12047 RANLIB=$lt_RANLIB
12048 old_archive_cmds=$lt_old_archive_cmds
12049 old_postinstall_cmds=$lt_old_postinstall_cmds
12050 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12051
12052 # Create an old-style archive from a shared archive.
12053 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
12054
12055 # Create a temporary old-style archive to link instead of a shared archive.
12056 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
12057
12058 # Commands used to build and install a shared archive.
12059 archive_cmds=$lt_archive_cmds
12060 archive_expsym_cmds=$lt_archive_expsym_cmds
12061 postinstall_cmds=$lt_postinstall_cmds
12062 postuninstall_cmds=$lt_postuninstall_cmds
12063
12064 # Commands used to build a loadable module (assumed same as above if empty)
12065 module_cmds=$lt_module_cmds
12066 module_expsym_cmds=$lt_module_expsym_cmds
12067
12068 # Commands to strip libraries.
12069 old_striplib=$lt_old_striplib
12070 striplib=$lt_striplib
12071
12072 # Dependencies to place before the objects being linked to create a
12073 # shared library.
12074 predep_objects=$lt_predep_objects
12075
12076 # Dependencies to place after the objects being linked to create a
12077 # shared library.
12078 postdep_objects=$lt_postdep_objects
12079
12080 # Dependencies to place before the objects being linked to create a
12081 # shared library.
12082 predeps=$lt_predeps
12083
12084 # Dependencies to place after the objects being linked to create a
12085 # shared library.
12086 postdeps=$lt_postdeps
12087
12088 # The library search path used internally by the compiler when linking
12089 # a shared library.
12090 compiler_lib_search_path=$lt_compiler_lib_search_path
12091
12092 # Method to check whether dependent libraries are shared objects.
12093 deplibs_check_method=$lt_deplibs_check_method
12094
12095 # Command to use when deplibs_check_method == file_magic.
12096 file_magic_cmd=$lt_file_magic_cmd
12097
12098 # Flag that allows shared libraries with undefined symbols to be built.
12099 allow_undefined_flag=$lt_allow_undefined_flag
12100
12101 # Flag that forces no undefined symbols.
12102 no_undefined_flag=$lt_no_undefined_flag
12103
12104 # Commands used to finish a libtool library installation in a directory.
12105 finish_cmds=$lt_finish_cmds
12106
12107 # Same as above, but a single script fragment to be evaled but not shown.
12108 finish_eval=$lt_finish_eval
12109
12110 # Take the output of nm and produce a listing of raw symbols and C names.
12111 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12112
12113 # Transform the output of nm in a proper C declaration
12114 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12115
12116 # Transform the output of nm in a C name address pair
12117 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12118
12119 # This is the shared library runtime path variable.
12120 runpath_var=$runpath_var
12121
12122 # This is the shared library path variable.
12123 shlibpath_var=$shlibpath_var
12124
12125 # Is shlibpath searched before the hard-coded library search path?
12126 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12127
12128 # How to hardcode a shared library path into an executable.
12129 hardcode_action=$hardcode_action
12130
12131 # Whether we should hardcode library paths into libraries.
12132 hardcode_into_libs=$hardcode_into_libs
12133
12134 # Flag to hardcode \$libdir into a binary during linking.
12135 # This must work even if \$libdir does not exist.
12136 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
12137
12138 # If ld is used when linking, flag to hardcode \$libdir into
12139 # a binary during linking. This must work even if \$libdir does
12140 # not exist.
12141 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
12142
12143 # Whether we need a single -rpath flag with a separated argument.
12144 hardcode_libdir_separator=$lt_hardcode_libdir_separator
12145
12146 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12147 # resulting binary.
12148 hardcode_direct=$hardcode_direct
12149
12150 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12151 # resulting binary.
12152 hardcode_minus_L=$hardcode_minus_L
12153
12154 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12155 # the resulting binary.
12156 hardcode_shlibpath_var=$hardcode_shlibpath_var
12157
12158 # Set to yes if building a shared library automatically hardcodes DIR into the library
12159 # and all subsequent libraries and executables linked against it.
12160 hardcode_automatic=$hardcode_automatic
12161
12162 # Variables whose values should be saved in libtool wrapper scripts and
12163 # restored at relink time.
12164 variables_saved_for_relink="$variables_saved_for_relink"
12165
12166 # Whether libtool must link a program against all its dependency libraries.
12167 link_all_deplibs=$link_all_deplibs
12168
12169 # Compile-time system search path for libraries
12170 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12171
12172 # Run-time system search path for libraries
12173 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12174
12175 # Fix the shell variable \$srcfile for the compiler.
12176 fix_srcfile_path="$fix_srcfile_path"
12177
12178 # Set to yes if exported symbols are required.
12179 always_export_symbols=$always_export_symbols
12180
12181 # The commands to list exported symbols.
12182 export_symbols_cmds=$lt_export_symbols_cmds
12183
12184 # The commands to extract the exported symbol list from a shared archive.
12185 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12186
12187 # Symbols that should not be listed in the preloaded symbols.
12188 exclude_expsyms=$lt_exclude_expsyms
12189
12190 # Symbols that must always be exported.
12191 include_expsyms=$lt_include_expsyms
12192
12193 # ### END LIBTOOL CONFIG
12194
12195 __EOF__
12196
12197
12198   case $host_os in
12199   aix3*)
12200     cat <<\EOF >> "$cfgfile"
12201
12202 # AIX sometimes has problems with the GCC collect2 program.  For some
12203 # reason, if we set the COLLECT_NAMES environment variable, the problems
12204 # vanish in a puff of smoke.
12205 if test "X${COLLECT_NAMES+set}" != Xset; then
12206   COLLECT_NAMES=
12207   export COLLECT_NAMES
12208 fi
12209 EOF
12210     ;;
12211   esac
12212
12213   # We use sed instead of cat because bash on DJGPP gets confused if
12214   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
12215   # text mode, it properly converts lines to CR/LF.  This bash problem
12216   # is reportedly fixed, but why not run on old versions too?
12217   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
12218
12219   mv -f "$cfgfile" "$ofile" || \
12220     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
12221   chmod +x "$ofile"
12222
12223 else
12224   # If there is no Makefile yet, we rely on a make rule to execute
12225   # `config.status --recheck' to rerun these tests and create the
12226   # libtool script then.
12227   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12228   if test -f "$ltmain_in"; then
12229     test -f Makefile && make "$ltmain"
12230   fi
12231 fi
12232
12233
12234 ac_ext=c
12235 ac_cpp='$CPP $CPPFLAGS'
12236 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12237 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12238 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12239
12240 CC="$lt_save_CC"
12241
12242
12243 # Check whether --with-tags was given.
12244 if test "${with_tags+set}" = set; then
12245   withval=$with_tags; tagnames="$withval"
12246 fi
12247
12248
12249 if test -f "$ltmain" && test -n "$tagnames"; then
12250   if test ! -f "${ofile}"; then
12251     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
12252 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
12253   fi
12254
12255   if test -z "$LTCC"; then
12256     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
12257     if test -z "$LTCC"; then
12258       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
12259 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
12260     else
12261       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
12262 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
12263     fi
12264   fi
12265   if test -z "$LTCFLAGS"; then
12266     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
12267   fi
12268
12269   # Extract list of available tagged configurations in $ofile.
12270   # Note that this assumes the entire list is on one line.
12271   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
12272
12273   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12274   for tagname in $tagnames; do
12275     IFS="$lt_save_ifs"
12276     # Check whether tagname contains only valid characters
12277     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
12278     "") ;;
12279     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
12280 echo "$as_me: error: invalid tag name: $tagname" >&2;}
12281    { (exit 1); exit 1; }; }
12282         ;;
12283     esac
12284
12285     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
12286     then
12287       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
12288 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
12289    { (exit 1); exit 1; }; }
12290     fi
12291
12292     # Update the list of available tags.
12293     if test -n "$tagname"; then
12294       echo appending configuration tag \"$tagname\" to $ofile
12295
12296       case $tagname in
12297       CXX)
12298         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12299             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12300             (test "X$CXX" != "Xg++"))) ; then
12301           ac_ext=cpp
12302 ac_cpp='$CXXCPP $CPPFLAGS'
12303 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12304 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12305 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12306
12307
12308
12309
12310 archive_cmds_need_lc_CXX=no
12311 allow_undefined_flag_CXX=
12312 always_export_symbols_CXX=no
12313 archive_expsym_cmds_CXX=
12314 export_dynamic_flag_spec_CXX=
12315 hardcode_direct_CXX=no
12316 hardcode_libdir_flag_spec_CXX=
12317 hardcode_libdir_flag_spec_ld_CXX=
12318 hardcode_libdir_separator_CXX=
12319 hardcode_minus_L_CXX=no
12320 hardcode_shlibpath_var_CXX=unsupported
12321 hardcode_automatic_CXX=no
12322 module_cmds_CXX=
12323 module_expsym_cmds_CXX=
12324 link_all_deplibs_CXX=unknown
12325 old_archive_cmds_CXX=$old_archive_cmds
12326 no_undefined_flag_CXX=
12327 whole_archive_flag_spec_CXX=
12328 enable_shared_with_static_runtimes_CXX=no
12329
12330 # Dependencies to place before and after the object being linked:
12331 predep_objects_CXX=
12332 postdep_objects_CXX=
12333 predeps_CXX=
12334 postdeps_CXX=
12335 compiler_lib_search_path_CXX=
12336
12337 # Source file extension for C++ test sources.
12338 ac_ext=cpp
12339
12340 # Object file extension for compiled C++ test sources.
12341 objext=o
12342 objext_CXX=$objext
12343
12344 # Code to be used in simple compile tests
12345 lt_simple_compile_test_code="int some_variable = 0;\n"
12346
12347 # Code to be used in simple link tests
12348 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
12349
12350 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12351
12352 # If no C compiler was specified, use CC.
12353 LTCC=${LTCC-"$CC"}
12354
12355 # If no C compiler flags were specified, use CFLAGS.
12356 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12357
12358 # Allow CC to be a program name with arguments.
12359 compiler=$CC
12360
12361
12362 # save warnings/boilerplate of simple test code
12363 ac_outfile=conftest.$ac_objext
12364 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
12365 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12366 _lt_compiler_boilerplate=`cat conftest.err`
12367 $rm conftest*
12368
12369 ac_outfile=conftest.$ac_objext
12370 printf "$lt_simple_link_test_code" >conftest.$ac_ext
12371 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12372 _lt_linker_boilerplate=`cat conftest.err`
12373 $rm conftest*
12374
12375
12376 # Allow CC to be a program name with arguments.
12377 lt_save_CC=$CC
12378 lt_save_LD=$LD
12379 lt_save_GCC=$GCC
12380 GCC=$GXX
12381 lt_save_with_gnu_ld=$with_gnu_ld
12382 lt_save_path_LD=$lt_cv_path_LD
12383 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12384   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12385 else
12386   $as_unset lt_cv_prog_gnu_ld
12387 fi
12388 if test -n "${lt_cv_path_LDCXX+set}"; then
12389   lt_cv_path_LD=$lt_cv_path_LDCXX
12390 else
12391   $as_unset lt_cv_path_LD
12392 fi
12393 test -z "${LDCXX+set}" || LD=$LDCXX
12394 CC=${CXX-"c++"}
12395 compiler=$CC
12396 compiler_CXX=$CC
12397 for cc_temp in $compiler""; do
12398   case $cc_temp in
12399     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12400     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12401     \-*) ;;
12402     *) break;;
12403   esac
12404 done
12405 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12406
12407
12408 # We don't want -fno-exception wen compiling C++ code, so set the
12409 # no_builtin_flag separately
12410 if test "$GXX" = yes; then
12411   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12412 else
12413   lt_prog_compiler_no_builtin_flag_CXX=
12414 fi
12415
12416 if test "$GXX" = yes; then
12417   # Set up default GNU C++ configuration
12418
12419
12420 # Check whether --with-gnu-ld was given.
12421 if test "${with_gnu_ld+set}" = set; then
12422   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12423 else
12424   with_gnu_ld=no
12425 fi
12426
12427 ac_prog=ld
12428 if test "$GCC" = yes; then
12429   # Check if gcc -print-prog-name=ld gives a path.
12430   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12431 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12432   case $host in
12433   *-*-mingw*)
12434     # gcc leaves a trailing carriage return which upsets mingw
12435     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12436   *)
12437     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12438   esac
12439   case $ac_prog in
12440     # Accept absolute paths.
12441     [\\/]* | ?:[\\/]*)
12442       re_direlt='/[^/][^/]*/\.\./'
12443       # Canonicalize the pathname of ld
12444       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12445       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12446         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12447       done
12448       test -z "$LD" && LD="$ac_prog"
12449       ;;
12450   "")
12451     # If it fails, then pretend we aren't using GCC.
12452     ac_prog=ld
12453     ;;
12454   *)
12455     # If it is relative, then search for the first ld in PATH.
12456     with_gnu_ld=unknown
12457     ;;
12458   esac
12459 elif test "$with_gnu_ld" = yes; then
12460   { echo "$as_me:$LINENO: checking for GNU ld" >&5
12461 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12462 else
12463   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12464 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12465 fi
12466 if test "${lt_cv_path_LD+set}" = set; then
12467   echo $ECHO_N "(cached) $ECHO_C" >&6
12468 else
12469   if test -z "$LD"; then
12470   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12471   for ac_dir in $PATH; do
12472     IFS="$lt_save_ifs"
12473     test -z "$ac_dir" && ac_dir=.
12474     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12475       lt_cv_path_LD="$ac_dir/$ac_prog"
12476       # Check to see if the program is GNU ld.  I'd rather use --version,
12477       # but apparently some variants of GNU ld only accept -v.
12478       # Break only if it was the GNU/non-GNU ld that we prefer.
12479       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12480       *GNU* | *'with BFD'*)
12481         test "$with_gnu_ld" != no && break
12482         ;;
12483       *)
12484         test "$with_gnu_ld" != yes && break
12485         ;;
12486       esac
12487     fi
12488   done
12489   IFS="$lt_save_ifs"
12490 else
12491   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12492 fi
12493 fi
12494
12495 LD="$lt_cv_path_LD"
12496 if test -n "$LD"; then
12497   { echo "$as_me:$LINENO: result: $LD" >&5
12498 echo "${ECHO_T}$LD" >&6; }
12499 else
12500   { echo "$as_me:$LINENO: result: no" >&5
12501 echo "${ECHO_T}no" >&6; }
12502 fi
12503 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12504 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12505    { (exit 1); exit 1; }; }
12506 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12507 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12508 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12509   echo $ECHO_N "(cached) $ECHO_C" >&6
12510 else
12511   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12512 case `$LD -v 2>&1 </dev/null` in
12513 *GNU* | *'with BFD'*)
12514   lt_cv_prog_gnu_ld=yes
12515   ;;
12516 *)
12517   lt_cv_prog_gnu_ld=no
12518   ;;
12519 esac
12520 fi
12521 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12522 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12523 with_gnu_ld=$lt_cv_prog_gnu_ld
12524
12525
12526
12527   # Check if GNU C++ uses GNU ld as the underlying linker, since the
12528   # archiving commands below assume that GNU ld is being used.
12529   if test "$with_gnu_ld" = yes; then
12530     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12531     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'
12532
12533     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12534     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12535
12536     # If archive_cmds runs LD, not CC, wlarc should be empty
12537     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12538     #     investigate it a little bit more. (MM)
12539     wlarc='${wl}'
12540
12541     # ancient GNU ld didn't support --whole-archive et. al.
12542     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
12543         grep 'no-whole-archive' > /dev/null; then
12544       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12545     else
12546       whole_archive_flag_spec_CXX=
12547     fi
12548   else
12549     with_gnu_ld=no
12550     wlarc=
12551
12552     # A generic and very simple default shared library creation
12553     # command for GNU C++ for the case where it uses the native
12554     # linker, instead of GNU ld.  If possible, this setting should
12555     # overridden to take advantage of the native linker features on
12556     # the platform it is being used on.
12557     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12558   fi
12559
12560   # Commands to make compiler produce verbose output that lists
12561   # what "hidden" libraries, object files and flags are used when
12562   # linking a shared library.
12563   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12564
12565 else
12566   GXX=no
12567   with_gnu_ld=no
12568   wlarc=
12569 fi
12570
12571 # PORTME: fill in a description of your system's C++ link characteristics
12572 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12573 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12574 ld_shlibs_CXX=yes
12575 case $host_os in
12576   aix3*)
12577     # FIXME: insert proper C++ library support
12578     ld_shlibs_CXX=no
12579     ;;
12580   aix4* | aix5*)
12581     if test "$host_cpu" = ia64; then
12582       # On IA64, the linker does run time linking by default, so we don't
12583       # have to do anything special.
12584       aix_use_runtimelinking=no
12585       exp_sym_flag='-Bexport'
12586       no_entry_flag=""
12587     else
12588       aix_use_runtimelinking=no
12589
12590       # Test if we are trying to use run time linking or normal
12591       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12592       # need to do runtime linking.
12593       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12594         for ld_flag in $LDFLAGS; do
12595           case $ld_flag in
12596           *-brtl*)
12597             aix_use_runtimelinking=yes
12598             break
12599             ;;
12600           esac
12601         done
12602         ;;
12603       esac
12604
12605       exp_sym_flag='-bexport'
12606       no_entry_flag='-bnoentry'
12607     fi
12608
12609     # When large executables or shared objects are built, AIX ld can
12610     # have problems creating the table of contents.  If linking a library
12611     # or program results in "error TOC overflow" add -mminimal-toc to
12612     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12613     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12614
12615     archive_cmds_CXX=''
12616     hardcode_direct_CXX=yes
12617     hardcode_libdir_separator_CXX=':'
12618     link_all_deplibs_CXX=yes
12619
12620     if test "$GXX" = yes; then
12621       case $host_os in aix4.[012]|aix4.[012].*)
12622       # We only want to do this on AIX 4.2 and lower, the check
12623       # below for broken collect2 doesn't work under 4.3+
12624         collect2name=`${CC} -print-prog-name=collect2`
12625         if test -f "$collect2name" && \
12626            strings "$collect2name" | grep resolve_lib_name >/dev/null
12627         then
12628           # We have reworked collect2
12629           hardcode_direct_CXX=yes
12630         else
12631           # We have old collect2
12632           hardcode_direct_CXX=unsupported
12633           # It fails to find uninstalled libraries when the uninstalled
12634           # path is not listed in the libpath.  Setting hardcode_minus_L
12635           # to unsupported forces relinking
12636           hardcode_minus_L_CXX=yes
12637           hardcode_libdir_flag_spec_CXX='-L$libdir'
12638           hardcode_libdir_separator_CXX=
12639         fi
12640         ;;
12641       esac
12642       shared_flag='-shared'
12643       if test "$aix_use_runtimelinking" = yes; then
12644         shared_flag="$shared_flag "'${wl}-G'
12645       fi
12646     else
12647       # not using gcc
12648       if test "$host_cpu" = ia64; then
12649         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12650         # chokes on -Wl,-G. The following line is correct:
12651         shared_flag='-G'
12652       else
12653         if test "$aix_use_runtimelinking" = yes; then
12654           shared_flag='${wl}-G'
12655         else
12656           shared_flag='${wl}-bM:SRE'
12657         fi
12658       fi
12659     fi
12660
12661     # It seems that -bexpall does not export symbols beginning with
12662     # underscore (_), so it is better to generate a list of symbols to export.
12663     always_export_symbols_CXX=yes
12664     if test "$aix_use_runtimelinking" = yes; then
12665       # Warning - without using the other runtime loading flags (-brtl),
12666       # -berok will link without error, but may produce a broken library.
12667       allow_undefined_flag_CXX='-berok'
12668       # Determine the default libpath from the value encoded in an empty executable.
12669       cat >conftest.$ac_ext <<_ACEOF
12670 /* confdefs.h.  */
12671 _ACEOF
12672 cat confdefs.h >>conftest.$ac_ext
12673 cat >>conftest.$ac_ext <<_ACEOF
12674 /* end confdefs.h.  */
12675
12676 int
12677 main ()
12678 {
12679
12680   ;
12681   return 0;
12682 }
12683 _ACEOF
12684 rm -f conftest.$ac_objext conftest$ac_exeext
12685 if { (ac_try="$ac_link"
12686 case "(($ac_try" in
12687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12688   *) ac_try_echo=$ac_try;;
12689 esac
12690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12691   (eval "$ac_link") 2>conftest.er1
12692   ac_status=$?
12693   grep -v '^ *+' conftest.er1 >conftest.err
12694   rm -f conftest.er1
12695   cat conftest.err >&5
12696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12697   (exit $ac_status); } &&
12698          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12699   { (case "(($ac_try" in
12700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12701   *) ac_try_echo=$ac_try;;
12702 esac
12703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12704   (eval "$ac_try") 2>&5
12705   ac_status=$?
12706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12707   (exit $ac_status); }; } &&
12708          { ac_try='test -s conftest$ac_exeext'
12709   { (case "(($ac_try" in
12710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12711   *) ac_try_echo=$ac_try;;
12712 esac
12713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12714   (eval "$ac_try") 2>&5
12715   ac_status=$?
12716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12717   (exit $ac_status); }; }; then
12718
12719 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12720 }'`
12721 # Check for a 64-bit object if we didn't find anything.
12722 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12723 }'`; fi
12724 else
12725   echo "$as_me: failed program was:" >&5
12726 sed 's/^/| /' conftest.$ac_ext >&5
12727
12728
12729 fi
12730
12731 rm -f core conftest.err conftest.$ac_objext \
12732       conftest$ac_exeext conftest.$ac_ext
12733 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12734
12735       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12736
12737       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"
12738      else
12739       if test "$host_cpu" = ia64; then
12740         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12741         allow_undefined_flag_CXX="-z nodefs"
12742         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"
12743       else
12744         # Determine the default libpath from the value encoded in an empty executable.
12745         cat >conftest.$ac_ext <<_ACEOF
12746 /* confdefs.h.  */
12747 _ACEOF
12748 cat confdefs.h >>conftest.$ac_ext
12749 cat >>conftest.$ac_ext <<_ACEOF
12750 /* end confdefs.h.  */
12751
12752 int
12753 main ()
12754 {
12755
12756   ;
12757   return 0;
12758 }
12759 _ACEOF
12760 rm -f conftest.$ac_objext conftest$ac_exeext
12761 if { (ac_try="$ac_link"
12762 case "(($ac_try" in
12763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12764   *) ac_try_echo=$ac_try;;
12765 esac
12766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12767   (eval "$ac_link") 2>conftest.er1
12768   ac_status=$?
12769   grep -v '^ *+' conftest.er1 >conftest.err
12770   rm -f conftest.er1
12771   cat conftest.err >&5
12772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12773   (exit $ac_status); } &&
12774          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12775   { (case "(($ac_try" in
12776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12777   *) ac_try_echo=$ac_try;;
12778 esac
12779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12780   (eval "$ac_try") 2>&5
12781   ac_status=$?
12782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12783   (exit $ac_status); }; } &&
12784          { ac_try='test -s conftest$ac_exeext'
12785   { (case "(($ac_try" in
12786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12787   *) ac_try_echo=$ac_try;;
12788 esac
12789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12790   (eval "$ac_try") 2>&5
12791   ac_status=$?
12792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12793   (exit $ac_status); }; }; then
12794
12795 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12796 }'`
12797 # Check for a 64-bit object if we didn't find anything.
12798 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12799 }'`; fi
12800 else
12801   echo "$as_me: failed program was:" >&5
12802 sed 's/^/| /' conftest.$ac_ext >&5
12803
12804
12805 fi
12806
12807 rm -f core conftest.err conftest.$ac_objext \
12808       conftest$ac_exeext conftest.$ac_ext
12809 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12810
12811         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12812         # Warning - without using the other run time loading flags,
12813         # -berok will link without error, but may produce a broken library.
12814         no_undefined_flag_CXX=' ${wl}-bernotok'
12815         allow_undefined_flag_CXX=' ${wl}-berok'
12816         # Exported symbols can be pulled into shared objects from archives
12817         whole_archive_flag_spec_CXX='$convenience'
12818         archive_cmds_need_lc_CXX=yes
12819         # This is similar to how AIX traditionally builds its shared libraries.
12820         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'
12821       fi
12822     fi
12823     ;;
12824
12825   beos*)
12826     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12827       allow_undefined_flag_CXX=unsupported
12828       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12829       # support --undefined.  This deserves some investigation.  FIXME
12830       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12831     else
12832       ld_shlibs_CXX=no
12833     fi
12834     ;;
12835
12836   chorus*)
12837     case $cc_basename in
12838       *)
12839         # FIXME: insert proper C++ library support
12840         ld_shlibs_CXX=no
12841         ;;
12842     esac
12843     ;;
12844
12845   cygwin* | mingw* | pw32*)
12846     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12847     # as there is no search path for DLLs.
12848     hardcode_libdir_flag_spec_CXX='-L$libdir'
12849     allow_undefined_flag_CXX=unsupported
12850     always_export_symbols_CXX=no
12851     enable_shared_with_static_runtimes_CXX=yes
12852
12853     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12854       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'
12855       # If the export-symbols file already is a .def file (1st line
12856       # is EXPORTS), use it as is; otherwise, prepend...
12857       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12858         cp $export_symbols $output_objdir/$soname.def;
12859       else
12860         echo EXPORTS > $output_objdir/$soname.def;
12861         cat $export_symbols >> $output_objdir/$soname.def;
12862       fi~
12863       $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'
12864     else
12865       ld_shlibs_CXX=no
12866     fi
12867   ;;
12868       darwin* | rhapsody*)
12869         case $host_os in
12870         rhapsody* | darwin1.[012])
12871          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12872          ;;
12873        *) # Darwin 1.3 on
12874          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12875            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12876          else
12877            case ${MACOSX_DEPLOYMENT_TARGET} in
12878              10.[012])
12879                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12880                ;;
12881              10.*)
12882                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12883                ;;
12884            esac
12885          fi
12886          ;;
12887         esac
12888       archive_cmds_need_lc_CXX=no
12889       hardcode_direct_CXX=no
12890       hardcode_automatic_CXX=yes
12891       hardcode_shlibpath_var_CXX=unsupported
12892       whole_archive_flag_spec_CXX=''
12893       link_all_deplibs_CXX=yes
12894
12895     if test "$GXX" = yes ; then
12896       lt_int_apple_cc_single_mod=no
12897       output_verbose_link_cmd='echo'
12898       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
12899        lt_int_apple_cc_single_mod=yes
12900       fi
12901       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12902        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12903       else
12904           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'
12905         fi
12906         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12907         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12908           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12909             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12910           else
12911             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12912           fi
12913             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}'
12914       else
12915       case $cc_basename in
12916         xlc*)
12917          output_verbose_link_cmd='echo'
12918           archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12919           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12920           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12921           archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12922           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}'
12923           ;;
12924        *)
12925          ld_shlibs_CXX=no
12926           ;;
12927       esac
12928       fi
12929         ;;
12930
12931   dgux*)
12932     case $cc_basename in
12933       ec++*)
12934         # FIXME: insert proper C++ library support
12935         ld_shlibs_CXX=no
12936         ;;
12937       ghcx*)
12938         # Green Hills C++ Compiler
12939         # FIXME: insert proper C++ library support
12940         ld_shlibs_CXX=no
12941         ;;
12942       *)
12943         # FIXME: insert proper C++ library support
12944         ld_shlibs_CXX=no
12945         ;;
12946     esac
12947     ;;
12948   freebsd[12]*)
12949     # C++ shared libraries reported to be fairly broken before switch to ELF
12950     ld_shlibs_CXX=no
12951     ;;
12952   freebsd-elf*)
12953     archive_cmds_need_lc_CXX=no
12954     ;;
12955   freebsd* | dragonfly*)
12956     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12957     # conventions
12958     ld_shlibs_CXX=yes
12959     ;;
12960   gnu*)
12961     ;;
12962   hpux9*)
12963     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12964     hardcode_libdir_separator_CXX=:
12965     export_dynamic_flag_spec_CXX='${wl}-E'
12966     hardcode_direct_CXX=yes
12967     hardcode_minus_L_CXX=yes # Not in the search PATH,
12968                                 # but as the default
12969                                 # location of the library.
12970
12971     case $cc_basename in
12972     CC*)
12973       # FIXME: insert proper C++ library support
12974       ld_shlibs_CXX=no
12975       ;;
12976     aCC*)
12977       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'
12978       # Commands to make compiler produce verbose output that lists
12979       # what "hidden" libraries, object files and flags are used when
12980       # linking a shared library.
12981       #
12982       # There doesn't appear to be a way to prevent this compiler from
12983       # explicitly linking system object files so we need to strip them
12984       # from the output so that they don't get included in the library
12985       # dependencies.
12986       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'
12987       ;;
12988     *)
12989       if test "$GXX" = yes; then
12990         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'
12991       else
12992         # FIXME: insert proper C++ library support
12993         ld_shlibs_CXX=no
12994       fi
12995       ;;
12996     esac
12997     ;;
12998   hpux10*|hpux11*)
12999     if test $with_gnu_ld = no; then
13000       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13001       hardcode_libdir_separator_CXX=:
13002
13003       case $host_cpu in
13004       hppa*64*|ia64*)
13005         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
13006         ;;
13007       *)
13008         export_dynamic_flag_spec_CXX='${wl}-E'
13009         ;;
13010       esac
13011     fi
13012     case $host_cpu in
13013     hppa*64*|ia64*)
13014       hardcode_direct_CXX=no
13015       hardcode_shlibpath_var_CXX=no
13016       ;;
13017     *)
13018       hardcode_direct_CXX=yes
13019       hardcode_minus_L_CXX=yes # Not in the search PATH,
13020                                               # but as the default
13021                                               # location of the library.
13022       ;;
13023     esac
13024
13025     case $cc_basename in
13026       CC*)
13027         # FIXME: insert proper C++ library support
13028         ld_shlibs_CXX=no
13029         ;;
13030       aCC*)
13031         case $host_cpu in
13032         hppa*64*)
13033           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13034           ;;
13035         ia64*)
13036           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13037           ;;
13038         *)
13039           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13040           ;;
13041         esac
13042         # Commands to make compiler produce verbose output that lists
13043         # what "hidden" libraries, object files and flags are used when
13044         # linking a shared library.
13045         #
13046         # There doesn't appear to be a way to prevent this compiler from
13047         # explicitly linking system object files so we need to strip them
13048         # from the output so that they don't get included in the library
13049         # dependencies.
13050         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'
13051         ;;
13052       *)
13053         if test "$GXX" = yes; then
13054           if test $with_gnu_ld = no; then
13055             case $host_cpu in
13056             hppa*64*)
13057               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13058               ;;
13059             ia64*)
13060               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13061               ;;
13062             *)
13063               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'
13064               ;;
13065             esac
13066           fi
13067         else
13068           # FIXME: insert proper C++ library support
13069           ld_shlibs_CXX=no
13070         fi
13071         ;;
13072     esac
13073     ;;
13074   interix3*)
13075     hardcode_direct_CXX=no
13076     hardcode_shlibpath_var_CXX=no
13077     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13078     export_dynamic_flag_spec_CXX='${wl}-E'
13079     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13080     # Instead, shared libraries are loaded at an image base (0x10000000 by
13081     # default) and relocated if they conflict, which is a slow very memory
13082     # consuming and fragmenting process.  To avoid this, we pick a random,
13083     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13084     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13085     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'
13086     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'
13087     ;;
13088   irix5* | irix6*)
13089     case $cc_basename in
13090       CC*)
13091         # SGI C++
13092         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'
13093
13094         # Archives containing C++ object files must be created using
13095         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13096         # necessary to make sure instantiated templates are included
13097         # in the archive.
13098         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13099         ;;
13100       *)
13101         if test "$GXX" = yes; then
13102           if test "$with_gnu_ld" = no; then
13103             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'
13104           else
13105             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'
13106           fi
13107         fi
13108         link_all_deplibs_CXX=yes
13109         ;;
13110     esac
13111     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13112     hardcode_libdir_separator_CXX=:
13113     ;;
13114   linux* | k*bsd*-gnu)
13115     case $cc_basename in
13116       KCC*)
13117         # Kuck and Associates, Inc. (KAI) C++ Compiler
13118
13119         # KCC will only create a shared library if the output file
13120         # ends with ".so" (or ".sl" for HP-UX), so rename the library
13121         # to its proper name (with version) after linking.
13122         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'
13123         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'
13124         # Commands to make compiler produce verbose output that lists
13125         # what "hidden" libraries, object files and flags are used when
13126         # linking a shared library.
13127         #
13128         # There doesn't appear to be a way to prevent this compiler from
13129         # explicitly linking system object files so we need to strip them
13130         # from the output so that they don't get included in the library
13131         # dependencies.
13132         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'
13133
13134         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
13135         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13136
13137         # Archives containing C++ object files must be created using
13138         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13139         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13140         ;;
13141       icpc*)
13142         # Intel C++
13143         with_gnu_ld=yes
13144         # version 8.0 and above of icpc choke on multiply defined symbols
13145         # if we add $predep_objects and $postdep_objects, however 7.1 and
13146         # earlier do not add the objects themselves.
13147         case `$CC -V 2>&1` in
13148         *"Version 7."*)
13149           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13150           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'
13151           ;;
13152         *)  # Version 8.0 or newer
13153           tmp_idyn=
13154           case $host_cpu in
13155             ia64*) tmp_idyn=' -i_dynamic';;
13156           esac
13157           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13158           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'
13159           ;;
13160         esac
13161         archive_cmds_need_lc_CXX=no
13162         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13163         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13164         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13165         ;;
13166       pgCC*)
13167         # Portland Group C++ compiler
13168         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13169         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'
13170
13171         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13172         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13173         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'
13174         ;;
13175       cxx*)
13176         # Compaq C++
13177         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13178         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'
13179
13180         runpath_var=LD_RUN_PATH
13181         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13182         hardcode_libdir_separator_CXX=:
13183
13184         # Commands to make compiler produce verbose output that lists
13185         # what "hidden" libraries, object files and flags are used when
13186         # linking a shared library.
13187         #
13188         # There doesn't appear to be a way to prevent this compiler from
13189         # explicitly linking system object files so we need to strip them
13190         # from the output so that they don't get included in the library
13191         # dependencies.
13192         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'
13193         ;;
13194     esac
13195     ;;
13196   lynxos*)
13197     # FIXME: insert proper C++ library support
13198     ld_shlibs_CXX=no
13199     ;;
13200   m88k*)
13201     # FIXME: insert proper C++ library support
13202     ld_shlibs_CXX=no
13203     ;;
13204   mvs*)
13205     case $cc_basename in
13206       cxx*)
13207         # FIXME: insert proper C++ library support
13208         ld_shlibs_CXX=no
13209         ;;
13210       *)
13211         # FIXME: insert proper C++ library support
13212         ld_shlibs_CXX=no
13213         ;;
13214     esac
13215     ;;
13216   netbsd* | netbsdelf*-gnu)
13217     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13218       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13219       wlarc=
13220       hardcode_libdir_flag_spec_CXX='-R$libdir'
13221       hardcode_direct_CXX=yes
13222       hardcode_shlibpath_var_CXX=no
13223     fi
13224     # Workaround some broken pre-1.5 toolchains
13225     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13226     ;;
13227   openbsd2*)
13228     # C++ shared libraries are fairly broken
13229     ld_shlibs_CXX=no
13230     ;;
13231   openbsd*)
13232     hardcode_direct_CXX=yes
13233     hardcode_shlibpath_var_CXX=no
13234     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13235     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13236     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13237       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13238       export_dynamic_flag_spec_CXX='${wl}-E'
13239       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13240     fi
13241     output_verbose_link_cmd='echo'
13242     ;;
13243   osf3*)
13244     case $cc_basename in
13245       KCC*)
13246         # Kuck and Associates, Inc. (KAI) C++ Compiler
13247
13248         # KCC will only create a shared library if the output file
13249         # ends with ".so" (or ".sl" for HP-UX), so rename the library
13250         # to its proper name (with version) after linking.
13251         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'
13252
13253         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13254         hardcode_libdir_separator_CXX=:
13255
13256         # Archives containing C++ object files must be created using
13257         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13258         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13259
13260         ;;
13261       RCC*)
13262         # Rational C++ 2.4.1
13263         # FIXME: insert proper C++ library support
13264         ld_shlibs_CXX=no
13265         ;;
13266       cxx*)
13267         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13268         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'
13269
13270         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13271         hardcode_libdir_separator_CXX=:
13272
13273         # Commands to make compiler produce verbose output that lists
13274         # what "hidden" libraries, object files and flags are used when
13275         # linking a shared library.
13276         #
13277         # There doesn't appear to be a way to prevent this compiler from
13278         # explicitly linking system object files so we need to strip them
13279         # from the output so that they don't get included in the library
13280         # dependencies.
13281         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'
13282         ;;
13283       *)
13284         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13285           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13286           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'
13287
13288           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13289           hardcode_libdir_separator_CXX=:
13290
13291           # Commands to make compiler produce verbose output that lists
13292           # what "hidden" libraries, object files and flags are used when
13293           # linking a shared library.
13294           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13295
13296         else
13297           # FIXME: insert proper C++ library support
13298           ld_shlibs_CXX=no
13299         fi
13300         ;;
13301     esac
13302     ;;
13303   osf4* | osf5*)
13304     case $cc_basename in
13305       KCC*)
13306         # Kuck and Associates, Inc. (KAI) C++ Compiler
13307
13308         # KCC will only create a shared library if the output file
13309         # ends with ".so" (or ".sl" for HP-UX), so rename the library
13310         # to its proper name (with version) after linking.
13311         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'
13312
13313         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13314         hardcode_libdir_separator_CXX=:
13315
13316         # Archives containing C++ object files must be created using
13317         # the KAI C++ compiler.
13318         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
13319         ;;
13320       RCC*)
13321         # Rational C++ 2.4.1
13322         # FIXME: insert proper C++ library support
13323         ld_shlibs_CXX=no
13324         ;;
13325       cxx*)
13326         allow_undefined_flag_CXX=' -expect_unresolved \*'
13327         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'
13328         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13329           echo "-hidden">> $lib.exp~
13330           $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~
13331           $rm $lib.exp'
13332
13333         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13334         hardcode_libdir_separator_CXX=:
13335
13336         # Commands to make compiler produce verbose output that lists
13337         # what "hidden" libraries, object files and flags are used when
13338         # linking a shared library.
13339         #
13340         # There doesn't appear to be a way to prevent this compiler from
13341         # explicitly linking system object files so we need to strip them
13342         # from the output so that they don't get included in the library
13343         # dependencies.
13344         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'
13345         ;;
13346       *)
13347         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13348           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13349          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'
13350
13351           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13352           hardcode_libdir_separator_CXX=:
13353
13354           # Commands to make compiler produce verbose output that lists
13355           # what "hidden" libraries, object files and flags are used when
13356           # linking a shared library.
13357           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13358
13359         else
13360           # FIXME: insert proper C++ library support
13361           ld_shlibs_CXX=no
13362         fi
13363         ;;
13364     esac
13365     ;;
13366   psos*)
13367     # FIXME: insert proper C++ library support
13368     ld_shlibs_CXX=no
13369     ;;
13370   sunos4*)
13371     case $cc_basename in
13372       CC*)
13373         # Sun C++ 4.x
13374         # FIXME: insert proper C++ library support
13375         ld_shlibs_CXX=no
13376         ;;
13377       lcc*)
13378         # Lucid
13379         # FIXME: insert proper C++ library support
13380         ld_shlibs_CXX=no
13381         ;;
13382       *)
13383         # FIXME: insert proper C++ library support
13384         ld_shlibs_CXX=no
13385         ;;
13386     esac
13387     ;;
13388   solaris*)
13389     case $cc_basename in
13390       CC*)
13391         # Sun C++ 4.2, 5.x and Centerline C++
13392         archive_cmds_need_lc_CXX=yes
13393         no_undefined_flag_CXX=' -zdefs'
13394         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13395         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13396         $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'
13397
13398         hardcode_libdir_flag_spec_CXX='-R$libdir'
13399         hardcode_shlibpath_var_CXX=no
13400         case $host_os in
13401           solaris2.[0-5] | solaris2.[0-5].*) ;;
13402           *)
13403             # The C++ compiler is used as linker so we must use $wl
13404             # flag to pass the commands to the underlying system
13405             # linker. We must also pass each convience library through
13406             # to the system linker between allextract/defaultextract.
13407             # The C++ compiler will combine linker options so we
13408             # cannot just pass the convience library names through
13409             # without $wl.
13410             # Supported since Solaris 2.6 (maybe 2.5.1?)
13411             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
13412             ;;
13413         esac
13414         link_all_deplibs_CXX=yes
13415
13416         output_verbose_link_cmd='echo'
13417
13418         # Archives containing C++ object files must be created using
13419         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13420         # necessary to make sure instantiated templates are included
13421         # in the archive.
13422         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13423         ;;
13424       gcx*)
13425         # Green Hills C++ Compiler
13426         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13427
13428         # The C++ compiler must be used to create the archive.
13429         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13430         ;;
13431       *)
13432         # GNU C++ compiler with Solaris linker
13433         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13434           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13435           if $CC --version | grep -v '^2\.7' > /dev/null; then
13436             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13437             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13438                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13439
13440             # Commands to make compiler produce verbose output that lists
13441             # what "hidden" libraries, object files and flags are used when
13442             # linking a shared library.
13443             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13444           else
13445             # g++ 2.7 appears to require `-G' NOT `-shared' on this
13446             # platform.
13447             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13448             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13449                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13450
13451             # Commands to make compiler produce verbose output that lists
13452             # what "hidden" libraries, object files and flags are used when
13453             # linking a shared library.
13454             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13455           fi
13456
13457           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13458         fi
13459         ;;
13460     esac
13461     ;;
13462   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13463     no_undefined_flag_CXX='${wl}-z,text'
13464     archive_cmds_need_lc_CXX=no
13465     hardcode_shlibpath_var_CXX=no
13466     runpath_var='LD_RUN_PATH'
13467
13468     case $cc_basename in
13469       CC*)
13470         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13471         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13472         ;;
13473       *)
13474         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13475         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13476         ;;
13477     esac
13478     ;;
13479   sysv5* | sco3.2v5* | sco5v6*)
13480     # Note: We can NOT use -z defs as we might desire, because we do not
13481     # link with -lc, and that would cause any symbols used from libc to
13482     # always be unresolved, which means just about no library would
13483     # ever link correctly.  If we're not using GNU ld we use -z text
13484     # though, which does catch some bad symbols but isn't as heavy-handed
13485     # as -z defs.
13486     # For security reasons, it is highly recommended that you always
13487     # use absolute paths for naming shared libraries, and exclude the
13488     # DT_RUNPATH tag from executables and libraries.  But doing so
13489     # requires that you compile everything twice, which is a pain.
13490     # So that behaviour is only enabled if SCOABSPATH is set to a
13491     # non-empty value in the environment.  Most likely only useful for
13492     # creating official distributions of packages.
13493     # This is a hack until libtool officially supports absolute path
13494     # names for shared libraries.
13495     no_undefined_flag_CXX='${wl}-z,text'
13496     allow_undefined_flag_CXX='${wl}-z,nodefs'
13497     archive_cmds_need_lc_CXX=no
13498     hardcode_shlibpath_var_CXX=no
13499     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
13500     hardcode_libdir_separator_CXX=':'
13501     link_all_deplibs_CXX=yes
13502     export_dynamic_flag_spec_CXX='${wl}-Bexport'
13503     runpath_var='LD_RUN_PATH'
13504
13505     case $cc_basename in
13506       CC*)
13507         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13508         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13509         ;;
13510       *)
13511         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13512         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13513         ;;
13514     esac
13515     ;;
13516   tandem*)
13517     case $cc_basename in
13518       NCC*)
13519         # NonStop-UX NCC 3.20
13520         # FIXME: insert proper C++ library support
13521         ld_shlibs_CXX=no
13522         ;;
13523       *)
13524         # FIXME: insert proper C++ library support
13525         ld_shlibs_CXX=no
13526         ;;
13527     esac
13528     ;;
13529   vxworks*)
13530     # FIXME: insert proper C++ library support
13531     ld_shlibs_CXX=no
13532     ;;
13533   *)
13534     # FIXME: insert proper C++ library support
13535     ld_shlibs_CXX=no
13536     ;;
13537 esac
13538 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13539 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13540 test "$ld_shlibs_CXX" = no && can_build_shared=no
13541
13542 GCC_CXX="$GXX"
13543 LD_CXX="$LD"
13544
13545
13546 cat > conftest.$ac_ext <<EOF
13547 class Foo
13548 {
13549 public:
13550   Foo (void) { a = 0; }
13551 private:
13552   int a;
13553 };
13554 EOF
13555
13556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13557   (eval $ac_compile) 2>&5
13558   ac_status=$?
13559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13560   (exit $ac_status); }; then
13561   # Parse the compiler output and extract the necessary
13562   # objects, libraries and library flags.
13563
13564   # Sentinel used to keep track of whether or not we are before
13565   # the conftest object file.
13566   pre_test_object_deps_done=no
13567
13568   # The `*' in the case matches for architectures that use `case' in
13569   # $output_verbose_cmd can trigger glob expansion during the loop
13570   # eval without this substitution.
13571   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
13572
13573   for p in `eval $output_verbose_link_cmd`; do
13574     case $p in
13575
13576     -L* | -R* | -l*)
13577        # Some compilers place space between "-{L,R}" and the path.
13578        # Remove the space.
13579        if test $p = "-L" \
13580           || test $p = "-R"; then
13581          prev=$p
13582          continue
13583        else
13584          prev=
13585        fi
13586
13587        if test "$pre_test_object_deps_done" = no; then
13588          case $p in
13589          -L* | -R*)
13590            # Internal compiler library paths should come after those
13591            # provided the user.  The postdeps already come after the
13592            # user supplied libs so there is no need to process them.
13593            if test -z "$compiler_lib_search_path_CXX"; then
13594              compiler_lib_search_path_CXX="${prev}${p}"
13595            else
13596              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13597            fi
13598            ;;
13599          # The "-l" case would never come before the object being
13600          # linked, so don't bother handling this case.
13601          esac
13602        else
13603          if test -z "$postdeps_CXX"; then
13604            postdeps_CXX="${prev}${p}"
13605          else
13606            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13607          fi
13608        fi
13609        ;;
13610
13611     *.$objext)
13612        # This assumes that the test object file only shows up
13613        # once in the compiler output.
13614        if test "$p" = "conftest.$objext"; then
13615          pre_test_object_deps_done=yes
13616          continue
13617        fi
13618
13619        if test "$pre_test_object_deps_done" = no; then
13620          if test -z "$predep_objects_CXX"; then
13621            predep_objects_CXX="$p"
13622          else
13623            predep_objects_CXX="$predep_objects_CXX $p"
13624          fi
13625        else
13626          if test -z "$postdep_objects_CXX"; then
13627            postdep_objects_CXX="$p"
13628          else
13629            postdep_objects_CXX="$postdep_objects_CXX $p"
13630          fi
13631        fi
13632        ;;
13633
13634     *) ;; # Ignore the rest.
13635
13636     esac
13637   done
13638
13639   # Clean up.
13640   rm -f a.out a.exe
13641 else
13642   echo "libtool.m4: error: problem compiling CXX test program"
13643 fi
13644
13645 $rm -f confest.$objext
13646
13647 # PORTME: override above test on systems where it is broken
13648 case $host_os in
13649 interix3*)
13650   # Interix 3.5 installs completely hosed .la files for C++, so rather than
13651   # hack all around it, let's just trust "g++" to DTRT.
13652   predep_objects_CXX=
13653   postdep_objects_CXX=
13654   postdeps_CXX=
13655   ;;
13656
13657 solaris*)
13658   case $cc_basename in
13659   CC*)
13660     # Adding this requires a known-good setup of shared libraries for
13661     # Sun compiler versions before 5.6, else PIC objects from an old
13662     # archive will be linked into the output, leading to subtle bugs.
13663     postdeps_CXX='-lCstd -lCrun'
13664     ;;
13665   esac
13666   ;;
13667 esac
13668
13669
13670 case " $postdeps_CXX " in
13671 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13672 esac
13673
13674 lt_prog_compiler_wl_CXX=
13675 lt_prog_compiler_pic_CXX=
13676 lt_prog_compiler_static_CXX=
13677
13678 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13679 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13680
13681   # C++ specific cases for pic, static, wl, etc.
13682   if test "$GXX" = yes; then
13683     lt_prog_compiler_wl_CXX='-Wl,'
13684     lt_prog_compiler_static_CXX='-static'
13685
13686     case $host_os in
13687     aix*)
13688       # All AIX code is PIC.
13689       if test "$host_cpu" = ia64; then
13690         # AIX 5 now supports IA64 processor
13691         lt_prog_compiler_static_CXX='-Bstatic'
13692       fi
13693       ;;
13694     amigaos*)
13695       # FIXME: we need at least 68020 code to build shared libraries, but
13696       # adding the `-m68020' flag to GCC prevents building anything better,
13697       # like `-m68040'.
13698       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13699       ;;
13700     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13701       # PIC is the default for these OSes.
13702       ;;
13703     mingw* | os2* | pw32*)
13704       # This hack is so that the source file can tell whether it is being
13705       # built for inclusion in a dll (and should export symbols for example).
13706       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13707       ;;
13708     darwin* | rhapsody*)
13709       # PIC is the default on this platform
13710       # Common symbols not allowed in MH_DYLIB files
13711       lt_prog_compiler_pic_CXX='-fno-common'
13712       ;;
13713     *djgpp*)
13714       # DJGPP does not support shared libraries at all
13715       lt_prog_compiler_pic_CXX=
13716       ;;
13717     interix3*)
13718       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13719       # Instead, we relocate shared libraries at runtime.
13720       ;;
13721     sysv4*MP*)
13722       if test -d /usr/nec; then
13723         lt_prog_compiler_pic_CXX=-Kconform_pic
13724       fi
13725       ;;
13726     hpux*)
13727       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13728       # not for PA HP-UX.
13729       case $host_cpu in
13730       hppa*64*|ia64*)
13731         ;;
13732       *)
13733         lt_prog_compiler_pic_CXX='-fPIC'
13734         ;;
13735       esac
13736       ;;
13737     *)
13738       lt_prog_compiler_pic_CXX='-fPIC'
13739       ;;
13740     esac
13741   else
13742     case $host_os in
13743       aix4* | aix5*)
13744         # All AIX code is PIC.
13745         if test "$host_cpu" = ia64; then
13746           # AIX 5 now supports IA64 processor
13747           lt_prog_compiler_static_CXX='-Bstatic'
13748         else
13749           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13750         fi
13751         ;;
13752       chorus*)
13753         case $cc_basename in
13754         cxch68*)
13755           # Green Hills C++ Compiler
13756           # _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"
13757           ;;
13758         esac
13759         ;;
13760        darwin*)
13761          # PIC is the default on this platform
13762          # Common symbols not allowed in MH_DYLIB files
13763          case $cc_basename in
13764            xlc*)
13765            lt_prog_compiler_pic_CXX='-qnocommon'
13766            lt_prog_compiler_wl_CXX='-Wl,'
13767            ;;
13768          esac
13769        ;;
13770       dgux*)
13771         case $cc_basename in
13772           ec++*)
13773             lt_prog_compiler_pic_CXX='-KPIC'
13774             ;;
13775           ghcx*)
13776             # Green Hills C++ Compiler
13777             lt_prog_compiler_pic_CXX='-pic'
13778             ;;
13779           *)
13780             ;;
13781         esac
13782         ;;
13783       freebsd* | dragonfly*)
13784         # FreeBSD uses GNU C++
13785         ;;
13786       hpux9* | hpux10* | hpux11*)
13787         case $cc_basename in
13788           CC*)
13789             lt_prog_compiler_wl_CXX='-Wl,'
13790             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13791             if test "$host_cpu" != ia64; then
13792               lt_prog_compiler_pic_CXX='+Z'
13793             fi
13794             ;;
13795           aCC*)
13796             lt_prog_compiler_wl_CXX='-Wl,'
13797             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13798             case $host_cpu in
13799             hppa*64*|ia64*)
13800               # +Z the default
13801               ;;
13802             *)
13803               lt_prog_compiler_pic_CXX='+Z'
13804               ;;
13805             esac
13806             ;;
13807           *)
13808             ;;
13809         esac
13810         ;;
13811       interix*)
13812         # This is c89, which is MS Visual C++ (no shared libs)
13813         # Anyone wants to do a port?
13814         ;;
13815       irix5* | irix6* | nonstopux*)
13816         case $cc_basename in
13817           CC*)
13818             lt_prog_compiler_wl_CXX='-Wl,'
13819             lt_prog_compiler_static_CXX='-non_shared'
13820             # CC pic flag -KPIC is the default.
13821             ;;
13822           *)
13823             ;;
13824         esac
13825         ;;
13826       linux* | k*bsd*-gnu)
13827         case $cc_basename in
13828           KCC*)
13829             # KAI C++ Compiler
13830             lt_prog_compiler_wl_CXX='--backend -Wl,'
13831             lt_prog_compiler_pic_CXX='-fPIC'
13832             ;;
13833           icpc* | ecpc*)
13834             # Intel C++
13835             lt_prog_compiler_wl_CXX='-Wl,'
13836             lt_prog_compiler_pic_CXX='-KPIC'
13837             lt_prog_compiler_static_CXX='-static'
13838             ;;
13839           pgCC*)
13840             # Portland Group C++ compiler.
13841             lt_prog_compiler_wl_CXX='-Wl,'
13842             lt_prog_compiler_pic_CXX='-fpic'
13843             lt_prog_compiler_static_CXX='-Bstatic'
13844             ;;
13845           cxx*)
13846             # Compaq C++
13847             # Make sure the PIC flag is empty.  It appears that all Alpha
13848             # Linux and Compaq Tru64 Unix objects are PIC.
13849             lt_prog_compiler_pic_CXX=
13850             lt_prog_compiler_static_CXX='-non_shared'
13851             ;;
13852           *)
13853             ;;
13854         esac
13855         ;;
13856       lynxos*)
13857         ;;
13858       m88k*)
13859         ;;
13860       mvs*)
13861         case $cc_basename in
13862           cxx*)
13863             lt_prog_compiler_pic_CXX='-W c,exportall'
13864             ;;
13865           *)
13866             ;;
13867         esac
13868         ;;
13869       netbsd* | netbsdelf*-gnu)
13870         ;;
13871       osf3* | osf4* | osf5*)
13872         case $cc_basename in
13873           KCC*)
13874             lt_prog_compiler_wl_CXX='--backend -Wl,'
13875             ;;
13876           RCC*)
13877             # Rational C++ 2.4.1
13878             lt_prog_compiler_pic_CXX='-pic'
13879             ;;
13880           cxx*)
13881             # Digital/Compaq C++
13882             lt_prog_compiler_wl_CXX='-Wl,'
13883             # Make sure the PIC flag is empty.  It appears that all Alpha
13884             # Linux and Compaq Tru64 Unix objects are PIC.
13885             lt_prog_compiler_pic_CXX=
13886             lt_prog_compiler_static_CXX='-non_shared'
13887             ;;
13888           *)
13889             ;;
13890         esac
13891         ;;
13892       psos*)
13893         ;;
13894       solaris*)
13895         case $cc_basename in
13896           CC*)
13897             # Sun C++ 4.2, 5.x and Centerline C++
13898             lt_prog_compiler_pic_CXX='-KPIC'
13899             lt_prog_compiler_static_CXX='-Bstatic'
13900             lt_prog_compiler_wl_CXX='-Qoption ld '
13901             ;;
13902           gcx*)
13903             # Green Hills C++ Compiler
13904             lt_prog_compiler_pic_CXX='-PIC'
13905             ;;
13906           *)
13907             ;;
13908         esac
13909         ;;
13910       sunos4*)
13911         case $cc_basename in
13912           CC*)
13913             # Sun C++ 4.x
13914             lt_prog_compiler_pic_CXX='-pic'
13915             lt_prog_compiler_static_CXX='-Bstatic'
13916             ;;
13917           lcc*)
13918             # Lucid
13919             lt_prog_compiler_pic_CXX='-pic'
13920             ;;
13921           *)
13922             ;;
13923         esac
13924         ;;
13925       tandem*)
13926         case $cc_basename in
13927           NCC*)
13928             # NonStop-UX NCC 3.20
13929             lt_prog_compiler_pic_CXX='-KPIC'
13930             ;;
13931           *)
13932             ;;
13933         esac
13934         ;;
13935       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13936         case $cc_basename in
13937           CC*)
13938             lt_prog_compiler_wl_CXX='-Wl,'
13939             lt_prog_compiler_pic_CXX='-KPIC'
13940             lt_prog_compiler_static_CXX='-Bstatic'
13941             ;;
13942         esac
13943         ;;
13944       vxworks*)
13945         ;;
13946       *)
13947         lt_prog_compiler_can_build_shared_CXX=no
13948         ;;
13949     esac
13950   fi
13951
13952 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13953 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
13954
13955 #
13956 # Check to make sure the PIC flag actually works.
13957 #
13958 if test -n "$lt_prog_compiler_pic_CXX"; then
13959
13960 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13961 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
13962 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13963   echo $ECHO_N "(cached) $ECHO_C" >&6
13964 else
13965   lt_prog_compiler_pic_works_CXX=no
13966   ac_outfile=conftest.$ac_objext
13967    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13968    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13969    # Insert the option either (1) after the last *FLAGS variable, or
13970    # (2) before a word containing "conftest.", or (3) at the end.
13971    # Note that $ac_compile itself does not contain backslashes and begins
13972    # with a dollar sign (not a hyphen), so the echo should work correctly.
13973    # The option is referenced via a variable to avoid confusing sed.
13974    lt_compile=`echo "$ac_compile" | $SED \
13975    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13976    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13977    -e 's:$: $lt_compiler_flag:'`
13978    (eval echo "\"\$as_me:13978: $lt_compile\"" >&5)
13979    (eval "$lt_compile" 2>conftest.err)
13980    ac_status=$?
13981    cat conftest.err >&5
13982    echo "$as_me:13982: \$? = $ac_status" >&5
13983    if (exit $ac_status) && test -s "$ac_outfile"; then
13984      # The compiler can only warn and ignore the option if not recognized
13985      # So say no if there are warnings other than the usual output.
13986      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13987      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13988      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13989        lt_prog_compiler_pic_works_CXX=yes
13990      fi
13991    fi
13992    $rm conftest*
13993
13994 fi
13995 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13996 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
13997
13998 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13999     case $lt_prog_compiler_pic_CXX in
14000      "" | " "*) ;;
14001      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14002      esac
14003 else
14004     lt_prog_compiler_pic_CXX=
14005      lt_prog_compiler_can_build_shared_CXX=no
14006 fi
14007
14008 fi
14009 case $host_os in
14010   # For platforms which do not support PIC, -DPIC is meaningless:
14011   *djgpp*)
14012     lt_prog_compiler_pic_CXX=
14013     ;;
14014   *)
14015     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14016     ;;
14017 esac
14018
14019 #
14020 # Check to make sure the static flag actually works.
14021 #
14022 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14023 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14024 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14025 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
14026   echo $ECHO_N "(cached) $ECHO_C" >&6
14027 else
14028   lt_prog_compiler_static_works_CXX=no
14029    save_LDFLAGS="$LDFLAGS"
14030    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14031    printf "$lt_simple_link_test_code" > conftest.$ac_ext
14032    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14033      # The linker can only warn and ignore the option if not recognized
14034      # So say no if there are warnings
14035      if test -s conftest.err; then
14036        # Append any errors to the config.log.
14037        cat conftest.err 1>&5
14038        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14039        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14040        if diff conftest.exp conftest.er2 >/dev/null; then
14041          lt_prog_compiler_static_works_CXX=yes
14042        fi
14043      else
14044        lt_prog_compiler_static_works_CXX=yes
14045      fi
14046    fi
14047    $rm conftest*
14048    LDFLAGS="$save_LDFLAGS"
14049
14050 fi
14051 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
14052 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
14053
14054 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
14055     :
14056 else
14057     lt_prog_compiler_static_CXX=
14058 fi
14059
14060
14061 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14062 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14063 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14064   echo $ECHO_N "(cached) $ECHO_C" >&6
14065 else
14066   lt_cv_prog_compiler_c_o_CXX=no
14067    $rm -r conftest 2>/dev/null
14068    mkdir conftest
14069    cd conftest
14070    mkdir out
14071    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14072
14073    lt_compiler_flag="-o out/conftest2.$ac_objext"
14074    # Insert the option either (1) after the last *FLAGS variable, or
14075    # (2) before a word containing "conftest.", or (3) at the end.
14076    # Note that $ac_compile itself does not contain backslashes and begins
14077    # with a dollar sign (not a hyphen), so the echo should work correctly.
14078    lt_compile=`echo "$ac_compile" | $SED \
14079    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14080    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14081    -e 's:$: $lt_compiler_flag:'`
14082    (eval echo "\"\$as_me:14082: $lt_compile\"" >&5)
14083    (eval "$lt_compile" 2>out/conftest.err)
14084    ac_status=$?
14085    cat out/conftest.err >&5
14086    echo "$as_me:14086: \$? = $ac_status" >&5
14087    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14088    then
14089      # The compiler can only warn and ignore the option if not recognized
14090      # So say no if there are warnings
14091      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14092      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14093      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14094        lt_cv_prog_compiler_c_o_CXX=yes
14095      fi
14096    fi
14097    chmod u+w . 2>&5
14098    $rm conftest*
14099    # SGI C++ compiler will create directory out/ii_files/ for
14100    # template instantiation
14101    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14102    $rm out/* && rmdir out
14103    cd ..
14104    rmdir conftest
14105    $rm conftest*
14106
14107 fi
14108 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14109 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14110
14111
14112 hard_links="nottested"
14113 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14114   # do not overwrite the value of need_locks provided by the user
14115   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14116 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14117   hard_links=yes
14118   $rm conftest*
14119   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14120   touch conftest.a
14121   ln conftest.a conftest.b 2>&5 || hard_links=no
14122   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14123   { echo "$as_me:$LINENO: result: $hard_links" >&5
14124 echo "${ECHO_T}$hard_links" >&6; }
14125   if test "$hard_links" = no; then
14126     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14127 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14128     need_locks=warn
14129   fi
14130 else
14131   need_locks=no
14132 fi
14133
14134 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14135 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14136
14137   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14138   case $host_os in
14139   aix4* | aix5*)
14140     # If we're using GNU nm, then we don't want the "-C" option.
14141     # -C means demangle to AIX nm, but means don't demangle with GNU nm
14142     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14143       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'
14144     else
14145       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'
14146     fi
14147     ;;
14148   pw32*)
14149     export_symbols_cmds_CXX="$ltdll_cmds"
14150   ;;
14151   cygwin* | mingw*)
14152     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'
14153   ;;
14154   linux* | k*bsd*-gnu)
14155     link_all_deplibs_CXX=no
14156   ;;
14157   *)
14158     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14159   ;;
14160   esac
14161
14162 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14163 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14164 test "$ld_shlibs_CXX" = no && can_build_shared=no
14165
14166 #
14167 # Do we need to explicitly link libc?
14168 #
14169 case "x$archive_cmds_need_lc_CXX" in
14170 x|xyes)
14171   # Assume -lc should be added
14172   archive_cmds_need_lc_CXX=yes
14173
14174   if test "$enable_shared" = yes && test "$GCC" = yes; then
14175     case $archive_cmds_CXX in
14176     *'~'*)
14177       # FIXME: we may have to deal with multi-command sequences.
14178       ;;
14179     '$CC '*)
14180       # Test whether the compiler implicitly links with -lc since on some
14181       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14182       # to ld, don't add -lc before -lgcc.
14183       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14184 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14185       $rm conftest*
14186       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14187
14188       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14189   (eval $ac_compile) 2>&5
14190   ac_status=$?
14191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14192   (exit $ac_status); } 2>conftest.err; then
14193         soname=conftest
14194         lib=conftest
14195         libobjs=conftest.$ac_objext
14196         deplibs=
14197         wl=$lt_prog_compiler_wl_CXX
14198         pic_flag=$lt_prog_compiler_pic_CXX
14199         compiler_flags=-v
14200         linker_flags=-v
14201         verstring=
14202         output_objdir=.
14203         libname=conftest
14204         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14205         allow_undefined_flag_CXX=
14206         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14207   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14208   ac_status=$?
14209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14210   (exit $ac_status); }
14211         then
14212           archive_cmds_need_lc_CXX=no
14213         else
14214           archive_cmds_need_lc_CXX=yes
14215         fi
14216         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14217       else
14218         cat conftest.err 1>&5
14219       fi
14220       $rm conftest*
14221       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
14222 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
14223       ;;
14224     esac
14225   fi
14226   ;;
14227 esac
14228
14229 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14230 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14231 library_names_spec=
14232 libname_spec='lib$name'
14233 soname_spec=
14234 shrext_cmds=".so"
14235 postinstall_cmds=
14236 postuninstall_cmds=
14237 finish_cmds=
14238 finish_eval=
14239 shlibpath_var=
14240 shlibpath_overrides_runpath=unknown
14241 version_type=none
14242 dynamic_linker="$host_os ld.so"
14243 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14244 if test "$GCC" = yes; then
14245   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14246   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14247     # if the path contains ";" then we assume it to be the separator
14248     # otherwise default to the standard path separator (i.e. ":") - it is
14249     # assumed that no part of a normal pathname contains ";" but that should
14250     # okay in the real world where ";" in dirpaths is itself problematic.
14251     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14252   else
14253     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14254   fi
14255 else
14256   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14257 fi
14258 need_lib_prefix=unknown
14259 hardcode_into_libs=no
14260
14261 # when you set need_version to no, make sure it does not cause -set_version
14262 # flags to be left without arguments
14263 need_version=unknown
14264
14265 case $host_os in
14266 aix3*)
14267   version_type=linux
14268   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14269   shlibpath_var=LIBPATH
14270
14271   # AIX 3 has no versioning support, so we append a major version to the name.
14272   soname_spec='${libname}${release}${shared_ext}$major'
14273   ;;
14274
14275 aix4* | aix5*)
14276   version_type=linux
14277   need_lib_prefix=no
14278   need_version=no
14279   hardcode_into_libs=yes
14280   if test "$host_cpu" = ia64; then
14281     # AIX 5 supports IA64
14282     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14283     shlibpath_var=LD_LIBRARY_PATH
14284   else
14285     # With GCC up to 2.95.x, collect2 would create an import file
14286     # for dependence libraries.  The import file would start with
14287     # the line `#! .'.  This would cause the generated library to
14288     # depend on `.', always an invalid library.  This was fixed in
14289     # development snapshots of GCC prior to 3.0.
14290     case $host_os in
14291       aix4 | aix4.[01] | aix4.[01].*)
14292       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14293            echo ' yes '
14294            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14295         :
14296       else
14297         can_build_shared=no
14298       fi
14299       ;;
14300     esac
14301     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14302     # soname into executable. Probably we can add versioning support to
14303     # collect2, so additional links can be useful in future.
14304     if test "$aix_use_runtimelinking" = yes; then
14305       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14306       # instead of lib<name>.a to let people know that these are not
14307       # typical AIX shared libraries.
14308       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14309     else
14310       # We preserve .a as extension for shared libraries through AIX4.2
14311       # and later when we are not doing run time linking.
14312       library_names_spec='${libname}${release}.a $libname.a'
14313       soname_spec='${libname}${release}${shared_ext}$major'
14314     fi
14315     shlibpath_var=LIBPATH
14316   fi
14317   ;;
14318
14319 amigaos*)
14320   library_names_spec='$libname.ixlibrary $libname.a'
14321   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14322   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'
14323   ;;
14324
14325 beos*)
14326   library_names_spec='${libname}${shared_ext}'
14327   dynamic_linker="$host_os ld.so"
14328   shlibpath_var=LIBRARY_PATH
14329   ;;
14330
14331 bsdi[45]*)
14332   version_type=linux
14333   need_version=no
14334   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14335   soname_spec='${libname}${release}${shared_ext}$major'
14336   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14337   shlibpath_var=LD_LIBRARY_PATH
14338   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14339   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14340   # the default ld.so.conf also contains /usr/contrib/lib and
14341   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14342   # libtool to hard-code these into programs
14343   ;;
14344
14345 cygwin* | mingw* | pw32*)
14346   version_type=windows
14347   shrext_cmds=".dll"
14348   need_version=no
14349   need_lib_prefix=no
14350
14351   case $GCC,$host_os in
14352   yes,cygwin* | yes,mingw* | yes,pw32*)
14353     library_names_spec='$libname.dll.a'
14354     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14355     postinstall_cmds='base_file=`basename \${file}`~
14356       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14357       dldir=$destdir/`dirname \$dlpath`~
14358       test -d \$dldir || mkdir -p \$dldir~
14359       $install_prog $dir/$dlname \$dldir/$dlname~
14360       chmod a+x \$dldir/$dlname'
14361     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14362       dlpath=$dir/\$dldll~
14363        $rm \$dlpath'
14364     shlibpath_overrides_runpath=yes
14365
14366     case $host_os in
14367     cygwin*)
14368       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14369       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14370       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14371       ;;
14372     mingw*)
14373       # MinGW DLLs use traditional 'lib' prefix
14374       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14375       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14376       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14377         # It is most probably a Windows format PATH printed by
14378         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14379         # path with ; separators, and with drive letters. We can handle the
14380         # drive letters (cygwin fileutils understands them), so leave them,
14381         # especially as we might pass files found there to a mingw objdump,
14382         # which wouldn't understand a cygwinified path. Ahh.
14383         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14384       else
14385         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14386       fi
14387       ;;
14388     pw32*)
14389       # pw32 DLLs use 'pw' prefix rather than 'lib'
14390       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14391       ;;
14392     esac
14393     ;;
14394
14395   *)
14396     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14397     ;;
14398   esac
14399   dynamic_linker='Win32 ld.exe'
14400   # FIXME: first we should search . and the directory the executable is in
14401   shlibpath_var=PATH
14402   ;;
14403
14404 darwin* | rhapsody*)
14405   dynamic_linker="$host_os dyld"
14406   version_type=darwin
14407   need_lib_prefix=no
14408   need_version=no
14409   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14410   soname_spec='${libname}${release}${major}$shared_ext'
14411   shlibpath_overrides_runpath=yes
14412   shlibpath_var=DYLD_LIBRARY_PATH
14413   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14414   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14415   if test "$GCC" = yes; then
14416     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
14417   else
14418     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14419   fi
14420   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14421   ;;
14422
14423 dgux*)
14424   version_type=linux
14425   need_lib_prefix=no
14426   need_version=no
14427   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14428   soname_spec='${libname}${release}${shared_ext}$major'
14429   shlibpath_var=LD_LIBRARY_PATH
14430   ;;
14431
14432 freebsd1*)
14433   dynamic_linker=no
14434   ;;
14435
14436 freebsd* | dragonfly*)
14437   # DragonFly does not have aout.  When/if they implement a new
14438   # versioning mechanism, adjust this.
14439   if test -x /usr/bin/objformat; then
14440     objformat=`/usr/bin/objformat`
14441   else
14442     case $host_os in
14443     freebsd[123]*) objformat=aout ;;
14444     *) objformat=elf ;;
14445     esac
14446   fi
14447   version_type=freebsd-$objformat
14448   case $version_type in
14449     freebsd-elf*)
14450       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14451       need_version=no
14452       need_lib_prefix=no
14453       ;;
14454     freebsd-*)
14455       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14456       need_version=yes
14457       ;;
14458   esac
14459   shlibpath_var=LD_LIBRARY_PATH
14460   case $host_os in
14461   freebsd2*)
14462     shlibpath_overrides_runpath=yes
14463     ;;
14464   freebsd3.[01]* | freebsdelf3.[01]*)
14465     shlibpath_overrides_runpath=yes
14466     hardcode_into_libs=yes
14467     ;;
14468   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14469   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14470     shlibpath_overrides_runpath=no
14471     hardcode_into_libs=yes
14472     ;;
14473   freebsd*) # from 4.6 on
14474     shlibpath_overrides_runpath=yes
14475     hardcode_into_libs=yes
14476     ;;
14477   esac
14478   ;;
14479
14480 gnu*)
14481   version_type=linux
14482   need_lib_prefix=no
14483   need_version=no
14484   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14485   soname_spec='${libname}${release}${shared_ext}$major'
14486   shlibpath_var=LD_LIBRARY_PATH
14487   hardcode_into_libs=yes
14488   ;;
14489
14490 hpux9* | hpux10* | hpux11*)
14491   # Give a soname corresponding to the major version so that dld.sl refuses to
14492   # link against other versions.
14493   version_type=sunos
14494   need_lib_prefix=no
14495   need_version=no
14496   case $host_cpu in
14497   ia64*)
14498     shrext_cmds='.so'
14499     hardcode_into_libs=yes
14500     dynamic_linker="$host_os dld.so"
14501     shlibpath_var=LD_LIBRARY_PATH
14502     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14503     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14504     soname_spec='${libname}${release}${shared_ext}$major'
14505     if test "X$HPUX_IA64_MODE" = X32; then
14506       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14507     else
14508       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14509     fi
14510     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14511     ;;
14512    hppa*64*)
14513      shrext_cmds='.sl'
14514      hardcode_into_libs=yes
14515      dynamic_linker="$host_os dld.sl"
14516      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14517      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14518      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14519      soname_spec='${libname}${release}${shared_ext}$major'
14520      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14521      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14522      ;;
14523    *)
14524     shrext_cmds='.sl'
14525     dynamic_linker="$host_os dld.sl"
14526     shlibpath_var=SHLIB_PATH
14527     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14528     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14529     soname_spec='${libname}${release}${shared_ext}$major'
14530     ;;
14531   esac
14532   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14533   postinstall_cmds='chmod 555 $lib'
14534   ;;
14535
14536 interix3*)
14537   version_type=linux
14538   need_lib_prefix=no
14539   need_version=no
14540   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14541   soname_spec='${libname}${release}${shared_ext}$major'
14542   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14543   shlibpath_var=LD_LIBRARY_PATH
14544   shlibpath_overrides_runpath=no
14545   hardcode_into_libs=yes
14546   ;;
14547
14548 irix5* | irix6* | nonstopux*)
14549   case $host_os in
14550     nonstopux*) version_type=nonstopux ;;
14551     *)
14552         if test "$lt_cv_prog_gnu_ld" = yes; then
14553                 version_type=linux
14554         else
14555                 version_type=irix
14556         fi ;;
14557   esac
14558   need_lib_prefix=no
14559   need_version=no
14560   soname_spec='${libname}${release}${shared_ext}$major'
14561   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14562   case $host_os in
14563   irix5* | nonstopux*)
14564     libsuff= shlibsuff=
14565     ;;
14566   *)
14567     case $LD in # libtool.m4 will add one of these switches to LD
14568     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14569       libsuff= shlibsuff= libmagic=32-bit;;
14570     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14571       libsuff=32 shlibsuff=N32 libmagic=N32;;
14572     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14573       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14574     *) libsuff= shlibsuff= libmagic=never-match;;
14575     esac
14576     ;;
14577   esac
14578   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14579   shlibpath_overrides_runpath=no
14580   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14581   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14582   hardcode_into_libs=yes
14583   ;;
14584
14585 # No shared lib support for Linux oldld, aout, or coff.
14586 linux*oldld* | linux*aout* | linux*coff*)
14587   dynamic_linker=no
14588   ;;
14589
14590 # This must be Linux ELF.
14591 linux* | k*bsd*-gnu)
14592   version_type=linux
14593   need_lib_prefix=no
14594   need_version=no
14595   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14596   soname_spec='${libname}${release}${shared_ext}$major'
14597   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14598   shlibpath_var=LD_LIBRARY_PATH
14599   shlibpath_overrides_runpath=no
14600   # This implies no fast_install, which is unacceptable.
14601   # Some rework will be needed to allow for fast_install
14602   # before this can be enabled.
14603   hardcode_into_libs=yes
14604
14605   # Append ld.so.conf contents to the search path
14606   if test -f /etc/ld.so.conf; then
14607     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14608     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14609   fi
14610
14611   # We used to test for /lib/ld.so.1 and disable shared libraries on
14612   # powerpc, because MkLinux only supported shared libraries with the
14613   # GNU dynamic linker.  Since this was broken with cross compilers,
14614   # most powerpc-linux boxes support dynamic linking these days and
14615   # people can always --disable-shared, the test was removed, and we
14616   # assume the GNU/Linux dynamic linker is in use.
14617   dynamic_linker='GNU/Linux ld.so'
14618   ;;
14619
14620 netbsdelf*-gnu)
14621   version_type=linux
14622   need_lib_prefix=no
14623   need_version=no
14624   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14625   soname_spec='${libname}${release}${shared_ext}$major'
14626   shlibpath_var=LD_LIBRARY_PATH
14627   shlibpath_overrides_runpath=no
14628   hardcode_into_libs=yes
14629   dynamic_linker='NetBSD ld.elf_so'
14630   ;;
14631
14632 netbsd*)
14633   version_type=sunos
14634   need_lib_prefix=no
14635   need_version=no
14636   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14637     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14638     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14639     dynamic_linker='NetBSD (a.out) ld.so'
14640   else
14641     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14642     soname_spec='${libname}${release}${shared_ext}$major'
14643     dynamic_linker='NetBSD ld.elf_so'
14644   fi
14645   shlibpath_var=LD_LIBRARY_PATH
14646   shlibpath_overrides_runpath=yes
14647   hardcode_into_libs=yes
14648   ;;
14649
14650 newsos6)
14651   version_type=linux
14652   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14653   shlibpath_var=LD_LIBRARY_PATH
14654   shlibpath_overrides_runpath=yes
14655   ;;
14656
14657 nto-qnx*)
14658   version_type=linux
14659   need_lib_prefix=no
14660   need_version=no
14661   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14662   soname_spec='${libname}${release}${shared_ext}$major'
14663   shlibpath_var=LD_LIBRARY_PATH
14664   shlibpath_overrides_runpath=yes
14665   ;;
14666
14667 openbsd*)
14668   version_type=sunos
14669   sys_lib_dlsearch_path_spec="/usr/lib"
14670   need_lib_prefix=no
14671   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14672   case $host_os in
14673     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14674     *)                         need_version=no  ;;
14675   esac
14676   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14677   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14678   shlibpath_var=LD_LIBRARY_PATH
14679   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14680     case $host_os in
14681       openbsd2.[89] | openbsd2.[89].*)
14682         shlibpath_overrides_runpath=no
14683         ;;
14684       *)
14685         shlibpath_overrides_runpath=yes
14686         ;;
14687       esac
14688   else
14689     shlibpath_overrides_runpath=yes
14690   fi
14691   ;;
14692
14693 os2*)
14694   libname_spec='$name'
14695   shrext_cmds=".dll"
14696   need_lib_prefix=no
14697   library_names_spec='$libname${shared_ext} $libname.a'
14698   dynamic_linker='OS/2 ld.exe'
14699   shlibpath_var=LIBPATH
14700   ;;
14701
14702 osf3* | osf4* | osf5*)
14703   version_type=osf
14704   need_lib_prefix=no
14705   need_version=no
14706   soname_spec='${libname}${release}${shared_ext}$major'
14707   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14708   shlibpath_var=LD_LIBRARY_PATH
14709   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14710   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14711   ;;
14712
14713 solaris*)
14714   version_type=linux
14715   need_lib_prefix=no
14716   need_version=no
14717   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14718   soname_spec='${libname}${release}${shared_ext}$major'
14719   shlibpath_var=LD_LIBRARY_PATH
14720   shlibpath_overrides_runpath=yes
14721   hardcode_into_libs=yes
14722   # ldd complains unless libraries are executable
14723   postinstall_cmds='chmod +x $lib'
14724   ;;
14725
14726 sunos4*)
14727   version_type=sunos
14728   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14729   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14730   shlibpath_var=LD_LIBRARY_PATH
14731   shlibpath_overrides_runpath=yes
14732   if test "$with_gnu_ld" = yes; then
14733     need_lib_prefix=no
14734   fi
14735   need_version=yes
14736   ;;
14737
14738 sysv4 | sysv4.3*)
14739   version_type=linux
14740   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14741   soname_spec='${libname}${release}${shared_ext}$major'
14742   shlibpath_var=LD_LIBRARY_PATH
14743   case $host_vendor in
14744     sni)
14745       shlibpath_overrides_runpath=no
14746       need_lib_prefix=no
14747       export_dynamic_flag_spec='${wl}-Blargedynsym'
14748       runpath_var=LD_RUN_PATH
14749       ;;
14750     siemens)
14751       need_lib_prefix=no
14752       ;;
14753     motorola)
14754       need_lib_prefix=no
14755       need_version=no
14756       shlibpath_overrides_runpath=no
14757       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14758       ;;
14759   esac
14760   ;;
14761
14762 sysv4*MP*)
14763   if test -d /usr/nec ;then
14764     version_type=linux
14765     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14766     soname_spec='$libname${shared_ext}.$major'
14767     shlibpath_var=LD_LIBRARY_PATH
14768   fi
14769   ;;
14770
14771 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14772   version_type=freebsd-elf
14773   need_lib_prefix=no
14774   need_version=no
14775   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14776   soname_spec='${libname}${release}${shared_ext}$major'
14777   shlibpath_var=LD_LIBRARY_PATH
14778   hardcode_into_libs=yes
14779   if test "$with_gnu_ld" = yes; then
14780     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14781     shlibpath_overrides_runpath=no
14782   else
14783     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14784     shlibpath_overrides_runpath=yes
14785     case $host_os in
14786       sco3.2v5*)
14787         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14788         ;;
14789     esac
14790   fi
14791   sys_lib_dlsearch_path_spec='/usr/lib'
14792   ;;
14793
14794 uts4*)
14795   version_type=linux
14796   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14797   soname_spec='${libname}${release}${shared_ext}$major'
14798   shlibpath_var=LD_LIBRARY_PATH
14799   ;;
14800
14801 *)
14802   dynamic_linker=no
14803   ;;
14804 esac
14805 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14806 echo "${ECHO_T}$dynamic_linker" >&6; }
14807 test "$dynamic_linker" = no && can_build_shared=no
14808
14809 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14810 if test "$GCC" = yes; then
14811   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14812 fi
14813
14814 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14815 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
14816 hardcode_action_CXX=
14817 if test -n "$hardcode_libdir_flag_spec_CXX" || \
14818    test -n "$runpath_var_CXX" || \
14819    test "X$hardcode_automatic_CXX" = "Xyes" ; then
14820
14821   # We can hardcode non-existant directories.
14822   if test "$hardcode_direct_CXX" != no &&
14823      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14824      # have to relink, otherwise we might link with an installed library
14825      # when we should be linking with a yet-to-be-installed one
14826      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14827      test "$hardcode_minus_L_CXX" != no; then
14828     # Linking always hardcodes the temporary library directory.
14829     hardcode_action_CXX=relink
14830   else
14831     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14832     hardcode_action_CXX=immediate
14833   fi
14834 else
14835   # We cannot hardcode anything, or else we can only hardcode existing
14836   # directories.
14837   hardcode_action_CXX=unsupported
14838 fi
14839 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14840 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
14841
14842 if test "$hardcode_action_CXX" = relink; then
14843   # Fast installation is not supported
14844   enable_fast_install=no
14845 elif test "$shlibpath_overrides_runpath" = yes ||
14846      test "$enable_shared" = no; then
14847   # Fast installation is not necessary
14848   enable_fast_install=needless
14849 fi
14850
14851
14852 # The else clause should only fire when bootstrapping the
14853 # libtool distribution, otherwise you forgot to ship ltmain.sh
14854 # with your package, and you will get complaints that there are
14855 # no rules to generate ltmain.sh.
14856 if test -f "$ltmain"; then
14857   # See if we are running on zsh, and set the options which allow our commands through
14858   # without removal of \ escapes.
14859   if test -n "${ZSH_VERSION+set}" ; then
14860     setopt NO_GLOB_SUBST
14861   fi
14862   # Now quote all the things that may contain metacharacters while being
14863   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14864   # variables and quote the copies for generation of the libtool script.
14865   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14866     SED SHELL STRIP \
14867     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14868     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14869     deplibs_check_method reload_flag reload_cmds need_locks \
14870     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14871     lt_cv_sys_global_symbol_to_c_name_address \
14872     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14873     old_postinstall_cmds old_postuninstall_cmds \
14874     compiler_CXX \
14875     CC_CXX \
14876     LD_CXX \
14877     lt_prog_compiler_wl_CXX \
14878     lt_prog_compiler_pic_CXX \
14879     lt_prog_compiler_static_CXX \
14880     lt_prog_compiler_no_builtin_flag_CXX \
14881     export_dynamic_flag_spec_CXX \
14882     thread_safe_flag_spec_CXX \
14883     whole_archive_flag_spec_CXX \
14884     enable_shared_with_static_runtimes_CXX \
14885     old_archive_cmds_CXX \
14886     old_archive_from_new_cmds_CXX \
14887     predep_objects_CXX \
14888     postdep_objects_CXX \
14889     predeps_CXX \
14890     postdeps_CXX \
14891     compiler_lib_search_path_CXX \
14892     archive_cmds_CXX \
14893     archive_expsym_cmds_CXX \
14894     postinstall_cmds_CXX \
14895     postuninstall_cmds_CXX \
14896     old_archive_from_expsyms_cmds_CXX \
14897     allow_undefined_flag_CXX \
14898     no_undefined_flag_CXX \
14899     export_symbols_cmds_CXX \
14900     hardcode_libdir_flag_spec_CXX \
14901     hardcode_libdir_flag_spec_ld_CXX \
14902     hardcode_libdir_separator_CXX \
14903     hardcode_automatic_CXX \
14904     module_cmds_CXX \
14905     module_expsym_cmds_CXX \
14906     lt_cv_prog_compiler_c_o_CXX \
14907     exclude_expsyms_CXX \
14908     include_expsyms_CXX; do
14909
14910     case $var in
14911     old_archive_cmds_CXX | \
14912     old_archive_from_new_cmds_CXX | \
14913     archive_cmds_CXX | \
14914     archive_expsym_cmds_CXX | \
14915     module_cmds_CXX | \
14916     module_expsym_cmds_CXX | \
14917     old_archive_from_expsyms_cmds_CXX | \
14918     export_symbols_cmds_CXX | \
14919     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14920     postinstall_cmds | postuninstall_cmds | \
14921     old_postinstall_cmds | old_postuninstall_cmds | \
14922     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14923       # Double-quote double-evaled strings.
14924       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14925       ;;
14926     *)
14927       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14928       ;;
14929     esac
14930   done
14931
14932   case $lt_echo in
14933   *'\$0 --fallback-echo"')
14934     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14935     ;;
14936   esac
14937
14938 cfgfile="$ofile"
14939
14940   cat <<__EOF__ >> "$cfgfile"
14941 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14942
14943 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14944
14945 # Shell to use when invoking shell scripts.
14946 SHELL=$lt_SHELL
14947
14948 # Whether or not to build shared libraries.
14949 build_libtool_libs=$enable_shared
14950
14951 # Whether or not to build static libraries.
14952 build_old_libs=$enable_static
14953
14954 # Whether or not to add -lc for building shared libraries.
14955 build_libtool_need_lc=$archive_cmds_need_lc_CXX
14956
14957 # Whether or not to disallow shared libs when runtime libs are static
14958 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14959
14960 # Whether or not to optimize for fast installation.
14961 fast_install=$enable_fast_install
14962
14963 # The host system.
14964 host_alias=$host_alias
14965 host=$host
14966 host_os=$host_os
14967
14968 # The build system.
14969 build_alias=$build_alias
14970 build=$build
14971 build_os=$build_os
14972
14973 # An echo program that does not interpret backslashes.
14974 echo=$lt_echo
14975
14976 # The archiver.
14977 AR=$lt_AR
14978 AR_FLAGS=$lt_AR_FLAGS
14979
14980 # A C compiler.
14981 LTCC=$lt_LTCC
14982
14983 # LTCC compiler flags.
14984 LTCFLAGS=$lt_LTCFLAGS
14985
14986 # A language-specific compiler.
14987 CC=$lt_compiler_CXX
14988
14989 # Is the compiler the GNU C compiler?
14990 with_gcc=$GCC_CXX
14991
14992 # An ERE matcher.
14993 EGREP=$lt_EGREP
14994
14995 # The linker used to build libraries.
14996 LD=$lt_LD_CXX
14997
14998 # Whether we need hard or soft links.
14999 LN_S=$lt_LN_S
15000
15001 # A BSD-compatible nm program.
15002 NM=$lt_NM
15003
15004 # A symbol stripping program
15005 STRIP=$lt_STRIP
15006
15007 # Used to examine libraries when file_magic_cmd begins "file"
15008 MAGIC_CMD=$MAGIC_CMD
15009
15010 # Used on cygwin: DLL creation program.
15011 DLLTOOL="$DLLTOOL"
15012
15013 # Used on cygwin: object dumper.
15014 OBJDUMP="$OBJDUMP"
15015
15016 # Used on cygwin: assembler.
15017 AS="$AS"
15018
15019 # The name of the directory that contains temporary libtool files.
15020 objdir=$objdir
15021
15022 # How to create reloadable object files.
15023 reload_flag=$lt_reload_flag
15024 reload_cmds=$lt_reload_cmds
15025
15026 # How to pass a linker flag through the compiler.
15027 wl=$lt_lt_prog_compiler_wl_CXX
15028
15029 # Object file suffix (normally "o").
15030 objext="$ac_objext"
15031
15032 # Old archive suffix (normally "a").
15033 libext="$libext"
15034
15035 # Shared library suffix (normally ".so").
15036 shrext_cmds='$shrext_cmds'
15037
15038 # Executable file suffix (normally "").
15039 exeext="$exeext"
15040
15041 # Additional compiler flags for building library objects.
15042 pic_flag=$lt_lt_prog_compiler_pic_CXX
15043 pic_mode=$pic_mode
15044
15045 # What is the maximum length of a command?
15046 max_cmd_len=$lt_cv_sys_max_cmd_len
15047
15048 # Does compiler simultaneously support -c and -o options?
15049 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
15050
15051 # Must we lock files when doing compilation?
15052 need_locks=$lt_need_locks
15053
15054 # Do we need the lib prefix for modules?
15055 need_lib_prefix=$need_lib_prefix
15056
15057 # Do we need a version for libraries?
15058 need_version=$need_version
15059
15060 # Whether dlopen is supported.
15061 dlopen_support=$enable_dlopen
15062
15063 # Whether dlopen of programs is supported.
15064 dlopen_self=$enable_dlopen_self
15065
15066 # Whether dlopen of statically linked programs is supported.
15067 dlopen_self_static=$enable_dlopen_self_static
15068
15069 # Compiler flag to prevent dynamic linking.
15070 link_static_flag=$lt_lt_prog_compiler_static_CXX
15071
15072 # Compiler flag to turn off builtin functions.
15073 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
15074
15075 # Compiler flag to allow reflexive dlopens.
15076 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
15077
15078 # Compiler flag to generate shared objects directly from archives.
15079 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
15080
15081 # Compiler flag to generate thread-safe objects.
15082 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
15083
15084 # Library versioning type.
15085 version_type=$version_type
15086
15087 # Format of library name prefix.
15088 libname_spec=$lt_libname_spec
15089
15090 # List of archive names.  First name is the real one, the rest are links.
15091 # The last name is the one that the linker finds with -lNAME.
15092 library_names_spec=$lt_library_names_spec
15093
15094 # The coded name of the library, if different from the real name.
15095 soname_spec=$lt_soname_spec
15096
15097 # Commands used to build and install an old-style archive.
15098 RANLIB=$lt_RANLIB
15099 old_archive_cmds=$lt_old_archive_cmds_CXX
15100 old_postinstall_cmds=$lt_old_postinstall_cmds
15101 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15102
15103 # Create an old-style archive from a shared archive.
15104 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
15105
15106 # Create a temporary old-style archive to link instead of a shared archive.
15107 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
15108
15109 # Commands used to build and install a shared archive.
15110 archive_cmds=$lt_archive_cmds_CXX
15111 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
15112 postinstall_cmds=$lt_postinstall_cmds
15113 postuninstall_cmds=$lt_postuninstall_cmds
15114
15115 # Commands used to build a loadable module (assumed same as above if empty)
15116 module_cmds=$lt_module_cmds_CXX
15117 module_expsym_cmds=$lt_module_expsym_cmds_CXX
15118
15119 # Commands to strip libraries.
15120 old_striplib=$lt_old_striplib
15121 striplib=$lt_striplib
15122
15123 # Dependencies to place before the objects being linked to create a
15124 # shared library.
15125 predep_objects=$lt_predep_objects_CXX
15126
15127 # Dependencies to place after the objects being linked to create a
15128 # shared library.
15129 postdep_objects=$lt_postdep_objects_CXX
15130
15131 # Dependencies to place before the objects being linked to create a
15132 # shared library.
15133 predeps=$lt_predeps_CXX
15134
15135 # Dependencies to place after the objects being linked to create a
15136 # shared library.
15137 postdeps=$lt_postdeps_CXX
15138
15139 # The library search path used internally by the compiler when linking
15140 # a shared library.
15141 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
15142
15143 # Method to check whether dependent libraries are shared objects.
15144 deplibs_check_method=$lt_deplibs_check_method
15145
15146 # Command to use when deplibs_check_method == file_magic.
15147 file_magic_cmd=$lt_file_magic_cmd
15148
15149 # Flag that allows shared libraries with undefined symbols to be built.
15150 allow_undefined_flag=$lt_allow_undefined_flag_CXX
15151
15152 # Flag that forces no undefined symbols.
15153 no_undefined_flag=$lt_no_undefined_flag_CXX
15154
15155 # Commands used to finish a libtool library installation in a directory.
15156 finish_cmds=$lt_finish_cmds
15157
15158 # Same as above, but a single script fragment to be evaled but not shown.
15159 finish_eval=$lt_finish_eval
15160
15161 # Take the output of nm and produce a listing of raw symbols and C names.
15162 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15163
15164 # Transform the output of nm in a proper C declaration
15165 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15166
15167 # Transform the output of nm in a C name address pair
15168 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15169
15170 # This is the shared library runtime path variable.
15171 runpath_var=$runpath_var
15172
15173 # This is the shared library path variable.
15174 shlibpath_var=$shlibpath_var
15175
15176 # Is shlibpath searched before the hard-coded library search path?
15177 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15178
15179 # How to hardcode a shared library path into an executable.
15180 hardcode_action=$hardcode_action_CXX
15181
15182 # Whether we should hardcode library paths into libraries.
15183 hardcode_into_libs=$hardcode_into_libs
15184
15185 # Flag to hardcode \$libdir into a binary during linking.
15186 # This must work even if \$libdir does not exist.
15187 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
15188
15189 # If ld is used when linking, flag to hardcode \$libdir into
15190 # a binary during linking. This must work even if \$libdir does
15191 # not exist.
15192 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
15193
15194 # Whether we need a single -rpath flag with a separated argument.
15195 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
15196
15197 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15198 # resulting binary.
15199 hardcode_direct=$hardcode_direct_CXX
15200
15201 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15202 # resulting binary.
15203 hardcode_minus_L=$hardcode_minus_L_CXX
15204
15205 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15206 # the resulting binary.
15207 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
15208
15209 # Set to yes if building a shared library automatically hardcodes DIR into the library
15210 # and all subsequent libraries and executables linked against it.
15211 hardcode_automatic=$hardcode_automatic_CXX
15212
15213 # Variables whose values should be saved in libtool wrapper scripts and
15214 # restored at relink time.
15215 variables_saved_for_relink="$variables_saved_for_relink"
15216
15217 # Whether libtool must link a program against all its dependency libraries.
15218 link_all_deplibs=$link_all_deplibs_CXX
15219
15220 # Compile-time system search path for libraries
15221 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15222
15223 # Run-time system search path for libraries
15224 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15225
15226 # Fix the shell variable \$srcfile for the compiler.
15227 fix_srcfile_path="$fix_srcfile_path_CXX"
15228
15229 # Set to yes if exported symbols are required.
15230 always_export_symbols=$always_export_symbols_CXX
15231
15232 # The commands to list exported symbols.
15233 export_symbols_cmds=$lt_export_symbols_cmds_CXX
15234
15235 # The commands to extract the exported symbol list from a shared archive.
15236 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15237
15238 # Symbols that should not be listed in the preloaded symbols.
15239 exclude_expsyms=$lt_exclude_expsyms_CXX
15240
15241 # Symbols that must always be exported.
15242 include_expsyms=$lt_include_expsyms_CXX
15243
15244 # ### END LIBTOOL TAG CONFIG: $tagname
15245
15246 __EOF__
15247
15248
15249 else
15250   # If there is no Makefile yet, we rely on a make rule to execute
15251   # `config.status --recheck' to rerun these tests and create the
15252   # libtool script then.
15253   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15254   if test -f "$ltmain_in"; then
15255     test -f Makefile && make "$ltmain"
15256   fi
15257 fi
15258
15259
15260 ac_ext=c
15261 ac_cpp='$CPP $CPPFLAGS'
15262 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15263 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15264 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15265
15266 CC=$lt_save_CC
15267 LDCXX=$LD
15268 LD=$lt_save_LD
15269 GCC=$lt_save_GCC
15270 with_gnu_ldcxx=$with_gnu_ld
15271 with_gnu_ld=$lt_save_with_gnu_ld
15272 lt_cv_path_LDCXX=$lt_cv_path_LD
15273 lt_cv_path_LD=$lt_save_path_LD
15274 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15275 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15276
15277         else
15278           tagname=""
15279         fi
15280         ;;
15281
15282       F77)
15283         if test -n "$F77" && test "X$F77" != "Xno"; then
15284
15285 ac_ext=f
15286 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15287 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15288 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
15289
15290
15291 archive_cmds_need_lc_F77=no
15292 allow_undefined_flag_F77=
15293 always_export_symbols_F77=no
15294 archive_expsym_cmds_F77=
15295 export_dynamic_flag_spec_F77=
15296 hardcode_direct_F77=no
15297 hardcode_libdir_flag_spec_F77=
15298 hardcode_libdir_flag_spec_ld_F77=
15299 hardcode_libdir_separator_F77=
15300 hardcode_minus_L_F77=no
15301 hardcode_automatic_F77=no
15302 module_cmds_F77=
15303 module_expsym_cmds_F77=
15304 link_all_deplibs_F77=unknown
15305 old_archive_cmds_F77=$old_archive_cmds
15306 no_undefined_flag_F77=
15307 whole_archive_flag_spec_F77=
15308 enable_shared_with_static_runtimes_F77=no
15309
15310 # Source file extension for f77 test sources.
15311 ac_ext=f
15312
15313 # Object file extension for compiled f77 test sources.
15314 objext=o
15315 objext_F77=$objext
15316
15317 # Code to be used in simple compile tests
15318 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
15319
15320 # Code to be used in simple link tests
15321 lt_simple_link_test_code="      program t\n      end\n"
15322
15323 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15324
15325 # If no C compiler was specified, use CC.
15326 LTCC=${LTCC-"$CC"}
15327
15328 # If no C compiler flags were specified, use CFLAGS.
15329 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15330
15331 # Allow CC to be a program name with arguments.
15332 compiler=$CC
15333
15334
15335 # save warnings/boilerplate of simple test code
15336 ac_outfile=conftest.$ac_objext
15337 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15338 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15339 _lt_compiler_boilerplate=`cat conftest.err`
15340 $rm conftest*
15341
15342 ac_outfile=conftest.$ac_objext
15343 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15344 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15345 _lt_linker_boilerplate=`cat conftest.err`
15346 $rm conftest*
15347
15348
15349 # Allow CC to be a program name with arguments.
15350 lt_save_CC="$CC"
15351 CC=${F77-"f77"}
15352 compiler=$CC
15353 compiler_F77=$CC
15354 for cc_temp in $compiler""; do
15355   case $cc_temp in
15356     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15357     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15358     \-*) ;;
15359     *) break;;
15360   esac
15361 done
15362 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15363
15364
15365 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15366 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
15367 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
15368 echo "${ECHO_T}$can_build_shared" >&6; }
15369
15370 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15371 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
15372 test "$can_build_shared" = "no" && enable_shared=no
15373
15374 # On AIX, shared libraries and static libraries use the same namespace, and
15375 # are all built from PIC.
15376 case $host_os in
15377 aix3*)
15378   test "$enable_shared" = yes && enable_static=no
15379   if test -n "$RANLIB"; then
15380     archive_cmds="$archive_cmds~\$RANLIB \$lib"
15381     postinstall_cmds='$RANLIB $lib'
15382   fi
15383   ;;
15384 aix4* | aix5*)
15385   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15386     test "$enable_shared" = yes && enable_static=no
15387   fi
15388   ;;
15389 esac
15390 { echo "$as_me:$LINENO: result: $enable_shared" >&5
15391 echo "${ECHO_T}$enable_shared" >&6; }
15392
15393 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15394 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
15395 # Make sure either enable_shared or enable_static is yes.
15396 test "$enable_shared" = yes || enable_static=yes
15397 { echo "$as_me:$LINENO: result: $enable_static" >&5
15398 echo "${ECHO_T}$enable_static" >&6; }
15399
15400 GCC_F77="$G77"
15401 LD_F77="$LD"
15402
15403 lt_prog_compiler_wl_F77=
15404 lt_prog_compiler_pic_F77=
15405 lt_prog_compiler_static_F77=
15406
15407 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15408 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
15409
15410   if test "$GCC" = yes; then
15411     lt_prog_compiler_wl_F77='-Wl,'
15412     lt_prog_compiler_static_F77='-static'
15413
15414     case $host_os in
15415       aix*)
15416       # All AIX code is PIC.
15417       if test "$host_cpu" = ia64; then
15418         # AIX 5 now supports IA64 processor
15419         lt_prog_compiler_static_F77='-Bstatic'
15420       fi
15421       ;;
15422
15423     amigaos*)
15424       # FIXME: we need at least 68020 code to build shared libraries, but
15425       # adding the `-m68020' flag to GCC prevents building anything better,
15426       # like `-m68040'.
15427       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
15428       ;;
15429
15430     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15431       # PIC is the default for these OSes.
15432       ;;
15433
15434     mingw* | pw32* | os2*)
15435       # This hack is so that the source file can tell whether it is being
15436       # built for inclusion in a dll (and should export symbols for example).
15437       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15438       ;;
15439
15440     darwin* | rhapsody*)
15441       # PIC is the default on this platform
15442       # Common symbols not allowed in MH_DYLIB files
15443       lt_prog_compiler_pic_F77='-fno-common'
15444       ;;
15445
15446     interix3*)
15447       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15448       # Instead, we relocate shared libraries at runtime.
15449       ;;
15450
15451     msdosdjgpp*)
15452       # Just because we use GCC doesn't mean we suddenly get shared libraries
15453       # on systems that don't support them.
15454       lt_prog_compiler_can_build_shared_F77=no
15455       enable_shared=no
15456       ;;
15457
15458     sysv4*MP*)
15459       if test -d /usr/nec; then
15460         lt_prog_compiler_pic_F77=-Kconform_pic
15461       fi
15462       ;;
15463
15464     hpux*)
15465       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15466       # not for PA HP-UX.
15467       case $host_cpu in
15468       hppa*64*|ia64*)
15469         # +Z the default
15470         ;;
15471       *)
15472         lt_prog_compiler_pic_F77='-fPIC'
15473         ;;
15474       esac
15475       ;;
15476
15477     *)
15478       lt_prog_compiler_pic_F77='-fPIC'
15479       ;;
15480     esac
15481   else
15482     # PORTME Check for flag to pass linker flags through the system compiler.
15483     case $host_os in
15484     aix*)
15485       lt_prog_compiler_wl_F77='-Wl,'
15486       if test "$host_cpu" = ia64; then
15487         # AIX 5 now supports IA64 processor
15488         lt_prog_compiler_static_F77='-Bstatic'
15489       else
15490         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15491       fi
15492       ;;
15493       darwin*)
15494         # PIC is the default on this platform
15495         # Common symbols not allowed in MH_DYLIB files
15496        case $cc_basename in
15497          xlc*)
15498          lt_prog_compiler_pic_F77='-qnocommon'
15499          lt_prog_compiler_wl_F77='-Wl,'
15500          ;;
15501        esac
15502        ;;
15503
15504     mingw* | pw32* | os2*)
15505       # This hack is so that the source file can tell whether it is being
15506       # built for inclusion in a dll (and should export symbols for example).
15507       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15508       ;;
15509
15510     hpux9* | hpux10* | hpux11*)
15511       lt_prog_compiler_wl_F77='-Wl,'
15512       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15513       # not for PA HP-UX.
15514       case $host_cpu in
15515       hppa*64*|ia64*)
15516         # +Z the default
15517         ;;
15518       *)
15519         lt_prog_compiler_pic_F77='+Z'
15520         ;;
15521       esac
15522       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15523       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15524       ;;
15525
15526     irix5* | irix6* | nonstopux*)
15527       lt_prog_compiler_wl_F77='-Wl,'
15528       # PIC (with -KPIC) is the default.
15529       lt_prog_compiler_static_F77='-non_shared'
15530       ;;
15531
15532     newsos6)
15533       lt_prog_compiler_pic_F77='-KPIC'
15534       lt_prog_compiler_static_F77='-Bstatic'
15535       ;;
15536
15537     linux* | k*bsd*-gnu)
15538       case $cc_basename in
15539       icc* | ecc*)
15540         lt_prog_compiler_wl_F77='-Wl,'
15541         lt_prog_compiler_pic_F77='-KPIC'
15542         lt_prog_compiler_static_F77='-static'
15543         ;;
15544       pgcc* | pgf77* | pgf90* | pgf95*)
15545         # Portland Group compilers (*not* the Pentium gcc compiler,
15546         # which looks to be a dead project)
15547         lt_prog_compiler_wl_F77='-Wl,'
15548         lt_prog_compiler_pic_F77='-fpic'
15549         lt_prog_compiler_static_F77='-Bstatic'
15550         ;;
15551       ccc*)
15552         lt_prog_compiler_wl_F77='-Wl,'
15553         # All Alpha code is PIC.
15554         lt_prog_compiler_static_F77='-non_shared'
15555         ;;
15556       esac
15557       ;;
15558
15559     osf3* | osf4* | osf5*)
15560       lt_prog_compiler_wl_F77='-Wl,'
15561       # All OSF/1 code is PIC.
15562       lt_prog_compiler_static_F77='-non_shared'
15563       ;;
15564
15565     solaris*)
15566       lt_prog_compiler_pic_F77='-KPIC'
15567       lt_prog_compiler_static_F77='-Bstatic'
15568       case $cc_basename in
15569       f77* | f90* | f95*)
15570         lt_prog_compiler_wl_F77='-Qoption ld ';;
15571       *)
15572         lt_prog_compiler_wl_F77='-Wl,';;
15573       esac
15574       ;;
15575
15576     sunos4*)
15577       lt_prog_compiler_wl_F77='-Qoption ld '
15578       lt_prog_compiler_pic_F77='-PIC'
15579       lt_prog_compiler_static_F77='-Bstatic'
15580       ;;
15581
15582     sysv4 | sysv4.2uw2* | sysv4.3*)
15583       lt_prog_compiler_wl_F77='-Wl,'
15584       lt_prog_compiler_pic_F77='-KPIC'
15585       lt_prog_compiler_static_F77='-Bstatic'
15586       ;;
15587
15588     sysv4*MP*)
15589       if test -d /usr/nec ;then
15590         lt_prog_compiler_pic_F77='-Kconform_pic'
15591         lt_prog_compiler_static_F77='-Bstatic'
15592       fi
15593       ;;
15594
15595     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15596       lt_prog_compiler_wl_F77='-Wl,'
15597       lt_prog_compiler_pic_F77='-KPIC'
15598       lt_prog_compiler_static_F77='-Bstatic'
15599       ;;
15600
15601     unicos*)
15602       lt_prog_compiler_wl_F77='-Wl,'
15603       lt_prog_compiler_can_build_shared_F77=no
15604       ;;
15605
15606     uts4*)
15607       lt_prog_compiler_pic_F77='-pic'
15608       lt_prog_compiler_static_F77='-Bstatic'
15609       ;;
15610
15611     *)
15612       lt_prog_compiler_can_build_shared_F77=no
15613       ;;
15614     esac
15615   fi
15616
15617 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15618 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
15619
15620 #
15621 # Check to make sure the PIC flag actually works.
15622 #
15623 if test -n "$lt_prog_compiler_pic_F77"; then
15624
15625 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15626 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
15627 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15628   echo $ECHO_N "(cached) $ECHO_C" >&6
15629 else
15630   lt_prog_compiler_pic_works_F77=no
15631   ac_outfile=conftest.$ac_objext
15632    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15633    lt_compiler_flag="$lt_prog_compiler_pic_F77"
15634    # Insert the option either (1) after the last *FLAGS variable, or
15635    # (2) before a word containing "conftest.", or (3) at the end.
15636    # Note that $ac_compile itself does not contain backslashes and begins
15637    # with a dollar sign (not a hyphen), so the echo should work correctly.
15638    # The option is referenced via a variable to avoid confusing sed.
15639    lt_compile=`echo "$ac_compile" | $SED \
15640    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15641    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15642    -e 's:$: $lt_compiler_flag:'`
15643    (eval echo "\"\$as_me:15643: $lt_compile\"" >&5)
15644    (eval "$lt_compile" 2>conftest.err)
15645    ac_status=$?
15646    cat conftest.err >&5
15647    echo "$as_me:15647: \$? = $ac_status" >&5
15648    if (exit $ac_status) && test -s "$ac_outfile"; then
15649      # The compiler can only warn and ignore the option if not recognized
15650      # So say no if there are warnings other than the usual output.
15651      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15652      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15653      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15654        lt_prog_compiler_pic_works_F77=yes
15655      fi
15656    fi
15657    $rm conftest*
15658
15659 fi
15660 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15661 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
15662
15663 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
15664     case $lt_prog_compiler_pic_F77 in
15665      "" | " "*) ;;
15666      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15667      esac
15668 else
15669     lt_prog_compiler_pic_F77=
15670      lt_prog_compiler_can_build_shared_F77=no
15671 fi
15672
15673 fi
15674 case $host_os in
15675   # For platforms which do not support PIC, -DPIC is meaningless:
15676   *djgpp*)
15677     lt_prog_compiler_pic_F77=
15678     ;;
15679   *)
15680     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15681     ;;
15682 esac
15683
15684 #
15685 # Check to make sure the static flag actually works.
15686 #
15687 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
15688 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15689 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15690 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
15691   echo $ECHO_N "(cached) $ECHO_C" >&6
15692 else
15693   lt_prog_compiler_static_works_F77=no
15694    save_LDFLAGS="$LDFLAGS"
15695    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15696    printf "$lt_simple_link_test_code" > conftest.$ac_ext
15697    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15698      # The linker can only warn and ignore the option if not recognized
15699      # So say no if there are warnings
15700      if test -s conftest.err; then
15701        # Append any errors to the config.log.
15702        cat conftest.err 1>&5
15703        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15704        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15705        if diff conftest.exp conftest.er2 >/dev/null; then
15706          lt_prog_compiler_static_works_F77=yes
15707        fi
15708      else
15709        lt_prog_compiler_static_works_F77=yes
15710      fi
15711    fi
15712    $rm conftest*
15713    LDFLAGS="$save_LDFLAGS"
15714
15715 fi
15716 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
15717 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
15718
15719 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
15720     :
15721 else
15722     lt_prog_compiler_static_F77=
15723 fi
15724
15725
15726 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15727 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15728 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15729   echo $ECHO_N "(cached) $ECHO_C" >&6
15730 else
15731   lt_cv_prog_compiler_c_o_F77=no
15732    $rm -r conftest 2>/dev/null
15733    mkdir conftest
15734    cd conftest
15735    mkdir out
15736    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15737
15738    lt_compiler_flag="-o out/conftest2.$ac_objext"
15739    # Insert the option either (1) after the last *FLAGS variable, or
15740    # (2) before a word containing "conftest.", or (3) at the end.
15741    # Note that $ac_compile itself does not contain backslashes and begins
15742    # with a dollar sign (not a hyphen), so the echo should work correctly.
15743    lt_compile=`echo "$ac_compile" | $SED \
15744    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15745    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15746    -e 's:$: $lt_compiler_flag:'`
15747    (eval echo "\"\$as_me:15747: $lt_compile\"" >&5)
15748    (eval "$lt_compile" 2>out/conftest.err)
15749    ac_status=$?
15750    cat out/conftest.err >&5
15751    echo "$as_me:15751: \$? = $ac_status" >&5
15752    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15753    then
15754      # The compiler can only warn and ignore the option if not recognized
15755      # So say no if there are warnings
15756      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15757      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15758      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15759        lt_cv_prog_compiler_c_o_F77=yes
15760      fi
15761    fi
15762    chmod u+w . 2>&5
15763    $rm conftest*
15764    # SGI C++ compiler will create directory out/ii_files/ for
15765    # template instantiation
15766    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15767    $rm out/* && rmdir out
15768    cd ..
15769    rmdir conftest
15770    $rm conftest*
15771
15772 fi
15773 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15774 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
15775
15776
15777 hard_links="nottested"
15778 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15779   # do not overwrite the value of need_locks provided by the user
15780   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15781 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15782   hard_links=yes
15783   $rm conftest*
15784   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15785   touch conftest.a
15786   ln conftest.a conftest.b 2>&5 || hard_links=no
15787   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15788   { echo "$as_me:$LINENO: result: $hard_links" >&5
15789 echo "${ECHO_T}$hard_links" >&6; }
15790   if test "$hard_links" = no; then
15791     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15792 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15793     need_locks=warn
15794   fi
15795 else
15796   need_locks=no
15797 fi
15798
15799 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15800 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15801
15802   runpath_var=
15803   allow_undefined_flag_F77=
15804   enable_shared_with_static_runtimes_F77=no
15805   archive_cmds_F77=
15806   archive_expsym_cmds_F77=
15807   old_archive_From_new_cmds_F77=
15808   old_archive_from_expsyms_cmds_F77=
15809   export_dynamic_flag_spec_F77=
15810   whole_archive_flag_spec_F77=
15811   thread_safe_flag_spec_F77=
15812   hardcode_libdir_flag_spec_F77=
15813   hardcode_libdir_flag_spec_ld_F77=
15814   hardcode_libdir_separator_F77=
15815   hardcode_direct_F77=no
15816   hardcode_minus_L_F77=no
15817   hardcode_shlibpath_var_F77=unsupported
15818   link_all_deplibs_F77=unknown
15819   hardcode_automatic_F77=no
15820   module_cmds_F77=
15821   module_expsym_cmds_F77=
15822   always_export_symbols_F77=no
15823   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15824   # include_expsyms should be a list of space-separated symbols to be *always*
15825   # included in the symbol list
15826   include_expsyms_F77=
15827   # exclude_expsyms can be an extended regexp of symbols to exclude
15828   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15829   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15830   # as well as any symbol that contains `d'.
15831   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15832   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15833   # platforms (ab)use it in PIC code, but their linkers get confused if
15834   # the symbol is explicitly referenced.  Since portable code cannot
15835   # rely on this symbol name, it's probably fine to never include it in
15836   # preloaded symbol tables.
15837   extract_expsyms_cmds=
15838   # Just being paranoid about ensuring that cc_basename is set.
15839   for cc_temp in $compiler""; do
15840   case $cc_temp in
15841     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15842     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15843     \-*) ;;
15844     *) break;;
15845   esac
15846 done
15847 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15848
15849   case $host_os in
15850   cygwin* | mingw* | pw32*)
15851     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15852     # When not using gcc, we currently assume that we are using
15853     # Microsoft Visual C++.
15854     if test "$GCC" != yes; then
15855       with_gnu_ld=no
15856     fi
15857     ;;
15858   interix*)
15859     # we just hope/assume this is gcc and not c89 (= MSVC++)
15860     with_gnu_ld=yes
15861     ;;
15862   openbsd*)
15863     with_gnu_ld=no
15864     ;;
15865   esac
15866
15867   ld_shlibs_F77=yes
15868   if test "$with_gnu_ld" = yes; then
15869     # If archive_cmds runs LD, not CC, wlarc should be empty
15870     wlarc='${wl}'
15871
15872     # Set some defaults for GNU ld with shared library support. These
15873     # are reset later if shared libraries are not supported. Putting them
15874     # here allows them to be overridden if necessary.
15875     runpath_var=LD_RUN_PATH
15876     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15877     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15878     # ancient GNU ld didn't support --whole-archive et. al.
15879     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15880         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15881       else
15882         whole_archive_flag_spec_F77=
15883     fi
15884     supports_anon_versioning=no
15885     case `$LD -v 2>/dev/null` in
15886       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15887       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15888       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15889       *\ 2.11.*) ;; # other 2.11 versions
15890       *) supports_anon_versioning=yes ;;
15891     esac
15892
15893     # See if GNU ld supports shared libraries.
15894     case $host_os in
15895     aix3* | aix4* | aix5*)
15896       # On AIX/PPC, the GNU linker is very broken
15897       if test "$host_cpu" != ia64; then
15898         ld_shlibs_F77=no
15899         cat <<EOF 1>&2
15900
15901 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15902 *** to be unable to reliably create shared libraries on AIX.
15903 *** Therefore, libtool is disabling shared libraries support.  If you
15904 *** really care for shared libraries, you may want to modify your PATH
15905 *** so that a non-GNU linker is found, and then restart.
15906
15907 EOF
15908       fi
15909       ;;
15910
15911     amigaos*)
15912       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)'
15913       hardcode_libdir_flag_spec_F77='-L$libdir'
15914       hardcode_minus_L_F77=yes
15915
15916       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15917       # that the semantics of dynamic libraries on AmigaOS, at least up
15918       # to version 4, is to share data among multiple programs linked
15919       # with the same dynamic library.  Since this doesn't match the
15920       # behavior of shared libraries on other platforms, we can't use
15921       # them.
15922       ld_shlibs_F77=no
15923       ;;
15924
15925     beos*)
15926       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15927         allow_undefined_flag_F77=unsupported
15928         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15929         # support --undefined.  This deserves some investigation.  FIXME
15930         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15931       else
15932         ld_shlibs_F77=no
15933       fi
15934       ;;
15935
15936     cygwin* | mingw* | pw32*)
15937       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15938       # as there is no search path for DLLs.
15939       hardcode_libdir_flag_spec_F77='-L$libdir'
15940       allow_undefined_flag_F77=unsupported
15941       always_export_symbols_F77=no
15942       enable_shared_with_static_runtimes_F77=yes
15943       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15944
15945       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15946         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15947         # If the export-symbols file already is a .def file (1st line
15948         # is EXPORTS), use it as is; otherwise, prepend...
15949         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15950           cp $export_symbols $output_objdir/$soname.def;
15951         else
15952           echo EXPORTS > $output_objdir/$soname.def;
15953           cat $export_symbols >> $output_objdir/$soname.def;
15954         fi~
15955         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15956       else
15957         ld_shlibs_F77=no
15958       fi
15959       ;;
15960
15961     interix3*)
15962       hardcode_direct_F77=no
15963       hardcode_shlibpath_var_F77=no
15964       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15965       export_dynamic_flag_spec_F77='${wl}-E'
15966       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15967       # Instead, shared libraries are loaded at an image base (0x10000000 by
15968       # default) and relocated if they conflict, which is a slow very memory
15969       # consuming and fragmenting process.  To avoid this, we pick a random,
15970       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15971       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15972       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'
15973       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'
15974       ;;
15975
15976     linux* | k*bsd*-gnu)
15977       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15978         tmp_addflag=
15979         case $cc_basename,$host_cpu in
15980         pgcc*)                          # Portland Group C compiler
15981           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'
15982           tmp_addflag=' $pic_flag'
15983           ;;
15984         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
15985           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'
15986           tmp_addflag=' $pic_flag -Mnomain' ;;
15987         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
15988           tmp_addflag=' -i_dynamic' ;;
15989         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
15990           tmp_addflag=' -i_dynamic -nofor_main' ;;
15991         ifc* | ifort*)                  # Intel Fortran compiler
15992           tmp_addflag=' -nofor_main' ;;
15993         esac
15994         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15995
15996         if test $supports_anon_versioning = yes; then
15997           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15998   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15999   $echo "local: *; };" >> $output_objdir/$libname.ver~
16000           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16001         fi
16002         link_all_deplibs_F77=no
16003       else
16004         ld_shlibs_F77=no
16005       fi
16006       ;;
16007
16008     netbsd* | netbsdelf*-gnu)
16009       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16010         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16011         wlarc=
16012       else
16013         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16014         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16015       fi
16016       ;;
16017
16018     solaris*)
16019       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16020         ld_shlibs_F77=no
16021         cat <<EOF 1>&2
16022
16023 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16024 *** create shared libraries on Solaris systems.  Therefore, libtool
16025 *** is disabling shared libraries support.  We urge you to upgrade GNU
16026 *** binutils to release 2.9.1 or newer.  Another option is to modify
16027 *** your PATH or compiler configuration so that the native linker is
16028 *** used, and then restart.
16029
16030 EOF
16031       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16032         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16033         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16034       else
16035         ld_shlibs_F77=no
16036       fi
16037       ;;
16038
16039     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16040       case `$LD -v 2>&1` in
16041         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16042         ld_shlibs_F77=no
16043         cat <<_LT_EOF 1>&2
16044
16045 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16046 *** reliably create shared libraries on SCO systems.  Therefore, libtool
16047 *** is disabling shared libraries support.  We urge you to upgrade GNU
16048 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16049 *** your PATH or compiler configuration so that the native linker is
16050 *** used, and then restart.
16051
16052 _LT_EOF
16053         ;;
16054         *)
16055           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16056             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16057             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16058             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16059           else
16060             ld_shlibs_F77=no
16061           fi
16062         ;;
16063       esac
16064       ;;
16065
16066     sunos4*)
16067       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16068       wlarc=
16069       hardcode_direct_F77=yes
16070       hardcode_shlibpath_var_F77=no
16071       ;;
16072
16073     *)
16074       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16075         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16076         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16077       else
16078         ld_shlibs_F77=no
16079       fi
16080       ;;
16081     esac
16082
16083     if test "$ld_shlibs_F77" = no; then
16084       runpath_var=
16085       hardcode_libdir_flag_spec_F77=
16086       export_dynamic_flag_spec_F77=
16087       whole_archive_flag_spec_F77=
16088     fi
16089   else
16090     # PORTME fill in a description of your system's linker (not GNU ld)
16091     case $host_os in
16092     aix3*)
16093       allow_undefined_flag_F77=unsupported
16094       always_export_symbols_F77=yes
16095       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'
16096       # Note: this linker hardcodes the directories in LIBPATH if there
16097       # are no directories specified by -L.
16098       hardcode_minus_L_F77=yes
16099       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16100         # Neither direct hardcoding nor static linking is supported with a
16101         # broken collect2.
16102         hardcode_direct_F77=unsupported
16103       fi
16104       ;;
16105
16106     aix4* | aix5*)
16107       if test "$host_cpu" = ia64; then
16108         # On IA64, the linker does run time linking by default, so we don't
16109         # have to do anything special.
16110         aix_use_runtimelinking=no
16111         exp_sym_flag='-Bexport'
16112         no_entry_flag=""
16113       else
16114         # If we're using GNU nm, then we don't want the "-C" option.
16115         # -C means demangle to AIX nm, but means don't demangle with GNU nm
16116         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16117           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'
16118         else
16119           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'
16120         fi
16121         aix_use_runtimelinking=no
16122
16123         # Test if we are trying to use run time linking or normal
16124         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16125         # need to do runtime linking.
16126         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16127           for ld_flag in $LDFLAGS; do
16128           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16129             aix_use_runtimelinking=yes
16130             break
16131           fi
16132           done
16133           ;;
16134         esac
16135
16136         exp_sym_flag='-bexport'
16137         no_entry_flag='-bnoentry'
16138       fi
16139
16140       # When large executables or shared objects are built, AIX ld can
16141       # have problems creating the table of contents.  If linking a library
16142       # or program results in "error TOC overflow" add -mminimal-toc to
16143       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16144       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16145
16146       archive_cmds_F77=''
16147       hardcode_direct_F77=yes
16148       hardcode_libdir_separator_F77=':'
16149       link_all_deplibs_F77=yes
16150
16151       if test "$GCC" = yes; then
16152         case $host_os in aix4.[012]|aix4.[012].*)
16153         # We only want to do this on AIX 4.2 and lower, the check
16154         # below for broken collect2 doesn't work under 4.3+
16155           collect2name=`${CC} -print-prog-name=collect2`
16156           if test -f "$collect2name" && \
16157            strings "$collect2name" | grep resolve_lib_name >/dev/null
16158           then
16159           # We have reworked collect2
16160           hardcode_direct_F77=yes
16161           else
16162           # We have old collect2
16163           hardcode_direct_F77=unsupported
16164           # It fails to find uninstalled libraries when the uninstalled
16165           # path is not listed in the libpath.  Setting hardcode_minus_L
16166           # to unsupported forces relinking
16167           hardcode_minus_L_F77=yes
16168           hardcode_libdir_flag_spec_F77='-L$libdir'
16169           hardcode_libdir_separator_F77=
16170           fi
16171           ;;
16172         esac
16173         shared_flag='-shared'
16174         if test "$aix_use_runtimelinking" = yes; then
16175           shared_flag="$shared_flag "'${wl}-G'
16176         fi
16177       else
16178         # not using gcc
16179         if test "$host_cpu" = ia64; then
16180         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16181         # chokes on -Wl,-G. The following line is correct:
16182           shared_flag='-G'
16183         else
16184           if test "$aix_use_runtimelinking" = yes; then
16185             shared_flag='${wl}-G'
16186           else
16187             shared_flag='${wl}-bM:SRE'
16188           fi
16189         fi
16190       fi
16191
16192       # It seems that -bexpall does not export symbols beginning with
16193       # underscore (_), so it is better to generate a list of symbols to export.
16194       always_export_symbols_F77=yes
16195       if test "$aix_use_runtimelinking" = yes; then
16196         # Warning - without using the other runtime loading flags (-brtl),
16197         # -berok will link without error, but may produce a broken library.
16198         allow_undefined_flag_F77='-berok'
16199        # Determine the default libpath from the value encoded in an empty executable.
16200        cat >conftest.$ac_ext <<_ACEOF
16201       program main
16202
16203       end
16204 _ACEOF
16205 rm -f conftest.$ac_objext conftest$ac_exeext
16206 if { (ac_try="$ac_link"
16207 case "(($ac_try" in
16208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16209   *) ac_try_echo=$ac_try;;
16210 esac
16211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16212   (eval "$ac_link") 2>conftest.er1
16213   ac_status=$?
16214   grep -v '^ *+' conftest.er1 >conftest.err
16215   rm -f conftest.er1
16216   cat conftest.err >&5
16217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16218   (exit $ac_status); } &&
16219          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
16220   { (case "(($ac_try" in
16221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16222   *) ac_try_echo=$ac_try;;
16223 esac
16224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16225   (eval "$ac_try") 2>&5
16226   ac_status=$?
16227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16228   (exit $ac_status); }; } &&
16229          { ac_try='test -s conftest$ac_exeext'
16230   { (case "(($ac_try" in
16231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16232   *) ac_try_echo=$ac_try;;
16233 esac
16234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16235   (eval "$ac_try") 2>&5
16236   ac_status=$?
16237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16238   (exit $ac_status); }; }; then
16239
16240 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16241 }'`
16242 # Check for a 64-bit object if we didn't find anything.
16243 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16244 }'`; fi
16245 else
16246   echo "$as_me: failed program was:" >&5
16247 sed 's/^/| /' conftest.$ac_ext >&5
16248
16249
16250 fi
16251
16252 rm -f core conftest.err conftest.$ac_objext \
16253       conftest$ac_exeext conftest.$ac_ext
16254 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16255
16256        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16257         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"
16258        else
16259         if test "$host_cpu" = ia64; then
16260           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
16261           allow_undefined_flag_F77="-z nodefs"
16262           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"
16263         else
16264          # Determine the default libpath from the value encoded in an empty executable.
16265          cat >conftest.$ac_ext <<_ACEOF
16266       program main
16267
16268       end
16269 _ACEOF
16270 rm -f conftest.$ac_objext conftest$ac_exeext
16271 if { (ac_try="$ac_link"
16272 case "(($ac_try" in
16273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16274   *) ac_try_echo=$ac_try;;
16275 esac
16276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16277   (eval "$ac_link") 2>conftest.er1
16278   ac_status=$?
16279   grep -v '^ *+' conftest.er1 >conftest.err
16280   rm -f conftest.er1
16281   cat conftest.err >&5
16282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16283   (exit $ac_status); } &&
16284          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
16285   { (case "(($ac_try" in
16286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16287   *) ac_try_echo=$ac_try;;
16288 esac
16289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16290   (eval "$ac_try") 2>&5
16291   ac_status=$?
16292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16293   (exit $ac_status); }; } &&
16294          { ac_try='test -s conftest$ac_exeext'
16295   { (case "(($ac_try" in
16296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16297   *) ac_try_echo=$ac_try;;
16298 esac
16299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16300   (eval "$ac_try") 2>&5
16301   ac_status=$?
16302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16303   (exit $ac_status); }; }; then
16304
16305 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16306 }'`
16307 # Check for a 64-bit object if we didn't find anything.
16308 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16309 }'`; fi
16310 else
16311   echo "$as_me: failed program was:" >&5
16312 sed 's/^/| /' conftest.$ac_ext >&5
16313
16314
16315 fi
16316
16317 rm -f core conftest.err conftest.$ac_objext \
16318       conftest$ac_exeext conftest.$ac_ext
16319 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16320
16321          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16322           # Warning - without using the other run time loading flags,
16323           # -berok will link without error, but may produce a broken library.
16324           no_undefined_flag_F77=' ${wl}-bernotok'
16325           allow_undefined_flag_F77=' ${wl}-berok'
16326           # Exported symbols can be pulled into shared objects from archives
16327           whole_archive_flag_spec_F77='$convenience'
16328           archive_cmds_need_lc_F77=yes
16329           # This is similar to how AIX traditionally builds its shared libraries.
16330           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'
16331         fi
16332       fi
16333       ;;
16334
16335     amigaos*)
16336       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)'
16337       hardcode_libdir_flag_spec_F77='-L$libdir'
16338       hardcode_minus_L_F77=yes
16339       # see comment about different semantics on the GNU ld section
16340       ld_shlibs_F77=no
16341       ;;
16342
16343     bsdi[45]*)
16344       export_dynamic_flag_spec_F77=-rdynamic
16345       ;;
16346
16347     cygwin* | mingw* | pw32*)
16348       # When not using gcc, we currently assume that we are using
16349       # Microsoft Visual C++.
16350       # hardcode_libdir_flag_spec is actually meaningless, as there is
16351       # no search path for DLLs.
16352       hardcode_libdir_flag_spec_F77=' '
16353       allow_undefined_flag_F77=unsupported
16354       # Tell ltmain to make .lib files, not .a files.
16355       libext=lib
16356       # Tell ltmain to make .dll files, not .so files.
16357       shrext_cmds=".dll"
16358       # FIXME: Setting linknames here is a bad hack.
16359       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16360       # The linker will automatically build a .lib file if we build a DLL.
16361       old_archive_From_new_cmds_F77='true'
16362       # FIXME: Should let the user specify the lib program.
16363       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
16364       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
16365       enable_shared_with_static_runtimes_F77=yes
16366       ;;
16367
16368     darwin* | rhapsody*)
16369       case $host_os in
16370         rhapsody* | darwin1.[012])
16371          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
16372          ;;
16373        *) # Darwin 1.3 on
16374          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16375            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16376          else
16377            case ${MACOSX_DEPLOYMENT_TARGET} in
16378              10.[012])
16379                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16380                ;;
16381              10.*)
16382                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
16383                ;;
16384            esac
16385          fi
16386          ;;
16387       esac
16388       archive_cmds_need_lc_F77=no
16389       hardcode_direct_F77=no
16390       hardcode_automatic_F77=yes
16391       hardcode_shlibpath_var_F77=unsupported
16392       whole_archive_flag_spec_F77=''
16393       link_all_deplibs_F77=yes
16394     if test "$GCC" = yes ; then
16395         output_verbose_link_cmd='echo'
16396         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16397       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16398       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16399       archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16400       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}'
16401     else
16402       case $cc_basename in
16403         xlc*)
16404          output_verbose_link_cmd='echo'
16405          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16406          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16407           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16408          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16409           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}'
16410           ;;
16411        *)
16412          ld_shlibs_F77=no
16413           ;;
16414       esac
16415     fi
16416       ;;
16417
16418     dgux*)
16419       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16420       hardcode_libdir_flag_spec_F77='-L$libdir'
16421       hardcode_shlibpath_var_F77=no
16422       ;;
16423
16424     freebsd1*)
16425       ld_shlibs_F77=no
16426       ;;
16427
16428     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16429     # support.  Future versions do this automatically, but an explicit c++rt0.o
16430     # does not break anything, and helps significantly (at the cost of a little
16431     # extra space).
16432     freebsd2.2*)
16433       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16434       hardcode_libdir_flag_spec_F77='-R$libdir'
16435       hardcode_direct_F77=yes
16436       hardcode_shlibpath_var_F77=no
16437       ;;
16438
16439     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16440     freebsd2*)
16441       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16442       hardcode_direct_F77=yes
16443       hardcode_minus_L_F77=yes
16444       hardcode_shlibpath_var_F77=no
16445       ;;
16446
16447     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16448     freebsd* | dragonfly*)
16449       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16450       hardcode_libdir_flag_spec_F77='-R$libdir'
16451       hardcode_direct_F77=yes
16452       hardcode_shlibpath_var_F77=no
16453       ;;
16454
16455     hpux9*)
16456       if test "$GCC" = yes; then
16457         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'
16458       else
16459         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'
16460       fi
16461       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16462       hardcode_libdir_separator_F77=:
16463       hardcode_direct_F77=yes
16464
16465       # hardcode_minus_L: Not really in the search PATH,
16466       # but as the default location of the library.
16467       hardcode_minus_L_F77=yes
16468       export_dynamic_flag_spec_F77='${wl}-E'
16469       ;;
16470
16471     hpux10*)
16472       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16473         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16474       else
16475         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16476       fi
16477       if test "$with_gnu_ld" = no; then
16478         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16479         hardcode_libdir_separator_F77=:
16480
16481         hardcode_direct_F77=yes
16482         export_dynamic_flag_spec_F77='${wl}-E'
16483
16484         # hardcode_minus_L: Not really in the search PATH,
16485         # but as the default location of the library.
16486         hardcode_minus_L_F77=yes
16487       fi
16488       ;;
16489
16490     hpux11*)
16491       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16492         case $host_cpu in
16493         hppa*64*)
16494           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16495           ;;
16496         ia64*)
16497           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16498           ;;
16499         *)
16500           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16501           ;;
16502         esac
16503       else
16504         case $host_cpu in
16505         hppa*64*)
16506           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16507           ;;
16508         ia64*)
16509           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16510           ;;
16511         *)
16512           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16513           ;;
16514         esac
16515       fi
16516       if test "$with_gnu_ld" = no; then
16517         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16518         hardcode_libdir_separator_F77=:
16519
16520         case $host_cpu in
16521         hppa*64*|ia64*)
16522           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16523           hardcode_direct_F77=no
16524           hardcode_shlibpath_var_F77=no
16525           ;;
16526         *)
16527           hardcode_direct_F77=yes
16528           export_dynamic_flag_spec_F77='${wl}-E'
16529
16530           # hardcode_minus_L: Not really in the search PATH,
16531           # but as the default location of the library.
16532           hardcode_minus_L_F77=yes
16533           ;;
16534         esac
16535       fi
16536       ;;
16537
16538     irix5* | irix6* | nonstopux*)
16539       if test "$GCC" = yes; then
16540         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'
16541       else
16542         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'
16543         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
16544       fi
16545       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16546       hardcode_libdir_separator_F77=:
16547       link_all_deplibs_F77=yes
16548       ;;
16549
16550     netbsd* | netbsdelf*-gnu)
16551       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16552         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16553       else
16554         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16555       fi
16556       hardcode_libdir_flag_spec_F77='-R$libdir'
16557       hardcode_direct_F77=yes
16558       hardcode_shlibpath_var_F77=no
16559       ;;
16560
16561     newsos6)
16562       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16563       hardcode_direct_F77=yes
16564       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16565       hardcode_libdir_separator_F77=:
16566       hardcode_shlibpath_var_F77=no
16567       ;;
16568
16569     openbsd*)
16570       hardcode_direct_F77=yes
16571       hardcode_shlibpath_var_F77=no
16572       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16573         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16574         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16575         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16576         export_dynamic_flag_spec_F77='${wl}-E'
16577       else
16578        case $host_os in
16579          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16580            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16581            hardcode_libdir_flag_spec_F77='-R$libdir'
16582            ;;
16583          *)
16584            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16585            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16586            ;;
16587        esac
16588       fi
16589       ;;
16590
16591     os2*)
16592       hardcode_libdir_flag_spec_F77='-L$libdir'
16593       hardcode_minus_L_F77=yes
16594       allow_undefined_flag_F77=unsupported
16595       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'
16596       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16597       ;;
16598
16599     osf3*)
16600       if test "$GCC" = yes; then
16601         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16602         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'
16603       else
16604         allow_undefined_flag_F77=' -expect_unresolved \*'
16605         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'
16606       fi
16607       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16608       hardcode_libdir_separator_F77=:
16609       ;;
16610
16611     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16612       if test "$GCC" = yes; then
16613         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16614         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'
16615         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16616       else
16617         allow_undefined_flag_F77=' -expect_unresolved \*'
16618         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'
16619         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~
16620         $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'
16621
16622         # Both c and cxx compiler support -rpath directly
16623         hardcode_libdir_flag_spec_F77='-rpath $libdir'
16624       fi
16625       hardcode_libdir_separator_F77=:
16626       ;;
16627
16628     solaris*)
16629       no_undefined_flag_F77=' -z text'
16630       if test "$GCC" = yes; then
16631         wlarc='${wl}'
16632         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16633         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16634           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16635       else
16636         wlarc=''
16637         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16638         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16639         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16640       fi
16641       hardcode_libdir_flag_spec_F77='-R$libdir'
16642       hardcode_shlibpath_var_F77=no
16643       case $host_os in
16644       solaris2.[0-5] | solaris2.[0-5].*) ;;
16645       *)
16646         # The compiler driver will combine linker options so we
16647         # cannot just pass the convience library names through
16648         # without $wl, iff we do not link with $LD.
16649         # Luckily, gcc supports the same syntax we need for Sun Studio.
16650         # Supported since Solaris 2.6 (maybe 2.5.1?)
16651         case $wlarc in
16652         '')
16653           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
16654         *)
16655           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
16656         esac ;;
16657       esac
16658       link_all_deplibs_F77=yes
16659       ;;
16660
16661     sunos4*)
16662       if test "x$host_vendor" = xsequent; then
16663         # Use $CC to link under sequent, because it throws in some extra .o
16664         # files that make .init and .fini sections work.
16665         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16666       else
16667         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16668       fi
16669       hardcode_libdir_flag_spec_F77='-L$libdir'
16670       hardcode_direct_F77=yes
16671       hardcode_minus_L_F77=yes
16672       hardcode_shlibpath_var_F77=no
16673       ;;
16674
16675     sysv4)
16676       case $host_vendor in
16677         sni)
16678           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16679           hardcode_direct_F77=yes # is this really true???
16680         ;;
16681         siemens)
16682           ## LD is ld it makes a PLAMLIB
16683           ## CC just makes a GrossModule.
16684           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16685           reload_cmds_F77='$CC -r -o $output$reload_objs'
16686           hardcode_direct_F77=no
16687         ;;
16688         motorola)
16689           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16690           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16691         ;;
16692       esac
16693       runpath_var='LD_RUN_PATH'
16694       hardcode_shlibpath_var_F77=no
16695       ;;
16696
16697     sysv4.3*)
16698       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16699       hardcode_shlibpath_var_F77=no
16700       export_dynamic_flag_spec_F77='-Bexport'
16701       ;;
16702
16703     sysv4*MP*)
16704       if test -d /usr/nec; then
16705         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16706         hardcode_shlibpath_var_F77=no
16707         runpath_var=LD_RUN_PATH
16708         hardcode_runpath_var=yes
16709         ld_shlibs_F77=yes
16710       fi
16711       ;;
16712
16713     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16714       no_undefined_flag_F77='${wl}-z,text'
16715       archive_cmds_need_lc_F77=no
16716       hardcode_shlibpath_var_F77=no
16717       runpath_var='LD_RUN_PATH'
16718
16719       if test "$GCC" = yes; then
16720         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16721         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16722       else
16723         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16724         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16725       fi
16726       ;;
16727
16728     sysv5* | sco3.2v5* | sco5v6*)
16729       # Note: We can NOT use -z defs as we might desire, because we do not
16730       # link with -lc, and that would cause any symbols used from libc to
16731       # always be unresolved, which means just about no library would
16732       # ever link correctly.  If we're not using GNU ld we use -z text
16733       # though, which does catch some bad symbols but isn't as heavy-handed
16734       # as -z defs.
16735       no_undefined_flag_F77='${wl}-z,text'
16736       allow_undefined_flag_F77='${wl}-z,nodefs'
16737       archive_cmds_need_lc_F77=no
16738       hardcode_shlibpath_var_F77=no
16739       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16740       hardcode_libdir_separator_F77=':'
16741       link_all_deplibs_F77=yes
16742       export_dynamic_flag_spec_F77='${wl}-Bexport'
16743       runpath_var='LD_RUN_PATH'
16744
16745       if test "$GCC" = yes; then
16746         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16747         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16748       else
16749         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16750         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16751       fi
16752       ;;
16753
16754     uts4*)
16755       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16756       hardcode_libdir_flag_spec_F77='-L$libdir'
16757       hardcode_shlibpath_var_F77=no
16758       ;;
16759
16760     *)
16761       ld_shlibs_F77=no
16762       ;;
16763     esac
16764   fi
16765
16766 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16767 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
16768 test "$ld_shlibs_F77" = no && can_build_shared=no
16769
16770 #
16771 # Do we need to explicitly link libc?
16772 #
16773 case "x$archive_cmds_need_lc_F77" in
16774 x|xyes)
16775   # Assume -lc should be added
16776   archive_cmds_need_lc_F77=yes
16777
16778   if test "$enable_shared" = yes && test "$GCC" = yes; then
16779     case $archive_cmds_F77 in
16780     *'~'*)
16781       # FIXME: we may have to deal with multi-command sequences.
16782       ;;
16783     '$CC '*)
16784       # Test whether the compiler implicitly links with -lc since on some
16785       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16786       # to ld, don't add -lc before -lgcc.
16787       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16788 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16789       $rm conftest*
16790       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16791
16792       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16793   (eval $ac_compile) 2>&5
16794   ac_status=$?
16795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16796   (exit $ac_status); } 2>conftest.err; then
16797         soname=conftest
16798         lib=conftest
16799         libobjs=conftest.$ac_objext
16800         deplibs=
16801         wl=$lt_prog_compiler_wl_F77
16802         pic_flag=$lt_prog_compiler_pic_F77
16803         compiler_flags=-v
16804         linker_flags=-v
16805         verstring=
16806         output_objdir=.
16807         libname=conftest
16808         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16809         allow_undefined_flag_F77=
16810         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16811   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16812   ac_status=$?
16813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16814   (exit $ac_status); }
16815         then
16816           archive_cmds_need_lc_F77=no
16817         else
16818           archive_cmds_need_lc_F77=yes
16819         fi
16820         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16821       else
16822         cat conftest.err 1>&5
16823       fi
16824       $rm conftest*
16825       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16826 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
16827       ;;
16828     esac
16829   fi
16830   ;;
16831 esac
16832
16833 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16834 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16835 library_names_spec=
16836 libname_spec='lib$name'
16837 soname_spec=
16838 shrext_cmds=".so"
16839 postinstall_cmds=
16840 postuninstall_cmds=
16841 finish_cmds=
16842 finish_eval=
16843 shlibpath_var=
16844 shlibpath_overrides_runpath=unknown
16845 version_type=none
16846 dynamic_linker="$host_os ld.so"
16847 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16848 if test "$GCC" = yes; then
16849   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16850   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16851     # if the path contains ";" then we assume it to be the separator
16852     # otherwise default to the standard path separator (i.e. ":") - it is
16853     # assumed that no part of a normal pathname contains ";" but that should
16854     # okay in the real world where ";" in dirpaths is itself problematic.
16855     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16856   else
16857     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16858   fi
16859 else
16860   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16861 fi
16862 need_lib_prefix=unknown
16863 hardcode_into_libs=no
16864
16865 # when you set need_version to no, make sure it does not cause -set_version
16866 # flags to be left without arguments
16867 need_version=unknown
16868
16869 case $host_os in
16870 aix3*)
16871   version_type=linux
16872   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16873   shlibpath_var=LIBPATH
16874
16875   # AIX 3 has no versioning support, so we append a major version to the name.
16876   soname_spec='${libname}${release}${shared_ext}$major'
16877   ;;
16878
16879 aix4* | aix5*)
16880   version_type=linux
16881   need_lib_prefix=no
16882   need_version=no
16883   hardcode_into_libs=yes
16884   if test "$host_cpu" = ia64; then
16885     # AIX 5 supports IA64
16886     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16887     shlibpath_var=LD_LIBRARY_PATH
16888   else
16889     # With GCC up to 2.95.x, collect2 would create an import file
16890     # for dependence libraries.  The import file would start with
16891     # the line `#! .'.  This would cause the generated library to
16892     # depend on `.', always an invalid library.  This was fixed in
16893     # development snapshots of GCC prior to 3.0.
16894     case $host_os in
16895       aix4 | aix4.[01] | aix4.[01].*)
16896       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16897            echo ' yes '
16898            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16899         :
16900       else
16901         can_build_shared=no
16902       fi
16903       ;;
16904     esac
16905     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16906     # soname into executable. Probably we can add versioning support to
16907     # collect2, so additional links can be useful in future.
16908     if test "$aix_use_runtimelinking" = yes; then
16909       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16910       # instead of lib<name>.a to let people know that these are not
16911       # typical AIX shared libraries.
16912       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16913     else
16914       # We preserve .a as extension for shared libraries through AIX4.2
16915       # and later when we are not doing run time linking.
16916       library_names_spec='${libname}${release}.a $libname.a'
16917       soname_spec='${libname}${release}${shared_ext}$major'
16918     fi
16919     shlibpath_var=LIBPATH
16920   fi
16921   ;;
16922
16923 amigaos*)
16924   library_names_spec='$libname.ixlibrary $libname.a'
16925   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16926   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'
16927   ;;
16928
16929 beos*)
16930   library_names_spec='${libname}${shared_ext}'
16931   dynamic_linker="$host_os ld.so"
16932   shlibpath_var=LIBRARY_PATH
16933   ;;
16934
16935 bsdi[45]*)
16936   version_type=linux
16937   need_version=no
16938   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16939   soname_spec='${libname}${release}${shared_ext}$major'
16940   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16941   shlibpath_var=LD_LIBRARY_PATH
16942   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16943   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16944   # the default ld.so.conf also contains /usr/contrib/lib and
16945   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16946   # libtool to hard-code these into programs
16947   ;;
16948
16949 cygwin* | mingw* | pw32*)
16950   version_type=windows
16951   shrext_cmds=".dll"
16952   need_version=no
16953   need_lib_prefix=no
16954
16955   case $GCC,$host_os in
16956   yes,cygwin* | yes,mingw* | yes,pw32*)
16957     library_names_spec='$libname.dll.a'
16958     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16959     postinstall_cmds='base_file=`basename \${file}`~
16960       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16961       dldir=$destdir/`dirname \$dlpath`~
16962       test -d \$dldir || mkdir -p \$dldir~
16963       $install_prog $dir/$dlname \$dldir/$dlname~
16964       chmod a+x \$dldir/$dlname'
16965     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16966       dlpath=$dir/\$dldll~
16967        $rm \$dlpath'
16968     shlibpath_overrides_runpath=yes
16969
16970     case $host_os in
16971     cygwin*)
16972       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16973       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16974       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16975       ;;
16976     mingw*)
16977       # MinGW DLLs use traditional 'lib' prefix
16978       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16979       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16980       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16981         # It is most probably a Windows format PATH printed by
16982         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16983         # path with ; separators, and with drive letters. We can handle the
16984         # drive letters (cygwin fileutils understands them), so leave them,
16985         # especially as we might pass files found there to a mingw objdump,
16986         # which wouldn't understand a cygwinified path. Ahh.
16987         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16988       else
16989         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16990       fi
16991       ;;
16992     pw32*)
16993       # pw32 DLLs use 'pw' prefix rather than 'lib'
16994       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16995       ;;
16996     esac
16997     ;;
16998
16999   *)
17000     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17001     ;;
17002   esac
17003   dynamic_linker='Win32 ld.exe'
17004   # FIXME: first we should search . and the directory the executable is in
17005   shlibpath_var=PATH
17006   ;;
17007
17008 darwin* | rhapsody*)
17009   dynamic_linker="$host_os dyld"
17010   version_type=darwin
17011   need_lib_prefix=no
17012   need_version=no
17013   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17014   soname_spec='${libname}${release}${major}$shared_ext'
17015   shlibpath_overrides_runpath=yes
17016   shlibpath_var=DYLD_LIBRARY_PATH
17017   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17018   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17019   if test "$GCC" = yes; then
17020     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
17021   else
17022     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17023   fi
17024   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17025   ;;
17026
17027 dgux*)
17028   version_type=linux
17029   need_lib_prefix=no
17030   need_version=no
17031   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17032   soname_spec='${libname}${release}${shared_ext}$major'
17033   shlibpath_var=LD_LIBRARY_PATH
17034   ;;
17035
17036 freebsd1*)
17037   dynamic_linker=no
17038   ;;
17039
17040 freebsd* | dragonfly*)
17041   # DragonFly does not have aout.  When/if they implement a new
17042   # versioning mechanism, adjust this.
17043   if test -x /usr/bin/objformat; then
17044     objformat=`/usr/bin/objformat`
17045   else
17046     case $host_os in
17047     freebsd[123]*) objformat=aout ;;
17048     *) objformat=elf ;;
17049     esac
17050   fi
17051   version_type=freebsd-$objformat
17052   case $version_type in
17053     freebsd-elf*)
17054       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17055       need_version=no
17056       need_lib_prefix=no
17057       ;;
17058     freebsd-*)
17059       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17060       need_version=yes
17061       ;;
17062   esac
17063   shlibpath_var=LD_LIBRARY_PATH
17064   case $host_os in
17065   freebsd2*)
17066     shlibpath_overrides_runpath=yes
17067     ;;
17068   freebsd3.[01]* | freebsdelf3.[01]*)
17069     shlibpath_overrides_runpath=yes
17070     hardcode_into_libs=yes
17071     ;;
17072   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17073   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17074     shlibpath_overrides_runpath=no
17075     hardcode_into_libs=yes
17076     ;;
17077   freebsd*) # from 4.6 on
17078     shlibpath_overrides_runpath=yes
17079     hardcode_into_libs=yes
17080     ;;
17081   esac
17082   ;;
17083
17084 gnu*)
17085   version_type=linux
17086   need_lib_prefix=no
17087   need_version=no
17088   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17089   soname_spec='${libname}${release}${shared_ext}$major'
17090   shlibpath_var=LD_LIBRARY_PATH
17091   hardcode_into_libs=yes
17092   ;;
17093
17094 hpux9* | hpux10* | hpux11*)
17095   # Give a soname corresponding to the major version so that dld.sl refuses to
17096   # link against other versions.
17097   version_type=sunos
17098   need_lib_prefix=no
17099   need_version=no
17100   case $host_cpu in
17101   ia64*)
17102     shrext_cmds='.so'
17103     hardcode_into_libs=yes
17104     dynamic_linker="$host_os dld.so"
17105     shlibpath_var=LD_LIBRARY_PATH
17106     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17107     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17108     soname_spec='${libname}${release}${shared_ext}$major'
17109     if test "X$HPUX_IA64_MODE" = X32; then
17110       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17111     else
17112       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17113     fi
17114     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17115     ;;
17116    hppa*64*)
17117      shrext_cmds='.sl'
17118      hardcode_into_libs=yes
17119      dynamic_linker="$host_os dld.sl"
17120      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17121      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17122      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17123      soname_spec='${libname}${release}${shared_ext}$major'
17124      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17125      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17126      ;;
17127    *)
17128     shrext_cmds='.sl'
17129     dynamic_linker="$host_os dld.sl"
17130     shlibpath_var=SHLIB_PATH
17131     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17132     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17133     soname_spec='${libname}${release}${shared_ext}$major'
17134     ;;
17135   esac
17136   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17137   postinstall_cmds='chmod 555 $lib'
17138   ;;
17139
17140 interix3*)
17141   version_type=linux
17142   need_lib_prefix=no
17143   need_version=no
17144   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17145   soname_spec='${libname}${release}${shared_ext}$major'
17146   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17147   shlibpath_var=LD_LIBRARY_PATH
17148   shlibpath_overrides_runpath=no
17149   hardcode_into_libs=yes
17150   ;;
17151
17152 irix5* | irix6* | nonstopux*)
17153   case $host_os in
17154     nonstopux*) version_type=nonstopux ;;
17155     *)
17156         if test "$lt_cv_prog_gnu_ld" = yes; then
17157                 version_type=linux
17158         else
17159                 version_type=irix
17160         fi ;;
17161   esac
17162   need_lib_prefix=no
17163   need_version=no
17164   soname_spec='${libname}${release}${shared_ext}$major'
17165   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17166   case $host_os in
17167   irix5* | nonstopux*)
17168     libsuff= shlibsuff=
17169     ;;
17170   *)
17171     case $LD in # libtool.m4 will add one of these switches to LD
17172     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17173       libsuff= shlibsuff= libmagic=32-bit;;
17174     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17175       libsuff=32 shlibsuff=N32 libmagic=N32;;
17176     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17177       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17178     *) libsuff= shlibsuff= libmagic=never-match;;
17179     esac
17180     ;;
17181   esac
17182   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17183   shlibpath_overrides_runpath=no
17184   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17185   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17186   hardcode_into_libs=yes
17187   ;;
17188
17189 # No shared lib support for Linux oldld, aout, or coff.
17190 linux*oldld* | linux*aout* | linux*coff*)
17191   dynamic_linker=no
17192   ;;
17193
17194 # This must be Linux ELF.
17195 linux* | k*bsd*-gnu)
17196   version_type=linux
17197   need_lib_prefix=no
17198   need_version=no
17199   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17200   soname_spec='${libname}${release}${shared_ext}$major'
17201   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17202   shlibpath_var=LD_LIBRARY_PATH
17203   shlibpath_overrides_runpath=no
17204   # This implies no fast_install, which is unacceptable.
17205   # Some rework will be needed to allow for fast_install
17206   # before this can be enabled.
17207   hardcode_into_libs=yes
17208
17209   # Append ld.so.conf contents to the search path
17210   if test -f /etc/ld.so.conf; then
17211     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17212     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17213   fi
17214
17215   # We used to test for /lib/ld.so.1 and disable shared libraries on
17216   # powerpc, because MkLinux only supported shared libraries with the
17217   # GNU dynamic linker.  Since this was broken with cross compilers,
17218   # most powerpc-linux boxes support dynamic linking these days and
17219   # people can always --disable-shared, the test was removed, and we
17220   # assume the GNU/Linux dynamic linker is in use.
17221   dynamic_linker='GNU/Linux ld.so'
17222   ;;
17223
17224 netbsdelf*-gnu)
17225   version_type=linux
17226   need_lib_prefix=no
17227   need_version=no
17228   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17229   soname_spec='${libname}${release}${shared_ext}$major'
17230   shlibpath_var=LD_LIBRARY_PATH
17231   shlibpath_overrides_runpath=no
17232   hardcode_into_libs=yes
17233   dynamic_linker='NetBSD ld.elf_so'
17234   ;;
17235
17236 netbsd*)
17237   version_type=sunos
17238   need_lib_prefix=no
17239   need_version=no
17240   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17241     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17242     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17243     dynamic_linker='NetBSD (a.out) ld.so'
17244   else
17245     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17246     soname_spec='${libname}${release}${shared_ext}$major'
17247     dynamic_linker='NetBSD ld.elf_so'
17248   fi
17249   shlibpath_var=LD_LIBRARY_PATH
17250   shlibpath_overrides_runpath=yes
17251   hardcode_into_libs=yes
17252   ;;
17253
17254 newsos6)
17255   version_type=linux
17256   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17257   shlibpath_var=LD_LIBRARY_PATH
17258   shlibpath_overrides_runpath=yes
17259   ;;
17260
17261 nto-qnx*)
17262   version_type=linux
17263   need_lib_prefix=no
17264   need_version=no
17265   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17266   soname_spec='${libname}${release}${shared_ext}$major'
17267   shlibpath_var=LD_LIBRARY_PATH
17268   shlibpath_overrides_runpath=yes
17269   ;;
17270
17271 openbsd*)
17272   version_type=sunos
17273   sys_lib_dlsearch_path_spec="/usr/lib"
17274   need_lib_prefix=no
17275   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17276   case $host_os in
17277     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17278     *)                         need_version=no  ;;
17279   esac
17280   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17281   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17282   shlibpath_var=LD_LIBRARY_PATH
17283   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17284     case $host_os in
17285       openbsd2.[89] | openbsd2.[89].*)
17286         shlibpath_overrides_runpath=no
17287         ;;
17288       *)
17289         shlibpath_overrides_runpath=yes
17290         ;;
17291       esac
17292   else
17293     shlibpath_overrides_runpath=yes
17294   fi
17295   ;;
17296
17297 os2*)
17298   libname_spec='$name'
17299   shrext_cmds=".dll"
17300   need_lib_prefix=no
17301   library_names_spec='$libname${shared_ext} $libname.a'
17302   dynamic_linker='OS/2 ld.exe'
17303   shlibpath_var=LIBPATH
17304   ;;
17305
17306 osf3* | osf4* | osf5*)
17307   version_type=osf
17308   need_lib_prefix=no
17309   need_version=no
17310   soname_spec='${libname}${release}${shared_ext}$major'
17311   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17312   shlibpath_var=LD_LIBRARY_PATH
17313   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17314   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17315   ;;
17316
17317 solaris*)
17318   version_type=linux
17319   need_lib_prefix=no
17320   need_version=no
17321   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17322   soname_spec='${libname}${release}${shared_ext}$major'
17323   shlibpath_var=LD_LIBRARY_PATH
17324   shlibpath_overrides_runpath=yes
17325   hardcode_into_libs=yes
17326   # ldd complains unless libraries are executable
17327   postinstall_cmds='chmod +x $lib'
17328   ;;
17329
17330 sunos4*)
17331   version_type=sunos
17332   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17333   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17334   shlibpath_var=LD_LIBRARY_PATH
17335   shlibpath_overrides_runpath=yes
17336   if test "$with_gnu_ld" = yes; then
17337     need_lib_prefix=no
17338   fi
17339   need_version=yes
17340   ;;
17341
17342 sysv4 | sysv4.3*)
17343   version_type=linux
17344   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17345   soname_spec='${libname}${release}${shared_ext}$major'
17346   shlibpath_var=LD_LIBRARY_PATH
17347   case $host_vendor in
17348     sni)
17349       shlibpath_overrides_runpath=no
17350       need_lib_prefix=no
17351       export_dynamic_flag_spec='${wl}-Blargedynsym'
17352       runpath_var=LD_RUN_PATH
17353       ;;
17354     siemens)
17355       need_lib_prefix=no
17356       ;;
17357     motorola)
17358       need_lib_prefix=no
17359       need_version=no
17360       shlibpath_overrides_runpath=no
17361       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17362       ;;
17363   esac
17364   ;;
17365
17366 sysv4*MP*)
17367   if test -d /usr/nec ;then
17368     version_type=linux
17369     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17370     soname_spec='$libname${shared_ext}.$major'
17371     shlibpath_var=LD_LIBRARY_PATH
17372   fi
17373   ;;
17374
17375 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17376   version_type=freebsd-elf
17377   need_lib_prefix=no
17378   need_version=no
17379   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17380   soname_spec='${libname}${release}${shared_ext}$major'
17381   shlibpath_var=LD_LIBRARY_PATH
17382   hardcode_into_libs=yes
17383   if test "$with_gnu_ld" = yes; then
17384     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17385     shlibpath_overrides_runpath=no
17386   else
17387     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17388     shlibpath_overrides_runpath=yes
17389     case $host_os in
17390       sco3.2v5*)
17391         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17392         ;;
17393     esac
17394   fi
17395   sys_lib_dlsearch_path_spec='/usr/lib'
17396   ;;
17397
17398 uts4*)
17399   version_type=linux
17400   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17401   soname_spec='${libname}${release}${shared_ext}$major'
17402   shlibpath_var=LD_LIBRARY_PATH
17403   ;;
17404
17405 *)
17406   dynamic_linker=no
17407   ;;
17408 esac
17409 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17410 echo "${ECHO_T}$dynamic_linker" >&6; }
17411 test "$dynamic_linker" = no && can_build_shared=no
17412
17413 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17414 if test "$GCC" = yes; then
17415   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17416 fi
17417
17418 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17419 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
17420 hardcode_action_F77=
17421 if test -n "$hardcode_libdir_flag_spec_F77" || \
17422    test -n "$runpath_var_F77" || \
17423    test "X$hardcode_automatic_F77" = "Xyes" ; then
17424
17425   # We can hardcode non-existant directories.
17426   if test "$hardcode_direct_F77" != no &&
17427      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17428      # have to relink, otherwise we might link with an installed library
17429      # when we should be linking with a yet-to-be-installed one
17430      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
17431      test "$hardcode_minus_L_F77" != no; then
17432     # Linking always hardcodes the temporary library directory.
17433     hardcode_action_F77=relink
17434   else
17435     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17436     hardcode_action_F77=immediate
17437   fi
17438 else
17439   # We cannot hardcode anything, or else we can only hardcode existing
17440   # directories.
17441   hardcode_action_F77=unsupported
17442 fi
17443 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
17444 echo "${ECHO_T}$hardcode_action_F77" >&6; }
17445
17446 if test "$hardcode_action_F77" = relink; then
17447   # Fast installation is not supported
17448   enable_fast_install=no
17449 elif test "$shlibpath_overrides_runpath" = yes ||
17450      test "$enable_shared" = no; then
17451   # Fast installation is not necessary
17452   enable_fast_install=needless
17453 fi
17454
17455
17456 # The else clause should only fire when bootstrapping the
17457 # libtool distribution, otherwise you forgot to ship ltmain.sh
17458 # with your package, and you will get complaints that there are
17459 # no rules to generate ltmain.sh.
17460 if test -f "$ltmain"; then
17461   # See if we are running on zsh, and set the options which allow our commands through
17462   # without removal of \ escapes.
17463   if test -n "${ZSH_VERSION+set}" ; then
17464     setopt NO_GLOB_SUBST
17465   fi
17466   # Now quote all the things that may contain metacharacters while being
17467   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17468   # variables and quote the copies for generation of the libtool script.
17469   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17470     SED SHELL STRIP \
17471     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17472     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17473     deplibs_check_method reload_flag reload_cmds need_locks \
17474     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17475     lt_cv_sys_global_symbol_to_c_name_address \
17476     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17477     old_postinstall_cmds old_postuninstall_cmds \
17478     compiler_F77 \
17479     CC_F77 \
17480     LD_F77 \
17481     lt_prog_compiler_wl_F77 \
17482     lt_prog_compiler_pic_F77 \
17483     lt_prog_compiler_static_F77 \
17484     lt_prog_compiler_no_builtin_flag_F77 \
17485     export_dynamic_flag_spec_F77 \
17486     thread_safe_flag_spec_F77 \
17487     whole_archive_flag_spec_F77 \
17488     enable_shared_with_static_runtimes_F77 \
17489     old_archive_cmds_F77 \
17490     old_archive_from_new_cmds_F77 \
17491     predep_objects_F77 \
17492     postdep_objects_F77 \
17493     predeps_F77 \
17494     postdeps_F77 \
17495     compiler_lib_search_path_F77 \
17496     archive_cmds_F77 \
17497     archive_expsym_cmds_F77 \
17498     postinstall_cmds_F77 \
17499     postuninstall_cmds_F77 \
17500     old_archive_from_expsyms_cmds_F77 \
17501     allow_undefined_flag_F77 \
17502     no_undefined_flag_F77 \
17503     export_symbols_cmds_F77 \
17504     hardcode_libdir_flag_spec_F77 \
17505     hardcode_libdir_flag_spec_ld_F77 \
17506     hardcode_libdir_separator_F77 \
17507     hardcode_automatic_F77 \
17508     module_cmds_F77 \
17509     module_expsym_cmds_F77 \
17510     lt_cv_prog_compiler_c_o_F77 \
17511     exclude_expsyms_F77 \
17512     include_expsyms_F77; do
17513
17514     case $var in
17515     old_archive_cmds_F77 | \
17516     old_archive_from_new_cmds_F77 | \
17517     archive_cmds_F77 | \
17518     archive_expsym_cmds_F77 | \
17519     module_cmds_F77 | \
17520     module_expsym_cmds_F77 | \
17521     old_archive_from_expsyms_cmds_F77 | \
17522     export_symbols_cmds_F77 | \
17523     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17524     postinstall_cmds | postuninstall_cmds | \
17525     old_postinstall_cmds | old_postuninstall_cmds | \
17526     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17527       # Double-quote double-evaled strings.
17528       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17529       ;;
17530     *)
17531       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17532       ;;
17533     esac
17534   done
17535
17536   case $lt_echo in
17537   *'\$0 --fallback-echo"')
17538     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17539     ;;
17540   esac
17541
17542 cfgfile="$ofile"
17543
17544   cat <<__EOF__ >> "$cfgfile"
17545 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17546
17547 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17548
17549 # Shell to use when invoking shell scripts.
17550 SHELL=$lt_SHELL
17551
17552 # Whether or not to build shared libraries.
17553 build_libtool_libs=$enable_shared
17554
17555 # Whether or not to build static libraries.
17556 build_old_libs=$enable_static
17557
17558 # Whether or not to add -lc for building shared libraries.
17559 build_libtool_need_lc=$archive_cmds_need_lc_F77
17560
17561 # Whether or not to disallow shared libs when runtime libs are static
17562 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17563
17564 # Whether or not to optimize for fast installation.
17565 fast_install=$enable_fast_install
17566
17567 # The host system.
17568 host_alias=$host_alias
17569 host=$host
17570 host_os=$host_os
17571
17572 # The build system.
17573 build_alias=$build_alias
17574 build=$build
17575 build_os=$build_os
17576
17577 # An echo program that does not interpret backslashes.
17578 echo=$lt_echo
17579
17580 # The archiver.
17581 AR=$lt_AR
17582 AR_FLAGS=$lt_AR_FLAGS
17583
17584 # A C compiler.
17585 LTCC=$lt_LTCC
17586
17587 # LTCC compiler flags.
17588 LTCFLAGS=$lt_LTCFLAGS
17589
17590 # A language-specific compiler.
17591 CC=$lt_compiler_F77
17592
17593 # Is the compiler the GNU C compiler?
17594 with_gcc=$GCC_F77
17595
17596 # An ERE matcher.
17597 EGREP=$lt_EGREP
17598
17599 # The linker used to build libraries.
17600 LD=$lt_LD_F77
17601
17602 # Whether we need hard or soft links.
17603 LN_S=$lt_LN_S
17604
17605 # A BSD-compatible nm program.
17606 NM=$lt_NM
17607
17608 # A symbol stripping program
17609 STRIP=$lt_STRIP
17610
17611 # Used to examine libraries when file_magic_cmd begins "file"
17612 MAGIC_CMD=$MAGIC_CMD
17613
17614 # Used on cygwin: DLL creation program.
17615 DLLTOOL="$DLLTOOL"
17616
17617 # Used on cygwin: object dumper.
17618 OBJDUMP="$OBJDUMP"
17619
17620 # Used on cygwin: assembler.
17621 AS="$AS"
17622
17623 # The name of the directory that contains temporary libtool files.
17624 objdir=$objdir
17625
17626 # How to create reloadable object files.
17627 reload_flag=$lt_reload_flag
17628 reload_cmds=$lt_reload_cmds
17629
17630 # How to pass a linker flag through the compiler.
17631 wl=$lt_lt_prog_compiler_wl_F77
17632
17633 # Object file suffix (normally "o").
17634 objext="$ac_objext"
17635
17636 # Old archive suffix (normally "a").
17637 libext="$libext"
17638
17639 # Shared library suffix (normally ".so").
17640 shrext_cmds='$shrext_cmds'
17641
17642 # Executable file suffix (normally "").
17643 exeext="$exeext"
17644
17645 # Additional compiler flags for building library objects.
17646 pic_flag=$lt_lt_prog_compiler_pic_F77
17647 pic_mode=$pic_mode
17648
17649 # What is the maximum length of a command?
17650 max_cmd_len=$lt_cv_sys_max_cmd_len
17651
17652 # Does compiler simultaneously support -c and -o options?
17653 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17654
17655 # Must we lock files when doing compilation?
17656 need_locks=$lt_need_locks
17657
17658 # Do we need the lib prefix for modules?
17659 need_lib_prefix=$need_lib_prefix
17660
17661 # Do we need a version for libraries?
17662 need_version=$need_version
17663
17664 # Whether dlopen is supported.
17665 dlopen_support=$enable_dlopen
17666
17667 # Whether dlopen of programs is supported.
17668 dlopen_self=$enable_dlopen_self
17669
17670 # Whether dlopen of statically linked programs is supported.
17671 dlopen_self_static=$enable_dlopen_self_static
17672
17673 # Compiler flag to prevent dynamic linking.
17674 link_static_flag=$lt_lt_prog_compiler_static_F77
17675
17676 # Compiler flag to turn off builtin functions.
17677 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17678
17679 # Compiler flag to allow reflexive dlopens.
17680 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17681
17682 # Compiler flag to generate shared objects directly from archives.
17683 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17684
17685 # Compiler flag to generate thread-safe objects.
17686 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17687
17688 # Library versioning type.
17689 version_type=$version_type
17690
17691 # Format of library name prefix.
17692 libname_spec=$lt_libname_spec
17693
17694 # List of archive names.  First name is the real one, the rest are links.
17695 # The last name is the one that the linker finds with -lNAME.
17696 library_names_spec=$lt_library_names_spec
17697
17698 # The coded name of the library, if different from the real name.
17699 soname_spec=$lt_soname_spec
17700
17701 # Commands used to build and install an old-style archive.
17702 RANLIB=$lt_RANLIB
17703 old_archive_cmds=$lt_old_archive_cmds_F77
17704 old_postinstall_cmds=$lt_old_postinstall_cmds
17705 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17706
17707 # Create an old-style archive from a shared archive.
17708 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17709
17710 # Create a temporary old-style archive to link instead of a shared archive.
17711 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17712
17713 # Commands used to build and install a shared archive.
17714 archive_cmds=$lt_archive_cmds_F77
17715 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17716 postinstall_cmds=$lt_postinstall_cmds
17717 postuninstall_cmds=$lt_postuninstall_cmds
17718
17719 # Commands used to build a loadable module (assumed same as above if empty)
17720 module_cmds=$lt_module_cmds_F77
17721 module_expsym_cmds=$lt_module_expsym_cmds_F77
17722
17723 # Commands to strip libraries.
17724 old_striplib=$lt_old_striplib
17725 striplib=$lt_striplib
17726
17727 # Dependencies to place before the objects being linked to create a
17728 # shared library.
17729 predep_objects=$lt_predep_objects_F77
17730
17731 # Dependencies to place after the objects being linked to create a
17732 # shared library.
17733 postdep_objects=$lt_postdep_objects_F77
17734
17735 # Dependencies to place before the objects being linked to create a
17736 # shared library.
17737 predeps=$lt_predeps_F77
17738
17739 # Dependencies to place after the objects being linked to create a
17740 # shared library.
17741 postdeps=$lt_postdeps_F77
17742
17743 # The library search path used internally by the compiler when linking
17744 # a shared library.
17745 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17746
17747 # Method to check whether dependent libraries are shared objects.
17748 deplibs_check_method=$lt_deplibs_check_method
17749
17750 # Command to use when deplibs_check_method == file_magic.
17751 file_magic_cmd=$lt_file_magic_cmd
17752
17753 # Flag that allows shared libraries with undefined symbols to be built.
17754 allow_undefined_flag=$lt_allow_undefined_flag_F77
17755
17756 # Flag that forces no undefined symbols.
17757 no_undefined_flag=$lt_no_undefined_flag_F77
17758
17759 # Commands used to finish a libtool library installation in a directory.
17760 finish_cmds=$lt_finish_cmds
17761
17762 # Same as above, but a single script fragment to be evaled but not shown.
17763 finish_eval=$lt_finish_eval
17764
17765 # Take the output of nm and produce a listing of raw symbols and C names.
17766 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17767
17768 # Transform the output of nm in a proper C declaration
17769 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17770
17771 # Transform the output of nm in a C name address pair
17772 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17773
17774 # This is the shared library runtime path variable.
17775 runpath_var=$runpath_var
17776
17777 # This is the shared library path variable.
17778 shlibpath_var=$shlibpath_var
17779
17780 # Is shlibpath searched before the hard-coded library search path?
17781 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17782
17783 # How to hardcode a shared library path into an executable.
17784 hardcode_action=$hardcode_action_F77
17785
17786 # Whether we should hardcode library paths into libraries.
17787 hardcode_into_libs=$hardcode_into_libs
17788
17789 # Flag to hardcode \$libdir into a binary during linking.
17790 # This must work even if \$libdir does not exist.
17791 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17792
17793 # If ld is used when linking, flag to hardcode \$libdir into
17794 # a binary during linking. This must work even if \$libdir does
17795 # not exist.
17796 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17797
17798 # Whether we need a single -rpath flag with a separated argument.
17799 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17800
17801 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17802 # resulting binary.
17803 hardcode_direct=$hardcode_direct_F77
17804
17805 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17806 # resulting binary.
17807 hardcode_minus_L=$hardcode_minus_L_F77
17808
17809 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17810 # the resulting binary.
17811 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17812
17813 # Set to yes if building a shared library automatically hardcodes DIR into the library
17814 # and all subsequent libraries and executables linked against it.
17815 hardcode_automatic=$hardcode_automatic_F77
17816
17817 # Variables whose values should be saved in libtool wrapper scripts and
17818 # restored at relink time.
17819 variables_saved_for_relink="$variables_saved_for_relink"
17820
17821 # Whether libtool must link a program against all its dependency libraries.
17822 link_all_deplibs=$link_all_deplibs_F77
17823
17824 # Compile-time system search path for libraries
17825 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17826
17827 # Run-time system search path for libraries
17828 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17829
17830 # Fix the shell variable \$srcfile for the compiler.
17831 fix_srcfile_path="$fix_srcfile_path_F77"
17832
17833 # Set to yes if exported symbols are required.
17834 always_export_symbols=$always_export_symbols_F77
17835
17836 # The commands to list exported symbols.
17837 export_symbols_cmds=$lt_export_symbols_cmds_F77
17838
17839 # The commands to extract the exported symbol list from a shared archive.
17840 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17841
17842 # Symbols that should not be listed in the preloaded symbols.
17843 exclude_expsyms=$lt_exclude_expsyms_F77
17844
17845 # Symbols that must always be exported.
17846 include_expsyms=$lt_include_expsyms_F77
17847
17848 # ### END LIBTOOL TAG CONFIG: $tagname
17849
17850 __EOF__
17851
17852
17853 else
17854   # If there is no Makefile yet, we rely on a make rule to execute
17855   # `config.status --recheck' to rerun these tests and create the
17856   # libtool script then.
17857   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17858   if test -f "$ltmain_in"; then
17859     test -f Makefile && make "$ltmain"
17860   fi
17861 fi
17862
17863
17864 ac_ext=c
17865 ac_cpp='$CPP $CPPFLAGS'
17866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17869
17870 CC="$lt_save_CC"
17871
17872         else
17873           tagname=""
17874         fi
17875         ;;
17876
17877       GCJ)
17878         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17879
17880
17881 # Source file extension for Java test sources.
17882 ac_ext=java
17883
17884 # Object file extension for compiled Java test sources.
17885 objext=o
17886 objext_GCJ=$objext
17887
17888 # Code to be used in simple compile tests
17889 lt_simple_compile_test_code="class foo {}\n"
17890
17891 # Code to be used in simple link tests
17892 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
17893
17894 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17895
17896 # If no C compiler was specified, use CC.
17897 LTCC=${LTCC-"$CC"}
17898
17899 # If no C compiler flags were specified, use CFLAGS.
17900 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17901
17902 # Allow CC to be a program name with arguments.
17903 compiler=$CC
17904
17905
17906 # save warnings/boilerplate of simple test code
17907 ac_outfile=conftest.$ac_objext
17908 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17909 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17910 _lt_compiler_boilerplate=`cat conftest.err`
17911 $rm conftest*
17912
17913 ac_outfile=conftest.$ac_objext
17914 printf "$lt_simple_link_test_code" >conftest.$ac_ext
17915 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17916 _lt_linker_boilerplate=`cat conftest.err`
17917 $rm conftest*
17918
17919
17920 # Allow CC to be a program name with arguments.
17921 lt_save_CC="$CC"
17922 CC=${GCJ-"gcj"}
17923 compiler=$CC
17924 compiler_GCJ=$CC
17925 for cc_temp in $compiler""; do
17926   case $cc_temp in
17927     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17928     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17929     \-*) ;;
17930     *) break;;
17931   esac
17932 done
17933 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17934
17935
17936 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17937 archive_cmds_need_lc_GCJ=no
17938
17939 old_archive_cmds_GCJ=$old_archive_cmds
17940
17941
17942 lt_prog_compiler_no_builtin_flag_GCJ=
17943
17944 if test "$GCC" = yes; then
17945   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17946
17947
17948 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17949 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
17950 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17951   echo $ECHO_N "(cached) $ECHO_C" >&6
17952 else
17953   lt_cv_prog_compiler_rtti_exceptions=no
17954   ac_outfile=conftest.$ac_objext
17955    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17956    lt_compiler_flag="-fno-rtti -fno-exceptions"
17957    # Insert the option either (1) after the last *FLAGS variable, or
17958    # (2) before a word containing "conftest.", or (3) at the end.
17959    # Note that $ac_compile itself does not contain backslashes and begins
17960    # with a dollar sign (not a hyphen), so the echo should work correctly.
17961    # The option is referenced via a variable to avoid confusing sed.
17962    lt_compile=`echo "$ac_compile" | $SED \
17963    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17964    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17965    -e 's:$: $lt_compiler_flag:'`
17966    (eval echo "\"\$as_me:17966: $lt_compile\"" >&5)
17967    (eval "$lt_compile" 2>conftest.err)
17968    ac_status=$?
17969    cat conftest.err >&5
17970    echo "$as_me:17970: \$? = $ac_status" >&5
17971    if (exit $ac_status) && test -s "$ac_outfile"; then
17972      # The compiler can only warn and ignore the option if not recognized
17973      # So say no if there are warnings other than the usual output.
17974      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17975      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17976      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17977        lt_cv_prog_compiler_rtti_exceptions=yes
17978      fi
17979    fi
17980    $rm conftest*
17981
17982 fi
17983 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17984 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17985
17986 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17987     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17988 else
17989     :
17990 fi
17991
17992 fi
17993
17994 lt_prog_compiler_wl_GCJ=
17995 lt_prog_compiler_pic_GCJ=
17996 lt_prog_compiler_static_GCJ=
17997
17998 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17999 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
18000
18001   if test "$GCC" = yes; then
18002     lt_prog_compiler_wl_GCJ='-Wl,'
18003     lt_prog_compiler_static_GCJ='-static'
18004
18005     case $host_os in
18006       aix*)
18007       # All AIX code is PIC.
18008       if test "$host_cpu" = ia64; then
18009         # AIX 5 now supports IA64 processor
18010         lt_prog_compiler_static_GCJ='-Bstatic'
18011       fi
18012       ;;
18013
18014     amigaos*)
18015       # FIXME: we need at least 68020 code to build shared libraries, but
18016       # adding the `-m68020' flag to GCC prevents building anything better,
18017       # like `-m68040'.
18018       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
18019       ;;
18020
18021     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18022       # PIC is the default for these OSes.
18023       ;;
18024
18025     mingw* | pw32* | os2*)
18026       # This hack is so that the source file can tell whether it is being
18027       # built for inclusion in a dll (and should export symbols for example).
18028       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18029       ;;
18030
18031     darwin* | rhapsody*)
18032       # PIC is the default on this platform
18033       # Common symbols not allowed in MH_DYLIB files
18034       lt_prog_compiler_pic_GCJ='-fno-common'
18035       ;;
18036
18037     interix3*)
18038       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18039       # Instead, we relocate shared libraries at runtime.
18040       ;;
18041
18042     msdosdjgpp*)
18043       # Just because we use GCC doesn't mean we suddenly get shared libraries
18044       # on systems that don't support them.
18045       lt_prog_compiler_can_build_shared_GCJ=no
18046       enable_shared=no
18047       ;;
18048
18049     sysv4*MP*)
18050       if test -d /usr/nec; then
18051         lt_prog_compiler_pic_GCJ=-Kconform_pic
18052       fi
18053       ;;
18054
18055     hpux*)
18056       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18057       # not for PA HP-UX.
18058       case $host_cpu in
18059       hppa*64*|ia64*)
18060         # +Z the default
18061         ;;
18062       *)
18063         lt_prog_compiler_pic_GCJ='-fPIC'
18064         ;;
18065       esac
18066       ;;
18067
18068     *)
18069       lt_prog_compiler_pic_GCJ='-fPIC'
18070       ;;
18071     esac
18072   else
18073     # PORTME Check for flag to pass linker flags through the system compiler.
18074     case $host_os in
18075     aix*)
18076       lt_prog_compiler_wl_GCJ='-Wl,'
18077       if test "$host_cpu" = ia64; then
18078         # AIX 5 now supports IA64 processor
18079         lt_prog_compiler_static_GCJ='-Bstatic'
18080       else
18081         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
18082       fi
18083       ;;
18084       darwin*)
18085         # PIC is the default on this platform
18086         # Common symbols not allowed in MH_DYLIB files
18087        case $cc_basename in
18088          xlc*)
18089          lt_prog_compiler_pic_GCJ='-qnocommon'
18090          lt_prog_compiler_wl_GCJ='-Wl,'
18091          ;;
18092        esac
18093        ;;
18094
18095     mingw* | pw32* | os2*)
18096       # This hack is so that the source file can tell whether it is being
18097       # built for inclusion in a dll (and should export symbols for example).
18098       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18099       ;;
18100
18101     hpux9* | hpux10* | hpux11*)
18102       lt_prog_compiler_wl_GCJ='-Wl,'
18103       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18104       # not for PA HP-UX.
18105       case $host_cpu in
18106       hppa*64*|ia64*)
18107         # +Z the default
18108         ;;
18109       *)
18110         lt_prog_compiler_pic_GCJ='+Z'
18111         ;;
18112       esac
18113       # Is there a better lt_prog_compiler_static that works with the bundled CC?
18114       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
18115       ;;
18116
18117     irix5* | irix6* | nonstopux*)
18118       lt_prog_compiler_wl_GCJ='-Wl,'
18119       # PIC (with -KPIC) is the default.
18120       lt_prog_compiler_static_GCJ='-non_shared'
18121       ;;
18122
18123     newsos6)
18124       lt_prog_compiler_pic_GCJ='-KPIC'
18125       lt_prog_compiler_static_GCJ='-Bstatic'
18126       ;;
18127
18128     linux* | k*bsd*-gnu)
18129       case $cc_basename in
18130       icc* | ecc*)
18131         lt_prog_compiler_wl_GCJ='-Wl,'
18132         lt_prog_compiler_pic_GCJ='-KPIC'
18133         lt_prog_compiler_static_GCJ='-static'
18134         ;;
18135       pgcc* | pgf77* | pgf90* | pgf95*)
18136         # Portland Group compilers (*not* the Pentium gcc compiler,
18137         # which looks to be a dead project)
18138         lt_prog_compiler_wl_GCJ='-Wl,'
18139         lt_prog_compiler_pic_GCJ='-fpic'
18140         lt_prog_compiler_static_GCJ='-Bstatic'
18141         ;;
18142       ccc*)
18143         lt_prog_compiler_wl_GCJ='-Wl,'
18144         # All Alpha code is PIC.
18145         lt_prog_compiler_static_GCJ='-non_shared'
18146         ;;
18147       esac
18148       ;;
18149
18150     osf3* | osf4* | osf5*)
18151       lt_prog_compiler_wl_GCJ='-Wl,'
18152       # All OSF/1 code is PIC.
18153       lt_prog_compiler_static_GCJ='-non_shared'
18154       ;;
18155
18156     solaris*)
18157       lt_prog_compiler_pic_GCJ='-KPIC'
18158       lt_prog_compiler_static_GCJ='-Bstatic'
18159       case $cc_basename in
18160       f77* | f90* | f95*)
18161         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
18162       *)
18163         lt_prog_compiler_wl_GCJ='-Wl,';;
18164       esac
18165       ;;
18166
18167     sunos4*)
18168       lt_prog_compiler_wl_GCJ='-Qoption ld '
18169       lt_prog_compiler_pic_GCJ='-PIC'
18170       lt_prog_compiler_static_GCJ='-Bstatic'
18171       ;;
18172
18173     sysv4 | sysv4.2uw2* | sysv4.3*)
18174       lt_prog_compiler_wl_GCJ='-Wl,'
18175       lt_prog_compiler_pic_GCJ='-KPIC'
18176       lt_prog_compiler_static_GCJ='-Bstatic'
18177       ;;
18178
18179     sysv4*MP*)
18180       if test -d /usr/nec ;then
18181         lt_prog_compiler_pic_GCJ='-Kconform_pic'
18182         lt_prog_compiler_static_GCJ='-Bstatic'
18183       fi
18184       ;;
18185
18186     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18187       lt_prog_compiler_wl_GCJ='-Wl,'
18188       lt_prog_compiler_pic_GCJ='-KPIC'
18189       lt_prog_compiler_static_GCJ='-Bstatic'
18190       ;;
18191
18192     unicos*)
18193       lt_prog_compiler_wl_GCJ='-Wl,'
18194       lt_prog_compiler_can_build_shared_GCJ=no
18195       ;;
18196
18197     uts4*)
18198       lt_prog_compiler_pic_GCJ='-pic'
18199       lt_prog_compiler_static_GCJ='-Bstatic'
18200       ;;
18201
18202     *)
18203       lt_prog_compiler_can_build_shared_GCJ=no
18204       ;;
18205     esac
18206   fi
18207
18208 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
18209 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
18210
18211 #
18212 # Check to make sure the PIC flag actually works.
18213 #
18214 if test -n "$lt_prog_compiler_pic_GCJ"; then
18215
18216 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
18217 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
18218 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
18219   echo $ECHO_N "(cached) $ECHO_C" >&6
18220 else
18221   lt_prog_compiler_pic_works_GCJ=no
18222   ac_outfile=conftest.$ac_objext
18223    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18224    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
18225    # Insert the option either (1) after the last *FLAGS variable, or
18226    # (2) before a word containing "conftest.", or (3) at the end.
18227    # Note that $ac_compile itself does not contain backslashes and begins
18228    # with a dollar sign (not a hyphen), so the echo should work correctly.
18229    # The option is referenced via a variable to avoid confusing sed.
18230    lt_compile=`echo "$ac_compile" | $SED \
18231    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18232    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18233    -e 's:$: $lt_compiler_flag:'`
18234    (eval echo "\"\$as_me:18234: $lt_compile\"" >&5)
18235    (eval "$lt_compile" 2>conftest.err)
18236    ac_status=$?
18237    cat conftest.err >&5
18238    echo "$as_me:18238: \$? = $ac_status" >&5
18239    if (exit $ac_status) && test -s "$ac_outfile"; then
18240      # The compiler can only warn and ignore the option if not recognized
18241      # So say no if there are warnings other than the usual output.
18242      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18243      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18244      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18245        lt_prog_compiler_pic_works_GCJ=yes
18246      fi
18247    fi
18248    $rm conftest*
18249
18250 fi
18251 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
18252 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
18253
18254 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
18255     case $lt_prog_compiler_pic_GCJ in
18256      "" | " "*) ;;
18257      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
18258      esac
18259 else
18260     lt_prog_compiler_pic_GCJ=
18261      lt_prog_compiler_can_build_shared_GCJ=no
18262 fi
18263
18264 fi
18265 case $host_os in
18266   # For platforms which do not support PIC, -DPIC is meaningless:
18267   *djgpp*)
18268     lt_prog_compiler_pic_GCJ=
18269     ;;
18270   *)
18271     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
18272     ;;
18273 esac
18274
18275 #
18276 # Check to make sure the static flag actually works.
18277 #
18278 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
18279 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18280 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
18281 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
18282   echo $ECHO_N "(cached) $ECHO_C" >&6
18283 else
18284   lt_prog_compiler_static_works_GCJ=no
18285    save_LDFLAGS="$LDFLAGS"
18286    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18287    printf "$lt_simple_link_test_code" > conftest.$ac_ext
18288    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18289      # The linker can only warn and ignore the option if not recognized
18290      # So say no if there are warnings
18291      if test -s conftest.err; then
18292        # Append any errors to the config.log.
18293        cat conftest.err 1>&5
18294        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
18295        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18296        if diff conftest.exp conftest.er2 >/dev/null; then
18297          lt_prog_compiler_static_works_GCJ=yes
18298        fi
18299      else
18300        lt_prog_compiler_static_works_GCJ=yes
18301      fi
18302    fi
18303    $rm conftest*
18304    LDFLAGS="$save_LDFLAGS"
18305
18306 fi
18307 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
18308 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
18309
18310 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
18311     :
18312 else
18313     lt_prog_compiler_static_GCJ=
18314 fi
18315
18316
18317 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18318 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
18319 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
18320   echo $ECHO_N "(cached) $ECHO_C" >&6
18321 else
18322   lt_cv_prog_compiler_c_o_GCJ=no
18323    $rm -r conftest 2>/dev/null
18324    mkdir conftest
18325    cd conftest
18326    mkdir out
18327    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18328
18329    lt_compiler_flag="-o out/conftest2.$ac_objext"
18330    # Insert the option either (1) after the last *FLAGS variable, or
18331    # (2) before a word containing "conftest.", or (3) at the end.
18332    # Note that $ac_compile itself does not contain backslashes and begins
18333    # with a dollar sign (not a hyphen), so the echo should work correctly.
18334    lt_compile=`echo "$ac_compile" | $SED \
18335    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18336    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18337    -e 's:$: $lt_compiler_flag:'`
18338    (eval echo "\"\$as_me:18338: $lt_compile\"" >&5)
18339    (eval "$lt_compile" 2>out/conftest.err)
18340    ac_status=$?
18341    cat out/conftest.err >&5
18342    echo "$as_me:18342: \$? = $ac_status" >&5
18343    if (exit $ac_status) && test -s out/conftest2.$ac_objext
18344    then
18345      # The compiler can only warn and ignore the option if not recognized
18346      # So say no if there are warnings
18347      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18348      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18349      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18350        lt_cv_prog_compiler_c_o_GCJ=yes
18351      fi
18352    fi
18353    chmod u+w . 2>&5
18354    $rm conftest*
18355    # SGI C++ compiler will create directory out/ii_files/ for
18356    # template instantiation
18357    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18358    $rm out/* && rmdir out
18359    cd ..
18360    rmdir conftest
18361    $rm conftest*
18362
18363 fi
18364 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
18365 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
18366
18367
18368 hard_links="nottested"
18369 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
18370   # do not overwrite the value of need_locks provided by the user
18371   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18372 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
18373   hard_links=yes
18374   $rm conftest*
18375   ln conftest.a conftest.b 2>/dev/null && hard_links=no
18376   touch conftest.a
18377   ln conftest.a conftest.b 2>&5 || hard_links=no
18378   ln conftest.a conftest.b 2>/dev/null && hard_links=no
18379   { echo "$as_me:$LINENO: result: $hard_links" >&5
18380 echo "${ECHO_T}$hard_links" >&6; }
18381   if test "$hard_links" = no; then
18382     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18383 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18384     need_locks=warn
18385   fi
18386 else
18387   need_locks=no
18388 fi
18389
18390 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18391 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18392
18393   runpath_var=
18394   allow_undefined_flag_GCJ=
18395   enable_shared_with_static_runtimes_GCJ=no
18396   archive_cmds_GCJ=
18397   archive_expsym_cmds_GCJ=
18398   old_archive_From_new_cmds_GCJ=
18399   old_archive_from_expsyms_cmds_GCJ=
18400   export_dynamic_flag_spec_GCJ=
18401   whole_archive_flag_spec_GCJ=
18402   thread_safe_flag_spec_GCJ=
18403   hardcode_libdir_flag_spec_GCJ=
18404   hardcode_libdir_flag_spec_ld_GCJ=
18405   hardcode_libdir_separator_GCJ=
18406   hardcode_direct_GCJ=no
18407   hardcode_minus_L_GCJ=no
18408   hardcode_shlibpath_var_GCJ=unsupported
18409   link_all_deplibs_GCJ=unknown
18410   hardcode_automatic_GCJ=no
18411   module_cmds_GCJ=
18412   module_expsym_cmds_GCJ=
18413   always_export_symbols_GCJ=no
18414   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18415   # include_expsyms should be a list of space-separated symbols to be *always*
18416   # included in the symbol list
18417   include_expsyms_GCJ=
18418   # exclude_expsyms can be an extended regexp of symbols to exclude
18419   # it will be wrapped by ` (' and `)$', so one must not match beginning or
18420   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18421   # as well as any symbol that contains `d'.
18422   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
18423   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18424   # platforms (ab)use it in PIC code, but their linkers get confused if
18425   # the symbol is explicitly referenced.  Since portable code cannot
18426   # rely on this symbol name, it's probably fine to never include it in
18427   # preloaded symbol tables.
18428   extract_expsyms_cmds=
18429   # Just being paranoid about ensuring that cc_basename is set.
18430   for cc_temp in $compiler""; do
18431   case $cc_temp in
18432     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18433     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18434     \-*) ;;
18435     *) break;;
18436   esac
18437 done
18438 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18439
18440   case $host_os in
18441   cygwin* | mingw* | pw32*)
18442     # FIXME: the MSVC++ port hasn't been tested in a loooong time
18443     # When not using gcc, we currently assume that we are using
18444     # Microsoft Visual C++.
18445     if test "$GCC" != yes; then
18446       with_gnu_ld=no
18447     fi
18448     ;;
18449   interix*)
18450     # we just hope/assume this is gcc and not c89 (= MSVC++)
18451     with_gnu_ld=yes
18452     ;;
18453   openbsd*)
18454     with_gnu_ld=no
18455     ;;
18456   esac
18457
18458   ld_shlibs_GCJ=yes
18459   if test "$with_gnu_ld" = yes; then
18460     # If archive_cmds runs LD, not CC, wlarc should be empty
18461     wlarc='${wl}'
18462
18463     # Set some defaults for GNU ld with shared library support. These
18464     # are reset later if shared libraries are not supported. Putting them
18465     # here allows them to be overridden if necessary.
18466     runpath_var=LD_RUN_PATH
18467     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
18468     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
18469     # ancient GNU ld didn't support --whole-archive et. al.
18470     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18471         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18472       else
18473         whole_archive_flag_spec_GCJ=
18474     fi
18475     supports_anon_versioning=no
18476     case `$LD -v 2>/dev/null` in
18477       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18478       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18479       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18480       *\ 2.11.*) ;; # other 2.11 versions
18481       *) supports_anon_versioning=yes ;;
18482     esac
18483
18484     # See if GNU ld supports shared libraries.
18485     case $host_os in
18486     aix3* | aix4* | aix5*)
18487       # On AIX/PPC, the GNU linker is very broken
18488       if test "$host_cpu" != ia64; then
18489         ld_shlibs_GCJ=no
18490         cat <<EOF 1>&2
18491
18492 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
18493 *** to be unable to reliably create shared libraries on AIX.
18494 *** Therefore, libtool is disabling shared libraries support.  If you
18495 *** really care for shared libraries, you may want to modify your PATH
18496 *** so that a non-GNU linker is found, and then restart.
18497
18498 EOF
18499       fi
18500       ;;
18501
18502     amigaos*)
18503       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)'
18504       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18505       hardcode_minus_L_GCJ=yes
18506
18507       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
18508       # that the semantics of dynamic libraries on AmigaOS, at least up
18509       # to version 4, is to share data among multiple programs linked
18510       # with the same dynamic library.  Since this doesn't match the
18511       # behavior of shared libraries on other platforms, we can't use
18512       # them.
18513       ld_shlibs_GCJ=no
18514       ;;
18515
18516     beos*)
18517       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18518         allow_undefined_flag_GCJ=unsupported
18519         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18520         # support --undefined.  This deserves some investigation.  FIXME
18521         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18522       else
18523         ld_shlibs_GCJ=no
18524       fi
18525       ;;
18526
18527     cygwin* | mingw* | pw32*)
18528       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18529       # as there is no search path for DLLs.
18530       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18531       allow_undefined_flag_GCJ=unsupported
18532       always_export_symbols_GCJ=no
18533       enable_shared_with_static_runtimes_GCJ=yes
18534       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
18535
18536       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18537         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18538         # If the export-symbols file already is a .def file (1st line
18539         # is EXPORTS), use it as is; otherwise, prepend...
18540         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18541           cp $export_symbols $output_objdir/$soname.def;
18542         else
18543           echo EXPORTS > $output_objdir/$soname.def;
18544           cat $export_symbols >> $output_objdir/$soname.def;
18545         fi~
18546         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18547       else
18548         ld_shlibs_GCJ=no
18549       fi
18550       ;;
18551
18552     interix3*)
18553       hardcode_direct_GCJ=no
18554       hardcode_shlibpath_var_GCJ=no
18555       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18556       export_dynamic_flag_spec_GCJ='${wl}-E'
18557       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18558       # Instead, shared libraries are loaded at an image base (0x10000000 by
18559       # default) and relocated if they conflict, which is a slow very memory
18560       # consuming and fragmenting process.  To avoid this, we pick a random,
18561       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18562       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
18563       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'
18564       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'
18565       ;;
18566
18567     linux* | k*bsd*-gnu)
18568       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18569         tmp_addflag=
18570         case $cc_basename,$host_cpu in
18571         pgcc*)                          # Portland Group C compiler
18572           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'
18573           tmp_addflag=' $pic_flag'
18574           ;;
18575         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
18576           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'
18577           tmp_addflag=' $pic_flag -Mnomain' ;;
18578         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
18579           tmp_addflag=' -i_dynamic' ;;
18580         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
18581           tmp_addflag=' -i_dynamic -nofor_main' ;;
18582         ifc* | ifort*)                  # Intel Fortran compiler
18583           tmp_addflag=' -nofor_main' ;;
18584         esac
18585         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18586
18587         if test $supports_anon_versioning = yes; then
18588           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18589   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18590   $echo "local: *; };" >> $output_objdir/$libname.ver~
18591           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18592         fi
18593         link_all_deplibs_GCJ=no
18594       else
18595         ld_shlibs_GCJ=no
18596       fi
18597       ;;
18598
18599     netbsd* | netbsdelf*-gnu)
18600       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18601         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18602         wlarc=
18603       else
18604         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18605         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18606       fi
18607       ;;
18608
18609     solaris*)
18610       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18611         ld_shlibs_GCJ=no
18612         cat <<EOF 1>&2
18613
18614 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
18615 *** create shared libraries on Solaris systems.  Therefore, libtool
18616 *** is disabling shared libraries support.  We urge you to upgrade GNU
18617 *** binutils to release 2.9.1 or newer.  Another option is to modify
18618 *** your PATH or compiler configuration so that the native linker is
18619 *** used, and then restart.
18620
18621 EOF
18622       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18623         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18624         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18625       else
18626         ld_shlibs_GCJ=no
18627       fi
18628       ;;
18629
18630     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18631       case `$LD -v 2>&1` in
18632         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18633         ld_shlibs_GCJ=no
18634         cat <<_LT_EOF 1>&2
18635
18636 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18637 *** reliably create shared libraries on SCO systems.  Therefore, libtool
18638 *** is disabling shared libraries support.  We urge you to upgrade GNU
18639 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
18640 *** your PATH or compiler configuration so that the native linker is
18641 *** used, and then restart.
18642
18643 _LT_EOF
18644         ;;
18645         *)
18646           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18647             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
18648             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
18649             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
18650           else
18651             ld_shlibs_GCJ=no
18652           fi
18653         ;;
18654       esac
18655       ;;
18656
18657     sunos4*)
18658       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18659       wlarc=
18660       hardcode_direct_GCJ=yes
18661       hardcode_shlibpath_var_GCJ=no
18662       ;;
18663
18664     *)
18665       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18666         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18667         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18668       else
18669         ld_shlibs_GCJ=no
18670       fi
18671       ;;
18672     esac
18673
18674     if test "$ld_shlibs_GCJ" = no; then
18675       runpath_var=
18676       hardcode_libdir_flag_spec_GCJ=
18677       export_dynamic_flag_spec_GCJ=
18678       whole_archive_flag_spec_GCJ=
18679     fi
18680   else
18681     # PORTME fill in a description of your system's linker (not GNU ld)
18682     case $host_os in
18683     aix3*)
18684       allow_undefined_flag_GCJ=unsupported
18685       always_export_symbols_GCJ=yes
18686       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'
18687       # Note: this linker hardcodes the directories in LIBPATH if there
18688       # are no directories specified by -L.
18689       hardcode_minus_L_GCJ=yes
18690       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18691         # Neither direct hardcoding nor static linking is supported with a
18692         # broken collect2.
18693         hardcode_direct_GCJ=unsupported
18694       fi
18695       ;;
18696
18697     aix4* | aix5*)
18698       if test "$host_cpu" = ia64; then
18699         # On IA64, the linker does run time linking by default, so we don't
18700         # have to do anything special.
18701         aix_use_runtimelinking=no
18702         exp_sym_flag='-Bexport'
18703         no_entry_flag=""
18704       else
18705         # If we're using GNU nm, then we don't want the "-C" option.
18706         # -C means demangle to AIX nm, but means don't demangle with GNU nm
18707         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18708           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'
18709         else
18710           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'
18711         fi
18712         aix_use_runtimelinking=no
18713
18714         # Test if we are trying to use run time linking or normal
18715         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18716         # need to do runtime linking.
18717         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18718           for ld_flag in $LDFLAGS; do
18719           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18720             aix_use_runtimelinking=yes
18721             break
18722           fi
18723           done
18724           ;;
18725         esac
18726
18727         exp_sym_flag='-bexport'
18728         no_entry_flag='-bnoentry'
18729       fi
18730
18731       # When large executables or shared objects are built, AIX ld can
18732       # have problems creating the table of contents.  If linking a library
18733       # or program results in "error TOC overflow" add -mminimal-toc to
18734       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18735       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18736
18737       archive_cmds_GCJ=''
18738       hardcode_direct_GCJ=yes
18739       hardcode_libdir_separator_GCJ=':'
18740       link_all_deplibs_GCJ=yes
18741
18742       if test "$GCC" = yes; then
18743         case $host_os in aix4.[012]|aix4.[012].*)
18744         # We only want to do this on AIX 4.2 and lower, the check
18745         # below for broken collect2 doesn't work under 4.3+
18746           collect2name=`${CC} -print-prog-name=collect2`
18747           if test -f "$collect2name" && \
18748            strings "$collect2name" | grep resolve_lib_name >/dev/null
18749           then
18750           # We have reworked collect2
18751           hardcode_direct_GCJ=yes
18752           else
18753           # We have old collect2
18754           hardcode_direct_GCJ=unsupported
18755           # It fails to find uninstalled libraries when the uninstalled
18756           # path is not listed in the libpath.  Setting hardcode_minus_L
18757           # to unsupported forces relinking
18758           hardcode_minus_L_GCJ=yes
18759           hardcode_libdir_flag_spec_GCJ='-L$libdir'
18760           hardcode_libdir_separator_GCJ=
18761           fi
18762           ;;
18763         esac
18764         shared_flag='-shared'
18765         if test "$aix_use_runtimelinking" = yes; then
18766           shared_flag="$shared_flag "'${wl}-G'
18767         fi
18768       else
18769         # not using gcc
18770         if test "$host_cpu" = ia64; then
18771         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18772         # chokes on -Wl,-G. The following line is correct:
18773           shared_flag='-G'
18774         else
18775           if test "$aix_use_runtimelinking" = yes; then
18776             shared_flag='${wl}-G'
18777           else
18778             shared_flag='${wl}-bM:SRE'
18779           fi
18780         fi
18781       fi
18782
18783       # It seems that -bexpall does not export symbols beginning with
18784       # underscore (_), so it is better to generate a list of symbols to export.
18785       always_export_symbols_GCJ=yes
18786       if test "$aix_use_runtimelinking" = yes; then
18787         # Warning - without using the other runtime loading flags (-brtl),
18788         # -berok will link without error, but may produce a broken library.
18789         allow_undefined_flag_GCJ='-berok'
18790        # Determine the default libpath from the value encoded in an empty executable.
18791        cat >conftest.$ac_ext <<_ACEOF
18792 /* confdefs.h.  */
18793 _ACEOF
18794 cat confdefs.h >>conftest.$ac_ext
18795 cat >>conftest.$ac_ext <<_ACEOF
18796 /* end confdefs.h.  */
18797
18798 int
18799 main ()
18800 {
18801
18802   ;
18803   return 0;
18804 }
18805 _ACEOF
18806 rm -f conftest.$ac_objext conftest$ac_exeext
18807 if { (ac_try="$ac_link"
18808 case "(($ac_try" in
18809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18810   *) ac_try_echo=$ac_try;;
18811 esac
18812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18813   (eval "$ac_link") 2>conftest.er1
18814   ac_status=$?
18815   grep -v '^ *+' conftest.er1 >conftest.err
18816   rm -f conftest.er1
18817   cat conftest.err >&5
18818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18819   (exit $ac_status); } &&
18820          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18821   { (case "(($ac_try" in
18822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18823   *) ac_try_echo=$ac_try;;
18824 esac
18825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18826   (eval "$ac_try") 2>&5
18827   ac_status=$?
18828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18829   (exit $ac_status); }; } &&
18830          { ac_try='test -s conftest$ac_exeext'
18831   { (case "(($ac_try" in
18832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18833   *) ac_try_echo=$ac_try;;
18834 esac
18835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18836   (eval "$ac_try") 2>&5
18837   ac_status=$?
18838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18839   (exit $ac_status); }; }; then
18840
18841 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18842 }'`
18843 # Check for a 64-bit object if we didn't find anything.
18844 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18845 }'`; fi
18846 else
18847   echo "$as_me: failed program was:" >&5
18848 sed 's/^/| /' conftest.$ac_ext >&5
18849
18850
18851 fi
18852
18853 rm -f core conftest.err conftest.$ac_objext \
18854       conftest$ac_exeext conftest.$ac_ext
18855 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18856
18857        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18858         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"
18859        else
18860         if test "$host_cpu" = ia64; then
18861           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18862           allow_undefined_flag_GCJ="-z nodefs"
18863           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"
18864         else
18865          # Determine the default libpath from the value encoded in an empty executable.
18866          cat >conftest.$ac_ext <<_ACEOF
18867 /* confdefs.h.  */
18868 _ACEOF
18869 cat confdefs.h >>conftest.$ac_ext
18870 cat >>conftest.$ac_ext <<_ACEOF
18871 /* end confdefs.h.  */
18872
18873 int
18874 main ()
18875 {
18876
18877   ;
18878   return 0;
18879 }
18880 _ACEOF
18881 rm -f conftest.$ac_objext conftest$ac_exeext
18882 if { (ac_try="$ac_link"
18883 case "(($ac_try" in
18884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18885   *) ac_try_echo=$ac_try;;
18886 esac
18887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18888   (eval "$ac_link") 2>conftest.er1
18889   ac_status=$?
18890   grep -v '^ *+' conftest.er1 >conftest.err
18891   rm -f conftest.er1
18892   cat conftest.err >&5
18893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18894   (exit $ac_status); } &&
18895          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18896   { (case "(($ac_try" in
18897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18898   *) ac_try_echo=$ac_try;;
18899 esac
18900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18901   (eval "$ac_try") 2>&5
18902   ac_status=$?
18903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18904   (exit $ac_status); }; } &&
18905          { ac_try='test -s conftest$ac_exeext'
18906   { (case "(($ac_try" in
18907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18908   *) ac_try_echo=$ac_try;;
18909 esac
18910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18911   (eval "$ac_try") 2>&5
18912   ac_status=$?
18913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18914   (exit $ac_status); }; }; then
18915
18916 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18917 }'`
18918 # Check for a 64-bit object if we didn't find anything.
18919 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18920 }'`; fi
18921 else
18922   echo "$as_me: failed program was:" >&5
18923 sed 's/^/| /' conftest.$ac_ext >&5
18924
18925
18926 fi
18927
18928 rm -f core conftest.err conftest.$ac_objext \
18929       conftest$ac_exeext conftest.$ac_ext
18930 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18931
18932          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18933           # Warning - without using the other run time loading flags,
18934           # -berok will link without error, but may produce a broken library.
18935           no_undefined_flag_GCJ=' ${wl}-bernotok'
18936           allow_undefined_flag_GCJ=' ${wl}-berok'
18937           # Exported symbols can be pulled into shared objects from archives
18938           whole_archive_flag_spec_GCJ='$convenience'
18939           archive_cmds_need_lc_GCJ=yes
18940           # This is similar to how AIX traditionally builds its shared libraries.
18941           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'
18942         fi
18943       fi
18944       ;;
18945
18946     amigaos*)
18947       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)'
18948       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18949       hardcode_minus_L_GCJ=yes
18950       # see comment about different semantics on the GNU ld section
18951       ld_shlibs_GCJ=no
18952       ;;
18953
18954     bsdi[45]*)
18955       export_dynamic_flag_spec_GCJ=-rdynamic
18956       ;;
18957
18958     cygwin* | mingw* | pw32*)
18959       # When not using gcc, we currently assume that we are using
18960       # Microsoft Visual C++.
18961       # hardcode_libdir_flag_spec is actually meaningless, as there is
18962       # no search path for DLLs.
18963       hardcode_libdir_flag_spec_GCJ=' '
18964       allow_undefined_flag_GCJ=unsupported
18965       # Tell ltmain to make .lib files, not .a files.
18966       libext=lib
18967       # Tell ltmain to make .dll files, not .so files.
18968       shrext_cmds=".dll"
18969       # FIXME: Setting linknames here is a bad hack.
18970       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18971       # The linker will automatically build a .lib file if we build a DLL.
18972       old_archive_From_new_cmds_GCJ='true'
18973       # FIXME: Should let the user specify the lib program.
18974       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
18975       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18976       enable_shared_with_static_runtimes_GCJ=yes
18977       ;;
18978
18979     darwin* | rhapsody*)
18980       case $host_os in
18981         rhapsody* | darwin1.[012])
18982          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18983          ;;
18984        *) # Darwin 1.3 on
18985          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18986            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18987          else
18988            case ${MACOSX_DEPLOYMENT_TARGET} in
18989              10.[012])
18990                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18991                ;;
18992              10.*)
18993                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18994                ;;
18995            esac
18996          fi
18997          ;;
18998       esac
18999       archive_cmds_need_lc_GCJ=no
19000       hardcode_direct_GCJ=no
19001       hardcode_automatic_GCJ=yes
19002       hardcode_shlibpath_var_GCJ=unsupported
19003       whole_archive_flag_spec_GCJ=''
19004       link_all_deplibs_GCJ=yes
19005     if test "$GCC" = yes ; then
19006         output_verbose_link_cmd='echo'
19007         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19008       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19009       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19010       archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19011       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}'
19012     else
19013       case $cc_basename in
19014         xlc*)
19015          output_verbose_link_cmd='echo'
19016          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19017          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19018           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19019          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19020           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}'
19021           ;;
19022        *)
19023          ld_shlibs_GCJ=no
19024           ;;
19025       esac
19026     fi
19027       ;;
19028
19029     dgux*)
19030       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19031       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19032       hardcode_shlibpath_var_GCJ=no
19033       ;;
19034
19035     freebsd1*)
19036       ld_shlibs_GCJ=no
19037       ;;
19038
19039     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19040     # support.  Future versions do this automatically, but an explicit c++rt0.o
19041     # does not break anything, and helps significantly (at the cost of a little
19042     # extra space).
19043     freebsd2.2*)
19044       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19045       hardcode_libdir_flag_spec_GCJ='-R$libdir'
19046       hardcode_direct_GCJ=yes
19047       hardcode_shlibpath_var_GCJ=no
19048       ;;
19049
19050     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19051     freebsd2*)
19052       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19053       hardcode_direct_GCJ=yes
19054       hardcode_minus_L_GCJ=yes
19055       hardcode_shlibpath_var_GCJ=no
19056       ;;
19057
19058     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19059     freebsd* | dragonfly*)
19060       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19061       hardcode_libdir_flag_spec_GCJ='-R$libdir'
19062       hardcode_direct_GCJ=yes
19063       hardcode_shlibpath_var_GCJ=no
19064       ;;
19065
19066     hpux9*)
19067       if test "$GCC" = yes; then
19068         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'
19069       else
19070         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'
19071       fi
19072       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19073       hardcode_libdir_separator_GCJ=:
19074       hardcode_direct_GCJ=yes
19075
19076       # hardcode_minus_L: Not really in the search PATH,
19077       # but as the default location of the library.
19078       hardcode_minus_L_GCJ=yes
19079       export_dynamic_flag_spec_GCJ='${wl}-E'
19080       ;;
19081
19082     hpux10*)
19083       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19084         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19085       else
19086         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19087       fi
19088       if test "$with_gnu_ld" = no; then
19089         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19090         hardcode_libdir_separator_GCJ=:
19091
19092         hardcode_direct_GCJ=yes
19093         export_dynamic_flag_spec_GCJ='${wl}-E'
19094
19095         # hardcode_minus_L: Not really in the search PATH,
19096         # but as the default location of the library.
19097         hardcode_minus_L_GCJ=yes
19098       fi
19099       ;;
19100
19101     hpux11*)
19102       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19103         case $host_cpu in
19104         hppa*64*)
19105           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19106           ;;
19107         ia64*)
19108           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19109           ;;
19110         *)
19111           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19112           ;;
19113         esac
19114       else
19115         case $host_cpu in
19116         hppa*64*)
19117           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19118           ;;
19119         ia64*)
19120           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19121           ;;
19122         *)
19123           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19124           ;;
19125         esac
19126       fi
19127       if test "$with_gnu_ld" = no; then
19128         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19129         hardcode_libdir_separator_GCJ=:
19130
19131         case $host_cpu in
19132         hppa*64*|ia64*)
19133           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
19134           hardcode_direct_GCJ=no
19135           hardcode_shlibpath_var_GCJ=no
19136           ;;
19137         *)
19138           hardcode_direct_GCJ=yes
19139           export_dynamic_flag_spec_GCJ='${wl}-E'
19140
19141           # hardcode_minus_L: Not really in the search PATH,
19142           # but as the default location of the library.
19143           hardcode_minus_L_GCJ=yes
19144           ;;
19145         esac
19146       fi
19147       ;;
19148
19149     irix5* | irix6* | nonstopux*)
19150       if test "$GCC" = yes; then
19151         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'
19152       else
19153         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'
19154         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
19155       fi
19156       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19157       hardcode_libdir_separator_GCJ=:
19158       link_all_deplibs_GCJ=yes
19159       ;;
19160
19161     netbsd* | netbsdelf*-gnu)
19162       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19163         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
19164       else
19165         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
19166       fi
19167       hardcode_libdir_flag_spec_GCJ='-R$libdir'
19168       hardcode_direct_GCJ=yes
19169       hardcode_shlibpath_var_GCJ=no
19170       ;;
19171
19172     newsos6)
19173       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19174       hardcode_direct_GCJ=yes
19175       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19176       hardcode_libdir_separator_GCJ=:
19177       hardcode_shlibpath_var_GCJ=no
19178       ;;
19179
19180     openbsd*)
19181       hardcode_direct_GCJ=yes
19182       hardcode_shlibpath_var_GCJ=no
19183       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19184         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19185         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19186         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19187         export_dynamic_flag_spec_GCJ='${wl}-E'
19188       else
19189        case $host_os in
19190          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19191            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19192            hardcode_libdir_flag_spec_GCJ='-R$libdir'
19193            ;;
19194          *)
19195            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19196            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19197            ;;
19198        esac
19199       fi
19200       ;;
19201
19202     os2*)
19203       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19204       hardcode_minus_L_GCJ=yes
19205       allow_undefined_flag_GCJ=unsupported
19206       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'
19207       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19208       ;;
19209
19210     osf3*)
19211       if test "$GCC" = yes; then
19212         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19213         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'
19214       else
19215         allow_undefined_flag_GCJ=' -expect_unresolved \*'
19216         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'
19217       fi
19218       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19219       hardcode_libdir_separator_GCJ=:
19220       ;;
19221
19222     osf4* | osf5*)      # as osf3* with the addition of -msym flag
19223       if test "$GCC" = yes; then
19224         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19225         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'
19226         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19227       else
19228         allow_undefined_flag_GCJ=' -expect_unresolved \*'
19229         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'
19230         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~
19231         $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'
19232
19233         # Both c and cxx compiler support -rpath directly
19234         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
19235       fi
19236       hardcode_libdir_separator_GCJ=:
19237       ;;
19238
19239     solaris*)
19240       no_undefined_flag_GCJ=' -z text'
19241       if test "$GCC" = yes; then
19242         wlarc='${wl}'
19243         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19244         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19245           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19246       else
19247         wlarc=''
19248         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19249         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19250         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19251       fi
19252       hardcode_libdir_flag_spec_GCJ='-R$libdir'
19253       hardcode_shlibpath_var_GCJ=no
19254       case $host_os in
19255       solaris2.[0-5] | solaris2.[0-5].*) ;;
19256       *)
19257         # The compiler driver will combine linker options so we
19258         # cannot just pass the convience library names through
19259         # without $wl, iff we do not link with $LD.
19260         # Luckily, gcc supports the same syntax we need for Sun Studio.
19261         # Supported since Solaris 2.6 (maybe 2.5.1?)
19262         case $wlarc in
19263         '')
19264           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
19265         *)
19266           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
19267         esac ;;
19268       esac
19269       link_all_deplibs_GCJ=yes
19270       ;;
19271
19272     sunos4*)
19273       if test "x$host_vendor" = xsequent; then
19274         # Use $CC to link under sequent, because it throws in some extra .o
19275         # files that make .init and .fini sections work.
19276         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19277       else
19278         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19279       fi
19280       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19281       hardcode_direct_GCJ=yes
19282       hardcode_minus_L_GCJ=yes
19283       hardcode_shlibpath_var_GCJ=no
19284       ;;
19285
19286     sysv4)
19287       case $host_vendor in
19288         sni)
19289           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19290           hardcode_direct_GCJ=yes # is this really true???
19291         ;;
19292         siemens)
19293           ## LD is ld it makes a PLAMLIB
19294           ## CC just makes a GrossModule.
19295           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19296           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
19297           hardcode_direct_GCJ=no
19298         ;;
19299         motorola)
19300           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19301           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
19302         ;;
19303       esac
19304       runpath_var='LD_RUN_PATH'
19305       hardcode_shlibpath_var_GCJ=no
19306       ;;
19307
19308     sysv4.3*)
19309       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19310       hardcode_shlibpath_var_GCJ=no
19311       export_dynamic_flag_spec_GCJ='-Bexport'
19312       ;;
19313
19314     sysv4*MP*)
19315       if test -d /usr/nec; then
19316         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19317         hardcode_shlibpath_var_GCJ=no
19318         runpath_var=LD_RUN_PATH
19319         hardcode_runpath_var=yes
19320         ld_shlibs_GCJ=yes
19321       fi
19322       ;;
19323
19324     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
19325       no_undefined_flag_GCJ='${wl}-z,text'
19326       archive_cmds_need_lc_GCJ=no
19327       hardcode_shlibpath_var_GCJ=no
19328       runpath_var='LD_RUN_PATH'
19329
19330       if test "$GCC" = yes; then
19331         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19332         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19333       else
19334         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19335         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19336       fi
19337       ;;
19338
19339     sysv5* | sco3.2v5* | sco5v6*)
19340       # Note: We can NOT use -z defs as we might desire, because we do not
19341       # link with -lc, and that would cause any symbols used from libc to
19342       # always be unresolved, which means just about no library would
19343       # ever link correctly.  If we're not using GNU ld we use -z text
19344       # though, which does catch some bad symbols but isn't as heavy-handed
19345       # as -z defs.
19346       no_undefined_flag_GCJ='${wl}-z,text'
19347       allow_undefined_flag_GCJ='${wl}-z,nodefs'
19348       archive_cmds_need_lc_GCJ=no
19349       hardcode_shlibpath_var_GCJ=no
19350       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19351       hardcode_libdir_separator_GCJ=':'
19352       link_all_deplibs_GCJ=yes
19353       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
19354       runpath_var='LD_RUN_PATH'
19355
19356       if test "$GCC" = yes; then
19357         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19358         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19359       else
19360         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19361         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19362       fi
19363       ;;
19364
19365     uts4*)
19366       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19367       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19368       hardcode_shlibpath_var_GCJ=no
19369       ;;
19370
19371     *)
19372       ld_shlibs_GCJ=no
19373       ;;
19374     esac
19375   fi
19376
19377 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
19378 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
19379 test "$ld_shlibs_GCJ" = no && can_build_shared=no
19380
19381 #
19382 # Do we need to explicitly link libc?
19383 #
19384 case "x$archive_cmds_need_lc_GCJ" in
19385 x|xyes)
19386   # Assume -lc should be added
19387   archive_cmds_need_lc_GCJ=yes
19388
19389   if test "$enable_shared" = yes && test "$GCC" = yes; then
19390     case $archive_cmds_GCJ in
19391     *'~'*)
19392       # FIXME: we may have to deal with multi-command sequences.
19393       ;;
19394     '$CC '*)
19395       # Test whether the compiler implicitly links with -lc since on some
19396       # systems, -lgcc has to come before -lc. If gcc already passes -lc
19397       # to ld, don't add -lc before -lgcc.
19398       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19399 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19400       $rm conftest*
19401       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19402
19403       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19404   (eval $ac_compile) 2>&5
19405   ac_status=$?
19406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19407   (exit $ac_status); } 2>conftest.err; then
19408         soname=conftest
19409         lib=conftest
19410         libobjs=conftest.$ac_objext
19411         deplibs=
19412         wl=$lt_prog_compiler_wl_GCJ
19413         pic_flag=$lt_prog_compiler_pic_GCJ
19414         compiler_flags=-v
19415         linker_flags=-v
19416         verstring=
19417         output_objdir=.
19418         libname=conftest
19419         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
19420         allow_undefined_flag_GCJ=
19421         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19422   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19423   ac_status=$?
19424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19425   (exit $ac_status); }
19426         then
19427           archive_cmds_need_lc_GCJ=no
19428         else
19429           archive_cmds_need_lc_GCJ=yes
19430         fi
19431         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
19432       else
19433         cat conftest.err 1>&5
19434       fi
19435       $rm conftest*
19436       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
19437 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
19438       ;;
19439     esac
19440   fi
19441   ;;
19442 esac
19443
19444 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19445 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19446 library_names_spec=
19447 libname_spec='lib$name'
19448 soname_spec=
19449 shrext_cmds=".so"
19450 postinstall_cmds=
19451 postuninstall_cmds=
19452 finish_cmds=
19453 finish_eval=
19454 shlibpath_var=
19455 shlibpath_overrides_runpath=unknown
19456 version_type=none
19457 dynamic_linker="$host_os ld.so"
19458 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19459 if test "$GCC" = yes; then
19460   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19461   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19462     # if the path contains ";" then we assume it to be the separator
19463     # otherwise default to the standard path separator (i.e. ":") - it is
19464     # assumed that no part of a normal pathname contains ";" but that should
19465     # okay in the real world where ";" in dirpaths is itself problematic.
19466     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19467   else
19468     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19469   fi
19470 else
19471   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19472 fi
19473 need_lib_prefix=unknown
19474 hardcode_into_libs=no
19475
19476 # when you set need_version to no, make sure it does not cause -set_version
19477 # flags to be left without arguments
19478 need_version=unknown
19479
19480 case $host_os in
19481 aix3*)
19482   version_type=linux
19483   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19484   shlibpath_var=LIBPATH
19485
19486   # AIX 3 has no versioning support, so we append a major version to the name.
19487   soname_spec='${libname}${release}${shared_ext}$major'
19488   ;;
19489
19490 aix4* | aix5*)
19491   version_type=linux
19492   need_lib_prefix=no
19493   need_version=no
19494   hardcode_into_libs=yes
19495   if test "$host_cpu" = ia64; then
19496     # AIX 5 supports IA64
19497     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19498     shlibpath_var=LD_LIBRARY_PATH
19499   else
19500     # With GCC up to 2.95.x, collect2 would create an import file
19501     # for dependence libraries.  The import file would start with
19502     # the line `#! .'.  This would cause the generated library to
19503     # depend on `.', always an invalid library.  This was fixed in
19504     # development snapshots of GCC prior to 3.0.
19505     case $host_os in
19506       aix4 | aix4.[01] | aix4.[01].*)
19507       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19508            echo ' yes '
19509            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19510         :
19511       else
19512         can_build_shared=no
19513       fi
19514       ;;
19515     esac
19516     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19517     # soname into executable. Probably we can add versioning support to
19518     # collect2, so additional links can be useful in future.
19519     if test "$aix_use_runtimelinking" = yes; then
19520       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19521       # instead of lib<name>.a to let people know that these are not
19522       # typical AIX shared libraries.
19523       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19524     else
19525       # We preserve .a as extension for shared libraries through AIX4.2
19526       # and later when we are not doing run time linking.
19527       library_names_spec='${libname}${release}.a $libname.a'
19528       soname_spec='${libname}${release}${shared_ext}$major'
19529     fi
19530     shlibpath_var=LIBPATH
19531   fi
19532   ;;
19533
19534 amigaos*)
19535   library_names_spec='$libname.ixlibrary $libname.a'
19536   # Create ${libname}_ixlibrary.a entries in /sys/libs.
19537   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'
19538   ;;
19539
19540 beos*)
19541   library_names_spec='${libname}${shared_ext}'
19542   dynamic_linker="$host_os ld.so"
19543   shlibpath_var=LIBRARY_PATH
19544   ;;
19545
19546 bsdi[45]*)
19547   version_type=linux
19548   need_version=no
19549   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19550   soname_spec='${libname}${release}${shared_ext}$major'
19551   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19552   shlibpath_var=LD_LIBRARY_PATH
19553   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19554   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19555   # the default ld.so.conf also contains /usr/contrib/lib and
19556   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19557   # libtool to hard-code these into programs
19558   ;;
19559
19560 cygwin* | mingw* | pw32*)
19561   version_type=windows
19562   shrext_cmds=".dll"
19563   need_version=no
19564   need_lib_prefix=no
19565
19566   case $GCC,$host_os in
19567   yes,cygwin* | yes,mingw* | yes,pw32*)
19568     library_names_spec='$libname.dll.a'
19569     # DLL is installed to $(libdir)/../bin by postinstall_cmds
19570     postinstall_cmds='base_file=`basename \${file}`~
19571       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19572       dldir=$destdir/`dirname \$dlpath`~
19573       test -d \$dldir || mkdir -p \$dldir~
19574       $install_prog $dir/$dlname \$dldir/$dlname~
19575       chmod a+x \$dldir/$dlname'
19576     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19577       dlpath=$dir/\$dldll~
19578        $rm \$dlpath'
19579     shlibpath_overrides_runpath=yes
19580
19581     case $host_os in
19582     cygwin*)
19583       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19584       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19585       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19586       ;;
19587     mingw*)
19588       # MinGW DLLs use traditional 'lib' prefix
19589       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19590       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19591       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19592         # It is most probably a Windows format PATH printed by
19593         # mingw gcc, but we are running on Cygwin. Gcc prints its search
19594         # path with ; separators, and with drive letters. We can handle the
19595         # drive letters (cygwin fileutils understands them), so leave them,
19596         # especially as we might pass files found there to a mingw objdump,
19597         # which wouldn't understand a cygwinified path. Ahh.
19598         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19599       else
19600         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19601       fi
19602       ;;
19603     pw32*)
19604       # pw32 DLLs use 'pw' prefix rather than 'lib'
19605       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19606       ;;
19607     esac
19608     ;;
19609
19610   *)
19611     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19612     ;;
19613   esac
19614   dynamic_linker='Win32 ld.exe'
19615   # FIXME: first we should search . and the directory the executable is in
19616   shlibpath_var=PATH
19617   ;;
19618
19619 darwin* | rhapsody*)
19620   dynamic_linker="$host_os dyld"
19621   version_type=darwin
19622   need_lib_prefix=no
19623   need_version=no
19624   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19625   soname_spec='${libname}${release}${major}$shared_ext'
19626   shlibpath_overrides_runpath=yes
19627   shlibpath_var=DYLD_LIBRARY_PATH
19628   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19629   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19630   if test "$GCC" = yes; then
19631     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
19632   else
19633     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
19634   fi
19635   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19636   ;;
19637
19638 dgux*)
19639   version_type=linux
19640   need_lib_prefix=no
19641   need_version=no
19642   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19643   soname_spec='${libname}${release}${shared_ext}$major'
19644   shlibpath_var=LD_LIBRARY_PATH
19645   ;;
19646
19647 freebsd1*)
19648   dynamic_linker=no
19649   ;;
19650
19651 freebsd* | dragonfly*)
19652   # DragonFly does not have aout.  When/if they implement a new
19653   # versioning mechanism, adjust this.
19654   if test -x /usr/bin/objformat; then
19655     objformat=`/usr/bin/objformat`
19656   else
19657     case $host_os in
19658     freebsd[123]*) objformat=aout ;;
19659     *) objformat=elf ;;
19660     esac
19661   fi
19662   version_type=freebsd-$objformat
19663   case $version_type in
19664     freebsd-elf*)
19665       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19666       need_version=no
19667       need_lib_prefix=no
19668       ;;
19669     freebsd-*)
19670       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19671       need_version=yes
19672       ;;
19673   esac
19674   shlibpath_var=LD_LIBRARY_PATH
19675   case $host_os in
19676   freebsd2*)
19677     shlibpath_overrides_runpath=yes
19678     ;;
19679   freebsd3.[01]* | freebsdelf3.[01]*)
19680     shlibpath_overrides_runpath=yes
19681     hardcode_into_libs=yes
19682     ;;
19683   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19684   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19685     shlibpath_overrides_runpath=no
19686     hardcode_into_libs=yes
19687     ;;
19688   freebsd*) # from 4.6 on
19689     shlibpath_overrides_runpath=yes
19690     hardcode_into_libs=yes
19691     ;;
19692   esac
19693   ;;
19694
19695 gnu*)
19696   version_type=linux
19697   need_lib_prefix=no
19698   need_version=no
19699   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19700   soname_spec='${libname}${release}${shared_ext}$major'
19701   shlibpath_var=LD_LIBRARY_PATH
19702   hardcode_into_libs=yes
19703   ;;
19704
19705 hpux9* | hpux10* | hpux11*)
19706   # Give a soname corresponding to the major version so that dld.sl refuses to
19707   # link against other versions.
19708   version_type=sunos
19709   need_lib_prefix=no
19710   need_version=no
19711   case $host_cpu in
19712   ia64*)
19713     shrext_cmds='.so'
19714     hardcode_into_libs=yes
19715     dynamic_linker="$host_os dld.so"
19716     shlibpath_var=LD_LIBRARY_PATH
19717     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19718     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19719     soname_spec='${libname}${release}${shared_ext}$major'
19720     if test "X$HPUX_IA64_MODE" = X32; then
19721       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19722     else
19723       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19724     fi
19725     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19726     ;;
19727    hppa*64*)
19728      shrext_cmds='.sl'
19729      hardcode_into_libs=yes
19730      dynamic_linker="$host_os dld.sl"
19731      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19732      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19733      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19734      soname_spec='${libname}${release}${shared_ext}$major'
19735      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19736      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19737      ;;
19738    *)
19739     shrext_cmds='.sl'
19740     dynamic_linker="$host_os dld.sl"
19741     shlibpath_var=SHLIB_PATH
19742     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19743     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19744     soname_spec='${libname}${release}${shared_ext}$major'
19745     ;;
19746   esac
19747   # HP-UX runs *really* slowly unless shared libraries are mode 555.
19748   postinstall_cmds='chmod 555 $lib'
19749   ;;
19750
19751 interix3*)
19752   version_type=linux
19753   need_lib_prefix=no
19754   need_version=no
19755   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19756   soname_spec='${libname}${release}${shared_ext}$major'
19757   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19758   shlibpath_var=LD_LIBRARY_PATH
19759   shlibpath_overrides_runpath=no
19760   hardcode_into_libs=yes
19761   ;;
19762
19763 irix5* | irix6* | nonstopux*)
19764   case $host_os in
19765     nonstopux*) version_type=nonstopux ;;
19766     *)
19767         if test "$lt_cv_prog_gnu_ld" = yes; then
19768                 version_type=linux
19769         else
19770                 version_type=irix
19771         fi ;;
19772   esac
19773   need_lib_prefix=no
19774   need_version=no
19775   soname_spec='${libname}${release}${shared_ext}$major'
19776   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19777   case $host_os in
19778   irix5* | nonstopux*)
19779     libsuff= shlibsuff=
19780     ;;
19781   *)
19782     case $LD in # libtool.m4 will add one of these switches to LD
19783     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19784       libsuff= shlibsuff= libmagic=32-bit;;
19785     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19786       libsuff=32 shlibsuff=N32 libmagic=N32;;
19787     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19788       libsuff=64 shlibsuff=64 libmagic=64-bit;;
19789     *) libsuff= shlibsuff= libmagic=never-match;;
19790     esac
19791     ;;
19792   esac
19793   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19794   shlibpath_overrides_runpath=no
19795   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19796   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19797   hardcode_into_libs=yes
19798   ;;
19799
19800 # No shared lib support for Linux oldld, aout, or coff.
19801 linux*oldld* | linux*aout* | linux*coff*)
19802   dynamic_linker=no
19803   ;;
19804
19805 # This must be Linux ELF.
19806 linux* | k*bsd*-gnu)
19807   version_type=linux
19808   need_lib_prefix=no
19809   need_version=no
19810   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19811   soname_spec='${libname}${release}${shared_ext}$major'
19812   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19813   shlibpath_var=LD_LIBRARY_PATH
19814   shlibpath_overrides_runpath=no
19815   # This implies no fast_install, which is unacceptable.
19816   # Some rework will be needed to allow for fast_install
19817   # before this can be enabled.
19818   hardcode_into_libs=yes
19819
19820   # Append ld.so.conf contents to the search path
19821   if test -f /etc/ld.so.conf; then
19822     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
19823     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19824   fi
19825
19826   # We used to test for /lib/ld.so.1 and disable shared libraries on
19827   # powerpc, because MkLinux only supported shared libraries with the
19828   # GNU dynamic linker.  Since this was broken with cross compilers,
19829   # most powerpc-linux boxes support dynamic linking these days and
19830   # people can always --disable-shared, the test was removed, and we
19831   # assume the GNU/Linux dynamic linker is in use.
19832   dynamic_linker='GNU/Linux ld.so'
19833   ;;
19834
19835 netbsdelf*-gnu)
19836   version_type=linux
19837   need_lib_prefix=no
19838   need_version=no
19839   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19840   soname_spec='${libname}${release}${shared_ext}$major'
19841   shlibpath_var=LD_LIBRARY_PATH
19842   shlibpath_overrides_runpath=no
19843   hardcode_into_libs=yes
19844   dynamic_linker='NetBSD ld.elf_so'
19845   ;;
19846
19847 netbsd*)
19848   version_type=sunos
19849   need_lib_prefix=no
19850   need_version=no
19851   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19852     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19853     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19854     dynamic_linker='NetBSD (a.out) ld.so'
19855   else
19856     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19857     soname_spec='${libname}${release}${shared_ext}$major'
19858     dynamic_linker='NetBSD ld.elf_so'
19859   fi
19860   shlibpath_var=LD_LIBRARY_PATH
19861   shlibpath_overrides_runpath=yes
19862   hardcode_into_libs=yes
19863   ;;
19864
19865 newsos6)
19866   version_type=linux
19867   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19868   shlibpath_var=LD_LIBRARY_PATH
19869   shlibpath_overrides_runpath=yes
19870   ;;
19871
19872 nto-qnx*)
19873   version_type=linux
19874   need_lib_prefix=no
19875   need_version=no
19876   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19877   soname_spec='${libname}${release}${shared_ext}$major'
19878   shlibpath_var=LD_LIBRARY_PATH
19879   shlibpath_overrides_runpath=yes
19880   ;;
19881
19882 openbsd*)
19883   version_type=sunos
19884   sys_lib_dlsearch_path_spec="/usr/lib"
19885   need_lib_prefix=no
19886   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19887   case $host_os in
19888     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19889     *)                         need_version=no  ;;
19890   esac
19891   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19892   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19893   shlibpath_var=LD_LIBRARY_PATH
19894   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19895     case $host_os in
19896       openbsd2.[89] | openbsd2.[89].*)
19897         shlibpath_overrides_runpath=no
19898         ;;
19899       *)
19900         shlibpath_overrides_runpath=yes
19901         ;;
19902       esac
19903   else
19904     shlibpath_overrides_runpath=yes
19905   fi
19906   ;;
19907
19908 os2*)
19909   libname_spec='$name'
19910   shrext_cmds=".dll"
19911   need_lib_prefix=no
19912   library_names_spec='$libname${shared_ext} $libname.a'
19913   dynamic_linker='OS/2 ld.exe'
19914   shlibpath_var=LIBPATH
19915   ;;
19916
19917 osf3* | osf4* | osf5*)
19918   version_type=osf
19919   need_lib_prefix=no
19920   need_version=no
19921   soname_spec='${libname}${release}${shared_ext}$major'
19922   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19923   shlibpath_var=LD_LIBRARY_PATH
19924   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19925   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19926   ;;
19927
19928 solaris*)
19929   version_type=linux
19930   need_lib_prefix=no
19931   need_version=no
19932   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19933   soname_spec='${libname}${release}${shared_ext}$major'
19934   shlibpath_var=LD_LIBRARY_PATH
19935   shlibpath_overrides_runpath=yes
19936   hardcode_into_libs=yes
19937   # ldd complains unless libraries are executable
19938   postinstall_cmds='chmod +x $lib'
19939   ;;
19940
19941 sunos4*)
19942   version_type=sunos
19943   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19944   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19945   shlibpath_var=LD_LIBRARY_PATH
19946   shlibpath_overrides_runpath=yes
19947   if test "$with_gnu_ld" = yes; then
19948     need_lib_prefix=no
19949   fi
19950   need_version=yes
19951   ;;
19952
19953 sysv4 | sysv4.3*)
19954   version_type=linux
19955   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19956   soname_spec='${libname}${release}${shared_ext}$major'
19957   shlibpath_var=LD_LIBRARY_PATH
19958   case $host_vendor in
19959     sni)
19960       shlibpath_overrides_runpath=no
19961       need_lib_prefix=no
19962       export_dynamic_flag_spec='${wl}-Blargedynsym'
19963       runpath_var=LD_RUN_PATH
19964       ;;
19965     siemens)
19966       need_lib_prefix=no
19967       ;;
19968     motorola)
19969       need_lib_prefix=no
19970       need_version=no
19971       shlibpath_overrides_runpath=no
19972       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19973       ;;
19974   esac
19975   ;;
19976
19977 sysv4*MP*)
19978   if test -d /usr/nec ;then
19979     version_type=linux
19980     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19981     soname_spec='$libname${shared_ext}.$major'
19982     shlibpath_var=LD_LIBRARY_PATH
19983   fi
19984   ;;
19985
19986 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19987   version_type=freebsd-elf
19988   need_lib_prefix=no
19989   need_version=no
19990   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19991   soname_spec='${libname}${release}${shared_ext}$major'
19992   shlibpath_var=LD_LIBRARY_PATH
19993   hardcode_into_libs=yes
19994   if test "$with_gnu_ld" = yes; then
19995     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19996     shlibpath_overrides_runpath=no
19997   else
19998     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19999     shlibpath_overrides_runpath=yes
20000     case $host_os in
20001       sco3.2v5*)
20002         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20003         ;;
20004     esac
20005   fi
20006   sys_lib_dlsearch_path_spec='/usr/lib'
20007   ;;
20008
20009 uts4*)
20010   version_type=linux
20011   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20012   soname_spec='${libname}${release}${shared_ext}$major'
20013   shlibpath_var=LD_LIBRARY_PATH
20014   ;;
20015
20016 *)
20017   dynamic_linker=no
20018   ;;
20019 esac
20020 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20021 echo "${ECHO_T}$dynamic_linker" >&6; }
20022 test "$dynamic_linker" = no && can_build_shared=no
20023
20024 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20025 if test "$GCC" = yes; then
20026   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20027 fi
20028
20029 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20030 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20031 hardcode_action_GCJ=
20032 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
20033    test -n "$runpath_var_GCJ" || \
20034    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
20035
20036   # We can hardcode non-existant directories.
20037   if test "$hardcode_direct_GCJ" != no &&
20038      # If the only mechanism to avoid hardcoding is shlibpath_var, we
20039      # have to relink, otherwise we might link with an installed library
20040      # when we should be linking with a yet-to-be-installed one
20041      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
20042      test "$hardcode_minus_L_GCJ" != no; then
20043     # Linking always hardcodes the temporary library directory.
20044     hardcode_action_GCJ=relink
20045   else
20046     # We can link without hardcoding, and we can hardcode nonexisting dirs.
20047     hardcode_action_GCJ=immediate
20048   fi
20049 else
20050   # We cannot hardcode anything, or else we can only hardcode existing
20051   # directories.
20052   hardcode_action_GCJ=unsupported
20053 fi
20054 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
20055 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
20056
20057 if test "$hardcode_action_GCJ" = relink; then
20058   # Fast installation is not supported
20059   enable_fast_install=no
20060 elif test "$shlibpath_overrides_runpath" = yes ||
20061      test "$enable_shared" = no; then
20062   # Fast installation is not necessary
20063   enable_fast_install=needless
20064 fi
20065
20066
20067 # The else clause should only fire when bootstrapping the
20068 # libtool distribution, otherwise you forgot to ship ltmain.sh
20069 # with your package, and you will get complaints that there are
20070 # no rules to generate ltmain.sh.
20071 if test -f "$ltmain"; then
20072   # See if we are running on zsh, and set the options which allow our commands through
20073   # without removal of \ escapes.
20074   if test -n "${ZSH_VERSION+set}" ; then
20075     setopt NO_GLOB_SUBST
20076   fi
20077   # Now quote all the things that may contain metacharacters while being
20078   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20079   # variables and quote the copies for generation of the libtool script.
20080   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20081     SED SHELL STRIP \
20082     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20083     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20084     deplibs_check_method reload_flag reload_cmds need_locks \
20085     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20086     lt_cv_sys_global_symbol_to_c_name_address \
20087     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20088     old_postinstall_cmds old_postuninstall_cmds \
20089     compiler_GCJ \
20090     CC_GCJ \
20091     LD_GCJ \
20092     lt_prog_compiler_wl_GCJ \
20093     lt_prog_compiler_pic_GCJ \
20094     lt_prog_compiler_static_GCJ \
20095     lt_prog_compiler_no_builtin_flag_GCJ \
20096     export_dynamic_flag_spec_GCJ \
20097     thread_safe_flag_spec_GCJ \
20098     whole_archive_flag_spec_GCJ \
20099     enable_shared_with_static_runtimes_GCJ \
20100     old_archive_cmds_GCJ \
20101     old_archive_from_new_cmds_GCJ \
20102     predep_objects_GCJ \
20103     postdep_objects_GCJ \
20104     predeps_GCJ \
20105     postdeps_GCJ \
20106     compiler_lib_search_path_GCJ \
20107     archive_cmds_GCJ \
20108     archive_expsym_cmds_GCJ \
20109     postinstall_cmds_GCJ \
20110     postuninstall_cmds_GCJ \
20111     old_archive_from_expsyms_cmds_GCJ \
20112     allow_undefined_flag_GCJ \
20113     no_undefined_flag_GCJ \
20114     export_symbols_cmds_GCJ \
20115     hardcode_libdir_flag_spec_GCJ \
20116     hardcode_libdir_flag_spec_ld_GCJ \
20117     hardcode_libdir_separator_GCJ \
20118     hardcode_automatic_GCJ \
20119     module_cmds_GCJ \
20120     module_expsym_cmds_GCJ \
20121     lt_cv_prog_compiler_c_o_GCJ \
20122     exclude_expsyms_GCJ \
20123     include_expsyms_GCJ; do
20124
20125     case $var in
20126     old_archive_cmds_GCJ | \
20127     old_archive_from_new_cmds_GCJ | \
20128     archive_cmds_GCJ | \
20129     archive_expsym_cmds_GCJ | \
20130     module_cmds_GCJ | \
20131     module_expsym_cmds_GCJ | \
20132     old_archive_from_expsyms_cmds_GCJ | \
20133     export_symbols_cmds_GCJ | \
20134     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20135     postinstall_cmds | postuninstall_cmds | \
20136     old_postinstall_cmds | old_postuninstall_cmds | \
20137     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20138       # Double-quote double-evaled strings.
20139       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20140       ;;
20141     *)
20142       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20143       ;;
20144     esac
20145   done
20146
20147   case $lt_echo in
20148   *'\$0 --fallback-echo"')
20149     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20150     ;;
20151   esac
20152
20153 cfgfile="$ofile"
20154
20155   cat <<__EOF__ >> "$cfgfile"
20156 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20157
20158 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20159
20160 # Shell to use when invoking shell scripts.
20161 SHELL=$lt_SHELL
20162
20163 # Whether or not to build shared libraries.
20164 build_libtool_libs=$enable_shared
20165
20166 # Whether or not to build static libraries.
20167 build_old_libs=$enable_static
20168
20169 # Whether or not to add -lc for building shared libraries.
20170 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
20171
20172 # Whether or not to disallow shared libs when runtime libs are static
20173 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
20174
20175 # Whether or not to optimize for fast installation.
20176 fast_install=$enable_fast_install
20177
20178 # The host system.
20179 host_alias=$host_alias
20180 host=$host
20181 host_os=$host_os
20182
20183 # The build system.
20184 build_alias=$build_alias
20185 build=$build
20186 build_os=$build_os
20187
20188 # An echo program that does not interpret backslashes.
20189 echo=$lt_echo
20190
20191 # The archiver.
20192 AR=$lt_AR
20193 AR_FLAGS=$lt_AR_FLAGS
20194
20195 # A C compiler.
20196 LTCC=$lt_LTCC
20197
20198 # LTCC compiler flags.
20199 LTCFLAGS=$lt_LTCFLAGS
20200
20201 # A language-specific compiler.
20202 CC=$lt_compiler_GCJ
20203
20204 # Is the compiler the GNU C compiler?
20205 with_gcc=$GCC_GCJ
20206
20207 # An ERE matcher.
20208 EGREP=$lt_EGREP
20209
20210 # The linker used to build libraries.
20211 LD=$lt_LD_GCJ
20212
20213 # Whether we need hard or soft links.
20214 LN_S=$lt_LN_S
20215
20216 # A BSD-compatible nm program.
20217 NM=$lt_NM
20218
20219 # A symbol stripping program
20220 STRIP=$lt_STRIP
20221
20222 # Used to examine libraries when file_magic_cmd begins "file"
20223 MAGIC_CMD=$MAGIC_CMD
20224
20225 # Used on cygwin: DLL creation program.
20226 DLLTOOL="$DLLTOOL"
20227
20228 # Used on cygwin: object dumper.
20229 OBJDUMP="$OBJDUMP"
20230
20231 # Used on cygwin: assembler.
20232 AS="$AS"
20233
20234 # The name of the directory that contains temporary libtool files.
20235 objdir=$objdir
20236
20237 # How to create reloadable object files.
20238 reload_flag=$lt_reload_flag
20239 reload_cmds=$lt_reload_cmds
20240
20241 # How to pass a linker flag through the compiler.
20242 wl=$lt_lt_prog_compiler_wl_GCJ
20243
20244 # Object file suffix (normally "o").
20245 objext="$ac_objext"
20246
20247 # Old archive suffix (normally "a").
20248 libext="$libext"
20249
20250 # Shared library suffix (normally ".so").
20251 shrext_cmds='$shrext_cmds'
20252
20253 # Executable file suffix (normally "").
20254 exeext="$exeext"
20255
20256 # Additional compiler flags for building library objects.
20257 pic_flag=$lt_lt_prog_compiler_pic_GCJ
20258 pic_mode=$pic_mode
20259
20260 # What is the maximum length of a command?
20261 max_cmd_len=$lt_cv_sys_max_cmd_len
20262
20263 # Does compiler simultaneously support -c and -o options?
20264 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
20265
20266 # Must we lock files when doing compilation?
20267 need_locks=$lt_need_locks
20268
20269 # Do we need the lib prefix for modules?
20270 need_lib_prefix=$need_lib_prefix
20271
20272 # Do we need a version for libraries?
20273 need_version=$need_version
20274
20275 # Whether dlopen is supported.
20276 dlopen_support=$enable_dlopen
20277
20278 # Whether dlopen of programs is supported.
20279 dlopen_self=$enable_dlopen_self
20280
20281 # Whether dlopen of statically linked programs is supported.
20282 dlopen_self_static=$enable_dlopen_self_static
20283
20284 # Compiler flag to prevent dynamic linking.
20285 link_static_flag=$lt_lt_prog_compiler_static_GCJ
20286
20287 # Compiler flag to turn off builtin functions.
20288 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
20289
20290 # Compiler flag to allow reflexive dlopens.
20291 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
20292
20293 # Compiler flag to generate shared objects directly from archives.
20294 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
20295
20296 # Compiler flag to generate thread-safe objects.
20297 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
20298
20299 # Library versioning type.
20300 version_type=$version_type
20301
20302 # Format of library name prefix.
20303 libname_spec=$lt_libname_spec
20304
20305 # List of archive names.  First name is the real one, the rest are links.
20306 # The last name is the one that the linker finds with -lNAME.
20307 library_names_spec=$lt_library_names_spec
20308
20309 # The coded name of the library, if different from the real name.
20310 soname_spec=$lt_soname_spec
20311
20312 # Commands used to build and install an old-style archive.
20313 RANLIB=$lt_RANLIB
20314 old_archive_cmds=$lt_old_archive_cmds_GCJ
20315 old_postinstall_cmds=$lt_old_postinstall_cmds
20316 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20317
20318 # Create an old-style archive from a shared archive.
20319 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
20320
20321 # Create a temporary old-style archive to link instead of a shared archive.
20322 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
20323
20324 # Commands used to build and install a shared archive.
20325 archive_cmds=$lt_archive_cmds_GCJ
20326 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
20327 postinstall_cmds=$lt_postinstall_cmds
20328 postuninstall_cmds=$lt_postuninstall_cmds
20329
20330 # Commands used to build a loadable module (assumed same as above if empty)
20331 module_cmds=$lt_module_cmds_GCJ
20332 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
20333
20334 # Commands to strip libraries.
20335 old_striplib=$lt_old_striplib
20336 striplib=$lt_striplib
20337
20338 # Dependencies to place before the objects being linked to create a
20339 # shared library.
20340 predep_objects=$lt_predep_objects_GCJ
20341
20342 # Dependencies to place after the objects being linked to create a
20343 # shared library.
20344 postdep_objects=$lt_postdep_objects_GCJ
20345
20346 # Dependencies to place before the objects being linked to create a
20347 # shared library.
20348 predeps=$lt_predeps_GCJ
20349
20350 # Dependencies to place after the objects being linked to create a
20351 # shared library.
20352 postdeps=$lt_postdeps_GCJ
20353
20354 # The library search path used internally by the compiler when linking
20355 # a shared library.
20356 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
20357
20358 # Method to check whether dependent libraries are shared objects.
20359 deplibs_check_method=$lt_deplibs_check_method
20360
20361 # Command to use when deplibs_check_method == file_magic.
20362 file_magic_cmd=$lt_file_magic_cmd
20363
20364 # Flag that allows shared libraries with undefined symbols to be built.
20365 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
20366
20367 # Flag that forces no undefined symbols.
20368 no_undefined_flag=$lt_no_undefined_flag_GCJ
20369
20370 # Commands used to finish a libtool library installation in a directory.
20371 finish_cmds=$lt_finish_cmds
20372
20373 # Same as above, but a single script fragment to be evaled but not shown.
20374 finish_eval=$lt_finish_eval
20375
20376 # Take the output of nm and produce a listing of raw symbols and C names.
20377 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20378
20379 # Transform the output of nm in a proper C declaration
20380 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20381
20382 # Transform the output of nm in a C name address pair
20383 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20384
20385 # This is the shared library runtime path variable.
20386 runpath_var=$runpath_var
20387
20388 # This is the shared library path variable.
20389 shlibpath_var=$shlibpath_var
20390
20391 # Is shlibpath searched before the hard-coded library search path?
20392 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20393
20394 # How to hardcode a shared library path into an executable.
20395 hardcode_action=$hardcode_action_GCJ
20396
20397 # Whether we should hardcode library paths into libraries.
20398 hardcode_into_libs=$hardcode_into_libs
20399
20400 # Flag to hardcode \$libdir into a binary during linking.
20401 # This must work even if \$libdir does not exist.
20402 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
20403
20404 # If ld is used when linking, flag to hardcode \$libdir into
20405 # a binary during linking. This must work even if \$libdir does
20406 # not exist.
20407 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
20408
20409 # Whether we need a single -rpath flag with a separated argument.
20410 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
20411
20412 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20413 # resulting binary.
20414 hardcode_direct=$hardcode_direct_GCJ
20415
20416 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20417 # resulting binary.
20418 hardcode_minus_L=$hardcode_minus_L_GCJ
20419
20420 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20421 # the resulting binary.
20422 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
20423
20424 # Set to yes if building a shared library automatically hardcodes DIR into the library
20425 # and all subsequent libraries and executables linked against it.
20426 hardcode_automatic=$hardcode_automatic_GCJ
20427
20428 # Variables whose values should be saved in libtool wrapper scripts and
20429 # restored at relink time.
20430 variables_saved_for_relink="$variables_saved_for_relink"
20431
20432 # Whether libtool must link a program against all its dependency libraries.
20433 link_all_deplibs=$link_all_deplibs_GCJ
20434
20435 # Compile-time system search path for libraries
20436 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20437
20438 # Run-time system search path for libraries
20439 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20440
20441 # Fix the shell variable \$srcfile for the compiler.
20442 fix_srcfile_path="$fix_srcfile_path_GCJ"
20443
20444 # Set to yes if exported symbols are required.
20445 always_export_symbols=$always_export_symbols_GCJ
20446
20447 # The commands to list exported symbols.
20448 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
20449
20450 # The commands to extract the exported symbol list from a shared archive.
20451 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20452
20453 # Symbols that should not be listed in the preloaded symbols.
20454 exclude_expsyms=$lt_exclude_expsyms_GCJ
20455
20456 # Symbols that must always be exported.
20457 include_expsyms=$lt_include_expsyms_GCJ
20458
20459 # ### END LIBTOOL TAG CONFIG: $tagname
20460
20461 __EOF__
20462
20463
20464 else
20465   # If there is no Makefile yet, we rely on a make rule to execute
20466   # `config.status --recheck' to rerun these tests and create the
20467   # libtool script then.
20468   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20469   if test -f "$ltmain_in"; then
20470     test -f Makefile && make "$ltmain"
20471   fi
20472 fi
20473
20474
20475 ac_ext=c
20476 ac_cpp='$CPP $CPPFLAGS'
20477 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20478 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20479 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20480
20481 CC="$lt_save_CC"
20482
20483         else
20484           tagname=""
20485         fi
20486         ;;
20487
20488       RC)
20489
20490
20491 # Source file extension for RC test sources.
20492 ac_ext=rc
20493
20494 # Object file extension for compiled RC test sources.
20495 objext=o
20496 objext_RC=$objext
20497
20498 # Code to be used in simple compile tests
20499 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
20500
20501 # Code to be used in simple link tests
20502 lt_simple_link_test_code="$lt_simple_compile_test_code"
20503
20504 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20505
20506 # If no C compiler was specified, use CC.
20507 LTCC=${LTCC-"$CC"}
20508
20509 # If no C compiler flags were specified, use CFLAGS.
20510 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20511
20512 # Allow CC to be a program name with arguments.
20513 compiler=$CC
20514
20515
20516 # save warnings/boilerplate of simple test code
20517 ac_outfile=conftest.$ac_objext
20518 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
20519 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20520 _lt_compiler_boilerplate=`cat conftest.err`
20521 $rm conftest*
20522
20523 ac_outfile=conftest.$ac_objext
20524 printf "$lt_simple_link_test_code" >conftest.$ac_ext
20525 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20526 _lt_linker_boilerplate=`cat conftest.err`
20527 $rm conftest*
20528
20529
20530 # Allow CC to be a program name with arguments.
20531 lt_save_CC="$CC"
20532 CC=${RC-"windres"}
20533 compiler=$CC
20534 compiler_RC=$CC
20535 for cc_temp in $compiler""; do
20536   case $cc_temp in
20537     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20538     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20539     \-*) ;;
20540     *) break;;
20541   esac
20542 done
20543 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20544
20545 lt_cv_prog_compiler_c_o_RC=yes
20546
20547 # The else clause should only fire when bootstrapping the
20548 # libtool distribution, otherwise you forgot to ship ltmain.sh
20549 # with your package, and you will get complaints that there are
20550 # no rules to generate ltmain.sh.
20551 if test -f "$ltmain"; then
20552   # See if we are running on zsh, and set the options which allow our commands through
20553   # without removal of \ escapes.
20554   if test -n "${ZSH_VERSION+set}" ; then
20555     setopt NO_GLOB_SUBST
20556   fi
20557   # Now quote all the things that may contain metacharacters while being
20558   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20559   # variables and quote the copies for generation of the libtool script.
20560   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20561     SED SHELL STRIP \
20562     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20563     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20564     deplibs_check_method reload_flag reload_cmds need_locks \
20565     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20566     lt_cv_sys_global_symbol_to_c_name_address \
20567     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20568     old_postinstall_cmds old_postuninstall_cmds \
20569     compiler_RC \
20570     CC_RC \
20571     LD_RC \
20572     lt_prog_compiler_wl_RC \
20573     lt_prog_compiler_pic_RC \
20574     lt_prog_compiler_static_RC \
20575     lt_prog_compiler_no_builtin_flag_RC \
20576     export_dynamic_flag_spec_RC \
20577     thread_safe_flag_spec_RC \
20578     whole_archive_flag_spec_RC \
20579     enable_shared_with_static_runtimes_RC \
20580     old_archive_cmds_RC \
20581     old_archive_from_new_cmds_RC \
20582     predep_objects_RC \
20583     postdep_objects_RC \
20584     predeps_RC \
20585     postdeps_RC \
20586     compiler_lib_search_path_RC \
20587     archive_cmds_RC \
20588     archive_expsym_cmds_RC \
20589     postinstall_cmds_RC \
20590     postuninstall_cmds_RC \
20591     old_archive_from_expsyms_cmds_RC \
20592     allow_undefined_flag_RC \
20593     no_undefined_flag_RC \
20594     export_symbols_cmds_RC \
20595     hardcode_libdir_flag_spec_RC \
20596     hardcode_libdir_flag_spec_ld_RC \
20597     hardcode_libdir_separator_RC \
20598     hardcode_automatic_RC \
20599     module_cmds_RC \
20600     module_expsym_cmds_RC \
20601     lt_cv_prog_compiler_c_o_RC \
20602     exclude_expsyms_RC \
20603     include_expsyms_RC; do
20604
20605     case $var in
20606     old_archive_cmds_RC | \
20607     old_archive_from_new_cmds_RC | \
20608     archive_cmds_RC | \
20609     archive_expsym_cmds_RC | \
20610     module_cmds_RC | \
20611     module_expsym_cmds_RC | \
20612     old_archive_from_expsyms_cmds_RC | \
20613     export_symbols_cmds_RC | \
20614     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20615     postinstall_cmds | postuninstall_cmds | \
20616     old_postinstall_cmds | old_postuninstall_cmds | \
20617     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20618       # Double-quote double-evaled strings.
20619       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20620       ;;
20621     *)
20622       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20623       ;;
20624     esac
20625   done
20626
20627   case $lt_echo in
20628   *'\$0 --fallback-echo"')
20629     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20630     ;;
20631   esac
20632
20633 cfgfile="$ofile"
20634
20635   cat <<__EOF__ >> "$cfgfile"
20636 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20637
20638 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20639
20640 # Shell to use when invoking shell scripts.
20641 SHELL=$lt_SHELL
20642
20643 # Whether or not to build shared libraries.
20644 build_libtool_libs=$enable_shared
20645
20646 # Whether or not to build static libraries.
20647 build_old_libs=$enable_static
20648
20649 # Whether or not to add -lc for building shared libraries.
20650 build_libtool_need_lc=$archive_cmds_need_lc_RC
20651
20652 # Whether or not to disallow shared libs when runtime libs are static
20653 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20654
20655 # Whether or not to optimize for fast installation.
20656 fast_install=$enable_fast_install
20657
20658 # The host system.
20659 host_alias=$host_alias
20660 host=$host
20661 host_os=$host_os
20662
20663 # The build system.
20664 build_alias=$build_alias
20665 build=$build
20666 build_os=$build_os
20667
20668 # An echo program that does not interpret backslashes.
20669 echo=$lt_echo
20670
20671 # The archiver.
20672 AR=$lt_AR
20673 AR_FLAGS=$lt_AR_FLAGS
20674
20675 # A C compiler.
20676 LTCC=$lt_LTCC
20677
20678 # LTCC compiler flags.
20679 LTCFLAGS=$lt_LTCFLAGS
20680
20681 # A language-specific compiler.
20682 CC=$lt_compiler_RC
20683
20684 # Is the compiler the GNU C compiler?
20685 with_gcc=$GCC_RC
20686
20687 # An ERE matcher.
20688 EGREP=$lt_EGREP
20689
20690 # The linker used to build libraries.
20691 LD=$lt_LD_RC
20692
20693 # Whether we need hard or soft links.
20694 LN_S=$lt_LN_S
20695
20696 # A BSD-compatible nm program.
20697 NM=$lt_NM
20698
20699 # A symbol stripping program
20700 STRIP=$lt_STRIP
20701
20702 # Used to examine libraries when file_magic_cmd begins "file"
20703 MAGIC_CMD=$MAGIC_CMD
20704
20705 # Used on cygwin: DLL creation program.
20706 DLLTOOL="$DLLTOOL"
20707
20708 # Used on cygwin: object dumper.
20709 OBJDUMP="$OBJDUMP"
20710
20711 # Used on cygwin: assembler.
20712 AS="$AS"
20713
20714 # The name of the directory that contains temporary libtool files.
20715 objdir=$objdir
20716
20717 # How to create reloadable object files.
20718 reload_flag=$lt_reload_flag
20719 reload_cmds=$lt_reload_cmds
20720
20721 # How to pass a linker flag through the compiler.
20722 wl=$lt_lt_prog_compiler_wl_RC
20723
20724 # Object file suffix (normally "o").
20725 objext="$ac_objext"
20726
20727 # Old archive suffix (normally "a").
20728 libext="$libext"
20729
20730 # Shared library suffix (normally ".so").
20731 shrext_cmds='$shrext_cmds'
20732
20733 # Executable file suffix (normally "").
20734 exeext="$exeext"
20735
20736 # Additional compiler flags for building library objects.
20737 pic_flag=$lt_lt_prog_compiler_pic_RC
20738 pic_mode=$pic_mode
20739
20740 # What is the maximum length of a command?
20741 max_cmd_len=$lt_cv_sys_max_cmd_len
20742
20743 # Does compiler simultaneously support -c and -o options?
20744 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20745
20746 # Must we lock files when doing compilation?
20747 need_locks=$lt_need_locks
20748
20749 # Do we need the lib prefix for modules?
20750 need_lib_prefix=$need_lib_prefix
20751
20752 # Do we need a version for libraries?
20753 need_version=$need_version
20754
20755 # Whether dlopen is supported.
20756 dlopen_support=$enable_dlopen
20757
20758 # Whether dlopen of programs is supported.
20759 dlopen_self=$enable_dlopen_self
20760
20761 # Whether dlopen of statically linked programs is supported.
20762 dlopen_self_static=$enable_dlopen_self_static
20763
20764 # Compiler flag to prevent dynamic linking.
20765 link_static_flag=$lt_lt_prog_compiler_static_RC
20766
20767 # Compiler flag to turn off builtin functions.
20768 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20769
20770 # Compiler flag to allow reflexive dlopens.
20771 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20772
20773 # Compiler flag to generate shared objects directly from archives.
20774 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20775
20776 # Compiler flag to generate thread-safe objects.
20777 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20778
20779 # Library versioning type.
20780 version_type=$version_type
20781
20782 # Format of library name prefix.
20783 libname_spec=$lt_libname_spec
20784
20785 # List of archive names.  First name is the real one, the rest are links.
20786 # The last name is the one that the linker finds with -lNAME.
20787 library_names_spec=$lt_library_names_spec
20788
20789 # The coded name of the library, if different from the real name.
20790 soname_spec=$lt_soname_spec
20791
20792 # Commands used to build and install an old-style archive.
20793 RANLIB=$lt_RANLIB
20794 old_archive_cmds=$lt_old_archive_cmds_RC
20795 old_postinstall_cmds=$lt_old_postinstall_cmds
20796 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20797
20798 # Create an old-style archive from a shared archive.
20799 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20800
20801 # Create a temporary old-style archive to link instead of a shared archive.
20802 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20803
20804 # Commands used to build and install a shared archive.
20805 archive_cmds=$lt_archive_cmds_RC
20806 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20807 postinstall_cmds=$lt_postinstall_cmds
20808 postuninstall_cmds=$lt_postuninstall_cmds
20809
20810 # Commands used to build a loadable module (assumed same as above if empty)
20811 module_cmds=$lt_module_cmds_RC
20812 module_expsym_cmds=$lt_module_expsym_cmds_RC
20813
20814 # Commands to strip libraries.
20815 old_striplib=$lt_old_striplib
20816 striplib=$lt_striplib
20817
20818 # Dependencies to place before the objects being linked to create a
20819 # shared library.
20820 predep_objects=$lt_predep_objects_RC
20821
20822 # Dependencies to place after the objects being linked to create a
20823 # shared library.
20824 postdep_objects=$lt_postdep_objects_RC
20825
20826 # Dependencies to place before the objects being linked to create a
20827 # shared library.
20828 predeps=$lt_predeps_RC
20829
20830 # Dependencies to place after the objects being linked to create a
20831 # shared library.
20832 postdeps=$lt_postdeps_RC
20833
20834 # The library search path used internally by the compiler when linking
20835 # a shared library.
20836 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20837
20838 # Method to check whether dependent libraries are shared objects.
20839 deplibs_check_method=$lt_deplibs_check_method
20840
20841 # Command to use when deplibs_check_method == file_magic.
20842 file_magic_cmd=$lt_file_magic_cmd
20843
20844 # Flag that allows shared libraries with undefined symbols to be built.
20845 allow_undefined_flag=$lt_allow_undefined_flag_RC
20846
20847 # Flag that forces no undefined symbols.
20848 no_undefined_flag=$lt_no_undefined_flag_RC
20849
20850 # Commands used to finish a libtool library installation in a directory.
20851 finish_cmds=$lt_finish_cmds
20852
20853 # Same as above, but a single script fragment to be evaled but not shown.
20854 finish_eval=$lt_finish_eval
20855
20856 # Take the output of nm and produce a listing of raw symbols and C names.
20857 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20858
20859 # Transform the output of nm in a proper C declaration
20860 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20861
20862 # Transform the output of nm in a C name address pair
20863 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20864
20865 # This is the shared library runtime path variable.
20866 runpath_var=$runpath_var
20867
20868 # This is the shared library path variable.
20869 shlibpath_var=$shlibpath_var
20870
20871 # Is shlibpath searched before the hard-coded library search path?
20872 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20873
20874 # How to hardcode a shared library path into an executable.
20875 hardcode_action=$hardcode_action_RC
20876
20877 # Whether we should hardcode library paths into libraries.
20878 hardcode_into_libs=$hardcode_into_libs
20879
20880 # Flag to hardcode \$libdir into a binary during linking.
20881 # This must work even if \$libdir does not exist.
20882 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20883
20884 # If ld is used when linking, flag to hardcode \$libdir into
20885 # a binary during linking. This must work even if \$libdir does
20886 # not exist.
20887 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20888
20889 # Whether we need a single -rpath flag with a separated argument.
20890 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20891
20892 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20893 # resulting binary.
20894 hardcode_direct=$hardcode_direct_RC
20895
20896 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20897 # resulting binary.
20898 hardcode_minus_L=$hardcode_minus_L_RC
20899
20900 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20901 # the resulting binary.
20902 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20903
20904 # Set to yes if building a shared library automatically hardcodes DIR into the library
20905 # and all subsequent libraries and executables linked against it.
20906 hardcode_automatic=$hardcode_automatic_RC
20907
20908 # Variables whose values should be saved in libtool wrapper scripts and
20909 # restored at relink time.
20910 variables_saved_for_relink="$variables_saved_for_relink"
20911
20912 # Whether libtool must link a program against all its dependency libraries.
20913 link_all_deplibs=$link_all_deplibs_RC
20914
20915 # Compile-time system search path for libraries
20916 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20917
20918 # Run-time system search path for libraries
20919 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20920
20921 # Fix the shell variable \$srcfile for the compiler.
20922 fix_srcfile_path="$fix_srcfile_path_RC"
20923
20924 # Set to yes if exported symbols are required.
20925 always_export_symbols=$always_export_symbols_RC
20926
20927 # The commands to list exported symbols.
20928 export_symbols_cmds=$lt_export_symbols_cmds_RC
20929
20930 # The commands to extract the exported symbol list from a shared archive.
20931 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20932
20933 # Symbols that should not be listed in the preloaded symbols.
20934 exclude_expsyms=$lt_exclude_expsyms_RC
20935
20936 # Symbols that must always be exported.
20937 include_expsyms=$lt_include_expsyms_RC
20938
20939 # ### END LIBTOOL TAG CONFIG: $tagname
20940
20941 __EOF__
20942
20943
20944 else
20945   # If there is no Makefile yet, we rely on a make rule to execute
20946   # `config.status --recheck' to rerun these tests and create the
20947   # libtool script then.
20948   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20949   if test -f "$ltmain_in"; then
20950     test -f Makefile && make "$ltmain"
20951   fi
20952 fi
20953
20954
20955 ac_ext=c
20956 ac_cpp='$CPP $CPPFLAGS'
20957 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20958 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20959 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20960
20961 CC="$lt_save_CC"
20962
20963         ;;
20964
20965       *)
20966         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20967 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20968    { (exit 1); exit 1; }; }
20969         ;;
20970       esac
20971
20972       # Append the new tag name to the list of available tags.
20973       if test -n "$tagname" ; then
20974       available_tags="$available_tags $tagname"
20975     fi
20976     fi
20977   done
20978   IFS="$lt_save_ifs"
20979
20980   # Now substitute the updated list of available tags.
20981   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20982     mv "${ofile}T" "$ofile"
20983     chmod +x "$ofile"
20984   else
20985     rm -f "${ofile}T"
20986     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20987 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20988    { (exit 1); exit 1; }; }
20989   fi
20990 fi
20991
20992
20993
20994 # This can be used to rebuild libtool when needed
20995 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20996
20997 # Always use our own libtool.
20998 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20999
21000 # Prevent multiple expansion
21001
21002
21003
21004
21005
21006
21007
21008
21009
21010
21011
21012
21013
21014
21015
21016
21017
21018
21019
21020
21021
21022 if test "x$cross_compiling" = "xno"; then
21023         CC_FOR_BUILD=${CC_FOR_BUILD-${CC-gcc}}
21024 else
21025         CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
21026 fi
21027
21028
21029
21030 if test -n "$ac_tool_prefix"; then
21031   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
21032 set dummy ${ac_tool_prefix}ar; ac_word=$2
21033 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21034 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21035 if test "${ac_cv_prog_AR+set}" = set; then
21036   echo $ECHO_N "(cached) $ECHO_C" >&6
21037 else
21038   if test -n "$AR"; then
21039   ac_cv_prog_AR="$AR" # Let the user override the test.
21040 else
21041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21042 for as_dir in $PATH
21043 do
21044   IFS=$as_save_IFS
21045   test -z "$as_dir" && as_dir=.
21046   for ac_exec_ext in '' $ac_executable_extensions; do
21047   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
21048     ac_cv_prog_AR="${ac_tool_prefix}ar"
21049     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21050     break 2
21051   fi
21052 done
21053 done
21054 IFS=$as_save_IFS
21055
21056 fi
21057 fi
21058 AR=$ac_cv_prog_AR
21059 if test -n "$AR"; then
21060   { echo "$as_me:$LINENO: result: $AR" >&5
21061 echo "${ECHO_T}$AR" >&6; }
21062 else
21063   { echo "$as_me:$LINENO: result: no" >&5
21064 echo "${ECHO_T}no" >&6; }
21065 fi
21066
21067
21068 fi
21069 if test -z "$ac_cv_prog_AR"; then
21070   ac_ct_AR=$AR
21071   # Extract the first word of "ar", so it can be a program name with args.
21072 set dummy ar; ac_word=$2
21073 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21074 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21075 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
21076   echo $ECHO_N "(cached) $ECHO_C" >&6
21077 else
21078   if test -n "$ac_ct_AR"; then
21079   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
21080 else
21081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21082 for as_dir in $PATH
21083 do
21084   IFS=$as_save_IFS
21085   test -z "$as_dir" && as_dir=.
21086   for ac_exec_ext in '' $ac_executable_extensions; do
21087   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
21088     ac_cv_prog_ac_ct_AR="ar"
21089     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21090     break 2
21091   fi
21092 done
21093 done
21094 IFS=$as_save_IFS
21095
21096 fi
21097 fi
21098 ac_ct_AR=$ac_cv_prog_ac_ct_AR
21099 if test -n "$ac_ct_AR"; then
21100   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
21101 echo "${ECHO_T}$ac_ct_AR" >&6; }
21102 else
21103   { echo "$as_me:$LINENO: result: no" >&5
21104 echo "${ECHO_T}no" >&6; }
21105 fi
21106
21107   if test "x$ac_ct_AR" = x; then
21108     AR=""
21109   else
21110     case $cross_compiling:$ac_tool_warned in
21111 yes:)
21112 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
21113 whose name does not start with the host triplet.  If you think this
21114 configuration is useful to you, please write to autoconf@gnu.org." >&5
21115 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
21116 whose name does not start with the host triplet.  If you think this
21117 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
21118 ac_tool_warned=yes ;;
21119 esac
21120     AR=$ac_ct_AR
21121   fi
21122 else
21123   AR="$ac_cv_prog_AR"
21124 fi
21125
21126 if test -n "$ac_tool_prefix"; then
21127   # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
21128 set dummy ${ac_tool_prefix}ld; ac_word=$2
21129 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21130 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21131 if test "${ac_cv_prog_LD+set}" = set; then
21132   echo $ECHO_N "(cached) $ECHO_C" >&6
21133 else
21134   if test -n "$LD"; then
21135   ac_cv_prog_LD="$LD" # Let the user override the test.
21136 else
21137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21138 for as_dir in $PATH
21139 do
21140   IFS=$as_save_IFS
21141   test -z "$as_dir" && as_dir=.
21142   for ac_exec_ext in '' $ac_executable_extensions; do
21143   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
21144     ac_cv_prog_LD="${ac_tool_prefix}ld"
21145     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21146     break 2
21147   fi
21148 done
21149 done
21150 IFS=$as_save_IFS
21151
21152 fi
21153 fi
21154 LD=$ac_cv_prog_LD
21155 if test -n "$LD"; then
21156   { echo "$as_me:$LINENO: result: $LD" >&5
21157 echo "${ECHO_T}$LD" >&6; }
21158 else
21159   { echo "$as_me:$LINENO: result: no" >&5
21160 echo "${ECHO_T}no" >&6; }
21161 fi
21162
21163
21164 fi
21165 if test -z "$ac_cv_prog_LD"; then
21166   ac_ct_LD=$LD
21167   # Extract the first word of "ld", so it can be a program name with args.
21168 set dummy ld; ac_word=$2
21169 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21170 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21171 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
21172   echo $ECHO_N "(cached) $ECHO_C" >&6
21173 else
21174   if test -n "$ac_ct_LD"; then
21175   ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
21176 else
21177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21178 for as_dir in $PATH
21179 do
21180   IFS=$as_save_IFS
21181   test -z "$as_dir" && as_dir=.
21182   for ac_exec_ext in '' $ac_executable_extensions; do
21183   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
21184     ac_cv_prog_ac_ct_LD="ld"
21185     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21186     break 2
21187   fi
21188 done
21189 done
21190 IFS=$as_save_IFS
21191
21192 fi
21193 fi
21194 ac_ct_LD=$ac_cv_prog_ac_ct_LD
21195 if test -n "$ac_ct_LD"; then
21196   { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
21197 echo "${ECHO_T}$ac_ct_LD" >&6; }
21198 else
21199   { echo "$as_me:$LINENO: result: no" >&5
21200 echo "${ECHO_T}no" >&6; }
21201 fi
21202
21203   if test "x$ac_ct_LD" = x; then
21204     LD=""
21205   else
21206     case $cross_compiling:$ac_tool_warned in
21207 yes:)
21208 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
21209 whose name does not start with the host triplet.  If you think this
21210 configuration is useful to you, please write to autoconf@gnu.org." >&5
21211 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
21212 whose name does not start with the host triplet.  If you think this
21213 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
21214 ac_tool_warned=yes ;;
21215 esac
21216     LD=$ac_ct_LD
21217   fi
21218 else
21219   LD="$ac_cv_prog_LD"
21220 fi
21221
21222
21223 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21224 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
21225 if test "${ac_cv_header_stdc+set}" = set; then
21226   echo $ECHO_N "(cached) $ECHO_C" >&6
21227 else
21228   cat >conftest.$ac_ext <<_ACEOF
21229 /* confdefs.h.  */
21230 _ACEOF
21231 cat confdefs.h >>conftest.$ac_ext
21232 cat >>conftest.$ac_ext <<_ACEOF
21233 /* end confdefs.h.  */
21234 #include <stdlib.h>
21235 #include <stdarg.h>
21236 #include <string.h>
21237 #include <float.h>
21238
21239 int
21240 main ()
21241 {
21242
21243   ;
21244   return 0;
21245 }
21246 _ACEOF
21247 rm -f conftest.$ac_objext
21248 if { (ac_try="$ac_compile"
21249 case "(($ac_try" in
21250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21251   *) ac_try_echo=$ac_try;;
21252 esac
21253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21254   (eval "$ac_compile") 2>conftest.er1
21255   ac_status=$?
21256   grep -v '^ *+' conftest.er1 >conftest.err
21257   rm -f conftest.er1
21258   cat conftest.err >&5
21259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21260   (exit $ac_status); } &&
21261          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21262   { (case "(($ac_try" in
21263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21264   *) ac_try_echo=$ac_try;;
21265 esac
21266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21267   (eval "$ac_try") 2>&5
21268   ac_status=$?
21269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21270   (exit $ac_status); }; } &&
21271          { ac_try='test -s conftest.$ac_objext'
21272   { (case "(($ac_try" in
21273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21274   *) ac_try_echo=$ac_try;;
21275 esac
21276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21277   (eval "$ac_try") 2>&5
21278   ac_status=$?
21279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21280   (exit $ac_status); }; }; then
21281   ac_cv_header_stdc=yes
21282 else
21283   echo "$as_me: failed program was:" >&5
21284 sed 's/^/| /' conftest.$ac_ext >&5
21285
21286         ac_cv_header_stdc=no
21287 fi
21288
21289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21290
21291 if test $ac_cv_header_stdc = yes; then
21292   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21293   cat >conftest.$ac_ext <<_ACEOF
21294 /* confdefs.h.  */
21295 _ACEOF
21296 cat confdefs.h >>conftest.$ac_ext
21297 cat >>conftest.$ac_ext <<_ACEOF
21298 /* end confdefs.h.  */
21299 #include <string.h>
21300
21301 _ACEOF
21302 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21303   $EGREP "memchr" >/dev/null 2>&1; then
21304   :
21305 else
21306   ac_cv_header_stdc=no
21307 fi
21308 rm -f conftest*
21309
21310 fi
21311
21312 if test $ac_cv_header_stdc = yes; then
21313   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21314   cat >conftest.$ac_ext <<_ACEOF
21315 /* confdefs.h.  */
21316 _ACEOF
21317 cat confdefs.h >>conftest.$ac_ext
21318 cat >>conftest.$ac_ext <<_ACEOF
21319 /* end confdefs.h.  */
21320 #include <stdlib.h>
21321
21322 _ACEOF
21323 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21324   $EGREP "free" >/dev/null 2>&1; then
21325   :
21326 else
21327   ac_cv_header_stdc=no
21328 fi
21329 rm -f conftest*
21330
21331 fi
21332
21333 if test $ac_cv_header_stdc = yes; then
21334   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21335   if test "$cross_compiling" = yes; then
21336   :
21337 else
21338   cat >conftest.$ac_ext <<_ACEOF
21339 /* confdefs.h.  */
21340 _ACEOF
21341 cat confdefs.h >>conftest.$ac_ext
21342 cat >>conftest.$ac_ext <<_ACEOF
21343 /* end confdefs.h.  */
21344 #include <ctype.h>
21345 #include <stdlib.h>
21346 #if ((' ' & 0x0FF) == 0x020)
21347 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21348 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21349 #else
21350 # define ISLOWER(c) \
21351                    (('a' <= (c) && (c) <= 'i') \
21352                      || ('j' <= (c) && (c) <= 'r') \
21353                      || ('s' <= (c) && (c) <= 'z'))
21354 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21355 #endif
21356
21357 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21358 int
21359 main ()
21360 {
21361   int i;
21362   for (i = 0; i < 256; i++)
21363     if (XOR (islower (i), ISLOWER (i))
21364         || toupper (i) != TOUPPER (i))
21365       return 2;
21366   return 0;
21367 }
21368 _ACEOF
21369 rm -f conftest$ac_exeext
21370 if { (ac_try="$ac_link"
21371 case "(($ac_try" in
21372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21373   *) ac_try_echo=$ac_try;;
21374 esac
21375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21376   (eval "$ac_link") 2>&5
21377   ac_status=$?
21378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21379   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21380   { (case "(($ac_try" in
21381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21382   *) ac_try_echo=$ac_try;;
21383 esac
21384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21385   (eval "$ac_try") 2>&5
21386   ac_status=$?
21387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21388   (exit $ac_status); }; }; then
21389   :
21390 else
21391   echo "$as_me: program exited with status $ac_status" >&5
21392 echo "$as_me: failed program was:" >&5
21393 sed 's/^/| /' conftest.$ac_ext >&5
21394
21395 ( exit $ac_status )
21396 ac_cv_header_stdc=no
21397 fi
21398 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21399 fi
21400
21401
21402 fi
21403 fi
21404 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21405 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
21406 if test $ac_cv_header_stdc = yes; then
21407
21408 cat >>confdefs.h <<\_ACEOF
21409 #define STDC_HEADERS 1
21410 _ACEOF
21411
21412 fi
21413
21414
21415   { echo "$as_me:$LINENO: checking for GNU libc2" >&5
21416 echo $ECHO_N "checking for GNU libc2... $ECHO_C" >&6; }
21417   if test "${knfsd_cv_glibc2+set}" = set; then
21418   echo $ECHO_N "(cached) $ECHO_C" >&6
21419 else
21420   cat >conftest.$ac_ext <<_ACEOF
21421 /* confdefs.h.  */
21422 _ACEOF
21423 cat confdefs.h >>conftest.$ac_ext
21424 cat >>conftest.$ac_ext <<_ACEOF
21425 /* end confdefs.h.  */
21426
21427       #include <features.h>
21428       #if !defined(__GLIBC__)
21429       # error Nope
21430       #endif
21431
21432 _ACEOF
21433 if { (ac_try="$ac_cpp conftest.$ac_ext"
21434 case "(($ac_try" in
21435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21436   *) ac_try_echo=$ac_try;;
21437 esac
21438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21439   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21440   ac_status=$?
21441   grep -v '^ *+' conftest.er1 >conftest.err
21442   rm -f conftest.er1
21443   cat conftest.err >&5
21444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21445   (exit $ac_status); } >/dev/null; then
21446   if test -s conftest.err; then
21447     ac_cpp_err=$ac_c_preproc_warn_flag
21448     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21449   else
21450     ac_cpp_err=
21451   fi
21452 else
21453   ac_cpp_err=yes
21454 fi
21455 if test -z "$ac_cpp_err"; then
21456   knfsd_cv_glibc2=yes
21457 else
21458   echo "$as_me: failed program was:" >&5
21459 sed 's/^/| /' conftest.$ac_ext >&5
21460
21461   knfsd_cv_glibc2=no
21462 fi
21463
21464 rm -f conftest.err conftest.$ac_ext
21465 fi
21466
21467   { echo "$as_me:$LINENO: result: $knfsd_cv_glibc2" >&5
21468 echo "${ECHO_T}$knfsd_cv_glibc2" >&6; }
21469   if test $knfsd_cv_glibc2 = yes; then
21470     CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
21471     CPPFLAGS_FOR_BUILD="$CPPFLAGS_FOR_BUILD -D_GNU_SOURCE"
21472   fi
21473
21474
21475   { echo "$as_me:$LINENO: checking for BSD signal semantics" >&5
21476 echo $ECHO_N "checking for BSD signal semantics... $ECHO_C" >&6; }
21477   if test "${knfsd_cv_bsd_signals+set}" = set; then
21478   echo $ECHO_N "(cached) $ECHO_C" >&6
21479 else
21480   if test "$cross_compiling" = yes; then
21481   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21482 See \`config.log' for more details." >&5
21483 echo "$as_me: error: cannot run test program while cross compiling
21484 See \`config.log' for more details." >&2;}
21485    { (exit 1); exit 1; }; }
21486 else
21487   cat >conftest.$ac_ext <<_ACEOF
21488 /* confdefs.h.  */
21489 _ACEOF
21490 cat confdefs.h >>conftest.$ac_ext
21491 cat >>conftest.$ac_ext <<_ACEOF
21492 /* end confdefs.h.  */
21493
21494         #include <signal.h>
21495         #include <unistd.h>
21496         #include <sys/wait.h>
21497
21498         static int counter = 0;
21499         static RETSIGTYPE handler(int num) { counter++; }
21500
21501         int main()
21502         {
21503                 int     s;
21504                 if ((s = fork()) < 0) return 1;
21505                 if (s != 0) {
21506                         if (wait(&s) < 0) return 1;
21507                         return WIFSIGNALED(s)? 1 : 0;
21508                 }
21509
21510                 signal(SIGHUP, handler);
21511                 kill(getpid(), SIGHUP); kill(getpid(), SIGHUP);
21512                 return (counter == 2)? 0 : 1;
21513         }
21514
21515 _ACEOF
21516 rm -f conftest$ac_exeext
21517 if { (ac_try="$ac_link"
21518 case "(($ac_try" in
21519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21520   *) ac_try_echo=$ac_try;;
21521 esac
21522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21523   (eval "$ac_link") 2>&5
21524   ac_status=$?
21525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21526   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21527   { (case "(($ac_try" in
21528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21529   *) ac_try_echo=$ac_try;;
21530 esac
21531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21532   (eval "$ac_try") 2>&5
21533   ac_status=$?
21534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21535   (exit $ac_status); }; }; then
21536   knfsd_cv_bsd_signals=yes
21537 else
21538   echo "$as_me: program exited with status $ac_status" >&5
21539 echo "$as_me: failed program was:" >&5
21540 sed 's/^/| /' conftest.$ac_ext >&5
21541
21542 ( exit $ac_status )
21543 knfsd_cv_bsd_signals=no
21544 fi
21545 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21546 fi
21547
21548
21549 fi
21550      { echo "$as_me:$LINENO: result: $knfsd_cv_bsd_signals" >&5
21551 echo "${ECHO_T}$knfsd_cv_bsd_signals" >&6; }
21552     test $knfsd_cv_bsd_signals = yes &&
21553 cat >>confdefs.h <<\_ACEOF
21554 #define HAVE_BSD_SIGNALS 1
21555 _ACEOF
21556
21557
21558
21559 { echo "$as_me:$LINENO: checking for main in -lsocket" >&5
21560 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6; }
21561 if test "${ac_cv_lib_socket_main+set}" = set; then
21562   echo $ECHO_N "(cached) $ECHO_C" >&6
21563 else
21564   ac_check_lib_save_LIBS=$LIBS
21565 LIBS="-lsocket  $LIBS"
21566 cat >conftest.$ac_ext <<_ACEOF
21567 /* confdefs.h.  */
21568 _ACEOF
21569 cat confdefs.h >>conftest.$ac_ext
21570 cat >>conftest.$ac_ext <<_ACEOF
21571 /* end confdefs.h.  */
21572
21573
21574 int
21575 main ()
21576 {
21577 return main ();
21578   ;
21579   return 0;
21580 }
21581 _ACEOF
21582 rm -f conftest.$ac_objext conftest$ac_exeext
21583 if { (ac_try="$ac_link"
21584 case "(($ac_try" in
21585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21586   *) ac_try_echo=$ac_try;;
21587 esac
21588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21589   (eval "$ac_link") 2>conftest.er1
21590   ac_status=$?
21591   grep -v '^ *+' conftest.er1 >conftest.err
21592   rm -f conftest.er1
21593   cat conftest.err >&5
21594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21595   (exit $ac_status); } &&
21596          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21597   { (case "(($ac_try" in
21598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21599   *) ac_try_echo=$ac_try;;
21600 esac
21601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21602   (eval "$ac_try") 2>&5
21603   ac_status=$?
21604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21605   (exit $ac_status); }; } &&
21606          { ac_try='test -s conftest$ac_exeext'
21607   { (case "(($ac_try" in
21608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21609   *) ac_try_echo=$ac_try;;
21610 esac
21611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21612   (eval "$ac_try") 2>&5
21613   ac_status=$?
21614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21615   (exit $ac_status); }; }; then
21616   ac_cv_lib_socket_main=yes
21617 else
21618   echo "$as_me: failed program was:" >&5
21619 sed 's/^/| /' conftest.$ac_ext >&5
21620
21621         ac_cv_lib_socket_main=no
21622 fi
21623
21624 rm -f core conftest.err conftest.$ac_objext \
21625       conftest$ac_exeext conftest.$ac_ext
21626 LIBS=$ac_check_lib_save_LIBS
21627 fi
21628 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
21629 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6; }
21630 if test $ac_cv_lib_socket_main = yes; then
21631   LIBSOCKET="-lnsl"
21632 fi
21633
21634 { echo "$as_me:$LINENO: checking for main in -lnsl" >&5
21635 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6; }
21636 if test "${ac_cv_lib_nsl_main+set}" = set; then
21637   echo $ECHO_N "(cached) $ECHO_C" >&6
21638 else
21639   ac_check_lib_save_LIBS=$LIBS
21640 LIBS="-lnsl  $LIBS"
21641 cat >conftest.$ac_ext <<_ACEOF
21642 /* confdefs.h.  */
21643 _ACEOF
21644 cat confdefs.h >>conftest.$ac_ext
21645 cat >>conftest.$ac_ext <<_ACEOF
21646 /* end confdefs.h.  */
21647
21648
21649 int
21650 main ()
21651 {
21652 return main ();
21653   ;
21654   return 0;
21655 }
21656 _ACEOF
21657 rm -f conftest.$ac_objext conftest$ac_exeext
21658 if { (ac_try="$ac_link"
21659 case "(($ac_try" in
21660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21661   *) ac_try_echo=$ac_try;;
21662 esac
21663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21664   (eval "$ac_link") 2>conftest.er1
21665   ac_status=$?
21666   grep -v '^ *+' conftest.er1 >conftest.err
21667   rm -f conftest.er1
21668   cat conftest.err >&5
21669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21670   (exit $ac_status); } &&
21671          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21672   { (case "(($ac_try" in
21673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21674   *) ac_try_echo=$ac_try;;
21675 esac
21676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21677   (eval "$ac_try") 2>&5
21678   ac_status=$?
21679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21680   (exit $ac_status); }; } &&
21681          { ac_try='test -s conftest$ac_exeext'
21682   { (case "(($ac_try" in
21683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21684   *) ac_try_echo=$ac_try;;
21685 esac
21686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21687   (eval "$ac_try") 2>&5
21688   ac_status=$?
21689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21690   (exit $ac_status); }; }; then
21691   ac_cv_lib_nsl_main=yes
21692 else
21693   echo "$as_me: failed program was:" >&5
21694 sed 's/^/| /' conftest.$ac_ext >&5
21695
21696         ac_cv_lib_nsl_main=no
21697 fi
21698
21699 rm -f core conftest.err conftest.$ac_objext \
21700       conftest$ac_exeext conftest.$ac_ext
21701 LIBS=$ac_check_lib_save_LIBS
21702 fi
21703 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
21704 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6; }
21705 if test $ac_cv_lib_nsl_main = yes; then
21706   LIBNSL="-lnsl"
21707 fi
21708
21709 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
21710 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
21711 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
21712   echo $ECHO_N "(cached) $ECHO_C" >&6
21713 else
21714   ac_check_lib_save_LIBS=$LIBS
21715 LIBS="-lcrypt  $LIBS"
21716 cat >conftest.$ac_ext <<_ACEOF
21717 /* confdefs.h.  */
21718 _ACEOF
21719 cat confdefs.h >>conftest.$ac_ext
21720 cat >>conftest.$ac_ext <<_ACEOF
21721 /* end confdefs.h.  */
21722
21723 /* Override any GCC internal prototype to avoid an error.
21724    Use char because int might match the return type of a GCC
21725    builtin and then its argument prototype would still apply.  */
21726 #ifdef __cplusplus
21727 extern "C"
21728 #endif
21729 char crypt ();
21730 int
21731 main ()
21732 {
21733 return crypt ();
21734   ;
21735   return 0;
21736 }
21737 _ACEOF
21738 rm -f conftest.$ac_objext conftest$ac_exeext
21739 if { (ac_try="$ac_link"
21740 case "(($ac_try" in
21741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21742   *) ac_try_echo=$ac_try;;
21743 esac
21744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21745   (eval "$ac_link") 2>conftest.er1
21746   ac_status=$?
21747   grep -v '^ *+' conftest.er1 >conftest.err
21748   rm -f conftest.er1
21749   cat conftest.err >&5
21750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21751   (exit $ac_status); } &&
21752          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21753   { (case "(($ac_try" in
21754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21755   *) ac_try_echo=$ac_try;;
21756 esac
21757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21758   (eval "$ac_try") 2>&5
21759   ac_status=$?
21760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21761   (exit $ac_status); }; } &&
21762          { ac_try='test -s conftest$ac_exeext'
21763   { (case "(($ac_try" in
21764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21765   *) ac_try_echo=$ac_try;;
21766 esac
21767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21768   (eval "$ac_try") 2>&5
21769   ac_status=$?
21770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21771   (exit $ac_status); }; }; then
21772   ac_cv_lib_crypt_crypt=yes
21773 else
21774   echo "$as_me: failed program was:" >&5
21775 sed 's/^/| /' conftest.$ac_ext >&5
21776
21777         ac_cv_lib_crypt_crypt=no
21778 fi
21779
21780 rm -f core conftest.err conftest.$ac_objext \
21781       conftest$ac_exeext conftest.$ac_ext
21782 LIBS=$ac_check_lib_save_LIBS
21783 fi
21784 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
21785 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
21786 if test $ac_cv_lib_crypt_crypt = yes; then
21787   LIBCRYPT="-lcrypt"
21788 fi
21789
21790 if test "$enable_nfsv4" = yes; then
21791     { echo "$as_me:$LINENO: checking for event_dispatch in -levent" >&5
21792 echo $ECHO_N "checking for event_dispatch in -levent... $ECHO_C" >&6; }
21793 if test "${ac_cv_lib_event_event_dispatch+set}" = set; then
21794   echo $ECHO_N "(cached) $ECHO_C" >&6
21795 else
21796   ac_check_lib_save_LIBS=$LIBS
21797 LIBS="-levent  $LIBS"
21798 cat >conftest.$ac_ext <<_ACEOF
21799 /* confdefs.h.  */
21800 _ACEOF
21801 cat confdefs.h >>conftest.$ac_ext
21802 cat >>conftest.$ac_ext <<_ACEOF
21803 /* end confdefs.h.  */
21804
21805 /* Override any GCC internal prototype to avoid an error.
21806    Use char because int might match the return type of a GCC
21807    builtin and then its argument prototype would still apply.  */
21808 #ifdef __cplusplus
21809 extern "C"
21810 #endif
21811 char event_dispatch ();
21812 int
21813 main ()
21814 {
21815 return event_dispatch ();
21816   ;
21817   return 0;
21818 }
21819 _ACEOF
21820 rm -f conftest.$ac_objext conftest$ac_exeext
21821 if { (ac_try="$ac_link"
21822 case "(($ac_try" in
21823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21824   *) ac_try_echo=$ac_try;;
21825 esac
21826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21827   (eval "$ac_link") 2>conftest.er1
21828   ac_status=$?
21829   grep -v '^ *+' conftest.er1 >conftest.err
21830   rm -f conftest.er1
21831   cat conftest.err >&5
21832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21833   (exit $ac_status); } &&
21834          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21835   { (case "(($ac_try" in
21836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21837   *) ac_try_echo=$ac_try;;
21838 esac
21839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21840   (eval "$ac_try") 2>&5
21841   ac_status=$?
21842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21843   (exit $ac_status); }; } &&
21844          { ac_try='test -s conftest$ac_exeext'
21845   { (case "(($ac_try" in
21846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21847   *) ac_try_echo=$ac_try;;
21848 esac
21849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21850   (eval "$ac_try") 2>&5
21851   ac_status=$?
21852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21853   (exit $ac_status); }; }; then
21854   ac_cv_lib_event_event_dispatch=yes
21855 else
21856   echo "$as_me: failed program was:" >&5
21857 sed 's/^/| /' conftest.$ac_ext >&5
21858
21859         ac_cv_lib_event_event_dispatch=no
21860 fi
21861
21862 rm -f core conftest.err conftest.$ac_objext \
21863       conftest$ac_exeext conftest.$ac_ext
21864 LIBS=$ac_check_lib_save_LIBS
21865 fi
21866 { echo "$as_me:$LINENO: result: $ac_cv_lib_event_event_dispatch" >&5
21867 echo "${ECHO_T}$ac_cv_lib_event_event_dispatch" >&6; }
21868 if test $ac_cv_lib_event_event_dispatch = yes; then
21869   libevent=1
21870 else
21871   { { echo "$as_me:$LINENO: error: libevent needed for nfsv4 support" >&5
21872 echo "$as_me: error: libevent needed for nfsv4 support" >&2;}
21873    { (exit 1); exit 1; }; }
21874 fi
21875
21876     { echo "$as_me:$LINENO: checking for nfs4_init_name_mapping in -lnfsidmap" >&5
21877 echo $ECHO_N "checking for nfs4_init_name_mapping in -lnfsidmap... $ECHO_C" >&6; }
21878 if test "${ac_cv_lib_nfsidmap_nfs4_init_name_mapping+set}" = set; then
21879   echo $ECHO_N "(cached) $ECHO_C" >&6
21880 else
21881   ac_check_lib_save_LIBS=$LIBS
21882 LIBS="-lnfsidmap  $LIBS"
21883 cat >conftest.$ac_ext <<_ACEOF
21884 /* confdefs.h.  */
21885 _ACEOF
21886 cat confdefs.h >>conftest.$ac_ext
21887 cat >>conftest.$ac_ext <<_ACEOF
21888 /* end confdefs.h.  */
21889
21890 /* Override any GCC internal prototype to avoid an error.
21891    Use char because int might match the return type of a GCC
21892    builtin and then its argument prototype would still apply.  */
21893 #ifdef __cplusplus
21894 extern "C"
21895 #endif
21896 char nfs4_init_name_mapping ();
21897 int
21898 main ()
21899 {
21900 return nfs4_init_name_mapping ();
21901   ;
21902   return 0;
21903 }
21904 _ACEOF
21905 rm -f conftest.$ac_objext conftest$ac_exeext
21906 if { (ac_try="$ac_link"
21907 case "(($ac_try" in
21908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21909   *) ac_try_echo=$ac_try;;
21910 esac
21911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21912   (eval "$ac_link") 2>conftest.er1
21913   ac_status=$?
21914   grep -v '^ *+' conftest.er1 >conftest.err
21915   rm -f conftest.er1
21916   cat conftest.err >&5
21917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21918   (exit $ac_status); } &&
21919          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21920   { (case "(($ac_try" in
21921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21922   *) ac_try_echo=$ac_try;;
21923 esac
21924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21925   (eval "$ac_try") 2>&5
21926   ac_status=$?
21927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21928   (exit $ac_status); }; } &&
21929          { ac_try='test -s conftest$ac_exeext'
21930   { (case "(($ac_try" in
21931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21932   *) ac_try_echo=$ac_try;;
21933 esac
21934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21935   (eval "$ac_try") 2>&5
21936   ac_status=$?
21937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21938   (exit $ac_status); }; }; then
21939   ac_cv_lib_nfsidmap_nfs4_init_name_mapping=yes
21940 else
21941   echo "$as_me: failed program was:" >&5
21942 sed 's/^/| /' conftest.$ac_ext >&5
21943
21944         ac_cv_lib_nfsidmap_nfs4_init_name_mapping=no
21945 fi
21946
21947 rm -f core conftest.err conftest.$ac_objext \
21948       conftest$ac_exeext conftest.$ac_ext
21949 LIBS=$ac_check_lib_save_LIBS
21950 fi
21951 { echo "$as_me:$LINENO: result: $ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&5
21952 echo "${ECHO_T}$ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&6; }
21953 if test $ac_cv_lib_nfsidmap_nfs4_init_name_mapping = yes; then
21954   libnfsidmap=1
21955 else
21956   { { echo "$as_me:$LINENO: error: libnfsidmap needed for nfsv4 support" >&5
21957 echo "$as_me: error: libnfsidmap needed for nfsv4 support" >&2;}
21958    { (exit 1); exit 1; }; }
21959 fi
21960
21961
21962 for ac_header in event.h
21963 do
21964 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21965 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21966   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21967 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21968 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21969   echo $ECHO_N "(cached) $ECHO_C" >&6
21970 fi
21971 ac_res=`eval echo '${'$as_ac_Header'}'`
21972                { echo "$as_me:$LINENO: result: $ac_res" >&5
21973 echo "${ECHO_T}$ac_res" >&6; }
21974 else
21975   # Is the header compilable?
21976 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21977 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21978 cat >conftest.$ac_ext <<_ACEOF
21979 /* confdefs.h.  */
21980 _ACEOF
21981 cat confdefs.h >>conftest.$ac_ext
21982 cat >>conftest.$ac_ext <<_ACEOF
21983 /* end confdefs.h.  */
21984 $ac_includes_default
21985 #include <$ac_header>
21986 _ACEOF
21987 rm -f conftest.$ac_objext
21988 if { (ac_try="$ac_compile"
21989 case "(($ac_try" in
21990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21991   *) ac_try_echo=$ac_try;;
21992 esac
21993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21994   (eval "$ac_compile") 2>conftest.er1
21995   ac_status=$?
21996   grep -v '^ *+' conftest.er1 >conftest.err
21997   rm -f conftest.er1
21998   cat conftest.err >&5
21999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22000   (exit $ac_status); } &&
22001          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22002   { (case "(($ac_try" in
22003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22004   *) ac_try_echo=$ac_try;;
22005 esac
22006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22007   (eval "$ac_try") 2>&5
22008   ac_status=$?
22009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22010   (exit $ac_status); }; } &&
22011          { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
22018   ac_status=$?
22019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22020   (exit $ac_status); }; }; then
22021   ac_header_compiler=yes
22022 else
22023   echo "$as_me: failed program was:" >&5
22024 sed 's/^/| /' conftest.$ac_ext >&5
22025
22026         ac_header_compiler=no
22027 fi
22028
22029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22030 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22031 echo "${ECHO_T}$ac_header_compiler" >&6; }
22032
22033 # Is the header present?
22034 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22035 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22036 cat >conftest.$ac_ext <<_ACEOF
22037 /* confdefs.h.  */
22038 _ACEOF
22039 cat confdefs.h >>conftest.$ac_ext
22040 cat >>conftest.$ac_ext <<_ACEOF
22041 /* end confdefs.h.  */
22042 #include <$ac_header>
22043 _ACEOF
22044 if { (ac_try="$ac_cpp conftest.$ac_ext"
22045 case "(($ac_try" in
22046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22047   *) ac_try_echo=$ac_try;;
22048 esac
22049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22050   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22051   ac_status=$?
22052   grep -v '^ *+' conftest.er1 >conftest.err
22053   rm -f conftest.er1
22054   cat conftest.err >&5
22055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22056   (exit $ac_status); } >/dev/null; then
22057   if test -s conftest.err; then
22058     ac_cpp_err=$ac_c_preproc_warn_flag
22059     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22060   else
22061     ac_cpp_err=
22062   fi
22063 else
22064   ac_cpp_err=yes
22065 fi
22066 if test -z "$ac_cpp_err"; then
22067   ac_header_preproc=yes
22068 else
22069   echo "$as_me: failed program was:" >&5
22070 sed 's/^/| /' conftest.$ac_ext >&5
22071
22072   ac_header_preproc=no
22073 fi
22074
22075 rm -f conftest.err conftest.$ac_ext
22076 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22077 echo "${ECHO_T}$ac_header_preproc" >&6; }
22078
22079 # So?  What about this header?
22080 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22081   yes:no: )
22082     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22083 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22084     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22085 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22086     ac_header_preproc=yes
22087     ;;
22088   no:yes:* )
22089     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22090 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22091     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22092 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22093     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22094 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22095     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22096 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22097     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22098 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22099     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22100 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22101     ( cat <<\_ASBOX
22102 ## ------------------------------- ##
22103 ## Report this to nfs@lists.sf.net ##
22104 ## ------------------------------- ##
22105 _ASBOX
22106      ) | sed "s/^/$as_me: WARNING:     /" >&2
22107     ;;
22108 esac
22109 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22110 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22111 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22112   echo $ECHO_N "(cached) $ECHO_C" >&6
22113 else
22114   eval "$as_ac_Header=\$ac_header_preproc"
22115 fi
22116 ac_res=`eval echo '${'$as_ac_Header'}'`
22117                { echo "$as_me:$LINENO: result: $ac_res" >&5
22118 echo "${ECHO_T}$ac_res" >&6; }
22119
22120 fi
22121 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22122   cat >>confdefs.h <<_ACEOF
22123 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22124 _ACEOF
22125
22126 else
22127   { { echo "$as_me:$LINENO: error: libevent needed for nfsv4 support" >&5
22128 echo "$as_me: error: libevent needed for nfsv4 support" >&2;}
22129    { (exit 1); exit 1; }; }
22130 fi
22131
22132 done
22133
22134
22135 for ac_header in nfsidmap.h
22136 do
22137 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22138 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22139   { echo "$as_me:$LINENO: checking for $ac_header" >&5
22140 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22141 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22142   echo $ECHO_N "(cached) $ECHO_C" >&6
22143 fi
22144 ac_res=`eval echo '${'$as_ac_Header'}'`
22145                { echo "$as_me:$LINENO: result: $ac_res" >&5
22146 echo "${ECHO_T}$ac_res" >&6; }
22147 else
22148   # Is the header compilable?
22149 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22150 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22151 cat >conftest.$ac_ext <<_ACEOF
22152 /* confdefs.h.  */
22153 _ACEOF
22154 cat confdefs.h >>conftest.$ac_ext
22155 cat >>conftest.$ac_ext <<_ACEOF
22156 /* end confdefs.h.  */
22157 $ac_includes_default
22158 #include <$ac_header>
22159 _ACEOF
22160 rm -f conftest.$ac_objext
22161 if { (ac_try="$ac_compile"
22162 case "(($ac_try" in
22163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22164   *) ac_try_echo=$ac_try;;
22165 esac
22166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22167   (eval "$ac_compile") 2>conftest.er1
22168   ac_status=$?
22169   grep -v '^ *+' conftest.er1 >conftest.err
22170   rm -f conftest.er1
22171   cat conftest.err >&5
22172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22173   (exit $ac_status); } &&
22174          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22175   { (case "(($ac_try" in
22176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22177   *) ac_try_echo=$ac_try;;
22178 esac
22179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22180   (eval "$ac_try") 2>&5
22181   ac_status=$?
22182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22183   (exit $ac_status); }; } &&
22184          { ac_try='test -s conftest.$ac_objext'
22185   { (case "(($ac_try" in
22186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22187   *) ac_try_echo=$ac_try;;
22188 esac
22189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22190   (eval "$ac_try") 2>&5
22191   ac_status=$?
22192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22193   (exit $ac_status); }; }; then
22194   ac_header_compiler=yes
22195 else
22196   echo "$as_me: failed program was:" >&5
22197 sed 's/^/| /' conftest.$ac_ext >&5
22198
22199         ac_header_compiler=no
22200 fi
22201
22202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22203 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22204 echo "${ECHO_T}$ac_header_compiler" >&6; }
22205
22206 # Is the header present?
22207 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22208 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22209 cat >conftest.$ac_ext <<_ACEOF
22210 /* confdefs.h.  */
22211 _ACEOF
22212 cat confdefs.h >>conftest.$ac_ext
22213 cat >>conftest.$ac_ext <<_ACEOF
22214 /* end confdefs.h.  */
22215 #include <$ac_header>
22216 _ACEOF
22217 if { (ac_try="$ac_cpp conftest.$ac_ext"
22218 case "(($ac_try" in
22219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22220   *) ac_try_echo=$ac_try;;
22221 esac
22222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22223   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22224   ac_status=$?
22225   grep -v '^ *+' conftest.er1 >conftest.err
22226   rm -f conftest.er1
22227   cat conftest.err >&5
22228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22229   (exit $ac_status); } >/dev/null; then
22230   if test -s conftest.err; then
22231     ac_cpp_err=$ac_c_preproc_warn_flag
22232     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22233   else
22234     ac_cpp_err=
22235   fi
22236 else
22237   ac_cpp_err=yes
22238 fi
22239 if test -z "$ac_cpp_err"; then
22240   ac_header_preproc=yes
22241 else
22242   echo "$as_me: failed program was:" >&5
22243 sed 's/^/| /' conftest.$ac_ext >&5
22244
22245   ac_header_preproc=no
22246 fi
22247
22248 rm -f conftest.err conftest.$ac_ext
22249 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22250 echo "${ECHO_T}$ac_header_preproc" >&6; }
22251
22252 # So?  What about this header?
22253 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22254   yes:no: )
22255     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22256 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22257     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22258 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22259     ac_header_preproc=yes
22260     ;;
22261   no:yes:* )
22262     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22263 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22264     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22265 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22266     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22267 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22268     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22269 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22270     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22271 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22272     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22273 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22274     ( cat <<\_ASBOX
22275 ## ------------------------------- ##
22276 ## Report this to nfs@lists.sf.net ##
22277 ## ------------------------------- ##
22278 _ASBOX
22279      ) | sed "s/^/$as_me: WARNING:     /" >&2
22280     ;;
22281 esac
22282 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22283 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22284 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22285   echo $ECHO_N "(cached) $ECHO_C" >&6
22286 else
22287   eval "$as_ac_Header=\$ac_header_preproc"
22288 fi
22289 ac_res=`eval echo '${'$as_ac_Header'}'`
22290                { echo "$as_me:$LINENO: result: $ac_res" >&5
22291 echo "${ECHO_T}$ac_res" >&6; }
22292
22293 fi
22294 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22295   cat >>confdefs.h <<_ACEOF
22296 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22297 _ACEOF
22298
22299 else
22300   { { echo "$as_me:$LINENO: error: libnfsidmap needed for nfsv4 support" >&5
22301 echo "$as_me: error: libnfsidmap needed for nfsv4 support" >&2;}
22302    { (exit 1); exit 1; }; }
22303 fi
22304
22305 done
22306
22307             if test "$enable_gss" = yes; then
22308
22309
22310 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
22311         if test -n "$ac_tool_prefix"; then
22312   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
22313 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
22314 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22316 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22317   echo $ECHO_N "(cached) $ECHO_C" >&6
22318 else
22319   case $PKG_CONFIG in
22320   [\\/]* | ?:[\\/]*)
22321   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22322   ;;
22323   *)
22324   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22325 for as_dir in $PATH
22326 do
22327   IFS=$as_save_IFS
22328   test -z "$as_dir" && as_dir=.
22329   for ac_exec_ext in '' $ac_executable_extensions; do
22330   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
22331     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22332     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22333     break 2
22334   fi
22335 done
22336 done
22337 IFS=$as_save_IFS
22338
22339   ;;
22340 esac
22341 fi
22342 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22343 if test -n "$PKG_CONFIG"; then
22344   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22345 echo "${ECHO_T}$PKG_CONFIG" >&6; }
22346 else
22347   { echo "$as_me:$LINENO: result: no" >&5
22348 echo "${ECHO_T}no" >&6; }
22349 fi
22350
22351
22352 fi
22353 if test -z "$ac_cv_path_PKG_CONFIG"; then
22354   ac_pt_PKG_CONFIG=$PKG_CONFIG
22355   # Extract the first word of "pkg-config", so it can be a program name with args.
22356 set dummy pkg-config; ac_word=$2
22357 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22358 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22359 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
22360   echo $ECHO_N "(cached) $ECHO_C" >&6
22361 else
22362   case $ac_pt_PKG_CONFIG in
22363   [\\/]* | ?:[\\/]*)
22364   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
22365   ;;
22366   *)
22367   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22368 for as_dir in $PATH
22369 do
22370   IFS=$as_save_IFS
22371   test -z "$as_dir" && as_dir=.
22372   for ac_exec_ext in '' $ac_executable_extensions; do
22373   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
22374     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22375     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22376     break 2
22377   fi
22378 done
22379 done
22380 IFS=$as_save_IFS
22381
22382   ;;
22383 esac
22384 fi
22385 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
22386 if test -n "$ac_pt_PKG_CONFIG"; then
22387   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
22388 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
22389 else
22390   { echo "$as_me:$LINENO: result: no" >&5
22391 echo "${ECHO_T}no" >&6; }
22392 fi
22393
22394   if test "x$ac_pt_PKG_CONFIG" = x; then
22395     PKG_CONFIG=""
22396   else
22397     case $cross_compiling:$ac_tool_warned in
22398 yes:)
22399 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
22400 whose name does not start with the host triplet.  If you think this
22401 configuration is useful to you, please write to autoconf@gnu.org." >&5
22402 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
22403 whose name does not start with the host triplet.  If you think this
22404 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
22405 ac_tool_warned=yes ;;
22406 esac
22407     PKG_CONFIG=$ac_pt_PKG_CONFIG
22408   fi
22409 else
22410   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
22411 fi
22412
22413 fi
22414 if test -n "$PKG_CONFIG"; then
22415         _pkg_min_version=0.9.0
22416         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
22417 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
22418         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
22419                 { echo "$as_me:$LINENO: result: yes" >&5
22420 echo "${ECHO_T}yes" >&6; }
22421         else
22422                 { echo "$as_me:$LINENO: result: no" >&5
22423 echo "${ECHO_T}no" >&6; }
22424                 PKG_CONFIG=""
22425         fi
22426
22427 fi
22428
22429 pkg_failed=no
22430 { echo "$as_me:$LINENO: checking for RPCSECGSS" >&5
22431 echo $ECHO_N "checking for RPCSECGSS... $ECHO_C" >&6; }
22432
22433 if test -n "$PKG_CONFIG"; then
22434     if test -n "$RPCSECGSS_CFLAGS"; then
22435         pkg_cv_RPCSECGSS_CFLAGS="$RPCSECGSS_CFLAGS"
22436     else
22437         if test -n "$PKG_CONFIG" && \
22438     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"librpcsecgss >= 0.10\"") >&5
22439   ($PKG_CONFIG --exists --print-errors "librpcsecgss >= 0.10") 2>&5
22440   ac_status=$?
22441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22442   (exit $ac_status); }; then
22443   pkg_cv_RPCSECGSS_CFLAGS=`$PKG_CONFIG --cflags "librpcsecgss >= 0.10" 2>/dev/null`
22444 else
22445   pkg_failed=yes
22446 fi
22447     fi
22448 else
22449         pkg_failed=untried
22450 fi
22451 if test -n "$PKG_CONFIG"; then
22452     if test -n "$RPCSECGSS_LIBS"; then
22453         pkg_cv_RPCSECGSS_LIBS="$RPCSECGSS_LIBS"
22454     else
22455         if test -n "$PKG_CONFIG" && \
22456     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"librpcsecgss >= 0.10\"") >&5
22457   ($PKG_CONFIG --exists --print-errors "librpcsecgss >= 0.10") 2>&5
22458   ac_status=$?
22459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22460   (exit $ac_status); }; then
22461   pkg_cv_RPCSECGSS_LIBS=`$PKG_CONFIG --libs "librpcsecgss >= 0.10" 2>/dev/null`
22462 else
22463   pkg_failed=yes
22464 fi
22465     fi
22466 else
22467         pkg_failed=untried
22468 fi
22469
22470
22471
22472 if test $pkg_failed = yes; then
22473
22474 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22475         _pkg_short_errors_supported=yes
22476 else
22477         _pkg_short_errors_supported=no
22478 fi
22479         if test $_pkg_short_errors_supported = yes; then
22480                 RPCSECGSS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "librpcsecgss >= 0.10"`
22481         else
22482                 RPCSECGSS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "librpcsecgss >= 0.10"`
22483         fi
22484         # Put the nasty error message in config.log where it belongs
22485         echo "$RPCSECGSS_PKG_ERRORS" >&5
22486
22487         { { echo "$as_me:$LINENO: error: Unable to locate information required to use librpcsecgss." >&5
22488 echo "$as_me: error: Unable to locate information required to use librpcsecgss." >&2;}
22489    { (exit 1); exit 1; }; }
22490        { { echo "$as_me:$LINENO: error: If you have pkgconfig installed, you might try setting environment" >&5
22491 echo "$as_me: error: If you have pkgconfig installed, you might try setting environment" >&2;}
22492    { (exit 1); exit 1; }; }
22493        { { echo "$as_me:$LINENO: error: variable PKG_CONFIG_PATH to /usr/local/lib/pkgconfig" >&5
22494 echo "$as_me: error: variable PKG_CONFIG_PATH to /usr/local/lib/pkgconfig" >&2;}
22495    { (exit 1); exit 1; }; }
22496
22497
22498 elif test $pkg_failed = untried; then
22499         { { echo "$as_me:$LINENO: error: Unable to locate information required to use librpcsecgss." >&5
22500 echo "$as_me: error: Unable to locate information required to use librpcsecgss." >&2;}
22501    { (exit 1); exit 1; }; }
22502        { { echo "$as_me:$LINENO: error: If you have pkgconfig installed, you might try setting environment" >&5
22503 echo "$as_me: error: If you have pkgconfig installed, you might try setting environment" >&2;}
22504    { (exit 1); exit 1; }; }
22505        { { echo "$as_me:$LINENO: error: variable PKG_CONFIG_PATH to /usr/local/lib/pkgconfig" >&5
22506 echo "$as_me: error: variable PKG_CONFIG_PATH to /usr/local/lib/pkgconfig" >&2;}
22507    { (exit 1); exit 1; }; }
22508
22509
22510 else
22511         RPCSECGSS_CFLAGS=$pkg_cv_RPCSECGSS_CFLAGS
22512         RPCSECGSS_LIBS=$pkg_cv_RPCSECGSS_LIBS
22513         { echo "$as_me:$LINENO: result: yes" >&5
22514 echo "${ECHO_T}yes" >&6; }
22515         :
22516 fi
22517
22518 pkg_failed=no
22519 { echo "$as_me:$LINENO: checking for GSSAPI" >&5
22520 echo $ECHO_N "checking for GSSAPI... $ECHO_C" >&6; }
22521
22522 if test -n "$PKG_CONFIG"; then
22523     if test -n "$GSSAPI_CFLAGS"; then
22524         pkg_cv_GSSAPI_CFLAGS="$GSSAPI_CFLAGS"
22525     else
22526         if test -n "$PKG_CONFIG" && \
22527     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgssapi >= 0.9\"") >&5
22528   ($PKG_CONFIG --exists --print-errors "libgssapi >= 0.9") 2>&5
22529   ac_status=$?
22530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22531   (exit $ac_status); }; then
22532   pkg_cv_GSSAPI_CFLAGS=`$PKG_CONFIG --cflags "libgssapi >= 0.9" 2>/dev/null`
22533 else
22534   pkg_failed=yes
22535 fi
22536     fi
22537 else
22538         pkg_failed=untried
22539 fi
22540 if test -n "$PKG_CONFIG"; then
22541     if test -n "$GSSAPI_LIBS"; then
22542         pkg_cv_GSSAPI_LIBS="$GSSAPI_LIBS"
22543     else
22544         if test -n "$PKG_CONFIG" && \
22545     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgssapi >= 0.9\"") >&5
22546   ($PKG_CONFIG --exists --print-errors "libgssapi >= 0.9") 2>&5
22547   ac_status=$?
22548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22549   (exit $ac_status); }; then
22550   pkg_cv_GSSAPI_LIBS=`$PKG_CONFIG --libs "libgssapi >= 0.9" 2>/dev/null`
22551 else
22552   pkg_failed=yes
22553 fi
22554     fi
22555 else
22556         pkg_failed=untried
22557 fi
22558
22559
22560
22561 if test $pkg_failed = yes; then
22562
22563 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22564         _pkg_short_errors_supported=yes
22565 else
22566         _pkg_short_errors_supported=no
22567 fi
22568         if test $_pkg_short_errors_supported = yes; then
22569                 GSSAPI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgssapi >= 0.9"`
22570         else
22571                 GSSAPI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgssapi >= 0.9"`
22572         fi
22573         # Put the nasty error message in config.log where it belongs
22574         echo "$GSSAPI_PKG_ERRORS" >&5
22575
22576         { { echo "$as_me:$LINENO: error: Package requirements (libgssapi >= 0.9) were not met:
22577
22578 $GSSAPI_PKG_ERRORS
22579
22580 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22581 installed software in a non-standard prefix.
22582
22583 Alternatively, you may set the environment variables GSSAPI_CFLAGS
22584 and GSSAPI_LIBS to avoid the need to call pkg-config.
22585 See the pkg-config man page for more details.
22586 " >&5
22587 echo "$as_me: error: Package requirements (libgssapi >= 0.9) were not met:
22588
22589 $GSSAPI_PKG_ERRORS
22590
22591 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22592 installed software in a non-standard prefix.
22593
22594 Alternatively, you may set the environment variables GSSAPI_CFLAGS
22595 and GSSAPI_LIBS to avoid the need to call pkg-config.
22596 See the pkg-config man page for more details.
22597 " >&2;}
22598    { (exit 1); exit 1; }; }
22599 elif test $pkg_failed = untried; then
22600         { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
22601 is in your PATH or set the PKG_CONFIG environment variable to the full
22602 path to pkg-config.
22603
22604 Alternatively, you may set the environment variables GSSAPI_CFLAGS
22605 and GSSAPI_LIBS to avoid the need to call pkg-config.
22606 See the pkg-config man page for more details.
22607
22608 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
22609 See \`config.log' for more details." >&5
22610 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
22611 is in your PATH or set the PKG_CONFIG environment variable to the full
22612 path to pkg-config.
22613
22614 Alternatively, you may set the environment variables GSSAPI_CFLAGS
22615 and GSSAPI_LIBS to avoid the need to call pkg-config.
22616 See the pkg-config man page for more details.
22617
22618 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
22619 See \`config.log' for more details." >&2;}
22620    { (exit 1); exit 1; }; }
22621 else
22622         GSSAPI_CFLAGS=$pkg_cv_GSSAPI_CFLAGS
22623         GSSAPI_LIBS=$pkg_cv_GSSAPI_LIBS
22624         { echo "$as_me:$LINENO: result: yes" >&5
22625 echo "${ECHO_T}yes" >&6; }
22626         :
22627 fi
22628     fi
22629
22630 fi
22631 if test "$knfsd_cv_glibc2" = no; then
22632     { echo "$as_me:$LINENO: checking for daemon in -lbsd" >&5
22633 echo $ECHO_N "checking for daemon in -lbsd... $ECHO_C" >&6; }
22634 if test "${ac_cv_lib_bsd_daemon+set}" = set; then
22635   echo $ECHO_N "(cached) $ECHO_C" >&6
22636 else
22637   ac_check_lib_save_LIBS=$LIBS
22638 LIBS="-lbsd  $LIBS"
22639 cat >conftest.$ac_ext <<_ACEOF
22640 /* confdefs.h.  */
22641 _ACEOF
22642 cat confdefs.h >>conftest.$ac_ext
22643 cat >>conftest.$ac_ext <<_ACEOF
22644 /* end confdefs.h.  */
22645
22646 /* Override any GCC internal prototype to avoid an error.
22647    Use char because int might match the return type of a GCC
22648    builtin and then its argument prototype would still apply.  */
22649 #ifdef __cplusplus
22650 extern "C"
22651 #endif
22652 char daemon ();
22653 int
22654 main ()
22655 {
22656 return daemon ();
22657   ;
22658   return 0;
22659 }
22660 _ACEOF
22661 rm -f conftest.$ac_objext conftest$ac_exeext
22662 if { (ac_try="$ac_link"
22663 case "(($ac_try" in
22664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22665   *) ac_try_echo=$ac_try;;
22666 esac
22667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22668   (eval "$ac_link") 2>conftest.er1
22669   ac_status=$?
22670   grep -v '^ *+' conftest.er1 >conftest.err
22671   rm -f conftest.er1
22672   cat conftest.err >&5
22673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22674   (exit $ac_status); } &&
22675          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22676   { (case "(($ac_try" in
22677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22678   *) ac_try_echo=$ac_try;;
22679 esac
22680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22681   (eval "$ac_try") 2>&5
22682   ac_status=$?
22683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22684   (exit $ac_status); }; } &&
22685          { ac_try='test -s conftest$ac_exeext'
22686   { (case "(($ac_try" in
22687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22688   *) ac_try_echo=$ac_try;;
22689 esac
22690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22691   (eval "$ac_try") 2>&5
22692   ac_status=$?
22693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22694   (exit $ac_status); }; }; then
22695   ac_cv_lib_bsd_daemon=yes
22696 else
22697   echo "$as_me: failed program was:" >&5
22698 sed 's/^/| /' conftest.$ac_ext >&5
22699
22700         ac_cv_lib_bsd_daemon=no
22701 fi
22702
22703 rm -f core conftest.err conftest.$ac_objext \
22704       conftest$ac_exeext conftest.$ac_ext
22705 LIBS=$ac_check_lib_save_LIBS
22706 fi
22707 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_daemon" >&5
22708 echo "${ECHO_T}$ac_cv_lib_bsd_daemon" >&6; }
22709 if test $ac_cv_lib_bsd_daemon = yes; then
22710   LIBBSD="-lbsd"
22711 fi
22712
22713 fi
22714
22715
22716
22717
22718
22719 if test "$enable_gss" = yes; then
22720
22721 for ac_header in nfsidmap.h
22722 do
22723 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22724 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22725   { echo "$as_me:$LINENO: checking for $ac_header" >&5
22726 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22727 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22728   echo $ECHO_N "(cached) $ECHO_C" >&6
22729 fi
22730 ac_res=`eval echo '${'$as_ac_Header'}'`
22731                { echo "$as_me:$LINENO: result: $ac_res" >&5
22732 echo "${ECHO_T}$ac_res" >&6; }
22733 else
22734   # Is the header compilable?
22735 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22736 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22737 cat >conftest.$ac_ext <<_ACEOF
22738 /* confdefs.h.  */
22739 _ACEOF
22740 cat confdefs.h >>conftest.$ac_ext
22741 cat >>conftest.$ac_ext <<_ACEOF
22742 /* end confdefs.h.  */
22743 $ac_includes_default
22744 #include <$ac_header>
22745 _ACEOF
22746 rm -f conftest.$ac_objext
22747 if { (ac_try="$ac_compile"
22748 case "(($ac_try" in
22749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22750   *) ac_try_echo=$ac_try;;
22751 esac
22752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22753   (eval "$ac_compile") 2>conftest.er1
22754   ac_status=$?
22755   grep -v '^ *+' conftest.er1 >conftest.err
22756   rm -f conftest.er1
22757   cat conftest.err >&5
22758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22759   (exit $ac_status); } &&
22760          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22761   { (case "(($ac_try" in
22762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22763   *) ac_try_echo=$ac_try;;
22764 esac
22765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22766   (eval "$ac_try") 2>&5
22767   ac_status=$?
22768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22769   (exit $ac_status); }; } &&
22770          { ac_try='test -s conftest.$ac_objext'
22771   { (case "(($ac_try" in
22772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22773   *) ac_try_echo=$ac_try;;
22774 esac
22775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22776   (eval "$ac_try") 2>&5
22777   ac_status=$?
22778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22779   (exit $ac_status); }; }; then
22780   ac_header_compiler=yes
22781 else
22782   echo "$as_me: failed program was:" >&5
22783 sed 's/^/| /' conftest.$ac_ext >&5
22784
22785         ac_header_compiler=no
22786 fi
22787
22788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22789 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22790 echo "${ECHO_T}$ac_header_compiler" >&6; }
22791
22792 # Is the header present?
22793 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22794 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22795 cat >conftest.$ac_ext <<_ACEOF
22796 /* confdefs.h.  */
22797 _ACEOF
22798 cat confdefs.h >>conftest.$ac_ext
22799 cat >>conftest.$ac_ext <<_ACEOF
22800 /* end confdefs.h.  */
22801 #include <$ac_header>
22802 _ACEOF
22803 if { (ac_try="$ac_cpp conftest.$ac_ext"
22804 case "(($ac_try" in
22805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22806   *) ac_try_echo=$ac_try;;
22807 esac
22808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22809   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22810   ac_status=$?
22811   grep -v '^ *+' conftest.er1 >conftest.err
22812   rm -f conftest.er1
22813   cat conftest.err >&5
22814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22815   (exit $ac_status); } >/dev/null; then
22816   if test -s conftest.err; then
22817     ac_cpp_err=$ac_c_preproc_warn_flag
22818     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22819   else
22820     ac_cpp_err=
22821   fi
22822 else
22823   ac_cpp_err=yes
22824 fi
22825 if test -z "$ac_cpp_err"; then
22826   ac_header_preproc=yes
22827 else
22828   echo "$as_me: failed program was:" >&5
22829 sed 's/^/| /' conftest.$ac_ext >&5
22830
22831   ac_header_preproc=no
22832 fi
22833
22834 rm -f conftest.err conftest.$ac_ext
22835 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22836 echo "${ECHO_T}$ac_header_preproc" >&6; }
22837
22838 # So?  What about this header?
22839 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22840   yes:no: )
22841     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22842 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22843     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22844 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22845     ac_header_preproc=yes
22846     ;;
22847   no:yes:* )
22848     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22849 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22850     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22851 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22852     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22853 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22854     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22855 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22856     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22857 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22858     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22859 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22860     ( cat <<\_ASBOX
22861 ## ------------------------------- ##
22862 ## Report this to nfs@lists.sf.net ##
22863 ## ------------------------------- ##
22864 _ASBOX
22865      ) | sed "s/^/$as_me: WARNING:     /" >&2
22866     ;;
22867 esac
22868 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22869 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22870 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22871   echo $ECHO_N "(cached) $ECHO_C" >&6
22872 else
22873   eval "$as_ac_Header=\$ac_header_preproc"
22874 fi
22875 ac_res=`eval echo '${'$as_ac_Header'}'`
22876                { echo "$as_me:$LINENO: result: $ac_res" >&5
22877 echo "${ECHO_T}$ac_res" >&6; }
22878
22879 fi
22880 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22881   cat >>confdefs.h <<_ACEOF
22882 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22883 _ACEOF
22884
22885 else
22886   { { echo "$as_me:$LINENO: error: libnfsidmap needed for gss support" >&5
22887 echo "$as_me: error: libnfsidmap needed for gss support" >&2;}
22888    { (exit 1); exit 1; }; }
22889 fi
22890
22891 done
22892
22893
22894 for ac_header in spkm3.h
22895 do
22896 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22897 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22898   { echo "$as_me:$LINENO: checking for $ac_header" >&5
22899 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22900 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22901   echo $ECHO_N "(cached) $ECHO_C" >&6
22902 fi
22903 ac_res=`eval echo '${'$as_ac_Header'}'`
22904                { echo "$as_me:$LINENO: result: $ac_res" >&5
22905 echo "${ECHO_T}$ac_res" >&6; }
22906 else
22907   # Is the header compilable?
22908 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22909 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22910 cat >conftest.$ac_ext <<_ACEOF
22911 /* confdefs.h.  */
22912 _ACEOF
22913 cat confdefs.h >>conftest.$ac_ext
22914 cat >>conftest.$ac_ext <<_ACEOF
22915 /* end confdefs.h.  */
22916 $ac_includes_default
22917 #include <$ac_header>
22918 _ACEOF
22919 rm -f conftest.$ac_objext
22920 if { (ac_try="$ac_compile"
22921 case "(($ac_try" in
22922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22923   *) ac_try_echo=$ac_try;;
22924 esac
22925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22926   (eval "$ac_compile") 2>conftest.er1
22927   ac_status=$?
22928   grep -v '^ *+' conftest.er1 >conftest.err
22929   rm -f conftest.er1
22930   cat conftest.err >&5
22931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22932   (exit $ac_status); } &&
22933          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22934   { (case "(($ac_try" in
22935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22936   *) ac_try_echo=$ac_try;;
22937 esac
22938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22939   (eval "$ac_try") 2>&5
22940   ac_status=$?
22941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22942   (exit $ac_status); }; } &&
22943          { ac_try='test -s conftest.$ac_objext'
22944   { (case "(($ac_try" in
22945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22946   *) ac_try_echo=$ac_try;;
22947 esac
22948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22949   (eval "$ac_try") 2>&5
22950   ac_status=$?
22951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22952   (exit $ac_status); }; }; then
22953   ac_header_compiler=yes
22954 else
22955   echo "$as_me: failed program was:" >&5
22956 sed 's/^/| /' conftest.$ac_ext >&5
22957
22958         ac_header_compiler=no
22959 fi
22960
22961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22962 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22963 echo "${ECHO_T}$ac_header_compiler" >&6; }
22964
22965 # Is the header present?
22966 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22967 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22968 cat >conftest.$ac_ext <<_ACEOF
22969 /* confdefs.h.  */
22970 _ACEOF
22971 cat confdefs.h >>conftest.$ac_ext
22972 cat >>conftest.$ac_ext <<_ACEOF
22973 /* end confdefs.h.  */
22974 #include <$ac_header>
22975 _ACEOF
22976 if { (ac_try="$ac_cpp conftest.$ac_ext"
22977 case "(($ac_try" in
22978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22979   *) ac_try_echo=$ac_try;;
22980 esac
22981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22982   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22983   ac_status=$?
22984   grep -v '^ *+' conftest.er1 >conftest.err
22985   rm -f conftest.er1
22986   cat conftest.err >&5
22987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22988   (exit $ac_status); } >/dev/null; then
22989   if test -s conftest.err; then
22990     ac_cpp_err=$ac_c_preproc_warn_flag
22991     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22992   else
22993     ac_cpp_err=
22994   fi
22995 else
22996   ac_cpp_err=yes
22997 fi
22998 if test -z "$ac_cpp_err"; then
22999   ac_header_preproc=yes
23000 else
23001   echo "$as_me: failed program was:" >&5
23002 sed 's/^/| /' conftest.$ac_ext >&5
23003
23004   ac_header_preproc=no
23005 fi
23006
23007 rm -f conftest.err conftest.$ac_ext
23008 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23009 echo "${ECHO_T}$ac_header_preproc" >&6; }
23010
23011 # So?  What about this header?
23012 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23013   yes:no: )
23014     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23015 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23016     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23017 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23018     ac_header_preproc=yes
23019     ;;
23020   no:yes:* )
23021     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23022 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23023     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23024 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23025     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23026 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23027     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23028 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23029     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23030 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23031     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23032 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23033     ( cat <<\_ASBOX
23034 ## ------------------------------- ##
23035 ## Report this to nfs@lists.sf.net ##
23036 ## ------------------------------- ##
23037 _ASBOX
23038      ) | sed "s/^/$as_me: WARNING:     /" >&2
23039     ;;
23040 esac
23041 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23042 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23043 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23044   echo $ECHO_N "(cached) $ECHO_C" >&6
23045 else
23046   eval "$as_ac_Header=\$ac_header_preproc"
23047 fi
23048 ac_res=`eval echo '${'$as_ac_Header'}'`
23049                { echo "$as_me:$LINENO: result: $ac_res" >&5
23050 echo "${ECHO_T}$ac_res" >&6; }
23051
23052 fi
23053 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23054   cat >>confdefs.h <<_ACEOF
23055 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23056 _ACEOF
23057
23058 else
23059   { echo "$as_me:$LINENO: WARNING: could not locate SPKM3 header; will not have SPKM3 support" >&5
23060 echo "$as_me: WARNING: could not locate SPKM3 header; will not have SPKM3 support" >&2;}
23061 fi
23062
23063 done
23064
23065     { echo "$as_me:$LINENO: checking for nfs4_set_debug in -lnfsidmap" >&5
23066 echo $ECHO_N "checking for nfs4_set_debug in -lnfsidmap... $ECHO_C" >&6; }
23067 if test "${ac_cv_lib_nfsidmap_nfs4_set_debug+set}" = set; then
23068   echo $ECHO_N "(cached) $ECHO_C" >&6
23069 else
23070   ac_check_lib_save_LIBS=$LIBS
23071 LIBS="-lnfsidmap  $LIBS"
23072 cat >conftest.$ac_ext <<_ACEOF
23073 /* confdefs.h.  */
23074 _ACEOF
23075 cat confdefs.h >>conftest.$ac_ext
23076 cat >>conftest.$ac_ext <<_ACEOF
23077 /* end confdefs.h.  */
23078
23079 /* Override any GCC internal prototype to avoid an error.
23080    Use char because int might match the return type of a GCC
23081    builtin and then its argument prototype would still apply.  */
23082 #ifdef __cplusplus
23083 extern "C"
23084 #endif
23085 char nfs4_set_debug ();
23086 int
23087 main ()
23088 {
23089 return nfs4_set_debug ();
23090   ;
23091   return 0;
23092 }
23093 _ACEOF
23094 rm -f conftest.$ac_objext conftest$ac_exeext
23095 if { (ac_try="$ac_link"
23096 case "(($ac_try" in
23097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23098   *) ac_try_echo=$ac_try;;
23099 esac
23100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23101   (eval "$ac_link") 2>conftest.er1
23102   ac_status=$?
23103   grep -v '^ *+' conftest.er1 >conftest.err
23104   rm -f conftest.er1
23105   cat conftest.err >&5
23106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23107   (exit $ac_status); } &&
23108          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23109   { (case "(($ac_try" in
23110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23111   *) ac_try_echo=$ac_try;;
23112 esac
23113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23114   (eval "$ac_try") 2>&5
23115   ac_status=$?
23116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23117   (exit $ac_status); }; } &&
23118          { ac_try='test -s conftest$ac_exeext'
23119   { (case "(($ac_try" in
23120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23121   *) ac_try_echo=$ac_try;;
23122 esac
23123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23124   (eval "$ac_try") 2>&5
23125   ac_status=$?
23126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23127   (exit $ac_status); }; }; then
23128   ac_cv_lib_nfsidmap_nfs4_set_debug=yes
23129 else
23130   echo "$as_me: failed program was:" >&5
23131 sed 's/^/| /' conftest.$ac_ext >&5
23132
23133         ac_cv_lib_nfsidmap_nfs4_set_debug=no
23134 fi
23135
23136 rm -f core conftest.err conftest.$ac_objext \
23137       conftest$ac_exeext conftest.$ac_ext
23138 LIBS=$ac_check_lib_save_LIBS
23139 fi
23140 { echo "$as_me:$LINENO: result: $ac_cv_lib_nfsidmap_nfs4_set_debug" >&5
23141 echo "${ECHO_T}$ac_cv_lib_nfsidmap_nfs4_set_debug" >&6; }
23142 if test $ac_cv_lib_nfsidmap_nfs4_set_debug = yes; then
23143
23144 cat >>confdefs.h <<\_ACEOF
23145 #define HAVE_NFS4_SET_DEBUG 1
23146 _ACEOF
23147
23148 fi
23149
23150
23151
23152   { echo "$as_me:$LINENO: checking for Kerberos v5" >&5
23153 echo $ECHO_N "checking for Kerberos v5... $ECHO_C" >&6; }
23154
23155 # Check whether --with-krb5 was given.
23156 if test "${with_krb5+set}" = set; then
23157   withval=$with_krb5;  case "$withval" in
23158     yes|no)
23159        krb5_with=""
23160        ;;
23161     *)
23162        krb5_with="$withval"
23163        ;;
23164     esac
23165
23166 fi
23167
23168
23169   for dir in $krb5_with /usr /usr/kerberos /usr/local /usr/local/krb5 \
23170              /usr/krb5 /usr/heimdal /usr/local/heimdal /usr/athena ; do
23171             K5CONFIG=""
23172     if test -f $dir/bin/krb5-config; then
23173       K5CONFIG=$dir/bin/krb5-config
23174     elif test -f "/usr/kerberos/bin/krb5-config"; then
23175       K5CONFIG="/usr/kerberos/bin/krb5-config"
23176     elif test -f "/usr/lib/mit/bin/krb5-config"; then
23177       K5CONFIG="/usr/lib/mit/bin/krb5-config"
23178     fi
23179     if test "$K5CONFIG" != ""; then
23180       KRBCFLAGS=`$K5CONFIG --cflags`
23181       KRBLIBS=`$K5CONFIG --libs gssapi`
23182       K5VERS=`$K5CONFIG --version | head -n 1 | awk '{split($(4),v,"."); if (v["3"] == "") v["3"] = "0"; print v["1"]v["2"]v["3"] }'`
23183
23184 cat >>confdefs.h <<_ACEOF
23185 #define KRB5_VERSION $K5VERS
23186 _ACEOF
23187
23188       if test -f $dir/include/gssapi/gssapi_krb5.h -a \
23189                 \( -f $dir/lib/libgssapi_krb5.a -o \
23190                    -f $dir/lib/libgssapi_krb5.so \) ; then
23191
23192 cat >>confdefs.h <<\_ACEOF
23193 #define HAVE_KRB5 1
23194 _ACEOF
23195
23196          KRBDIR="$dir"
23197                      if test $K5VERS -le 131; then
23198
23199 cat >>confdefs.h <<\_ACEOF
23200 #define USE_GSS_KRB5_CCACHE_NAME 1
23201 _ACEOF
23202
23203          fi
23204          gssapi_lib=gssapi_krb5
23205          break
23206                   elif test \( -f $dir/include/heim_err.h -o\
23207                  -f $dir/include/heimdal/heim_err.h \) -a \
23208                 -f $dir/lib/libroken.a; then
23209
23210 cat >>confdefs.h <<\_ACEOF
23211 #define HAVE_HEIMDAL 1
23212 _ACEOF
23213
23214          KRBDIR="$dir"
23215          gssapi_lib=gssapi
23216         break
23217       fi
23218     fi
23219   done
23220     if test "x$KRBDIR" = "x"; then
23221     if test "x$krb5_with" = "x"; then
23222       { { echo "$as_me:$LINENO: error: Kerberos v5 with GSS support not found: consider --disable-gss or --with-krb5=" >&5
23223 echo "$as_me: error: Kerberos v5 with GSS support not found: consider --disable-gss or --with-krb5=" >&2;}
23224    { (exit 1); exit 1; }; }
23225     else
23226       { { echo "$as_me:$LINENO: error: Kerberos v5 with GSS support not found at $krb5_with" >&5
23227 echo "$as_me: error: Kerberos v5 with GSS support not found at $krb5_with" >&2;}
23228    { (exit 1); exit 1; }; }
23229     fi
23230   fi
23231   { echo "$as_me:$LINENO: result: $KRBDIR" >&5
23232 echo "${ECHO_T}$KRBDIR" >&6; }
23233
23234     echo "The current KRBDIR is $KRBDIR"
23235   if test "$KRBDIR/lib" = "/lib" -o "$KRBDIR/lib" = "/usr/lib" \
23236        -o "$KRBDIR/lib" = "//lib" -o "$KRBDIR/lib" = "/usr//lib" ; then
23237     KRBLDFLAGS="";
23238   elif /sbin/ldconfig -p | grep > /dev/null "=> $KRBDIR/lib/"; then
23239     KRBLDFLAGS="";
23240   else
23241     KRBLDFLAGS="-Wl,-rpath=$KRBDIR/lib"
23242   fi
23243
23244     as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_export_lucid_sec_context" | $as_tr_sh`
23245 { echo "$as_me:$LINENO: checking for gss_krb5_export_lucid_sec_context in -l$gssapi_lib" >&5
23246 echo $ECHO_N "checking for gss_krb5_export_lucid_sec_context in -l$gssapi_lib... $ECHO_C" >&6; }
23247 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23248   echo $ECHO_N "(cached) $ECHO_C" >&6
23249 else
23250   ac_check_lib_save_LIBS=$LIBS
23251 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
23252 cat >conftest.$ac_ext <<_ACEOF
23253 /* confdefs.h.  */
23254 _ACEOF
23255 cat confdefs.h >>conftest.$ac_ext
23256 cat >>conftest.$ac_ext <<_ACEOF
23257 /* end confdefs.h.  */
23258
23259 /* Override any GCC internal prototype to avoid an error.
23260    Use char because int might match the return type of a GCC
23261    builtin and then its argument prototype would still apply.  */
23262 #ifdef __cplusplus
23263 extern "C"
23264 #endif
23265 char gss_krb5_export_lucid_sec_context ();
23266 int
23267 main ()
23268 {
23269 return gss_krb5_export_lucid_sec_context ();
23270   ;
23271   return 0;
23272 }
23273 _ACEOF
23274 rm -f conftest.$ac_objext conftest$ac_exeext
23275 if { (ac_try="$ac_link"
23276 case "(($ac_try" in
23277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23278   *) ac_try_echo=$ac_try;;
23279 esac
23280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23281   (eval "$ac_link") 2>conftest.er1
23282   ac_status=$?
23283   grep -v '^ *+' conftest.er1 >conftest.err
23284   rm -f conftest.er1
23285   cat conftest.err >&5
23286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23287   (exit $ac_status); } &&
23288          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23289   { (case "(($ac_try" in
23290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23291   *) ac_try_echo=$ac_try;;
23292 esac
23293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23294   (eval "$ac_try") 2>&5
23295   ac_status=$?
23296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23297   (exit $ac_status); }; } &&
23298          { ac_try='test -s conftest$ac_exeext'
23299   { (case "(($ac_try" in
23300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23301   *) ac_try_echo=$ac_try;;
23302 esac
23303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23304   (eval "$ac_try") 2>&5
23305   ac_status=$?
23306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23307   (exit $ac_status); }; }; then
23308   eval "$as_ac_Lib=yes"
23309 else
23310   echo "$as_me: failed program was:" >&5
23311 sed 's/^/| /' conftest.$ac_ext >&5
23312
23313         eval "$as_ac_Lib=no"
23314 fi
23315
23316 rm -f core conftest.err conftest.$ac_objext \
23317       conftest$ac_exeext conftest.$ac_ext
23318 LIBS=$ac_check_lib_save_LIBS
23319 fi
23320 ac_res=`eval echo '${'$as_ac_Lib'}'`
23321                { echo "$as_me:$LINENO: result: $ac_res" >&5
23322 echo "${ECHO_T}$ac_res" >&6; }
23323 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23324
23325 cat >>confdefs.h <<\_ACEOF
23326 #define HAVE_LUCID_CONTEXT_SUPPORT 1
23327 _ACEOF
23328
23329 fi
23330
23331   as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_set_allowable_enctypes" | $as_tr_sh`
23332 { echo "$as_me:$LINENO: checking for gss_krb5_set_allowable_enctypes in -l$gssapi_lib" >&5
23333 echo $ECHO_N "checking for gss_krb5_set_allowable_enctypes in -l$gssapi_lib... $ECHO_C" >&6; }
23334 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23335   echo $ECHO_N "(cached) $ECHO_C" >&6
23336 else
23337   ac_check_lib_save_LIBS=$LIBS
23338 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
23339 cat >conftest.$ac_ext <<_ACEOF
23340 /* confdefs.h.  */
23341 _ACEOF
23342 cat confdefs.h >>conftest.$ac_ext
23343 cat >>conftest.$ac_ext <<_ACEOF
23344 /* end confdefs.h.  */
23345
23346 /* Override any GCC internal prototype to avoid an error.
23347    Use char because int might match the return type of a GCC
23348    builtin and then its argument prototype would still apply.  */
23349 #ifdef __cplusplus
23350 extern "C"
23351 #endif
23352 char gss_krb5_set_allowable_enctypes ();
23353 int
23354 main ()
23355 {
23356 return gss_krb5_set_allowable_enctypes ();
23357   ;
23358   return 0;
23359 }
23360 _ACEOF
23361 rm -f conftest.$ac_objext conftest$ac_exeext
23362 if { (ac_try="$ac_link"
23363 case "(($ac_try" in
23364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23365   *) ac_try_echo=$ac_try;;
23366 esac
23367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23368   (eval "$ac_link") 2>conftest.er1
23369   ac_status=$?
23370   grep -v '^ *+' conftest.er1 >conftest.err
23371   rm -f conftest.er1
23372   cat conftest.err >&5
23373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23374   (exit $ac_status); } &&
23375          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23376   { (case "(($ac_try" in
23377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23378   *) ac_try_echo=$ac_try;;
23379 esac
23380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23381   (eval "$ac_try") 2>&5
23382   ac_status=$?
23383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23384   (exit $ac_status); }; } &&
23385          { ac_try='test -s conftest$ac_exeext'
23386   { (case "(($ac_try" in
23387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23388   *) ac_try_echo=$ac_try;;
23389 esac
23390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23391   (eval "$ac_try") 2>&5
23392   ac_status=$?
23393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23394   (exit $ac_status); }; }; then
23395   eval "$as_ac_Lib=yes"
23396 else
23397   echo "$as_me: failed program was:" >&5
23398 sed 's/^/| /' conftest.$ac_ext >&5
23399
23400         eval "$as_ac_Lib=no"
23401 fi
23402
23403 rm -f core conftest.err conftest.$ac_objext \
23404       conftest$ac_exeext conftest.$ac_ext
23405 LIBS=$ac_check_lib_save_LIBS
23406 fi
23407 ac_res=`eval echo '${'$as_ac_Lib'}'`
23408                { echo "$as_me:$LINENO: result: $ac_res" >&5
23409 echo "${ECHO_T}$ac_res" >&6; }
23410 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23411
23412 cat >>confdefs.h <<\_ACEOF
23413 #define HAVE_SET_ALLOWABLE_ENCTYPES 1
23414 _ACEOF
23415
23416 fi
23417
23418   as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_ccache_name" | $as_tr_sh`
23419 { echo "$as_me:$LINENO: checking for gss_krb5_ccache_name in -l$gssapi_lib" >&5
23420 echo $ECHO_N "checking for gss_krb5_ccache_name in -l$gssapi_lib... $ECHO_C" >&6; }
23421 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23422   echo $ECHO_N "(cached) $ECHO_C" >&6
23423 else
23424   ac_check_lib_save_LIBS=$LIBS
23425 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
23426 cat >conftest.$ac_ext <<_ACEOF
23427 /* confdefs.h.  */
23428 _ACEOF
23429 cat confdefs.h >>conftest.$ac_ext
23430 cat >>conftest.$ac_ext <<_ACEOF
23431 /* end confdefs.h.  */
23432
23433 /* Override any GCC internal prototype to avoid an error.
23434    Use char because int might match the return type of a GCC
23435    builtin and then its argument prototype would still apply.  */
23436 #ifdef __cplusplus
23437 extern "C"
23438 #endif
23439 char gss_krb5_ccache_name ();
23440 int
23441 main ()
23442 {
23443 return gss_krb5_ccache_name ();
23444   ;
23445   return 0;
23446 }
23447 _ACEOF
23448 rm -f conftest.$ac_objext conftest$ac_exeext
23449 if { (ac_try="$ac_link"
23450 case "(($ac_try" in
23451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23452   *) ac_try_echo=$ac_try;;
23453 esac
23454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23455   (eval "$ac_link") 2>conftest.er1
23456   ac_status=$?
23457   grep -v '^ *+' conftest.er1 >conftest.err
23458   rm -f conftest.er1
23459   cat conftest.err >&5
23460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23461   (exit $ac_status); } &&
23462          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23463   { (case "(($ac_try" in
23464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23465   *) ac_try_echo=$ac_try;;
23466 esac
23467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23468   (eval "$ac_try") 2>&5
23469   ac_status=$?
23470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23471   (exit $ac_status); }; } &&
23472          { ac_try='test -s conftest$ac_exeext'
23473   { (case "(($ac_try" in
23474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23475   *) ac_try_echo=$ac_try;;
23476 esac
23477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23478   (eval "$ac_try") 2>&5
23479   ac_status=$?
23480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23481   (exit $ac_status); }; }; then
23482   eval "$as_ac_Lib=yes"
23483 else
23484   echo "$as_me: failed program was:" >&5
23485 sed 's/^/| /' conftest.$ac_ext >&5
23486
23487         eval "$as_ac_Lib=no"
23488 fi
23489
23490 rm -f core conftest.err conftest.$ac_objext \
23491       conftest$ac_exeext conftest.$ac_ext
23492 LIBS=$ac_check_lib_save_LIBS
23493 fi
23494 ac_res=`eval echo '${'$as_ac_Lib'}'`
23495                { echo "$as_me:$LINENO: result: $ac_res" >&5
23496 echo "${ECHO_T}$ac_res" >&6; }
23497 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23498
23499 cat >>confdefs.h <<\_ACEOF
23500 #define HAVE_GSS_KRB5_CCACHE_NAME 1
23501 _ACEOF
23502
23503 fi
23504
23505
23506     if test "x$krb5_with" != "x" -a "$krb5_with" != "$KRBDIR"; then
23507     { echo "$as_me:$LINENO: WARNING: Using $KRBDIR instead of requested value of $krb5_with for Kerberos!" >&5
23508 echo "$as_me: WARNING: Using $KRBDIR instead of requested value of $krb5_with for Kerberos!" >&2;}
23509   fi
23510
23511
23512
23513
23514
23515
23516
23517
23518
23519       { echo "$as_me:$LINENO: checking for authgss_create_default in -lrpcsecgss" >&5
23520 echo $ECHO_N "checking for authgss_create_default in -lrpcsecgss... $ECHO_C" >&6; }
23521 if test "${ac_cv_lib_rpcsecgss_authgss_create_default+set}" = set; then
23522   echo $ECHO_N "(cached) $ECHO_C" >&6
23523 else
23524   ac_check_lib_save_LIBS=$LIBS
23525 LIBS="-lrpcsecgss -lgssapi -ldl $LIBS"
23526 cat >conftest.$ac_ext <<_ACEOF
23527 /* confdefs.h.  */
23528 _ACEOF
23529 cat confdefs.h >>conftest.$ac_ext
23530 cat >>conftest.$ac_ext <<_ACEOF
23531 /* end confdefs.h.  */
23532
23533 /* Override any GCC internal prototype to avoid an error.
23534    Use char because int might match the return type of a GCC
23535    builtin and then its argument prototype would still apply.  */
23536 #ifdef __cplusplus
23537 extern "C"
23538 #endif
23539 char authgss_create_default ();
23540 int
23541 main ()
23542 {
23543 return authgss_create_default ();
23544   ;
23545   return 0;
23546 }
23547 _ACEOF
23548 rm -f conftest.$ac_objext conftest$ac_exeext
23549 if { (ac_try="$ac_link"
23550 case "(($ac_try" in
23551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23552   *) ac_try_echo=$ac_try;;
23553 esac
23554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23555   (eval "$ac_link") 2>conftest.er1
23556   ac_status=$?
23557   grep -v '^ *+' conftest.er1 >conftest.err
23558   rm -f conftest.er1
23559   cat conftest.err >&5
23560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23561   (exit $ac_status); } &&
23562          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23563   { (case "(($ac_try" in
23564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23565   *) ac_try_echo=$ac_try;;
23566 esac
23567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23568   (eval "$ac_try") 2>&5
23569   ac_status=$?
23570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23571   (exit $ac_status); }; } &&
23572          { ac_try='test -s conftest$ac_exeext'
23573   { (case "(($ac_try" in
23574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23575   *) ac_try_echo=$ac_try;;
23576 esac
23577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23578   (eval "$ac_try") 2>&5
23579   ac_status=$?
23580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23581   (exit $ac_status); }; }; then
23582   ac_cv_lib_rpcsecgss_authgss_create_default=yes
23583 else
23584   echo "$as_me: failed program was:" >&5
23585 sed 's/^/| /' conftest.$ac_ext >&5
23586
23587         ac_cv_lib_rpcsecgss_authgss_create_default=no
23588 fi
23589
23590 rm -f core conftest.err conftest.$ac_objext \
23591       conftest$ac_exeext conftest.$ac_ext
23592 LIBS=$ac_check_lib_save_LIBS
23593 fi
23594 { echo "$as_me:$LINENO: result: $ac_cv_lib_rpcsecgss_authgss_create_default" >&5
23595 echo "${ECHO_T}$ac_cv_lib_rpcsecgss_authgss_create_default" >&6; }
23596 if test $ac_cv_lib_rpcsecgss_authgss_create_default = yes; then
23597   librpcsecgss=1
23598 else
23599   { { echo "$as_me:$LINENO: error: librpcsecgss needed for nfsv4 support" >&5
23600 echo "$as_me: error: librpcsecgss needed for nfsv4 support" >&2;}
23601    { (exit 1); exit 1; }; }
23602 fi
23603
23604   { echo "$as_me:$LINENO: checking for authgss_set_debug_level in -lrpcsecgss" >&5
23605 echo $ECHO_N "checking for authgss_set_debug_level in -lrpcsecgss... $ECHO_C" >&6; }
23606 if test "${ac_cv_lib_rpcsecgss_authgss_set_debug_level+set}" = set; then
23607   echo $ECHO_N "(cached) $ECHO_C" >&6
23608 else
23609   ac_check_lib_save_LIBS=$LIBS
23610 LIBS="-lrpcsecgss -lgssapi -ldl $LIBS"
23611 cat >conftest.$ac_ext <<_ACEOF
23612 /* confdefs.h.  */
23613 _ACEOF
23614 cat confdefs.h >>conftest.$ac_ext
23615 cat >>conftest.$ac_ext <<_ACEOF
23616 /* end confdefs.h.  */
23617
23618 /* Override any GCC internal prototype to avoid an error.
23619    Use char because int might match the return type of a GCC
23620    builtin and then its argument prototype would still apply.  */
23621 #ifdef __cplusplus
23622 extern "C"
23623 #endif
23624 char authgss_set_debug_level ();
23625 int
23626 main ()
23627 {
23628 return authgss_set_debug_level ();
23629   ;
23630   return 0;
23631 }
23632 _ACEOF
23633 rm -f conftest.$ac_objext conftest$ac_exeext
23634 if { (ac_try="$ac_link"
23635 case "(($ac_try" in
23636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23637   *) ac_try_echo=$ac_try;;
23638 esac
23639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23640   (eval "$ac_link") 2>conftest.er1
23641   ac_status=$?
23642   grep -v '^ *+' conftest.er1 >conftest.err
23643   rm -f conftest.er1
23644   cat conftest.err >&5
23645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23646   (exit $ac_status); } &&
23647          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23648   { (case "(($ac_try" in
23649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23650   *) ac_try_echo=$ac_try;;
23651 esac
23652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23653   (eval "$ac_try") 2>&5
23654   ac_status=$?
23655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23656   (exit $ac_status); }; } &&
23657          { ac_try='test -s conftest$ac_exeext'
23658   { (case "(($ac_try" in
23659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23660   *) ac_try_echo=$ac_try;;
23661 esac
23662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23663   (eval "$ac_try") 2>&5
23664   ac_status=$?
23665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23666   (exit $ac_status); }; }; then
23667   ac_cv_lib_rpcsecgss_authgss_set_debug_level=yes
23668 else
23669   echo "$as_me: failed program was:" >&5
23670 sed 's/^/| /' conftest.$ac_ext >&5
23671
23672         ac_cv_lib_rpcsecgss_authgss_set_debug_level=no
23673 fi
23674
23675 rm -f core conftest.err conftest.$ac_objext \
23676       conftest$ac_exeext conftest.$ac_ext
23677 LIBS=$ac_check_lib_save_LIBS
23678 fi
23679 { echo "$as_me:$LINENO: result: $ac_cv_lib_rpcsecgss_authgss_set_debug_level" >&5
23680 echo "${ECHO_T}$ac_cv_lib_rpcsecgss_authgss_set_debug_level" >&6; }
23681 if test $ac_cv_lib_rpcsecgss_authgss_set_debug_level = yes; then
23682
23683 cat >>confdefs.h <<\_ACEOF
23684 #define HAVE_AUTHGSS_SET_DEBUG_LEVEL 1
23685 _ACEOF
23686
23687 fi
23688
23689
23690 fi
23691
23692
23693
23694
23695
23696
23697
23698
23699
23700
23701
23702
23703
23704
23705
23706
23707
23708
23709
23710
23711
23712
23713
23714
23715 for ac_header in arpa/inet.h fcntl.h libintl.h limits.h \
23716                  malloc.h memory.h netdb.h netinet/in.h paths.h \
23717                  stdlib.h string.h sys/file.h sys/ioctl.h sys/mount.h \
23718                  sys/param.h sys/socket.h sys/time.h sys/vfs.h \
23719                  syslog.h unistd.h com_err.h et/com_err.h \
23720                  ifaddrs.h
23721 do
23722 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23723 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23724   { echo "$as_me:$LINENO: checking for $ac_header" >&5
23725 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23726 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23727   echo $ECHO_N "(cached) $ECHO_C" >&6
23728 fi
23729 ac_res=`eval echo '${'$as_ac_Header'}'`
23730                { echo "$as_me:$LINENO: result: $ac_res" >&5
23731 echo "${ECHO_T}$ac_res" >&6; }
23732 else
23733   # Is the header compilable?
23734 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23735 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23736 cat >conftest.$ac_ext <<_ACEOF
23737 /* confdefs.h.  */
23738 _ACEOF
23739 cat confdefs.h >>conftest.$ac_ext
23740 cat >>conftest.$ac_ext <<_ACEOF
23741 /* end confdefs.h.  */
23742 $ac_includes_default
23743 #include <$ac_header>
23744 _ACEOF
23745 rm -f conftest.$ac_objext
23746 if { (ac_try="$ac_compile"
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_compile") 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          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23760   { (case "(($ac_try" in
23761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23762   *) ac_try_echo=$ac_try;;
23763 esac
23764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23765   (eval "$ac_try") 2>&5
23766   ac_status=$?
23767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23768   (exit $ac_status); }; } &&
23769          { ac_try='test -s conftest.$ac_objext'
23770   { (case "(($ac_try" in
23771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23772   *) ac_try_echo=$ac_try;;
23773 esac
23774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23775   (eval "$ac_try") 2>&5
23776   ac_status=$?
23777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23778   (exit $ac_status); }; }; then
23779   ac_header_compiler=yes
23780 else
23781   echo "$as_me: failed program was:" >&5
23782 sed 's/^/| /' conftest.$ac_ext >&5
23783
23784         ac_header_compiler=no
23785 fi
23786
23787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23788 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23789 echo "${ECHO_T}$ac_header_compiler" >&6; }
23790
23791 # Is the header present?
23792 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23793 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23794 cat >conftest.$ac_ext <<_ACEOF
23795 /* confdefs.h.  */
23796 _ACEOF
23797 cat confdefs.h >>conftest.$ac_ext
23798 cat >>conftest.$ac_ext <<_ACEOF
23799 /* end confdefs.h.  */
23800 #include <$ac_header>
23801 _ACEOF
23802 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null; then
23815   if test -s conftest.err; then
23816     ac_cpp_err=$ac_c_preproc_warn_flag
23817     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23818   else
23819     ac_cpp_err=
23820   fi
23821 else
23822   ac_cpp_err=yes
23823 fi
23824 if test -z "$ac_cpp_err"; then
23825   ac_header_preproc=yes
23826 else
23827   echo "$as_me: failed program was:" >&5
23828 sed 's/^/| /' conftest.$ac_ext >&5
23829
23830   ac_header_preproc=no
23831 fi
23832
23833 rm -f conftest.err conftest.$ac_ext
23834 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23835 echo "${ECHO_T}$ac_header_preproc" >&6; }
23836
23837 # So?  What about this header?
23838 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23839   yes:no: )
23840     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23841 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23842     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23843 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23844     ac_header_preproc=yes
23845     ;;
23846   no:yes:* )
23847     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23848 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23849     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23850 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23851     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23852 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23853     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23854 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23855     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23856 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23857     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23858 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23859     ( cat <<\_ASBOX
23860 ## ------------------------------- ##
23861 ## Report this to nfs@lists.sf.net ##
23862 ## ------------------------------- ##
23863 _ASBOX
23864      ) | sed "s/^/$as_me: WARNING:     /" >&2
23865     ;;
23866 esac
23867 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23868 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23869 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23870   echo $ECHO_N "(cached) $ECHO_C" >&6
23871 else
23872   eval "$as_ac_Header=\$ac_header_preproc"
23873 fi
23874 ac_res=`eval echo '${'$as_ac_Header'}'`
23875                { echo "$as_me:$LINENO: result: $ac_res" >&5
23876 echo "${ECHO_T}$ac_res" >&6; }
23877
23878 fi
23879 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23880   cat >>confdefs.h <<_ACEOF
23881 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23882 _ACEOF
23883
23884 fi
23885
23886 done
23887
23888
23889 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
23890 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
23891 if test "${ac_cv_c_const+set}" = set; then
23892   echo $ECHO_N "(cached) $ECHO_C" >&6
23893 else
23894   cat >conftest.$ac_ext <<_ACEOF
23895 /* confdefs.h.  */
23896 _ACEOF
23897 cat confdefs.h >>conftest.$ac_ext
23898 cat >>conftest.$ac_ext <<_ACEOF
23899 /* end confdefs.h.  */
23900
23901 int
23902 main ()
23903 {
23904 /* FIXME: Include the comments suggested by Paul. */
23905 #ifndef __cplusplus
23906   /* Ultrix mips cc rejects this.  */
23907   typedef int charset[2];
23908   const charset x;
23909   /* SunOS 4.1.1 cc rejects this.  */
23910   char const *const *ccp;
23911   char **p;
23912   /* NEC SVR4.0.2 mips cc rejects this.  */
23913   struct point {int x, y;};
23914   static struct point const zero = {0,0};
23915   /* AIX XL C 1.02.0.0 rejects this.
23916      It does not let you subtract one const X* pointer from another in
23917      an arm of an if-expression whose if-part is not a constant
23918      expression */
23919   const char *g = "string";
23920   ccp = &g + (g ? g-g : 0);
23921   /* HPUX 7.0 cc rejects these. */
23922   ++ccp;
23923   p = (char**) ccp;
23924   ccp = (char const *const *) p;
23925   { /* SCO 3.2v4 cc rejects this.  */
23926     char *t;
23927     char const *s = 0 ? (char *) 0 : (char const *) 0;
23928
23929     *t++ = 0;
23930     if (s) return 0;
23931   }
23932   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
23933     int x[] = {25, 17};
23934     const int *foo = &x[0];
23935     ++foo;
23936   }
23937   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23938     typedef const int *iptr;
23939     iptr p = 0;
23940     ++p;
23941   }
23942   { /* AIX XL C 1.02.0.0 rejects this saying
23943        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23944     struct s { int j; const int *ap[3]; };
23945     struct s *b; b->j = 5;
23946   }
23947   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23948     const int foo = 10;
23949     if (!foo) return 0;
23950   }
23951   return !x[0] && !zero.x;
23952 #endif
23953
23954   ;
23955   return 0;
23956 }
23957 _ACEOF
23958 rm -f conftest.$ac_objext
23959 if { (ac_try="$ac_compile"
23960 case "(($ac_try" in
23961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23962   *) ac_try_echo=$ac_try;;
23963 esac
23964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23965   (eval "$ac_compile") 2>conftest.er1
23966   ac_status=$?
23967   grep -v '^ *+' conftest.er1 >conftest.err
23968   rm -f conftest.er1
23969   cat conftest.err >&5
23970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23971   (exit $ac_status); } &&
23972          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23973   { (case "(($ac_try" in
23974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23975   *) ac_try_echo=$ac_try;;
23976 esac
23977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23978   (eval "$ac_try") 2>&5
23979   ac_status=$?
23980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23981   (exit $ac_status); }; } &&
23982          { ac_try='test -s conftest.$ac_objext'
23983   { (case "(($ac_try" in
23984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23985   *) ac_try_echo=$ac_try;;
23986 esac
23987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23988   (eval "$ac_try") 2>&5
23989   ac_status=$?
23990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23991   (exit $ac_status); }; }; then
23992   ac_cv_c_const=yes
23993 else
23994   echo "$as_me: failed program was:" >&5
23995 sed 's/^/| /' conftest.$ac_ext >&5
23996
23997         ac_cv_c_const=no
23998 fi
23999
24000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24001 fi
24002 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
24003 echo "${ECHO_T}$ac_cv_c_const" >&6; }
24004 if test $ac_cv_c_const = no; then
24005
24006 cat >>confdefs.h <<\_ACEOF
24007 #define const
24008 _ACEOF
24009
24010 fi
24011
24012 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
24013 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
24014 if test "${ac_cv_type_uid_t+set}" = set; then
24015   echo $ECHO_N "(cached) $ECHO_C" >&6
24016 else
24017   cat >conftest.$ac_ext <<_ACEOF
24018 /* confdefs.h.  */
24019 _ACEOF
24020 cat confdefs.h >>conftest.$ac_ext
24021 cat >>conftest.$ac_ext <<_ACEOF
24022 /* end confdefs.h.  */
24023 #include <sys/types.h>
24024
24025 _ACEOF
24026 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24027   $EGREP "uid_t" >/dev/null 2>&1; then
24028   ac_cv_type_uid_t=yes
24029 else
24030   ac_cv_type_uid_t=no
24031 fi
24032 rm -f conftest*
24033
24034 fi
24035 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
24036 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
24037 if test $ac_cv_type_uid_t = no; then
24038
24039 cat >>confdefs.h <<\_ACEOF
24040 #define uid_t int
24041 _ACEOF
24042
24043
24044 cat >>confdefs.h <<\_ACEOF
24045 #define gid_t int
24046 _ACEOF
24047
24048 fi
24049
24050 { echo "$as_me:$LINENO: checking for inline" >&5
24051 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
24052 if test "${ac_cv_c_inline+set}" = set; then
24053   echo $ECHO_N "(cached) $ECHO_C" >&6
24054 else
24055   ac_cv_c_inline=no
24056 for ac_kw in inline __inline__ __inline; do
24057   cat >conftest.$ac_ext <<_ACEOF
24058 /* confdefs.h.  */
24059 _ACEOF
24060 cat confdefs.h >>conftest.$ac_ext
24061 cat >>conftest.$ac_ext <<_ACEOF
24062 /* end confdefs.h.  */
24063 #ifndef __cplusplus
24064 typedef int foo_t;
24065 static $ac_kw foo_t static_foo () {return 0; }
24066 $ac_kw foo_t foo () {return 0; }
24067 #endif
24068
24069 _ACEOF
24070 rm -f conftest.$ac_objext
24071 if { (ac_try="$ac_compile"
24072 case "(($ac_try" in
24073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24074   *) ac_try_echo=$ac_try;;
24075 esac
24076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24077   (eval "$ac_compile") 2>conftest.er1
24078   ac_status=$?
24079   grep -v '^ *+' conftest.er1 >conftest.err
24080   rm -f conftest.er1
24081   cat conftest.err >&5
24082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24083   (exit $ac_status); } &&
24084          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24085   { (case "(($ac_try" in
24086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24087   *) ac_try_echo=$ac_try;;
24088 esac
24089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24090   (eval "$ac_try") 2>&5
24091   ac_status=$?
24092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24093   (exit $ac_status); }; } &&
24094          { ac_try='test -s conftest.$ac_objext'
24095   { (case "(($ac_try" in
24096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24097   *) ac_try_echo=$ac_try;;
24098 esac
24099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24100   (eval "$ac_try") 2>&5
24101   ac_status=$?
24102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24103   (exit $ac_status); }; }; then
24104   ac_cv_c_inline=$ac_kw
24105 else
24106   echo "$as_me: failed program was:" >&5
24107 sed 's/^/| /' conftest.$ac_ext >&5
24108
24109
24110 fi
24111
24112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24113   test "$ac_cv_c_inline" != no && break
24114 done
24115
24116 fi
24117 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
24118 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
24119
24120
24121 case $ac_cv_c_inline in
24122   inline | yes) ;;
24123   *)
24124     case $ac_cv_c_inline in
24125       no) ac_val=;;
24126       *) ac_val=$ac_cv_c_inline;;
24127     esac
24128     cat >>confdefs.h <<_ACEOF
24129 #ifndef __cplusplus
24130 #define inline $ac_val
24131 #endif
24132 _ACEOF
24133     ;;
24134 esac
24135
24136 { echo "$as_me:$LINENO: checking for off_t" >&5
24137 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
24138 if test "${ac_cv_type_off_t+set}" = set; then
24139   echo $ECHO_N "(cached) $ECHO_C" >&6
24140 else
24141   cat >conftest.$ac_ext <<_ACEOF
24142 /* confdefs.h.  */
24143 _ACEOF
24144 cat confdefs.h >>conftest.$ac_ext
24145 cat >>conftest.$ac_ext <<_ACEOF
24146 /* end confdefs.h.  */
24147 $ac_includes_default
24148 typedef off_t ac__type_new_;
24149 int
24150 main ()
24151 {
24152 if ((ac__type_new_ *) 0)
24153   return 0;
24154 if (sizeof (ac__type_new_))
24155   return 0;
24156   ;
24157   return 0;
24158 }
24159 _ACEOF
24160 rm -f conftest.$ac_objext
24161 if { (ac_try="$ac_compile"
24162 case "(($ac_try" in
24163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24164   *) ac_try_echo=$ac_try;;
24165 esac
24166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24167   (eval "$ac_compile") 2>conftest.er1
24168   ac_status=$?
24169   grep -v '^ *+' conftest.er1 >conftest.err
24170   rm -f conftest.er1
24171   cat conftest.err >&5
24172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24173   (exit $ac_status); } &&
24174          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24175   { (case "(($ac_try" in
24176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24177   *) ac_try_echo=$ac_try;;
24178 esac
24179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24180   (eval "$ac_try") 2>&5
24181   ac_status=$?
24182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24183   (exit $ac_status); }; } &&
24184          { ac_try='test -s conftest.$ac_objext'
24185   { (case "(($ac_try" in
24186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24187   *) ac_try_echo=$ac_try;;
24188 esac
24189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24190   (eval "$ac_try") 2>&5
24191   ac_status=$?
24192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24193   (exit $ac_status); }; }; then
24194   ac_cv_type_off_t=yes
24195 else
24196   echo "$as_me: failed program was:" >&5
24197 sed 's/^/| /' conftest.$ac_ext >&5
24198
24199         ac_cv_type_off_t=no
24200 fi
24201
24202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24203 fi
24204 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
24205 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
24206 if test $ac_cv_type_off_t = yes; then
24207   :
24208 else
24209
24210 cat >>confdefs.h <<_ACEOF
24211 #define off_t long int
24212 _ACEOF
24213
24214 fi
24215
24216 { echo "$as_me:$LINENO: checking for pid_t" >&5
24217 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
24218 if test "${ac_cv_type_pid_t+set}" = set; then
24219   echo $ECHO_N "(cached) $ECHO_C" >&6
24220 else
24221   cat >conftest.$ac_ext <<_ACEOF
24222 /* confdefs.h.  */
24223 _ACEOF
24224 cat confdefs.h >>conftest.$ac_ext
24225 cat >>conftest.$ac_ext <<_ACEOF
24226 /* end confdefs.h.  */
24227 $ac_includes_default
24228 typedef pid_t ac__type_new_;
24229 int
24230 main ()
24231 {
24232 if ((ac__type_new_ *) 0)
24233   return 0;
24234 if (sizeof (ac__type_new_))
24235   return 0;
24236   ;
24237   return 0;
24238 }
24239 _ACEOF
24240 rm -f conftest.$ac_objext
24241 if { (ac_try="$ac_compile"
24242 case "(($ac_try" in
24243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24244   *) ac_try_echo=$ac_try;;
24245 esac
24246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24247   (eval "$ac_compile") 2>conftest.er1
24248   ac_status=$?
24249   grep -v '^ *+' conftest.er1 >conftest.err
24250   rm -f conftest.er1
24251   cat conftest.err >&5
24252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24253   (exit $ac_status); } &&
24254          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24255   { (case "(($ac_try" in
24256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24257   *) ac_try_echo=$ac_try;;
24258 esac
24259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24260   (eval "$ac_try") 2>&5
24261   ac_status=$?
24262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24263   (exit $ac_status); }; } &&
24264          { ac_try='test -s conftest.$ac_objext'
24265   { (case "(($ac_try" in
24266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24267   *) ac_try_echo=$ac_try;;
24268 esac
24269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24270   (eval "$ac_try") 2>&5
24271   ac_status=$?
24272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24273   (exit $ac_status); }; }; then
24274   ac_cv_type_pid_t=yes
24275 else
24276   echo "$as_me: failed program was:" >&5
24277 sed 's/^/| /' conftest.$ac_ext >&5
24278
24279         ac_cv_type_pid_t=no
24280 fi
24281
24282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24283 fi
24284 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
24285 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
24286 if test $ac_cv_type_pid_t = yes; then
24287   :
24288 else
24289
24290 cat >>confdefs.h <<_ACEOF
24291 #define pid_t int
24292 _ACEOF
24293
24294 fi
24295
24296 { echo "$as_me:$LINENO: checking for size_t" >&5
24297 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
24298 if test "${ac_cv_type_size_t+set}" = set; then
24299   echo $ECHO_N "(cached) $ECHO_C" >&6
24300 else
24301   cat >conftest.$ac_ext <<_ACEOF
24302 /* confdefs.h.  */
24303 _ACEOF
24304 cat confdefs.h >>conftest.$ac_ext
24305 cat >>conftest.$ac_ext <<_ACEOF
24306 /* end confdefs.h.  */
24307 $ac_includes_default
24308 typedef size_t ac__type_new_;
24309 int
24310 main ()
24311 {
24312 if ((ac__type_new_ *) 0)
24313   return 0;
24314 if (sizeof (ac__type_new_))
24315   return 0;
24316   ;
24317   return 0;
24318 }
24319 _ACEOF
24320 rm -f conftest.$ac_objext
24321 if { (ac_try="$ac_compile"
24322 case "(($ac_try" in
24323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24324   *) ac_try_echo=$ac_try;;
24325 esac
24326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24327   (eval "$ac_compile") 2>conftest.er1
24328   ac_status=$?
24329   grep -v '^ *+' conftest.er1 >conftest.err
24330   rm -f conftest.er1
24331   cat conftest.err >&5
24332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24333   (exit $ac_status); } &&
24334          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24335   { (case "(($ac_try" in
24336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24337   *) ac_try_echo=$ac_try;;
24338 esac
24339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24340   (eval "$ac_try") 2>&5
24341   ac_status=$?
24342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24343   (exit $ac_status); }; } &&
24344          { ac_try='test -s conftest.$ac_objext'
24345   { (case "(($ac_try" in
24346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24347   *) ac_try_echo=$ac_try;;
24348 esac
24349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24350   (eval "$ac_try") 2>&5
24351   ac_status=$?
24352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24353   (exit $ac_status); }; }; then
24354   ac_cv_type_size_t=yes
24355 else
24356   echo "$as_me: failed program was:" >&5
24357 sed 's/^/| /' conftest.$ac_ext >&5
24358
24359         ac_cv_type_size_t=no
24360 fi
24361
24362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24363 fi
24364 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
24365 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
24366 if test $ac_cv_type_size_t = yes; then
24367   :
24368 else
24369
24370 cat >>confdefs.h <<_ACEOF
24371 #define size_t unsigned int
24372 _ACEOF
24373
24374 fi
24375
24376 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
24377 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
24378 if test "${ac_cv_header_time+set}" = set; then
24379   echo $ECHO_N "(cached) $ECHO_C" >&6
24380 else
24381   cat >conftest.$ac_ext <<_ACEOF
24382 /* confdefs.h.  */
24383 _ACEOF
24384 cat confdefs.h >>conftest.$ac_ext
24385 cat >>conftest.$ac_ext <<_ACEOF
24386 /* end confdefs.h.  */
24387 #include <sys/types.h>
24388 #include <sys/time.h>
24389 #include <time.h>
24390
24391 int
24392 main ()
24393 {
24394 if ((struct tm *) 0)
24395 return 0;
24396   ;
24397   return 0;
24398 }
24399 _ACEOF
24400 rm -f conftest.$ac_objext
24401 if { (ac_try="$ac_compile"
24402 case "(($ac_try" in
24403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24404   *) ac_try_echo=$ac_try;;
24405 esac
24406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24407   (eval "$ac_compile") 2>conftest.er1
24408   ac_status=$?
24409   grep -v '^ *+' conftest.er1 >conftest.err
24410   rm -f conftest.er1
24411   cat conftest.err >&5
24412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24413   (exit $ac_status); } &&
24414          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24415   { (case "(($ac_try" in
24416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24417   *) ac_try_echo=$ac_try;;
24418 esac
24419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24420   (eval "$ac_try") 2>&5
24421   ac_status=$?
24422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24423   (exit $ac_status); }; } &&
24424          { ac_try='test -s conftest.$ac_objext'
24425   { (case "(($ac_try" in
24426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24427   *) ac_try_echo=$ac_try;;
24428 esac
24429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24430   (eval "$ac_try") 2>&5
24431   ac_status=$?
24432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24433   (exit $ac_status); }; }; then
24434   ac_cv_header_time=yes
24435 else
24436   echo "$as_me: failed program was:" >&5
24437 sed 's/^/| /' conftest.$ac_ext >&5
24438
24439         ac_cv_header_time=no
24440 fi
24441
24442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24443 fi
24444 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
24445 echo "${ECHO_T}$ac_cv_header_time" >&6; }
24446 if test $ac_cv_header_time = yes; then
24447
24448 cat >>confdefs.h <<\_ACEOF
24449 #define TIME_WITH_SYS_TIME 1
24450 _ACEOF
24451
24452 fi
24453
24454 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
24455 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
24456 if test "${ac_cv_struct_tm+set}" = set; then
24457   echo $ECHO_N "(cached) $ECHO_C" >&6
24458 else
24459   cat >conftest.$ac_ext <<_ACEOF
24460 /* confdefs.h.  */
24461 _ACEOF
24462 cat confdefs.h >>conftest.$ac_ext
24463 cat >>conftest.$ac_ext <<_ACEOF
24464 /* end confdefs.h.  */
24465 #include <sys/types.h>
24466 #include <time.h>
24467
24468 int
24469 main ()
24470 {
24471 struct tm *tp; tp->tm_sec;
24472   ;
24473   return 0;
24474 }
24475 _ACEOF
24476 rm -f conftest.$ac_objext
24477 if { (ac_try="$ac_compile"
24478 case "(($ac_try" in
24479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24480   *) ac_try_echo=$ac_try;;
24481 esac
24482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24483   (eval "$ac_compile") 2>conftest.er1
24484   ac_status=$?
24485   grep -v '^ *+' conftest.er1 >conftest.err
24486   rm -f conftest.er1
24487   cat conftest.err >&5
24488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24489   (exit $ac_status); } &&
24490          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24491   { (case "(($ac_try" in
24492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24493   *) ac_try_echo=$ac_try;;
24494 esac
24495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24496   (eval "$ac_try") 2>&5
24497   ac_status=$?
24498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24499   (exit $ac_status); }; } &&
24500          { ac_try='test -s conftest.$ac_objext'
24501   { (case "(($ac_try" in
24502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24503   *) ac_try_echo=$ac_try;;
24504 esac
24505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24506   (eval "$ac_try") 2>&5
24507   ac_status=$?
24508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24509   (exit $ac_status); }; }; then
24510   ac_cv_struct_tm=time.h
24511 else
24512   echo "$as_me: failed program was:" >&5
24513 sed 's/^/| /' conftest.$ac_ext >&5
24514
24515         ac_cv_struct_tm=sys/time.h
24516 fi
24517
24518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24519 fi
24520 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
24521 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
24522 if test $ac_cv_struct_tm = sys/time.h; then
24523
24524 cat >>confdefs.h <<\_ACEOF
24525 #define TM_IN_SYS_TIME 1
24526 _ACEOF
24527
24528 fi
24529
24530
24531 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
24532 # for constant arguments.  Useless!
24533 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
24534 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
24535 if test "${ac_cv_working_alloca_h+set}" = set; then
24536   echo $ECHO_N "(cached) $ECHO_C" >&6
24537 else
24538   cat >conftest.$ac_ext <<_ACEOF
24539 /* confdefs.h.  */
24540 _ACEOF
24541 cat confdefs.h >>conftest.$ac_ext
24542 cat >>conftest.$ac_ext <<_ACEOF
24543 /* end confdefs.h.  */
24544 #include <alloca.h>
24545 int
24546 main ()
24547 {
24548 char *p = (char *) alloca (2 * sizeof (int));
24549                           if (p) return 0;
24550   ;
24551   return 0;
24552 }
24553 _ACEOF
24554 rm -f conftest.$ac_objext conftest$ac_exeext
24555 if { (ac_try="$ac_link"
24556 case "(($ac_try" in
24557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24558   *) ac_try_echo=$ac_try;;
24559 esac
24560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24561   (eval "$ac_link") 2>conftest.er1
24562   ac_status=$?
24563   grep -v '^ *+' conftest.er1 >conftest.err
24564   rm -f conftest.er1
24565   cat conftest.err >&5
24566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24567   (exit $ac_status); } &&
24568          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24569   { (case "(($ac_try" in
24570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24571   *) ac_try_echo=$ac_try;;
24572 esac
24573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24574   (eval "$ac_try") 2>&5
24575   ac_status=$?
24576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24577   (exit $ac_status); }; } &&
24578          { ac_try='test -s conftest$ac_exeext'
24579   { (case "(($ac_try" in
24580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24581   *) ac_try_echo=$ac_try;;
24582 esac
24583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24584   (eval "$ac_try") 2>&5
24585   ac_status=$?
24586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24587   (exit $ac_status); }; }; then
24588   ac_cv_working_alloca_h=yes
24589 else
24590   echo "$as_me: failed program was:" >&5
24591 sed 's/^/| /' conftest.$ac_ext >&5
24592
24593         ac_cv_working_alloca_h=no
24594 fi
24595
24596 rm -f core conftest.err conftest.$ac_objext \
24597       conftest$ac_exeext conftest.$ac_ext
24598 fi
24599 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
24600 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
24601 if test $ac_cv_working_alloca_h = yes; then
24602
24603 cat >>confdefs.h <<\_ACEOF
24604 #define HAVE_ALLOCA_H 1
24605 _ACEOF
24606
24607 fi
24608
24609 { echo "$as_me:$LINENO: checking for alloca" >&5
24610 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
24611 if test "${ac_cv_func_alloca_works+set}" = set; then
24612   echo $ECHO_N "(cached) $ECHO_C" >&6
24613 else
24614   cat >conftest.$ac_ext <<_ACEOF
24615 /* confdefs.h.  */
24616 _ACEOF
24617 cat confdefs.h >>conftest.$ac_ext
24618 cat >>conftest.$ac_ext <<_ACEOF
24619 /* end confdefs.h.  */
24620 #ifdef __GNUC__
24621 # define alloca __builtin_alloca
24622 #else
24623 # ifdef _MSC_VER
24624 #  include <malloc.h>
24625 #  define alloca _alloca
24626 # else
24627 #  if HAVE_ALLOCA_H
24628 #   include <alloca.h>
24629 #  else
24630 #   ifdef _AIX
24631  #pragma alloca
24632 #   else
24633 #    ifndef alloca /* predefined by HP cc +Olibcalls */
24634 char *alloca ();
24635 #    endif
24636 #   endif
24637 #  endif
24638 # endif
24639 #endif
24640
24641 int
24642 main ()
24643 {
24644 char *p = (char *) alloca (1);
24645                                     if (p) return 0;
24646   ;
24647   return 0;
24648 }
24649 _ACEOF
24650 rm -f conftest.$ac_objext conftest$ac_exeext
24651 if { (ac_try="$ac_link"
24652 case "(($ac_try" in
24653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24654   *) ac_try_echo=$ac_try;;
24655 esac
24656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24657   (eval "$ac_link") 2>conftest.er1
24658   ac_status=$?
24659   grep -v '^ *+' conftest.er1 >conftest.err
24660   rm -f conftest.er1
24661   cat conftest.err >&5
24662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24663   (exit $ac_status); } &&
24664          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24665   { (case "(($ac_try" in
24666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24667   *) ac_try_echo=$ac_try;;
24668 esac
24669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24670   (eval "$ac_try") 2>&5
24671   ac_status=$?
24672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24673   (exit $ac_status); }; } &&
24674          { ac_try='test -s conftest$ac_exeext'
24675   { (case "(($ac_try" in
24676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24677   *) ac_try_echo=$ac_try;;
24678 esac
24679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24680   (eval "$ac_try") 2>&5
24681   ac_status=$?
24682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24683   (exit $ac_status); }; }; then
24684   ac_cv_func_alloca_works=yes
24685 else
24686   echo "$as_me: failed program was:" >&5
24687 sed 's/^/| /' conftest.$ac_ext >&5
24688
24689         ac_cv_func_alloca_works=no
24690 fi
24691
24692 rm -f core conftest.err conftest.$ac_objext \
24693       conftest$ac_exeext conftest.$ac_ext
24694 fi
24695 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
24696 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
24697
24698 if test $ac_cv_func_alloca_works = yes; then
24699
24700 cat >>confdefs.h <<\_ACEOF
24701 #define HAVE_ALLOCA 1
24702 _ACEOF
24703
24704 else
24705   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
24706 # that cause trouble.  Some versions do not even contain alloca or
24707 # contain a buggy version.  If you still want to use their alloca,
24708 # use ar to extract alloca.o from them instead of compiling alloca.c.
24709
24710 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
24711
24712 cat >>confdefs.h <<\_ACEOF
24713 #define C_ALLOCA 1
24714 _ACEOF
24715
24716
24717 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
24718 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
24719 if test "${ac_cv_os_cray+set}" = set; then
24720   echo $ECHO_N "(cached) $ECHO_C" >&6
24721 else
24722   cat >conftest.$ac_ext <<_ACEOF
24723 /* confdefs.h.  */
24724 _ACEOF
24725 cat confdefs.h >>conftest.$ac_ext
24726 cat >>conftest.$ac_ext <<_ACEOF
24727 /* end confdefs.h.  */
24728 #if defined CRAY && ! defined CRAY2
24729 webecray
24730 #else
24731 wenotbecray
24732 #endif
24733
24734 _ACEOF
24735 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24736   $EGREP "webecray" >/dev/null 2>&1; then
24737   ac_cv_os_cray=yes
24738 else
24739   ac_cv_os_cray=no
24740 fi
24741 rm -f conftest*
24742
24743 fi
24744 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
24745 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
24746 if test $ac_cv_os_cray = yes; then
24747   for ac_func in _getb67 GETB67 getb67; do
24748     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24749 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24750 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24751 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24752   echo $ECHO_N "(cached) $ECHO_C" >&6
24753 else
24754   cat >conftest.$ac_ext <<_ACEOF
24755 /* confdefs.h.  */
24756 _ACEOF
24757 cat confdefs.h >>conftest.$ac_ext
24758 cat >>conftest.$ac_ext <<_ACEOF
24759 /* end confdefs.h.  */
24760 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24761    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24762 #define $ac_func innocuous_$ac_func
24763
24764 /* System header to define __stub macros and hopefully few prototypes,
24765     which can conflict with char $ac_func (); below.
24766     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24767     <limits.h> exists even on freestanding compilers.  */
24768
24769 #ifdef __STDC__
24770 # include <limits.h>
24771 #else
24772 # include <assert.h>
24773 #endif
24774
24775 #undef $ac_func
24776
24777 /* Override any GCC internal prototype to avoid an error.
24778    Use char because int might match the return type of a GCC
24779    builtin and then its argument prototype would still apply.  */
24780 #ifdef __cplusplus
24781 extern "C"
24782 #endif
24783 char $ac_func ();
24784 /* The GNU C library defines this for functions which it implements
24785     to always fail with ENOSYS.  Some functions are actually named
24786     something starting with __ and the normal name is an alias.  */
24787 #if defined __stub_$ac_func || defined __stub___$ac_func
24788 choke me
24789 #endif
24790
24791 int
24792 main ()
24793 {
24794 return $ac_func ();
24795   ;
24796   return 0;
24797 }
24798 _ACEOF
24799 rm -f conftest.$ac_objext conftest$ac_exeext
24800 if { (ac_try="$ac_link"
24801 case "(($ac_try" in
24802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24803   *) ac_try_echo=$ac_try;;
24804 esac
24805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24806   (eval "$ac_link") 2>conftest.er1
24807   ac_status=$?
24808   grep -v '^ *+' conftest.er1 >conftest.err
24809   rm -f conftest.er1
24810   cat conftest.err >&5
24811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24812   (exit $ac_status); } &&
24813          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24814   { (case "(($ac_try" in
24815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24816   *) ac_try_echo=$ac_try;;
24817 esac
24818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24819   (eval "$ac_try") 2>&5
24820   ac_status=$?
24821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24822   (exit $ac_status); }; } &&
24823          { ac_try='test -s conftest$ac_exeext'
24824   { (case "(($ac_try" in
24825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24826   *) ac_try_echo=$ac_try;;
24827 esac
24828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24829   (eval "$ac_try") 2>&5
24830   ac_status=$?
24831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24832   (exit $ac_status); }; }; then
24833   eval "$as_ac_var=yes"
24834 else
24835   echo "$as_me: failed program was:" >&5
24836 sed 's/^/| /' conftest.$ac_ext >&5
24837
24838         eval "$as_ac_var=no"
24839 fi
24840
24841 rm -f core conftest.err conftest.$ac_objext \
24842       conftest$ac_exeext conftest.$ac_ext
24843 fi
24844 ac_res=`eval echo '${'$as_ac_var'}'`
24845                { echo "$as_me:$LINENO: result: $ac_res" >&5
24846 echo "${ECHO_T}$ac_res" >&6; }
24847 if test `eval echo '${'$as_ac_var'}'` = yes; then
24848
24849 cat >>confdefs.h <<_ACEOF
24850 #define CRAY_STACKSEG_END $ac_func
24851 _ACEOF
24852
24853     break
24854 fi
24855
24856   done
24857 fi
24858
24859 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
24860 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
24861 if test "${ac_cv_c_stack_direction+set}" = set; then
24862   echo $ECHO_N "(cached) $ECHO_C" >&6
24863 else
24864   if test "$cross_compiling" = yes; then
24865   ac_cv_c_stack_direction=0
24866 else
24867   cat >conftest.$ac_ext <<_ACEOF
24868 /* confdefs.h.  */
24869 _ACEOF
24870 cat confdefs.h >>conftest.$ac_ext
24871 cat >>conftest.$ac_ext <<_ACEOF
24872 /* end confdefs.h.  */
24873 $ac_includes_default
24874 int
24875 find_stack_direction ()
24876 {
24877   static char *addr = 0;
24878   auto char dummy;
24879   if (addr == 0)
24880     {
24881       addr = &dummy;
24882       return find_stack_direction ();
24883     }
24884   else
24885     return (&dummy > addr) ? 1 : -1;
24886 }
24887
24888 int
24889 main ()
24890 {
24891   return find_stack_direction () < 0;
24892 }
24893 _ACEOF
24894 rm -f conftest$ac_exeext
24895 if { (ac_try="$ac_link"
24896 case "(($ac_try" in
24897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24898   *) ac_try_echo=$ac_try;;
24899 esac
24900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24901   (eval "$ac_link") 2>&5
24902   ac_status=$?
24903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24904   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24905   { (case "(($ac_try" in
24906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24907   *) ac_try_echo=$ac_try;;
24908 esac
24909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24910   (eval "$ac_try") 2>&5
24911   ac_status=$?
24912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24913   (exit $ac_status); }; }; then
24914   ac_cv_c_stack_direction=1
24915 else
24916   echo "$as_me: program exited with status $ac_status" >&5
24917 echo "$as_me: failed program was:" >&5
24918 sed 's/^/| /' conftest.$ac_ext >&5
24919
24920 ( exit $ac_status )
24921 ac_cv_c_stack_direction=-1
24922 fi
24923 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24924 fi
24925
24926
24927 fi
24928 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
24929 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
24930
24931 cat >>confdefs.h <<_ACEOF
24932 #define STACK_DIRECTION $ac_cv_c_stack_direction
24933 _ACEOF
24934
24935
24936 fi
24937
24938
24939
24940
24941
24942
24943 ac_header_dirent=no
24944 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
24945   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
24946 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
24947 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
24948 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24949   echo $ECHO_N "(cached) $ECHO_C" >&6
24950 else
24951   cat >conftest.$ac_ext <<_ACEOF
24952 /* confdefs.h.  */
24953 _ACEOF
24954 cat confdefs.h >>conftest.$ac_ext
24955 cat >>conftest.$ac_ext <<_ACEOF
24956 /* end confdefs.h.  */
24957 #include <sys/types.h>
24958 #include <$ac_hdr>
24959
24960 int
24961 main ()
24962 {
24963 if ((DIR *) 0)
24964 return 0;
24965   ;
24966   return 0;
24967 }
24968 _ACEOF
24969 rm -f conftest.$ac_objext
24970 if { (ac_try="$ac_compile"
24971 case "(($ac_try" in
24972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24973   *) ac_try_echo=$ac_try;;
24974 esac
24975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24976   (eval "$ac_compile") 2>conftest.er1
24977   ac_status=$?
24978   grep -v '^ *+' conftest.er1 >conftest.err
24979   rm -f conftest.er1
24980   cat conftest.err >&5
24981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24982   (exit $ac_status); } &&
24983          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24984   { (case "(($ac_try" in
24985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24986   *) ac_try_echo=$ac_try;;
24987 esac
24988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24989   (eval "$ac_try") 2>&5
24990   ac_status=$?
24991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24992   (exit $ac_status); }; } &&
24993          { ac_try='test -s conftest.$ac_objext'
24994   { (case "(($ac_try" in
24995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24996   *) ac_try_echo=$ac_try;;
24997 esac
24998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24999   (eval "$ac_try") 2>&5
25000   ac_status=$?
25001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25002   (exit $ac_status); }; }; then
25003   eval "$as_ac_Header=yes"
25004 else
25005   echo "$as_me: failed program was:" >&5
25006 sed 's/^/| /' conftest.$ac_ext >&5
25007
25008         eval "$as_ac_Header=no"
25009 fi
25010
25011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25012 fi
25013 ac_res=`eval echo '${'$as_ac_Header'}'`
25014                { echo "$as_me:$LINENO: result: $ac_res" >&5
25015 echo "${ECHO_T}$ac_res" >&6; }
25016 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25017   cat >>confdefs.h <<_ACEOF
25018 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25019 _ACEOF
25020
25021 ac_header_dirent=$ac_hdr; break
25022 fi
25023
25024 done
25025 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25026 if test $ac_header_dirent = dirent.h; then
25027   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25028 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25029 if test "${ac_cv_search_opendir+set}" = set; then
25030   echo $ECHO_N "(cached) $ECHO_C" >&6
25031 else
25032   ac_func_search_save_LIBS=$LIBS
25033 cat >conftest.$ac_ext <<_ACEOF
25034 /* confdefs.h.  */
25035 _ACEOF
25036 cat confdefs.h >>conftest.$ac_ext
25037 cat >>conftest.$ac_ext <<_ACEOF
25038 /* end confdefs.h.  */
25039
25040 /* Override any GCC internal prototype to avoid an error.
25041    Use char because int might match the return type of a GCC
25042    builtin and then its argument prototype would still apply.  */
25043 #ifdef __cplusplus
25044 extern "C"
25045 #endif
25046 char opendir ();
25047 int
25048 main ()
25049 {
25050 return opendir ();
25051   ;
25052   return 0;
25053 }
25054 _ACEOF
25055 for ac_lib in '' dir; do
25056   if test -z "$ac_lib"; then
25057     ac_res="none required"
25058   else
25059     ac_res=-l$ac_lib
25060     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25061   fi
25062   rm -f conftest.$ac_objext conftest$ac_exeext
25063 if { (ac_try="$ac_link"
25064 case "(($ac_try" in
25065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25066   *) ac_try_echo=$ac_try;;
25067 esac
25068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25069   (eval "$ac_link") 2>conftest.er1
25070   ac_status=$?
25071   grep -v '^ *+' conftest.er1 >conftest.err
25072   rm -f conftest.er1
25073   cat conftest.err >&5
25074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25075   (exit $ac_status); } &&
25076          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25077   { (case "(($ac_try" in
25078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25079   *) ac_try_echo=$ac_try;;
25080 esac
25081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25082   (eval "$ac_try") 2>&5
25083   ac_status=$?
25084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25085   (exit $ac_status); }; } &&
25086          { ac_try='test -s conftest$ac_exeext'
25087   { (case "(($ac_try" in
25088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25089   *) ac_try_echo=$ac_try;;
25090 esac
25091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25092   (eval "$ac_try") 2>&5
25093   ac_status=$?
25094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25095   (exit $ac_status); }; }; then
25096   ac_cv_search_opendir=$ac_res
25097 else
25098   echo "$as_me: failed program was:" >&5
25099 sed 's/^/| /' conftest.$ac_ext >&5
25100
25101
25102 fi
25103
25104 rm -f core conftest.err conftest.$ac_objext \
25105       conftest$ac_exeext
25106   if test "${ac_cv_search_opendir+set}" = set; then
25107   break
25108 fi
25109 done
25110 if test "${ac_cv_search_opendir+set}" = set; then
25111   :
25112 else
25113   ac_cv_search_opendir=no
25114 fi
25115 rm conftest.$ac_ext
25116 LIBS=$ac_func_search_save_LIBS
25117 fi
25118 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25119 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25120 ac_res=$ac_cv_search_opendir
25121 if test "$ac_res" != no; then
25122   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25123
25124 fi
25125
25126 else
25127   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25128 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25129 if test "${ac_cv_search_opendir+set}" = set; then
25130   echo $ECHO_N "(cached) $ECHO_C" >&6
25131 else
25132   ac_func_search_save_LIBS=$LIBS
25133 cat >conftest.$ac_ext <<_ACEOF
25134 /* confdefs.h.  */
25135 _ACEOF
25136 cat confdefs.h >>conftest.$ac_ext
25137 cat >>conftest.$ac_ext <<_ACEOF
25138 /* end confdefs.h.  */
25139
25140 /* Override any GCC internal prototype to avoid an error.
25141    Use char because int might match the return type of a GCC
25142    builtin and then its argument prototype would still apply.  */
25143 #ifdef __cplusplus
25144 extern "C"
25145 #endif
25146 char opendir ();
25147 int
25148 main ()
25149 {
25150 return opendir ();
25151   ;
25152   return 0;
25153 }
25154 _ACEOF
25155 for ac_lib in '' x; do
25156   if test -z "$ac_lib"; then
25157     ac_res="none required"
25158   else
25159     ac_res=-l$ac_lib
25160     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25161   fi
25162   rm -f conftest.$ac_objext conftest$ac_exeext
25163 if { (ac_try="$ac_link"
25164 case "(($ac_try" in
25165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25166   *) ac_try_echo=$ac_try;;
25167 esac
25168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25169   (eval "$ac_link") 2>conftest.er1
25170   ac_status=$?
25171   grep -v '^ *+' conftest.er1 >conftest.err
25172   rm -f conftest.er1
25173   cat conftest.err >&5
25174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25175   (exit $ac_status); } &&
25176          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25177   { (case "(($ac_try" in
25178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25179   *) ac_try_echo=$ac_try;;
25180 esac
25181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25182   (eval "$ac_try") 2>&5
25183   ac_status=$?
25184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25185   (exit $ac_status); }; } &&
25186          { ac_try='test -s conftest$ac_exeext'
25187   { (case "(($ac_try" in
25188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25189   *) ac_try_echo=$ac_try;;
25190 esac
25191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25192   (eval "$ac_try") 2>&5
25193   ac_status=$?
25194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25195   (exit $ac_status); }; }; then
25196   ac_cv_search_opendir=$ac_res
25197 else
25198   echo "$as_me: failed program was:" >&5
25199 sed 's/^/| /' conftest.$ac_ext >&5
25200
25201
25202 fi
25203
25204 rm -f core conftest.err conftest.$ac_objext \
25205       conftest$ac_exeext
25206   if test "${ac_cv_search_opendir+set}" = set; then
25207   break
25208 fi
25209 done
25210 if test "${ac_cv_search_opendir+set}" = set; then
25211   :
25212 else
25213   ac_cv_search_opendir=no
25214 fi
25215 rm conftest.$ac_ext
25216 LIBS=$ac_func_search_save_LIBS
25217 fi
25218 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25219 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25220 ac_res=$ac_cv_search_opendir
25221 if test "$ac_res" != no; then
25222   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25223
25224 fi
25225
25226 fi
25227
25228 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
25229 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
25230 if test "${ac_cv_func_closedir_void+set}" = set; then
25231   echo $ECHO_N "(cached) $ECHO_C" >&6
25232 else
25233   if test "$cross_compiling" = yes; then
25234   ac_cv_func_closedir_void=yes
25235 else
25236   cat >conftest.$ac_ext <<_ACEOF
25237 /* confdefs.h.  */
25238 _ACEOF
25239 cat confdefs.h >>conftest.$ac_ext
25240 cat >>conftest.$ac_ext <<_ACEOF
25241 /* end confdefs.h.  */
25242 $ac_includes_default
25243 #include <$ac_header_dirent>
25244 #ifndef __cplusplus
25245 int closedir ();
25246 #endif
25247
25248 int
25249 main ()
25250 {
25251 return closedir (opendir (".")) != 0;
25252   ;
25253   return 0;
25254 }
25255 _ACEOF
25256 rm -f conftest$ac_exeext
25257 if { (ac_try="$ac_link"
25258 case "(($ac_try" in
25259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25260   *) ac_try_echo=$ac_try;;
25261 esac
25262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25263   (eval "$ac_link") 2>&5
25264   ac_status=$?
25265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25266   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25267   { (case "(($ac_try" in
25268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25269   *) ac_try_echo=$ac_try;;
25270 esac
25271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25272   (eval "$ac_try") 2>&5
25273   ac_status=$?
25274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25275   (exit $ac_status); }; }; then
25276   ac_cv_func_closedir_void=no
25277 else
25278   echo "$as_me: program exited with status $ac_status" >&5
25279 echo "$as_me: failed program was:" >&5
25280 sed 's/^/| /' conftest.$ac_ext >&5
25281
25282 ( exit $ac_status )
25283 ac_cv_func_closedir_void=yes
25284 fi
25285 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25286 fi
25287
25288
25289 fi
25290 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
25291 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
25292 if test $ac_cv_func_closedir_void = yes; then
25293
25294 cat >>confdefs.h <<\_ACEOF
25295 #define CLOSEDIR_VOID 1
25296 _ACEOF
25297
25298 fi
25299
25300 { echo "$as_me:$LINENO: checking for error_at_line" >&5
25301 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
25302 if test "${ac_cv_lib_error_at_line+set}" = set; then
25303   echo $ECHO_N "(cached) $ECHO_C" >&6
25304 else
25305   cat >conftest.$ac_ext <<_ACEOF
25306 /* confdefs.h.  */
25307 _ACEOF
25308 cat confdefs.h >>conftest.$ac_ext
25309 cat >>conftest.$ac_ext <<_ACEOF
25310 /* end confdefs.h.  */
25311 $ac_includes_default
25312 int
25313 main ()
25314 {
25315 error_at_line (0, 0, "", 0, "");
25316   ;
25317   return 0;
25318 }
25319 _ACEOF
25320 rm -f conftest.$ac_objext conftest$ac_exeext
25321 if { (ac_try="$ac_link"
25322 case "(($ac_try" in
25323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25324   *) ac_try_echo=$ac_try;;
25325 esac
25326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25327   (eval "$ac_link") 2>conftest.er1
25328   ac_status=$?
25329   grep -v '^ *+' conftest.er1 >conftest.err
25330   rm -f conftest.er1
25331   cat conftest.err >&5
25332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25333   (exit $ac_status); } &&
25334          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25335   { (case "(($ac_try" in
25336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25337   *) ac_try_echo=$ac_try;;
25338 esac
25339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25340   (eval "$ac_try") 2>&5
25341   ac_status=$?
25342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25343   (exit $ac_status); }; } &&
25344          { ac_try='test -s conftest$ac_exeext'
25345   { (case "(($ac_try" in
25346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25347   *) ac_try_echo=$ac_try;;
25348 esac
25349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25350   (eval "$ac_try") 2>&5
25351   ac_status=$?
25352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25353   (exit $ac_status); }; }; then
25354   ac_cv_lib_error_at_line=yes
25355 else
25356   echo "$as_me: failed program was:" >&5
25357 sed 's/^/| /' conftest.$ac_ext >&5
25358
25359         ac_cv_lib_error_at_line=no
25360 fi
25361
25362 rm -f core conftest.err conftest.$ac_objext \
25363       conftest$ac_exeext conftest.$ac_ext
25364 fi
25365 { echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
25366 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
25367 if test $ac_cv_lib_error_at_line = no; then
25368   case " $LIBOBJS " in
25369   *" error.$ac_objext "* ) ;;
25370   *) LIBOBJS="$LIBOBJS error.$ac_objext"
25371  ;;
25372 esac
25373
25374 fi
25375
25376
25377 for ac_header in vfork.h
25378 do
25379 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25380 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25381   { echo "$as_me:$LINENO: checking for $ac_header" >&5
25382 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25383 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25384   echo $ECHO_N "(cached) $ECHO_C" >&6
25385 fi
25386 ac_res=`eval echo '${'$as_ac_Header'}'`
25387                { echo "$as_me:$LINENO: result: $ac_res" >&5
25388 echo "${ECHO_T}$ac_res" >&6; }
25389 else
25390   # Is the header compilable?
25391 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
25392 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25393 cat >conftest.$ac_ext <<_ACEOF
25394 /* confdefs.h.  */
25395 _ACEOF
25396 cat confdefs.h >>conftest.$ac_ext
25397 cat >>conftest.$ac_ext <<_ACEOF
25398 /* end confdefs.h.  */
25399 $ac_includes_default
25400 #include <$ac_header>
25401 _ACEOF
25402 rm -f conftest.$ac_objext
25403 if { (ac_try="$ac_compile"
25404 case "(($ac_try" in
25405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25406   *) ac_try_echo=$ac_try;;
25407 esac
25408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25409   (eval "$ac_compile") 2>conftest.er1
25410   ac_status=$?
25411   grep -v '^ *+' conftest.er1 >conftest.err
25412   rm -f conftest.er1
25413   cat conftest.err >&5
25414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25415   (exit $ac_status); } &&
25416          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25417   { (case "(($ac_try" in
25418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25419   *) ac_try_echo=$ac_try;;
25420 esac
25421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25422   (eval "$ac_try") 2>&5
25423   ac_status=$?
25424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25425   (exit $ac_status); }; } &&
25426          { ac_try='test -s conftest.$ac_objext'
25427   { (case "(($ac_try" in
25428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25429   *) ac_try_echo=$ac_try;;
25430 esac
25431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25432   (eval "$ac_try") 2>&5
25433   ac_status=$?
25434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25435   (exit $ac_status); }; }; then
25436   ac_header_compiler=yes
25437 else
25438   echo "$as_me: failed program was:" >&5
25439 sed 's/^/| /' conftest.$ac_ext >&5
25440
25441         ac_header_compiler=no
25442 fi
25443
25444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25445 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25446 echo "${ECHO_T}$ac_header_compiler" >&6; }
25447
25448 # Is the header present?
25449 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
25450 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
25451 cat >conftest.$ac_ext <<_ACEOF
25452 /* confdefs.h.  */
25453 _ACEOF
25454 cat confdefs.h >>conftest.$ac_ext
25455 cat >>conftest.$ac_ext <<_ACEOF
25456 /* end confdefs.h.  */
25457 #include <$ac_header>
25458 _ACEOF
25459 if { (ac_try="$ac_cpp conftest.$ac_ext"
25460 case "(($ac_try" in
25461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25462   *) ac_try_echo=$ac_try;;
25463 esac
25464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25465   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25466   ac_status=$?
25467   grep -v '^ *+' conftest.er1 >conftest.err
25468   rm -f conftest.er1
25469   cat conftest.err >&5
25470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25471   (exit $ac_status); } >/dev/null; then
25472   if test -s conftest.err; then
25473     ac_cpp_err=$ac_c_preproc_warn_flag
25474     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25475   else
25476     ac_cpp_err=
25477   fi
25478 else
25479   ac_cpp_err=yes
25480 fi
25481 if test -z "$ac_cpp_err"; then
25482   ac_header_preproc=yes
25483 else
25484   echo "$as_me: failed program was:" >&5
25485 sed 's/^/| /' conftest.$ac_ext >&5
25486
25487   ac_header_preproc=no
25488 fi
25489
25490 rm -f conftest.err conftest.$ac_ext
25491 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25492 echo "${ECHO_T}$ac_header_preproc" >&6; }
25493
25494 # So?  What about this header?
25495 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25496   yes:no: )
25497     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25498 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25499     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25500 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25501     ac_header_preproc=yes
25502     ;;
25503   no:yes:* )
25504     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25505 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25506     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25507 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25508     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25509 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25510     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25511 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25512     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25513 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25514     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25515 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25516     ( cat <<\_ASBOX
25517 ## ------------------------------- ##
25518 ## Report this to nfs@lists.sf.net ##
25519 ## ------------------------------- ##
25520 _ASBOX
25521      ) | sed "s/^/$as_me: WARNING:     /" >&2
25522     ;;
25523 esac
25524 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25525 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25526 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25527   echo $ECHO_N "(cached) $ECHO_C" >&6
25528 else
25529   eval "$as_ac_Header=\$ac_header_preproc"
25530 fi
25531 ac_res=`eval echo '${'$as_ac_Header'}'`
25532                { echo "$as_me:$LINENO: result: $ac_res" >&5
25533 echo "${ECHO_T}$ac_res" >&6; }
25534
25535 fi
25536 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25537   cat >>confdefs.h <<_ACEOF
25538 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25539 _ACEOF
25540
25541 fi
25542
25543 done
25544
25545
25546
25547 for ac_func in fork vfork
25548 do
25549 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25550 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25551 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25552 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25553   echo $ECHO_N "(cached) $ECHO_C" >&6
25554 else
25555   cat >conftest.$ac_ext <<_ACEOF
25556 /* confdefs.h.  */
25557 _ACEOF
25558 cat confdefs.h >>conftest.$ac_ext
25559 cat >>conftest.$ac_ext <<_ACEOF
25560 /* end confdefs.h.  */
25561 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25562    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25563 #define $ac_func innocuous_$ac_func
25564
25565 /* System header to define __stub macros and hopefully few prototypes,
25566     which can conflict with char $ac_func (); below.
25567     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25568     <limits.h> exists even on freestanding compilers.  */
25569
25570 #ifdef __STDC__
25571 # include <limits.h>
25572 #else
25573 # include <assert.h>
25574 #endif
25575
25576 #undef $ac_func
25577
25578 /* Override any GCC internal prototype to avoid an error.
25579    Use char because int might match the return type of a GCC
25580    builtin and then its argument prototype would still apply.  */
25581 #ifdef __cplusplus
25582 extern "C"
25583 #endif
25584 char $ac_func ();
25585 /* The GNU C library defines this for functions which it implements
25586     to always fail with ENOSYS.  Some functions are actually named
25587     something starting with __ and the normal name is an alias.  */
25588 #if defined __stub_$ac_func || defined __stub___$ac_func
25589 choke me
25590 #endif
25591
25592 int
25593 main ()
25594 {
25595 return $ac_func ();
25596   ;
25597   return 0;
25598 }
25599 _ACEOF
25600 rm -f conftest.$ac_objext conftest$ac_exeext
25601 if { (ac_try="$ac_link"
25602 case "(($ac_try" in
25603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25604   *) ac_try_echo=$ac_try;;
25605 esac
25606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25607   (eval "$ac_link") 2>conftest.er1
25608   ac_status=$?
25609   grep -v '^ *+' conftest.er1 >conftest.err
25610   rm -f conftest.er1
25611   cat conftest.err >&5
25612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25613   (exit $ac_status); } &&
25614          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25615   { (case "(($ac_try" in
25616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25617   *) ac_try_echo=$ac_try;;
25618 esac
25619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25620   (eval "$ac_try") 2>&5
25621   ac_status=$?
25622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25623   (exit $ac_status); }; } &&
25624          { ac_try='test -s conftest$ac_exeext'
25625   { (case "(($ac_try" in
25626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25627   *) ac_try_echo=$ac_try;;
25628 esac
25629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25630   (eval "$ac_try") 2>&5
25631   ac_status=$?
25632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25633   (exit $ac_status); }; }; then
25634   eval "$as_ac_var=yes"
25635 else
25636   echo "$as_me: failed program was:" >&5
25637 sed 's/^/| /' conftest.$ac_ext >&5
25638
25639         eval "$as_ac_var=no"
25640 fi
25641
25642 rm -f core conftest.err conftest.$ac_objext \
25643       conftest$ac_exeext conftest.$ac_ext
25644 fi
25645 ac_res=`eval echo '${'$as_ac_var'}'`
25646                { echo "$as_me:$LINENO: result: $ac_res" >&5
25647 echo "${ECHO_T}$ac_res" >&6; }
25648 if test `eval echo '${'$as_ac_var'}'` = yes; then
25649   cat >>confdefs.h <<_ACEOF
25650 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25651 _ACEOF
25652
25653 fi
25654 done
25655
25656 if test "x$ac_cv_func_fork" = xyes; then
25657   { echo "$as_me:$LINENO: checking for working fork" >&5
25658 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
25659 if test "${ac_cv_func_fork_works+set}" = set; then
25660   echo $ECHO_N "(cached) $ECHO_C" >&6
25661 else
25662   if test "$cross_compiling" = yes; then
25663   ac_cv_func_fork_works=cross
25664 else
25665   cat >conftest.$ac_ext <<_ACEOF
25666 /* confdefs.h.  */
25667 _ACEOF
25668 cat confdefs.h >>conftest.$ac_ext
25669 cat >>conftest.$ac_ext <<_ACEOF
25670 /* end confdefs.h.  */
25671 $ac_includes_default
25672 int
25673 main ()
25674 {
25675
25676           /* By Ruediger Kuhlmann. */
25677           return fork () < 0;
25678
25679   ;
25680   return 0;
25681 }
25682 _ACEOF
25683 rm -f conftest$ac_exeext
25684 if { (ac_try="$ac_link"
25685 case "(($ac_try" in
25686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25687   *) ac_try_echo=$ac_try;;
25688 esac
25689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25690   (eval "$ac_link") 2>&5
25691   ac_status=$?
25692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25693   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25694   { (case "(($ac_try" in
25695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25696   *) ac_try_echo=$ac_try;;
25697 esac
25698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25699   (eval "$ac_try") 2>&5
25700   ac_status=$?
25701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25702   (exit $ac_status); }; }; then
25703   ac_cv_func_fork_works=yes
25704 else
25705   echo "$as_me: program exited with status $ac_status" >&5
25706 echo "$as_me: failed program was:" >&5
25707 sed 's/^/| /' conftest.$ac_ext >&5
25708
25709 ( exit $ac_status )
25710 ac_cv_func_fork_works=no
25711 fi
25712 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25713 fi
25714
25715
25716 fi
25717 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
25718 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
25719
25720 else
25721   ac_cv_func_fork_works=$ac_cv_func_fork
25722 fi
25723 if test "x$ac_cv_func_fork_works" = xcross; then
25724   case $host in
25725     *-*-amigaos* | *-*-msdosdjgpp*)
25726       # Override, as these systems have only a dummy fork() stub
25727       ac_cv_func_fork_works=no
25728       ;;
25729     *)
25730       ac_cv_func_fork_works=yes
25731       ;;
25732   esac
25733   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
25734 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
25735 fi
25736 ac_cv_func_vfork_works=$ac_cv_func_vfork
25737 if test "x$ac_cv_func_vfork" = xyes; then
25738   { echo "$as_me:$LINENO: checking for working vfork" >&5
25739 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
25740 if test "${ac_cv_func_vfork_works+set}" = set; then
25741   echo $ECHO_N "(cached) $ECHO_C" >&6
25742 else
25743   if test "$cross_compiling" = yes; then
25744   ac_cv_func_vfork_works=cross
25745 else
25746   cat >conftest.$ac_ext <<_ACEOF
25747 /* confdefs.h.  */
25748 _ACEOF
25749 cat confdefs.h >>conftest.$ac_ext
25750 cat >>conftest.$ac_ext <<_ACEOF
25751 /* end confdefs.h.  */
25752 /* Thanks to Paul Eggert for this test.  */
25753 $ac_includes_default
25754 #include <sys/wait.h>
25755 #if HAVE_VFORK_H
25756 # include <vfork.h>
25757 #endif
25758 /* On some sparc systems, changes by the child to local and incoming
25759    argument registers are propagated back to the parent.  The compiler
25760    is told about this with #include <vfork.h>, but some compilers
25761    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
25762    static variable whose address is put into a register that is
25763    clobbered by the vfork.  */
25764 static void
25765 #ifdef __cplusplus
25766 sparc_address_test (int arg)
25767 # else
25768 sparc_address_test (arg) int arg;
25769 #endif
25770 {
25771   static pid_t child;
25772   if (!child) {
25773     child = vfork ();
25774     if (child < 0) {
25775       perror ("vfork");
25776       _exit(2);
25777     }
25778     if (!child) {
25779       arg = getpid();
25780       write(-1, "", 0);
25781       _exit (arg);
25782     }
25783   }
25784 }
25785
25786 int
25787 main ()
25788 {
25789   pid_t parent = getpid ();
25790   pid_t child;
25791
25792   sparc_address_test (0);
25793
25794   child = vfork ();
25795
25796   if (child == 0) {
25797     /* Here is another test for sparc vfork register problems.  This
25798        test uses lots of local variables, at least as many local
25799        variables as main has allocated so far including compiler
25800        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
25801        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
25802        reuse the register of parent for one of the local variables,
25803        since it will think that parent can't possibly be used any more
25804        in this routine.  Assigning to the local variable will thus
25805        munge parent in the parent process.  */
25806     pid_t
25807       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
25808       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
25809     /* Convince the compiler that p..p7 are live; otherwise, it might
25810        use the same hardware register for all 8 local variables.  */
25811     if (p != p1 || p != p2 || p != p3 || p != p4
25812         || p != p5 || p != p6 || p != p7)
25813       _exit(1);
25814
25815     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
25816        from child file descriptors.  If the child closes a descriptor
25817        before it execs or exits, this munges the parent's descriptor
25818        as well.  Test for this by closing stdout in the child.  */
25819     _exit(close(fileno(stdout)) != 0);
25820   } else {
25821     int status;
25822     struct stat st;
25823
25824     while (wait(&status) != child)
25825       ;
25826     return (
25827          /* Was there some problem with vforking?  */
25828          child < 0
25829
25830          /* Did the child fail?  (This shouldn't happen.)  */
25831          || status
25832
25833          /* Did the vfork/compiler bug occur?  */
25834          || parent != getpid()
25835
25836          /* Did the file descriptor bug occur?  */
25837          || fstat(fileno(stdout), &st) != 0
25838          );
25839   }
25840 }
25841 _ACEOF
25842 rm -f conftest$ac_exeext
25843 if { (ac_try="$ac_link"
25844 case "(($ac_try" in
25845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25846   *) ac_try_echo=$ac_try;;
25847 esac
25848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25849   (eval "$ac_link") 2>&5
25850   ac_status=$?
25851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25852   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25853   { (case "(($ac_try" in
25854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25855   *) ac_try_echo=$ac_try;;
25856 esac
25857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25858   (eval "$ac_try") 2>&5
25859   ac_status=$?
25860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25861   (exit $ac_status); }; }; then
25862   ac_cv_func_vfork_works=yes
25863 else
25864   echo "$as_me: program exited with status $ac_status" >&5
25865 echo "$as_me: failed program was:" >&5
25866 sed 's/^/| /' conftest.$ac_ext >&5
25867
25868 ( exit $ac_status )
25869 ac_cv_func_vfork_works=no
25870 fi
25871 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25872 fi
25873
25874
25875 fi
25876 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
25877 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
25878
25879 fi;
25880 if test "x$ac_cv_func_fork_works" = xcross; then
25881   ac_cv_func_vfork_works=$ac_cv_func_vfork
25882   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
25883 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
25884 fi
25885
25886 if test "x$ac_cv_func_vfork_works" = xyes; then
25887
25888 cat >>confdefs.h <<\_ACEOF
25889 #define HAVE_WORKING_VFORK 1
25890 _ACEOF
25891
25892 else
25893
25894 cat >>confdefs.h <<\_ACEOF
25895 #define vfork fork
25896 _ACEOF
25897
25898 fi
25899 if test "x$ac_cv_func_fork_works" = xyes; then
25900
25901 cat >>confdefs.h <<\_ACEOF
25902 #define HAVE_WORKING_FORK 1
25903 _ACEOF
25904
25905 fi
25906
25907 { echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
25908 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6; }
25909 if test "${ac_cv_type_getgroups+set}" = set; then
25910   echo $ECHO_N "(cached) $ECHO_C" >&6
25911 else
25912   if test "$cross_compiling" = yes; then
25913   ac_cv_type_getgroups=cross
25914 else
25915   cat >conftest.$ac_ext <<_ACEOF
25916 /* confdefs.h.  */
25917 _ACEOF
25918 cat confdefs.h >>conftest.$ac_ext
25919 cat >>conftest.$ac_ext <<_ACEOF
25920 /* end confdefs.h.  */
25921 /* Thanks to Mike Rendell for this test.  */
25922 $ac_includes_default
25923 #define NGID 256
25924 #undef MAX
25925 #define MAX(x, y) ((x) > (y) ? (x) : (y))
25926
25927 int
25928 main ()
25929 {
25930   gid_t gidset[NGID];
25931   int i, n;
25932   union { gid_t gval; long int lval; }  val;
25933
25934   val.lval = -1;
25935   for (i = 0; i < NGID; i++)
25936     gidset[i] = val.gval;
25937   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
25938                  gidset);
25939   /* Exit non-zero if getgroups seems to require an array of ints.  This
25940      happens when gid_t is short int but getgroups modifies an array
25941      of ints.  */
25942   return n > 0 && gidset[n] != val.gval;
25943 }
25944 _ACEOF
25945 rm -f conftest$ac_exeext
25946 if { (ac_try="$ac_link"
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_link") 2>&5
25953   ac_status=$?
25954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25955   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25956   { (case "(($ac_try" in
25957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25958   *) ac_try_echo=$ac_try;;
25959 esac
25960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25961   (eval "$ac_try") 2>&5
25962   ac_status=$?
25963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25964   (exit $ac_status); }; }; then
25965   ac_cv_type_getgroups=gid_t
25966 else
25967   echo "$as_me: program exited with status $ac_status" >&5
25968 echo "$as_me: failed program was:" >&5
25969 sed 's/^/| /' conftest.$ac_ext >&5
25970
25971 ( exit $ac_status )
25972 ac_cv_type_getgroups=int
25973 fi
25974 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25975 fi
25976
25977
25978 if test $ac_cv_type_getgroups = cross; then
25979         cat >conftest.$ac_ext <<_ACEOF
25980 /* confdefs.h.  */
25981 _ACEOF
25982 cat confdefs.h >>conftest.$ac_ext
25983 cat >>conftest.$ac_ext <<_ACEOF
25984 /* end confdefs.h.  */
25985 #include <unistd.h>
25986
25987 _ACEOF
25988 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25989   $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
25990   ac_cv_type_getgroups=gid_t
25991 else
25992   ac_cv_type_getgroups=int
25993 fi
25994 rm -f conftest*
25995
25996 fi
25997 fi
25998 { echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
25999 echo "${ECHO_T}$ac_cv_type_getgroups" >&6; }
26000
26001 cat >>confdefs.h <<_ACEOF
26002 #define GETGROUPS_T $ac_cv_type_getgroups
26003 _ACEOF
26004
26005
26006 { echo "$as_me:$LINENO: checking for getgroups" >&5
26007 echo $ECHO_N "checking for getgroups... $ECHO_C" >&6; }
26008 if test "${ac_cv_func_getgroups+set}" = set; then
26009   echo $ECHO_N "(cached) $ECHO_C" >&6
26010 else
26011   cat >conftest.$ac_ext <<_ACEOF
26012 /* confdefs.h.  */
26013 _ACEOF
26014 cat confdefs.h >>conftest.$ac_ext
26015 cat >>conftest.$ac_ext <<_ACEOF
26016 /* end confdefs.h.  */
26017 /* Define getgroups to an innocuous variant, in case <limits.h> declares getgroups.
26018    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26019 #define getgroups innocuous_getgroups
26020
26021 /* System header to define __stub macros and hopefully few prototypes,
26022     which can conflict with char getgroups (); below.
26023     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26024     <limits.h> exists even on freestanding compilers.  */
26025
26026 #ifdef __STDC__
26027 # include <limits.h>
26028 #else
26029 # include <assert.h>
26030 #endif
26031
26032 #undef getgroups
26033
26034 /* Override any GCC internal prototype to avoid an error.
26035    Use char because int might match the return type of a GCC
26036    builtin and then its argument prototype would still apply.  */
26037 #ifdef __cplusplus
26038 extern "C"
26039 #endif
26040 char getgroups ();
26041 /* The GNU C library defines this for functions which it implements
26042     to always fail with ENOSYS.  Some functions are actually named
26043     something starting with __ and the normal name is an alias.  */
26044 #if defined __stub_getgroups || defined __stub___getgroups
26045 choke me
26046 #endif
26047
26048 int
26049 main ()
26050 {
26051 return getgroups ();
26052   ;
26053   return 0;
26054 }
26055 _ACEOF
26056 rm -f conftest.$ac_objext conftest$ac_exeext
26057 if { (ac_try="$ac_link"
26058 case "(($ac_try" in
26059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26060   *) ac_try_echo=$ac_try;;
26061 esac
26062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26063   (eval "$ac_link") 2>conftest.er1
26064   ac_status=$?
26065   grep -v '^ *+' conftest.er1 >conftest.err
26066   rm -f conftest.er1
26067   cat conftest.err >&5
26068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26069   (exit $ac_status); } &&
26070          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26071   { (case "(($ac_try" in
26072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26073   *) ac_try_echo=$ac_try;;
26074 esac
26075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26076   (eval "$ac_try") 2>&5
26077   ac_status=$?
26078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26079   (exit $ac_status); }; } &&
26080          { ac_try='test -s conftest$ac_exeext'
26081   { (case "(($ac_try" in
26082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26083   *) ac_try_echo=$ac_try;;
26084 esac
26085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26086   (eval "$ac_try") 2>&5
26087   ac_status=$?
26088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26089   (exit $ac_status); }; }; then
26090   ac_cv_func_getgroups=yes
26091 else
26092   echo "$as_me: failed program was:" >&5
26093 sed 's/^/| /' conftest.$ac_ext >&5
26094
26095         ac_cv_func_getgroups=no
26096 fi
26097
26098 rm -f core conftest.err conftest.$ac_objext \
26099       conftest$ac_exeext conftest.$ac_ext
26100 fi
26101 { echo "$as_me:$LINENO: result: $ac_cv_func_getgroups" >&5
26102 echo "${ECHO_T}$ac_cv_func_getgroups" >&6; }
26103
26104
26105 # If we don't yet have getgroups, see if it's in -lbsd.
26106 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
26107 ac_save_LIBS=$LIBS
26108 if test $ac_cv_func_getgroups = no; then
26109   { echo "$as_me:$LINENO: checking for getgroups in -lbsd" >&5
26110 echo $ECHO_N "checking for getgroups in -lbsd... $ECHO_C" >&6; }
26111 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then
26112   echo $ECHO_N "(cached) $ECHO_C" >&6
26113 else
26114   ac_check_lib_save_LIBS=$LIBS
26115 LIBS="-lbsd  $LIBS"
26116 cat >conftest.$ac_ext <<_ACEOF
26117 /* confdefs.h.  */
26118 _ACEOF
26119 cat confdefs.h >>conftest.$ac_ext
26120 cat >>conftest.$ac_ext <<_ACEOF
26121 /* end confdefs.h.  */
26122
26123 /* Override any GCC internal prototype to avoid an error.
26124    Use char because int might match the return type of a GCC
26125    builtin and then its argument prototype would still apply.  */
26126 #ifdef __cplusplus
26127 extern "C"
26128 #endif
26129 char getgroups ();
26130 int
26131 main ()
26132 {
26133 return getgroups ();
26134   ;
26135   return 0;
26136 }
26137 _ACEOF
26138 rm -f conftest.$ac_objext conftest$ac_exeext
26139 if { (ac_try="$ac_link"
26140 case "(($ac_try" in
26141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26142   *) ac_try_echo=$ac_try;;
26143 esac
26144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26145   (eval "$ac_link") 2>conftest.er1
26146   ac_status=$?
26147   grep -v '^ *+' conftest.er1 >conftest.err
26148   rm -f conftest.er1
26149   cat conftest.err >&5
26150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26151   (exit $ac_status); } &&
26152          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26153   { (case "(($ac_try" in
26154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26155   *) ac_try_echo=$ac_try;;
26156 esac
26157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26158   (eval "$ac_try") 2>&5
26159   ac_status=$?
26160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26161   (exit $ac_status); }; } &&
26162          { ac_try='test -s conftest$ac_exeext'
26163   { (case "(($ac_try" in
26164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26165   *) ac_try_echo=$ac_try;;
26166 esac
26167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26168   (eval "$ac_try") 2>&5
26169   ac_status=$?
26170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26171   (exit $ac_status); }; }; then
26172   ac_cv_lib_bsd_getgroups=yes
26173 else
26174   echo "$as_me: failed program was:" >&5
26175 sed 's/^/| /' conftest.$ac_ext >&5
26176
26177         ac_cv_lib_bsd_getgroups=no
26178 fi
26179
26180 rm -f core conftest.err conftest.$ac_objext \
26181       conftest$ac_exeext conftest.$ac_ext
26182 LIBS=$ac_check_lib_save_LIBS
26183 fi
26184 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_getgroups" >&5
26185 echo "${ECHO_T}$ac_cv_lib_bsd_getgroups" >&6; }
26186 if test $ac_cv_lib_bsd_getgroups = yes; then
26187   GETGROUPS_LIB=-lbsd
26188 fi
26189
26190 fi
26191
26192 # Run the program to test the functionality of the system-supplied
26193 # getgroups function only if there is such a function.
26194 if test $ac_cv_func_getgroups = yes; then
26195   { echo "$as_me:$LINENO: checking for working getgroups" >&5
26196 echo $ECHO_N "checking for working getgroups... $ECHO_C" >&6; }
26197 if test "${ac_cv_func_getgroups_works+set}" = set; then
26198   echo $ECHO_N "(cached) $ECHO_C" >&6
26199 else
26200   if test "$cross_compiling" = yes; then
26201   ac_cv_func_getgroups_works=no
26202 else
26203   cat >conftest.$ac_ext <<_ACEOF
26204 /* confdefs.h.  */
26205 _ACEOF
26206 cat confdefs.h >>conftest.$ac_ext
26207 cat >>conftest.$ac_ext <<_ACEOF
26208 /* end confdefs.h.  */
26209 $ac_includes_default
26210 int
26211 main ()
26212 {
26213 /* On Ultrix 4.3, getgroups (0, 0) always fails.  */
26214        return getgroups (0, 0) == -1;
26215   ;
26216   return 0;
26217 }
26218 _ACEOF
26219 rm -f conftest$ac_exeext
26220 if { (ac_try="$ac_link"
26221 case "(($ac_try" in
26222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26223   *) ac_try_echo=$ac_try;;
26224 esac
26225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26226   (eval "$ac_link") 2>&5
26227   ac_status=$?
26228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26229   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26230   { (case "(($ac_try" in
26231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26232   *) ac_try_echo=$ac_try;;
26233 esac
26234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26235   (eval "$ac_try") 2>&5
26236   ac_status=$?
26237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26238   (exit $ac_status); }; }; then
26239   ac_cv_func_getgroups_works=yes
26240 else
26241   echo "$as_me: program exited with status $ac_status" >&5
26242 echo "$as_me: failed program was:" >&5
26243 sed 's/^/| /' conftest.$ac_ext >&5
26244
26245 ( exit $ac_status )
26246 ac_cv_func_getgroups_works=no
26247 fi
26248 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26249 fi
26250
26251
26252
26253 fi
26254 { echo "$as_me:$LINENO: result: $ac_cv_func_getgroups_works" >&5
26255 echo "${ECHO_T}$ac_cv_func_getgroups_works" >&6; }
26256   if test $ac_cv_func_getgroups_works = yes; then
26257
26258 cat >>confdefs.h <<\_ACEOF
26259 #define HAVE_GETGROUPS 1
26260 _ACEOF
26261
26262   fi
26263 fi
26264 LIBS=$ac_save_LIBS
26265
26266 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
26267 # -lseq on Dynix/PTX, -lgen on Unixware.
26268 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
26269 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
26270 if test "${ac_cv_search_getmntent+set}" = set; then
26271   echo $ECHO_N "(cached) $ECHO_C" >&6
26272 else
26273   ac_func_search_save_LIBS=$LIBS
26274 cat >conftest.$ac_ext <<_ACEOF
26275 /* confdefs.h.  */
26276 _ACEOF
26277 cat confdefs.h >>conftest.$ac_ext
26278 cat >>conftest.$ac_ext <<_ACEOF
26279 /* end confdefs.h.  */
26280
26281 /* Override any GCC internal prototype to avoid an error.
26282    Use char because int might match the return type of a GCC
26283    builtin and then its argument prototype would still apply.  */
26284 #ifdef __cplusplus
26285 extern "C"
26286 #endif
26287 char getmntent ();
26288 int
26289 main ()
26290 {
26291 return getmntent ();
26292   ;
26293   return 0;
26294 }
26295 _ACEOF
26296 for ac_lib in '' sun seq gen; do
26297   if test -z "$ac_lib"; then
26298     ac_res="none required"
26299   else
26300     ac_res=-l$ac_lib
26301     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26302   fi
26303   rm -f conftest.$ac_objext conftest$ac_exeext
26304 if { (ac_try="$ac_link"
26305 case "(($ac_try" in
26306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26307   *) ac_try_echo=$ac_try;;
26308 esac
26309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26310   (eval "$ac_link") 2>conftest.er1
26311   ac_status=$?
26312   grep -v '^ *+' conftest.er1 >conftest.err
26313   rm -f conftest.er1
26314   cat conftest.err >&5
26315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26316   (exit $ac_status); } &&
26317          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26318   { (case "(($ac_try" in
26319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26320   *) ac_try_echo=$ac_try;;
26321 esac
26322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26323   (eval "$ac_try") 2>&5
26324   ac_status=$?
26325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26326   (exit $ac_status); }; } &&
26327          { ac_try='test -s conftest$ac_exeext'
26328   { (case "(($ac_try" in
26329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26330   *) ac_try_echo=$ac_try;;
26331 esac
26332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26333   (eval "$ac_try") 2>&5
26334   ac_status=$?
26335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26336   (exit $ac_status); }; }; then
26337   ac_cv_search_getmntent=$ac_res
26338 else
26339   echo "$as_me: failed program was:" >&5
26340 sed 's/^/| /' conftest.$ac_ext >&5
26341
26342
26343 fi
26344
26345 rm -f core conftest.err conftest.$ac_objext \
26346       conftest$ac_exeext
26347   if test "${ac_cv_search_getmntent+set}" = set; then
26348   break
26349 fi
26350 done
26351 if test "${ac_cv_search_getmntent+set}" = set; then
26352   :
26353 else
26354   ac_cv_search_getmntent=no
26355 fi
26356 rm conftest.$ac_ext
26357 LIBS=$ac_func_search_save_LIBS
26358 fi
26359 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
26360 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
26361 ac_res=$ac_cv_search_getmntent
26362 if test "$ac_res" != no; then
26363   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26364
26365 fi
26366
26367
26368 for ac_func in getmntent
26369 do
26370 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26371 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26372 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26373 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26374   echo $ECHO_N "(cached) $ECHO_C" >&6
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.  */
26382 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26383    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26384 #define $ac_func innocuous_$ac_func
26385
26386 /* System header to define __stub macros and hopefully few prototypes,
26387     which can conflict with char $ac_func (); below.
26388     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26389     <limits.h> exists even on freestanding compilers.  */
26390
26391 #ifdef __STDC__
26392 # include <limits.h>
26393 #else
26394 # include <assert.h>
26395 #endif
26396
26397 #undef $ac_func
26398
26399 /* Override any GCC internal prototype to avoid an error.
26400    Use char because int might match the return type of a GCC
26401    builtin and then its argument prototype would still apply.  */
26402 #ifdef __cplusplus
26403 extern "C"
26404 #endif
26405 char $ac_func ();
26406 /* The GNU C library defines this for functions which it implements
26407     to always fail with ENOSYS.  Some functions are actually named
26408     something starting with __ and the normal name is an alias.  */
26409 #if defined __stub_$ac_func || defined __stub___$ac_func
26410 choke me
26411 #endif
26412
26413 int
26414 main ()
26415 {
26416 return $ac_func ();
26417   ;
26418   return 0;
26419 }
26420 _ACEOF
26421 rm -f conftest.$ac_objext conftest$ac_exeext
26422 if { (ac_try="$ac_link"
26423 case "(($ac_try" in
26424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26425   *) ac_try_echo=$ac_try;;
26426 esac
26427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26428   (eval "$ac_link") 2>conftest.er1
26429   ac_status=$?
26430   grep -v '^ *+' conftest.er1 >conftest.err
26431   rm -f conftest.er1
26432   cat conftest.err >&5
26433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26434   (exit $ac_status); } &&
26435          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26436   { (case "(($ac_try" in
26437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26438   *) ac_try_echo=$ac_try;;
26439 esac
26440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26441   (eval "$ac_try") 2>&5
26442   ac_status=$?
26443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26444   (exit $ac_status); }; } &&
26445          { ac_try='test -s conftest$ac_exeext'
26446   { (case "(($ac_try" in
26447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26448   *) ac_try_echo=$ac_try;;
26449 esac
26450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26451   (eval "$ac_try") 2>&5
26452   ac_status=$?
26453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26454   (exit $ac_status); }; }; then
26455   eval "$as_ac_var=yes"
26456 else
26457   echo "$as_me: failed program was:" >&5
26458 sed 's/^/| /' conftest.$ac_ext >&5
26459
26460         eval "$as_ac_var=no"
26461 fi
26462
26463 rm -f core conftest.err conftest.$ac_objext \
26464       conftest$ac_exeext conftest.$ac_ext
26465 fi
26466 ac_res=`eval echo '${'$as_ac_var'}'`
26467                { echo "$as_me:$LINENO: result: $ac_res" >&5
26468 echo "${ECHO_T}$ac_res" >&6; }
26469 if test `eval echo '${'$as_ac_var'}'` = yes; then
26470   cat >>confdefs.h <<_ACEOF
26471 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26472 _ACEOF
26473
26474 fi
26475 done
26476
26477
26478 if test $ac_cv_c_compiler_gnu = yes; then
26479     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
26480 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
26481 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
26482   echo $ECHO_N "(cached) $ECHO_C" >&6
26483 else
26484     ac_pattern="Autoconf.*'x'"
26485   cat >conftest.$ac_ext <<_ACEOF
26486 /* confdefs.h.  */
26487 _ACEOF
26488 cat confdefs.h >>conftest.$ac_ext
26489 cat >>conftest.$ac_ext <<_ACEOF
26490 /* end confdefs.h.  */
26491 #include <sgtty.h>
26492 Autoconf TIOCGETP
26493 _ACEOF
26494 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26495   $EGREP "$ac_pattern" >/dev/null 2>&1; then
26496   ac_cv_prog_gcc_traditional=yes
26497 else
26498   ac_cv_prog_gcc_traditional=no
26499 fi
26500 rm -f conftest*
26501
26502
26503   if test $ac_cv_prog_gcc_traditional = no; then
26504     cat >conftest.$ac_ext <<_ACEOF
26505 /* confdefs.h.  */
26506 _ACEOF
26507 cat confdefs.h >>conftest.$ac_ext
26508 cat >>conftest.$ac_ext <<_ACEOF
26509 /* end confdefs.h.  */
26510 #include <termio.h>
26511 Autoconf TCGETA
26512 _ACEOF
26513 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26514   $EGREP "$ac_pattern" >/dev/null 2>&1; then
26515   ac_cv_prog_gcc_traditional=yes
26516 fi
26517 rm -f conftest*
26518
26519   fi
26520 fi
26521 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
26522 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
26523   if test $ac_cv_prog_gcc_traditional = yes; then
26524     CC="$CC -traditional"
26525   fi
26526 fi
26527
26528 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
26529 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
26530 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
26531   echo $ECHO_N "(cached) $ECHO_C" >&6
26532 else
26533   rm -f conftest.sym conftest.file
26534 echo >conftest.file
26535 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
26536   if test "$cross_compiling" = yes; then
26537   ac_cv_func_lstat_dereferences_slashed_symlink=no
26538 else
26539   cat >conftest.$ac_ext <<_ACEOF
26540 /* confdefs.h.  */
26541 _ACEOF
26542 cat confdefs.h >>conftest.$ac_ext
26543 cat >>conftest.$ac_ext <<_ACEOF
26544 /* end confdefs.h.  */
26545 $ac_includes_default
26546 int
26547 main ()
26548 {
26549 struct stat sbuf;
26550      /* Linux will dereference the symlink and fail.
26551         That is better in the sense that it means we will not
26552         have to compile and use the lstat wrapper.  */
26553      return lstat ("conftest.sym/", &sbuf) == 0;
26554   ;
26555   return 0;
26556 }
26557 _ACEOF
26558 rm -f conftest$ac_exeext
26559 if { (ac_try="$ac_link"
26560 case "(($ac_try" in
26561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26562   *) ac_try_echo=$ac_try;;
26563 esac
26564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26565   (eval "$ac_link") 2>&5
26566   ac_status=$?
26567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26568   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26569   { (case "(($ac_try" in
26570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26571   *) ac_try_echo=$ac_try;;
26572 esac
26573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26574   (eval "$ac_try") 2>&5
26575   ac_status=$?
26576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26577   (exit $ac_status); }; }; then
26578   ac_cv_func_lstat_dereferences_slashed_symlink=yes
26579 else
26580   echo "$as_me: program exited with status $ac_status" >&5
26581 echo "$as_me: failed program was:" >&5
26582 sed 's/^/| /' conftest.$ac_ext >&5
26583
26584 ( exit $ac_status )
26585 ac_cv_func_lstat_dereferences_slashed_symlink=no
26586 fi
26587 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26588 fi
26589
26590
26591 else
26592   # If the `ln -s' command failed, then we probably don't even
26593   # have an lstat function.
26594   ac_cv_func_lstat_dereferences_slashed_symlink=no
26595 fi
26596 rm -f conftest.sym conftest.file
26597
26598 fi
26599 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
26600 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
26601
26602 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
26603
26604 cat >>confdefs.h <<_ACEOF
26605 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
26606 _ACEOF
26607
26608
26609 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
26610   case " $LIBOBJS " in
26611   *" lstat.$ac_objext "* ) ;;
26612   *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
26613  ;;
26614 esac
26615
26616 fi
26617
26618 { echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
26619 echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6; }
26620 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
26621   echo $ECHO_N "(cached) $ECHO_C" >&6
26622 else
26623   if test "$cross_compiling" = yes; then
26624   ac_cv_func_lstat_empty_string_bug=yes
26625 else
26626   cat >conftest.$ac_ext <<_ACEOF
26627 /* confdefs.h.  */
26628 _ACEOF
26629 cat confdefs.h >>conftest.$ac_ext
26630 cat >>conftest.$ac_ext <<_ACEOF
26631 /* end confdefs.h.  */
26632 $ac_includes_default
26633 int
26634 main ()
26635 {
26636 struct stat sbuf;
26637   return lstat ("", &sbuf) == 0;
26638   ;
26639   return 0;
26640 }
26641 _ACEOF
26642 rm -f conftest$ac_exeext
26643 if { (ac_try="$ac_link"
26644 case "(($ac_try" in
26645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26646   *) ac_try_echo=$ac_try;;
26647 esac
26648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26649   (eval "$ac_link") 2>&5
26650   ac_status=$?
26651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26652   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26653   { (case "(($ac_try" in
26654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26655   *) ac_try_echo=$ac_try;;
26656 esac
26657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26658   (eval "$ac_try") 2>&5
26659   ac_status=$?
26660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26661   (exit $ac_status); }; }; then
26662   ac_cv_func_lstat_empty_string_bug=no
26663 else
26664   echo "$as_me: program exited with status $ac_status" >&5
26665 echo "$as_me: failed program was:" >&5
26666 sed 's/^/| /' conftest.$ac_ext >&5
26667
26668 ( exit $ac_status )
26669 ac_cv_func_lstat_empty_string_bug=yes
26670 fi
26671 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26672 fi
26673
26674
26675 fi
26676 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
26677 echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6; }
26678 if test $ac_cv_func_lstat_empty_string_bug = yes; then
26679   case " $LIBOBJS " in
26680   *" lstat.$ac_objext "* ) ;;
26681   *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
26682  ;;
26683 esac
26684
26685
26686 cat >>confdefs.h <<_ACEOF
26687 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
26688 _ACEOF
26689
26690 fi
26691
26692 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
26693 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
26694 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
26695   echo $ECHO_N "(cached) $ECHO_C" >&6
26696 else
26697   rm -f conftest.sym conftest.file
26698 echo >conftest.file
26699 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
26700   if test "$cross_compiling" = yes; then
26701   ac_cv_func_lstat_dereferences_slashed_symlink=no
26702 else
26703   cat >conftest.$ac_ext <<_ACEOF
26704 /* confdefs.h.  */
26705 _ACEOF
26706 cat confdefs.h >>conftest.$ac_ext
26707 cat >>conftest.$ac_ext <<_ACEOF
26708 /* end confdefs.h.  */
26709 $ac_includes_default
26710 int
26711 main ()
26712 {
26713 struct stat sbuf;
26714      /* Linux will dereference the symlink and fail.
26715         That is better in the sense that it means we will not
26716         have to compile and use the lstat wrapper.  */
26717      return lstat ("conftest.sym/", &sbuf) == 0;
26718   ;
26719   return 0;
26720 }
26721 _ACEOF
26722 rm -f conftest$ac_exeext
26723 if { (ac_try="$ac_link"
26724 case "(($ac_try" in
26725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26726   *) ac_try_echo=$ac_try;;
26727 esac
26728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26729   (eval "$ac_link") 2>&5
26730   ac_status=$?
26731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26732   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26733   { (case "(($ac_try" in
26734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26735   *) ac_try_echo=$ac_try;;
26736 esac
26737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26738   (eval "$ac_try") 2>&5
26739   ac_status=$?
26740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26741   (exit $ac_status); }; }; then
26742   ac_cv_func_lstat_dereferences_slashed_symlink=yes
26743 else
26744   echo "$as_me: program exited with status $ac_status" >&5
26745 echo "$as_me: failed program was:" >&5
26746 sed 's/^/| /' conftest.$ac_ext >&5
26747
26748 ( exit $ac_status )
26749 ac_cv_func_lstat_dereferences_slashed_symlink=no
26750 fi
26751 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26752 fi
26753
26754
26755 else
26756   # If the `ln -s' command failed, then we probably don't even
26757   # have an lstat function.
26758   ac_cv_func_lstat_dereferences_slashed_symlink=no
26759 fi
26760 rm -f conftest.sym conftest.file
26761
26762 fi
26763 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
26764 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
26765
26766 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
26767
26768 cat >>confdefs.h <<_ACEOF
26769 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
26770 _ACEOF
26771
26772
26773 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
26774   case " $LIBOBJS " in
26775   *" lstat.$ac_objext "* ) ;;
26776   *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
26777  ;;
26778 esac
26779
26780 fi
26781
26782 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
26783 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
26784 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
26785   echo $ECHO_N "(cached) $ECHO_C" >&6
26786 else
26787   cat >conftest.$ac_ext <<_ACEOF
26788 /* confdefs.h.  */
26789 _ACEOF
26790 cat confdefs.h >>conftest.$ac_ext
26791 cat >>conftest.$ac_ext <<_ACEOF
26792 /* end confdefs.h.  */
26793 #include <sys/types.h>
26794 int
26795 main ()
26796 {
26797 return makedev(0, 0);
26798   ;
26799   return 0;
26800 }
26801 _ACEOF
26802 rm -f conftest.$ac_objext conftest$ac_exeext
26803 if { (ac_try="$ac_link"
26804 case "(($ac_try" in
26805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26806   *) ac_try_echo=$ac_try;;
26807 esac
26808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26809   (eval "$ac_link") 2>conftest.er1
26810   ac_status=$?
26811   grep -v '^ *+' conftest.er1 >conftest.err
26812   rm -f conftest.er1
26813   cat conftest.err >&5
26814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26815   (exit $ac_status); } &&
26816          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26817   { (case "(($ac_try" in
26818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26819   *) ac_try_echo=$ac_try;;
26820 esac
26821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26822   (eval "$ac_try") 2>&5
26823   ac_status=$?
26824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26825   (exit $ac_status); }; } &&
26826          { ac_try='test -s conftest$ac_exeext'
26827   { (case "(($ac_try" in
26828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26829   *) ac_try_echo=$ac_try;;
26830 esac
26831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26832   (eval "$ac_try") 2>&5
26833   ac_status=$?
26834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26835   (exit $ac_status); }; }; then
26836   ac_cv_header_sys_types_h_makedev=yes
26837 else
26838   echo "$as_me: failed program was:" >&5
26839 sed 's/^/| /' conftest.$ac_ext >&5
26840
26841         ac_cv_header_sys_types_h_makedev=no
26842 fi
26843
26844 rm -f core conftest.err conftest.$ac_objext \
26845       conftest$ac_exeext conftest.$ac_ext
26846
26847 fi
26848 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
26849 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
26850
26851 if test $ac_cv_header_sys_types_h_makedev = no; then
26852 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
26853   { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
26854 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
26855 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
26856   echo $ECHO_N "(cached) $ECHO_C" >&6
26857 fi
26858 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
26859 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
26860 else
26861   # Is the header compilable?
26862 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
26863 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
26864 cat >conftest.$ac_ext <<_ACEOF
26865 /* confdefs.h.  */
26866 _ACEOF
26867 cat confdefs.h >>conftest.$ac_ext
26868 cat >>conftest.$ac_ext <<_ACEOF
26869 /* end confdefs.h.  */
26870 $ac_includes_default
26871 #include <sys/mkdev.h>
26872 _ACEOF
26873 rm -f conftest.$ac_objext
26874 if { (ac_try="$ac_compile"
26875 case "(($ac_try" in
26876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26877   *) ac_try_echo=$ac_try;;
26878 esac
26879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26880   (eval "$ac_compile") 2>conftest.er1
26881   ac_status=$?
26882   grep -v '^ *+' conftest.er1 >conftest.err
26883   rm -f conftest.er1
26884   cat conftest.err >&5
26885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26886   (exit $ac_status); } &&
26887          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26888   { (case "(($ac_try" in
26889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26890   *) ac_try_echo=$ac_try;;
26891 esac
26892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26893   (eval "$ac_try") 2>&5
26894   ac_status=$?
26895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26896   (exit $ac_status); }; } &&
26897          { ac_try='test -s conftest.$ac_objext'
26898   { (case "(($ac_try" in
26899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26900   *) ac_try_echo=$ac_try;;
26901 esac
26902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26903   (eval "$ac_try") 2>&5
26904   ac_status=$?
26905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26906   (exit $ac_status); }; }; then
26907   ac_header_compiler=yes
26908 else
26909   echo "$as_me: failed program was:" >&5
26910 sed 's/^/| /' conftest.$ac_ext >&5
26911
26912         ac_header_compiler=no
26913 fi
26914
26915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26916 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26917 echo "${ECHO_T}$ac_header_compiler" >&6; }
26918
26919 # Is the header present?
26920 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
26921 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
26922 cat >conftest.$ac_ext <<_ACEOF
26923 /* confdefs.h.  */
26924 _ACEOF
26925 cat confdefs.h >>conftest.$ac_ext
26926 cat >>conftest.$ac_ext <<_ACEOF
26927 /* end confdefs.h.  */
26928 #include <sys/mkdev.h>
26929 _ACEOF
26930 if { (ac_try="$ac_cpp conftest.$ac_ext"
26931 case "(($ac_try" in
26932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26933   *) ac_try_echo=$ac_try;;
26934 esac
26935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26936   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26937   ac_status=$?
26938   grep -v '^ *+' conftest.er1 >conftest.err
26939   rm -f conftest.er1
26940   cat conftest.err >&5
26941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26942   (exit $ac_status); } >/dev/null; then
26943   if test -s conftest.err; then
26944     ac_cpp_err=$ac_c_preproc_warn_flag
26945     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26946   else
26947     ac_cpp_err=
26948   fi
26949 else
26950   ac_cpp_err=yes
26951 fi
26952 if test -z "$ac_cpp_err"; then
26953   ac_header_preproc=yes
26954 else
26955   echo "$as_me: failed program was:" >&5
26956 sed 's/^/| /' conftest.$ac_ext >&5
26957
26958   ac_header_preproc=no
26959 fi
26960
26961 rm -f conftest.err conftest.$ac_ext
26962 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26963 echo "${ECHO_T}$ac_header_preproc" >&6; }
26964
26965 # So?  What about this header?
26966 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26967   yes:no: )
26968     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
26969 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26970     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
26971 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
26972     ac_header_preproc=yes
26973     ;;
26974   no:yes:* )
26975     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
26976 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
26977     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
26978 echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
26979     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
26980 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
26981     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
26982 echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
26983     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
26984 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
26985     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
26986 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
26987     ( cat <<\_ASBOX
26988 ## ------------------------------- ##
26989 ## Report this to nfs@lists.sf.net ##
26990 ## ------------------------------- ##
26991 _ASBOX
26992      ) | sed "s/^/$as_me: WARNING:     /" >&2
26993     ;;
26994 esac
26995 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
26996 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
26997 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
26998   echo $ECHO_N "(cached) $ECHO_C" >&6
26999 else
27000   ac_cv_header_sys_mkdev_h=$ac_header_preproc
27001 fi
27002 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
27003 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
27004
27005 fi
27006 if test $ac_cv_header_sys_mkdev_h = yes; then
27007
27008 cat >>confdefs.h <<\_ACEOF
27009 #define MAJOR_IN_MKDEV 1
27010 _ACEOF
27011
27012 fi
27013
27014
27015
27016   if test $ac_cv_header_sys_mkdev_h = no; then
27017     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
27018   { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
27019 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
27020 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
27021   echo $ECHO_N "(cached) $ECHO_C" >&6
27022 fi
27023 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
27024 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
27025 else
27026   # Is the header compilable?
27027 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
27028 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
27029 cat >conftest.$ac_ext <<_ACEOF
27030 /* confdefs.h.  */
27031 _ACEOF
27032 cat confdefs.h >>conftest.$ac_ext
27033 cat >>conftest.$ac_ext <<_ACEOF
27034 /* end confdefs.h.  */
27035 $ac_includes_default
27036 #include <sys/sysmacros.h>
27037 _ACEOF
27038 rm -f conftest.$ac_objext
27039 if { (ac_try="$ac_compile"
27040 case "(($ac_try" in
27041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27042   *) ac_try_echo=$ac_try;;
27043 esac
27044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27045   (eval "$ac_compile") 2>conftest.er1
27046   ac_status=$?
27047   grep -v '^ *+' conftest.er1 >conftest.err
27048   rm -f conftest.er1
27049   cat conftest.err >&5
27050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27051   (exit $ac_status); } &&
27052          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27053   { (case "(($ac_try" in
27054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27055   *) ac_try_echo=$ac_try;;
27056 esac
27057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27058   (eval "$ac_try") 2>&5
27059   ac_status=$?
27060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27061   (exit $ac_status); }; } &&
27062          { ac_try='test -s conftest.$ac_objext'
27063   { (case "(($ac_try" in
27064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27065   *) ac_try_echo=$ac_try;;
27066 esac
27067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27068   (eval "$ac_try") 2>&5
27069   ac_status=$?
27070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27071   (exit $ac_status); }; }; then
27072   ac_header_compiler=yes
27073 else
27074   echo "$as_me: failed program was:" >&5
27075 sed 's/^/| /' conftest.$ac_ext >&5
27076
27077         ac_header_compiler=no
27078 fi
27079
27080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27081 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27082 echo "${ECHO_T}$ac_header_compiler" >&6; }
27083
27084 # Is the header present?
27085 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
27086 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
27087 cat >conftest.$ac_ext <<_ACEOF
27088 /* confdefs.h.  */
27089 _ACEOF
27090 cat confdefs.h >>conftest.$ac_ext
27091 cat >>conftest.$ac_ext <<_ACEOF
27092 /* end confdefs.h.  */
27093 #include <sys/sysmacros.h>
27094 _ACEOF
27095 if { (ac_try="$ac_cpp conftest.$ac_ext"
27096 case "(($ac_try" in
27097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27098   *) ac_try_echo=$ac_try;;
27099 esac
27100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27101   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27102   ac_status=$?
27103   grep -v '^ *+' conftest.er1 >conftest.err
27104   rm -f conftest.er1
27105   cat conftest.err >&5
27106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27107   (exit $ac_status); } >/dev/null; then
27108   if test -s conftest.err; then
27109     ac_cpp_err=$ac_c_preproc_warn_flag
27110     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27111   else
27112     ac_cpp_err=
27113   fi
27114 else
27115   ac_cpp_err=yes
27116 fi
27117 if test -z "$ac_cpp_err"; then
27118   ac_header_preproc=yes
27119 else
27120   echo "$as_me: failed program was:" >&5
27121 sed 's/^/| /' conftest.$ac_ext >&5
27122
27123   ac_header_preproc=no
27124 fi
27125
27126 rm -f conftest.err conftest.$ac_ext
27127 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27128 echo "${ECHO_T}$ac_header_preproc" >&6; }
27129
27130 # So?  What about this header?
27131 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27132   yes:no: )
27133     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
27134 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27135     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
27136 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
27137     ac_header_preproc=yes
27138     ;;
27139   no:yes:* )
27140     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
27141 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
27142     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
27143 echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
27144     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
27145 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
27146     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
27147 echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
27148     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
27149 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
27150     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
27151 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
27152     ( cat <<\_ASBOX
27153 ## ------------------------------- ##
27154 ## Report this to nfs@lists.sf.net ##
27155 ## ------------------------------- ##
27156 _ASBOX
27157      ) | sed "s/^/$as_me: WARNING:     /" >&2
27158     ;;
27159 esac
27160 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
27161 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
27162 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
27163   echo $ECHO_N "(cached) $ECHO_C" >&6
27164 else
27165   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
27166 fi
27167 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
27168 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
27169
27170 fi
27171 if test $ac_cv_header_sys_sysmacros_h = yes; then
27172
27173 cat >>confdefs.h <<\_ACEOF
27174 #define MAJOR_IN_SYSMACROS 1
27175 _ACEOF
27176
27177 fi
27178
27179
27180   fi
27181 fi
27182
27183 #AC_FUNC_MALLOC
27184 { echo "$as_me:$LINENO: checking for working memcmp" >&5
27185 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
27186 if test "${ac_cv_func_memcmp_working+set}" = set; then
27187   echo $ECHO_N "(cached) $ECHO_C" >&6
27188 else
27189   if test "$cross_compiling" = yes; then
27190   ac_cv_func_memcmp_working=no
27191 else
27192   cat >conftest.$ac_ext <<_ACEOF
27193 /* confdefs.h.  */
27194 _ACEOF
27195 cat confdefs.h >>conftest.$ac_ext
27196 cat >>conftest.$ac_ext <<_ACEOF
27197 /* end confdefs.h.  */
27198 $ac_includes_default
27199 int
27200 main ()
27201 {
27202
27203   /* Some versions of memcmp are not 8-bit clean.  */
27204   char c0 = '\100', c1 = '\200', c2 = '\201';
27205   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
27206     return 1;
27207
27208   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
27209      or more and with at least one buffer not starting on a 4-byte boundary.
27210      William Lewis provided this test program.   */
27211   {
27212     char foo[21];
27213     char bar[21];
27214     int i;
27215     for (i = 0; i < 4; i++)
27216       {
27217         char *a = foo + i;
27218         char *b = bar + i;
27219         strcpy (a, "--------01111111");
27220         strcpy (b, "--------10000000");
27221         if (memcmp (a, b, 16) >= 0)
27222           return 1;
27223       }
27224     return 0;
27225   }
27226
27227   ;
27228   return 0;
27229 }
27230 _ACEOF
27231 rm -f conftest$ac_exeext
27232 if { (ac_try="$ac_link"
27233 case "(($ac_try" in
27234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27235   *) ac_try_echo=$ac_try;;
27236 esac
27237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27238   (eval "$ac_link") 2>&5
27239   ac_status=$?
27240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27241   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27242   { (case "(($ac_try" in
27243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27244   *) ac_try_echo=$ac_try;;
27245 esac
27246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27247   (eval "$ac_try") 2>&5
27248   ac_status=$?
27249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27250   (exit $ac_status); }; }; then
27251   ac_cv_func_memcmp_working=yes
27252 else
27253   echo "$as_me: program exited with status $ac_status" >&5
27254 echo "$as_me: failed program was:" >&5
27255 sed 's/^/| /' conftest.$ac_ext >&5
27256
27257 ( exit $ac_status )
27258 ac_cv_func_memcmp_working=no
27259 fi
27260 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27261 fi
27262
27263
27264 fi
27265 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
27266 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
27267 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
27268   *" memcmp.$ac_objext "* ) ;;
27269   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
27270  ;;
27271 esac
27272
27273
27274 #AC_FUNC_REALLOC
27275
27276
27277 for ac_header in sys/select.h sys/socket.h
27278 do
27279 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27280 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27281   { echo "$as_me:$LINENO: checking for $ac_header" >&5
27282 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27283 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27284   echo $ECHO_N "(cached) $ECHO_C" >&6
27285 fi
27286 ac_res=`eval echo '${'$as_ac_Header'}'`
27287                { echo "$as_me:$LINENO: result: $ac_res" >&5
27288 echo "${ECHO_T}$ac_res" >&6; }
27289 else
27290   # Is the header compilable?
27291 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27292 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27293 cat >conftest.$ac_ext <<_ACEOF
27294 /* confdefs.h.  */
27295 _ACEOF
27296 cat confdefs.h >>conftest.$ac_ext
27297 cat >>conftest.$ac_ext <<_ACEOF
27298 /* end confdefs.h.  */
27299 $ac_includes_default
27300 #include <$ac_header>
27301 _ACEOF
27302 rm -f conftest.$ac_objext
27303 if { (ac_try="$ac_compile"
27304 case "(($ac_try" in
27305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27306   *) ac_try_echo=$ac_try;;
27307 esac
27308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27309   (eval "$ac_compile") 2>conftest.er1
27310   ac_status=$?
27311   grep -v '^ *+' conftest.er1 >conftest.err
27312   rm -f conftest.er1
27313   cat conftest.err >&5
27314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27315   (exit $ac_status); } &&
27316          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27317   { (case "(($ac_try" in
27318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27319   *) ac_try_echo=$ac_try;;
27320 esac
27321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27322   (eval "$ac_try") 2>&5
27323   ac_status=$?
27324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27325   (exit $ac_status); }; } &&
27326          { ac_try='test -s conftest.$ac_objext'
27327   { (case "(($ac_try" in
27328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27329   *) ac_try_echo=$ac_try;;
27330 esac
27331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27332   (eval "$ac_try") 2>&5
27333   ac_status=$?
27334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27335   (exit $ac_status); }; }; then
27336   ac_header_compiler=yes
27337 else
27338   echo "$as_me: failed program was:" >&5
27339 sed 's/^/| /' conftest.$ac_ext >&5
27340
27341         ac_header_compiler=no
27342 fi
27343
27344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27345 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27346 echo "${ECHO_T}$ac_header_compiler" >&6; }
27347
27348 # Is the header present?
27349 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27350 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27351 cat >conftest.$ac_ext <<_ACEOF
27352 /* confdefs.h.  */
27353 _ACEOF
27354 cat confdefs.h >>conftest.$ac_ext
27355 cat >>conftest.$ac_ext <<_ACEOF
27356 /* end confdefs.h.  */
27357 #include <$ac_header>
27358 _ACEOF
27359 if { (ac_try="$ac_cpp conftest.$ac_ext"
27360 case "(($ac_try" in
27361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27362   *) ac_try_echo=$ac_try;;
27363 esac
27364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27365   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27366   ac_status=$?
27367   grep -v '^ *+' conftest.er1 >conftest.err
27368   rm -f conftest.er1
27369   cat conftest.err >&5
27370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27371   (exit $ac_status); } >/dev/null; then
27372   if test -s conftest.err; then
27373     ac_cpp_err=$ac_c_preproc_warn_flag
27374     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27375   else
27376     ac_cpp_err=
27377   fi
27378 else
27379   ac_cpp_err=yes
27380 fi
27381 if test -z "$ac_cpp_err"; then
27382   ac_header_preproc=yes
27383 else
27384   echo "$as_me: failed program was:" >&5
27385 sed 's/^/| /' conftest.$ac_ext >&5
27386
27387   ac_header_preproc=no
27388 fi
27389
27390 rm -f conftest.err conftest.$ac_ext
27391 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27392 echo "${ECHO_T}$ac_header_preproc" >&6; }
27393
27394 # So?  What about this header?
27395 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27396   yes:no: )
27397     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27398 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27399     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27400 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27401     ac_header_preproc=yes
27402     ;;
27403   no:yes:* )
27404     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27405 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27406     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27407 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27408     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27409 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27410     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27411 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27412     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27413 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27414     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27415 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27416     ( cat <<\_ASBOX
27417 ## ------------------------------- ##
27418 ## Report this to nfs@lists.sf.net ##
27419 ## ------------------------------- ##
27420 _ASBOX
27421      ) | sed "s/^/$as_me: WARNING:     /" >&2
27422     ;;
27423 esac
27424 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27425 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27426 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27427   echo $ECHO_N "(cached) $ECHO_C" >&6
27428 else
27429   eval "$as_ac_Header=\$ac_header_preproc"
27430 fi
27431 ac_res=`eval echo '${'$as_ac_Header'}'`
27432                { echo "$as_me:$LINENO: result: $ac_res" >&5
27433 echo "${ECHO_T}$ac_res" >&6; }
27434
27435 fi
27436 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27437   cat >>confdefs.h <<_ACEOF
27438 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27439 _ACEOF
27440
27441 fi
27442
27443 done
27444
27445 { echo "$as_me:$LINENO: checking types of arguments for select" >&5
27446 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
27447 if test "${ac_cv_func_select_args+set}" = set; then
27448   echo $ECHO_N "(cached) $ECHO_C" >&6
27449 else
27450   for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
27451  for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
27452   for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
27453    cat >conftest.$ac_ext <<_ACEOF
27454 /* confdefs.h.  */
27455 _ACEOF
27456 cat confdefs.h >>conftest.$ac_ext
27457 cat >>conftest.$ac_ext <<_ACEOF
27458 /* end confdefs.h.  */
27459 $ac_includes_default
27460 #if HAVE_SYS_SELECT_H
27461 # include <sys/select.h>
27462 #endif
27463 #if HAVE_SYS_SOCKET_H
27464 # include <sys/socket.h>
27465 #endif
27466
27467 int
27468 main ()
27469 {
27470 extern int select ($ac_arg1,
27471                                             $ac_arg234, $ac_arg234, $ac_arg234,
27472                                             $ac_arg5);
27473   ;
27474   return 0;
27475 }
27476 _ACEOF
27477 rm -f conftest.$ac_objext
27478 if { (ac_try="$ac_compile"
27479 case "(($ac_try" in
27480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27481   *) ac_try_echo=$ac_try;;
27482 esac
27483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27484   (eval "$ac_compile") 2>conftest.er1
27485   ac_status=$?
27486   grep -v '^ *+' conftest.er1 >conftest.err
27487   rm -f conftest.er1
27488   cat conftest.err >&5
27489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27490   (exit $ac_status); } &&
27491          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27492   { (case "(($ac_try" in
27493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27494   *) ac_try_echo=$ac_try;;
27495 esac
27496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27497   (eval "$ac_try") 2>&5
27498   ac_status=$?
27499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27500   (exit $ac_status); }; } &&
27501          { ac_try='test -s conftest.$ac_objext'
27502   { (case "(($ac_try" in
27503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27504   *) ac_try_echo=$ac_try;;
27505 esac
27506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27507   (eval "$ac_try") 2>&5
27508   ac_status=$?
27509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27510   (exit $ac_status); }; }; then
27511   ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
27512 else
27513   echo "$as_me: failed program was:" >&5
27514 sed 's/^/| /' conftest.$ac_ext >&5
27515
27516
27517 fi
27518
27519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27520   done
27521  done
27522 done
27523 # Provide a safe default value.
27524 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
27525
27526 fi
27527 { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
27528 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
27529 ac_save_IFS=$IFS; IFS=','
27530 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
27531 IFS=$ac_save_IFS
27532 shift
27533
27534 cat >>confdefs.h <<_ACEOF
27535 #define SELECT_TYPE_ARG1 $1
27536 _ACEOF
27537
27538
27539 cat >>confdefs.h <<_ACEOF
27540 #define SELECT_TYPE_ARG234 ($2)
27541 _ACEOF
27542
27543
27544 cat >>confdefs.h <<_ACEOF
27545 #define SELECT_TYPE_ARG5 ($3)
27546 _ACEOF
27547
27548 rm -f conftest*
27549
27550 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
27551 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
27552 if test "${ac_cv_type_signal+set}" = set; then
27553   echo $ECHO_N "(cached) $ECHO_C" >&6
27554 else
27555   cat >conftest.$ac_ext <<_ACEOF
27556 /* confdefs.h.  */
27557 _ACEOF
27558 cat confdefs.h >>conftest.$ac_ext
27559 cat >>conftest.$ac_ext <<_ACEOF
27560 /* end confdefs.h.  */
27561 #include <sys/types.h>
27562 #include <signal.h>
27563
27564 int
27565 main ()
27566 {
27567 return *(signal (0, 0)) (0) == 1;
27568   ;
27569   return 0;
27570 }
27571 _ACEOF
27572 rm -f conftest.$ac_objext
27573 if { (ac_try="$ac_compile"
27574 case "(($ac_try" in
27575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27576   *) ac_try_echo=$ac_try;;
27577 esac
27578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27579   (eval "$ac_compile") 2>conftest.er1
27580   ac_status=$?
27581   grep -v '^ *+' conftest.er1 >conftest.err
27582   rm -f conftest.er1
27583   cat conftest.err >&5
27584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27585   (exit $ac_status); } &&
27586          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27587   { (case "(($ac_try" in
27588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27589   *) ac_try_echo=$ac_try;;
27590 esac
27591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27592   (eval "$ac_try") 2>&5
27593   ac_status=$?
27594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27595   (exit $ac_status); }; } &&
27596          { ac_try='test -s conftest.$ac_objext'
27597   { (case "(($ac_try" in
27598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27599   *) ac_try_echo=$ac_try;;
27600 esac
27601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27602   (eval "$ac_try") 2>&5
27603   ac_status=$?
27604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27605   (exit $ac_status); }; }; then
27606   ac_cv_type_signal=int
27607 else
27608   echo "$as_me: failed program was:" >&5
27609 sed 's/^/| /' conftest.$ac_ext >&5
27610
27611         ac_cv_type_signal=void
27612 fi
27613
27614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27615 fi
27616 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
27617 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
27618
27619 cat >>confdefs.h <<_ACEOF
27620 #define RETSIGTYPE $ac_cv_type_signal
27621 _ACEOF
27622
27623
27624 { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
27625 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
27626 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
27627   echo $ECHO_N "(cached) $ECHO_C" >&6
27628 else
27629   if test "$cross_compiling" = yes; then
27630   ac_cv_func_stat_empty_string_bug=yes
27631 else
27632   cat >conftest.$ac_ext <<_ACEOF
27633 /* confdefs.h.  */
27634 _ACEOF
27635 cat confdefs.h >>conftest.$ac_ext
27636 cat >>conftest.$ac_ext <<_ACEOF
27637 /* end confdefs.h.  */
27638 $ac_includes_default
27639 int
27640 main ()
27641 {
27642 struct stat sbuf;
27643   return stat ("", &sbuf) == 0;
27644   ;
27645   return 0;
27646 }
27647 _ACEOF
27648 rm -f conftest$ac_exeext
27649 if { (ac_try="$ac_link"
27650 case "(($ac_try" in
27651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27652   *) ac_try_echo=$ac_try;;
27653 esac
27654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27655   (eval "$ac_link") 2>&5
27656   ac_status=$?
27657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27658   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27659   { (case "(($ac_try" in
27660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27661   *) ac_try_echo=$ac_try;;
27662 esac
27663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27664   (eval "$ac_try") 2>&5
27665   ac_status=$?
27666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27667   (exit $ac_status); }; }; then
27668   ac_cv_func_stat_empty_string_bug=no
27669 else
27670   echo "$as_me: program exited with status $ac_status" >&5
27671 echo "$as_me: failed program was:" >&5
27672 sed 's/^/| /' conftest.$ac_ext >&5
27673
27674 ( exit $ac_status )
27675 ac_cv_func_stat_empty_string_bug=yes
27676 fi
27677 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27678 fi
27679
27680
27681 fi
27682 { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
27683 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
27684 if test $ac_cv_func_stat_empty_string_bug = yes; then
27685   case " $LIBOBJS " in
27686   *" stat.$ac_objext "* ) ;;
27687   *) LIBOBJS="$LIBOBJS stat.$ac_objext"
27688  ;;
27689 esac
27690
27691
27692 cat >>confdefs.h <<_ACEOF
27693 #define HAVE_STAT_EMPTY_STRING_BUG 1
27694 _ACEOF
27695
27696 fi
27697
27698
27699 for ac_func in vprintf
27700 do
27701 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27702 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27703 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27704 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27705   echo $ECHO_N "(cached) $ECHO_C" >&6
27706 else
27707   cat >conftest.$ac_ext <<_ACEOF
27708 /* confdefs.h.  */
27709 _ACEOF
27710 cat confdefs.h >>conftest.$ac_ext
27711 cat >>conftest.$ac_ext <<_ACEOF
27712 /* end confdefs.h.  */
27713 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27714    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27715 #define $ac_func innocuous_$ac_func
27716
27717 /* System header to define __stub macros and hopefully few prototypes,
27718     which can conflict with char $ac_func (); below.
27719     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27720     <limits.h> exists even on freestanding compilers.  */
27721
27722 #ifdef __STDC__
27723 # include <limits.h>
27724 #else
27725 # include <assert.h>
27726 #endif
27727
27728 #undef $ac_func
27729
27730 /* Override any GCC internal prototype to avoid an error.
27731    Use char because int might match the return type of a GCC
27732    builtin and then its argument prototype would still apply.  */
27733 #ifdef __cplusplus
27734 extern "C"
27735 #endif
27736 char $ac_func ();
27737 /* The GNU C library defines this for functions which it implements
27738     to always fail with ENOSYS.  Some functions are actually named
27739     something starting with __ and the normal name is an alias.  */
27740 #if defined __stub_$ac_func || defined __stub___$ac_func
27741 choke me
27742 #endif
27743
27744 int
27745 main ()
27746 {
27747 return $ac_func ();
27748   ;
27749   return 0;
27750 }
27751 _ACEOF
27752 rm -f conftest.$ac_objext conftest$ac_exeext
27753 if { (ac_try="$ac_link"
27754 case "(($ac_try" in
27755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27756   *) ac_try_echo=$ac_try;;
27757 esac
27758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27759   (eval "$ac_link") 2>conftest.er1
27760   ac_status=$?
27761   grep -v '^ *+' conftest.er1 >conftest.err
27762   rm -f conftest.er1
27763   cat conftest.err >&5
27764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27765   (exit $ac_status); } &&
27766          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27767   { (case "(($ac_try" in
27768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27769   *) ac_try_echo=$ac_try;;
27770 esac
27771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27772   (eval "$ac_try") 2>&5
27773   ac_status=$?
27774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27775   (exit $ac_status); }; } &&
27776          { ac_try='test -s conftest$ac_exeext'
27777   { (case "(($ac_try" in
27778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27779   *) ac_try_echo=$ac_try;;
27780 esac
27781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27782   (eval "$ac_try") 2>&5
27783   ac_status=$?
27784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27785   (exit $ac_status); }; }; then
27786   eval "$as_ac_var=yes"
27787 else
27788   echo "$as_me: failed program was:" >&5
27789 sed 's/^/| /' conftest.$ac_ext >&5
27790
27791         eval "$as_ac_var=no"
27792 fi
27793
27794 rm -f core conftest.err conftest.$ac_objext \
27795       conftest$ac_exeext conftest.$ac_ext
27796 fi
27797 ac_res=`eval echo '${'$as_ac_var'}'`
27798                { echo "$as_me:$LINENO: result: $ac_res" >&5
27799 echo "${ECHO_T}$ac_res" >&6; }
27800 if test `eval echo '${'$as_ac_var'}'` = yes; then
27801   cat >>confdefs.h <<_ACEOF
27802 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27803 _ACEOF
27804
27805 { echo "$as_me:$LINENO: checking for _doprnt" >&5
27806 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
27807 if test "${ac_cv_func__doprnt+set}" = set; then
27808   echo $ECHO_N "(cached) $ECHO_C" >&6
27809 else
27810   cat >conftest.$ac_ext <<_ACEOF
27811 /* confdefs.h.  */
27812 _ACEOF
27813 cat confdefs.h >>conftest.$ac_ext
27814 cat >>conftest.$ac_ext <<_ACEOF
27815 /* end confdefs.h.  */
27816 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
27817    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27818 #define _doprnt innocuous__doprnt
27819
27820 /* System header to define __stub macros and hopefully few prototypes,
27821     which can conflict with char _doprnt (); below.
27822     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27823     <limits.h> exists even on freestanding compilers.  */
27824
27825 #ifdef __STDC__
27826 # include <limits.h>
27827 #else
27828 # include <assert.h>
27829 #endif
27830
27831 #undef _doprnt
27832
27833 /* Override any GCC internal prototype to avoid an error.
27834    Use char because int might match the return type of a GCC
27835    builtin and then its argument prototype would still apply.  */
27836 #ifdef __cplusplus
27837 extern "C"
27838 #endif
27839 char _doprnt ();
27840 /* The GNU C library defines this for functions which it implements
27841     to always fail with ENOSYS.  Some functions are actually named
27842     something starting with __ and the normal name is an alias.  */
27843 #if defined __stub__doprnt || defined __stub____doprnt
27844 choke me
27845 #endif
27846
27847 int
27848 main ()
27849 {
27850 return _doprnt ();
27851   ;
27852   return 0;
27853 }
27854 _ACEOF
27855 rm -f conftest.$ac_objext conftest$ac_exeext
27856 if { (ac_try="$ac_link"
27857 case "(($ac_try" in
27858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27859   *) ac_try_echo=$ac_try;;
27860 esac
27861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27862   (eval "$ac_link") 2>conftest.er1
27863   ac_status=$?
27864   grep -v '^ *+' conftest.er1 >conftest.err
27865   rm -f conftest.er1
27866   cat conftest.err >&5
27867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27868   (exit $ac_status); } &&
27869          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27870   { (case "(($ac_try" in
27871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27872   *) ac_try_echo=$ac_try;;
27873 esac
27874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27875   (eval "$ac_try") 2>&5
27876   ac_status=$?
27877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27878   (exit $ac_status); }; } &&
27879          { ac_try='test -s conftest$ac_exeext'
27880   { (case "(($ac_try" in
27881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27882   *) ac_try_echo=$ac_try;;
27883 esac
27884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27885   (eval "$ac_try") 2>&5
27886   ac_status=$?
27887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27888   (exit $ac_status); }; }; then
27889   ac_cv_func__doprnt=yes
27890 else
27891   echo "$as_me: failed program was:" >&5
27892 sed 's/^/| /' conftest.$ac_ext >&5
27893
27894         ac_cv_func__doprnt=no
27895 fi
27896
27897 rm -f core conftest.err conftest.$ac_objext \
27898       conftest$ac_exeext conftest.$ac_ext
27899 fi
27900 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
27901 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
27902 if test $ac_cv_func__doprnt = yes; then
27903
27904 cat >>confdefs.h <<\_ACEOF
27905 #define HAVE_DOPRNT 1
27906 _ACEOF
27907
27908 fi
27909
27910 fi
27911 done
27912
27913
27914
27915
27916
27917
27918
27919
27920
27921
27922
27923
27924
27925
27926
27927
27928
27929
27930
27931
27932
27933
27934
27935
27936
27937
27938
27939
27940
27941
27942
27943 for ac_func in alarm atexit dup2 fdatasync ftruncate getcwd \
27944                gethostbyaddr gethostbyname gethostname getmntent \
27945                gettimeofday hasmntopt inet_ntoa innetgr memset mkdir pathconf \
27946                realpath rmdir select socket strcasecmp strchr strdup \
27947                strerror strrchr strtol strtoul sigprocmask
27948 do
27949 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27950 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27951 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27952 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27953   echo $ECHO_N "(cached) $ECHO_C" >&6
27954 else
27955   cat >conftest.$ac_ext <<_ACEOF
27956 /* confdefs.h.  */
27957 _ACEOF
27958 cat confdefs.h >>conftest.$ac_ext
27959 cat >>conftest.$ac_ext <<_ACEOF
27960 /* end confdefs.h.  */
27961 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27962    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27963 #define $ac_func innocuous_$ac_func
27964
27965 /* System header to define __stub macros and hopefully few prototypes,
27966     which can conflict with char $ac_func (); below.
27967     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27968     <limits.h> exists even on freestanding compilers.  */
27969
27970 #ifdef __STDC__
27971 # include <limits.h>
27972 #else
27973 # include <assert.h>
27974 #endif
27975
27976 #undef $ac_func
27977
27978 /* Override any GCC internal prototype to avoid an error.
27979    Use char because int might match the return type of a GCC
27980    builtin and then its argument prototype would still apply.  */
27981 #ifdef __cplusplus
27982 extern "C"
27983 #endif
27984 char $ac_func ();
27985 /* The GNU C library defines this for functions which it implements
27986     to always fail with ENOSYS.  Some functions are actually named
27987     something starting with __ and the normal name is an alias.  */
27988 #if defined __stub_$ac_func || defined __stub___$ac_func
27989 choke me
27990 #endif
27991
27992 int
27993 main ()
27994 {
27995 return $ac_func ();
27996   ;
27997   return 0;
27998 }
27999 _ACEOF
28000 rm -f conftest.$ac_objext conftest$ac_exeext
28001 if { (ac_try="$ac_link"
28002 case "(($ac_try" in
28003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28004   *) ac_try_echo=$ac_try;;
28005 esac
28006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28007   (eval "$ac_link") 2>conftest.er1
28008   ac_status=$?
28009   grep -v '^ *+' conftest.er1 >conftest.err
28010   rm -f conftest.er1
28011   cat conftest.err >&5
28012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28013   (exit $ac_status); } &&
28014          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28015   { (case "(($ac_try" in
28016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28017   *) ac_try_echo=$ac_try;;
28018 esac
28019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28020   (eval "$ac_try") 2>&5
28021   ac_status=$?
28022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28023   (exit $ac_status); }; } &&
28024          { ac_try='test -s conftest$ac_exeext'
28025   { (case "(($ac_try" in
28026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28027   *) ac_try_echo=$ac_try;;
28028 esac
28029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28030   (eval "$ac_try") 2>&5
28031   ac_status=$?
28032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28033   (exit $ac_status); }; }; then
28034   eval "$as_ac_var=yes"
28035 else
28036   echo "$as_me: failed program was:" >&5
28037 sed 's/^/| /' conftest.$ac_ext >&5
28038
28039         eval "$as_ac_var=no"
28040 fi
28041
28042 rm -f core conftest.err conftest.$ac_objext \
28043       conftest$ac_exeext conftest.$ac_ext
28044 fi
28045 ac_res=`eval echo '${'$as_ac_var'}'`
28046                { echo "$as_me:$LINENO: result: $ac_res" >&5
28047 echo "${ECHO_T}$ac_res" >&6; }
28048 if test `eval echo '${'$as_ac_var'}'` = yes; then
28049   cat >>confdefs.h <<_ACEOF
28050 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28051 _ACEOF
28052
28053 fi
28054 done
28055
28056
28057
28058 { echo "$as_me:$LINENO: checking for short" >&5
28059 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
28060 if test "${ac_cv_type_short+set}" = set; then
28061   echo $ECHO_N "(cached) $ECHO_C" >&6
28062 else
28063   cat >conftest.$ac_ext <<_ACEOF
28064 /* confdefs.h.  */
28065 _ACEOF
28066 cat confdefs.h >>conftest.$ac_ext
28067 cat >>conftest.$ac_ext <<_ACEOF
28068 /* end confdefs.h.  */
28069 $ac_includes_default
28070 typedef short ac__type_new_;
28071 int
28072 main ()
28073 {
28074 if ((ac__type_new_ *) 0)
28075   return 0;
28076 if (sizeof (ac__type_new_))
28077   return 0;
28078   ;
28079   return 0;
28080 }
28081 _ACEOF
28082 rm -f conftest.$ac_objext
28083 if { (ac_try="$ac_compile"
28084 case "(($ac_try" in
28085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28086   *) ac_try_echo=$ac_try;;
28087 esac
28088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28089   (eval "$ac_compile") 2>conftest.er1
28090   ac_status=$?
28091   grep -v '^ *+' conftest.er1 >conftest.err
28092   rm -f conftest.er1
28093   cat conftest.err >&5
28094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28095   (exit $ac_status); } &&
28096          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28097   { (case "(($ac_try" in
28098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28099   *) ac_try_echo=$ac_try;;
28100 esac
28101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28102   (eval "$ac_try") 2>&5
28103   ac_status=$?
28104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28105   (exit $ac_status); }; } &&
28106          { ac_try='test -s conftest.$ac_objext'
28107   { (case "(($ac_try" in
28108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28109   *) ac_try_echo=$ac_try;;
28110 esac
28111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28112   (eval "$ac_try") 2>&5
28113   ac_status=$?
28114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28115   (exit $ac_status); }; }; then
28116   ac_cv_type_short=yes
28117 else
28118   echo "$as_me: failed program was:" >&5
28119 sed 's/^/| /' conftest.$ac_ext >&5
28120
28121         ac_cv_type_short=no
28122 fi
28123
28124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28125 fi
28126 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
28127 echo "${ECHO_T}$ac_cv_type_short" >&6; }
28128
28129 { echo "$as_me:$LINENO: checking size of short" >&5
28130 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
28131 if test "${ac_cv_sizeof_short+set}" = set; then
28132   echo $ECHO_N "(cached) $ECHO_C" >&6
28133 else
28134   if test "$ac_cv_type_short" = yes; then
28135   # The cast to long int works around a bug in the HP C Compiler
28136   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28137   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28138   # This bug is HP SR number 8606223364.
28139   if test "$cross_compiling" = yes; then
28140   # Depending upon the size, compute the lo and hi bounds.
28141 cat >conftest.$ac_ext <<_ACEOF
28142 /* confdefs.h.  */
28143 _ACEOF
28144 cat confdefs.h >>conftest.$ac_ext
28145 cat >>conftest.$ac_ext <<_ACEOF
28146 /* end confdefs.h.  */
28147 $ac_includes_default
28148                    typedef short ac__type_sizeof_;
28149 int
28150 main ()
28151 {
28152 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
28153 test_array [0] = 0
28154
28155   ;
28156   return 0;
28157 }
28158 _ACEOF
28159 rm -f conftest.$ac_objext
28160 if { (ac_try="$ac_compile"
28161 case "(($ac_try" in
28162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28163   *) ac_try_echo=$ac_try;;
28164 esac
28165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28166   (eval "$ac_compile") 2>conftest.er1
28167   ac_status=$?
28168   grep -v '^ *+' conftest.er1 >conftest.err
28169   rm -f conftest.er1
28170   cat conftest.err >&5
28171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28172   (exit $ac_status); } &&
28173          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28174   { (case "(($ac_try" in
28175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28176   *) ac_try_echo=$ac_try;;
28177 esac
28178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28179   (eval "$ac_try") 2>&5
28180   ac_status=$?
28181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28182   (exit $ac_status); }; } &&
28183          { ac_try='test -s conftest.$ac_objext'
28184   { (case "(($ac_try" in
28185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28186   *) ac_try_echo=$ac_try;;
28187 esac
28188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28189   (eval "$ac_try") 2>&5
28190   ac_status=$?
28191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28192   (exit $ac_status); }; }; then
28193   ac_lo=0 ac_mid=0
28194   while :; do
28195     cat >conftest.$ac_ext <<_ACEOF
28196 /* confdefs.h.  */
28197 _ACEOF
28198 cat confdefs.h >>conftest.$ac_ext
28199 cat >>conftest.$ac_ext <<_ACEOF
28200 /* end confdefs.h.  */
28201 $ac_includes_default
28202                    typedef short ac__type_sizeof_;
28203 int
28204 main ()
28205 {
28206 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28207 test_array [0] = 0
28208
28209   ;
28210   return 0;
28211 }
28212 _ACEOF
28213 rm -f conftest.$ac_objext
28214 if { (ac_try="$ac_compile"
28215 case "(($ac_try" in
28216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28217   *) ac_try_echo=$ac_try;;
28218 esac
28219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28220   (eval "$ac_compile") 2>conftest.er1
28221   ac_status=$?
28222   grep -v '^ *+' conftest.er1 >conftest.err
28223   rm -f conftest.er1
28224   cat conftest.err >&5
28225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28226   (exit $ac_status); } &&
28227          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28228   { (case "(($ac_try" in
28229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28230   *) ac_try_echo=$ac_try;;
28231 esac
28232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28233   (eval "$ac_try") 2>&5
28234   ac_status=$?
28235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28236   (exit $ac_status); }; } &&
28237          { ac_try='test -s conftest.$ac_objext'
28238   { (case "(($ac_try" in
28239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28240   *) ac_try_echo=$ac_try;;
28241 esac
28242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28243   (eval "$ac_try") 2>&5
28244   ac_status=$?
28245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28246   (exit $ac_status); }; }; then
28247   ac_hi=$ac_mid; break
28248 else
28249   echo "$as_me: failed program was:" >&5
28250 sed 's/^/| /' conftest.$ac_ext >&5
28251
28252         ac_lo=`expr $ac_mid + 1`
28253                         if test $ac_lo -le $ac_mid; then
28254                           ac_lo= ac_hi=
28255                           break
28256                         fi
28257                         ac_mid=`expr 2 '*' $ac_mid + 1`
28258 fi
28259
28260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28261   done
28262 else
28263   echo "$as_me: failed program was:" >&5
28264 sed 's/^/| /' conftest.$ac_ext >&5
28265
28266         cat >conftest.$ac_ext <<_ACEOF
28267 /* confdefs.h.  */
28268 _ACEOF
28269 cat confdefs.h >>conftest.$ac_ext
28270 cat >>conftest.$ac_ext <<_ACEOF
28271 /* end confdefs.h.  */
28272 $ac_includes_default
28273                    typedef short ac__type_sizeof_;
28274 int
28275 main ()
28276 {
28277 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
28278 test_array [0] = 0
28279
28280   ;
28281   return 0;
28282 }
28283 _ACEOF
28284 rm -f conftest.$ac_objext
28285 if { (ac_try="$ac_compile"
28286 case "(($ac_try" in
28287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28288   *) ac_try_echo=$ac_try;;
28289 esac
28290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28291   (eval "$ac_compile") 2>conftest.er1
28292   ac_status=$?
28293   grep -v '^ *+' conftest.er1 >conftest.err
28294   rm -f conftest.er1
28295   cat conftest.err >&5
28296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28297   (exit $ac_status); } &&
28298          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28299   { (case "(($ac_try" in
28300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28301   *) ac_try_echo=$ac_try;;
28302 esac
28303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28304   (eval "$ac_try") 2>&5
28305   ac_status=$?
28306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28307   (exit $ac_status); }; } &&
28308          { ac_try='test -s conftest.$ac_objext'
28309   { (case "(($ac_try" in
28310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28311   *) ac_try_echo=$ac_try;;
28312 esac
28313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28314   (eval "$ac_try") 2>&5
28315   ac_status=$?
28316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28317   (exit $ac_status); }; }; then
28318   ac_hi=-1 ac_mid=-1
28319   while :; do
28320     cat >conftest.$ac_ext <<_ACEOF
28321 /* confdefs.h.  */
28322 _ACEOF
28323 cat confdefs.h >>conftest.$ac_ext
28324 cat >>conftest.$ac_ext <<_ACEOF
28325 /* end confdefs.h.  */
28326 $ac_includes_default
28327                    typedef short ac__type_sizeof_;
28328 int
28329 main ()
28330 {
28331 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
28332 test_array [0] = 0
28333
28334   ;
28335   return 0;
28336 }
28337 _ACEOF
28338 rm -f conftest.$ac_objext
28339 if { (ac_try="$ac_compile"
28340 case "(($ac_try" in
28341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28342   *) ac_try_echo=$ac_try;;
28343 esac
28344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28345   (eval "$ac_compile") 2>conftest.er1
28346   ac_status=$?
28347   grep -v '^ *+' conftest.er1 >conftest.err
28348   rm -f conftest.er1
28349   cat conftest.err >&5
28350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28351   (exit $ac_status); } &&
28352          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28353   { (case "(($ac_try" in
28354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28355   *) ac_try_echo=$ac_try;;
28356 esac
28357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28358   (eval "$ac_try") 2>&5
28359   ac_status=$?
28360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28361   (exit $ac_status); }; } &&
28362          { ac_try='test -s conftest.$ac_objext'
28363   { (case "(($ac_try" in
28364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28365   *) ac_try_echo=$ac_try;;
28366 esac
28367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28368   (eval "$ac_try") 2>&5
28369   ac_status=$?
28370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28371   (exit $ac_status); }; }; then
28372   ac_lo=$ac_mid; break
28373 else
28374   echo "$as_me: failed program was:" >&5
28375 sed 's/^/| /' conftest.$ac_ext >&5
28376
28377         ac_hi=`expr '(' $ac_mid ')' - 1`
28378                         if test $ac_mid -le $ac_hi; then
28379                           ac_lo= ac_hi=
28380                           break
28381                         fi
28382                         ac_mid=`expr 2 '*' $ac_mid`
28383 fi
28384
28385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28386   done
28387 else
28388   echo "$as_me: failed program was:" >&5
28389 sed 's/^/| /' conftest.$ac_ext >&5
28390
28391         ac_lo= ac_hi=
28392 fi
28393
28394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28395 fi
28396
28397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28398 # Binary search between lo and hi bounds.
28399 while test "x$ac_lo" != "x$ac_hi"; do
28400   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28401   cat >conftest.$ac_ext <<_ACEOF
28402 /* confdefs.h.  */
28403 _ACEOF
28404 cat confdefs.h >>conftest.$ac_ext
28405 cat >>conftest.$ac_ext <<_ACEOF
28406 /* end confdefs.h.  */
28407 $ac_includes_default
28408                    typedef short ac__type_sizeof_;
28409 int
28410 main ()
28411 {
28412 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28413 test_array [0] = 0
28414
28415   ;
28416   return 0;
28417 }
28418 _ACEOF
28419 rm -f conftest.$ac_objext
28420 if { (ac_try="$ac_compile"
28421 case "(($ac_try" in
28422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28423   *) ac_try_echo=$ac_try;;
28424 esac
28425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28426   (eval "$ac_compile") 2>conftest.er1
28427   ac_status=$?
28428   grep -v '^ *+' conftest.er1 >conftest.err
28429   rm -f conftest.er1
28430   cat conftest.err >&5
28431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28432   (exit $ac_status); } &&
28433          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28434   { (case "(($ac_try" in
28435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28436   *) ac_try_echo=$ac_try;;
28437 esac
28438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28439   (eval "$ac_try") 2>&5
28440   ac_status=$?
28441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28442   (exit $ac_status); }; } &&
28443          { ac_try='test -s conftest.$ac_objext'
28444   { (case "(($ac_try" in
28445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28446   *) ac_try_echo=$ac_try;;
28447 esac
28448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28449   (eval "$ac_try") 2>&5
28450   ac_status=$?
28451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28452   (exit $ac_status); }; }; then
28453   ac_hi=$ac_mid
28454 else
28455   echo "$as_me: failed program was:" >&5
28456 sed 's/^/| /' conftest.$ac_ext >&5
28457
28458         ac_lo=`expr '(' $ac_mid ')' + 1`
28459 fi
28460
28461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28462 done
28463 case $ac_lo in
28464 ?*) ac_cv_sizeof_short=$ac_lo;;
28465 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
28466 See \`config.log' for more details." >&5
28467 echo "$as_me: error: cannot compute sizeof (short)
28468 See \`config.log' for more details." >&2;}
28469    { (exit 77); exit 77; }; } ;;
28470 esac
28471 else
28472   cat >conftest.$ac_ext <<_ACEOF
28473 /* confdefs.h.  */
28474 _ACEOF
28475 cat confdefs.h >>conftest.$ac_ext
28476 cat >>conftest.$ac_ext <<_ACEOF
28477 /* end confdefs.h.  */
28478 $ac_includes_default
28479                    typedef short ac__type_sizeof_;
28480 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28481 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28482 #include <stdio.h>
28483 #include <stdlib.h>
28484 int
28485 main ()
28486 {
28487
28488   FILE *f = fopen ("conftest.val", "w");
28489   if (! f)
28490     return 1;
28491   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
28492     {
28493       long int i = longval ();
28494       if (i != ((long int) (sizeof (ac__type_sizeof_))))
28495         return 1;
28496       fprintf (f, "%ld\n", i);
28497     }
28498   else
28499     {
28500       unsigned long int i = ulongval ();
28501       if (i != ((long int) (sizeof (ac__type_sizeof_))))
28502         return 1;
28503       fprintf (f, "%lu\n", i);
28504     }
28505   return ferror (f) || fclose (f) != 0;
28506
28507   ;
28508   return 0;
28509 }
28510 _ACEOF
28511 rm -f conftest$ac_exeext
28512 if { (ac_try="$ac_link"
28513 case "(($ac_try" in
28514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28515   *) ac_try_echo=$ac_try;;
28516 esac
28517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28518   (eval "$ac_link") 2>&5
28519   ac_status=$?
28520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28521   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28522   { (case "(($ac_try" in
28523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28524   *) ac_try_echo=$ac_try;;
28525 esac
28526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28527   (eval "$ac_try") 2>&5
28528   ac_status=$?
28529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28530   (exit $ac_status); }; }; then
28531   ac_cv_sizeof_short=`cat conftest.val`
28532 else
28533   echo "$as_me: program exited with status $ac_status" >&5
28534 echo "$as_me: failed program was:" >&5
28535 sed 's/^/| /' conftest.$ac_ext >&5
28536
28537 ( exit $ac_status )
28538 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
28539 See \`config.log' for more details." >&5
28540 echo "$as_me: error: cannot compute sizeof (short)
28541 See \`config.log' for more details." >&2;}
28542    { (exit 77); exit 77; }; }
28543 fi
28544 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28545 fi
28546 rm -f conftest.val
28547 else
28548   ac_cv_sizeof_short=0
28549 fi
28550 fi
28551 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
28552 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
28553 cat >>confdefs.h <<_ACEOF
28554 #define SIZEOF_SHORT $ac_cv_sizeof_short
28555 _ACEOF
28556
28557
28558 { echo "$as_me:$LINENO: checking for int" >&5
28559 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
28560 if test "${ac_cv_type_int+set}" = set; then
28561   echo $ECHO_N "(cached) $ECHO_C" >&6
28562 else
28563   cat >conftest.$ac_ext <<_ACEOF
28564 /* confdefs.h.  */
28565 _ACEOF
28566 cat confdefs.h >>conftest.$ac_ext
28567 cat >>conftest.$ac_ext <<_ACEOF
28568 /* end confdefs.h.  */
28569 $ac_includes_default
28570 typedef int ac__type_new_;
28571 int
28572 main ()
28573 {
28574 if ((ac__type_new_ *) 0)
28575   return 0;
28576 if (sizeof (ac__type_new_))
28577   return 0;
28578   ;
28579   return 0;
28580 }
28581 _ACEOF
28582 rm -f conftest.$ac_objext
28583 if { (ac_try="$ac_compile"
28584 case "(($ac_try" in
28585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28586   *) ac_try_echo=$ac_try;;
28587 esac
28588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28589   (eval "$ac_compile") 2>conftest.er1
28590   ac_status=$?
28591   grep -v '^ *+' conftest.er1 >conftest.err
28592   rm -f conftest.er1
28593   cat conftest.err >&5
28594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28595   (exit $ac_status); } &&
28596          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
28603   ac_status=$?
28604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28605   (exit $ac_status); }; } &&
28606          { ac_try='test -s conftest.$ac_objext'
28607   { (case "(($ac_try" in
28608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28609   *) ac_try_echo=$ac_try;;
28610 esac
28611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28612   (eval "$ac_try") 2>&5
28613   ac_status=$?
28614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28615   (exit $ac_status); }; }; then
28616   ac_cv_type_int=yes
28617 else
28618   echo "$as_me: failed program was:" >&5
28619 sed 's/^/| /' conftest.$ac_ext >&5
28620
28621         ac_cv_type_int=no
28622 fi
28623
28624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28625 fi
28626 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
28627 echo "${ECHO_T}$ac_cv_type_int" >&6; }
28628
28629 { echo "$as_me:$LINENO: checking size of int" >&5
28630 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
28631 if test "${ac_cv_sizeof_int+set}" = set; then
28632   echo $ECHO_N "(cached) $ECHO_C" >&6
28633 else
28634   if test "$ac_cv_type_int" = yes; then
28635   # The cast to long int works around a bug in the HP C Compiler
28636   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28637   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28638   # This bug is HP SR number 8606223364.
28639   if test "$cross_compiling" = yes; then
28640   # Depending upon the size, compute the lo and hi bounds.
28641 cat >conftest.$ac_ext <<_ACEOF
28642 /* confdefs.h.  */
28643 _ACEOF
28644 cat confdefs.h >>conftest.$ac_ext
28645 cat >>conftest.$ac_ext <<_ACEOF
28646 /* end confdefs.h.  */
28647 $ac_includes_default
28648                    typedef int ac__type_sizeof_;
28649 int
28650 main ()
28651 {
28652 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
28653 test_array [0] = 0
28654
28655   ;
28656   return 0;
28657 }
28658 _ACEOF
28659 rm -f conftest.$ac_objext
28660 if { (ac_try="$ac_compile"
28661 case "(($ac_try" in
28662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28663   *) ac_try_echo=$ac_try;;
28664 esac
28665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28666   (eval "$ac_compile") 2>conftest.er1
28667   ac_status=$?
28668   grep -v '^ *+' conftest.er1 >conftest.err
28669   rm -f conftest.er1
28670   cat conftest.err >&5
28671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28672   (exit $ac_status); } &&
28673          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28674   { (case "(($ac_try" in
28675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28676   *) ac_try_echo=$ac_try;;
28677 esac
28678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28679   (eval "$ac_try") 2>&5
28680   ac_status=$?
28681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28682   (exit $ac_status); }; } &&
28683          { ac_try='test -s conftest.$ac_objext'
28684   { (case "(($ac_try" in
28685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28686   *) ac_try_echo=$ac_try;;
28687 esac
28688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28689   (eval "$ac_try") 2>&5
28690   ac_status=$?
28691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28692   (exit $ac_status); }; }; then
28693   ac_lo=0 ac_mid=0
28694   while :; do
28695     cat >conftest.$ac_ext <<_ACEOF
28696 /* confdefs.h.  */
28697 _ACEOF
28698 cat confdefs.h >>conftest.$ac_ext
28699 cat >>conftest.$ac_ext <<_ACEOF
28700 /* end confdefs.h.  */
28701 $ac_includes_default
28702                    typedef int ac__type_sizeof_;
28703 int
28704 main ()
28705 {
28706 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28707 test_array [0] = 0
28708
28709   ;
28710   return 0;
28711 }
28712 _ACEOF
28713 rm -f conftest.$ac_objext
28714 if { (ac_try="$ac_compile"
28715 case "(($ac_try" in
28716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28717   *) ac_try_echo=$ac_try;;
28718 esac
28719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28720   (eval "$ac_compile") 2>conftest.er1
28721   ac_status=$?
28722   grep -v '^ *+' conftest.er1 >conftest.err
28723   rm -f conftest.er1
28724   cat conftest.err >&5
28725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28726   (exit $ac_status); } &&
28727          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28728   { (case "(($ac_try" in
28729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28730   *) ac_try_echo=$ac_try;;
28731 esac
28732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28733   (eval "$ac_try") 2>&5
28734   ac_status=$?
28735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28736   (exit $ac_status); }; } &&
28737          { ac_try='test -s conftest.$ac_objext'
28738   { (case "(($ac_try" in
28739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28740   *) ac_try_echo=$ac_try;;
28741 esac
28742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28743   (eval "$ac_try") 2>&5
28744   ac_status=$?
28745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28746   (exit $ac_status); }; }; then
28747   ac_hi=$ac_mid; break
28748 else
28749   echo "$as_me: failed program was:" >&5
28750 sed 's/^/| /' conftest.$ac_ext >&5
28751
28752         ac_lo=`expr $ac_mid + 1`
28753                         if test $ac_lo -le $ac_mid; then
28754                           ac_lo= ac_hi=
28755                           break
28756                         fi
28757                         ac_mid=`expr 2 '*' $ac_mid + 1`
28758 fi
28759
28760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28761   done
28762 else
28763   echo "$as_me: failed program was:" >&5
28764 sed 's/^/| /' conftest.$ac_ext >&5
28765
28766         cat >conftest.$ac_ext <<_ACEOF
28767 /* confdefs.h.  */
28768 _ACEOF
28769 cat confdefs.h >>conftest.$ac_ext
28770 cat >>conftest.$ac_ext <<_ACEOF
28771 /* end confdefs.h.  */
28772 $ac_includes_default
28773                    typedef int ac__type_sizeof_;
28774 int
28775 main ()
28776 {
28777 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
28778 test_array [0] = 0
28779
28780   ;
28781   return 0;
28782 }
28783 _ACEOF
28784 rm -f conftest.$ac_objext
28785 if { (ac_try="$ac_compile"
28786 case "(($ac_try" in
28787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28788   *) ac_try_echo=$ac_try;;
28789 esac
28790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28791   (eval "$ac_compile") 2>conftest.er1
28792   ac_status=$?
28793   grep -v '^ *+' conftest.er1 >conftest.err
28794   rm -f conftest.er1
28795   cat conftest.err >&5
28796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28797   (exit $ac_status); } &&
28798          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28799   { (case "(($ac_try" in
28800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28801   *) ac_try_echo=$ac_try;;
28802 esac
28803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28804   (eval "$ac_try") 2>&5
28805   ac_status=$?
28806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28807   (exit $ac_status); }; } &&
28808          { ac_try='test -s conftest.$ac_objext'
28809   { (case "(($ac_try" in
28810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28811   *) ac_try_echo=$ac_try;;
28812 esac
28813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28814   (eval "$ac_try") 2>&5
28815   ac_status=$?
28816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28817   (exit $ac_status); }; }; then
28818   ac_hi=-1 ac_mid=-1
28819   while :; do
28820     cat >conftest.$ac_ext <<_ACEOF
28821 /* confdefs.h.  */
28822 _ACEOF
28823 cat confdefs.h >>conftest.$ac_ext
28824 cat >>conftest.$ac_ext <<_ACEOF
28825 /* end confdefs.h.  */
28826 $ac_includes_default
28827                    typedef int ac__type_sizeof_;
28828 int
28829 main ()
28830 {
28831 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
28832 test_array [0] = 0
28833
28834   ;
28835   return 0;
28836 }
28837 _ACEOF
28838 rm -f conftest.$ac_objext
28839 if { (ac_try="$ac_compile"
28840 case "(($ac_try" in
28841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28842   *) ac_try_echo=$ac_try;;
28843 esac
28844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28845   (eval "$ac_compile") 2>conftest.er1
28846   ac_status=$?
28847   grep -v '^ *+' conftest.er1 >conftest.err
28848   rm -f conftest.er1
28849   cat conftest.err >&5
28850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28851   (exit $ac_status); } &&
28852          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28853   { (case "(($ac_try" in
28854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28855   *) ac_try_echo=$ac_try;;
28856 esac
28857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28858   (eval "$ac_try") 2>&5
28859   ac_status=$?
28860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28861   (exit $ac_status); }; } &&
28862          { ac_try='test -s conftest.$ac_objext'
28863   { (case "(($ac_try" in
28864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28865   *) ac_try_echo=$ac_try;;
28866 esac
28867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28868   (eval "$ac_try") 2>&5
28869   ac_status=$?
28870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28871   (exit $ac_status); }; }; then
28872   ac_lo=$ac_mid; break
28873 else
28874   echo "$as_me: failed program was:" >&5
28875 sed 's/^/| /' conftest.$ac_ext >&5
28876
28877         ac_hi=`expr '(' $ac_mid ')' - 1`
28878                         if test $ac_mid -le $ac_hi; then
28879                           ac_lo= ac_hi=
28880                           break
28881                         fi
28882                         ac_mid=`expr 2 '*' $ac_mid`
28883 fi
28884
28885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28886   done
28887 else
28888   echo "$as_me: failed program was:" >&5
28889 sed 's/^/| /' conftest.$ac_ext >&5
28890
28891         ac_lo= ac_hi=
28892 fi
28893
28894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28895 fi
28896
28897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28898 # Binary search between lo and hi bounds.
28899 while test "x$ac_lo" != "x$ac_hi"; do
28900   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28901   cat >conftest.$ac_ext <<_ACEOF
28902 /* confdefs.h.  */
28903 _ACEOF
28904 cat confdefs.h >>conftest.$ac_ext
28905 cat >>conftest.$ac_ext <<_ACEOF
28906 /* end confdefs.h.  */
28907 $ac_includes_default
28908                    typedef int ac__type_sizeof_;
28909 int
28910 main ()
28911 {
28912 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28913 test_array [0] = 0
28914
28915   ;
28916   return 0;
28917 }
28918 _ACEOF
28919 rm -f conftest.$ac_objext
28920 if { (ac_try="$ac_compile"
28921 case "(($ac_try" in
28922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28923   *) ac_try_echo=$ac_try;;
28924 esac
28925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28926   (eval "$ac_compile") 2>conftest.er1
28927   ac_status=$?
28928   grep -v '^ *+' conftest.er1 >conftest.err
28929   rm -f conftest.er1
28930   cat conftest.err >&5
28931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28932   (exit $ac_status); } &&
28933          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28934   { (case "(($ac_try" in
28935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28936   *) ac_try_echo=$ac_try;;
28937 esac
28938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28939   (eval "$ac_try") 2>&5
28940   ac_status=$?
28941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28942   (exit $ac_status); }; } &&
28943          { ac_try='test -s conftest.$ac_objext'
28944   { (case "(($ac_try" in
28945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28946   *) ac_try_echo=$ac_try;;
28947 esac
28948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28949   (eval "$ac_try") 2>&5
28950   ac_status=$?
28951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28952   (exit $ac_status); }; }; then
28953   ac_hi=$ac_mid
28954 else
28955   echo "$as_me: failed program was:" >&5
28956 sed 's/^/| /' conftest.$ac_ext >&5
28957
28958         ac_lo=`expr '(' $ac_mid ')' + 1`
28959 fi
28960
28961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28962 done
28963 case $ac_lo in
28964 ?*) ac_cv_sizeof_int=$ac_lo;;
28965 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
28966 See \`config.log' for more details." >&5
28967 echo "$as_me: error: cannot compute sizeof (int)
28968 See \`config.log' for more details." >&2;}
28969    { (exit 77); exit 77; }; } ;;
28970 esac
28971 else
28972   cat >conftest.$ac_ext <<_ACEOF
28973 /* confdefs.h.  */
28974 _ACEOF
28975 cat confdefs.h >>conftest.$ac_ext
28976 cat >>conftest.$ac_ext <<_ACEOF
28977 /* end confdefs.h.  */
28978 $ac_includes_default
28979                    typedef int ac__type_sizeof_;
28980 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28981 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28982 #include <stdio.h>
28983 #include <stdlib.h>
28984 int
28985 main ()
28986 {
28987
28988   FILE *f = fopen ("conftest.val", "w");
28989   if (! f)
28990     return 1;
28991   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
28992     {
28993       long int i = longval ();
28994       if (i != ((long int) (sizeof (ac__type_sizeof_))))
28995         return 1;
28996       fprintf (f, "%ld\n", i);
28997     }
28998   else
28999     {
29000       unsigned long int i = ulongval ();
29001       if (i != ((long int) (sizeof (ac__type_sizeof_))))
29002         return 1;
29003       fprintf (f, "%lu\n", i);
29004     }
29005   return ferror (f) || fclose (f) != 0;
29006
29007   ;
29008   return 0;
29009 }
29010 _ACEOF
29011 rm -f conftest$ac_exeext
29012 if { (ac_try="$ac_link"
29013 case "(($ac_try" in
29014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29015   *) ac_try_echo=$ac_try;;
29016 esac
29017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29018   (eval "$ac_link") 2>&5
29019   ac_status=$?
29020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29021   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29022   { (case "(($ac_try" in
29023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29024   *) ac_try_echo=$ac_try;;
29025 esac
29026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29027   (eval "$ac_try") 2>&5
29028   ac_status=$?
29029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29030   (exit $ac_status); }; }; then
29031   ac_cv_sizeof_int=`cat conftest.val`
29032 else
29033   echo "$as_me: program exited with status $ac_status" >&5
29034 echo "$as_me: failed program was:" >&5
29035 sed 's/^/| /' conftest.$ac_ext >&5
29036
29037 ( exit $ac_status )
29038 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
29039 See \`config.log' for more details." >&5
29040 echo "$as_me: error: cannot compute sizeof (int)
29041 See \`config.log' for more details." >&2;}
29042    { (exit 77); exit 77; }; }
29043 fi
29044 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29045 fi
29046 rm -f conftest.val
29047 else
29048   ac_cv_sizeof_int=0
29049 fi
29050 fi
29051 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
29052 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
29053 cat >>confdefs.h <<_ACEOF
29054 #define SIZEOF_INT $ac_cv_sizeof_int
29055 _ACEOF
29056
29057
29058 { echo "$as_me:$LINENO: checking for long" >&5
29059 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
29060 if test "${ac_cv_type_long+set}" = set; then
29061   echo $ECHO_N "(cached) $ECHO_C" >&6
29062 else
29063   cat >conftest.$ac_ext <<_ACEOF
29064 /* confdefs.h.  */
29065 _ACEOF
29066 cat confdefs.h >>conftest.$ac_ext
29067 cat >>conftest.$ac_ext <<_ACEOF
29068 /* end confdefs.h.  */
29069 $ac_includes_default
29070 typedef long ac__type_new_;
29071 int
29072 main ()
29073 {
29074 if ((ac__type_new_ *) 0)
29075   return 0;
29076 if (sizeof (ac__type_new_))
29077   return 0;
29078   ;
29079   return 0;
29080 }
29081 _ACEOF
29082 rm -f conftest.$ac_objext
29083 if { (ac_try="$ac_compile"
29084 case "(($ac_try" in
29085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29086   *) ac_try_echo=$ac_try;;
29087 esac
29088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29089   (eval "$ac_compile") 2>conftest.er1
29090   ac_status=$?
29091   grep -v '^ *+' conftest.er1 >conftest.err
29092   rm -f conftest.er1
29093   cat conftest.err >&5
29094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29095   (exit $ac_status); } &&
29096          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29097   { (case "(($ac_try" in
29098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29099   *) ac_try_echo=$ac_try;;
29100 esac
29101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29102   (eval "$ac_try") 2>&5
29103   ac_status=$?
29104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29105   (exit $ac_status); }; } &&
29106          { ac_try='test -s conftest.$ac_objext'
29107   { (case "(($ac_try" in
29108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29109   *) ac_try_echo=$ac_try;;
29110 esac
29111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29112   (eval "$ac_try") 2>&5
29113   ac_status=$?
29114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29115   (exit $ac_status); }; }; then
29116   ac_cv_type_long=yes
29117 else
29118   echo "$as_me: failed program was:" >&5
29119 sed 's/^/| /' conftest.$ac_ext >&5
29120
29121         ac_cv_type_long=no
29122 fi
29123
29124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29125 fi
29126 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
29127 echo "${ECHO_T}$ac_cv_type_long" >&6; }
29128
29129 { echo "$as_me:$LINENO: checking size of long" >&5
29130 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
29131 if test "${ac_cv_sizeof_long+set}" = set; then
29132   echo $ECHO_N "(cached) $ECHO_C" >&6
29133 else
29134   if test "$ac_cv_type_long" = yes; then
29135   # The cast to long int works around a bug in the HP C Compiler
29136   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
29137   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
29138   # This bug is HP SR number 8606223364.
29139   if test "$cross_compiling" = yes; then
29140   # Depending upon the size, compute the lo and hi bounds.
29141 cat >conftest.$ac_ext <<_ACEOF
29142 /* confdefs.h.  */
29143 _ACEOF
29144 cat confdefs.h >>conftest.$ac_ext
29145 cat >>conftest.$ac_ext <<_ACEOF
29146 /* end confdefs.h.  */
29147 $ac_includes_default
29148                    typedef long ac__type_sizeof_;
29149 int
29150 main ()
29151 {
29152 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
29153 test_array [0] = 0
29154
29155   ;
29156   return 0;
29157 }
29158 _ACEOF
29159 rm -f conftest.$ac_objext
29160 if { (ac_try="$ac_compile"
29161 case "(($ac_try" in
29162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29163   *) ac_try_echo=$ac_try;;
29164 esac
29165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29166   (eval "$ac_compile") 2>conftest.er1
29167   ac_status=$?
29168   grep -v '^ *+' conftest.er1 >conftest.err
29169   rm -f conftest.er1
29170   cat conftest.err >&5
29171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29172   (exit $ac_status); } &&
29173          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29174   { (case "(($ac_try" in
29175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29176   *) ac_try_echo=$ac_try;;
29177 esac
29178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29179   (eval "$ac_try") 2>&5
29180   ac_status=$?
29181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29182   (exit $ac_status); }; } &&
29183          { ac_try='test -s conftest.$ac_objext'
29184   { (case "(($ac_try" in
29185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29186   *) ac_try_echo=$ac_try;;
29187 esac
29188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29189   (eval "$ac_try") 2>&5
29190   ac_status=$?
29191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29192   (exit $ac_status); }; }; then
29193   ac_lo=0 ac_mid=0
29194   while :; do
29195     cat >conftest.$ac_ext <<_ACEOF
29196 /* confdefs.h.  */
29197 _ACEOF
29198 cat confdefs.h >>conftest.$ac_ext
29199 cat >>conftest.$ac_ext <<_ACEOF
29200 /* end confdefs.h.  */
29201 $ac_includes_default
29202                    typedef long ac__type_sizeof_;
29203 int
29204 main ()
29205 {
29206 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
29207 test_array [0] = 0
29208
29209   ;
29210   return 0;
29211 }
29212 _ACEOF
29213 rm -f conftest.$ac_objext
29214 if { (ac_try="$ac_compile"
29215 case "(($ac_try" in
29216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29217   *) ac_try_echo=$ac_try;;
29218 esac
29219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29220   (eval "$ac_compile") 2>conftest.er1
29221   ac_status=$?
29222   grep -v '^ *+' conftest.er1 >conftest.err
29223   rm -f conftest.er1
29224   cat conftest.err >&5
29225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29226   (exit $ac_status); } &&
29227          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29228   { (case "(($ac_try" in
29229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29230   *) ac_try_echo=$ac_try;;
29231 esac
29232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29233   (eval "$ac_try") 2>&5
29234   ac_status=$?
29235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29236   (exit $ac_status); }; } &&
29237          { ac_try='test -s conftest.$ac_objext'
29238   { (case "(($ac_try" in
29239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29240   *) ac_try_echo=$ac_try;;
29241 esac
29242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29243   (eval "$ac_try") 2>&5
29244   ac_status=$?
29245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29246   (exit $ac_status); }; }; then
29247   ac_hi=$ac_mid; break
29248 else
29249   echo "$as_me: failed program was:" >&5
29250 sed 's/^/| /' conftest.$ac_ext >&5
29251
29252         ac_lo=`expr $ac_mid + 1`
29253                         if test $ac_lo -le $ac_mid; then
29254                           ac_lo= ac_hi=
29255                           break
29256                         fi
29257                         ac_mid=`expr 2 '*' $ac_mid + 1`
29258 fi
29259
29260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29261   done
29262 else
29263   echo "$as_me: failed program was:" >&5
29264 sed 's/^/| /' conftest.$ac_ext >&5
29265
29266         cat >conftest.$ac_ext <<_ACEOF
29267 /* confdefs.h.  */
29268 _ACEOF
29269 cat confdefs.h >>conftest.$ac_ext
29270 cat >>conftest.$ac_ext <<_ACEOF
29271 /* end confdefs.h.  */
29272 $ac_includes_default
29273                    typedef long ac__type_sizeof_;
29274 int
29275 main ()
29276 {
29277 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
29278 test_array [0] = 0
29279
29280   ;
29281   return 0;
29282 }
29283 _ACEOF
29284 rm -f conftest.$ac_objext
29285 if { (ac_try="$ac_compile"
29286 case "(($ac_try" in
29287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29288   *) ac_try_echo=$ac_try;;
29289 esac
29290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29291   (eval "$ac_compile") 2>conftest.er1
29292   ac_status=$?
29293   grep -v '^ *+' conftest.er1 >conftest.err
29294   rm -f conftest.er1
29295   cat conftest.err >&5
29296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29297   (exit $ac_status); } &&
29298          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29299   { (case "(($ac_try" in
29300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29301   *) ac_try_echo=$ac_try;;
29302 esac
29303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29304   (eval "$ac_try") 2>&5
29305   ac_status=$?
29306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29307   (exit $ac_status); }; } &&
29308          { ac_try='test -s conftest.$ac_objext'
29309   { (case "(($ac_try" in
29310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29311   *) ac_try_echo=$ac_try;;
29312 esac
29313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29314   (eval "$ac_try") 2>&5
29315   ac_status=$?
29316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29317   (exit $ac_status); }; }; then
29318   ac_hi=-1 ac_mid=-1
29319   while :; do
29320     cat >conftest.$ac_ext <<_ACEOF
29321 /* confdefs.h.  */
29322 _ACEOF
29323 cat confdefs.h >>conftest.$ac_ext
29324 cat >>conftest.$ac_ext <<_ACEOF
29325 /* end confdefs.h.  */
29326 $ac_includes_default
29327                    typedef long ac__type_sizeof_;
29328 int
29329 main ()
29330 {
29331 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
29332 test_array [0] = 0
29333
29334   ;
29335   return 0;
29336 }
29337 _ACEOF
29338 rm -f conftest.$ac_objext
29339 if { (ac_try="$ac_compile"
29340 case "(($ac_try" in
29341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29342   *) ac_try_echo=$ac_try;;
29343 esac
29344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29345   (eval "$ac_compile") 2>conftest.er1
29346   ac_status=$?
29347   grep -v '^ *+' conftest.er1 >conftest.err
29348   rm -f conftest.er1
29349   cat conftest.err >&5
29350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29351   (exit $ac_status); } &&
29352          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
29359   ac_status=$?
29360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29361   (exit $ac_status); }; } &&
29362          { ac_try='test -s conftest.$ac_objext'
29363   { (case "(($ac_try" in
29364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29365   *) ac_try_echo=$ac_try;;
29366 esac
29367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29368   (eval "$ac_try") 2>&5
29369   ac_status=$?
29370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29371   (exit $ac_status); }; }; then
29372   ac_lo=$ac_mid; break
29373 else
29374   echo "$as_me: failed program was:" >&5
29375 sed 's/^/| /' conftest.$ac_ext >&5
29376
29377         ac_hi=`expr '(' $ac_mid ')' - 1`
29378                         if test $ac_mid -le $ac_hi; then
29379                           ac_lo= ac_hi=
29380                           break
29381                         fi
29382                         ac_mid=`expr 2 '*' $ac_mid`
29383 fi
29384
29385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29386   done
29387 else
29388   echo "$as_me: failed program was:" >&5
29389 sed 's/^/| /' conftest.$ac_ext >&5
29390
29391         ac_lo= ac_hi=
29392 fi
29393
29394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29395 fi
29396
29397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29398 # Binary search between lo and hi bounds.
29399 while test "x$ac_lo" != "x$ac_hi"; do
29400   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
29401   cat >conftest.$ac_ext <<_ACEOF
29402 /* confdefs.h.  */
29403 _ACEOF
29404 cat confdefs.h >>conftest.$ac_ext
29405 cat >>conftest.$ac_ext <<_ACEOF
29406 /* end confdefs.h.  */
29407 $ac_includes_default
29408                    typedef long ac__type_sizeof_;
29409 int
29410 main ()
29411 {
29412 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
29413 test_array [0] = 0
29414
29415   ;
29416   return 0;
29417 }
29418 _ACEOF
29419 rm -f conftest.$ac_objext
29420 if { (ac_try="$ac_compile"
29421 case "(($ac_try" in
29422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29423   *) ac_try_echo=$ac_try;;
29424 esac
29425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29426   (eval "$ac_compile") 2>conftest.er1
29427   ac_status=$?
29428   grep -v '^ *+' conftest.er1 >conftest.err
29429   rm -f conftest.er1
29430   cat conftest.err >&5
29431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29432   (exit $ac_status); } &&
29433          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29434   { (case "(($ac_try" in
29435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29436   *) ac_try_echo=$ac_try;;
29437 esac
29438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29439   (eval "$ac_try") 2>&5
29440   ac_status=$?
29441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29442   (exit $ac_status); }; } &&
29443          { ac_try='test -s conftest.$ac_objext'
29444   { (case "(($ac_try" in
29445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29446   *) ac_try_echo=$ac_try;;
29447 esac
29448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29449   (eval "$ac_try") 2>&5
29450   ac_status=$?
29451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29452   (exit $ac_status); }; }; then
29453   ac_hi=$ac_mid
29454 else
29455   echo "$as_me: failed program was:" >&5
29456 sed 's/^/| /' conftest.$ac_ext >&5
29457
29458         ac_lo=`expr '(' $ac_mid ')' + 1`
29459 fi
29460
29461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29462 done
29463 case $ac_lo in
29464 ?*) ac_cv_sizeof_long=$ac_lo;;
29465 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
29466 See \`config.log' for more details." >&5
29467 echo "$as_me: error: cannot compute sizeof (long)
29468 See \`config.log' for more details." >&2;}
29469    { (exit 77); exit 77; }; } ;;
29470 esac
29471 else
29472   cat >conftest.$ac_ext <<_ACEOF
29473 /* confdefs.h.  */
29474 _ACEOF
29475 cat confdefs.h >>conftest.$ac_ext
29476 cat >>conftest.$ac_ext <<_ACEOF
29477 /* end confdefs.h.  */
29478 $ac_includes_default
29479                    typedef long ac__type_sizeof_;
29480 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
29481 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
29482 #include <stdio.h>
29483 #include <stdlib.h>
29484 int
29485 main ()
29486 {
29487
29488   FILE *f = fopen ("conftest.val", "w");
29489   if (! f)
29490     return 1;
29491   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
29492     {
29493       long int i = longval ();
29494       if (i != ((long int) (sizeof (ac__type_sizeof_))))
29495         return 1;
29496       fprintf (f, "%ld\n", i);
29497     }
29498   else
29499     {
29500       unsigned long int i = ulongval ();
29501       if (i != ((long int) (sizeof (ac__type_sizeof_))))
29502         return 1;
29503       fprintf (f, "%lu\n", i);
29504     }
29505   return ferror (f) || fclose (f) != 0;
29506
29507   ;
29508   return 0;
29509 }
29510 _ACEOF
29511 rm -f conftest$ac_exeext
29512 if { (ac_try="$ac_link"
29513 case "(($ac_try" in
29514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29515   *) ac_try_echo=$ac_try;;
29516 esac
29517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29518   (eval "$ac_link") 2>&5
29519   ac_status=$?
29520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29521   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29522   { (case "(($ac_try" in
29523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29524   *) ac_try_echo=$ac_try;;
29525 esac
29526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29527   (eval "$ac_try") 2>&5
29528   ac_status=$?
29529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29530   (exit $ac_status); }; }; then
29531   ac_cv_sizeof_long=`cat conftest.val`
29532 else
29533   echo "$as_me: program exited with status $ac_status" >&5
29534 echo "$as_me: failed program was:" >&5
29535 sed 's/^/| /' conftest.$ac_ext >&5
29536
29537 ( exit $ac_status )
29538 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
29539 See \`config.log' for more details." >&5
29540 echo "$as_me: error: cannot compute sizeof (long)
29541 See \`config.log' for more details." >&2;}
29542    { (exit 77); exit 77; }; }
29543 fi
29544 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29545 fi
29546 rm -f conftest.val
29547 else
29548   ac_cv_sizeof_long=0
29549 fi
29550 fi
29551 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
29552 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
29553 cat >>confdefs.h <<_ACEOF
29554 #define SIZEOF_LONG $ac_cv_sizeof_long
29555 _ACEOF
29556
29557
29558 { echo "$as_me:$LINENO: checking for size_t" >&5
29559 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
29560 if test "${ac_cv_type_size_t+set}" = set; then
29561   echo $ECHO_N "(cached) $ECHO_C" >&6
29562 else
29563   cat >conftest.$ac_ext <<_ACEOF
29564 /* confdefs.h.  */
29565 _ACEOF
29566 cat confdefs.h >>conftest.$ac_ext
29567 cat >>conftest.$ac_ext <<_ACEOF
29568 /* end confdefs.h.  */
29569 $ac_includes_default
29570 typedef size_t ac__type_new_;
29571 int
29572 main ()
29573 {
29574 if ((ac__type_new_ *) 0)
29575   return 0;
29576 if (sizeof (ac__type_new_))
29577   return 0;
29578   ;
29579   return 0;
29580 }
29581 _ACEOF
29582 rm -f conftest.$ac_objext
29583 if { (ac_try="$ac_compile"
29584 case "(($ac_try" in
29585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29586   *) ac_try_echo=$ac_try;;
29587 esac
29588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29589   (eval "$ac_compile") 2>conftest.er1
29590   ac_status=$?
29591   grep -v '^ *+' conftest.er1 >conftest.err
29592   rm -f conftest.er1
29593   cat conftest.err >&5
29594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29595   (exit $ac_status); } &&
29596          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29597   { (case "(($ac_try" in
29598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29599   *) ac_try_echo=$ac_try;;
29600 esac
29601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29602   (eval "$ac_try") 2>&5
29603   ac_status=$?
29604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29605   (exit $ac_status); }; } &&
29606          { ac_try='test -s conftest.$ac_objext'
29607   { (case "(($ac_try" in
29608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29609   *) ac_try_echo=$ac_try;;
29610 esac
29611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29612   (eval "$ac_try") 2>&5
29613   ac_status=$?
29614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29615   (exit $ac_status); }; }; then
29616   ac_cv_type_size_t=yes
29617 else
29618   echo "$as_me: failed program was:" >&5
29619 sed 's/^/| /' conftest.$ac_ext >&5
29620
29621         ac_cv_type_size_t=no
29622 fi
29623
29624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29625 fi
29626 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
29627 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
29628
29629 { echo "$as_me:$LINENO: checking size of size_t" >&5
29630 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
29631 if test "${ac_cv_sizeof_size_t+set}" = set; then
29632   echo $ECHO_N "(cached) $ECHO_C" >&6
29633 else
29634   if test "$ac_cv_type_size_t" = yes; then
29635   # The cast to long int works around a bug in the HP C Compiler
29636   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
29637   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
29638   # This bug is HP SR number 8606223364.
29639   if test "$cross_compiling" = yes; then
29640   # Depending upon the size, compute the lo and hi bounds.
29641 cat >conftest.$ac_ext <<_ACEOF
29642 /* confdefs.h.  */
29643 _ACEOF
29644 cat confdefs.h >>conftest.$ac_ext
29645 cat >>conftest.$ac_ext <<_ACEOF
29646 /* end confdefs.h.  */
29647 $ac_includes_default
29648                    typedef size_t ac__type_sizeof_;
29649 int
29650 main ()
29651 {
29652 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
29653 test_array [0] = 0
29654
29655   ;
29656   return 0;
29657 }
29658 _ACEOF
29659 rm -f conftest.$ac_objext
29660 if { (ac_try="$ac_compile"
29661 case "(($ac_try" in
29662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29663   *) ac_try_echo=$ac_try;;
29664 esac
29665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29666   (eval "$ac_compile") 2>conftest.er1
29667   ac_status=$?
29668   grep -v '^ *+' conftest.er1 >conftest.err
29669   rm -f conftest.er1
29670   cat conftest.err >&5
29671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29672   (exit $ac_status); } &&
29673          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29674   { (case "(($ac_try" in
29675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29676   *) ac_try_echo=$ac_try;;
29677 esac
29678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29679   (eval "$ac_try") 2>&5
29680   ac_status=$?
29681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29682   (exit $ac_status); }; } &&
29683          { ac_try='test -s conftest.$ac_objext'
29684   { (case "(($ac_try" in
29685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29686   *) ac_try_echo=$ac_try;;
29687 esac
29688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29689   (eval "$ac_try") 2>&5
29690   ac_status=$?
29691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29692   (exit $ac_status); }; }; then
29693   ac_lo=0 ac_mid=0
29694   while :; do
29695     cat >conftest.$ac_ext <<_ACEOF
29696 /* confdefs.h.  */
29697 _ACEOF
29698 cat confdefs.h >>conftest.$ac_ext
29699 cat >>conftest.$ac_ext <<_ACEOF
29700 /* end confdefs.h.  */
29701 $ac_includes_default
29702                    typedef size_t ac__type_sizeof_;
29703 int
29704 main ()
29705 {
29706 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
29707 test_array [0] = 0
29708
29709   ;
29710   return 0;
29711 }
29712 _ACEOF
29713 rm -f conftest.$ac_objext
29714 if { (ac_try="$ac_compile"
29715 case "(($ac_try" in
29716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29717   *) ac_try_echo=$ac_try;;
29718 esac
29719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29720   (eval "$ac_compile") 2>conftest.er1
29721   ac_status=$?
29722   grep -v '^ *+' conftest.er1 >conftest.err
29723   rm -f conftest.er1
29724   cat conftest.err >&5
29725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29726   (exit $ac_status); } &&
29727          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29728   { (case "(($ac_try" in
29729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29730   *) ac_try_echo=$ac_try;;
29731 esac
29732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29733   (eval "$ac_try") 2>&5
29734   ac_status=$?
29735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29736   (exit $ac_status); }; } &&
29737          { ac_try='test -s conftest.$ac_objext'
29738   { (case "(($ac_try" in
29739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29740   *) ac_try_echo=$ac_try;;
29741 esac
29742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29743   (eval "$ac_try") 2>&5
29744   ac_status=$?
29745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29746   (exit $ac_status); }; }; then
29747   ac_hi=$ac_mid; break
29748 else
29749   echo "$as_me: failed program was:" >&5
29750 sed 's/^/| /' conftest.$ac_ext >&5
29751
29752         ac_lo=`expr $ac_mid + 1`
29753                         if test $ac_lo -le $ac_mid; then
29754                           ac_lo= ac_hi=
29755                           break
29756                         fi
29757                         ac_mid=`expr 2 '*' $ac_mid + 1`
29758 fi
29759
29760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29761   done
29762 else
29763   echo "$as_me: failed program was:" >&5
29764 sed 's/^/| /' conftest.$ac_ext >&5
29765
29766         cat >conftest.$ac_ext <<_ACEOF
29767 /* confdefs.h.  */
29768 _ACEOF
29769 cat confdefs.h >>conftest.$ac_ext
29770 cat >>conftest.$ac_ext <<_ACEOF
29771 /* end confdefs.h.  */
29772 $ac_includes_default
29773                    typedef size_t ac__type_sizeof_;
29774 int
29775 main ()
29776 {
29777 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
29778 test_array [0] = 0
29779
29780   ;
29781   return 0;
29782 }
29783 _ACEOF
29784 rm -f conftest.$ac_objext
29785 if { (ac_try="$ac_compile"
29786 case "(($ac_try" in
29787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29788   *) ac_try_echo=$ac_try;;
29789 esac
29790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29791   (eval "$ac_compile") 2>conftest.er1
29792   ac_status=$?
29793   grep -v '^ *+' conftest.er1 >conftest.err
29794   rm -f conftest.er1
29795   cat conftest.err >&5
29796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29797   (exit $ac_status); } &&
29798          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29799   { (case "(($ac_try" in
29800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29801   *) ac_try_echo=$ac_try;;
29802 esac
29803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29804   (eval "$ac_try") 2>&5
29805   ac_status=$?
29806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29807   (exit $ac_status); }; } &&
29808          { ac_try='test -s conftest.$ac_objext'
29809   { (case "(($ac_try" in
29810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29811   *) ac_try_echo=$ac_try;;
29812 esac
29813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29814   (eval "$ac_try") 2>&5
29815   ac_status=$?
29816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29817   (exit $ac_status); }; }; then
29818   ac_hi=-1 ac_mid=-1
29819   while :; do
29820     cat >conftest.$ac_ext <<_ACEOF
29821 /* confdefs.h.  */
29822 _ACEOF
29823 cat confdefs.h >>conftest.$ac_ext
29824 cat >>conftest.$ac_ext <<_ACEOF
29825 /* end confdefs.h.  */
29826 $ac_includes_default
29827                    typedef size_t ac__type_sizeof_;
29828 int
29829 main ()
29830 {
29831 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
29832 test_array [0] = 0
29833
29834   ;
29835   return 0;
29836 }
29837 _ACEOF
29838 rm -f conftest.$ac_objext
29839 if { (ac_try="$ac_compile"
29840 case "(($ac_try" in
29841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29842   *) ac_try_echo=$ac_try;;
29843 esac
29844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29845   (eval "$ac_compile") 2>conftest.er1
29846   ac_status=$?
29847   grep -v '^ *+' conftest.er1 >conftest.err
29848   rm -f conftest.er1
29849   cat conftest.err >&5
29850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29851   (exit $ac_status); } &&
29852          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29853   { (case "(($ac_try" in
29854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29855   *) ac_try_echo=$ac_try;;
29856 esac
29857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29858   (eval "$ac_try") 2>&5
29859   ac_status=$?
29860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29861   (exit $ac_status); }; } &&
29862          { ac_try='test -s conftest.$ac_objext'
29863   { (case "(($ac_try" in
29864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29865   *) ac_try_echo=$ac_try;;
29866 esac
29867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29868   (eval "$ac_try") 2>&5
29869   ac_status=$?
29870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29871   (exit $ac_status); }; }; then
29872   ac_lo=$ac_mid; break
29873 else
29874   echo "$as_me: failed program was:" >&5
29875 sed 's/^/| /' conftest.$ac_ext >&5
29876
29877         ac_hi=`expr '(' $ac_mid ')' - 1`
29878                         if test $ac_mid -le $ac_hi; then
29879                           ac_lo= ac_hi=
29880                           break
29881                         fi
29882                         ac_mid=`expr 2 '*' $ac_mid`
29883 fi
29884
29885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29886   done
29887 else
29888   echo "$as_me: failed program was:" >&5
29889 sed 's/^/| /' conftest.$ac_ext >&5
29890
29891         ac_lo= ac_hi=
29892 fi
29893
29894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29895 fi
29896
29897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29898 # Binary search between lo and hi bounds.
29899 while test "x$ac_lo" != "x$ac_hi"; do
29900   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
29901   cat >conftest.$ac_ext <<_ACEOF
29902 /* confdefs.h.  */
29903 _ACEOF
29904 cat confdefs.h >>conftest.$ac_ext
29905 cat >>conftest.$ac_ext <<_ACEOF
29906 /* end confdefs.h.  */
29907 $ac_includes_default
29908                    typedef size_t ac__type_sizeof_;
29909 int
29910 main ()
29911 {
29912 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
29913 test_array [0] = 0
29914
29915   ;
29916   return 0;
29917 }
29918 _ACEOF
29919 rm -f conftest.$ac_objext
29920 if { (ac_try="$ac_compile"
29921 case "(($ac_try" in
29922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29923   *) ac_try_echo=$ac_try;;
29924 esac
29925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29926   (eval "$ac_compile") 2>conftest.er1
29927   ac_status=$?
29928   grep -v '^ *+' conftest.er1 >conftest.err
29929   rm -f conftest.er1
29930   cat conftest.err >&5
29931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29932   (exit $ac_status); } &&
29933          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29934   { (case "(($ac_try" in
29935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29936   *) ac_try_echo=$ac_try;;
29937 esac
29938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29939   (eval "$ac_try") 2>&5
29940   ac_status=$?
29941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29942   (exit $ac_status); }; } &&
29943          { ac_try='test -s conftest.$ac_objext'
29944   { (case "(($ac_try" in
29945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29946   *) ac_try_echo=$ac_try;;
29947 esac
29948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29949   (eval "$ac_try") 2>&5
29950   ac_status=$?
29951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29952   (exit $ac_status); }; }; then
29953   ac_hi=$ac_mid
29954 else
29955   echo "$as_me: failed program was:" >&5
29956 sed 's/^/| /' conftest.$ac_ext >&5
29957
29958         ac_lo=`expr '(' $ac_mid ')' + 1`
29959 fi
29960
29961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29962 done
29963 case $ac_lo in
29964 ?*) ac_cv_sizeof_size_t=$ac_lo;;
29965 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
29966 See \`config.log' for more details." >&5
29967 echo "$as_me: error: cannot compute sizeof (size_t)
29968 See \`config.log' for more details." >&2;}
29969    { (exit 77); exit 77; }; } ;;
29970 esac
29971 else
29972   cat >conftest.$ac_ext <<_ACEOF
29973 /* confdefs.h.  */
29974 _ACEOF
29975 cat confdefs.h >>conftest.$ac_ext
29976 cat >>conftest.$ac_ext <<_ACEOF
29977 /* end confdefs.h.  */
29978 $ac_includes_default
29979                    typedef size_t ac__type_sizeof_;
29980 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
29981 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
29982 #include <stdio.h>
29983 #include <stdlib.h>
29984 int
29985 main ()
29986 {
29987
29988   FILE *f = fopen ("conftest.val", "w");
29989   if (! f)
29990     return 1;
29991   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
29992     {
29993       long int i = longval ();
29994       if (i != ((long int) (sizeof (ac__type_sizeof_))))
29995         return 1;
29996       fprintf (f, "%ld\n", i);
29997     }
29998   else
29999     {
30000       unsigned long int i = ulongval ();
30001       if (i != ((long int) (sizeof (ac__type_sizeof_))))
30002         return 1;
30003       fprintf (f, "%lu\n", i);
30004     }
30005   return ferror (f) || fclose (f) != 0;
30006
30007   ;
30008   return 0;
30009 }
30010 _ACEOF
30011 rm -f conftest$ac_exeext
30012 if { (ac_try="$ac_link"
30013 case "(($ac_try" in
30014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30015   *) ac_try_echo=$ac_try;;
30016 esac
30017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30018   (eval "$ac_link") 2>&5
30019   ac_status=$?
30020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30021   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30022   { (case "(($ac_try" in
30023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30024   *) ac_try_echo=$ac_try;;
30025 esac
30026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30027   (eval "$ac_try") 2>&5
30028   ac_status=$?
30029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30030   (exit $ac_status); }; }; then
30031   ac_cv_sizeof_size_t=`cat conftest.val`
30032 else
30033   echo "$as_me: program exited with status $ac_status" >&5
30034 echo "$as_me: failed program was:" >&5
30035 sed 's/^/| /' conftest.$ac_ext >&5
30036
30037 ( exit $ac_status )
30038 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
30039 See \`config.log' for more details." >&5
30040 echo "$as_me: error: cannot compute sizeof (size_t)
30041 See \`config.log' for more details." >&2;}
30042    { (exit 77); exit 77; }; }
30043 fi
30044 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30045 fi
30046 rm -f conftest.val
30047 else
30048   ac_cv_sizeof_size_t=0
30049 fi
30050 fi
30051 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
30052 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
30053 cat >>confdefs.h <<_ACEOF
30054 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
30055 _ACEOF
30056
30057
30058 { echo "$as_me:$LINENO: checking for socklen_t" >&5
30059 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
30060 if test "${ac_cv_type_socklen_t+set}" = set; then
30061   echo $ECHO_N "(cached) $ECHO_C" >&6
30062 else
30063   cat >conftest.$ac_ext <<_ACEOF
30064 /* confdefs.h.  */
30065 _ACEOF
30066 cat confdefs.h >>conftest.$ac_ext
30067 cat >>conftest.$ac_ext <<_ACEOF
30068 /* end confdefs.h.  */
30069 $ac_includes_default
30070 typedef socklen_t ac__type_new_;
30071 int
30072 main ()
30073 {
30074 if ((ac__type_new_ *) 0)
30075   return 0;
30076 if (sizeof (ac__type_new_))
30077   return 0;
30078   ;
30079   return 0;
30080 }
30081 _ACEOF
30082 rm -f conftest.$ac_objext
30083 if { (ac_try="$ac_compile"
30084 case "(($ac_try" in
30085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30086   *) ac_try_echo=$ac_try;;
30087 esac
30088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30089   (eval "$ac_compile") 2>conftest.er1
30090   ac_status=$?
30091   grep -v '^ *+' conftest.er1 >conftest.err
30092   rm -f conftest.er1
30093   cat conftest.err >&5
30094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30095   (exit $ac_status); } &&
30096          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30097   { (case "(($ac_try" in
30098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30099   *) ac_try_echo=$ac_try;;
30100 esac
30101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30102   (eval "$ac_try") 2>&5
30103   ac_status=$?
30104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30105   (exit $ac_status); }; } &&
30106          { ac_try='test -s conftest.$ac_objext'
30107   { (case "(($ac_try" in
30108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30109   *) ac_try_echo=$ac_try;;
30110 esac
30111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30112   (eval "$ac_try") 2>&5
30113   ac_status=$?
30114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30115   (exit $ac_status); }; }; then
30116   ac_cv_type_socklen_t=yes
30117 else
30118   echo "$as_me: failed program was:" >&5
30119 sed 's/^/| /' conftest.$ac_ext >&5
30120
30121         ac_cv_type_socklen_t=no
30122 fi
30123
30124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30125 fi
30126 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
30127 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
30128
30129 { echo "$as_me:$LINENO: checking size of socklen_t" >&5
30130 echo $ECHO_N "checking size of socklen_t... $ECHO_C" >&6; }
30131 if test "${ac_cv_sizeof_socklen_t+set}" = set; then
30132   echo $ECHO_N "(cached) $ECHO_C" >&6
30133 else
30134   if test "$ac_cv_type_socklen_t" = yes; then
30135   # The cast to long int works around a bug in the HP C Compiler
30136   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
30137   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
30138   # This bug is HP SR number 8606223364.
30139   if test "$cross_compiling" = yes; then
30140   # Depending upon the size, compute the lo and hi bounds.
30141 cat >conftest.$ac_ext <<_ACEOF
30142 /* confdefs.h.  */
30143 _ACEOF
30144 cat confdefs.h >>conftest.$ac_ext
30145 cat >>conftest.$ac_ext <<_ACEOF
30146 /* end confdefs.h.  */
30147 $ac_includes_default
30148                    typedef socklen_t ac__type_sizeof_;
30149 int
30150 main ()
30151 {
30152 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
30153 test_array [0] = 0
30154
30155   ;
30156   return 0;
30157 }
30158 _ACEOF
30159 rm -f conftest.$ac_objext
30160 if { (ac_try="$ac_compile"
30161 case "(($ac_try" in
30162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30163   *) ac_try_echo=$ac_try;;
30164 esac
30165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30166   (eval "$ac_compile") 2>conftest.er1
30167   ac_status=$?
30168   grep -v '^ *+' conftest.er1 >conftest.err
30169   rm -f conftest.er1
30170   cat conftest.err >&5
30171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30172   (exit $ac_status); } &&
30173          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30174   { (case "(($ac_try" in
30175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30176   *) ac_try_echo=$ac_try;;
30177 esac
30178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30179   (eval "$ac_try") 2>&5
30180   ac_status=$?
30181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30182   (exit $ac_status); }; } &&
30183          { ac_try='test -s conftest.$ac_objext'
30184   { (case "(($ac_try" in
30185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30186   *) ac_try_echo=$ac_try;;
30187 esac
30188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30189   (eval "$ac_try") 2>&5
30190   ac_status=$?
30191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30192   (exit $ac_status); }; }; then
30193   ac_lo=0 ac_mid=0
30194   while :; do
30195     cat >conftest.$ac_ext <<_ACEOF
30196 /* confdefs.h.  */
30197 _ACEOF
30198 cat confdefs.h >>conftest.$ac_ext
30199 cat >>conftest.$ac_ext <<_ACEOF
30200 /* end confdefs.h.  */
30201 $ac_includes_default
30202                    typedef socklen_t ac__type_sizeof_;
30203 int
30204 main ()
30205 {
30206 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
30207 test_array [0] = 0
30208
30209   ;
30210   return 0;
30211 }
30212 _ACEOF
30213 rm -f conftest.$ac_objext
30214 if { (ac_try="$ac_compile"
30215 case "(($ac_try" in
30216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30217   *) ac_try_echo=$ac_try;;
30218 esac
30219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30220   (eval "$ac_compile") 2>conftest.er1
30221   ac_status=$?
30222   grep -v '^ *+' conftest.er1 >conftest.err
30223   rm -f conftest.er1
30224   cat conftest.err >&5
30225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30226   (exit $ac_status); } &&
30227          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30228   { (case "(($ac_try" in
30229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30230   *) ac_try_echo=$ac_try;;
30231 esac
30232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30233   (eval "$ac_try") 2>&5
30234   ac_status=$?
30235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30236   (exit $ac_status); }; } &&
30237          { ac_try='test -s conftest.$ac_objext'
30238   { (case "(($ac_try" in
30239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30240   *) ac_try_echo=$ac_try;;
30241 esac
30242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30243   (eval "$ac_try") 2>&5
30244   ac_status=$?
30245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30246   (exit $ac_status); }; }; then
30247   ac_hi=$ac_mid; break
30248 else
30249   echo "$as_me: failed program was:" >&5
30250 sed 's/^/| /' conftest.$ac_ext >&5
30251
30252         ac_lo=`expr $ac_mid + 1`
30253                         if test $ac_lo -le $ac_mid; then
30254                           ac_lo= ac_hi=
30255                           break
30256                         fi
30257                         ac_mid=`expr 2 '*' $ac_mid + 1`
30258 fi
30259
30260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30261   done
30262 else
30263   echo "$as_me: failed program was:" >&5
30264 sed 's/^/| /' conftest.$ac_ext >&5
30265
30266         cat >conftest.$ac_ext <<_ACEOF
30267 /* confdefs.h.  */
30268 _ACEOF
30269 cat confdefs.h >>conftest.$ac_ext
30270 cat >>conftest.$ac_ext <<_ACEOF
30271 /* end confdefs.h.  */
30272 $ac_includes_default
30273                    typedef socklen_t ac__type_sizeof_;
30274 int
30275 main ()
30276 {
30277 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
30278 test_array [0] = 0
30279
30280   ;
30281   return 0;
30282 }
30283 _ACEOF
30284 rm -f conftest.$ac_objext
30285 if { (ac_try="$ac_compile"
30286 case "(($ac_try" in
30287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30288   *) ac_try_echo=$ac_try;;
30289 esac
30290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30291   (eval "$ac_compile") 2>conftest.er1
30292   ac_status=$?
30293   grep -v '^ *+' conftest.er1 >conftest.err
30294   rm -f conftest.er1
30295   cat conftest.err >&5
30296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30297   (exit $ac_status); } &&
30298          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30299   { (case "(($ac_try" in
30300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30301   *) ac_try_echo=$ac_try;;
30302 esac
30303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30304   (eval "$ac_try") 2>&5
30305   ac_status=$?
30306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30307   (exit $ac_status); }; } &&
30308          { ac_try='test -s conftest.$ac_objext'
30309   { (case "(($ac_try" in
30310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30311   *) ac_try_echo=$ac_try;;
30312 esac
30313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30314   (eval "$ac_try") 2>&5
30315   ac_status=$?
30316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30317   (exit $ac_status); }; }; then
30318   ac_hi=-1 ac_mid=-1
30319   while :; do
30320     cat >conftest.$ac_ext <<_ACEOF
30321 /* confdefs.h.  */
30322 _ACEOF
30323 cat confdefs.h >>conftest.$ac_ext
30324 cat >>conftest.$ac_ext <<_ACEOF
30325 /* end confdefs.h.  */
30326 $ac_includes_default
30327                    typedef socklen_t ac__type_sizeof_;
30328 int
30329 main ()
30330 {
30331 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
30332 test_array [0] = 0
30333
30334   ;
30335   return 0;
30336 }
30337 _ACEOF
30338 rm -f conftest.$ac_objext
30339 if { (ac_try="$ac_compile"
30340 case "(($ac_try" in
30341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30342   *) ac_try_echo=$ac_try;;
30343 esac
30344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30345   (eval "$ac_compile") 2>conftest.er1
30346   ac_status=$?
30347   grep -v '^ *+' conftest.er1 >conftest.err
30348   rm -f conftest.er1
30349   cat conftest.err >&5
30350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30351   (exit $ac_status); } &&
30352          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30353   { (case "(($ac_try" in
30354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30355   *) ac_try_echo=$ac_try;;
30356 esac
30357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30358   (eval "$ac_try") 2>&5
30359   ac_status=$?
30360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30361   (exit $ac_status); }; } &&
30362          { ac_try='test -s conftest.$ac_objext'
30363   { (case "(($ac_try" in
30364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30365   *) ac_try_echo=$ac_try;;
30366 esac
30367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30368   (eval "$ac_try") 2>&5
30369   ac_status=$?
30370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30371   (exit $ac_status); }; }; then
30372   ac_lo=$ac_mid; break
30373 else
30374   echo "$as_me: failed program was:" >&5
30375 sed 's/^/| /' conftest.$ac_ext >&5
30376
30377         ac_hi=`expr '(' $ac_mid ')' - 1`
30378                         if test $ac_mid -le $ac_hi; then
30379                           ac_lo= ac_hi=
30380                           break
30381                         fi
30382                         ac_mid=`expr 2 '*' $ac_mid`
30383 fi
30384
30385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30386   done
30387 else
30388   echo "$as_me: failed program was:" >&5
30389 sed 's/^/| /' conftest.$ac_ext >&5
30390
30391         ac_lo= ac_hi=
30392 fi
30393
30394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30395 fi
30396
30397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30398 # Binary search between lo and hi bounds.
30399 while test "x$ac_lo" != "x$ac_hi"; do
30400   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
30401   cat >conftest.$ac_ext <<_ACEOF
30402 /* confdefs.h.  */
30403 _ACEOF
30404 cat confdefs.h >>conftest.$ac_ext
30405 cat >>conftest.$ac_ext <<_ACEOF
30406 /* end confdefs.h.  */
30407 $ac_includes_default
30408                    typedef socklen_t ac__type_sizeof_;
30409 int
30410 main ()
30411 {
30412 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
30413 test_array [0] = 0
30414
30415   ;
30416   return 0;
30417 }
30418 _ACEOF
30419 rm -f conftest.$ac_objext
30420 if { (ac_try="$ac_compile"
30421 case "(($ac_try" in
30422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30423   *) ac_try_echo=$ac_try;;
30424 esac
30425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30426   (eval "$ac_compile") 2>conftest.er1
30427   ac_status=$?
30428   grep -v '^ *+' conftest.er1 >conftest.err
30429   rm -f conftest.er1
30430   cat conftest.err >&5
30431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30432   (exit $ac_status); } &&
30433          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30434   { (case "(($ac_try" in
30435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30436   *) ac_try_echo=$ac_try;;
30437 esac
30438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30439   (eval "$ac_try") 2>&5
30440   ac_status=$?
30441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30442   (exit $ac_status); }; } &&
30443          { ac_try='test -s conftest.$ac_objext'
30444   { (case "(($ac_try" in
30445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30446   *) ac_try_echo=$ac_try;;
30447 esac
30448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30449   (eval "$ac_try") 2>&5
30450   ac_status=$?
30451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30452   (exit $ac_status); }; }; then
30453   ac_hi=$ac_mid
30454 else
30455   echo "$as_me: failed program was:" >&5
30456 sed 's/^/| /' conftest.$ac_ext >&5
30457
30458         ac_lo=`expr '(' $ac_mid ')' + 1`
30459 fi
30460
30461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30462 done
30463 case $ac_lo in
30464 ?*) ac_cv_sizeof_socklen_t=$ac_lo;;
30465 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (socklen_t)
30466 See \`config.log' for more details." >&5
30467 echo "$as_me: error: cannot compute sizeof (socklen_t)
30468 See \`config.log' for more details." >&2;}
30469    { (exit 77); exit 77; }; } ;;
30470 esac
30471 else
30472   cat >conftest.$ac_ext <<_ACEOF
30473 /* confdefs.h.  */
30474 _ACEOF
30475 cat confdefs.h >>conftest.$ac_ext
30476 cat >>conftest.$ac_ext <<_ACEOF
30477 /* end confdefs.h.  */
30478 $ac_includes_default
30479                    typedef socklen_t ac__type_sizeof_;
30480 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
30481 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
30482 #include <stdio.h>
30483 #include <stdlib.h>
30484 int
30485 main ()
30486 {
30487
30488   FILE *f = fopen ("conftest.val", "w");
30489   if (! f)
30490     return 1;
30491   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
30492     {
30493       long int i = longval ();
30494       if (i != ((long int) (sizeof (ac__type_sizeof_))))
30495         return 1;
30496       fprintf (f, "%ld\n", i);
30497     }
30498   else
30499     {
30500       unsigned long int i = ulongval ();
30501       if (i != ((long int) (sizeof (ac__type_sizeof_))))
30502         return 1;
30503       fprintf (f, "%lu\n", i);
30504     }
30505   return ferror (f) || fclose (f) != 0;
30506
30507   ;
30508   return 0;
30509 }
30510 _ACEOF
30511 rm -f conftest$ac_exeext
30512 if { (ac_try="$ac_link"
30513 case "(($ac_try" in
30514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30515   *) ac_try_echo=$ac_try;;
30516 esac
30517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30518   (eval "$ac_link") 2>&5
30519   ac_status=$?
30520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30521   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30522   { (case "(($ac_try" in
30523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30524   *) ac_try_echo=$ac_try;;
30525 esac
30526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30527   (eval "$ac_try") 2>&5
30528   ac_status=$?
30529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30530   (exit $ac_status); }; }; then
30531   ac_cv_sizeof_socklen_t=`cat conftest.val`
30532 else
30533   echo "$as_me: program exited with status $ac_status" >&5
30534 echo "$as_me: failed program was:" >&5
30535 sed 's/^/| /' conftest.$ac_ext >&5
30536
30537 ( exit $ac_status )
30538 { { echo "$as_me:$LINENO: error: cannot compute sizeof (socklen_t)
30539 See \`config.log' for more details." >&5
30540 echo "$as_me: error: cannot compute sizeof (socklen_t)
30541 See \`config.log' for more details." >&2;}
30542    { (exit 77); exit 77; }; }
30543 fi
30544 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30545 fi
30546 rm -f conftest.val
30547 else
30548   ac_cv_sizeof_socklen_t=0
30549 fi
30550 fi
30551 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_socklen_t" >&5
30552 echo "${ECHO_T}$ac_cv_sizeof_socklen_t" >&6; }
30553 cat >>confdefs.h <<_ACEOF
30554 #define SIZEOF_SOCKLEN_T $ac_cv_sizeof_socklen_t
30555 _ACEOF
30556
30557
30558
30559
30560
30561 cat >>confdefs.h <<_ACEOF
30562 #define NFS_STATEDIR "$statedir"
30563 _ACEOF
30564
30565
30566 if test "x$cross_compiling" = "xno"; then
30567         CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-"$CFLAGS"}
30568         CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-"$CXXFLAGS"}
30569         CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-"$CPPFLAGS"}
30570         LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-"$LDFLAGS"}
30571 else
30572         CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-""}
30573         CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-""}
30574         CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-""}
30575         LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-""}
30576 fi
30577
30578
30579
30580
30581
30582
30583
30584
30585
30586
30587
30588 case $host in
30589   alpha*)
30590     ARCHFLAGS="-mno-fp-regs -ffixed-8" ;;
30591   *)
30592     ARCHFLAGS="" ;;
30593 esac
30594
30595 my_am_cflags="-Wall $ARCHFLAGS -pipe"
30596
30597 AM_CPPFLAGS="-I\${top_srcdir}/support/include -D_FILE_OFFSET_BITS=64"
30598
30599 AM_CFLAGS="$my_am_cflags"
30600
30601
30602 # Make sure that $ACLOCAL_FLAGS are used during a rebuild
30603 ACLOCAL_AMFLAGS="-I $ac_macro_dir \$(ACLOCAL_FLAGS)"
30604
30605
30606 ac_config_files="$ac_config_files Makefile linux-nfs/Makefile support/Makefile support/export/Makefile support/include/nfs/Makefile support/include/rpcsvc/Makefile support/include/sys/fs/Makefile support/include/sys/Makefile support/include/Makefile support/misc/Makefile support/nfs/Makefile tools/Makefile tools/getiversion/Makefile tools/getkversion/Makefile tools/locktest/Makefile tools/nlmtest/Makefile tools/rpcdebug/Makefile tools/rpcgen/Makefile utils/Makefile utils/exportfs/Makefile utils/gssd/Makefile utils/idmapd/Makefile utils/lockd/Makefile utils/mount/Makefile utils/mountd/Makefile utils/nfsd/Makefile utils/nfsstat/Makefile utils/nhfsstone/Makefile utils/rquotad/Makefile utils/showmount/Makefile utils/statd/Makefile"
30607
30608 cat >confcache <<\_ACEOF
30609 # This file is a shell script that caches the results of configure
30610 # tests run on this system so they can be shared between configure
30611 # scripts and configure runs, see configure's option --config-cache.
30612 # It is not useful on other systems.  If it contains results you don't
30613 # want to keep, you may remove or edit it.
30614 #
30615 # config.status only pays attention to the cache file if you give it
30616 # the --recheck option to rerun configure.
30617 #
30618 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30619 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30620 # following values.
30621
30622 _ACEOF
30623
30624 # The following way of writing the cache mishandles newlines in values,
30625 # but we know of no workaround that is simple, portable, and efficient.
30626 # So, we kill variables containing newlines.
30627 # Ultrix sh set writes to stderr and can't be redirected directly,
30628 # and sets the high bit in the cache file unless we assign to the vars.
30629 (
30630   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30631     eval ac_val=\$$ac_var
30632     case $ac_val in #(
30633     *${as_nl}*)
30634       case $ac_var in #(
30635       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
30636 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
30637       esac
30638       case $ac_var in #(
30639       _ | IFS | as_nl) ;; #(
30640       *) $as_unset $ac_var ;;
30641       esac ;;
30642     esac
30643   done
30644
30645   (set) 2>&1 |
30646     case $as_nl`(ac_space=' '; set) 2>&1` in #(
30647     *${as_nl}ac_space=\ *)
30648       # `set' does not quote correctly, so add quotes (double-quote
30649       # substitution turns \\\\ into \\, and sed turns \\ into \).
30650       sed -n \
30651         "s/'/'\\\\''/g;
30652           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30653       ;; #(
30654     *)
30655       # `set' quotes correctly as required by POSIX, so do not add quotes.
30656       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30657       ;;
30658     esac |
30659     sort
30660 ) |
30661   sed '
30662      /^ac_cv_env_/b end
30663      t clear
30664      :clear
30665      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30666      t end
30667      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30668      :end' >>confcache
30669 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30670   if test -w "$cache_file"; then
30671     test "x$cache_file" != "x/dev/null" &&
30672       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
30673 echo "$as_me: updating cache $cache_file" >&6;}
30674     cat confcache >$cache_file
30675   else
30676     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
30677 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30678   fi
30679 fi
30680 rm -f confcache
30681
30682 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30683 # Let make expand exec_prefix.
30684 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30685
30686 DEFS=-DHAVE_CONFIG_H
30687
30688 ac_libobjs=
30689 ac_ltlibobjs=
30690 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30691   # 1. Remove the extension, and $U if already installed.
30692   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30693   ac_i=`echo "$ac_i" | sed "$ac_script"`
30694   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
30695   #    will be set to the directory where LIBOBJS objects are built.
30696   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30697   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
30698 done
30699 LIBOBJS=$ac_libobjs
30700
30701 LTLIBOBJS=$ac_ltlibobjs
30702
30703
30704 if test -z "${CONFIG_NFSV4_TRUE}" && test -z "${CONFIG_NFSV4_FALSE}"; then
30705   { { echo "$as_me:$LINENO: error: conditional \"CONFIG_NFSV4\" was never defined.
30706 Usually this means the macro was only invoked conditionally." >&5
30707 echo "$as_me: error: conditional \"CONFIG_NFSV4\" was never defined.
30708 Usually this means the macro was only invoked conditionally." >&2;}
30709    { (exit 1); exit 1; }; }
30710 fi
30711 if test -z "${CONFIG_GSS_TRUE}" && test -z "${CONFIG_GSS_FALSE}"; then
30712   { { echo "$as_me:$LINENO: error: conditional \"CONFIG_GSS\" was never defined.
30713 Usually this means the macro was only invoked conditionally." >&5
30714 echo "$as_me: error: conditional \"CONFIG_GSS\" was never defined.
30715 Usually this means the macro was only invoked conditionally." >&2;}
30716    { (exit 1); exit 1; }; }
30717 fi
30718 if test -z "${CONFIG_RQUOTAD_TRUE}" && test -z "${CONFIG_RQUOTAD_FALSE}"; then
30719   { { echo "$as_me:$LINENO: error: conditional \"CONFIG_RQUOTAD\" was never defined.
30720 Usually this means the macro was only invoked conditionally." >&5
30721 echo "$as_me: error: conditional \"CONFIG_RQUOTAD\" was never defined.
30722 Usually this means the macro was only invoked conditionally." >&2;}
30723    { (exit 1); exit 1; }; }
30724 fi
30725 if test -z "${CONFIG_MOUNT_TRUE}" && test -z "${CONFIG_MOUNT_FALSE}"; then
30726   { { echo "$as_me:$LINENO: error: conditional \"CONFIG_MOUNT\" was never defined.
30727 Usually this means the macro was only invoked conditionally." >&5
30728 echo "$as_me: error: conditional \"CONFIG_MOUNT\" was never defined.
30729 Usually this means the macro was only invoked conditionally." >&2;}
30730    { (exit 1); exit 1; }; }
30731 fi
30732 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
30733   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
30734 Usually this means the macro was only invoked conditionally." >&5
30735 echo "$as_me: error: conditional \"AMDEP\" was never defined.
30736 Usually this means the macro was only invoked conditionally." >&2;}
30737    { (exit 1); exit 1; }; }
30738 fi
30739 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
30740   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
30741 Usually this means the macro was only invoked conditionally." >&5
30742 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
30743 Usually this means the macro was only invoked conditionally." >&2;}
30744    { (exit 1); exit 1; }; }
30745 fi
30746 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
30747   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
30748 Usually this means the macro was only invoked conditionally." >&5
30749 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
30750 Usually this means the macro was only invoked conditionally." >&2;}
30751    { (exit 1); exit 1; }; }
30752 fi
30753 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
30754   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
30755 Usually this means the macro was only invoked conditionally." >&5
30756 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
30757 Usually this means the macro was only invoked conditionally." >&2;}
30758    { (exit 1); exit 1; }; }
30759 fi
30760
30761 : ${CONFIG_STATUS=./config.status}
30762 ac_clean_files_save=$ac_clean_files
30763 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30764 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30765 echo "$as_me: creating $CONFIG_STATUS" >&6;}
30766 cat >$CONFIG_STATUS <<_ACEOF
30767 #! $SHELL
30768 # Generated by $as_me.
30769 # Run this file to recreate the current configuration.
30770 # Compiler output produced by configure, useful for debugging
30771 # configure, is in config.log if it exists.
30772
30773 debug=false
30774 ac_cs_recheck=false
30775 ac_cs_silent=false
30776 SHELL=\${CONFIG_SHELL-$SHELL}
30777 _ACEOF
30778
30779 cat >>$CONFIG_STATUS <<\_ACEOF
30780 ## --------------------- ##
30781 ## M4sh Initialization.  ##
30782 ## --------------------- ##
30783
30784 # Be Bourne compatible
30785 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30786   emulate sh
30787   NULLCMD=:
30788   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30789   # is contrary to our usage.  Disable this feature.
30790   alias -g '${1+"$@"}'='"$@"'
30791   setopt NO_GLOB_SUBST
30792 else
30793   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
30794 fi
30795 BIN_SH=xpg4; export BIN_SH # for Tru64
30796 DUALCASE=1; export DUALCASE # for MKS sh
30797
30798
30799 # PATH needs CR
30800 # Avoid depending upon Character Ranges.
30801 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30802 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30803 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30804 as_cr_digits='0123456789'
30805 as_cr_alnum=$as_cr_Letters$as_cr_digits
30806
30807 # The user is always right.
30808 if test "${PATH_SEPARATOR+set}" != set; then
30809   echo "#! /bin/sh" >conf$$.sh
30810   echo  "exit 0"   >>conf$$.sh
30811   chmod +x conf$$.sh
30812   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
30813     PATH_SEPARATOR=';'
30814   else
30815     PATH_SEPARATOR=:
30816   fi
30817   rm -f conf$$.sh
30818 fi
30819
30820 # Support unset when possible.
30821 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30822   as_unset=unset
30823 else
30824   as_unset=false
30825 fi
30826
30827
30828 # IFS
30829 # We need space, tab and new line, in precisely that order.  Quoting is
30830 # there to prevent editors from complaining about space-tab.
30831 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30832 # splitting by setting IFS to empty value.)
30833 as_nl='
30834 '
30835 IFS=" ""        $as_nl"
30836
30837 # Find who we are.  Look in the path if we contain no directory separator.
30838 case $0 in
30839   *[\\/]* ) as_myself=$0 ;;
30840   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30841 for as_dir in $PATH
30842 do
30843   IFS=$as_save_IFS
30844   test -z "$as_dir" && as_dir=.
30845   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30846 done
30847 IFS=$as_save_IFS
30848
30849      ;;
30850 esac
30851 # We did not find ourselves, most probably we were run as `sh COMMAND'
30852 # in which case we are not to be found in the path.
30853 if test "x$as_myself" = x; then
30854   as_myself=$0
30855 fi
30856 if test ! -f "$as_myself"; then
30857   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30858   { (exit 1); exit 1; }
30859 fi
30860
30861 # Work around bugs in pre-3.0 UWIN ksh.
30862 for as_var in ENV MAIL MAILPATH
30863 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30864 done
30865 PS1='$ '
30866 PS2='> '
30867 PS4='+ '
30868
30869 # NLS nuisances.
30870 for as_var in \
30871   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30872   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30873   LC_TELEPHONE LC_TIME
30874 do
30875   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
30876     eval $as_var=C; export $as_var
30877   else
30878     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30879   fi
30880 done
30881
30882 # Required to use basename.
30883 if expr a : '\(a\)' >/dev/null 2>&1 &&
30884    test "X`expr 00001 : '.*\(...\)'`" = X001; then
30885   as_expr=expr
30886 else
30887   as_expr=false
30888 fi
30889
30890 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30891   as_basename=basename
30892 else
30893   as_basename=false
30894 fi
30895
30896
30897 # Name of the executable.
30898 as_me=`$as_basename -- "$0" ||
30899 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30900          X"$0" : 'X\(//\)$' \| \
30901          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30902 echo X/"$0" |
30903     sed '/^.*\/\([^/][^/]*\)\/*$/{
30904             s//\1/
30905             q
30906           }
30907           /^X\/\(\/\/\)$/{
30908             s//\1/
30909             q
30910           }
30911           /^X\/\(\/\).*/{
30912             s//\1/
30913             q
30914           }
30915           s/.*/./; q'`
30916
30917 # CDPATH.
30918 $as_unset CDPATH
30919
30920
30921
30922   as_lineno_1=$LINENO
30923   as_lineno_2=$LINENO
30924   test "x$as_lineno_1" != "x$as_lineno_2" &&
30925   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
30926
30927   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30928   # uniformly replaced by the line number.  The first 'sed' inserts a
30929   # line-number line after each line using $LINENO; the second 'sed'
30930   # does the real work.  The second script uses 'N' to pair each
30931   # line-number line with the line containing $LINENO, and appends
30932   # trailing '-' during substitution so that $LINENO is not a special
30933   # case at line end.
30934   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30935   # scripts with optimization help from Paolo Bonzini.  Blame Lee
30936   # E. McMahon (1931-1989) for sed's syntax.  :-)
30937   sed -n '
30938     p
30939     /[$]LINENO/=
30940   ' <$as_myself |
30941     sed '
30942       s/[$]LINENO.*/&-/
30943       t lineno
30944       b
30945       :lineno
30946       N
30947       :loop
30948       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
30949       t loop
30950       s/-\n.*//
30951     ' >$as_me.lineno &&
30952   chmod +x "$as_me.lineno" ||
30953     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
30954    { (exit 1); exit 1; }; }
30955
30956   # Don't try to exec as it changes $[0], causing all sort of problems
30957   # (the dirname of $[0] is not the place where we might find the
30958   # original and so on.  Autoconf is especially sensitive to this).
30959   . "./$as_me.lineno"
30960   # Exit status is that of the last command.
30961   exit
30962 }
30963
30964
30965 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30966   as_dirname=dirname
30967 else
30968   as_dirname=false
30969 fi
30970
30971 ECHO_C= ECHO_N= ECHO_T=
30972 case `echo -n x` in
30973 -n*)
30974   case `echo 'x\c'` in
30975   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
30976   *)   ECHO_C='\c';;
30977   esac;;
30978 *)
30979   ECHO_N='-n';;
30980 esac
30981
30982 if expr a : '\(a\)' >/dev/null 2>&1 &&
30983    test "X`expr 00001 : '.*\(...\)'`" = X001; then
30984   as_expr=expr
30985 else
30986   as_expr=false
30987 fi
30988
30989 rm -f conf$$ conf$$.exe conf$$.file
30990 if test -d conf$$.dir; then
30991   rm -f conf$$.dir/conf$$.file
30992 else
30993   rm -f conf$$.dir
30994   mkdir conf$$.dir
30995 fi
30996 echo >conf$$.file
30997 if ln -s conf$$.file conf$$ 2>/dev/null; then
30998   as_ln_s='ln -s'
30999   # ... but there are two gotchas:
31000   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
31001   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
31002   # In both cases, we have to default to `cp -p'.
31003   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
31004     as_ln_s='cp -p'
31005 elif ln conf$$.file conf$$ 2>/dev/null; then
31006   as_ln_s=ln
31007 else
31008   as_ln_s='cp -p'
31009 fi
31010 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
31011 rmdir conf$$.dir 2>/dev/null
31012
31013 if mkdir -p . 2>/dev/null; then
31014   as_mkdir_p=:
31015 else
31016   test -d ./-p && rmdir ./-p
31017   as_mkdir_p=false
31018 fi
31019
31020 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
31021 # systems may use methods other than mode bits to determine executability.
31022 cat >conf$$.file <<_ASEOF
31023 #! /bin/sh
31024 exit 0
31025 _ASEOF
31026 chmod +x conf$$.file
31027 if test -x conf$$.file >/dev/null 2>&1; then
31028   as_executable_p="test -x"
31029 else
31030   as_executable_p=:
31031 fi
31032 rm -f conf$$.file
31033
31034 # Sed expression to map a string onto a valid CPP name.
31035 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31036
31037 # Sed expression to map a string onto a valid variable name.
31038 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31039
31040
31041 exec 6>&1
31042
31043 # Save the log message, to keep $[0] and so on meaningful, and to
31044 # report actual input values of CONFIG_FILES etc. instead of their
31045 # values after options handling.
31046 ac_log="
31047 This file was extended by linux nfs-utils $as_me 1.0.10, which was
31048 generated by GNU Autoconf 2.60.  Invocation command line was
31049
31050   CONFIG_FILES    = $CONFIG_FILES
31051   CONFIG_HEADERS  = $CONFIG_HEADERS
31052   CONFIG_LINKS    = $CONFIG_LINKS
31053   CONFIG_COMMANDS = $CONFIG_COMMANDS
31054   $ $0 $@
31055
31056 on `(hostname || uname -n) 2>/dev/null | sed 1q`
31057 "
31058
31059 _ACEOF
31060
31061 cat >>$CONFIG_STATUS <<_ACEOF
31062 # Files that config.status was made for.
31063 config_files="$ac_config_files"
31064 config_headers="$ac_config_headers"
31065 config_commands="$ac_config_commands"
31066
31067 _ACEOF
31068
31069 cat >>$CONFIG_STATUS <<\_ACEOF
31070 ac_cs_usage="\
31071 \`$as_me' instantiates files from templates according to the
31072 current configuration.
31073
31074 Usage: $0 [OPTIONS] [FILE]...
31075
31076   -h, --help       print this help, then exit
31077   -V, --version    print version number, then exit
31078   -q, --quiet      do not print progress messages
31079   -d, --debug      don't remove temporary files
31080       --recheck    update $as_me by reconfiguring in the same conditions
31081   --file=FILE[:TEMPLATE]
31082                    instantiate the configuration file FILE
31083   --header=FILE[:TEMPLATE]
31084                    instantiate the configuration header FILE
31085
31086 Configuration files:
31087 $config_files
31088
31089 Configuration headers:
31090 $config_headers
31091
31092 Configuration commands:
31093 $config_commands
31094
31095 Report bugs to <bug-autoconf@gnu.org>."
31096
31097 _ACEOF
31098 cat >>$CONFIG_STATUS <<_ACEOF
31099 ac_cs_version="\\
31100 linux nfs-utils config.status 1.0.10
31101 configured by $0, generated by GNU Autoconf 2.60,
31102   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
31103
31104 Copyright (C) 2006 Free Software Foundation, Inc.
31105 This config.status script is free software; the Free Software Foundation
31106 gives unlimited permission to copy, distribute and modify it."
31107
31108 ac_pwd='$ac_pwd'
31109 srcdir='$srcdir'
31110 INSTALL='$INSTALL'
31111 _ACEOF
31112
31113 cat >>$CONFIG_STATUS <<\_ACEOF
31114 # If no file are specified by the user, then we need to provide default
31115 # value.  By we need to know if files were specified by the user.
31116 ac_need_defaults=:
31117 while test $# != 0
31118 do
31119   case $1 in
31120   --*=*)
31121     ac_option=`expr "X$1" : 'X\([^=]*\)='`
31122     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
31123     ac_shift=:
31124     ;;
31125   *)
31126     ac_option=$1
31127     ac_optarg=$2
31128     ac_shift=shift
31129     ;;
31130   esac
31131
31132   case $ac_option in
31133   # Handling of the options.
31134   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31135     ac_cs_recheck=: ;;
31136   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
31137     echo "$ac_cs_version"; exit ;;
31138   --debug | --debu | --deb | --de | --d | -d )
31139     debug=: ;;
31140   --file | --fil | --fi | --f )
31141     $ac_shift
31142     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
31143     ac_need_defaults=false;;
31144   --header | --heade | --head | --hea )
31145     $ac_shift
31146     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
31147     ac_need_defaults=false;;
31148   --he | --h)
31149     # Conflict between --help and --header
31150     { echo "$as_me: error: ambiguous option: $1
31151 Try \`$0 --help' for more information." >&2
31152    { (exit 1); exit 1; }; };;
31153   --help | --hel | -h )
31154     echo "$ac_cs_usage"; exit ;;
31155   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31156   | -silent | --silent | --silen | --sile | --sil | --si | --s)
31157     ac_cs_silent=: ;;
31158
31159   # This is an error.
31160   -*) { echo "$as_me: error: unrecognized option: $1
31161 Try \`$0 --help' for more information." >&2
31162    { (exit 1); exit 1; }; } ;;
31163
31164   *) ac_config_targets="$ac_config_targets $1"
31165      ac_need_defaults=false ;;
31166
31167   esac
31168   shift
31169 done
31170
31171 ac_configure_extra_args=
31172
31173 if $ac_cs_silent; then
31174   exec 6>/dev/null
31175   ac_configure_extra_args="$ac_configure_extra_args --silent"
31176 fi
31177
31178 _ACEOF
31179 cat >>$CONFIG_STATUS <<_ACEOF
31180 if \$ac_cs_recheck; then
31181   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
31182   CONFIG_SHELL=$SHELL
31183   export CONFIG_SHELL
31184   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31185 fi
31186
31187 _ACEOF
31188 cat >>$CONFIG_STATUS <<\_ACEOF
31189 exec 5>>config.log
31190 {
31191   echo
31192   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31193 ## Running $as_me. ##
31194 _ASBOX
31195   echo "$ac_log"
31196 } >&5
31197
31198 _ACEOF
31199 cat >>$CONFIG_STATUS <<_ACEOF
31200 #
31201 # INIT-COMMANDS
31202 #
31203 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
31204
31205 _ACEOF
31206
31207 cat >>$CONFIG_STATUS <<\_ACEOF
31208
31209 # Handling of arguments.
31210 for ac_config_target in $ac_config_targets
31211 do
31212   case $ac_config_target in
31213     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
31214     "support/include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS support/include/config.h" ;;
31215     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
31216     "linux-nfs/Makefile") CONFIG_FILES="$CONFIG_FILES linux-nfs/Makefile" ;;
31217     "support/Makefile") CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
31218     "support/export/Makefile") CONFIG_FILES="$CONFIG_FILES support/export/Makefile" ;;
31219     "support/include/nfs/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/nfs/Makefile" ;;
31220     "support/include/rpcsvc/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/rpcsvc/Makefile" ;;
31221     "support/include/sys/fs/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/sys/fs/Makefile" ;;
31222     "support/include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/sys/Makefile" ;;
31223     "support/include/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/Makefile" ;;
31224     "support/misc/Makefile") CONFIG_FILES="$CONFIG_FILES support/misc/Makefile" ;;
31225     "support/nfs/Makefile") CONFIG_FILES="$CONFIG_FILES support/nfs/Makefile" ;;
31226     "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
31227     "tools/getiversion/Makefile") CONFIG_FILES="$CONFIG_FILES tools/getiversion/Makefile" ;;
31228     "tools/getkversion/Makefile") CONFIG_FILES="$CONFIG_FILES tools/getkversion/Makefile" ;;
31229     "tools/locktest/Makefile") CONFIG_FILES="$CONFIG_FILES tools/locktest/Makefile" ;;
31230     "tools/nlmtest/Makefile") CONFIG_FILES="$CONFIG_FILES tools/nlmtest/Makefile" ;;
31231     "tools/rpcdebug/Makefile") CONFIG_FILES="$CONFIG_FILES tools/rpcdebug/Makefile" ;;
31232     "tools/rpcgen/Makefile") CONFIG_FILES="$CONFIG_FILES tools/rpcgen/Makefile" ;;
31233     "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
31234     "utils/exportfs/Makefile") CONFIG_FILES="$CONFIG_FILES utils/exportfs/Makefile" ;;
31235     "utils/gssd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/gssd/Makefile" ;;
31236     "utils/idmapd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/idmapd/Makefile" ;;
31237     "utils/lockd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/lockd/Makefile" ;;
31238     "utils/mount/Makefile") CONFIG_FILES="$CONFIG_FILES utils/mount/Makefile" ;;
31239     "utils/mountd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/mountd/Makefile" ;;
31240     "utils/nfsd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/nfsd/Makefile" ;;
31241     "utils/nfsstat/Makefile") CONFIG_FILES="$CONFIG_FILES utils/nfsstat/Makefile" ;;
31242     "utils/nhfsstone/Makefile") CONFIG_FILES="$CONFIG_FILES utils/nhfsstone/Makefile" ;;
31243     "utils/rquotad/Makefile") CONFIG_FILES="$CONFIG_FILES utils/rquotad/Makefile" ;;
31244     "utils/showmount/Makefile") CONFIG_FILES="$CONFIG_FILES utils/showmount/Makefile" ;;
31245     "utils/statd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/statd/Makefile" ;;
31246
31247   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
31248 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
31249    { (exit 1); exit 1; }; };;
31250   esac
31251 done
31252
31253
31254 # If the user did not use the arguments to specify the items to instantiate,
31255 # then the envvar interface is used.  Set only those that are not.
31256 # We use the long form for the default assignment because of an extremely
31257 # bizarre bug on SunOS 4.1.3.
31258 if $ac_need_defaults; then
31259   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31260   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31261   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31262 fi
31263
31264 # Have a temporary directory for convenience.  Make it in the build tree
31265 # simply because there is no reason against having it here, and in addition,
31266 # creating and moving files from /tmp can sometimes cause problems.
31267 # Hook for its removal unless debugging.
31268 # Note that there is a small window in which the directory will not be cleaned:
31269 # after its creation but before its name has been assigned to `$tmp'.
31270 $debug ||
31271 {
31272   tmp=
31273   trap 'exit_status=$?
31274   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
31275 ' 0
31276   trap '{ (exit 1); exit 1; }' 1 2 13 15
31277 }
31278 # Create a (secure) tmp directory for tmp files.
31279
31280 {
31281   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
31282   test -n "$tmp" && test -d "$tmp"
31283 }  ||
31284 {
31285   tmp=./conf$$-$RANDOM
31286   (umask 077 && mkdir "$tmp")
31287 } ||
31288 {
31289    echo "$me: cannot create a temporary directory in ." >&2
31290    { (exit 1); exit 1; }
31291 }
31292
31293 #
31294 # Set up the sed scripts for CONFIG_FILES section.
31295 #
31296
31297 # No need to generate the scripts if there are no CONFIG_FILES.
31298 # This happens for instance when ./config.status config.h
31299 if test -n "$CONFIG_FILES"; then
31300
31301 _ACEOF
31302
31303
31304
31305 ac_delim='%!_!# '
31306 for ac_last_try in false false false false false :; do
31307   cat >conf$$subs.sed <<_ACEOF
31308 SHELL!$SHELL$ac_delim
31309 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
31310 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
31311 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
31312 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
31313 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
31314 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
31315 exec_prefix!$exec_prefix$ac_delim
31316 prefix!$prefix$ac_delim
31317 program_transform_name!$program_transform_name$ac_delim
31318 bindir!$bindir$ac_delim
31319 sbindir!$sbindir$ac_delim
31320 libexecdir!$libexecdir$ac_delim
31321 datarootdir!$datarootdir$ac_delim
31322 datadir!$datadir$ac_delim
31323 sysconfdir!$sysconfdir$ac_delim
31324 sharedstatedir!$sharedstatedir$ac_delim
31325 localstatedir!$localstatedir$ac_delim
31326 includedir!$includedir$ac_delim
31327 oldincludedir!$oldincludedir$ac_delim
31328 docdir!$docdir$ac_delim
31329 infodir!$infodir$ac_delim
31330 htmldir!$htmldir$ac_delim
31331 dvidir!$dvidir$ac_delim
31332 pdfdir!$pdfdir$ac_delim
31333 psdir!$psdir$ac_delim
31334 libdir!$libdir$ac_delim
31335 localedir!$localedir$ac_delim
31336 mandir!$mandir$ac_delim
31337 DEFS!$DEFS$ac_delim
31338 ECHO_C!$ECHO_C$ac_delim
31339 ECHO_N!$ECHO_N$ac_delim
31340 ECHO_T!$ECHO_T$ac_delim
31341 LIBS!$LIBS$ac_delim
31342 build_alias!$build_alias$ac_delim
31343 host_alias!$host_alias$ac_delim
31344 target_alias!$target_alias$ac_delim
31345 build!$build$ac_delim
31346 build_cpu!$build_cpu$ac_delim
31347 build_vendor!$build_vendor$ac_delim
31348 build_os!$build_os$ac_delim
31349 host!$host$ac_delim
31350 host_cpu!$host_cpu$ac_delim
31351 host_vendor!$host_vendor$ac_delim
31352 host_os!$host_os$ac_delim
31353 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
31354 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
31355 INSTALL_DATA!$INSTALL_DATA$ac_delim
31356 CYGPATH_W!$CYGPATH_W$ac_delim
31357 PACKAGE!$PACKAGE$ac_delim
31358 VERSION!$VERSION$ac_delim
31359 ACLOCAL!$ACLOCAL$ac_delim
31360 AUTOCONF!$AUTOCONF$ac_delim
31361 AUTOMAKE!$AUTOMAKE$ac_delim
31362 AUTOHEADER!$AUTOHEADER$ac_delim
31363 MAKEINFO!$MAKEINFO$ac_delim
31364 install_sh!$install_sh$ac_delim
31365 STRIP!$STRIP$ac_delim
31366 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
31367 mkdir_p!$mkdir_p$ac_delim
31368 AWK!$AWK$ac_delim
31369 SET_MAKE!$SET_MAKE$ac_delim
31370 am__leading_dot!$am__leading_dot$ac_delim
31371 AMTAR!$AMTAR$ac_delim
31372 am__tar!$am__tar$ac_delim
31373 am__untar!$am__untar$ac_delim
31374 RELEASE!$RELEASE$ac_delim
31375 statedir!$statedir$ac_delim
31376 statduser!$statduser$ac_delim
31377 enable_nfsv3!$enable_nfsv3$ac_delim
31378 IDMAPD!$IDMAPD$ac_delim
31379 enable_nfsv4!$enable_nfsv4$ac_delim
31380 CONFIG_NFSV4_TRUE!$CONFIG_NFSV4_TRUE$ac_delim
31381 CONFIG_NFSV4_FALSE!$CONFIG_NFSV4_FALSE$ac_delim
31382 GSSD!$GSSD$ac_delim
31383 SVCGSSD!$SVCGSSD$ac_delim
31384 enable_gss!$enable_gss$ac_delim
31385 CONFIG_GSS_TRUE!$CONFIG_GSS_TRUE$ac_delim
31386 CONFIG_GSS_FALSE!$CONFIG_GSS_FALSE$ac_delim
31387 kprefix!$kprefix$ac_delim
31388 secure_statd!$secure_statd$ac_delim
31389 CONFIG_RQUOTAD_TRUE!$CONFIG_RQUOTAD_TRUE$ac_delim
31390 CONFIG_RQUOTAD_FALSE!$CONFIG_RQUOTAD_FALSE$ac_delim
31391 CONFIG_MOUNT_TRUE!$CONFIG_MOUNT_TRUE$ac_delim
31392 CONFIG_MOUNT_FALSE!$CONFIG_MOUNT_FALSE$ac_delim
31393 CC!$CC$ac_delim
31394 CFLAGS!$CFLAGS$ac_delim
31395 LDFLAGS!$LDFLAGS$ac_delim
31396 CPPFLAGS!$CPPFLAGS$ac_delim
31397 ac_ct_CC!$ac_ct_CC$ac_delim
31398 EXEEXT!$EXEEXT$ac_delim
31399 OBJEXT!$OBJEXT$ac_delim
31400 DEPDIR!$DEPDIR$ac_delim
31401 am__include!$am__include$ac_delim
31402 am__quote!$am__quote$ac_delim
31403 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
31404 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
31405 _ACEOF
31406
31407   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
31408     break
31409   elif $ac_last_try; then
31410     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31411 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31412    { (exit 1); exit 1; }; }
31413   else
31414     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31415   fi
31416 done
31417
31418 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
31419 if test -n "$ac_eof"; then
31420   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
31421   ac_eof=`expr $ac_eof + 1`
31422 fi
31423
31424 cat >>$CONFIG_STATUS <<_ACEOF
31425 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
31426 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31427 _ACEOF
31428 sed '
31429 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
31430 s/^/s,@/; s/!/@,|#_!!_#|/
31431 :n
31432 t n
31433 s/'"$ac_delim"'$/,g/; t
31434 s/$/\\/; p
31435 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
31436 ' >>$CONFIG_STATUS <conf$$subs.sed
31437 rm -f conf$$subs.sed
31438 cat >>$CONFIG_STATUS <<_ACEOF
31439 CEOF$ac_eof
31440 _ACEOF
31441
31442
31443 ac_delim='%!_!# '
31444 for ac_last_try in false false false false false :; do
31445   cat >conf$$subs.sed <<_ACEOF
31446 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
31447 CCDEPMODE!$CCDEPMODE$ac_delim
31448 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
31449 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
31450 LIBWRAP!$LIBWRAP$ac_delim
31451 HAVE_LIBWRAP!$HAVE_LIBWRAP$ac_delim
31452 HAVE_TCP_WRAPPER!$HAVE_TCP_WRAPPER$ac_delim
31453 CXX!$CXX$ac_delim
31454 CXXFLAGS!$CXXFLAGS$ac_delim
31455 ac_ct_CXX!$ac_ct_CXX$ac_delim
31456 CXXDEPMODE!$CXXDEPMODE$ac_delim
31457 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
31458 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
31459 CPP!$CPP$ac_delim
31460 LN_S!$LN_S$ac_delim
31461 GREP!$GREP$ac_delim
31462 EGREP!$EGREP$ac_delim
31463 ECHO!$ECHO$ac_delim
31464 AR!$AR$ac_delim
31465 RANLIB!$RANLIB$ac_delim
31466 CXXCPP!$CXXCPP$ac_delim
31467 F77!$F77$ac_delim
31468 FFLAGS!$FFLAGS$ac_delim
31469 ac_ct_F77!$ac_ct_F77$ac_delim
31470 LIBTOOL!$LIBTOOL$ac_delim
31471 CC_FOR_BUILD!$CC_FOR_BUILD$ac_delim
31472 LD!$LD$ac_delim
31473 PKG_CONFIG!$PKG_CONFIG$ac_delim
31474 RPCSECGSS_CFLAGS!$RPCSECGSS_CFLAGS$ac_delim
31475 RPCSECGSS_LIBS!$RPCSECGSS_LIBS$ac_delim
31476 GSSAPI_CFLAGS!$GSSAPI_CFLAGS$ac_delim
31477 GSSAPI_LIBS!$GSSAPI_LIBS$ac_delim
31478 LIBSOCKET!$LIBSOCKET$ac_delim
31479 LIBNSL!$LIBNSL$ac_delim
31480 LIBCRYPT!$LIBCRYPT$ac_delim
31481 LIBBSD!$LIBBSD$ac_delim
31482 KRBDIR!$KRBDIR$ac_delim
31483 KRBLIBS!$KRBLIBS$ac_delim
31484 KRBCFLAGS!$KRBCFLAGS$ac_delim
31485 KRBLDFLAGS!$KRBLDFLAGS$ac_delim
31486 K5VERS!$K5VERS$ac_delim
31487 ALLOCA!$ALLOCA$ac_delim
31488 LIBOBJS!$LIBOBJS$ac_delim
31489 CFLAGS_FOR_BUILD!$CFLAGS_FOR_BUILD$ac_delim
31490 CXXFLAGS_FOR_BUILD!$CXXFLAGS_FOR_BUILD$ac_delim
31491 CPPFLAGS_FOR_BUILD!$CPPFLAGS_FOR_BUILD$ac_delim
31492 LDFLAGS_FOR_BUILD!$LDFLAGS_FOR_BUILD$ac_delim
31493 AM_CPPFLAGS!$AM_CPPFLAGS$ac_delim
31494 AM_CFLAGS!$AM_CFLAGS$ac_delim
31495 ACLOCAL_AMFLAGS!$ACLOCAL_AMFLAGS$ac_delim
31496 LTLIBOBJS!$LTLIBOBJS$ac_delim
31497 _ACEOF
31498
31499   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 51; then
31500     break
31501   elif $ac_last_try; then
31502     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31503 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31504    { (exit 1); exit 1; }; }
31505   else
31506     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31507   fi
31508 done
31509
31510 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
31511 if test -n "$ac_eof"; then
31512   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
31513   ac_eof=`expr $ac_eof + 1`
31514 fi
31515
31516 cat >>$CONFIG_STATUS <<_ACEOF
31517 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
31518 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
31519 _ACEOF
31520 sed '
31521 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
31522 s/^/s,@/; s/!/@,|#_!!_#|/
31523 :n
31524 t n
31525 s/'"$ac_delim"'$/,g/; t
31526 s/$/\\/; p
31527 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
31528 ' >>$CONFIG_STATUS <conf$$subs.sed
31529 rm -f conf$$subs.sed
31530 cat >>$CONFIG_STATUS <<_ACEOF
31531 :end
31532 s/|#_!!_#|//g
31533 CEOF$ac_eof
31534 _ACEOF
31535
31536
31537 # VPATH may cause trouble with some makes, so we remove $(srcdir),
31538 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
31539 # trailing colons and then remove the whole line if VPATH becomes empty
31540 # (actually we leave an empty line to preserve line numbers).
31541 if test "x$srcdir" = x.; then
31542   ac_vpsub='/^[  ]*VPATH[        ]*=/{
31543 s/:*\$(srcdir):*/:/
31544 s/:*\${srcdir}:*/:/
31545 s/:*@srcdir@:*/:/
31546 s/^\([^=]*=[     ]*\):*/\1/
31547 s/:*$//
31548 s/^[^=]*=[       ]*$//
31549 }'
31550 fi
31551
31552 cat >>$CONFIG_STATUS <<\_ACEOF
31553 fi # test -n "$CONFIG_FILES"
31554
31555
31556 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
31557 do
31558   case $ac_tag in
31559   :[FHLC]) ac_mode=$ac_tag; continue;;
31560   esac
31561   case $ac_mode$ac_tag in
31562   :[FHL]*:*);;
31563   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
31564 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
31565    { (exit 1); exit 1; }; };;
31566   :[FH]-) ac_tag=-:-;;
31567   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
31568   esac
31569   ac_save_IFS=$IFS
31570   IFS=:
31571   set x $ac_tag
31572   IFS=$ac_save_IFS
31573   shift
31574   ac_file=$1
31575   shift
31576
31577   case $ac_mode in
31578   :L) ac_source=$1;;
31579   :[FH])
31580     ac_file_inputs=
31581     for ac_f
31582     do
31583       case $ac_f in
31584       -) ac_f="$tmp/stdin";;
31585       *) # Look for the file first in the build tree, then in the source tree
31586          # (if the path is not absolute).  The absolute path cannot be DOS-style,
31587          # because $ac_f cannot contain `:'.
31588          test -f "$ac_f" ||
31589            case $ac_f in
31590            [\\/$]*) false;;
31591            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
31592            esac ||
31593            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
31594 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
31595    { (exit 1); exit 1; }; };;
31596       esac
31597       ac_file_inputs="$ac_file_inputs $ac_f"
31598     done
31599
31600     # Let's still pretend it is `configure' which instantiates (i.e., don't
31601     # use $as_me), people would be surprised to read:
31602     #    /* config.h.  Generated by config.status.  */
31603     configure_input="Generated from "`IFS=:
31604           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
31605     if test x"$ac_file" != x-; then
31606       configure_input="$ac_file.  $configure_input"
31607       { echo "$as_me:$LINENO: creating $ac_file" >&5
31608 echo "$as_me: creating $ac_file" >&6;}
31609     fi
31610
31611     case $ac_tag in
31612     *:-:* | *:-) cat >"$tmp/stdin";;
31613     esac
31614     ;;
31615   esac
31616
31617   ac_dir=`$as_dirname -- "$ac_file" ||
31618 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31619          X"$ac_file" : 'X\(//\)[^/]' \| \
31620          X"$ac_file" : 'X\(//\)$' \| \
31621          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31622 echo X"$ac_file" |
31623     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31624             s//\1/
31625             q
31626           }
31627           /^X\(\/\/\)[^/].*/{
31628             s//\1/
31629             q
31630           }
31631           /^X\(\/\/\)$/{
31632             s//\1/
31633             q
31634           }
31635           /^X\(\/\).*/{
31636             s//\1/
31637             q
31638           }
31639           s/.*/./; q'`
31640   { as_dir="$ac_dir"
31641   case $as_dir in #(
31642   -*) as_dir=./$as_dir;;
31643   esac
31644   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
31645     as_dirs=
31646     while :; do
31647       case $as_dir in #(
31648       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
31649       *) as_qdir=$as_dir;;
31650       esac
31651       as_dirs="'$as_qdir' $as_dirs"
31652       as_dir=`$as_dirname -- "$as_dir" ||
31653 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31654          X"$as_dir" : 'X\(//\)[^/]' \| \
31655          X"$as_dir" : 'X\(//\)$' \| \
31656          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31657 echo X"$as_dir" |
31658     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31659             s//\1/
31660             q
31661           }
31662           /^X\(\/\/\)[^/].*/{
31663             s//\1/
31664             q
31665           }
31666           /^X\(\/\/\)$/{
31667             s//\1/
31668             q
31669           }
31670           /^X\(\/\).*/{
31671             s//\1/
31672             q
31673           }
31674           s/.*/./; q'`
31675       test -d "$as_dir" && break
31676     done
31677     test -z "$as_dirs" || eval "mkdir $as_dirs"
31678   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
31679 echo "$as_me: error: cannot create directory $as_dir" >&2;}
31680    { (exit 1); exit 1; }; }; }
31681   ac_builddir=.
31682
31683 case "$ac_dir" in
31684 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31685 *)
31686   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31687   # A ".." for each directory in $ac_dir_suffix.
31688   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
31689   case $ac_top_builddir_sub in
31690   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31691   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31692   esac ;;
31693 esac
31694 ac_abs_top_builddir=$ac_pwd
31695 ac_abs_builddir=$ac_pwd$ac_dir_suffix
31696 # for backward compatibility:
31697 ac_top_builddir=$ac_top_build_prefix
31698
31699 case $srcdir in
31700   .)  # We are building in place.
31701     ac_srcdir=.
31702     ac_top_srcdir=$ac_top_builddir_sub
31703     ac_abs_top_srcdir=$ac_pwd ;;
31704   [\\/]* | ?:[\\/]* )  # Absolute name.
31705     ac_srcdir=$srcdir$ac_dir_suffix;
31706     ac_top_srcdir=$srcdir
31707     ac_abs_top_srcdir=$srcdir ;;
31708   *) # Relative name.
31709     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31710     ac_top_srcdir=$ac_top_build_prefix$srcdir
31711     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31712 esac
31713 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31714
31715
31716   case $ac_mode in
31717   :F)
31718   #
31719   # CONFIG_FILE
31720   #
31721
31722   case $INSTALL in
31723   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31724   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
31725   esac
31726 _ACEOF
31727
31728 cat >>$CONFIG_STATUS <<\_ACEOF
31729 # If the template does not know about datarootdir, expand it.
31730 # FIXME: This hack should be removed a few years after 2.60.
31731 ac_datarootdir_hack=; ac_datarootdir_seen=
31732
31733 case `sed -n '/datarootdir/ {
31734   p
31735   q
31736 }
31737 /@datadir@/p
31738 /@docdir@/p
31739 /@infodir@/p
31740 /@localedir@/p
31741 /@mandir@/p
31742 ' $ac_file_inputs` in
31743 *datarootdir*) ac_datarootdir_seen=yes;;
31744 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31745   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31746 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31747 _ACEOF
31748 cat >>$CONFIG_STATUS <<_ACEOF
31749   ac_datarootdir_hack='
31750   s&@datadir@&$datadir&g
31751   s&@docdir@&$docdir&g
31752   s&@infodir@&$infodir&g
31753   s&@localedir@&$localedir&g
31754   s&@mandir@&$mandir&g
31755     s&\\\${datarootdir}&$datarootdir&g' ;;
31756 esac
31757 _ACEOF
31758
31759 # Neutralize VPATH when `$srcdir' = `.'.
31760 # Shell code in configure.ac might set extrasub.
31761 # FIXME: do we really want to maintain this feature?
31762 cat >>$CONFIG_STATUS <<_ACEOF
31763   sed "$ac_vpsub
31764 $extrasub
31765 _ACEOF
31766 cat >>$CONFIG_STATUS <<\_ACEOF
31767 :t
31768 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31769 s&@configure_input@&$configure_input&;t t
31770 s&@top_builddir@&$ac_top_builddir_sub&;t t
31771 s&@srcdir@&$ac_srcdir&;t t
31772 s&@abs_srcdir@&$ac_abs_srcdir&;t t
31773 s&@top_srcdir@&$ac_top_srcdir&;t t
31774 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31775 s&@builddir@&$ac_builddir&;t t
31776 s&@abs_builddir@&$ac_abs_builddir&;t t
31777 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31778 s&@INSTALL@&$ac_INSTALL&;t t
31779 $ac_datarootdir_hack
31780 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
31781
31782 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31783   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
31784   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
31785   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31786 which seems to be undefined.  Please make sure it is defined." >&5
31787 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31788 which seems to be undefined.  Please make sure it is defined." >&2;}
31789
31790   rm -f "$tmp/stdin"
31791   case $ac_file in
31792   -) cat "$tmp/out"; rm -f "$tmp/out";;
31793   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
31794   esac
31795  ;;
31796   :H)
31797   #
31798   # CONFIG_HEADER
31799   #
31800 _ACEOF
31801
31802 # Transform confdefs.h into a sed script `conftest.defines', that
31803 # substitutes the proper values into config.h.in to produce config.h.
31804 rm -f conftest.defines conftest.tail
31805 # First, append a space to every undef/define line, to ease matching.
31806 echo 's/$/ /' >conftest.defines
31807 # Then, protect against being on the right side of a sed subst, or in
31808 # an unquoted here document, in config.status.  If some macros were
31809 # called several times there might be several #defines for the same
31810 # symbol, which is useless.  But do not sort them, since the last
31811 # AC_DEFINE must be honored.
31812 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31813 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
31814 # NAME is the cpp macro being defined, VALUE is the value it is being given.
31815 # PARAMS is the parameter list in the macro definition--in most cases, it's
31816 # just an empty string.
31817 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
31818 ac_dB='\\)[      (].*,\\1define\\2'
31819 ac_dC=' '
31820 ac_dD=' ,'
31821
31822 uniq confdefs.h |
31823   sed -n '
31824         t rset
31825         :rset
31826         s/^[     ]*#[    ]*define[       ][      ]*//
31827         t ok
31828         d
31829         :ok
31830         s/[\\&,]/\\&/g
31831         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
31832         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
31833   ' >>conftest.defines
31834
31835 # Remove the space that was appended to ease matching.
31836 # Then replace #undef with comments.  This is necessary, for
31837 # example, in the case of _POSIX_SOURCE, which is predefined and required
31838 # on some systems where configure will not decide to define it.
31839 # (The regexp can be short, since the line contains either #define or #undef.)
31840 echo 's/ $//
31841 s,^[     #]*u.*,/* & */,' >>conftest.defines
31842
31843 # Break up conftest.defines:
31844 ac_max_sed_lines=50
31845
31846 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
31847 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
31848 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
31849 # et cetera.
31850 ac_in='$ac_file_inputs'
31851 ac_out='"$tmp/out1"'
31852 ac_nxt='"$tmp/out2"'
31853
31854 while :
31855 do
31856   # Write a here document:
31857     cat >>$CONFIG_STATUS <<_ACEOF
31858     # First, check the format of the line:
31859     cat >"\$tmp/defines.sed" <<\\CEOF
31860 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
31861 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
31862 b
31863 :def
31864 _ACEOF
31865   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
31866   echo 'CEOF
31867     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
31868   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
31869   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
31870   grep . conftest.tail >/dev/null || break
31871   rm -f conftest.defines
31872   mv conftest.tail conftest.defines
31873 done
31874 rm -f conftest.defines conftest.tail
31875
31876 echo "ac_result=$ac_in" >>$CONFIG_STATUS
31877 cat >>$CONFIG_STATUS <<\_ACEOF
31878   if test x"$ac_file" != x-; then
31879     echo "/* $configure_input  */" >"$tmp/config.h"
31880     cat "$ac_result" >>"$tmp/config.h"
31881     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
31882       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31883 echo "$as_me: $ac_file is unchanged" >&6;}
31884     else
31885       rm -f $ac_file
31886       mv "$tmp/config.h" $ac_file
31887     fi
31888   else
31889     echo "/* $configure_input  */"
31890     cat "$ac_result"
31891   fi
31892   rm -f "$tmp/out12"
31893 # Compute $ac_file's index in $config_headers.
31894 _am_stamp_count=1
31895 for _am_header in $config_headers :; do
31896   case $_am_header in
31897     $ac_file | $ac_file:* )
31898       break ;;
31899     * )
31900       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
31901   esac
31902 done
31903 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
31904 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31905          X$ac_file : 'X\(//\)[^/]' \| \
31906          X$ac_file : 'X\(//\)$' \| \
31907          X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
31908 echo X$ac_file |
31909     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31910             s//\1/
31911             q
31912           }
31913           /^X\(\/\/\)[^/].*/{
31914             s//\1/
31915             q
31916           }
31917           /^X\(\/\/\)$/{
31918             s//\1/
31919             q
31920           }
31921           /^X\(\/\).*/{
31922             s//\1/
31923             q
31924           }
31925           s/.*/./; q'`/stamp-h$_am_stamp_count
31926  ;;
31927
31928   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
31929 echo "$as_me: executing $ac_file commands" >&6;}
31930  ;;
31931   esac
31932
31933
31934   case $ac_file$ac_mode in
31935     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
31936   # Strip MF so we end up with the name of the file.
31937   mf=`echo "$mf" | sed -e 's/:.*$//'`
31938   # Check whether this is an Automake generated Makefile or not.
31939   # We used to match only the files named `Makefile.in', but
31940   # some people rename them; so instead we look at the file content.
31941   # Grep'ing the first line is not enough: some people post-process
31942   # each Makefile.in and add a new line on top of each file to say so.
31943   # So let's grep whole file.
31944   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
31945     dirpart=`$as_dirname -- "$mf" ||
31946 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31947          X"$mf" : 'X\(//\)[^/]' \| \
31948          X"$mf" : 'X\(//\)$' \| \
31949          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
31950 echo X"$mf" |
31951     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31952             s//\1/
31953             q
31954           }
31955           /^X\(\/\/\)[^/].*/{
31956             s//\1/
31957             q
31958           }
31959           /^X\(\/\/\)$/{
31960             s//\1/
31961             q
31962           }
31963           /^X\(\/\).*/{
31964             s//\1/
31965             q
31966           }
31967           s/.*/./; q'`
31968   else
31969     continue
31970   fi
31971   # Extract the definition of DEPDIR, am__include, and am__quote
31972   # from the Makefile without running `make'.
31973   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
31974   test -z "$DEPDIR" && continue
31975   am__include=`sed -n 's/^am__include = //p' < "$mf"`
31976   test -z "am__include" && continue
31977   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
31978   # When using ansi2knr, U may be empty or an underscore; expand it
31979   U=`sed -n 's/^U = //p' < "$mf"`
31980   # Find all dependency output files, they are included files with
31981   # $(DEPDIR) in their names.  We invoke sed twice because it is the
31982   # simplest approach to changing $(DEPDIR) to its actual value in the
31983   # expansion.
31984   for file in `sed -n "
31985     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
31986        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
31987     # Make sure the directory exists.
31988     test -f "$dirpart/$file" && continue
31989     fdir=`$as_dirname -- "$file" ||
31990 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31991          X"$file" : 'X\(//\)[^/]' \| \
31992          X"$file" : 'X\(//\)$' \| \
31993          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
31994 echo X"$file" |
31995     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31996             s//\1/
31997             q
31998           }
31999           /^X\(\/\/\)[^/].*/{
32000             s//\1/
32001             q
32002           }
32003           /^X\(\/\/\)$/{
32004             s//\1/
32005             q
32006           }
32007           /^X\(\/\).*/{
32008             s//\1/
32009             q
32010           }
32011           s/.*/./; q'`
32012     { as_dir=$dirpart/$fdir
32013   case $as_dir in #(
32014   -*) as_dir=./$as_dir;;
32015   esac
32016   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
32017     as_dirs=
32018     while :; do
32019       case $as_dir in #(
32020       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
32021       *) as_qdir=$as_dir;;
32022       esac
32023       as_dirs="'$as_qdir' $as_dirs"
32024       as_dir=`$as_dirname -- "$as_dir" ||
32025 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32026          X"$as_dir" : 'X\(//\)[^/]' \| \
32027          X"$as_dir" : 'X\(//\)$' \| \
32028          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
32029 echo X"$as_dir" |
32030     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32031             s//\1/
32032             q
32033           }
32034           /^X\(\/\/\)[^/].*/{
32035             s//\1/
32036             q
32037           }
32038           /^X\(\/\/\)$/{
32039             s//\1/
32040             q
32041           }
32042           /^X\(\/\).*/{
32043             s//\1/
32044             q
32045           }
32046           s/.*/./; q'`
32047       test -d "$as_dir" && break
32048     done
32049     test -z "$as_dirs" || eval "mkdir $as_dirs"
32050   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
32051 echo "$as_me: error: cannot create directory $as_dir" >&2;}
32052    { (exit 1); exit 1; }; }; }
32053     # echo "creating $dirpart/$file"
32054     echo '# dummy' > "$dirpart/$file"
32055   done
32056 done
32057  ;;
32058
32059   esac
32060 done # for ac_tag
32061
32062
32063 { (exit 0); exit 0; }
32064 _ACEOF
32065 chmod +x $CONFIG_STATUS
32066 ac_clean_files=$ac_clean_files_save
32067
32068
32069 # configure is writing to config.log, and then calls config.status.
32070 # config.status does its own redirection, appending to config.log.
32071 # Unfortunately, on DOS this fails, as config.log is still kept open
32072 # by configure, so config.status won't be able to write to it; its
32073 # output is simply discarded.  So we exec the FD to /dev/null,
32074 # effectively closing config.log, so it can be properly (re)opened and
32075 # appended to by config.status.  When coming back to configure, we
32076 # need to make the FD available again.
32077 if test "$no_create" != yes; then
32078   ac_cs_success=:
32079   ac_config_status_args=
32080   test "$silent" = yes &&
32081     ac_config_status_args="$ac_config_status_args --quiet"
32082   exec 5>/dev/null
32083   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
32084   exec 5>>config.log
32085   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32086   # would make configure fail if this is the last instruction.
32087   $ac_cs_success || { (exit 1); exit 1; }
32088 fi
32089
32090