]> git.decadent.org.uk Git - nfs-utils.git/blob - autom4te.cache/output.0
Imported Upstream version 1.1.1~git-20070706
[nfs-utils.git] / autom4te.cache / output.0
1 @%:@! /bin/sh
2 @%:@ Guess values for system-dependent variables and create Makefiles.
3 @%:@ Generated by GNU Autoconf 2.61 for linux nfs-utils 1.1.0.
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 more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18   emulate sh
19   NULLCMD=:
20   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in
26   *posix*) set -o posix ;;
27 esac
28
29 fi
30
31
32
33
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44   echo "#! /bin/sh" >conf$$.sh
45   echo  "exit 0"   >>conf$$.sh
46   chmod +x conf$$.sh
47   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48     PATH_SEPARATOR=';'
49   else
50     PATH_SEPARATOR=:
51   fi
52   rm -f conf$$.sh
53 fi
54
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57   as_unset=unset
58 else
59   as_unset=false
60 fi
61
62
63 # IFS
64 # We need space, tab and new line, in precisely that order.  Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
68 as_nl='
69 '
70 IFS=" ""        $as_nl"
71
72 # Find who we are.  Look in the path if we contain no directory separator.
73 case $0 in
74   *[\\/]* ) as_myself=$0 ;;
75   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76 for as_dir in $PATH
77 do
78   IFS=$as_save_IFS
79   test -z "$as_dir" && as_dir=.
80   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81 done
82 IFS=$as_save_IFS
83
84      ;;
85 esac
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x; then
89   as_myself=$0
90 fi
91 if test ! -f "$as_myself"; then
92   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93   { (exit 1); exit 1; }
94 fi
95
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99 done
100 PS1='$ '
101 PS2='> '
102 PS4='+ '
103
104 # NLS nuisances.
105 for as_var in \
106   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108   LC_TELEPHONE LC_TIME
109 do
110   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111     eval $as_var=C; export $as_var
112   else
113     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114   fi
115 done
116
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119    test "X`expr 00001 : '.*\(...\)'`" = X001; then
120   as_expr=expr
121 else
122   as_expr=false
123 fi
124
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126   as_basename=basename
127 else
128   as_basename=false
129 fi
130
131
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135          X"$0" : 'X\(//\)$' \| \
136          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137 echo X/"$0" |
138     sed '/^.*\/\([^/][^/]*\)\/*$/{
139             s//\1/
140             q
141           }
142           /^X\/\(\/\/\)$/{
143             s//\1/
144             q
145           }
146           /^X\/\(\/\).*/{
147             s//\1/
148             q
149           }
150           s/.*/./; q'`
151
152 # CDPATH.
153 $as_unset CDPATH
154
155
156 if test "x$CONFIG_SHELL" = x; then
157   if (eval ":") 2>/dev/null; then
158   as_have_required=yes
159 else
160   as_have_required=no
161 fi
162
163   if test $as_have_required = yes &&     (eval ":
164 (as_func_return () {
165   (exit \$1)
166 }
167 as_func_success () {
168   as_func_return 0
169 }
170 as_func_failure () {
171   as_func_return 1
172 }
173 as_func_ret_success () {
174   return 0
175 }
176 as_func_ret_failure () {
177   return 1
178 }
179
180 exitcode=0
181 if as_func_success; then
182   :
183 else
184   exitcode=1
185   echo as_func_success failed.
186 fi
187
188 if as_func_failure; then
189   exitcode=1
190   echo as_func_failure succeeded.
191 fi
192
193 if as_func_ret_success; then
194   :
195 else
196   exitcode=1
197   echo as_func_ret_success failed.
198 fi
199
200 if as_func_ret_failure; then
201   exitcode=1
202   echo as_func_ret_failure succeeded.
203 fi
204
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206   :
207 else
208   exitcode=1
209   echo positional parameters were not saved.
210 fi
211
212 test \$exitcode = 0) || { (exit 1); exit 1; }
213
214 (
215   as_lineno_1=\$LINENO
216   as_lineno_2=\$LINENO
217   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev/null; then
220   :
221 else
222   as_candidate_shells=
223     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 do
226   IFS=$as_save_IFS
227   test -z "$as_dir" && as_dir=.
228   case $as_dir in
229          /*)
230            for as_base in sh bash ksh sh5; do
231              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232            done;;
233        esac
234 done
235 IFS=$as_save_IFS
236
237
238       for as_shell in $as_candidate_shells $SHELL; do
239          # Try only shells that exist, to save several forks.
240          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241                 { ("$as_shell") 2> /dev/null <<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243   emulate sh
244   NULLCMD=:
245   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246   # is contrary to our usage.  Disable this feature.
247   alias -g '${1+"$@"}'='"$@"'
248   setopt NO_GLOB_SUBST
249 else
250   case `(set -o) 2>/dev/null` in
251   *posix*) set -o posix ;;
252 esac
253
254 fi
255
256
257 :
258 _ASEOF
259 }; then
260   CONFIG_SHELL=$as_shell
261                as_have_required=yes
262                if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264   emulate sh
265   NULLCMD=:
266   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267   # is contrary to our usage.  Disable this feature.
268   alias -g '${1+"$@"}'='"$@"'
269   setopt NO_GLOB_SUBST
270 else
271   case `(set -o) 2>/dev/null` in
272   *posix*) set -o posix ;;
273 esac
274
275 fi
276
277
278 :
279 (as_func_return () {
280   (exit $1)
281 }
282 as_func_success () {
283   as_func_return 0
284 }
285 as_func_failure () {
286   as_func_return 1
287 }
288 as_func_ret_success () {
289   return 0
290 }
291 as_func_ret_failure () {
292   return 1
293 }
294
295 exitcode=0
296 if as_func_success; then
297   :
298 else
299   exitcode=1
300   echo as_func_success failed.
301 fi
302
303 if as_func_failure; then
304   exitcode=1
305   echo as_func_failure succeeded.
306 fi
307
308 if as_func_ret_success; then
309   :
310 else
311   exitcode=1
312   echo as_func_ret_success failed.
313 fi
314
315 if as_func_ret_failure; then
316   exitcode=1
317   echo as_func_ret_failure succeeded.
318 fi
319
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
321   :
322 else
323   exitcode=1
324   echo positional parameters were not saved.
325 fi
326
327 test $exitcode = 0) || { (exit 1); exit 1; }
328
329 (
330   as_lineno_1=$LINENO
331   as_lineno_2=$LINENO
332   test "x$as_lineno_1" != "x$as_lineno_2" &&
333   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
334
335 _ASEOF
336 }; then
337   break
338 fi
339
340 fi
341
342       done
343
344       if test "x$CONFIG_SHELL" != x; then
345   for as_var in BASH_ENV ENV
346         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347         done
348         export CONFIG_SHELL
349         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350 fi
351
352
353     if test $as_have_required = no; then
354   echo This script requires a shell more modern than all the
355       echo shells that I found on your system.  Please install a
356       echo modern shell, or manually run the script under such a
357       echo shell if you do have one.
358       { (exit 1); exit 1; }
359 fi
360
361     
362 fi
363
364 fi
365
366
367
368 (eval "as_func_return () {
369   (exit \$1)
370 }
371 as_func_success () {
372   as_func_return 0
373 }
374 as_func_failure () {
375   as_func_return 1
376 }
377 as_func_ret_success () {
378   return 0
379 }
380 as_func_ret_failure () {
381   return 1
382 }
383
384 exitcode=0
385 if as_func_success; then
386   :
387 else
388   exitcode=1
389   echo as_func_success failed.
390 fi
391
392 if as_func_failure; then
393   exitcode=1
394   echo as_func_failure succeeded.
395 fi
396
397 if as_func_ret_success; then
398   :
399 else
400   exitcode=1
401   echo as_func_ret_success failed.
402 fi
403
404 if as_func_ret_failure; then
405   exitcode=1
406   echo as_func_ret_failure succeeded.
407 fi
408
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410   :
411 else
412   exitcode=1
413   echo positional parameters were not saved.
414 fi
415
416 test \$exitcode = 0") || {
417   echo No shell found that supports shell functions.
418   echo Please tell autoconf@gnu.org about your system,
419   echo including any error possibly output before this
420   echo message
421 }
422
423
424
425   as_lineno_1=$LINENO
426   as_lineno_2=$LINENO
427   test "x$as_lineno_1" != "x$as_lineno_2" &&
428   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
429
430   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431   # uniformly replaced by the line number.  The first 'sed' inserts a
432   # line-number line after each line using $LINENO; the second 'sed'
433   # does the real work.  The second script uses 'N' to pair each
434   # line-number line with the line containing $LINENO, and appends
435   # trailing '-' during substitution so that $LINENO is not a special
436   # case at line end.
437   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438   # scripts with optimization help from Paolo Bonzini.  Blame Lee
439   # E. McMahon (1931-1989) for sed's syntax.  :-)
440   sed -n '
441     p
442     /[$]LINENO/=
443   ' <$as_myself |
444     sed '
445       s/[$]LINENO.*/&-/
446       t lineno
447       b
448       :lineno
449       N
450       :loop
451       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452       t loop
453       s/-\n.*//
454     ' >$as_me.lineno &&
455   chmod +x "$as_me.lineno" ||
456     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457    { (exit 1); exit 1; }; }
458
459   # Don't try to exec as it changes $[0], causing all sort of problems
460   # (the dirname of $[0] is not the place where we might find the
461   # original and so on.  Autoconf is especially sensitive to this).
462   . "./$as_me.lineno"
463   # Exit status is that of the last command.
464   exit
465 }
466
467
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469   as_dirname=dirname
470 else
471   as_dirname=false
472 fi
473
474 ECHO_C= ECHO_N= ECHO_T=
475 case `echo -n x` in
476 -n*)
477   case `echo 'x\c'` in
478   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
479   *)   ECHO_C='\c';;
480   esac;;
481 *)
482   ECHO_N='-n';;
483 esac
484
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486    test "X`expr 00001 : '.*\(...\)'`" = X001; then
487   as_expr=expr
488 else
489   as_expr=false
490 fi
491
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494   rm -f conf$$.dir/conf$$.file
495 else
496   rm -f conf$$.dir
497   mkdir conf$$.dir
498 fi
499 echo >conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
501   as_ln_s='ln -s'
502   # ... but there are two gotchas:
503   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505   # In both cases, we have to default to `cp -p'.
506   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507     as_ln_s='cp -p'
508 elif ln conf$$.file conf$$ 2>/dev/null; then
509   as_ln_s=ln
510 else
511   as_ln_s='cp -p'
512 fi
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
515
516 if mkdir -p . 2>/dev/null; then
517   as_mkdir_p=:
518 else
519   test -d ./-p && rmdir ./-p
520   as_mkdir_p=false
521 fi
522
523 if test -x / >/dev/null 2>&1; then
524   as_test_x='test -x'
525 else
526   if ls -dL / >/dev/null 2>&1; then
527     as_ls_L_option=L
528   else
529     as_ls_L_option=
530   fi
531   as_test_x='
532     eval sh -c '\''
533       if test -d "$1"; then
534         test -d "$1/.";
535       else
536         case $1 in
537         -*)set "./$1";;
538         esac;
539         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540         ???[sx]*):;;*)false;;esac;fi
541     '\'' sh
542   '
543 fi
544 as_executable_p=$as_test_x
545
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551
552
553
554
555 # Check that we are running under the correct shell.
556 SHELL=${CONFIG_SHELL-/bin/sh}
557
558 case X$ECHO in
559 X*--fallback-echo)
560   # Remove one level of quotation (which was required for Make).
561   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
562   ;;
563 esac
564
565 echo=${ECHO-echo}
566 if test "X$1" = X--no-reexec; then
567   # Discard the --no-reexec flag, and continue.
568   shift
569 elif test "X$1" = X--fallback-echo; then
570   # Avoid inline document here, it may be left over
571   :
572 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
573   # Yippee, $echo works!
574   :
575 else
576   # Restart under the correct shell.
577   exec $SHELL "$0" --no-reexec ${1+"$@"}
578 fi
579
580 if test "X$1" = X--fallback-echo; then
581   # used as fallback echo
582   shift
583   cat <<EOF
584 $*
585 EOF
586   exit 0
587 fi
588
589 # The HP-UX ksh and POSIX shell print the target directory to stdout
590 # if CDPATH is set.
591 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
592
593 if test -z "$ECHO"; then
594 if test "X${echo_test_string+set}" != Xset; then
595 # find a string as large as possible, as long as the shell can cope with it
596   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
597     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
598     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
599        echo_test_string=`eval $cmd` &&
600        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
601     then
602       break
603     fi
604   done
605 fi
606
607 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
608    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
609    test "X$echo_testing_string" = "X$echo_test_string"; then
610   :
611 else
612   # The Solaris, AIX, and Digital Unix default echo programs unquote
613   # backslashes.  This makes it impossible to quote backslashes using
614   #   echo "$something" | sed 's/\\/\\\\/g'
615   #
616   # So, first we look for a working echo in the user's PATH.
617
618   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
619   for dir in $PATH /usr/ucb; do
620     IFS="$lt_save_ifs"
621     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
622        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
623        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
624        test "X$echo_testing_string" = "X$echo_test_string"; then
625       echo="$dir/echo"
626       break
627     fi
628   done
629   IFS="$lt_save_ifs"
630
631   if test "X$echo" = Xecho; then
632     # We didn't find a better echo, so look for alternatives.
633     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
634        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
635        test "X$echo_testing_string" = "X$echo_test_string"; then
636       # This shell has a builtin print -r that does the trick.
637       echo='print -r'
638     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
639          test "X$CONFIG_SHELL" != X/bin/ksh; then
640       # If we have ksh, try running configure again with it.
641       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
642       export ORIGINAL_CONFIG_SHELL
643       CONFIG_SHELL=/bin/ksh
644       export CONFIG_SHELL
645       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
646     else
647       # Try using printf.
648       echo='printf %s\n'
649       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
650          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
651          test "X$echo_testing_string" = "X$echo_test_string"; then
652         # Cool, printf works
653         :
654       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
655            test "X$echo_testing_string" = 'X\t' &&
656            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
657            test "X$echo_testing_string" = "X$echo_test_string"; then
658         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
659         export CONFIG_SHELL
660         SHELL="$CONFIG_SHELL"
661         export SHELL
662         echo="$CONFIG_SHELL $0 --fallback-echo"
663       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
664            test "X$echo_testing_string" = 'X\t' &&
665            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
666            test "X$echo_testing_string" = "X$echo_test_string"; then
667         echo="$CONFIG_SHELL $0 --fallback-echo"
668       else
669         # maybe with a smaller string...
670         prev=:
671
672         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
673           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
674           then
675             break
676           fi
677           prev="$cmd"
678         done
679
680         if test "$prev" != 'sed 50q "$0"'; then
681           echo_test_string=`eval $prev`
682           export echo_test_string
683           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
684         else
685           # Oops.  We lost completely, so just stick with echo.
686           echo=echo
687         fi
688       fi
689     fi
690   fi
691 fi
692 fi
693
694 # Copy echo and quote the copy suitably for passing to libtool from
695 # the Makefile, instead of quoting the original, which is used later.
696 ECHO=$echo
697 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
698    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
699 fi
700
701
702
703
704 tagnames=${tagnames+${tagnames},}CXX
705
706 tagnames=${tagnames+${tagnames},}F77
707
708 exec 7<&0 </dev/null 6>&1
709
710 # Name of the host.
711 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
712 # so uname gets run too.
713 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
714
715 #
716 # Initializations.
717 #
718 ac_default_prefix=/usr/local
719 ac_clean_files=
720 ac_config_libobj_dir=.
721 LIB@&t@OBJS=
722 cross_compiling=no
723 subdirs=
724 MFLAGS=
725 MAKEFLAGS=
726 SHELL=${CONFIG_SHELL-/bin/sh}
727
728 # Identity of this package.
729 PACKAGE_NAME='linux nfs-utils'
730 PACKAGE_TARNAME='nfs-utils'
731 PACKAGE_VERSION='1.1.0'
732 PACKAGE_STRING='linux nfs-utils 1.1.0'
733 PACKAGE_BUGREPORT='nfs@lists.sf.net'
734
735 ac_default_prefix=/usr
736 ac_unique_file="support/include/config.h.in"
737 # Factoring default headers for most tests.
738 ac_includes_default="\
739 #include <stdio.h>
740 #ifdef HAVE_SYS_TYPES_H
741 # include <sys/types.h>
742 #endif
743 #ifdef HAVE_SYS_STAT_H
744 # include <sys/stat.h>
745 #endif
746 #ifdef STDC_HEADERS
747 # include <stdlib.h>
748 # include <stddef.h>
749 #else
750 # ifdef HAVE_STDLIB_H
751 #  include <stdlib.h>
752 # endif
753 #endif
754 #ifdef HAVE_STRING_H
755 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
756 #  include <memory.h>
757 # endif
758 # include <string.h>
759 #endif
760 #ifdef HAVE_STRINGS_H
761 # include <strings.h>
762 #endif
763 #ifdef HAVE_INTTYPES_H
764 # include <inttypes.h>
765 #endif
766 #ifdef HAVE_STDINT_H
767 # include <stdint.h>
768 #endif
769 #ifdef HAVE_UNISTD_H
770 # include <unistd.h>
771 #endif"
772
773 ac_subst_vars='SHELL
774 PATH_SEPARATOR
775 PACKAGE_NAME
776 PACKAGE_TARNAME
777 PACKAGE_VERSION
778 PACKAGE_STRING
779 PACKAGE_BUGREPORT
780 exec_prefix
781 prefix
782 program_transform_name
783 bindir
784 sbindir
785 libexecdir
786 datarootdir
787 datadir
788 sysconfdir
789 sharedstatedir
790 localstatedir
791 includedir
792 oldincludedir
793 docdir
794 infodir
795 htmldir
796 dvidir
797 pdfdir
798 psdir
799 libdir
800 localedir
801 mandir
802 DEFS
803 ECHO_C
804 ECHO_N
805 ECHO_T
806 LIBS
807 build_alias
808 host_alias
809 target_alias
810 build
811 build_cpu
812 build_vendor
813 build_os
814 host
815 host_cpu
816 host_vendor
817 host_os
818 INSTALL_PROGRAM
819 INSTALL_SCRIPT
820 INSTALL_DATA
821 CYGPATH_W
822 PACKAGE
823 VERSION
824 ACLOCAL
825 AUTOCONF
826 AUTOMAKE
827 AUTOHEADER
828 MAKEINFO
829 install_sh
830 STRIP
831 INSTALL_STRIP_PROGRAM
832 mkdir_p
833 AWK
834 SET_MAKE
835 am__leading_dot
836 AMTAR
837 am__tar
838 am__untar
839 MAINTAINER_MODE_TRUE
840 MAINTAINER_MODE_FALSE
841 MAINT
842 RELEASE
843 statedir
844 statduser
845 startstatd
846 enable_nfsv3
847 IDMAPD
848 enable_nfsv4
849 CONFIG_NFSV4_TRUE
850 CONFIG_NFSV4_FALSE
851 GSSD
852 SVCGSSD
853 enable_gss
854 CONFIG_GSS_TRUE
855 CONFIG_GSS_FALSE
856 kprefix
857 secure_statd
858 RPCGEN_PATH
859 CONFIG_RPCGEN_TRUE
860 CONFIG_RPCGEN_FALSE
861 CONFIG_MOUNT_TRUE
862 CONFIG_MOUNT_FALSE
863 CC
864 CFLAGS
865 LDFLAGS
866 CPPFLAGS
867 ac_ct_CC
868 EXEEXT
869 OBJEXT
870 DEPDIR
871 am__include
872 am__quote
873 AMDEP_TRUE
874 AMDEP_FALSE
875 AMDEPBACKSLASH
876 CCDEPMODE
877 am__fastdepCC_TRUE
878 am__fastdepCC_FALSE
879 LIBWRAP
880 HAVE_LIBWRAP
881 HAVE_TCP_WRAPPER
882 CXX
883 CXXFLAGS
884 ac_ct_CXX
885 CXXDEPMODE
886 am__fastdepCXX_TRUE
887 am__fastdepCXX_FALSE
888 CPP
889 LN_S
890 SED
891 GREP
892 EGREP
893 ECHO
894 AR
895 RANLIB
896 CXXCPP
897 F77
898 FFLAGS
899 ac_ct_F77
900 LIBTOOL
901 CC_FOR_BUILD
902 LD
903 LIBNSL
904 PKG_CONFIG
905 RPCSECGSS_CFLAGS
906 RPCSECGSS_LIBS
907 GSSAPI_CFLAGS
908 GSSAPI_LIBS
909 LIBSOCKET
910 LIBCRYPT
911 LIBBSD
912 LIBBLKID
913 KRBDIR
914 KRBLIBS
915 KRBCFLAGS
916 KRBLDFLAGS
917 K5VERS
918 ALLOCA
919 LIB@&t@OBJS
920 CFLAGS_FOR_BUILD
921 CXXFLAGS_FOR_BUILD
922 CPPFLAGS_FOR_BUILD
923 LDFLAGS_FOR_BUILD
924 AM_CPPFLAGS
925 AM_CFLAGS
926 ACLOCAL_AMFLAGS
927 LTLIBOBJS'
928 ac_subst_files=''
929       ac_precious_vars='build_alias
930 host_alias
931 target_alias
932 CC
933 CFLAGS
934 LDFLAGS
935 LIBS
936 CPPFLAGS
937 CXX
938 CXXFLAGS
939 CCC
940 CPP
941 CXXCPP
942 F77
943 FFLAGS
944 PKG_CONFIG
945 RPCSECGSS_CFLAGS
946 RPCSECGSS_LIBS
947 GSSAPI_CFLAGS
948 GSSAPI_LIBS'
949
950
951 # Initialize some variables set by options.
952 ac_init_help=
953 ac_init_version=false
954 # The variables have the same names as the options, with
955 # dashes changed to underlines.
956 cache_file=/dev/null
957 exec_prefix=NONE
958 no_create=
959 no_recursion=
960 prefix=NONE
961 program_prefix=NONE
962 program_suffix=NONE
963 program_transform_name=s,x,x,
964 silent=
965 site=
966 srcdir=
967 verbose=
968 x_includes=NONE
969 x_libraries=NONE
970
971 # Installation directory options.
972 # These are left unexpanded so users can "make install exec_prefix=/foo"
973 # and all the variables that are supposed to be based on exec_prefix
974 # by default will actually change.
975 # Use braces instead of parens because sh, perl, etc. also accept them.
976 # (The list follows the same order as the GNU Coding Standards.)
977 bindir='${exec_prefix}/bin'
978 sbindir='${exec_prefix}/sbin'
979 libexecdir='${exec_prefix}/libexec'
980 datarootdir='${prefix}/share'
981 datadir='${datarootdir}'
982 sysconfdir='${prefix}/etc'
983 sharedstatedir='${prefix}/com'
984 localstatedir='${prefix}/var'
985 includedir='${prefix}/include'
986 oldincludedir='/usr/include'
987 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
988 infodir='${datarootdir}/info'
989 htmldir='${docdir}'
990 dvidir='${docdir}'
991 pdfdir='${docdir}'
992 psdir='${docdir}'
993 libdir='${exec_prefix}/lib'
994 localedir='${datarootdir}/locale'
995 mandir='${datarootdir}/man'
996
997 ac_prev=
998 ac_dashdash=
999 for ac_option
1000 do
1001   # If the previous option needs an argument, assign it.
1002   if test -n "$ac_prev"; then
1003     eval $ac_prev=\$ac_option
1004     ac_prev=
1005     continue
1006   fi
1007
1008   case $ac_option in
1009   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1010   *)    ac_optarg=yes ;;
1011   esac
1012
1013   # Accept the important Cygnus configure options, so we can diagnose typos.
1014
1015   case $ac_dashdash$ac_option in
1016   --)
1017     ac_dashdash=yes ;;
1018
1019   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1020     ac_prev=bindir ;;
1021   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1022     bindir=$ac_optarg ;;
1023
1024   -build | --build | --buil | --bui | --bu)
1025     ac_prev=build_alias ;;
1026   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1027     build_alias=$ac_optarg ;;
1028
1029   -cache-file | --cache-file | --cache-fil | --cache-fi \
1030   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1031     ac_prev=cache_file ;;
1032   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1033   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1034     cache_file=$ac_optarg ;;
1035
1036   --config-cache | -C)
1037     cache_file=config.cache ;;
1038
1039   -datadir | --datadir | --datadi | --datad)
1040     ac_prev=datadir ;;
1041   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1042     datadir=$ac_optarg ;;
1043
1044   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1045   | --dataroo | --dataro | --datar)
1046     ac_prev=datarootdir ;;
1047   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1048   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1049     datarootdir=$ac_optarg ;;
1050
1051   -disable-* | --disable-*)
1052     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1053     # Reject names that are not valid shell variable names.
1054     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1055       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1056    { (exit 1); exit 1; }; }
1057     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1058     eval enable_$ac_feature=no ;;
1059
1060   -docdir | --docdir | --docdi | --doc | --do)
1061     ac_prev=docdir ;;
1062   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1063     docdir=$ac_optarg ;;
1064
1065   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1066     ac_prev=dvidir ;;
1067   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1068     dvidir=$ac_optarg ;;
1069
1070   -enable-* | --enable-*)
1071     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1072     # Reject names that are not valid shell variable names.
1073     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1074       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1075    { (exit 1); exit 1; }; }
1076     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1077     eval enable_$ac_feature=\$ac_optarg ;;
1078
1079   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1080   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1081   | --exec | --exe | --ex)
1082     ac_prev=exec_prefix ;;
1083   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1084   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1085   | --exec=* | --exe=* | --ex=*)
1086     exec_prefix=$ac_optarg ;;
1087
1088   -gas | --gas | --ga | --g)
1089     # Obsolete; use --with-gas.
1090     with_gas=yes ;;
1091
1092   -help | --help | --hel | --he | -h)
1093     ac_init_help=long ;;
1094   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1095     ac_init_help=recursive ;;
1096   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1097     ac_init_help=short ;;
1098
1099   -host | --host | --hos | --ho)
1100     ac_prev=host_alias ;;
1101   -host=* | --host=* | --hos=* | --ho=*)
1102     host_alias=$ac_optarg ;;
1103
1104   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1105     ac_prev=htmldir ;;
1106   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1107   | --ht=*)
1108     htmldir=$ac_optarg ;;
1109
1110   -includedir | --includedir | --includedi | --included | --include \
1111   | --includ | --inclu | --incl | --inc)
1112     ac_prev=includedir ;;
1113   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1114   | --includ=* | --inclu=* | --incl=* | --inc=*)
1115     includedir=$ac_optarg ;;
1116
1117   -infodir | --infodir | --infodi | --infod | --info | --inf)
1118     ac_prev=infodir ;;
1119   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1120     infodir=$ac_optarg ;;
1121
1122   -libdir | --libdir | --libdi | --libd)
1123     ac_prev=libdir ;;
1124   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1125     libdir=$ac_optarg ;;
1126
1127   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1128   | --libexe | --libex | --libe)
1129     ac_prev=libexecdir ;;
1130   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1131   | --libexe=* | --libex=* | --libe=*)
1132     libexecdir=$ac_optarg ;;
1133
1134   -localedir | --localedir | --localedi | --localed | --locale)
1135     ac_prev=localedir ;;
1136   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1137     localedir=$ac_optarg ;;
1138
1139   -localstatedir | --localstatedir | --localstatedi | --localstated \
1140   | --localstate | --localstat | --localsta | --localst | --locals)
1141     ac_prev=localstatedir ;;
1142   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1143   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1144     localstatedir=$ac_optarg ;;
1145
1146   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1147     ac_prev=mandir ;;
1148   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1149     mandir=$ac_optarg ;;
1150
1151   -nfp | --nfp | --nf)
1152     # Obsolete; use --without-fp.
1153     with_fp=no ;;
1154
1155   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1156   | --no-cr | --no-c | -n)
1157     no_create=yes ;;
1158
1159   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1160   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1161     no_recursion=yes ;;
1162
1163   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1164   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1165   | --oldin | --oldi | --old | --ol | --o)
1166     ac_prev=oldincludedir ;;
1167   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1168   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1169   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1170     oldincludedir=$ac_optarg ;;
1171
1172   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1173     ac_prev=prefix ;;
1174   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1175     prefix=$ac_optarg ;;
1176
1177   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1178   | --program-pre | --program-pr | --program-p)
1179     ac_prev=program_prefix ;;
1180   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1181   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1182     program_prefix=$ac_optarg ;;
1183
1184   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1185   | --program-suf | --program-su | --program-s)
1186     ac_prev=program_suffix ;;
1187   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1188   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1189     program_suffix=$ac_optarg ;;
1190
1191   -program-transform-name | --program-transform-name \
1192   | --program-transform-nam | --program-transform-na \
1193   | --program-transform-n | --program-transform- \
1194   | --program-transform | --program-transfor \
1195   | --program-transfo | --program-transf \
1196   | --program-trans | --program-tran \
1197   | --progr-tra | --program-tr | --program-t)
1198     ac_prev=program_transform_name ;;
1199   -program-transform-name=* | --program-transform-name=* \
1200   | --program-transform-nam=* | --program-transform-na=* \
1201   | --program-transform-n=* | --program-transform-=* \
1202   | --program-transform=* | --program-transfor=* \
1203   | --program-transfo=* | --program-transf=* \
1204   | --program-trans=* | --program-tran=* \
1205   | --progr-tra=* | --program-tr=* | --program-t=*)
1206     program_transform_name=$ac_optarg ;;
1207
1208   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1209     ac_prev=pdfdir ;;
1210   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1211     pdfdir=$ac_optarg ;;
1212
1213   -psdir | --psdir | --psdi | --psd | --ps)
1214     ac_prev=psdir ;;
1215   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1216     psdir=$ac_optarg ;;
1217
1218   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1219   | -silent | --silent | --silen | --sile | --sil)
1220     silent=yes ;;
1221
1222   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1223     ac_prev=sbindir ;;
1224   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1225   | --sbi=* | --sb=*)
1226     sbindir=$ac_optarg ;;
1227
1228   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1229   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1230   | --sharedst | --shareds | --shared | --share | --shar \
1231   | --sha | --sh)
1232     ac_prev=sharedstatedir ;;
1233   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1234   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1235   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1236   | --sha=* | --sh=*)
1237     sharedstatedir=$ac_optarg ;;
1238
1239   -site | --site | --sit)
1240     ac_prev=site ;;
1241   -site=* | --site=* | --sit=*)
1242     site=$ac_optarg ;;
1243
1244   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1245     ac_prev=srcdir ;;
1246   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1247     srcdir=$ac_optarg ;;
1248
1249   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1250   | --syscon | --sysco | --sysc | --sys | --sy)
1251     ac_prev=sysconfdir ;;
1252   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1253   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1254     sysconfdir=$ac_optarg ;;
1255
1256   -target | --target | --targe | --targ | --tar | --ta | --t)
1257     ac_prev=target_alias ;;
1258   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1259     target_alias=$ac_optarg ;;
1260
1261   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1262     verbose=yes ;;
1263
1264   -version | --version | --versio | --versi | --vers | -V)
1265     ac_init_version=: ;;
1266
1267   -with-* | --with-*)
1268     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1269     # Reject names that are not valid shell variable names.
1270     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1271       { echo "$as_me: error: invalid package name: $ac_package" >&2
1272    { (exit 1); exit 1; }; }
1273     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1274     eval with_$ac_package=\$ac_optarg ;;
1275
1276   -without-* | --without-*)
1277     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1278     # Reject names that are not valid shell variable names.
1279     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1280       { echo "$as_me: error: invalid package name: $ac_package" >&2
1281    { (exit 1); exit 1; }; }
1282     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1283     eval with_$ac_package=no ;;
1284
1285   --x)
1286     # Obsolete; use --with-x.
1287     with_x=yes ;;
1288
1289   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1290   | --x-incl | --x-inc | --x-in | --x-i)
1291     ac_prev=x_includes ;;
1292   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1293   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1294     x_includes=$ac_optarg ;;
1295
1296   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1297   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1298     ac_prev=x_libraries ;;
1299   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1300   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1301     x_libraries=$ac_optarg ;;
1302
1303   -*) { echo "$as_me: error: unrecognized option: $ac_option
1304 Try \`$0 --help' for more information." >&2
1305    { (exit 1); exit 1; }; }
1306     ;;
1307
1308   *=*)
1309     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1310     # Reject names that are not valid shell variable names.
1311     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1312       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1313    { (exit 1); exit 1; }; }
1314     eval $ac_envvar=\$ac_optarg
1315     export $ac_envvar ;;
1316
1317   *)
1318     # FIXME: should be removed in autoconf 3.0.
1319     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1320     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1321       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1322     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1323     ;;
1324
1325   esac
1326 done
1327
1328 if test -n "$ac_prev"; then
1329   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1330   { echo "$as_me: error: missing argument to $ac_option" >&2
1331    { (exit 1); exit 1; }; }
1332 fi
1333
1334 # Be sure to have absolute directory names.
1335 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1336                 datadir sysconfdir sharedstatedir localstatedir includedir \
1337                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1338                 libdir localedir mandir
1339 do
1340   eval ac_val=\$$ac_var
1341   case $ac_val in
1342     [\\/$]* | ?:[\\/]* )  continue;;
1343     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1344   esac
1345   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1346    { (exit 1); exit 1; }; }
1347 done
1348
1349 # There might be people who depend on the old broken behavior: `$host'
1350 # used to hold the argument of --host etc.
1351 # FIXME: To remove some day.
1352 build=$build_alias
1353 host=$host_alias
1354 target=$target_alias
1355
1356 # FIXME: To remove some day.
1357 if test "x$host_alias" != x; then
1358   if test "x$build_alias" = x; then
1359     cross_compiling=maybe
1360     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1361     If a cross compiler is detected then cross compile mode will be used." >&2
1362   elif test "x$build_alias" != "x$host_alias"; then
1363     cross_compiling=yes
1364   fi
1365 fi
1366
1367 ac_tool_prefix=
1368 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1369
1370 test "$silent" = yes && exec 6>/dev/null
1371
1372
1373 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1374 ac_ls_di=`ls -di .` &&
1375 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1376   { echo "$as_me: error: Working directory cannot be determined" >&2
1377    { (exit 1); exit 1; }; }
1378 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1379   { echo "$as_me: error: pwd does not report name of working directory" >&2
1380    { (exit 1); exit 1; }; }
1381
1382
1383 # Find the source files, if location was not specified.
1384 if test -z "$srcdir"; then
1385   ac_srcdir_defaulted=yes
1386   # Try the directory containing this script, then the parent directory.
1387   ac_confdir=`$as_dirname -- "$0" ||
1388 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1389          X"$0" : 'X\(//\)[^/]' \| \
1390          X"$0" : 'X\(//\)$' \| \
1391          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1392 echo X"$0" |
1393     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1394             s//\1/
1395             q
1396           }
1397           /^X\(\/\/\)[^/].*/{
1398             s//\1/
1399             q
1400           }
1401           /^X\(\/\/\)$/{
1402             s//\1/
1403             q
1404           }
1405           /^X\(\/\).*/{
1406             s//\1/
1407             q
1408           }
1409           s/.*/./; q'`
1410   srcdir=$ac_confdir
1411   if test ! -r "$srcdir/$ac_unique_file"; then
1412     srcdir=..
1413   fi
1414 else
1415   ac_srcdir_defaulted=no
1416 fi
1417 if test ! -r "$srcdir/$ac_unique_file"; then
1418   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1419   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1420    { (exit 1); exit 1; }; }
1421 fi
1422 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1423 ac_abs_confdir=`(
1424         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1425    { (exit 1); exit 1; }; }
1426         pwd)`
1427 # When building in place, set srcdir=.
1428 if test "$ac_abs_confdir" = "$ac_pwd"; then
1429   srcdir=.
1430 fi
1431 # Remove unnecessary trailing slashes from srcdir.
1432 # Double slashes in file names in object file debugging info
1433 # mess up M-x gdb in Emacs.
1434 case $srcdir in
1435 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1436 esac
1437 for ac_var in $ac_precious_vars; do
1438   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1439   eval ac_env_${ac_var}_value=\$${ac_var}
1440   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1441   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1442 done
1443
1444 #
1445 # Report the --help message.
1446 #
1447 if test "$ac_init_help" = "long"; then
1448   # Omit some internal or obsolete options to make the list less imposing.
1449   # This message is too long to be a string in the A/UX 3.1 sh.
1450   cat <<_ACEOF
1451 \`configure' configures linux nfs-utils 1.1.0 to adapt to many kinds of systems.
1452
1453 Usage: $0 [OPTION]... [VAR=VALUE]...
1454
1455 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1456 VAR=VALUE.  See below for descriptions of some of the useful variables.
1457
1458 Defaults for the options are specified in brackets.
1459
1460 Configuration:
1461   -h, --help              display this help and exit
1462       --help=short        display options specific to this package
1463       --help=recursive    display the short help of all the included packages
1464   -V, --version           display version information and exit
1465   -q, --quiet, --silent   do not print \`checking...' messages
1466       --cache-file=FILE   cache test results in FILE [disabled]
1467   -C, --config-cache      alias for \`--cache-file=config.cache'
1468   -n, --no-create         do not create output files
1469       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1470
1471 Installation directories:
1472   --prefix=PREFIX         install architecture-independent files in PREFIX
1473                           [$ac_default_prefix]
1474   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1475                           [PREFIX]
1476
1477 By default, \`make install' will install all the files in
1478 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1479 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1480 for instance \`--prefix=\$HOME'.
1481
1482 For better control, use the options below.
1483
1484 Fine tuning of the installation directories:
1485   --bindir=DIR           user executables [EPREFIX/bin]
1486   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1487   --libexecdir=DIR       program executables [EPREFIX/libexec]
1488   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1489   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1490   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1491   --libdir=DIR           object code libraries [EPREFIX/lib]
1492   --includedir=DIR       C header files [PREFIX/include]
1493   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1494   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1495   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1496   --infodir=DIR          info documentation [DATAROOTDIR/info]
1497   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1498   --mandir=DIR           man documentation [DATAROOTDIR/man]
1499   --docdir=DIR           documentation root @<:@DATAROOTDIR/doc/nfs-utils@:>@
1500   --htmldir=DIR          html documentation [DOCDIR]
1501   --dvidir=DIR           dvi documentation [DOCDIR]
1502   --pdfdir=DIR           pdf documentation [DOCDIR]
1503   --psdir=DIR            ps documentation [DOCDIR]
1504 _ACEOF
1505
1506   cat <<\_ACEOF
1507
1508 Program names:
1509   --program-prefix=PREFIX            prepend PREFIX to installed program names
1510   --program-suffix=SUFFIX            append SUFFIX to installed program names
1511   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1512
1513 System types:
1514   --build=BUILD     configure for building on BUILD [guessed]
1515   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1516 _ACEOF
1517 fi
1518
1519 if test -n "$ac_init_help"; then
1520   case $ac_init_help in
1521      short | recursive ) echo "Configuration of linux nfs-utils 1.1.0:";;
1522    esac
1523   cat <<\_ACEOF
1524
1525 Optional Features:
1526   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1527   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1528   --enable-maintainer-mode  enable make rules and dependencies not useful
1529                           (and sometimes confusing) to the casual installer
1530   --enable-nfsv3          enable support for NFSv3 @<:@default=yes@:>@
1531   --enable-nfsv4          enable support for NFSv4 @<:@default=yes@:>@
1532   --enable-gss            enable support for rpcsec_gss @<:@default=yes@:>@
1533   --enable-kprefix        install progs as rpc.knfsd etc
1534   --enable-secure-statd   Only lockd can use statd (security)
1535   --without-uuid          Exclude uuid support and so avoid possibly buggy
1536                           libblkid
1537   --enable-mount          Create mount.nfs and don't use the util-linux
1538                           mount(8) functionality. @<:@default=yes@:>@
1539   --disable-dependency-tracking  speeds up one-time build
1540   --enable-dependency-tracking   do not reject slow dependency extractors
1541   --disable-largefile     omit support for large files
1542   --enable-shared@<:@=PKGS@:>@  build shared libraries @<:@default=yes@:>@
1543   --enable-static@<:@=PKGS@:>@  build static libraries @<:@default=yes@:>@
1544   --enable-fast-install@<:@=PKGS@:>@ 
1545                           optimize for fast installation @<:@default=yes@:>@
1546   --disable-libtool-lock  avoid locking (might break parallel builds)
1547
1548 Optional Packages:
1549   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1550   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1551   --with-release=XXX      set release to XXX [1]
1552   --with-statedir=/foo    use state dir /foo /var/lib/nfs
1553   --with-statduser=rpcuser 
1554                           statd to run under @<:@rpcuser or nobody@:>@
1555   --with-start-statd=scriptname 
1556                           When an nfs filesystems is mounted with locking, run
1557                           this script
1558   --with-rpcgen=internal  use internal rpcgen instead of system one
1559   --with-tcp-wrappers[=PATH]      Enable tcpwrappers support
1560                  (optionally in PATH)
1561   --with-gnu-ld           assume the C compiler uses GNU ld @<:@default=no@:>@
1562   --with-pic              try to use only PIC/non-PIC objects @<:@default=use
1563                           both@:>@
1564   --with-tags@<:@=TAGS@:>@      include additional configurations @<:@automatic@:>@
1565   --with-krb5=DIR         use Kerberos v5 installation in DIR
1566
1567 Some influential environment variables:
1568   CC          C compiler command
1569   CFLAGS      C compiler flags
1570   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1571               nonstandard directory <lib dir>
1572   LIBS        libraries to pass to the linker, e.g. -l<library>
1573   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1574               you have headers in a nonstandard directory <include dir>
1575   CXX         C++ compiler command
1576   CXXFLAGS    C++ compiler flags
1577   CPP         C preprocessor
1578   CXXCPP      C++ preprocessor
1579   F77         Fortran 77 compiler command
1580   FFLAGS      Fortran 77 compiler flags
1581   PKG_CONFIG  path to pkg-config utility
1582   RPCSECGSS_CFLAGS 
1583               C compiler flags for RPCSECGSS, overriding pkg-config
1584   RPCSECGSS_LIBS 
1585               linker flags for RPCSECGSS, overriding pkg-config
1586   GSSAPI_CFLAGS 
1587               C compiler flags for GSSAPI, overriding pkg-config
1588   GSSAPI_LIBS linker flags for GSSAPI, overriding pkg-config
1589
1590 Use these variables to override the choices made by `configure' or to help
1591 it to find libraries and programs with nonstandard names/locations.
1592
1593 Report bugs to <nfs@lists.sf.net>.
1594 _ACEOF
1595 ac_status=$?
1596 fi
1597
1598 if test "$ac_init_help" = "recursive"; then
1599   # If there are subdirs, report their specific --help.
1600   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1601     test -d "$ac_dir" || continue
1602     ac_builddir=.
1603
1604 case "$ac_dir" in
1605 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1606 *)
1607   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1608   # A ".." for each directory in $ac_dir_suffix.
1609   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1610   case $ac_top_builddir_sub in
1611   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1612   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1613   esac ;;
1614 esac
1615 ac_abs_top_builddir=$ac_pwd
1616 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1617 # for backward compatibility:
1618 ac_top_builddir=$ac_top_build_prefix
1619
1620 case $srcdir in
1621   .)  # We are building in place.
1622     ac_srcdir=.
1623     ac_top_srcdir=$ac_top_builddir_sub
1624     ac_abs_top_srcdir=$ac_pwd ;;
1625   [\\/]* | ?:[\\/]* )  # Absolute name.
1626     ac_srcdir=$srcdir$ac_dir_suffix;
1627     ac_top_srcdir=$srcdir
1628     ac_abs_top_srcdir=$srcdir ;;
1629   *) # Relative name.
1630     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1631     ac_top_srcdir=$ac_top_build_prefix$srcdir
1632     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1633 esac
1634 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1635
1636     cd "$ac_dir" || { ac_status=$?; continue; }
1637     # Check for guested configure.
1638     if test -f "$ac_srcdir/configure.gnu"; then
1639       echo &&
1640       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1641     elif test -f "$ac_srcdir/configure"; then
1642       echo &&
1643       $SHELL "$ac_srcdir/configure" --help=recursive
1644     else
1645       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1646     fi || ac_status=$?
1647     cd "$ac_pwd" || { ac_status=$?; break; }
1648   done
1649 fi
1650
1651 test -n "$ac_init_help" && exit $ac_status
1652 if $ac_init_version; then
1653   cat <<\_ACEOF
1654 linux nfs-utils configure 1.1.0
1655 generated by GNU Autoconf 2.61
1656
1657 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1658 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1659 This configure script is free software; the Free Software Foundation
1660 gives unlimited permission to copy, distribute and modify it.
1661 _ACEOF
1662   exit
1663 fi
1664 cat >config.log <<_ACEOF
1665 This file contains any messages produced by compilers while
1666 running configure, to aid debugging if configure makes a mistake.
1667
1668 It was created by linux nfs-utils $as_me 1.1.0, which was
1669 generated by GNU Autoconf 2.61.  Invocation command line was
1670
1671   $ $0 $@
1672
1673 _ACEOF
1674 exec 5>>config.log
1675 {
1676 cat <<_ASUNAME
1677 @%:@@%:@ --------- @%:@@%:@
1678 @%:@@%:@ Platform. @%:@@%:@
1679 @%:@@%:@ --------- @%:@@%:@
1680
1681 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1682 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1683 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1684 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1685 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1686
1687 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1688 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1689
1690 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1691 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1692 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1693 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1694 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1695 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1696 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1697
1698 _ASUNAME
1699
1700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1701 for as_dir in $PATH
1702 do
1703   IFS=$as_save_IFS
1704   test -z "$as_dir" && as_dir=.
1705   echo "PATH: $as_dir"
1706 done
1707 IFS=$as_save_IFS
1708
1709 } >&5
1710
1711 cat >&5 <<_ACEOF
1712
1713
1714 @%:@@%:@ ----------- @%:@@%:@
1715 @%:@@%:@ Core tests. @%:@@%:@
1716 @%:@@%:@ ----------- @%:@@%:@
1717
1718 _ACEOF
1719
1720
1721 # Keep a trace of the command line.
1722 # Strip out --no-create and --no-recursion so they do not pile up.
1723 # Strip out --silent because we don't want to record it for future runs.
1724 # Also quote any args containing shell meta-characters.
1725 # Make two passes to allow for proper duplicate-argument suppression.
1726 ac_configure_args=
1727 ac_configure_args0=
1728 ac_configure_args1=
1729 ac_must_keep_next=false
1730 for ac_pass in 1 2
1731 do
1732   for ac_arg
1733   do
1734     case $ac_arg in
1735     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1736     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1737     | -silent | --silent | --silen | --sile | --sil)
1738       continue ;;
1739     *\'*)
1740       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1741     esac
1742     case $ac_pass in
1743     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1744     2)
1745       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1746       if test $ac_must_keep_next = true; then
1747         ac_must_keep_next=false # Got value, back to normal.
1748       else
1749         case $ac_arg in
1750           *=* | --config-cache | -C | -disable-* | --disable-* \
1751           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1752           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1753           | -with-* | --with-* | -without-* | --without-* | --x)
1754             case "$ac_configure_args0 " in
1755               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1756             esac
1757             ;;
1758           -* ) ac_must_keep_next=true ;;
1759         esac
1760       fi
1761       ac_configure_args="$ac_configure_args '$ac_arg'"
1762       ;;
1763     esac
1764   done
1765 done
1766 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1767 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1768
1769 # When interrupted or exit'd, cleanup temporary files, and complete
1770 # config.log.  We remove comments because anyway the quotes in there
1771 # would cause problems or look ugly.
1772 # WARNING: Use '\'' to represent an apostrophe within the trap.
1773 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1774 trap 'exit_status=$?
1775   # Save into config.log some information that might help in debugging.
1776   {
1777     echo
1778
1779     cat <<\_ASBOX
1780 @%:@@%:@ ---------------- @%:@@%:@
1781 @%:@@%:@ Cache variables. @%:@@%:@
1782 @%:@@%:@ ---------------- @%:@@%:@
1783 _ASBOX
1784     echo
1785     # The following way of writing the cache mishandles newlines in values,
1786 (
1787   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1788     eval ac_val=\$$ac_var
1789     case $ac_val in #(
1790     *${as_nl}*)
1791       case $ac_var in #(
1792       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1793 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1794       esac
1795       case $ac_var in #(
1796       _ | IFS | as_nl) ;; #(
1797       *) $as_unset $ac_var ;;
1798       esac ;;
1799     esac
1800   done
1801   (set) 2>&1 |
1802     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1803     *${as_nl}ac_space=\ *)
1804       sed -n \
1805         "s/'\''/'\''\\\\'\'''\''/g;
1806           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1807       ;; #(
1808     *)
1809       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1810       ;;
1811     esac |
1812     sort
1813 )
1814     echo
1815
1816     cat <<\_ASBOX
1817 @%:@@%:@ ----------------- @%:@@%:@
1818 @%:@@%:@ Output variables. @%:@@%:@
1819 @%:@@%:@ ----------------- @%:@@%:@
1820 _ASBOX
1821     echo
1822     for ac_var in $ac_subst_vars
1823     do
1824       eval ac_val=\$$ac_var
1825       case $ac_val in
1826       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1827       esac
1828       echo "$ac_var='\''$ac_val'\''"
1829     done | sort
1830     echo
1831
1832     if test -n "$ac_subst_files"; then
1833       cat <<\_ASBOX
1834 @%:@@%:@ ------------------- @%:@@%:@
1835 @%:@@%:@ File substitutions. @%:@@%:@
1836 @%:@@%:@ ------------------- @%:@@%:@
1837 _ASBOX
1838       echo
1839       for ac_var in $ac_subst_files
1840       do
1841         eval ac_val=\$$ac_var
1842         case $ac_val in
1843         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1844         esac
1845         echo "$ac_var='\''$ac_val'\''"
1846       done | sort
1847       echo
1848     fi
1849
1850     if test -s confdefs.h; then
1851       cat <<\_ASBOX
1852 @%:@@%:@ ----------- @%:@@%:@
1853 @%:@@%:@ confdefs.h. @%:@@%:@
1854 @%:@@%:@ ----------- @%:@@%:@
1855 _ASBOX
1856       echo
1857       cat confdefs.h
1858       echo
1859     fi
1860     test "$ac_signal" != 0 &&
1861       echo "$as_me: caught signal $ac_signal"
1862     echo "$as_me: exit $exit_status"
1863   } >&5
1864   rm -f core *.core core.conftest.* &&
1865     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1866     exit $exit_status
1867 ' 0
1868 for ac_signal in 1 2 13 15; do
1869   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1870 done
1871 ac_signal=0
1872
1873 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1874 rm -f -r conftest* confdefs.h
1875
1876 # Predefined preprocessor variables.
1877
1878 cat >>confdefs.h <<_ACEOF
1879 @%:@define PACKAGE_NAME "$PACKAGE_NAME"
1880 _ACEOF
1881
1882
1883 cat >>confdefs.h <<_ACEOF
1884 @%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1885 _ACEOF
1886
1887
1888 cat >>confdefs.h <<_ACEOF
1889 @%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
1890 _ACEOF
1891
1892
1893 cat >>confdefs.h <<_ACEOF
1894 @%:@define PACKAGE_STRING "$PACKAGE_STRING"
1895 _ACEOF
1896
1897
1898 cat >>confdefs.h <<_ACEOF
1899 @%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1900 _ACEOF
1901
1902
1903 # Let the site file select an alternate cache file if it wants to.
1904 # Prefer explicitly selected file to automatically selected ones.
1905 if test -n "$CONFIG_SITE"; then
1906   set x "$CONFIG_SITE"
1907 elif test "x$prefix" != xNONE; then
1908   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1909 else
1910   set x "$ac_default_prefix/share/config.site" \
1911         "$ac_default_prefix/etc/config.site"
1912 fi
1913 shift
1914 for ac_site_file
1915 do
1916   if test -r "$ac_site_file"; then
1917     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1918 echo "$as_me: loading site script $ac_site_file" >&6;}
1919     sed 's/^/| /' "$ac_site_file" >&5
1920     . "$ac_site_file"
1921   fi
1922 done
1923
1924 if test -r "$cache_file"; then
1925   # Some versions of bash will fail to source /dev/null (special
1926   # files actually), so we avoid doing that.
1927   if test -f "$cache_file"; then
1928     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1929 echo "$as_me: loading cache $cache_file" >&6;}
1930     case $cache_file in
1931       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1932       *)                      . "./$cache_file";;
1933     esac
1934   fi
1935 else
1936   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1937 echo "$as_me: creating cache $cache_file" >&6;}
1938   >$cache_file
1939 fi
1940
1941 # Check that the precious variables saved in the cache have kept the same
1942 # value.
1943 ac_cache_corrupted=false
1944 for ac_var in $ac_precious_vars; do
1945   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1946   eval ac_new_set=\$ac_env_${ac_var}_set
1947   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1948   eval ac_new_val=\$ac_env_${ac_var}_value
1949   case $ac_old_set,$ac_new_set in
1950     set,)
1951       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1952 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1953       ac_cache_corrupted=: ;;
1954     ,set)
1955       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1956 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1957       ac_cache_corrupted=: ;;
1958     ,);;
1959     *)
1960       if test "x$ac_old_val" != "x$ac_new_val"; then
1961         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1962 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1963         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1964 echo "$as_me:   former value:  $ac_old_val" >&2;}
1965         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1966 echo "$as_me:   current value: $ac_new_val" >&2;}
1967         ac_cache_corrupted=:
1968       fi;;
1969   esac
1970   # Pass precious variables to config.status.
1971   if test "$ac_new_set" = set; then
1972     case $ac_new_val in
1973     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1974     *) ac_arg=$ac_var=$ac_new_val ;;
1975     esac
1976     case " $ac_configure_args " in
1977       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1978       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1979     esac
1980   fi
1981 done
1982 if $ac_cache_corrupted; then
1983   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1984 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1985   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1986 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1987    { (exit 1); exit 1; }; }
1988 fi
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014 ac_ext=c
2015 ac_cpp='$CPP $CPPFLAGS'
2016 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2017 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2018 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2019
2020
2021 ac_aux_dir=
2022 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2023   if test -f "$ac_dir/install-sh"; then
2024     ac_aux_dir=$ac_dir
2025     ac_install_sh="$ac_aux_dir/install-sh -c"
2026     break
2027   elif test -f "$ac_dir/install.sh"; then
2028     ac_aux_dir=$ac_dir
2029     ac_install_sh="$ac_aux_dir/install.sh -c"
2030     break
2031   elif test -f "$ac_dir/shtool"; then
2032     ac_aux_dir=$ac_dir
2033     ac_install_sh="$ac_aux_dir/shtool install -c"
2034     break
2035   fi
2036 done
2037 if test -z "$ac_aux_dir"; then
2038   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2039 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2040    { (exit 1); exit 1; }; }
2041 fi
2042
2043 # These three variables are undocumented and unsupported,
2044 # and are intended to be withdrawn in a future Autoconf release.
2045 # They can cause serious problems if a builder's source tree is in a directory
2046 # whose full name contains unusual characters.
2047 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2048 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2049 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2050
2051
2052 # Make sure we can run config.sub.
2053 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2054   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2055 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2056    { (exit 1); exit 1; }; }
2057
2058 { echo "$as_me:$LINENO: checking build system type" >&5
2059 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2060 if test "${ac_cv_build+set}" = set; then
2061   echo $ECHO_N "(cached) $ECHO_C" >&6
2062 else
2063   ac_build_alias=$build_alias
2064 test "x$ac_build_alias" = x &&
2065   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2066 test "x$ac_build_alias" = x &&
2067   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2068 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2069    { (exit 1); exit 1; }; }
2070 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2071   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2072 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2073    { (exit 1); exit 1; }; }
2074
2075 fi
2076 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2077 echo "${ECHO_T}$ac_cv_build" >&6; }
2078 case $ac_cv_build in
2079 *-*-*) ;;
2080 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2081 echo "$as_me: error: invalid value of canonical build" >&2;}
2082    { (exit 1); exit 1; }; };;
2083 esac
2084 build=$ac_cv_build
2085 ac_save_IFS=$IFS; IFS='-'
2086 set x $ac_cv_build
2087 shift
2088 build_cpu=$1
2089 build_vendor=$2
2090 shift; shift
2091 # Remember, the first character of IFS is used to create $*,
2092 # except with old shells:
2093 build_os=$*
2094 IFS=$ac_save_IFS
2095 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2096
2097
2098 { echo "$as_me:$LINENO: checking host system type" >&5
2099 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2100 if test "${ac_cv_host+set}" = set; then
2101   echo $ECHO_N "(cached) $ECHO_C" >&6
2102 else
2103   if test "x$host_alias" = x; then
2104   ac_cv_host=$ac_cv_build
2105 else
2106   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2107     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2108 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2109    { (exit 1); exit 1; }; }
2110 fi
2111
2112 fi
2113 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2114 echo "${ECHO_T}$ac_cv_host" >&6; }
2115 case $ac_cv_host in
2116 *-*-*) ;;
2117 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2118 echo "$as_me: error: invalid value of canonical host" >&2;}
2119    { (exit 1); exit 1; }; };;
2120 esac
2121 host=$ac_cv_host
2122 ac_save_IFS=$IFS; IFS='-'
2123 set x $ac_cv_host
2124 shift
2125 host_cpu=$1
2126 host_vendor=$2
2127 shift; shift
2128 # Remember, the first character of IFS is used to create $*,
2129 # except with old shells:
2130 host_os=$*
2131 IFS=$ac_save_IFS
2132 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2133
2134
2135
2136 am__api_version="1.9"
2137 # Find a good install program.  We prefer a C program (faster),
2138 # so one script is as good as another.  But avoid the broken or
2139 # incompatible versions:
2140 # SysV /etc/install, /usr/sbin/install
2141 # SunOS /usr/etc/install
2142 # IRIX /sbin/install
2143 # AIX /bin/install
2144 # AmigaOS /C/install, which installs bootblocks on floppy discs
2145 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2146 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2147 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2148 # OS/2's system install, which has a completely different semantic
2149 # ./install, which can be erroneously created by make from ./install.sh.
2150 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2151 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2152 if test -z "$INSTALL"; then
2153 if test "${ac_cv_path_install+set}" = set; then
2154   echo $ECHO_N "(cached) $ECHO_C" >&6
2155 else
2156   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2157 for as_dir in $PATH
2158 do
2159   IFS=$as_save_IFS
2160   test -z "$as_dir" && as_dir=.
2161   # Account for people who put trailing slashes in PATH elements.
2162 case $as_dir/ in
2163   ./ | .// | /cC/* | \
2164   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2165   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2166   /usr/ucb/* ) ;;
2167   *)
2168     # OSF1 and SCO ODT 3.0 have their own names for install.
2169     # Don't use installbsd from OSF since it installs stuff as root
2170     # by default.
2171     for ac_prog in ginstall scoinst install; do
2172       for ac_exec_ext in '' $ac_executable_extensions; do
2173         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2174           if test $ac_prog = install &&
2175             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2176             # AIX install.  It has an incompatible calling convention.
2177             :
2178           elif test $ac_prog = install &&
2179             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2180             # program-specific install script used by HP pwplus--don't use.
2181             :
2182           else
2183             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2184             break 3
2185           fi
2186         fi
2187       done
2188     done
2189     ;;
2190 esac
2191 done
2192 IFS=$as_save_IFS
2193
2194
2195 fi
2196   if test "${ac_cv_path_install+set}" = set; then
2197     INSTALL=$ac_cv_path_install
2198   else
2199     # As a last resort, use the slow shell script.  Don't cache a
2200     # value for INSTALL within a source directory, because that will
2201     # break other packages using the cache if that directory is
2202     # removed, or if the value is a relative name.
2203     INSTALL=$ac_install_sh
2204   fi
2205 fi
2206 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2207 echo "${ECHO_T}$INSTALL" >&6; }
2208
2209 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2210 # It thinks the first close brace ends the variable substitution.
2211 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2212
2213 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2214
2215 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2216
2217 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2218 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2219 # Just in case
2220 sleep 1
2221 echo timestamp > conftest.file
2222 # Do `set' in a subshell so we don't clobber the current shell's
2223 # arguments.  Must try -L first in case configure is actually a
2224 # symlink; some systems play weird games with the mod time of symlinks
2225 # (eg FreeBSD returns the mod time of the symlink's containing
2226 # directory).
2227 if (
2228    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2229    if test "$*" = "X"; then
2230       # -L didn't work.
2231       set X `ls -t $srcdir/configure conftest.file`
2232    fi
2233    rm -f conftest.file
2234    if test "$*" != "X $srcdir/configure conftest.file" \
2235       && test "$*" != "X conftest.file $srcdir/configure"; then
2236
2237       # If neither matched, then we have a broken ls.  This can happen
2238       # if, for instance, CONFIG_SHELL is bash and it inherits a
2239       # broken ls alias from the environment.  This has actually
2240       # happened.  Such a system could not be considered "sane".
2241       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2242 alias in your environment" >&5
2243 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2244 alias in your environment" >&2;}
2245    { (exit 1); exit 1; }; }
2246    fi
2247
2248    test "$2" = conftest.file
2249    )
2250 then
2251    # Ok.
2252    :
2253 else
2254    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2255 Check your system clock" >&5
2256 echo "$as_me: error: newly created file is older than distributed files!
2257 Check your system clock" >&2;}
2258    { (exit 1); exit 1; }; }
2259 fi
2260 { echo "$as_me:$LINENO: result: yes" >&5
2261 echo "${ECHO_T}yes" >&6; }
2262 test "$program_prefix" != NONE &&
2263   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2264 # Use a double $ so make ignores it.
2265 test "$program_suffix" != NONE &&
2266   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2267 # Double any \ or $.  echo might interpret backslashes.
2268 # By default was `s,x,x', remove it if useless.
2269 cat <<\_ACEOF >conftest.sed
2270 s/[\\$]/&&/g;s/;s,x,x,$//
2271 _ACEOF
2272 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2273 rm -f conftest.sed
2274
2275 # expand $ac_aux_dir to an absolute path
2276 am_aux_dir=`cd $ac_aux_dir && pwd`
2277
2278 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2279 # Use eval to expand $SHELL
2280 if eval "$MISSING --run true"; then
2281   am_missing_run="$MISSING --run "
2282 else
2283   am_missing_run=
2284   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2285 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2286 fi
2287
2288 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2289   # We used to keeping the `.' as first argument, in order to
2290   # allow $(mkdir_p) to be used without argument.  As in
2291   #   $(mkdir_p) $(somedir)
2292   # where $(somedir) is conditionally defined.  However this is wrong
2293   # for two reasons:
2294   #  1. if the package is installed by a user who cannot write `.'
2295   #     make install will fail,
2296   #  2. the above comment should most certainly read
2297   #     $(mkdir_p) $(DESTDIR)$(somedir)
2298   #     so it does not work when $(somedir) is undefined and
2299   #     $(DESTDIR) is not.
2300   #  To support the latter case, we have to write
2301   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2302   #  so the `.' trick is pointless.
2303   mkdir_p='mkdir -p --'
2304 else
2305   # On NextStep and OpenStep, the `mkdir' command does not
2306   # recognize any option.  It will interpret all options as
2307   # directories to create, and then abort because `.' already
2308   # exists.
2309   for d in ./-p ./--version;
2310   do
2311     test -d $d && rmdir $d
2312   done
2313   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2314   if test -f "$ac_aux_dir/mkinstalldirs"; then
2315     mkdir_p='$(mkinstalldirs)'
2316   else
2317     mkdir_p='$(install_sh) -d'
2318   fi
2319 fi
2320
2321 for ac_prog in gawk mawk nawk awk
2322 do
2323   # Extract the first word of "$ac_prog", so it can be a program name with args.
2324 set dummy $ac_prog; ac_word=$2
2325 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2326 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2327 if test "${ac_cv_prog_AWK+set}" = set; then
2328   echo $ECHO_N "(cached) $ECHO_C" >&6
2329 else
2330   if test -n "$AWK"; then
2331   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2332 else
2333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2334 for as_dir in $PATH
2335 do
2336   IFS=$as_save_IFS
2337   test -z "$as_dir" && as_dir=.
2338   for ac_exec_ext in '' $ac_executable_extensions; do
2339   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2340     ac_cv_prog_AWK="$ac_prog"
2341     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2342     break 2
2343   fi
2344 done
2345 done
2346 IFS=$as_save_IFS
2347
2348 fi
2349 fi
2350 AWK=$ac_cv_prog_AWK
2351 if test -n "$AWK"; then
2352   { echo "$as_me:$LINENO: result: $AWK" >&5
2353 echo "${ECHO_T}$AWK" >&6; }
2354 else
2355   { echo "$as_me:$LINENO: result: no" >&5
2356 echo "${ECHO_T}no" >&6; }
2357 fi
2358
2359
2360   test -n "$AWK" && break
2361 done
2362
2363 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2364 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2365 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2366 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2367   echo $ECHO_N "(cached) $ECHO_C" >&6
2368 else
2369   cat >conftest.make <<\_ACEOF
2370 SHELL = /bin/sh
2371 all:
2372         @echo '@@@%%%=$(MAKE)=@@@%%%'
2373 _ACEOF
2374 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2375 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2376   *@@@%%%=?*=@@@%%%*)
2377     eval ac_cv_prog_make_${ac_make}_set=yes;;
2378   *)
2379     eval ac_cv_prog_make_${ac_make}_set=no;;
2380 esac
2381 rm -f conftest.make
2382 fi
2383 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2384   { echo "$as_me:$LINENO: result: yes" >&5
2385 echo "${ECHO_T}yes" >&6; }
2386   SET_MAKE=
2387 else
2388   { echo "$as_me:$LINENO: result: no" >&5
2389 echo "${ECHO_T}no" >&6; }
2390   SET_MAKE="MAKE=${MAKE-make}"
2391 fi
2392
2393 rm -rf .tst 2>/dev/null
2394 mkdir .tst 2>/dev/null
2395 if test -d .tst; then
2396   am__leading_dot=.
2397 else
2398   am__leading_dot=_
2399 fi
2400 rmdir .tst 2>/dev/null
2401
2402 # test to see if srcdir already configured
2403 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2404    test -f $srcdir/config.status; then
2405   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2406 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2407    { (exit 1); exit 1; }; }
2408 fi
2409
2410 # test whether we have cygpath
2411 if test -z "$CYGPATH_W"; then
2412   if (cygpath --version) >/dev/null 2>/dev/null; then
2413     CYGPATH_W='cygpath -w'
2414   else
2415     CYGPATH_W=echo
2416   fi
2417 fi
2418
2419
2420 # Define the identity of the package.
2421  PACKAGE='nfs-utils'
2422  VERSION='1.1.0'
2423
2424
2425 cat >>confdefs.h <<_ACEOF
2426 @%:@define PACKAGE "$PACKAGE"
2427 _ACEOF
2428
2429  
2430 cat >>confdefs.h <<_ACEOF
2431 @%:@define VERSION "$VERSION"
2432 _ACEOF
2433
2434 # Some tools Automake needs.
2435
2436 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2437
2438
2439 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2440
2441
2442 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2443
2444
2445 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2446
2447
2448 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2449
2450 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2451
2452 # Installed binaries are usually stripped using `strip' when the user
2453 # run `make install-strip'.  However `strip' might not be the right
2454 # tool to use in cross-compilation environments, therefore Automake
2455 # will honor the `STRIP' environment variable to overrule this program.
2456 if test "$cross_compiling" != no; then
2457   if test -n "$ac_tool_prefix"; then
2458   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2459 set dummy ${ac_tool_prefix}strip; ac_word=$2
2460 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2462 if test "${ac_cv_prog_STRIP+set}" = set; then
2463   echo $ECHO_N "(cached) $ECHO_C" >&6
2464 else
2465   if test -n "$STRIP"; then
2466   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2467 else
2468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2469 for as_dir in $PATH
2470 do
2471   IFS=$as_save_IFS
2472   test -z "$as_dir" && as_dir=.
2473   for ac_exec_ext in '' $ac_executable_extensions; do
2474   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2475     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2476     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2477     break 2
2478   fi
2479 done
2480 done
2481 IFS=$as_save_IFS
2482
2483 fi
2484 fi
2485 STRIP=$ac_cv_prog_STRIP
2486 if test -n "$STRIP"; then
2487   { echo "$as_me:$LINENO: result: $STRIP" >&5
2488 echo "${ECHO_T}$STRIP" >&6; }
2489 else
2490   { echo "$as_me:$LINENO: result: no" >&5
2491 echo "${ECHO_T}no" >&6; }
2492 fi
2493
2494
2495 fi
2496 if test -z "$ac_cv_prog_STRIP"; then
2497   ac_ct_STRIP=$STRIP
2498   # Extract the first word of "strip", so it can be a program name with args.
2499 set dummy strip; ac_word=$2
2500 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2501 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2502 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2503   echo $ECHO_N "(cached) $ECHO_C" >&6
2504 else
2505   if test -n "$ac_ct_STRIP"; then
2506   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2507 else
2508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2509 for as_dir in $PATH
2510 do
2511   IFS=$as_save_IFS
2512   test -z "$as_dir" && as_dir=.
2513   for ac_exec_ext in '' $ac_executable_extensions; do
2514   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2515     ac_cv_prog_ac_ct_STRIP="strip"
2516     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2517     break 2
2518   fi
2519 done
2520 done
2521 IFS=$as_save_IFS
2522
2523 fi
2524 fi
2525 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2526 if test -n "$ac_ct_STRIP"; then
2527   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2528 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2529 else
2530   { echo "$as_me:$LINENO: result: no" >&5
2531 echo "${ECHO_T}no" >&6; }
2532 fi
2533
2534   if test "x$ac_ct_STRIP" = x; then
2535     STRIP=":"
2536   else
2537     case $cross_compiling:$ac_tool_warned in
2538 yes:)
2539 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2540 whose name does not start with the host triplet.  If you think this
2541 configuration is useful to you, please write to autoconf@gnu.org." >&5
2542 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2543 whose name does not start with the host triplet.  If you think this
2544 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2545 ac_tool_warned=yes ;;
2546 esac
2547     STRIP=$ac_ct_STRIP
2548   fi
2549 else
2550   STRIP="$ac_cv_prog_STRIP"
2551 fi
2552
2553 fi
2554 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2555
2556 # We need awk for the "check" target.  The system "awk" is bad on
2557 # some platforms.
2558 # Always define AMTAR for backward compatibility.
2559
2560 AMTAR=${AMTAR-"${am_missing_run}tar"}
2561
2562 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2563
2564
2565
2566
2567
2568
2569
2570 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2571 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2572     # Check whether --enable-maintainer-mode was given.
2573 if test "${enable_maintainer_mode+set}" = set; then
2574   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2575 else
2576   USE_MAINTAINER_MODE=no
2577 fi
2578
2579   { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2580 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2581    
2582
2583 if test $USE_MAINTAINER_MODE = yes; then
2584   MAINTAINER_MODE_TRUE=
2585   MAINTAINER_MODE_FALSE='#'
2586 else
2587   MAINTAINER_MODE_TRUE='#'
2588   MAINTAINER_MODE_FALSE=
2589 fi
2590
2591   MAINT=$MAINTAINER_MODE_TRUE
2592   
2593
2594
2595
2596 # Check whether --with-release was given.
2597 if test "${with_release+set}" = set; then
2598   withval=$with_release; RELEASE=$withval
2599 else
2600   RELEASE=1
2601 fi
2602
2603         
2604
2605 # Check whether --with-statedir was given.
2606 if test "${with_statedir+set}" = set; then
2607   withval=$with_statedir; statedir=$withval
2608 else
2609   statedir=/var/lib/nfs
2610 fi
2611
2612         
2613
2614 # Check whether --with-statduser was given.
2615 if test "${with_statduser+set}" = set; then
2616   withval=$with_statduser; statduser=$withval
2617 else
2618   if test "x$cross_compiling" = "xno"; then
2619                 if grep -s '^rpcuser:' /etc/passwd > /dev/null; then
2620                         statduser=rpcuser
2621                 else
2622                         statduser=nobody
2623                 fi
2624         else
2625                 statduser=nobody
2626         fi
2627 fi
2628
2629         
2630
2631 # Check whether --with-start-statd was given.
2632 if test "${with_start_statd+set}" = set; then
2633   withval=$with_start_statd; startstatd=$withval
2634 else
2635   startstatd=/usr/sbin/start-statd
2636         
2637 fi
2638
2639         
2640         
2641 cat >>confdefs.h <<_ACEOF
2642 @%:@define START_STATD "$startstatd"
2643 _ACEOF
2644
2645 # Check whether --enable-nfsv3 was given.
2646 if test "${enable_nfsv3+set}" = set; then
2647   enableval=$enable_nfsv3; enable_nfsv3=$enableval
2648 else
2649   enable_nfsv3=yes
2650 fi
2651
2652         if test "$enable_nfsv3" = yes; then
2653                 
2654 cat >>confdefs.h <<\_ACEOF
2655 @%:@define NFS3_SUPPORTED 1
2656 _ACEOF
2657
2658         else
2659                 enable_nfsv3=
2660         fi
2661         
2662 # Check whether --enable-nfsv4 was given.
2663 if test "${enable_nfsv4+set}" = set; then
2664   enableval=$enable_nfsv4; enable_nfsv4=$enableval
2665 else
2666   enable_nfsv4=yes
2667 fi
2668
2669         if test "$enable_nfsv4" = yes; then
2670                 
2671 cat >>confdefs.h <<\_ACEOF
2672 @%:@define NFS4_SUPPORTED 1
2673 _ACEOF
2674
2675                 IDMAPD=idmapd
2676         else
2677                 enable_nfsv4=
2678                 IDMAPD=
2679         fi
2680         
2681         
2682          
2683
2684 if test "$enable_nfsv4" = "yes"; then
2685   CONFIG_NFSV4_TRUE=
2686   CONFIG_NFSV4_FALSE='#'
2687 else
2688   CONFIG_NFSV4_TRUE='#'
2689   CONFIG_NFSV4_FALSE=
2690 fi
2691
2692 # Check whether --enable-gss was given.
2693 if test "${enable_gss+set}" = set; then
2694   enableval=$enable_gss; enable_gss=$enableval
2695 else
2696   enable_gss=yes
2697 fi
2698
2699         if test "$enable_gss" = yes; then
2700                 
2701 cat >>confdefs.h <<\_ACEOF
2702 @%:@define GSS_SUPPORTED 1
2703 _ACEOF
2704
2705                 GSSD=gssd
2706                 SVCGSSD=svcgssd
2707         else
2708                 enable_gss=
2709                 GSSD=
2710                 SVCGSSD=
2711         fi
2712         
2713         
2714         
2715          
2716
2717 if test "$enable_gss" = "yes"; then
2718   CONFIG_GSS_TRUE=
2719   CONFIG_GSS_FALSE='#'
2720 else
2721   CONFIG_GSS_TRUE='#'
2722   CONFIG_GSS_FALSE=
2723 fi
2724
2725 # Check whether --enable-kprefix was given.
2726 if test "${enable_kprefix+set}" = set; then
2727   enableval=$enable_kprefix; test "$enableval" = "yes" && kprefix=k
2728 else
2729   kprefix=
2730 fi
2731
2732         
2733 # Check whether --enable-secure-statd was given.
2734 if test "${enable_secure_statd+set}" = set; then
2735   enableval=$enable_secure_statd; test "$enableval" = "yes" && secure_statd=yes
2736 else
2737   secure_statd=yes
2738 fi
2739
2740         if test "$secure_statd" = yes; then
2741                 
2742 cat >>confdefs.h <<\_ACEOF
2743 @%:@define RESTRICTED_STATD 1
2744 _ACEOF
2745
2746         fi
2747         
2748
2749 # Check whether --with-rpcgen was given.
2750 if test "${with_rpcgen+set}" = set; then
2751   withval=$with_rpcgen; rpcgen_path=$withval
2752 else
2753   rpcgen_path=yes 
2754 fi
2755
2756         RPCGEN_PATH=
2757         if test "$rpcgen_path" == "yes"; then
2758             for p in /usr/local/bin/rpcgen /usr/bin/rpcgen /bin/rpcgen
2759             do if test -f $p ; then RPCGEN_PATH=$p ; break; fi ; done
2760         elif test "$rpcgen_path" != "internal"; then
2761             RPCGEN_PATH=$rpcgen_path
2762         fi
2763         
2764          
2765
2766 if test "$RPCGEN_PATH" == ""; then
2767   CONFIG_RPCGEN_TRUE=
2768   CONFIG_RPCGEN_FALSE='#'
2769 else
2770   CONFIG_RPCGEN_TRUE='#'
2771   CONFIG_RPCGEN_FALSE=
2772 fi
2773
2774 # Check whether --enable-uuid was given.
2775 if test "${enable_uuid+set}" = set; then
2776   enableval=$enable_uuid; if test "$enableval" = "yes" ; then choose_blkid=yes; else choose_blkid=no; fi
2777 else
2778   choose_blkid=default
2779 fi
2780
2781 # Check whether --enable-mount was given.
2782 if test "${enable_mount+set}" = set; then
2783   enableval=$enable_mount; enable_mount=$enableval
2784 else
2785   enable_mount=yes
2786 fi
2787
2788          
2789
2790 if test "$enable_mount" = "yes"; then
2791   CONFIG_MOUNT_TRUE=
2792   CONFIG_MOUNT_FALSE='#'
2793 else
2794   CONFIG_MOUNT_TRUE='#'
2795   CONFIG_MOUNT_FALSE=
2796 fi
2797
2798
2799 # Check whether user wants TCP wrappers support
2800 DEPDIR="${am__leading_dot}deps"
2801
2802 ac_config_commands="$ac_config_commands depfiles"
2803
2804
2805 am_make=${MAKE-make}
2806 cat > confinc << 'END'
2807 am__doit:
2808         @echo done
2809 .PHONY: am__doit
2810 END
2811 # If we don't find an include directive, just comment out the code.
2812 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2813 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2814 am__include="#"
2815 am__quote=
2816 _am_result=none
2817 # First try GNU make style include.
2818 echo "include confinc" > confmf
2819 # We grep out `Entering directory' and `Leaving directory'
2820 # messages which can occur if `w' ends up in MAKEFLAGS.
2821 # In particular we don't look at `^make:' because GNU make might
2822 # be invoked under some other name (usually "gmake"), in which
2823 # case it prints its new name instead of `make'.
2824 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2825    am__include=include
2826    am__quote=
2827    _am_result=GNU
2828 fi
2829 # Now try BSD make style include.
2830 if test "$am__include" = "#"; then
2831    echo '.include "confinc"' > confmf
2832    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2833       am__include=.include
2834       am__quote="\""
2835       _am_result=BSD
2836    fi
2837 fi
2838
2839
2840 { echo "$as_me:$LINENO: result: $_am_result" >&5
2841 echo "${ECHO_T}$_am_result" >&6; }
2842 rm -f confinc confmf
2843
2844 # Check whether --enable-dependency-tracking was given.
2845 if test "${enable_dependency_tracking+set}" = set; then
2846   enableval=$enable_dependency_tracking; 
2847 fi
2848
2849 if test "x$enable_dependency_tracking" != xno; then
2850   am_depcomp="$ac_aux_dir/depcomp"
2851   AMDEPBACKSLASH='\'
2852 fi
2853  
2854
2855 if test "x$enable_dependency_tracking" != xno; then
2856   AMDEP_TRUE=
2857   AMDEP_FALSE='#'
2858 else
2859   AMDEP_TRUE='#'
2860   AMDEP_FALSE=
2861 fi
2862
2863
2864
2865 ac_ext=c
2866 ac_cpp='$CPP $CPPFLAGS'
2867 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2868 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2869 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2870 if test -n "$ac_tool_prefix"; then
2871   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2872 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2873 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2875 if test "${ac_cv_prog_CC+set}" = set; then
2876   echo $ECHO_N "(cached) $ECHO_C" >&6
2877 else
2878   if test -n "$CC"; then
2879   ac_cv_prog_CC="$CC" # Let the user override the test.
2880 else
2881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2882 for as_dir in $PATH
2883 do
2884   IFS=$as_save_IFS
2885   test -z "$as_dir" && as_dir=.
2886   for ac_exec_ext in '' $ac_executable_extensions; do
2887   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2888     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2889     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2890     break 2
2891   fi
2892 done
2893 done
2894 IFS=$as_save_IFS
2895
2896 fi
2897 fi
2898 CC=$ac_cv_prog_CC
2899 if test -n "$CC"; then
2900   { echo "$as_me:$LINENO: result: $CC" >&5
2901 echo "${ECHO_T}$CC" >&6; }
2902 else
2903   { echo "$as_me:$LINENO: result: no" >&5
2904 echo "${ECHO_T}no" >&6; }
2905 fi
2906
2907
2908 fi
2909 if test -z "$ac_cv_prog_CC"; then
2910   ac_ct_CC=$CC
2911   # Extract the first word of "gcc", so it can be a program name with args.
2912 set dummy gcc; ac_word=$2
2913 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2915 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2916   echo $ECHO_N "(cached) $ECHO_C" >&6
2917 else
2918   if test -n "$ac_ct_CC"; then
2919   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2920 else
2921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2922 for as_dir in $PATH
2923 do
2924   IFS=$as_save_IFS
2925   test -z "$as_dir" && as_dir=.
2926   for ac_exec_ext in '' $ac_executable_extensions; do
2927   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2928     ac_cv_prog_ac_ct_CC="gcc"
2929     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2930     break 2
2931   fi
2932 done
2933 done
2934 IFS=$as_save_IFS
2935
2936 fi
2937 fi
2938 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2939 if test -n "$ac_ct_CC"; then
2940   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2941 echo "${ECHO_T}$ac_ct_CC" >&6; }
2942 else
2943   { echo "$as_me:$LINENO: result: no" >&5
2944 echo "${ECHO_T}no" >&6; }
2945 fi
2946
2947   if test "x$ac_ct_CC" = x; then
2948     CC=""
2949   else
2950     case $cross_compiling:$ac_tool_warned in
2951 yes:)
2952 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2953 whose name does not start with the host triplet.  If you think this
2954 configuration is useful to you, please write to autoconf@gnu.org." >&5
2955 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2956 whose name does not start with the host triplet.  If you think this
2957 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2958 ac_tool_warned=yes ;;
2959 esac
2960     CC=$ac_ct_CC
2961   fi
2962 else
2963   CC="$ac_cv_prog_CC"
2964 fi
2965
2966 if test -z "$CC"; then
2967           if test -n "$ac_tool_prefix"; then
2968     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2969 set dummy ${ac_tool_prefix}cc; ac_word=$2
2970 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2972 if test "${ac_cv_prog_CC+set}" = set; then
2973   echo $ECHO_N "(cached) $ECHO_C" >&6
2974 else
2975   if test -n "$CC"; then
2976   ac_cv_prog_CC="$CC" # Let the user override the test.
2977 else
2978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2979 for as_dir in $PATH
2980 do
2981   IFS=$as_save_IFS
2982   test -z "$as_dir" && as_dir=.
2983   for ac_exec_ext in '' $ac_executable_extensions; do
2984   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2985     ac_cv_prog_CC="${ac_tool_prefix}cc"
2986     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2987     break 2
2988   fi
2989 done
2990 done
2991 IFS=$as_save_IFS
2992
2993 fi
2994 fi
2995 CC=$ac_cv_prog_CC
2996 if test -n "$CC"; then
2997   { echo "$as_me:$LINENO: result: $CC" >&5
2998 echo "${ECHO_T}$CC" >&6; }
2999 else
3000   { echo "$as_me:$LINENO: result: no" >&5
3001 echo "${ECHO_T}no" >&6; }
3002 fi
3003
3004
3005   fi
3006 fi
3007 if test -z "$CC"; then
3008   # Extract the first word of "cc", so it can be a program name with args.
3009 set dummy cc; ac_word=$2
3010 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3012 if test "${ac_cv_prog_CC+set}" = set; then
3013   echo $ECHO_N "(cached) $ECHO_C" >&6
3014 else
3015   if test -n "$CC"; then
3016   ac_cv_prog_CC="$CC" # Let the user override the test.
3017 else
3018   ac_prog_rejected=no
3019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3020 for as_dir in $PATH
3021 do
3022   IFS=$as_save_IFS
3023   test -z "$as_dir" && as_dir=.
3024   for ac_exec_ext in '' $ac_executable_extensions; do
3025   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3026     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3027        ac_prog_rejected=yes
3028        continue
3029      fi
3030     ac_cv_prog_CC="cc"
3031     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3032     break 2
3033   fi
3034 done
3035 done
3036 IFS=$as_save_IFS
3037
3038 if test $ac_prog_rejected = yes; then
3039   # We found a bogon in the path, so make sure we never use it.
3040   set dummy $ac_cv_prog_CC
3041   shift
3042   if test $@%:@ != 0; then
3043     # We chose a different compiler from the bogus one.
3044     # However, it has the same basename, so the bogon will be chosen
3045     # first if we set CC to just the basename; use the full file name.
3046     shift
3047     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3048   fi
3049 fi
3050 fi
3051 fi
3052 CC=$ac_cv_prog_CC
3053 if test -n "$CC"; then
3054   { echo "$as_me:$LINENO: result: $CC" >&5
3055 echo "${ECHO_T}$CC" >&6; }
3056 else
3057   { echo "$as_me:$LINENO: result: no" >&5
3058 echo "${ECHO_T}no" >&6; }
3059 fi
3060
3061
3062 fi
3063 if test -z "$CC"; then
3064   if test -n "$ac_tool_prefix"; then
3065   for ac_prog in cl.exe
3066   do
3067     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3068 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3069 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3070 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3071 if test "${ac_cv_prog_CC+set}" = set; then
3072   echo $ECHO_N "(cached) $ECHO_C" >&6
3073 else
3074   if test -n "$CC"; then
3075   ac_cv_prog_CC="$CC" # Let the user override the test.
3076 else
3077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3078 for as_dir in $PATH
3079 do
3080   IFS=$as_save_IFS
3081   test -z "$as_dir" && as_dir=.
3082   for ac_exec_ext in '' $ac_executable_extensions; do
3083   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3084     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3085     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3086     break 2
3087   fi
3088 done
3089 done
3090 IFS=$as_save_IFS
3091
3092 fi
3093 fi
3094 CC=$ac_cv_prog_CC
3095 if test -n "$CC"; then
3096   { echo "$as_me:$LINENO: result: $CC" >&5
3097 echo "${ECHO_T}$CC" >&6; }
3098 else
3099   { echo "$as_me:$LINENO: result: no" >&5
3100 echo "${ECHO_T}no" >&6; }
3101 fi
3102
3103
3104     test -n "$CC" && break
3105   done
3106 fi
3107 if test -z "$CC"; then
3108   ac_ct_CC=$CC
3109   for ac_prog in cl.exe
3110 do
3111   # Extract the first word of "$ac_prog", so it can be a program name with args.
3112 set dummy $ac_prog; ac_word=$2
3113 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3114 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3115 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3116   echo $ECHO_N "(cached) $ECHO_C" >&6
3117 else
3118   if test -n "$ac_ct_CC"; then
3119   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3120 else
3121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3122 for as_dir in $PATH
3123 do
3124   IFS=$as_save_IFS
3125   test -z "$as_dir" && as_dir=.
3126   for ac_exec_ext in '' $ac_executable_extensions; do
3127   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3128     ac_cv_prog_ac_ct_CC="$ac_prog"
3129     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3130     break 2
3131   fi
3132 done
3133 done
3134 IFS=$as_save_IFS
3135
3136 fi
3137 fi
3138 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3139 if test -n "$ac_ct_CC"; then
3140   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3141 echo "${ECHO_T}$ac_ct_CC" >&6; }
3142 else
3143   { echo "$as_me:$LINENO: result: no" >&5
3144 echo "${ECHO_T}no" >&6; }
3145 fi
3146
3147
3148   test -n "$ac_ct_CC" && break
3149 done
3150
3151   if test "x$ac_ct_CC" = x; then
3152     CC=""
3153   else
3154     case $cross_compiling:$ac_tool_warned in
3155 yes:)
3156 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3157 whose name does not start with the host triplet.  If you think this
3158 configuration is useful to you, please write to autoconf@gnu.org." >&5
3159 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3160 whose name does not start with the host triplet.  If you think this
3161 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3162 ac_tool_warned=yes ;;
3163 esac
3164     CC=$ac_ct_CC
3165   fi
3166 fi
3167
3168 fi
3169
3170
3171 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3172 See \`config.log' for more details." >&5
3173 echo "$as_me: error: no acceptable C compiler found in \$PATH
3174 See \`config.log' for more details." >&2;}
3175    { (exit 1); exit 1; }; }
3176
3177 # Provide some information about the compiler.
3178 echo "$as_me:$LINENO: checking for C compiler version" >&5
3179 ac_compiler=`set X $ac_compile; echo $2`
3180 { (ac_try="$ac_compiler --version >&5"
3181 case "(($ac_try" in
3182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3183   *) ac_try_echo=$ac_try;;
3184 esac
3185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3186   (eval "$ac_compiler --version >&5") 2>&5
3187   ac_status=$?
3188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3189   (exit $ac_status); }
3190 { (ac_try="$ac_compiler -v >&5"
3191 case "(($ac_try" in
3192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3193   *) ac_try_echo=$ac_try;;
3194 esac
3195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3196   (eval "$ac_compiler -v >&5") 2>&5
3197   ac_status=$?
3198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3199   (exit $ac_status); }
3200 { (ac_try="$ac_compiler -V >&5"
3201 case "(($ac_try" in
3202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3203   *) ac_try_echo=$ac_try;;
3204 esac
3205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3206   (eval "$ac_compiler -V >&5") 2>&5
3207   ac_status=$?
3208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3209   (exit $ac_status); }
3210
3211 cat >conftest.$ac_ext <<_ACEOF
3212 /* confdefs.h.  */
3213 _ACEOF
3214 cat confdefs.h >>conftest.$ac_ext
3215 cat >>conftest.$ac_ext <<_ACEOF
3216 /* end confdefs.h.  */
3217
3218 int
3219 main ()
3220 {
3221
3222   ;
3223   return 0;
3224 }
3225 _ACEOF
3226 ac_clean_files_save=$ac_clean_files
3227 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3228 # Try to create an executable without -o first, disregard a.out.
3229 # It will help us diagnose broken compilers, and finding out an intuition
3230 # of exeext.
3231 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3232 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3233 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3234 #
3235 # List of possible output files, starting from the most likely.
3236 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3237 # only as a last resort.  b.out is created by i960 compilers.
3238 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3239 #
3240 # The IRIX 6 linker writes into existing files which may not be
3241 # executable, retaining their permissions.  Remove them first so a
3242 # subsequent execution test works.
3243 ac_rmfiles=
3244 for ac_file in $ac_files
3245 do
3246   case $ac_file in
3247     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3248     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3249   esac
3250 done
3251 rm -f $ac_rmfiles
3252
3253 if { (ac_try="$ac_link_default"
3254 case "(($ac_try" in
3255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3256   *) ac_try_echo=$ac_try;;
3257 esac
3258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3259   (eval "$ac_link_default") 2>&5
3260   ac_status=$?
3261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3262   (exit $ac_status); }; then
3263   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3264 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3265 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3266 # so that the user can short-circuit this test for compilers unknown to
3267 # Autoconf.
3268 for ac_file in $ac_files ''
3269 do
3270   test -f "$ac_file" || continue
3271   case $ac_file in
3272     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3273         ;;
3274     [ab].out )
3275         # We found the default executable, but exeext='' is most
3276         # certainly right.
3277         break;;
3278     *.* )
3279         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3280         then :; else
3281            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3282         fi
3283         # We set ac_cv_exeext here because the later test for it is not
3284         # safe: cross compilers may not add the suffix if given an `-o'
3285         # argument, so we may need to know it at that point already.
3286         # Even if this section looks crufty: it has the advantage of
3287         # actually working.
3288         break;;
3289     * )
3290         break;;
3291   esac
3292 done
3293 test "$ac_cv_exeext" = no && ac_cv_exeext=
3294
3295 else
3296   ac_file=''
3297 fi
3298
3299 { echo "$as_me:$LINENO: result: $ac_file" >&5
3300 echo "${ECHO_T}$ac_file" >&6; }
3301 if test -z "$ac_file"; then
3302   echo "$as_me: failed program was:" >&5
3303 sed 's/^/| /' conftest.$ac_ext >&5
3304
3305 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3306 See \`config.log' for more details." >&5
3307 echo "$as_me: error: C compiler cannot create executables
3308 See \`config.log' for more details." >&2;}
3309    { (exit 77); exit 77; }; }
3310 fi
3311
3312 ac_exeext=$ac_cv_exeext
3313
3314 # Check that the compiler produces executables we can run.  If not, either
3315 # the compiler is broken, or we cross compile.
3316 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3317 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3318 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3319 # If not cross compiling, check that we can run a simple program.
3320 if test "$cross_compiling" != yes; then
3321   if { ac_try='./$ac_file'
3322   { (case "(($ac_try" in
3323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3324   *) ac_try_echo=$ac_try;;
3325 esac
3326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3327   (eval "$ac_try") 2>&5
3328   ac_status=$?
3329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3330   (exit $ac_status); }; }; then
3331     cross_compiling=no
3332   else
3333     if test "$cross_compiling" = maybe; then
3334         cross_compiling=yes
3335     else
3336         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3337 If you meant to cross compile, use \`--host'.
3338 See \`config.log' for more details." >&5
3339 echo "$as_me: error: cannot run C compiled programs.
3340 If you meant to cross compile, use \`--host'.
3341 See \`config.log' for more details." >&2;}
3342    { (exit 1); exit 1; }; }
3343     fi
3344   fi
3345 fi
3346 { echo "$as_me:$LINENO: result: yes" >&5
3347 echo "${ECHO_T}yes" >&6; }
3348
3349 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3350 ac_clean_files=$ac_clean_files_save
3351 # Check that the compiler produces executables we can run.  If not, either
3352 # the compiler is broken, or we cross compile.
3353 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3354 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3355 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3356 echo "${ECHO_T}$cross_compiling" >&6; }
3357
3358 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3359 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3360 if { (ac_try="$ac_link"
3361 case "(($ac_try" in
3362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3363   *) ac_try_echo=$ac_try;;
3364 esac
3365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3366   (eval "$ac_link") 2>&5
3367   ac_status=$?
3368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3369   (exit $ac_status); }; then
3370   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3371 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3372 # work properly (i.e., refer to `conftest.exe'), while it won't with
3373 # `rm'.
3374 for ac_file in conftest.exe conftest conftest.*; do
3375   test -f "$ac_file" || continue
3376   case $ac_file in
3377     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3378     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3379           break;;
3380     * ) break;;
3381   esac
3382 done
3383 else
3384   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3385 See \`config.log' for more details." >&5
3386 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3387 See \`config.log' for more details." >&2;}
3388    { (exit 1); exit 1; }; }
3389 fi
3390
3391 rm -f conftest$ac_cv_exeext
3392 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3393 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3394
3395 rm -f conftest.$ac_ext
3396 EXEEXT=$ac_cv_exeext
3397 ac_exeext=$EXEEXT
3398 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3399 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3400 if test "${ac_cv_objext+set}" = set; then
3401   echo $ECHO_N "(cached) $ECHO_C" >&6
3402 else
3403   cat >conftest.$ac_ext <<_ACEOF
3404 /* confdefs.h.  */
3405 _ACEOF
3406 cat confdefs.h >>conftest.$ac_ext
3407 cat >>conftest.$ac_ext <<_ACEOF
3408 /* end confdefs.h.  */
3409
3410 int
3411 main ()
3412 {
3413
3414   ;
3415   return 0;
3416 }
3417 _ACEOF
3418 rm -f conftest.o conftest.obj
3419 if { (ac_try="$ac_compile"
3420 case "(($ac_try" in
3421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3422   *) ac_try_echo=$ac_try;;
3423 esac
3424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3425   (eval "$ac_compile") 2>&5
3426   ac_status=$?
3427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3428   (exit $ac_status); }; then
3429   for ac_file in conftest.o conftest.obj conftest.*; do
3430   test -f "$ac_file" || continue;
3431   case $ac_file in
3432     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3433     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3434        break;;
3435   esac
3436 done
3437 else
3438   echo "$as_me: failed program was:" >&5
3439 sed 's/^/| /' conftest.$ac_ext >&5
3440
3441 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3442 See \`config.log' for more details." >&5
3443 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3444 See \`config.log' for more details." >&2;}
3445    { (exit 1); exit 1; }; }
3446 fi
3447
3448 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3449 fi
3450 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3451 echo "${ECHO_T}$ac_cv_objext" >&6; }
3452 OBJEXT=$ac_cv_objext
3453 ac_objext=$OBJEXT
3454 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3455 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3456 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3457   echo $ECHO_N "(cached) $ECHO_C" >&6
3458 else
3459   cat >conftest.$ac_ext <<_ACEOF
3460 /* confdefs.h.  */
3461 _ACEOF
3462 cat confdefs.h >>conftest.$ac_ext
3463 cat >>conftest.$ac_ext <<_ACEOF
3464 /* end confdefs.h.  */
3465
3466 int
3467 main ()
3468 {
3469 #ifndef __GNUC__
3470        choke me
3471 #endif
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          test -z "$ac_c_werror_flag" ||
3492          test ! -s conftest.err
3493        } && test -s conftest.$ac_objext; then
3494   ac_compiler_gnu=yes
3495 else
3496   echo "$as_me: failed program was:" >&5
3497 sed 's/^/| /' conftest.$ac_ext >&5
3498
3499         ac_compiler_gnu=no
3500 fi
3501
3502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3503 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3504
3505 fi
3506 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3507 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3508 GCC=`test $ac_compiler_gnu = yes && echo yes`
3509 ac_test_CFLAGS=${CFLAGS+set}
3510 ac_save_CFLAGS=$CFLAGS
3511 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3512 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3513 if test "${ac_cv_prog_cc_g+set}" = set; then
3514   echo $ECHO_N "(cached) $ECHO_C" >&6
3515 else
3516   ac_save_c_werror_flag=$ac_c_werror_flag
3517    ac_c_werror_flag=yes
3518    ac_cv_prog_cc_g=no
3519    CFLAGS="-g"
3520    cat >conftest.$ac_ext <<_ACEOF
3521 /* confdefs.h.  */
3522 _ACEOF
3523 cat confdefs.h >>conftest.$ac_ext
3524 cat >>conftest.$ac_ext <<_ACEOF
3525 /* end confdefs.h.  */
3526
3527 int
3528 main ()
3529 {
3530
3531   ;
3532   return 0;
3533 }
3534 _ACEOF
3535 rm -f conftest.$ac_objext
3536 if { (ac_try="$ac_compile"
3537 case "(($ac_try" in
3538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3539   *) ac_try_echo=$ac_try;;
3540 esac
3541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3542   (eval "$ac_compile") 2>conftest.er1
3543   ac_status=$?
3544   grep -v '^ *+' conftest.er1 >conftest.err
3545   rm -f conftest.er1
3546   cat conftest.err >&5
3547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3548   (exit $ac_status); } && {
3549          test -z "$ac_c_werror_flag" ||
3550          test ! -s conftest.err
3551        } && test -s conftest.$ac_objext; then
3552   ac_cv_prog_cc_g=yes
3553 else
3554   echo "$as_me: failed program was:" >&5
3555 sed 's/^/| /' conftest.$ac_ext >&5
3556
3557         CFLAGS=""
3558       cat >conftest.$ac_ext <<_ACEOF
3559 /* confdefs.h.  */
3560 _ACEOF
3561 cat confdefs.h >>conftest.$ac_ext
3562 cat >>conftest.$ac_ext <<_ACEOF
3563 /* end confdefs.h.  */
3564
3565 int
3566 main ()
3567 {
3568
3569   ;
3570   return 0;
3571 }
3572 _ACEOF
3573 rm -f conftest.$ac_objext
3574 if { (ac_try="$ac_compile"
3575 case "(($ac_try" in
3576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3577   *) ac_try_echo=$ac_try;;
3578 esac
3579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3580   (eval "$ac_compile") 2>conftest.er1
3581   ac_status=$?
3582   grep -v '^ *+' conftest.er1 >conftest.err
3583   rm -f conftest.er1
3584   cat conftest.err >&5
3585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3586   (exit $ac_status); } && {
3587          test -z "$ac_c_werror_flag" ||
3588          test ! -s conftest.err
3589        } && test -s conftest.$ac_objext; then
3590   :
3591 else
3592   echo "$as_me: failed program was:" >&5
3593 sed 's/^/| /' conftest.$ac_ext >&5
3594
3595         ac_c_werror_flag=$ac_save_c_werror_flag
3596          CFLAGS="-g"
3597          cat >conftest.$ac_ext <<_ACEOF
3598 /* confdefs.h.  */
3599 _ACEOF
3600 cat confdefs.h >>conftest.$ac_ext
3601 cat >>conftest.$ac_ext <<_ACEOF
3602 /* end confdefs.h.  */
3603
3604 int
3605 main ()
3606 {
3607
3608   ;
3609   return 0;
3610 }
3611 _ACEOF
3612 rm -f conftest.$ac_objext
3613 if { (ac_try="$ac_compile"
3614 case "(($ac_try" in
3615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3616   *) ac_try_echo=$ac_try;;
3617 esac
3618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3619   (eval "$ac_compile") 2>conftest.er1
3620   ac_status=$?
3621   grep -v '^ *+' conftest.er1 >conftest.err
3622   rm -f conftest.er1
3623   cat conftest.err >&5
3624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3625   (exit $ac_status); } && {
3626          test -z "$ac_c_werror_flag" ||
3627          test ! -s conftest.err
3628        } && test -s conftest.$ac_objext; then
3629   ac_cv_prog_cc_g=yes
3630 else
3631   echo "$as_me: failed program was:" >&5
3632 sed 's/^/| /' conftest.$ac_ext >&5
3633
3634         
3635 fi
3636
3637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3638 fi
3639
3640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3641 fi
3642
3643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3644    ac_c_werror_flag=$ac_save_c_werror_flag
3645 fi
3646 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3647 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3648 if test "$ac_test_CFLAGS" = set; then
3649   CFLAGS=$ac_save_CFLAGS
3650 elif test $ac_cv_prog_cc_g = yes; then
3651   if test "$GCC" = yes; then
3652     CFLAGS="-g -O2"
3653   else
3654     CFLAGS="-g"
3655   fi
3656 else
3657   if test "$GCC" = yes; then
3658     CFLAGS="-O2"
3659   else
3660     CFLAGS=
3661   fi
3662 fi
3663 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3664 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3665 if test "${ac_cv_prog_cc_c89+set}" = set; then
3666   echo $ECHO_N "(cached) $ECHO_C" >&6
3667 else
3668   ac_cv_prog_cc_c89=no
3669 ac_save_CC=$CC
3670 cat >conftest.$ac_ext <<_ACEOF
3671 /* confdefs.h.  */
3672 _ACEOF
3673 cat confdefs.h >>conftest.$ac_ext
3674 cat >>conftest.$ac_ext <<_ACEOF
3675 /* end confdefs.h.  */
3676 #include <stdarg.h>
3677 #include <stdio.h>
3678 #include <sys/types.h>
3679 #include <sys/stat.h>
3680 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3681 struct buf { int x; };
3682 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3683 static char *e (p, i)
3684      char **p;
3685      int i;
3686 {
3687   return p[i];
3688 }
3689 static char *f (char * (*g) (char **, int), char **p, ...)
3690 {
3691   char *s;
3692   va_list v;
3693   va_start (v,p);
3694   s = g (p, va_arg (v,int));
3695   va_end (v);
3696   return s;
3697 }
3698
3699 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3700    function prototypes and stuff, but not '\xHH' hex character constants.
3701    These don't provoke an error unfortunately, instead are silently treated
3702    as 'x'.  The following induces an error, until -std is added to get
3703    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3704    array size at least.  It's necessary to write '\x00'==0 to get something
3705    that's true only with -std.  */
3706 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3707
3708 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3709    inside strings and character constants.  */
3710 #define FOO(x) 'x'
3711 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3712
3713 int test (int i, double x);
3714 struct s1 {int (*f) (int a);};
3715 struct s2 {int (*f) (double a);};
3716 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3717 int argc;
3718 char **argv;
3719 int
3720 main ()
3721 {
3722 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3723   ;
3724   return 0;
3725 }
3726 _ACEOF
3727 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3728         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3729 do
3730   CC="$ac_save_CC $ac_arg"
3731   rm -f conftest.$ac_objext
3732 if { (ac_try="$ac_compile"
3733 case "(($ac_try" in
3734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3735   *) ac_try_echo=$ac_try;;
3736 esac
3737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3738   (eval "$ac_compile") 2>conftest.er1
3739   ac_status=$?
3740   grep -v '^ *+' conftest.er1 >conftest.err
3741   rm -f conftest.er1
3742   cat conftest.err >&5
3743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3744   (exit $ac_status); } && {
3745          test -z "$ac_c_werror_flag" ||
3746          test ! -s conftest.err
3747        } && test -s conftest.$ac_objext; then
3748   ac_cv_prog_cc_c89=$ac_arg
3749 else
3750   echo "$as_me: failed program was:" >&5
3751 sed 's/^/| /' conftest.$ac_ext >&5
3752
3753         
3754 fi
3755
3756 rm -f core conftest.err conftest.$ac_objext 
3757   test "x$ac_cv_prog_cc_c89" != "xno" && break
3758 done
3759 rm -f conftest.$ac_ext
3760 CC=$ac_save_CC
3761
3762 fi
3763 # AC_CACHE_VAL
3764 case "x$ac_cv_prog_cc_c89" in
3765   x)
3766     { echo "$as_me:$LINENO: result: none needed" >&5
3767 echo "${ECHO_T}none needed" >&6; } ;;
3768   xno)
3769     { echo "$as_me:$LINENO: result: unsupported" >&5
3770 echo "${ECHO_T}unsupported" >&6; } ;;
3771   *)
3772     CC="$CC $ac_cv_prog_cc_c89"
3773     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3774 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3775 esac
3776
3777
3778 ac_ext=c
3779 ac_cpp='$CPP $CPPFLAGS'
3780 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3781 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3782 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3783
3784 depcc="$CC"   am_compiler_list=
3785
3786 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3787 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3788 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3789   echo $ECHO_N "(cached) $ECHO_C" >&6
3790 else
3791   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3792   # We make a subdir and do the tests there.  Otherwise we can end up
3793   # making bogus files that we don't know about and never remove.  For
3794   # instance it was reported that on HP-UX the gcc test will end up
3795   # making a dummy file named `D' -- because `-MD' means `put the output
3796   # in D'.
3797   mkdir conftest.dir
3798   # Copy depcomp to subdir because otherwise we won't find it if we're
3799   # using a relative directory.
3800   cp "$am_depcomp" conftest.dir
3801   cd conftest.dir
3802   # We will build objects and dependencies in a subdirectory because
3803   # it helps to detect inapplicable dependency modes.  For instance
3804   # both Tru64's cc and ICC support -MD to output dependencies as a
3805   # side effect of compilation, but ICC will put the dependencies in
3806   # the current directory while Tru64 will put them in the object
3807   # directory.
3808   mkdir sub
3809
3810   am_cv_CC_dependencies_compiler_type=none
3811   if test "$am_compiler_list" = ""; then
3812      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3813   fi
3814   for depmode in $am_compiler_list; do
3815     # Setup a source with many dependencies, because some compilers
3816     # like to wrap large dependency lists on column 80 (with \), and
3817     # we should not choose a depcomp mode which is confused by this.
3818     #
3819     # We need to recreate these files for each test, as the compiler may
3820     # overwrite some of them when testing with obscure command lines.
3821     # This happens at least with the AIX C compiler.
3822     : > sub/conftest.c
3823     for i in 1 2 3 4 5 6; do
3824       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3825       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3826       # Solaris 8's {/usr,}/bin/sh.
3827       touch sub/conftst$i.h
3828     done
3829     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3830
3831     case $depmode in
3832     nosideeffect)
3833       # after this tag, mechanisms are not by side-effect, so they'll
3834       # only be used when explicitly requested
3835       if test "x$enable_dependency_tracking" = xyes; then
3836         continue
3837       else
3838         break
3839       fi
3840       ;;
3841     none) break ;;
3842     esac
3843     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3844     # mode.  It turns out that the SunPro C++ compiler does not properly
3845     # handle `-M -o', and we need to detect this.
3846     if depmode=$depmode \
3847        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3848        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3849        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3850          >/dev/null 2>conftest.err &&
3851        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3852        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3853        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3854       # icc doesn't choke on unknown options, it will just issue warnings
3855       # or remarks (even with -Werror).  So we grep stderr for any message
3856       # that says an option was ignored or not supported.
3857       # When given -MP, icc 7.0 and 7.1 complain thusly:
3858       #   icc: Command line warning: ignoring option '-M'; no argument required
3859       # The diagnosis changed in icc 8.0:
3860       #   icc: Command line remark: option '-MP' not supported
3861       if (grep 'ignoring option' conftest.err ||
3862           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3863         am_cv_CC_dependencies_compiler_type=$depmode
3864         break
3865       fi
3866     fi
3867   done
3868
3869   cd ..
3870   rm -rf conftest.dir
3871 else
3872   am_cv_CC_dependencies_compiler_type=none
3873 fi
3874
3875 fi
3876 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3877 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3878 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3879
3880  
3881
3882 if 
3883   test "x$enable_dependency_tracking" != xno \
3884   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3885   am__fastdepCC_TRUE=
3886   am__fastdepCC_FALSE='#'
3887 else
3888   am__fastdepCC_TRUE='#'
3889   am__fastdepCC_FALSE=
3890 fi
3891
3892
3893
3894
3895   TCPW_MSG="no"
3896   
3897 # Check whether --with-tcp-wrappers was given.
3898 if test "${with_tcp_wrappers+set}" = set; then
3899   withval=$with_tcp_wrappers; with_tcpw=$withval
3900 else
3901   with_tcpw=yes
3902 fi
3903
3904         if test "x$with_tcpw" != "xno" ; then
3905             saved_LIBS="$LIBS"
3906             saved_LDFLAGS="$LDFLAGS"
3907             saved_CPPFLAGS="$CPPFLAGS"
3908             if test -n "${with_tcpw}" -a "${with_tcpw}" != "yes"; then
3909                 if test -d "${with_tcpw}/lib"; then
3910                     if test -n "${need_dash_r}"; then
3911                         LDFLAGS="-L${with_tcpw}/lib -R${with_tcpw}/lib ${LDFLAGS}"
3912                     else
3913                         LDFLAGS="-L${with_tcpw}/lib ${LDFLAGS}"
3914                     fi
3915                 else
3916                     if test -n "${need_dash_r}"; then
3917                         LDFLAGS="-L${with_tcpw} -R${with_tcpw} ${LDFLAGS}"
3918                     else
3919                         LDFLAGS="-L${with_tcpw} ${LDFLAGS}"
3920                     fi
3921                 fi
3922                 if test -d "${with_tcpw}/include"; then
3923                     CPPFLAGS="-I${with_tcpw}/include ${CPPFLAGS}"
3924                 else
3925                     CPPFLAGS="-I${with_tcpw} ${CPPFLAGS}"
3926                 fi
3927             fi
3928             LIBWRAP="-lwrap"
3929             LIBS="$LIBWRAP $LIBS"
3930             { echo "$as_me:$LINENO: checking for libwrap" >&5
3931 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
3932             cat >conftest.$ac_ext <<_ACEOF
3933 /* confdefs.h.  */
3934 _ACEOF
3935 cat confdefs.h >>conftest.$ac_ext
3936 cat >>conftest.$ac_ext <<_ACEOF
3937 /* end confdefs.h.  */
3938
3939                 #include <tcpd.h>
3940                 int deny_severity = 0, allow_severity = 0;
3941                 
3942 int
3943 main ()
3944 {
3945 hosts_access(0);
3946   ;
3947   return 0;
3948 }
3949 _ACEOF
3950 rm -f conftest.$ac_objext conftest$ac_exeext
3951 if { (ac_try="$ac_link"
3952 case "(($ac_try" in
3953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3954   *) ac_try_echo=$ac_try;;
3955 esac
3956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3957   (eval "$ac_link") 2>conftest.er1
3958   ac_status=$?
3959   grep -v '^ *+' conftest.er1 >conftest.err
3960   rm -f conftest.er1
3961   cat conftest.err >&5
3962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3963   (exit $ac_status); } && {
3964          test -z "$ac_c_werror_flag" ||
3965          test ! -s conftest.err
3966        } && test -s conftest$ac_exeext &&
3967        $as_test_x conftest$ac_exeext; then
3968   
3969                 { echo "$as_me:$LINENO: result: yes" >&5
3970 echo "${ECHO_T}yes" >&6; }
3971                 
3972                 
3973 cat >>confdefs.h <<\_ACEOF
3974 @%:@define LIBWRAP 1
3975 _ACEOF
3976
3977                 
3978 cat >>confdefs.h <<\_ACEOF
3979 @%:@define HAVE_LIBWRAP 1
3980 _ACEOF
3981
3982                 
3983 cat >>confdefs.h <<\_ACEOF
3984 @%:@define HAVE_TCP_WRAPPER 1
3985 _ACEOF
3986
3987                 TCPW_MSG="yes"
3988                 
3989 else
3990   echo "$as_me: failed program was:" >&5
3991 sed 's/^/| /' conftest.$ac_ext >&5
3992
3993         
3994                 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
3995 echo "$as_me: error: *** libwrap missing" >&2;}
3996    { (exit 1); exit 1; }; }
3997                 
3998             
3999 fi
4000
4001 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4002       conftest$ac_exeext conftest.$ac_ext
4003             LIBS="$saved_LIBS"
4004         fi
4005   
4006   
4007   
4008
4009
4010 # Arrange for large-file support
4011 # Check whether --enable-largefile was given.
4012 if test "${enable_largefile+set}" = set; then
4013   enableval=$enable_largefile; 
4014 fi
4015
4016 if test "$enable_largefile" != no; then
4017
4018   { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4019 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
4020 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4021   echo $ECHO_N "(cached) $ECHO_C" >&6
4022 else
4023   ac_cv_sys_largefile_CC=no
4024      if test "$GCC" != yes; then
4025        ac_save_CC=$CC
4026        while :; do
4027          # IRIX 6.2 and later do not support large files by default,
4028          # so use the C compiler's -n32 option if that helps.
4029          cat >conftest.$ac_ext <<_ACEOF
4030 /* confdefs.h.  */
4031 _ACEOF
4032 cat confdefs.h >>conftest.$ac_ext
4033 cat >>conftest.$ac_ext <<_ACEOF
4034 /* end confdefs.h.  */
4035 @%:@include <sys/types.h>
4036  /* Check that off_t can represent 2**63 - 1 correctly.
4037     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4038     since some C++ compilers masquerading as C compilers
4039     incorrectly reject 9223372036854775807.  */
4040 @%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4041   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4042                        && LARGE_OFF_T % 2147483647 == 1)
4043                       ? 1 : -1];
4044 int
4045 main ()
4046 {
4047
4048   ;
4049   return 0;
4050 }
4051 _ACEOF
4052          rm -f conftest.$ac_objext
4053 if { (ac_try="$ac_compile"
4054 case "(($ac_try" in
4055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4056   *) ac_try_echo=$ac_try;;
4057 esac
4058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4059   (eval "$ac_compile") 2>conftest.er1
4060   ac_status=$?
4061   grep -v '^ *+' conftest.er1 >conftest.err
4062   rm -f conftest.er1
4063   cat conftest.err >&5
4064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4065   (exit $ac_status); } && {
4066          test -z "$ac_c_werror_flag" ||
4067          test ! -s conftest.err
4068        } && test -s conftest.$ac_objext; then
4069   break
4070 else
4071   echo "$as_me: failed program was:" >&5
4072 sed 's/^/| /' conftest.$ac_ext >&5
4073
4074         
4075 fi
4076
4077 rm -f core conftest.err conftest.$ac_objext 
4078          CC="$CC -n32"
4079          rm -f conftest.$ac_objext
4080 if { (ac_try="$ac_compile"
4081 case "(($ac_try" in
4082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4083   *) ac_try_echo=$ac_try;;
4084 esac
4085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4086   (eval "$ac_compile") 2>conftest.er1
4087   ac_status=$?
4088   grep -v '^ *+' conftest.er1 >conftest.err
4089   rm -f conftest.er1
4090   cat conftest.err >&5
4091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4092   (exit $ac_status); } && {
4093          test -z "$ac_c_werror_flag" ||
4094          test ! -s conftest.err
4095        } && test -s conftest.$ac_objext; then
4096   ac_cv_sys_largefile_CC=' -n32'; break
4097 else
4098   echo "$as_me: failed program was:" >&5
4099 sed 's/^/| /' conftest.$ac_ext >&5
4100
4101         
4102 fi
4103
4104 rm -f core conftest.err conftest.$ac_objext 
4105          break
4106        done
4107        CC=$ac_save_CC
4108        rm -f conftest.$ac_ext
4109     fi
4110 fi
4111 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4112 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
4113   if test "$ac_cv_sys_largefile_CC" != no; then
4114     CC=$CC$ac_cv_sys_largefile_CC
4115   fi
4116
4117   { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4118 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
4119 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4120   echo $ECHO_N "(cached) $ECHO_C" >&6
4121 else
4122   while :; do
4123   cat >conftest.$ac_ext <<_ACEOF
4124 /* confdefs.h.  */
4125 _ACEOF
4126 cat confdefs.h >>conftest.$ac_ext
4127 cat >>conftest.$ac_ext <<_ACEOF
4128 /* end confdefs.h.  */
4129 @%:@include <sys/types.h>
4130  /* Check that off_t can represent 2**63 - 1 correctly.
4131     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4132     since some C++ compilers masquerading as C compilers
4133     incorrectly reject 9223372036854775807.  */
4134 @%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4135   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4136                        && LARGE_OFF_T % 2147483647 == 1)
4137                       ? 1 : -1];
4138 int
4139 main ()
4140 {
4141
4142   ;
4143   return 0;
4144 }
4145 _ACEOF
4146 rm -f conftest.$ac_objext
4147 if { (ac_try="$ac_compile"
4148 case "(($ac_try" in
4149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4150   *) ac_try_echo=$ac_try;;
4151 esac
4152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4153   (eval "$ac_compile") 2>conftest.er1
4154   ac_status=$?
4155   grep -v '^ *+' conftest.er1 >conftest.err
4156   rm -f conftest.er1
4157   cat conftest.err >&5
4158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4159   (exit $ac_status); } && {
4160          test -z "$ac_c_werror_flag" ||
4161          test ! -s conftest.err
4162        } && test -s conftest.$ac_objext; then
4163   ac_cv_sys_file_offset_bits=no; break
4164 else
4165   echo "$as_me: failed program was:" >&5
4166 sed 's/^/| /' conftest.$ac_ext >&5
4167
4168         
4169 fi
4170
4171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4172   cat >conftest.$ac_ext <<_ACEOF
4173 /* confdefs.h.  */
4174 _ACEOF
4175 cat confdefs.h >>conftest.$ac_ext
4176 cat >>conftest.$ac_ext <<_ACEOF
4177 /* end confdefs.h.  */
4178 @%:@define _FILE_OFFSET_BITS 64
4179 @%:@include <sys/types.h>
4180  /* Check that off_t can represent 2**63 - 1 correctly.
4181     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4182     since some C++ compilers masquerading as C compilers
4183     incorrectly reject 9223372036854775807.  */
4184 @%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4185   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4186                        && LARGE_OFF_T % 2147483647 == 1)
4187                       ? 1 : -1];
4188 int
4189 main ()
4190 {
4191
4192   ;
4193   return 0;
4194 }
4195 _ACEOF
4196 rm -f conftest.$ac_objext
4197 if { (ac_try="$ac_compile"
4198 case "(($ac_try" in
4199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4200   *) ac_try_echo=$ac_try;;
4201 esac
4202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4203   (eval "$ac_compile") 2>conftest.er1
4204   ac_status=$?
4205   grep -v '^ *+' conftest.er1 >conftest.err
4206   rm -f conftest.er1
4207   cat conftest.err >&5
4208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4209   (exit $ac_status); } && {
4210          test -z "$ac_c_werror_flag" ||
4211          test ! -s conftest.err
4212        } && test -s conftest.$ac_objext; then
4213   ac_cv_sys_file_offset_bits=64; break
4214 else
4215   echo "$as_me: failed program was:" >&5
4216 sed 's/^/| /' conftest.$ac_ext >&5
4217
4218         
4219 fi
4220
4221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4222   ac_cv_sys_file_offset_bits=unknown
4223   break
4224 done
4225 fi
4226 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4227 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
4228 case $ac_cv_sys_file_offset_bits in #(
4229   no | unknown) ;;
4230   *) 
4231 cat >>confdefs.h <<_ACEOF
4232 @%:@define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4233 _ACEOF
4234 ;;
4235 esac
4236 rm -f conftest*
4237   if test $ac_cv_sys_file_offset_bits = unknown; then
4238     { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4239 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
4240 if test "${ac_cv_sys_large_files+set}" = set; then
4241   echo $ECHO_N "(cached) $ECHO_C" >&6
4242 else
4243   while :; do
4244   cat >conftest.$ac_ext <<_ACEOF
4245 /* confdefs.h.  */
4246 _ACEOF
4247 cat confdefs.h >>conftest.$ac_ext
4248 cat >>conftest.$ac_ext <<_ACEOF
4249 /* end confdefs.h.  */
4250 @%:@include <sys/types.h>
4251  /* Check that off_t can represent 2**63 - 1 correctly.
4252     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4253     since some C++ compilers masquerading as C compilers
4254     incorrectly reject 9223372036854775807.  */
4255 @%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4256   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4257                        && LARGE_OFF_T % 2147483647 == 1)
4258                       ? 1 : -1];
4259 int
4260 main ()
4261 {
4262
4263   ;
4264   return 0;
4265 }
4266 _ACEOF
4267 rm -f conftest.$ac_objext
4268 if { (ac_try="$ac_compile"
4269 case "(($ac_try" in
4270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4271   *) ac_try_echo=$ac_try;;
4272 esac
4273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4274   (eval "$ac_compile") 2>conftest.er1
4275   ac_status=$?
4276   grep -v '^ *+' conftest.er1 >conftest.err
4277   rm -f conftest.er1
4278   cat conftest.err >&5
4279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4280   (exit $ac_status); } && {
4281          test -z "$ac_c_werror_flag" ||
4282          test ! -s conftest.err
4283        } && test -s conftest.$ac_objext; then
4284   ac_cv_sys_large_files=no; break
4285 else
4286   echo "$as_me: failed program was:" >&5
4287 sed 's/^/| /' conftest.$ac_ext >&5
4288
4289         
4290 fi
4291
4292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4293   cat >conftest.$ac_ext <<_ACEOF
4294 /* confdefs.h.  */
4295 _ACEOF
4296 cat confdefs.h >>conftest.$ac_ext
4297 cat >>conftest.$ac_ext <<_ACEOF
4298 /* end confdefs.h.  */
4299 @%:@define _LARGE_FILES 1
4300 @%:@include <sys/types.h>
4301  /* Check that off_t can represent 2**63 - 1 correctly.
4302     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4303     since some C++ compilers masquerading as C compilers
4304     incorrectly reject 9223372036854775807.  */
4305 @%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4306   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4307                        && LARGE_OFF_T % 2147483647 == 1)
4308                       ? 1 : -1];
4309 int
4310 main ()
4311 {
4312
4313   ;
4314   return 0;
4315 }
4316 _ACEOF
4317 rm -f conftest.$ac_objext
4318 if { (ac_try="$ac_compile"
4319 case "(($ac_try" in
4320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4321   *) ac_try_echo=$ac_try;;
4322 esac
4323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4324   (eval "$ac_compile") 2>conftest.er1
4325   ac_status=$?
4326   grep -v '^ *+' conftest.er1 >conftest.err
4327   rm -f conftest.er1
4328   cat conftest.err >&5
4329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4330   (exit $ac_status); } && {
4331          test -z "$ac_c_werror_flag" ||
4332          test ! -s conftest.err
4333        } && test -s conftest.$ac_objext; then
4334   ac_cv_sys_large_files=1; break
4335 else
4336   echo "$as_me: failed program was:" >&5
4337 sed 's/^/| /' conftest.$ac_ext >&5
4338
4339         
4340 fi
4341
4342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4343   ac_cv_sys_large_files=unknown
4344   break
4345 done
4346 fi
4347 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4348 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
4349 case $ac_cv_sys_large_files in #(
4350   no | unknown) ;;
4351   *) 
4352 cat >>confdefs.h <<_ACEOF
4353 @%:@define _LARGE_FILES $ac_cv_sys_large_files
4354 _ACEOF
4355 ;;
4356 esac
4357 rm -f conftest*
4358   fi
4359 fi
4360
4361
4362
4363 ac_config_headers="$ac_config_headers support/include/config.h"
4364
4365
4366 # Checks for programs.
4367 ac_ext=cpp
4368 ac_cpp='$CXXCPP $CPPFLAGS'
4369 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4370 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4371 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4372 if test -z "$CXX"; then
4373   if test -n "$CCC"; then
4374     CXX=$CCC
4375   else
4376     if test -n "$ac_tool_prefix"; then
4377   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4378   do
4379     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4380 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4381 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4382 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4383 if test "${ac_cv_prog_CXX+set}" = set; then
4384   echo $ECHO_N "(cached) $ECHO_C" >&6
4385 else
4386   if test -n "$CXX"; then
4387   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4388 else
4389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4390 for as_dir in $PATH
4391 do
4392   IFS=$as_save_IFS
4393   test -z "$as_dir" && as_dir=.
4394   for ac_exec_ext in '' $ac_executable_extensions; do
4395   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4396     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4397     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4398     break 2
4399   fi
4400 done
4401 done
4402 IFS=$as_save_IFS
4403
4404 fi
4405 fi
4406 CXX=$ac_cv_prog_CXX
4407 if test -n "$CXX"; then
4408   { echo "$as_me:$LINENO: result: $CXX" >&5
4409 echo "${ECHO_T}$CXX" >&6; }
4410 else
4411   { echo "$as_me:$LINENO: result: no" >&5
4412 echo "${ECHO_T}no" >&6; }
4413 fi
4414
4415
4416     test -n "$CXX" && break
4417   done
4418 fi
4419 if test -z "$CXX"; then
4420   ac_ct_CXX=$CXX
4421   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4422 do
4423   # Extract the first word of "$ac_prog", so it can be a program name with args.
4424 set dummy $ac_prog; ac_word=$2
4425 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4426 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4427 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4428   echo $ECHO_N "(cached) $ECHO_C" >&6
4429 else
4430   if test -n "$ac_ct_CXX"; then
4431   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4432 else
4433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4434 for as_dir in $PATH
4435 do
4436   IFS=$as_save_IFS
4437   test -z "$as_dir" && as_dir=.
4438   for ac_exec_ext in '' $ac_executable_extensions; do
4439   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4440     ac_cv_prog_ac_ct_CXX="$ac_prog"
4441     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4442     break 2
4443   fi
4444 done
4445 done
4446 IFS=$as_save_IFS
4447
4448 fi
4449 fi
4450 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4451 if test -n "$ac_ct_CXX"; then
4452   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4453 echo "${ECHO_T}$ac_ct_CXX" >&6; }
4454 else
4455   { echo "$as_me:$LINENO: result: no" >&5
4456 echo "${ECHO_T}no" >&6; }
4457 fi
4458
4459
4460   test -n "$ac_ct_CXX" && break
4461 done
4462
4463   if test "x$ac_ct_CXX" = x; then
4464     CXX="g++"
4465   else
4466     case $cross_compiling:$ac_tool_warned in
4467 yes:)
4468 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4469 whose name does not start with the host triplet.  If you think this
4470 configuration is useful to you, please write to autoconf@gnu.org." >&5
4471 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4472 whose name does not start with the host triplet.  If you think this
4473 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4474 ac_tool_warned=yes ;;
4475 esac
4476     CXX=$ac_ct_CXX
4477   fi
4478 fi
4479
4480   fi
4481 fi
4482 # Provide some information about the compiler.
4483 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4484 ac_compiler=`set X $ac_compile; echo $2`
4485 { (ac_try="$ac_compiler --version >&5"
4486 case "(($ac_try" in
4487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4488   *) ac_try_echo=$ac_try;;
4489 esac
4490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4491   (eval "$ac_compiler --version >&5") 2>&5
4492   ac_status=$?
4493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4494   (exit $ac_status); }
4495 { (ac_try="$ac_compiler -v >&5"
4496 case "(($ac_try" in
4497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4498   *) ac_try_echo=$ac_try;;
4499 esac
4500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4501   (eval "$ac_compiler -v >&5") 2>&5
4502   ac_status=$?
4503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4504   (exit $ac_status); }
4505 { (ac_try="$ac_compiler -V >&5"
4506 case "(($ac_try" in
4507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4508   *) ac_try_echo=$ac_try;;
4509 esac
4510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4511   (eval "$ac_compiler -V >&5") 2>&5
4512   ac_status=$?
4513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4514   (exit $ac_status); }
4515
4516 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4517 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
4518 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4519   echo $ECHO_N "(cached) $ECHO_C" >&6
4520 else
4521   cat >conftest.$ac_ext <<_ACEOF
4522 /* confdefs.h.  */
4523 _ACEOF
4524 cat confdefs.h >>conftest.$ac_ext
4525 cat >>conftest.$ac_ext <<_ACEOF
4526 /* end confdefs.h.  */
4527
4528 int
4529 main ()
4530 {
4531 #ifndef __GNUC__
4532        choke me
4533 #endif
4534
4535   ;
4536   return 0;
4537 }
4538 _ACEOF
4539 rm -f conftest.$ac_objext
4540 if { (ac_try="$ac_compile"
4541 case "(($ac_try" in
4542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4543   *) ac_try_echo=$ac_try;;
4544 esac
4545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4546   (eval "$ac_compile") 2>conftest.er1
4547   ac_status=$?
4548   grep -v '^ *+' conftest.er1 >conftest.err
4549   rm -f conftest.er1
4550   cat conftest.err >&5
4551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4552   (exit $ac_status); } && {
4553          test -z "$ac_cxx_werror_flag" ||
4554          test ! -s conftest.err
4555        } && test -s conftest.$ac_objext; then
4556   ac_compiler_gnu=yes
4557 else
4558   echo "$as_me: failed program was:" >&5
4559 sed 's/^/| /' conftest.$ac_ext >&5
4560
4561         ac_compiler_gnu=no
4562 fi
4563
4564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4565 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4566
4567 fi
4568 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4569 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
4570 GXX=`test $ac_compiler_gnu = yes && echo yes`
4571 ac_test_CXXFLAGS=${CXXFLAGS+set}
4572 ac_save_CXXFLAGS=$CXXFLAGS
4573 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4574 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
4575 if test "${ac_cv_prog_cxx_g+set}" = set; then
4576   echo $ECHO_N "(cached) $ECHO_C" >&6
4577 else
4578   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4579    ac_cxx_werror_flag=yes
4580    ac_cv_prog_cxx_g=no
4581    CXXFLAGS="-g"
4582    cat >conftest.$ac_ext <<_ACEOF
4583 /* confdefs.h.  */
4584 _ACEOF
4585 cat confdefs.h >>conftest.$ac_ext
4586 cat >>conftest.$ac_ext <<_ACEOF
4587 /* end confdefs.h.  */
4588
4589 int
4590 main ()
4591 {
4592
4593   ;
4594   return 0;
4595 }
4596 _ACEOF
4597 rm -f conftest.$ac_objext
4598 if { (ac_try="$ac_compile"
4599 case "(($ac_try" in
4600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4601   *) ac_try_echo=$ac_try;;
4602 esac
4603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4604   (eval "$ac_compile") 2>conftest.er1
4605   ac_status=$?
4606   grep -v '^ *+' conftest.er1 >conftest.err
4607   rm -f conftest.er1
4608   cat conftest.err >&5
4609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610   (exit $ac_status); } && {
4611          test -z "$ac_cxx_werror_flag" ||
4612          test ! -s conftest.err
4613        } && test -s conftest.$ac_objext; then
4614   ac_cv_prog_cxx_g=yes
4615 else
4616   echo "$as_me: failed program was:" >&5
4617 sed 's/^/| /' conftest.$ac_ext >&5
4618
4619         CXXFLAGS=""
4620       cat >conftest.$ac_ext <<_ACEOF
4621 /* confdefs.h.  */
4622 _ACEOF
4623 cat confdefs.h >>conftest.$ac_ext
4624 cat >>conftest.$ac_ext <<_ACEOF
4625 /* end confdefs.h.  */
4626
4627 int
4628 main ()
4629 {
4630
4631   ;
4632   return 0;
4633 }
4634 _ACEOF
4635 rm -f conftest.$ac_objext
4636 if { (ac_try="$ac_compile"
4637 case "(($ac_try" in
4638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4639   *) ac_try_echo=$ac_try;;
4640 esac
4641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4642   (eval "$ac_compile") 2>conftest.er1
4643   ac_status=$?
4644   grep -v '^ *+' conftest.er1 >conftest.err
4645   rm -f conftest.er1
4646   cat conftest.err >&5
4647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4648   (exit $ac_status); } && {
4649          test -z "$ac_cxx_werror_flag" ||
4650          test ! -s conftest.err
4651        } && test -s conftest.$ac_objext; then
4652   :
4653 else
4654   echo "$as_me: failed program was:" >&5
4655 sed 's/^/| /' conftest.$ac_ext >&5
4656
4657         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4658          CXXFLAGS="-g"
4659          cat >conftest.$ac_ext <<_ACEOF
4660 /* confdefs.h.  */
4661 _ACEOF
4662 cat confdefs.h >>conftest.$ac_ext
4663 cat >>conftest.$ac_ext <<_ACEOF
4664 /* end confdefs.h.  */
4665
4666 int
4667 main ()
4668 {
4669
4670   ;
4671   return 0;
4672 }
4673 _ACEOF
4674 rm -f conftest.$ac_objext
4675 if { (ac_try="$ac_compile"
4676 case "(($ac_try" in
4677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4678   *) ac_try_echo=$ac_try;;
4679 esac
4680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4681   (eval "$ac_compile") 2>conftest.er1
4682   ac_status=$?
4683   grep -v '^ *+' conftest.er1 >conftest.err
4684   rm -f conftest.er1
4685   cat conftest.err >&5
4686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4687   (exit $ac_status); } && {
4688          test -z "$ac_cxx_werror_flag" ||
4689          test ! -s conftest.err
4690        } && test -s conftest.$ac_objext; then
4691   ac_cv_prog_cxx_g=yes
4692 else
4693   echo "$as_me: failed program was:" >&5
4694 sed 's/^/| /' conftest.$ac_ext >&5
4695
4696         
4697 fi
4698
4699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4700 fi
4701
4702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4703 fi
4704
4705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4706    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4707 fi
4708 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4709 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4710 if test "$ac_test_CXXFLAGS" = set; then
4711   CXXFLAGS=$ac_save_CXXFLAGS
4712 elif test $ac_cv_prog_cxx_g = yes; then
4713   if test "$GXX" = yes; then
4714     CXXFLAGS="-g -O2"
4715   else
4716     CXXFLAGS="-g"
4717   fi
4718 else
4719   if test "$GXX" = yes; then
4720     CXXFLAGS="-O2"
4721   else
4722     CXXFLAGS=
4723   fi
4724 fi
4725 ac_ext=c
4726 ac_cpp='$CPP $CPPFLAGS'
4727 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4728 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4729 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4730
4731 depcc="$CXX"  am_compiler_list=
4732
4733 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4734 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4735 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4736   echo $ECHO_N "(cached) $ECHO_C" >&6
4737 else
4738   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4739   # We make a subdir and do the tests there.  Otherwise we can end up
4740   # making bogus files that we don't know about and never remove.  For
4741   # instance it was reported that on HP-UX the gcc test will end up
4742   # making a dummy file named `D' -- because `-MD' means `put the output
4743   # in D'.
4744   mkdir conftest.dir
4745   # Copy depcomp to subdir because otherwise we won't find it if we're
4746   # using a relative directory.
4747   cp "$am_depcomp" conftest.dir
4748   cd conftest.dir
4749   # We will build objects and dependencies in a subdirectory because
4750   # it helps to detect inapplicable dependency modes.  For instance
4751   # both Tru64's cc and ICC support -MD to output dependencies as a
4752   # side effect of compilation, but ICC will put the dependencies in
4753   # the current directory while Tru64 will put them in the object
4754   # directory.
4755   mkdir sub
4756
4757   am_cv_CXX_dependencies_compiler_type=none
4758   if test "$am_compiler_list" = ""; then
4759      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4760   fi
4761   for depmode in $am_compiler_list; do
4762     # Setup a source with many dependencies, because some compilers
4763     # like to wrap large dependency lists on column 80 (with \), and
4764     # we should not choose a depcomp mode which is confused by this.
4765     #
4766     # We need to recreate these files for each test, as the compiler may
4767     # overwrite some of them when testing with obscure command lines.
4768     # This happens at least with the AIX C compiler.
4769     : > sub/conftest.c
4770     for i in 1 2 3 4 5 6; do
4771       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4772       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4773       # Solaris 8's {/usr,}/bin/sh.
4774       touch sub/conftst$i.h
4775     done
4776     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4777
4778     case $depmode in
4779     nosideeffect)
4780       # after this tag, mechanisms are not by side-effect, so they'll
4781       # only be used when explicitly requested
4782       if test "x$enable_dependency_tracking" = xyes; then
4783         continue
4784       else
4785         break
4786       fi
4787       ;;
4788     none) break ;;
4789     esac
4790     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4791     # mode.  It turns out that the SunPro C++ compiler does not properly
4792     # handle `-M -o', and we need to detect this.
4793     if depmode=$depmode \
4794        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4795        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4796        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4797          >/dev/null 2>conftest.err &&
4798        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4799        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4800        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4801       # icc doesn't choke on unknown options, it will just issue warnings
4802       # or remarks (even with -Werror).  So we grep stderr for any message
4803       # that says an option was ignored or not supported.
4804       # When given -MP, icc 7.0 and 7.1 complain thusly:
4805       #   icc: Command line warning: ignoring option '-M'; no argument required
4806       # The diagnosis changed in icc 8.0:
4807       #   icc: Command line remark: option '-MP' not supported
4808       if (grep 'ignoring option' conftest.err ||
4809           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4810         am_cv_CXX_dependencies_compiler_type=$depmode
4811         break
4812       fi
4813     fi
4814   done
4815
4816   cd ..
4817   rm -rf conftest.dir
4818 else
4819   am_cv_CXX_dependencies_compiler_type=none
4820 fi
4821
4822 fi
4823 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4824 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
4825 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4826
4827  
4828
4829 if 
4830   test "x$enable_dependency_tracking" != xno \
4831   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4832   am__fastdepCXX_TRUE=
4833   am__fastdepCXX_FALSE='#'
4834 else
4835   am__fastdepCXX_TRUE='#'
4836   am__fastdepCXX_FALSE=
4837 fi
4838
4839
4840 ac_ext=c
4841 ac_cpp='$CPP $CPPFLAGS'
4842 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4843 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4844 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4845 if test -n "$ac_tool_prefix"; then
4846   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4847 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4848 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4850 if test "${ac_cv_prog_CC+set}" = set; then
4851   echo $ECHO_N "(cached) $ECHO_C" >&6
4852 else
4853   if test -n "$CC"; then
4854   ac_cv_prog_CC="$CC" # Let the user override the test.
4855 else
4856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4857 for as_dir in $PATH
4858 do
4859   IFS=$as_save_IFS
4860   test -z "$as_dir" && as_dir=.
4861   for ac_exec_ext in '' $ac_executable_extensions; do
4862   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4863     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4864     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4865     break 2
4866   fi
4867 done
4868 done
4869 IFS=$as_save_IFS
4870
4871 fi
4872 fi
4873 CC=$ac_cv_prog_CC
4874 if test -n "$CC"; then
4875   { echo "$as_me:$LINENO: result: $CC" >&5
4876 echo "${ECHO_T}$CC" >&6; }
4877 else
4878   { echo "$as_me:$LINENO: result: no" >&5
4879 echo "${ECHO_T}no" >&6; }
4880 fi
4881
4882
4883 fi
4884 if test -z "$ac_cv_prog_CC"; then
4885   ac_ct_CC=$CC
4886   # Extract the first word of "gcc", so it can be a program name with args.
4887 set dummy gcc; ac_word=$2
4888 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4889 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4890 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4891   echo $ECHO_N "(cached) $ECHO_C" >&6
4892 else
4893   if test -n "$ac_ct_CC"; then
4894   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4895 else
4896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4897 for as_dir in $PATH
4898 do
4899   IFS=$as_save_IFS
4900   test -z "$as_dir" && as_dir=.
4901   for ac_exec_ext in '' $ac_executable_extensions; do
4902   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4903     ac_cv_prog_ac_ct_CC="gcc"
4904     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4905     break 2
4906   fi
4907 done
4908 done
4909 IFS=$as_save_IFS
4910
4911 fi
4912 fi
4913 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4914 if test -n "$ac_ct_CC"; then
4915   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4916 echo "${ECHO_T}$ac_ct_CC" >&6; }
4917 else
4918   { echo "$as_me:$LINENO: result: no" >&5
4919 echo "${ECHO_T}no" >&6; }
4920 fi
4921
4922   if test "x$ac_ct_CC" = x; then
4923     CC=""
4924   else
4925     case $cross_compiling:$ac_tool_warned in
4926 yes:)
4927 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4928 whose name does not start with the host triplet.  If you think this
4929 configuration is useful to you, please write to autoconf@gnu.org." >&5
4930 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4931 whose name does not start with the host triplet.  If you think this
4932 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4933 ac_tool_warned=yes ;;
4934 esac
4935     CC=$ac_ct_CC
4936   fi
4937 else
4938   CC="$ac_cv_prog_CC"
4939 fi
4940
4941 if test -z "$CC"; then
4942           if test -n "$ac_tool_prefix"; then
4943     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4944 set dummy ${ac_tool_prefix}cc; ac_word=$2
4945 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4947 if test "${ac_cv_prog_CC+set}" = set; then
4948   echo $ECHO_N "(cached) $ECHO_C" >&6
4949 else
4950   if test -n "$CC"; then
4951   ac_cv_prog_CC="$CC" # Let the user override the test.
4952 else
4953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4954 for as_dir in $PATH
4955 do
4956   IFS=$as_save_IFS
4957   test -z "$as_dir" && as_dir=.
4958   for ac_exec_ext in '' $ac_executable_extensions; do
4959   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4960     ac_cv_prog_CC="${ac_tool_prefix}cc"
4961     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4962     break 2
4963   fi
4964 done
4965 done
4966 IFS=$as_save_IFS
4967
4968 fi
4969 fi
4970 CC=$ac_cv_prog_CC
4971 if test -n "$CC"; then
4972   { echo "$as_me:$LINENO: result: $CC" >&5
4973 echo "${ECHO_T}$CC" >&6; }
4974 else
4975   { echo "$as_me:$LINENO: result: no" >&5
4976 echo "${ECHO_T}no" >&6; }
4977 fi
4978
4979
4980   fi
4981 fi
4982 if test -z "$CC"; then
4983   # Extract the first word of "cc", so it can be a program name with args.
4984 set dummy cc; ac_word=$2
4985 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4986 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4987 if test "${ac_cv_prog_CC+set}" = set; then
4988   echo $ECHO_N "(cached) $ECHO_C" >&6
4989 else
4990   if test -n "$CC"; then
4991   ac_cv_prog_CC="$CC" # Let the user override the test.
4992 else
4993   ac_prog_rejected=no
4994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4995 for as_dir in $PATH
4996 do
4997   IFS=$as_save_IFS
4998   test -z "$as_dir" && as_dir=.
4999   for ac_exec_ext in '' $ac_executable_extensions; do
5000   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5001     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5002        ac_prog_rejected=yes
5003        continue
5004      fi
5005     ac_cv_prog_CC="cc"
5006     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5007     break 2
5008   fi
5009 done
5010 done
5011 IFS=$as_save_IFS
5012
5013 if test $ac_prog_rejected = yes; then
5014   # We found a bogon in the path, so make sure we never use it.
5015   set dummy $ac_cv_prog_CC
5016   shift
5017   if test $@%:@ != 0; then
5018     # We chose a different compiler from the bogus one.
5019     # However, it has the same basename, so the bogon will be chosen
5020     # first if we set CC to just the basename; use the full file name.
5021     shift
5022     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5023   fi
5024 fi
5025 fi
5026 fi
5027 CC=$ac_cv_prog_CC
5028 if test -n "$CC"; then
5029   { echo "$as_me:$LINENO: result: $CC" >&5
5030 echo "${ECHO_T}$CC" >&6; }
5031 else
5032   { echo "$as_me:$LINENO: result: no" >&5
5033 echo "${ECHO_T}no" >&6; }
5034 fi
5035
5036
5037 fi
5038 if test -z "$CC"; then
5039   if test -n "$ac_tool_prefix"; then
5040   for ac_prog in cl.exe
5041   do
5042     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5043 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5044 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5045 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5046 if test "${ac_cv_prog_CC+set}" = set; then
5047   echo $ECHO_N "(cached) $ECHO_C" >&6
5048 else
5049   if test -n "$CC"; then
5050   ac_cv_prog_CC="$CC" # Let the user override the test.
5051 else
5052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5053 for as_dir in $PATH
5054 do
5055   IFS=$as_save_IFS
5056   test -z "$as_dir" && as_dir=.
5057   for ac_exec_ext in '' $ac_executable_extensions; do
5058   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5059     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5060     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5061     break 2
5062   fi
5063 done
5064 done
5065 IFS=$as_save_IFS
5066
5067 fi
5068 fi
5069 CC=$ac_cv_prog_CC
5070 if test -n "$CC"; then
5071   { echo "$as_me:$LINENO: result: $CC" >&5
5072 echo "${ECHO_T}$CC" >&6; }
5073 else
5074   { echo "$as_me:$LINENO: result: no" >&5
5075 echo "${ECHO_T}no" >&6; }
5076 fi
5077
5078
5079     test -n "$CC" && break
5080   done
5081 fi
5082 if test -z "$CC"; then
5083   ac_ct_CC=$CC
5084   for ac_prog in cl.exe
5085 do
5086   # Extract the first word of "$ac_prog", so it can be a program name with args.
5087 set dummy $ac_prog; ac_word=$2
5088 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5089 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5090 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5091   echo $ECHO_N "(cached) $ECHO_C" >&6
5092 else
5093   if test -n "$ac_ct_CC"; then
5094   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5095 else
5096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5097 for as_dir in $PATH
5098 do
5099   IFS=$as_save_IFS
5100   test -z "$as_dir" && as_dir=.
5101   for ac_exec_ext in '' $ac_executable_extensions; do
5102   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5103     ac_cv_prog_ac_ct_CC="$ac_prog"
5104     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5105     break 2
5106   fi
5107 done
5108 done
5109 IFS=$as_save_IFS
5110
5111 fi
5112 fi
5113 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5114 if test -n "$ac_ct_CC"; then
5115   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5116 echo "${ECHO_T}$ac_ct_CC" >&6; }
5117 else
5118   { echo "$as_me:$LINENO: result: no" >&5
5119 echo "${ECHO_T}no" >&6; }
5120 fi
5121
5122
5123   test -n "$ac_ct_CC" && break
5124 done
5125
5126   if test "x$ac_ct_CC" = x; then
5127     CC=""
5128   else
5129     case $cross_compiling:$ac_tool_warned in
5130 yes:)
5131 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5132 whose name does not start with the host triplet.  If you think this
5133 configuration is useful to you, please write to autoconf@gnu.org." >&5
5134 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5135 whose name does not start with the host triplet.  If you think this
5136 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5137 ac_tool_warned=yes ;;
5138 esac
5139     CC=$ac_ct_CC
5140   fi
5141 fi
5142
5143 fi
5144
5145
5146 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5147 See \`config.log' for more details." >&5
5148 echo "$as_me: error: no acceptable C compiler found in \$PATH
5149 See \`config.log' for more details." >&2;}
5150    { (exit 1); exit 1; }; }
5151
5152 # Provide some information about the compiler.
5153 echo "$as_me:$LINENO: checking for C compiler version" >&5
5154 ac_compiler=`set X $ac_compile; echo $2`
5155 { (ac_try="$ac_compiler --version >&5"
5156 case "(($ac_try" in
5157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5158   *) ac_try_echo=$ac_try;;
5159 esac
5160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5161   (eval "$ac_compiler --version >&5") 2>&5
5162   ac_status=$?
5163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5164   (exit $ac_status); }
5165 { (ac_try="$ac_compiler -v >&5"
5166 case "(($ac_try" in
5167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5168   *) ac_try_echo=$ac_try;;
5169 esac
5170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5171   (eval "$ac_compiler -v >&5") 2>&5
5172   ac_status=$?
5173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5174   (exit $ac_status); }
5175 { (ac_try="$ac_compiler -V >&5"
5176 case "(($ac_try" in
5177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5178   *) ac_try_echo=$ac_try;;
5179 esac
5180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5181   (eval "$ac_compiler -V >&5") 2>&5
5182   ac_status=$?
5183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5184   (exit $ac_status); }
5185
5186 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5187 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5188 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5189   echo $ECHO_N "(cached) $ECHO_C" >&6
5190 else
5191   cat >conftest.$ac_ext <<_ACEOF
5192 /* confdefs.h.  */
5193 _ACEOF
5194 cat confdefs.h >>conftest.$ac_ext
5195 cat >>conftest.$ac_ext <<_ACEOF
5196 /* end confdefs.h.  */
5197
5198 int
5199 main ()
5200 {
5201 #ifndef __GNUC__
5202        choke me
5203 #endif
5204
5205   ;
5206   return 0;
5207 }
5208 _ACEOF
5209 rm -f conftest.$ac_objext
5210 if { (ac_try="$ac_compile"
5211 case "(($ac_try" in
5212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5213   *) ac_try_echo=$ac_try;;
5214 esac
5215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5216   (eval "$ac_compile") 2>conftest.er1
5217   ac_status=$?
5218   grep -v '^ *+' conftest.er1 >conftest.err
5219   rm -f conftest.er1
5220   cat conftest.err >&5
5221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5222   (exit $ac_status); } && {
5223          test -z "$ac_c_werror_flag" ||
5224          test ! -s conftest.err
5225        } && test -s conftest.$ac_objext; then
5226   ac_compiler_gnu=yes
5227 else
5228   echo "$as_me: failed program was:" >&5
5229 sed 's/^/| /' conftest.$ac_ext >&5
5230
5231         ac_compiler_gnu=no
5232 fi
5233
5234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5235 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5236
5237 fi
5238 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5239 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5240 GCC=`test $ac_compiler_gnu = yes && echo yes`
5241 ac_test_CFLAGS=${CFLAGS+set}
5242 ac_save_CFLAGS=$CFLAGS
5243 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5244 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5245 if test "${ac_cv_prog_cc_g+set}" = set; then
5246   echo $ECHO_N "(cached) $ECHO_C" >&6
5247 else
5248   ac_save_c_werror_flag=$ac_c_werror_flag
5249    ac_c_werror_flag=yes
5250    ac_cv_prog_cc_g=no
5251    CFLAGS="-g"
5252    cat >conftest.$ac_ext <<_ACEOF
5253 /* confdefs.h.  */
5254 _ACEOF
5255 cat confdefs.h >>conftest.$ac_ext
5256 cat >>conftest.$ac_ext <<_ACEOF
5257 /* end confdefs.h.  */
5258
5259 int
5260 main ()
5261 {
5262
5263   ;
5264   return 0;
5265 }
5266 _ACEOF
5267 rm -f conftest.$ac_objext
5268 if { (ac_try="$ac_compile"
5269 case "(($ac_try" in
5270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5271   *) ac_try_echo=$ac_try;;
5272 esac
5273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5274   (eval "$ac_compile") 2>conftest.er1
5275   ac_status=$?
5276   grep -v '^ *+' conftest.er1 >conftest.err
5277   rm -f conftest.er1
5278   cat conftest.err >&5
5279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5280   (exit $ac_status); } && {
5281          test -z "$ac_c_werror_flag" ||
5282          test ! -s conftest.err
5283        } && test -s conftest.$ac_objext; then
5284   ac_cv_prog_cc_g=yes
5285 else
5286   echo "$as_me: failed program was:" >&5
5287 sed 's/^/| /' conftest.$ac_ext >&5
5288
5289         CFLAGS=""
5290       cat >conftest.$ac_ext <<_ACEOF
5291 /* confdefs.h.  */
5292 _ACEOF
5293 cat confdefs.h >>conftest.$ac_ext
5294 cat >>conftest.$ac_ext <<_ACEOF
5295 /* end confdefs.h.  */
5296
5297 int
5298 main ()
5299 {
5300
5301   ;
5302   return 0;
5303 }
5304 _ACEOF
5305 rm -f conftest.$ac_objext
5306 if { (ac_try="$ac_compile"
5307 case "(($ac_try" in
5308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5309   *) ac_try_echo=$ac_try;;
5310 esac
5311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5312   (eval "$ac_compile") 2>conftest.er1
5313   ac_status=$?
5314   grep -v '^ *+' conftest.er1 >conftest.err
5315   rm -f conftest.er1
5316   cat conftest.err >&5
5317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5318   (exit $ac_status); } && {
5319          test -z "$ac_c_werror_flag" ||
5320          test ! -s conftest.err
5321        } && test -s conftest.$ac_objext; then
5322   :
5323 else
5324   echo "$as_me: failed program was:" >&5
5325 sed 's/^/| /' conftest.$ac_ext >&5
5326
5327         ac_c_werror_flag=$ac_save_c_werror_flag
5328          CFLAGS="-g"
5329          cat >conftest.$ac_ext <<_ACEOF
5330 /* confdefs.h.  */
5331 _ACEOF
5332 cat confdefs.h >>conftest.$ac_ext
5333 cat >>conftest.$ac_ext <<_ACEOF
5334 /* end confdefs.h.  */
5335
5336 int
5337 main ()
5338 {
5339
5340   ;
5341   return 0;
5342 }
5343 _ACEOF
5344 rm -f conftest.$ac_objext
5345 if { (ac_try="$ac_compile"
5346 case "(($ac_try" in
5347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5348   *) ac_try_echo=$ac_try;;
5349 esac
5350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5351   (eval "$ac_compile") 2>conftest.er1
5352   ac_status=$?
5353   grep -v '^ *+' conftest.er1 >conftest.err
5354   rm -f conftest.er1
5355   cat conftest.err >&5
5356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5357   (exit $ac_status); } && {
5358          test -z "$ac_c_werror_flag" ||
5359          test ! -s conftest.err
5360        } && test -s conftest.$ac_objext; then
5361   ac_cv_prog_cc_g=yes
5362 else
5363   echo "$as_me: failed program was:" >&5
5364 sed 's/^/| /' conftest.$ac_ext >&5
5365
5366         
5367 fi
5368
5369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5370 fi
5371
5372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5373 fi
5374
5375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5376    ac_c_werror_flag=$ac_save_c_werror_flag
5377 fi
5378 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5379 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5380 if test "$ac_test_CFLAGS" = set; then
5381   CFLAGS=$ac_save_CFLAGS
5382 elif test $ac_cv_prog_cc_g = yes; then
5383   if test "$GCC" = yes; then
5384     CFLAGS="-g -O2"
5385   else
5386     CFLAGS="-g"
5387   fi
5388 else
5389   if test "$GCC" = yes; then
5390     CFLAGS="-O2"
5391   else
5392     CFLAGS=
5393   fi
5394 fi
5395 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5396 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5397 if test "${ac_cv_prog_cc_c89+set}" = set; then
5398   echo $ECHO_N "(cached) $ECHO_C" >&6
5399 else
5400   ac_cv_prog_cc_c89=no
5401 ac_save_CC=$CC
5402 cat >conftest.$ac_ext <<_ACEOF
5403 /* confdefs.h.  */
5404 _ACEOF
5405 cat confdefs.h >>conftest.$ac_ext
5406 cat >>conftest.$ac_ext <<_ACEOF
5407 /* end confdefs.h.  */
5408 #include <stdarg.h>
5409 #include <stdio.h>
5410 #include <sys/types.h>
5411 #include <sys/stat.h>
5412 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5413 struct buf { int x; };
5414 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5415 static char *e (p, i)
5416      char **p;
5417      int i;
5418 {
5419   return p[i];
5420 }
5421 static char *f (char * (*g) (char **, int), char **p, ...)
5422 {
5423   char *s;
5424   va_list v;
5425   va_start (v,p);
5426   s = g (p, va_arg (v,int));
5427   va_end (v);
5428   return s;
5429 }
5430
5431 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5432    function prototypes and stuff, but not '\xHH' hex character constants.
5433    These don't provoke an error unfortunately, instead are silently treated
5434    as 'x'.  The following induces an error, until -std is added to get
5435    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5436    array size at least.  It's necessary to write '\x00'==0 to get something
5437    that's true only with -std.  */
5438 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5439
5440 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5441    inside strings and character constants.  */
5442 #define FOO(x) 'x'
5443 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5444
5445 int test (int i, double x);
5446 struct s1 {int (*f) (int a);};
5447 struct s2 {int (*f) (double a);};
5448 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5449 int argc;
5450 char **argv;
5451 int
5452 main ()
5453 {
5454 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5455   ;
5456   return 0;
5457 }
5458 _ACEOF
5459 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5460         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5461 do
5462   CC="$ac_save_CC $ac_arg"
5463   rm -f conftest.$ac_objext
5464 if { (ac_try="$ac_compile"
5465 case "(($ac_try" in
5466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5467   *) ac_try_echo=$ac_try;;
5468 esac
5469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5470   (eval "$ac_compile") 2>conftest.er1
5471   ac_status=$?
5472   grep -v '^ *+' conftest.er1 >conftest.err
5473   rm -f conftest.er1
5474   cat conftest.err >&5
5475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5476   (exit $ac_status); } && {
5477          test -z "$ac_c_werror_flag" ||
5478          test ! -s conftest.err
5479        } && test -s conftest.$ac_objext; then
5480   ac_cv_prog_cc_c89=$ac_arg
5481 else
5482   echo "$as_me: failed program was:" >&5
5483 sed 's/^/| /' conftest.$ac_ext >&5
5484
5485         
5486 fi
5487
5488 rm -f core conftest.err conftest.$ac_objext 
5489   test "x$ac_cv_prog_cc_c89" != "xno" && break
5490 done
5491 rm -f conftest.$ac_ext
5492 CC=$ac_save_CC
5493
5494 fi
5495 # AC_CACHE_VAL
5496 case "x$ac_cv_prog_cc_c89" in
5497   x)
5498     { echo "$as_me:$LINENO: result: none needed" >&5
5499 echo "${ECHO_T}none needed" >&6; } ;;
5500   xno)
5501     { echo "$as_me:$LINENO: result: unsupported" >&5
5502 echo "${ECHO_T}unsupported" >&6; } ;;
5503   *)
5504     CC="$CC $ac_cv_prog_cc_c89"
5505     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5506 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5507 esac
5508
5509
5510 ac_ext=c
5511 ac_cpp='$CPP $CPPFLAGS'
5512 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5513 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5514 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5515
5516 depcc="$CC"   am_compiler_list=
5517
5518 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5519 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5520 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5521   echo $ECHO_N "(cached) $ECHO_C" >&6
5522 else
5523   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5524   # We make a subdir and do the tests there.  Otherwise we can end up
5525   # making bogus files that we don't know about and never remove.  For
5526   # instance it was reported that on HP-UX the gcc test will end up
5527   # making a dummy file named `D' -- because `-MD' means `put the output
5528   # in D'.
5529   mkdir conftest.dir
5530   # Copy depcomp to subdir because otherwise we won't find it if we're
5531   # using a relative directory.
5532   cp "$am_depcomp" conftest.dir
5533   cd conftest.dir
5534   # We will build objects and dependencies in a subdirectory because
5535   # it helps to detect inapplicable dependency modes.  For instance
5536   # both Tru64's cc and ICC support -MD to output dependencies as a
5537   # side effect of compilation, but ICC will put the dependencies in
5538   # the current directory while Tru64 will put them in the object
5539   # directory.
5540   mkdir sub
5541
5542   am_cv_CC_dependencies_compiler_type=none
5543   if test "$am_compiler_list" = ""; then
5544      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5545   fi
5546   for depmode in $am_compiler_list; do
5547     # Setup a source with many dependencies, because some compilers
5548     # like to wrap large dependency lists on column 80 (with \), and
5549     # we should not choose a depcomp mode which is confused by this.
5550     #
5551     # We need to recreate these files for each test, as the compiler may
5552     # overwrite some of them when testing with obscure command lines.
5553     # This happens at least with the AIX C compiler.
5554     : > sub/conftest.c
5555     for i in 1 2 3 4 5 6; do
5556       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5557       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5558       # Solaris 8's {/usr,}/bin/sh.
5559       touch sub/conftst$i.h
5560     done
5561     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5562
5563     case $depmode in
5564     nosideeffect)
5565       # after this tag, mechanisms are not by side-effect, so they'll
5566       # only be used when explicitly requested
5567       if test "x$enable_dependency_tracking" = xyes; then
5568         continue
5569       else
5570         break
5571       fi
5572       ;;
5573     none) break ;;
5574     esac
5575     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5576     # mode.  It turns out that the SunPro C++ compiler does not properly
5577     # handle `-M -o', and we need to detect this.
5578     if depmode=$depmode \
5579        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5580        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5581        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5582          >/dev/null 2>conftest.err &&
5583        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5584        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5585        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5586       # icc doesn't choke on unknown options, it will just issue warnings
5587       # or remarks (even with -Werror).  So we grep stderr for any message
5588       # that says an option was ignored or not supported.
5589       # When given -MP, icc 7.0 and 7.1 complain thusly:
5590       #   icc: Command line warning: ignoring option '-M'; no argument required
5591       # The diagnosis changed in icc 8.0:
5592       #   icc: Command line remark: option '-MP' not supported
5593       if (grep 'ignoring option' conftest.err ||
5594           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5595         am_cv_CC_dependencies_compiler_type=$depmode
5596         break
5597       fi
5598     fi
5599   done
5600
5601   cd ..
5602   rm -rf conftest.dir
5603 else
5604   am_cv_CC_dependencies_compiler_type=none
5605 fi
5606
5607 fi
5608 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5609 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
5610 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5611
5612  
5613
5614 if 
5615   test "x$enable_dependency_tracking" != xno \
5616   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5617   am__fastdepCC_TRUE=
5618   am__fastdepCC_FALSE='#'
5619 else
5620   am__fastdepCC_TRUE='#'
5621   am__fastdepCC_FALSE=
5622 fi
5623
5624
5625 ac_ext=c
5626 ac_cpp='$CPP $CPPFLAGS'
5627 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5628 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5629 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5630 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5631 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5632 # On Suns, sometimes $CPP names a directory.
5633 if test -n "$CPP" && test -d "$CPP"; then
5634   CPP=
5635 fi
5636 if test -z "$CPP"; then
5637   if test "${ac_cv_prog_CPP+set}" = set; then
5638   echo $ECHO_N "(cached) $ECHO_C" >&6
5639 else
5640       # Double quotes because CPP needs to be expanded
5641     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5642     do
5643       ac_preproc_ok=false
5644 for ac_c_preproc_warn_flag in '' yes
5645 do
5646   # Use a header file that comes with gcc, so configuring glibc
5647   # with a fresh cross-compiler works.
5648   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5649   # <limits.h> exists even on freestanding compilers.
5650   # On the NeXT, cc -E runs the code through the compiler's parser,
5651   # not just through cpp. "Syntax error" is here to catch this case.
5652   cat >conftest.$ac_ext <<_ACEOF
5653 /* confdefs.h.  */
5654 _ACEOF
5655 cat confdefs.h >>conftest.$ac_ext
5656 cat >>conftest.$ac_ext <<_ACEOF
5657 /* end confdefs.h.  */
5658 @%:@ifdef __STDC__
5659 @%:@ include <limits.h>
5660 @%:@else
5661 @%:@ include <assert.h>
5662 @%:@endif
5663                      Syntax error
5664 _ACEOF
5665 if { (ac_try="$ac_cpp conftest.$ac_ext"
5666 case "(($ac_try" in
5667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5668   *) ac_try_echo=$ac_try;;
5669 esac
5670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5671   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5672   ac_status=$?
5673   grep -v '^ *+' conftest.er1 >conftest.err
5674   rm -f conftest.er1
5675   cat conftest.err >&5
5676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5677   (exit $ac_status); } >/dev/null && {
5678          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5679          test ! -s conftest.err
5680        }; then
5681   :
5682 else
5683   echo "$as_me: failed program was:" >&5
5684 sed 's/^/| /' conftest.$ac_ext >&5
5685
5686   # Broken: fails on valid input.
5687 continue
5688 fi
5689
5690 rm -f conftest.err conftest.$ac_ext
5691
5692   # OK, works on sane cases.  Now check whether nonexistent headers
5693   # can be detected and how.
5694   cat >conftest.$ac_ext <<_ACEOF
5695 /* confdefs.h.  */
5696 _ACEOF
5697 cat confdefs.h >>conftest.$ac_ext
5698 cat >>conftest.$ac_ext <<_ACEOF
5699 /* end confdefs.h.  */
5700 @%:@include <ac_nonexistent.h>
5701 _ACEOF
5702 if { (ac_try="$ac_cpp conftest.$ac_ext"
5703 case "(($ac_try" in
5704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5705   *) ac_try_echo=$ac_try;;
5706 esac
5707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5708   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5709   ac_status=$?
5710   grep -v '^ *+' conftest.er1 >conftest.err
5711   rm -f conftest.er1
5712   cat conftest.err >&5
5713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5714   (exit $ac_status); } >/dev/null && {
5715          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5716          test ! -s conftest.err
5717        }; then
5718   # Broken: success on invalid input.
5719 continue
5720 else
5721   echo "$as_me: failed program was:" >&5
5722 sed 's/^/| /' conftest.$ac_ext >&5
5723
5724   # Passes both tests.
5725 ac_preproc_ok=:
5726 break
5727 fi
5728
5729 rm -f conftest.err conftest.$ac_ext
5730
5731 done
5732 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5733 rm -f conftest.err conftest.$ac_ext
5734 if $ac_preproc_ok; then
5735   break
5736 fi
5737
5738     done
5739     ac_cv_prog_CPP=$CPP
5740   
5741 fi
5742   CPP=$ac_cv_prog_CPP
5743 else
5744   ac_cv_prog_CPP=$CPP
5745 fi
5746 { echo "$as_me:$LINENO: result: $CPP" >&5
5747 echo "${ECHO_T}$CPP" >&6; }
5748 ac_preproc_ok=false
5749 for ac_c_preproc_warn_flag in '' yes
5750 do
5751   # Use a header file that comes with gcc, so configuring glibc
5752   # with a fresh cross-compiler works.
5753   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5754   # <limits.h> exists even on freestanding compilers.
5755   # On the NeXT, cc -E runs the code through the compiler's parser,
5756   # not just through cpp. "Syntax error" is here to catch this case.
5757   cat >conftest.$ac_ext <<_ACEOF
5758 /* confdefs.h.  */
5759 _ACEOF
5760 cat confdefs.h >>conftest.$ac_ext
5761 cat >>conftest.$ac_ext <<_ACEOF
5762 /* end confdefs.h.  */
5763 @%:@ifdef __STDC__
5764 @%:@ include <limits.h>
5765 @%:@else
5766 @%:@ include <assert.h>
5767 @%:@endif
5768                      Syntax error
5769 _ACEOF
5770 if { (ac_try="$ac_cpp conftest.$ac_ext"
5771 case "(($ac_try" in
5772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5773   *) ac_try_echo=$ac_try;;
5774 esac
5775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5776   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5777   ac_status=$?
5778   grep -v '^ *+' conftest.er1 >conftest.err
5779   rm -f conftest.er1
5780   cat conftest.err >&5
5781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5782   (exit $ac_status); } >/dev/null && {
5783          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5784          test ! -s conftest.err
5785        }; then
5786   :
5787 else
5788   echo "$as_me: failed program was:" >&5
5789 sed 's/^/| /' conftest.$ac_ext >&5
5790
5791   # Broken: fails on valid input.
5792 continue
5793 fi
5794
5795 rm -f conftest.err conftest.$ac_ext
5796
5797   # OK, works on sane cases.  Now check whether nonexistent headers
5798   # can be detected and how.
5799   cat >conftest.$ac_ext <<_ACEOF
5800 /* confdefs.h.  */
5801 _ACEOF
5802 cat confdefs.h >>conftest.$ac_ext
5803 cat >>conftest.$ac_ext <<_ACEOF
5804 /* end confdefs.h.  */
5805 @%:@include <ac_nonexistent.h>
5806 _ACEOF
5807 if { (ac_try="$ac_cpp conftest.$ac_ext"
5808 case "(($ac_try" in
5809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5810   *) ac_try_echo=$ac_try;;
5811 esac
5812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5813   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5814   ac_status=$?
5815   grep -v '^ *+' conftest.er1 >conftest.err
5816   rm -f conftest.er1
5817   cat conftest.err >&5
5818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5819   (exit $ac_status); } >/dev/null && {
5820          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5821          test ! -s conftest.err
5822        }; then
5823   # Broken: success on invalid input.
5824 continue
5825 else
5826   echo "$as_me: failed program was:" >&5
5827 sed 's/^/| /' conftest.$ac_ext >&5
5828
5829   # Passes both tests.
5830 ac_preproc_ok=:
5831 break
5832 fi
5833
5834 rm -f conftest.err conftest.$ac_ext
5835
5836 done
5837 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5838 rm -f conftest.err conftest.$ac_ext
5839 if $ac_preproc_ok; then
5840   :
5841 else
5842   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5843 See \`config.log' for more details." >&5
5844 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5845 See \`config.log' for more details." >&2;}
5846    { (exit 1); exit 1; }; }
5847 fi
5848
5849 ac_ext=c
5850 ac_cpp='$CPP $CPPFLAGS'
5851 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5852 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5853 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5854
5855 # Find a good install program.  We prefer a C program (faster),
5856 # so one script is as good as another.  But avoid the broken or
5857 # incompatible versions:
5858 # SysV /etc/install, /usr/sbin/install
5859 # SunOS /usr/etc/install
5860 # IRIX /sbin/install
5861 # AIX /bin/install
5862 # AmigaOS /C/install, which installs bootblocks on floppy discs
5863 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5864 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5865 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5866 # OS/2's system install, which has a completely different semantic
5867 # ./install, which can be erroneously created by make from ./install.sh.
5868 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5869 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
5870 if test -z "$INSTALL"; then
5871 if test "${ac_cv_path_install+set}" = set; then
5872   echo $ECHO_N "(cached) $ECHO_C" >&6
5873 else
5874   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5875 for as_dir in $PATH
5876 do
5877   IFS=$as_save_IFS
5878   test -z "$as_dir" && as_dir=.
5879   # Account for people who put trailing slashes in PATH elements.
5880 case $as_dir/ in
5881   ./ | .// | /cC/* | \
5882   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5883   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5884   /usr/ucb/* ) ;;
5885   *)
5886     # OSF1 and SCO ODT 3.0 have their own names for install.
5887     # Don't use installbsd from OSF since it installs stuff as root
5888     # by default.
5889     for ac_prog in ginstall scoinst install; do
5890       for ac_exec_ext in '' $ac_executable_extensions; do
5891         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5892           if test $ac_prog = install &&
5893             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5894             # AIX install.  It has an incompatible calling convention.
5895             :
5896           elif test $ac_prog = install &&
5897             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5898             # program-specific install script used by HP pwplus--don't use.
5899             :
5900           else
5901             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5902             break 3
5903           fi
5904         fi
5905       done
5906     done
5907     ;;
5908 esac
5909 done
5910 IFS=$as_save_IFS
5911
5912
5913 fi
5914   if test "${ac_cv_path_install+set}" = set; then
5915     INSTALL=$ac_cv_path_install
5916   else
5917     # As a last resort, use the slow shell script.  Don't cache a
5918     # value for INSTALL within a source directory, because that will
5919     # break other packages using the cache if that directory is
5920     # removed, or if the value is a relative name.
5921     INSTALL=$ac_install_sh
5922   fi
5923 fi
5924 { echo "$as_me:$LINENO: result: $INSTALL" >&5
5925 echo "${ECHO_T}$INSTALL" >&6; }
5926
5927 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5928 # It thinks the first close brace ends the variable substitution.
5929 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5930
5931 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5932
5933 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5934
5935 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5936 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5937 LN_S=$as_ln_s
5938 if test "$LN_S" = "ln -s"; then
5939   { echo "$as_me:$LINENO: result: yes" >&5
5940 echo "${ECHO_T}yes" >&6; }
5941 else
5942   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5943 echo "${ECHO_T}no, using $LN_S" >&6; }
5944 fi
5945
5946 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5947 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
5948 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5949 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
5950   echo $ECHO_N "(cached) $ECHO_C" >&6
5951 else
5952   cat >conftest.make <<\_ACEOF
5953 SHELL = /bin/sh
5954 all:
5955         @echo '@@@%%%=$(MAKE)=@@@%%%'
5956 _ACEOF
5957 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5958 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5959   *@@@%%%=?*=@@@%%%*)
5960     eval ac_cv_prog_make_${ac_make}_set=yes;;
5961   *)
5962     eval ac_cv_prog_make_${ac_make}_set=no;;
5963 esac
5964 rm -f conftest.make
5965 fi
5966 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5967   { echo "$as_me:$LINENO: result: yes" >&5
5968 echo "${ECHO_T}yes" >&6; }
5969   SET_MAKE=
5970 else
5971   { echo "$as_me:$LINENO: result: no" >&5
5972 echo "${ECHO_T}no" >&6; }
5973   SET_MAKE="MAKE=${MAKE-make}"
5974 fi
5975
5976 # Check whether --enable-shared was given.
5977 if test "${enable_shared+set}" = set; then
5978   enableval=$enable_shared; p=${PACKAGE-default}
5979     case $enableval in
5980     yes) enable_shared=yes ;;
5981     no) enable_shared=no ;;
5982     *)
5983       enable_shared=no
5984       # Look at the argument we got.  We use all the common list separators.
5985       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5986       for pkg in $enableval; do
5987         IFS="$lt_save_ifs"
5988         if test "X$pkg" = "X$p"; then
5989           enable_shared=yes
5990         fi
5991       done
5992       IFS="$lt_save_ifs"
5993       ;;
5994     esac
5995 else
5996   enable_shared=yes
5997 fi
5998
5999
6000 # Check whether --enable-static was given.
6001 if test "${enable_static+set}" = set; then
6002   enableval=$enable_static; p=${PACKAGE-default}
6003     case $enableval in
6004     yes) enable_static=yes ;;
6005     no) enable_static=no ;;
6006     *)
6007      enable_static=no
6008       # Look at the argument we got.  We use all the common list separators.
6009       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6010       for pkg in $enableval; do
6011         IFS="$lt_save_ifs"
6012         if test "X$pkg" = "X$p"; then
6013           enable_static=yes
6014         fi
6015       done
6016       IFS="$lt_save_ifs"
6017       ;;
6018     esac
6019 else
6020   enable_static=yes
6021 fi
6022
6023
6024 # Check whether --enable-fast-install was given.
6025 if test "${enable_fast_install+set}" = set; then
6026   enableval=$enable_fast_install; p=${PACKAGE-default}
6027     case $enableval in
6028     yes) enable_fast_install=yes ;;
6029     no) enable_fast_install=no ;;
6030     *)
6031       enable_fast_install=no
6032       # Look at the argument we got.  We use all the common list separators.
6033       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6034       for pkg in $enableval; do
6035         IFS="$lt_save_ifs"
6036         if test "X$pkg" = "X$p"; then
6037           enable_fast_install=yes
6038         fi
6039       done
6040       IFS="$lt_save_ifs"
6041       ;;
6042     esac
6043 else
6044   enable_fast_install=yes
6045 fi
6046
6047
6048 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6049 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
6050 if test "${lt_cv_path_SED+set}" = set; then
6051   echo $ECHO_N "(cached) $ECHO_C" >&6
6052 else
6053   # Loop through the user's path and test for sed and gsed.
6054 # Then use that list of sed's as ones to test for truncation.
6055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6056 for as_dir in $PATH
6057 do
6058   IFS=$as_save_IFS
6059   test -z "$as_dir" && as_dir=.
6060   for lt_ac_prog in sed gsed; do
6061     for ac_exec_ext in '' $ac_executable_extensions; do
6062       if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
6063         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6064       fi
6065     done
6066   done
6067 done
6068 IFS=$as_save_IFS
6069 lt_ac_max=0
6070 lt_ac_count=0
6071 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
6072 # along with /bin/sed that truncates output.
6073 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6074   test ! -f $lt_ac_sed && continue
6075   cat /dev/null > conftest.in
6076   lt_ac_count=0
6077   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6078   # Check for GNU sed and select it if it is found.
6079   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6080     lt_cv_path_SED=$lt_ac_sed
6081     break
6082   fi
6083   while true; do
6084     cat conftest.in conftest.in >conftest.tmp
6085     mv conftest.tmp conftest.in
6086     cp conftest.in conftest.nl
6087     echo >>conftest.nl
6088     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6089     cmp -s conftest.out conftest.nl || break
6090     # 10000 chars as input seems more than enough
6091     test $lt_ac_count -gt 10 && break
6092     lt_ac_count=`expr $lt_ac_count + 1`
6093     if test $lt_ac_count -gt $lt_ac_max; then
6094       lt_ac_max=$lt_ac_count
6095       lt_cv_path_SED=$lt_ac_sed
6096     fi
6097   done
6098 done
6099
6100 fi
6101
6102 SED=$lt_cv_path_SED
6103
6104 { echo "$as_me:$LINENO: result: $SED" >&5
6105 echo "${ECHO_T}$SED" >&6; }
6106
6107 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
6108 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
6109 if test "${ac_cv_path_GREP+set}" = set; then
6110   echo $ECHO_N "(cached) $ECHO_C" >&6
6111 else
6112   # Extract the first word of "grep ggrep" to use in msg output
6113 if test -z "$GREP"; then
6114 set dummy grep ggrep; ac_prog_name=$2
6115 if test "${ac_cv_path_GREP+set}" = set; then
6116   echo $ECHO_N "(cached) $ECHO_C" >&6
6117 else
6118   ac_path_GREP_found=false
6119 # Loop through the user's path and test for each of PROGNAME-LIST
6120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6121 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6122 do
6123   IFS=$as_save_IFS
6124   test -z "$as_dir" && as_dir=.
6125   for ac_prog in grep ggrep; do
6126   for ac_exec_ext in '' $ac_executable_extensions; do
6127     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6128     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6129     # Check for GNU ac_path_GREP and select it if it is found.
6130   # Check for GNU $ac_path_GREP
6131 case `"$ac_path_GREP" --version 2>&1` in
6132 *GNU*)
6133   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6134 *)
6135   ac_count=0
6136   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6137   while :
6138   do
6139     cat "conftest.in" "conftest.in" >"conftest.tmp"
6140     mv "conftest.tmp" "conftest.in"
6141     cp "conftest.in" "conftest.nl"
6142     echo 'GREP' >> "conftest.nl"
6143     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6144     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6145     ac_count=`expr $ac_count + 1`
6146     if test $ac_count -gt ${ac_path_GREP_max-0}; then
6147       # Best one so far, save it but keep looking for a better one
6148       ac_cv_path_GREP="$ac_path_GREP"
6149       ac_path_GREP_max=$ac_count
6150     fi
6151     # 10*(2^10) chars as input seems more than enough
6152     test $ac_count -gt 10 && break
6153   done
6154   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6155 esac
6156
6157
6158     $ac_path_GREP_found && break 3
6159   done
6160 done
6161
6162 done
6163 IFS=$as_save_IFS
6164
6165
6166 fi
6167
6168 GREP="$ac_cv_path_GREP"
6169 if test -z "$GREP"; then
6170   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6171 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6172    { (exit 1); exit 1; }; }
6173 fi
6174
6175 else
6176   ac_cv_path_GREP=$GREP
6177 fi
6178
6179
6180 fi
6181 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
6182 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
6183  GREP="$ac_cv_path_GREP"
6184  
6185
6186 { echo "$as_me:$LINENO: checking for egrep" >&5
6187 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
6188 if test "${ac_cv_path_EGREP+set}" = set; then
6189   echo $ECHO_N "(cached) $ECHO_C" >&6
6190 else
6191   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6192    then ac_cv_path_EGREP="$GREP -E"
6193    else
6194      # Extract the first word of "egrep" to use in msg output
6195 if test -z "$EGREP"; then
6196 set dummy egrep; ac_prog_name=$2
6197 if test "${ac_cv_path_EGREP+set}" = set; then
6198   echo $ECHO_N "(cached) $ECHO_C" >&6
6199 else
6200   ac_path_EGREP_found=false
6201 # Loop through the user's path and test for each of PROGNAME-LIST
6202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6203 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6204 do
6205   IFS=$as_save_IFS
6206   test -z "$as_dir" && as_dir=.
6207   for ac_prog in egrep; do
6208   for ac_exec_ext in '' $ac_executable_extensions; do
6209     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6210     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6211     # Check for GNU ac_path_EGREP and select it if it is found.
6212   # Check for GNU $ac_path_EGREP
6213 case `"$ac_path_EGREP" --version 2>&1` in
6214 *GNU*)
6215   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6216 *)
6217   ac_count=0
6218   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6219   while :
6220   do
6221     cat "conftest.in" "conftest.in" >"conftest.tmp"
6222     mv "conftest.tmp" "conftest.in"
6223     cp "conftest.in" "conftest.nl"
6224     echo 'EGREP' >> "conftest.nl"
6225     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6226     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6227     ac_count=`expr $ac_count + 1`
6228     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6229       # Best one so far, save it but keep looking for a better one
6230       ac_cv_path_EGREP="$ac_path_EGREP"
6231       ac_path_EGREP_max=$ac_count
6232     fi
6233     # 10*(2^10) chars as input seems more than enough
6234     test $ac_count -gt 10 && break
6235   done
6236   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6237 esac
6238
6239
6240     $ac_path_EGREP_found && break 3
6241   done
6242 done
6243
6244 done
6245 IFS=$as_save_IFS
6246
6247
6248 fi
6249
6250 EGREP="$ac_cv_path_EGREP"
6251 if test -z "$EGREP"; then
6252   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6253 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6254    { (exit 1); exit 1; }; }
6255 fi
6256
6257 else
6258   ac_cv_path_EGREP=$EGREP
6259 fi
6260
6261
6262    fi
6263 fi
6264 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6265 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
6266  EGREP="$ac_cv_path_EGREP"
6267  
6268
6269
6270 # Check whether --with-gnu-ld was given.
6271 if test "${with_gnu_ld+set}" = set; then
6272   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6273 else
6274   with_gnu_ld=no
6275 fi
6276
6277 ac_prog=ld
6278 if test "$GCC" = yes; then
6279   # Check if gcc -print-prog-name=ld gives a path.
6280   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6281 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
6282   case $host in
6283   *-*-mingw*)
6284     # gcc leaves a trailing carriage return which upsets mingw
6285     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6286   *)
6287     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6288   esac
6289   case $ac_prog in
6290     # Accept absolute paths.
6291     [\\/]* | ?:[\\/]*)
6292       re_direlt='/[^/][^/]*/\.\./'
6293       # Canonicalize the pathname of ld
6294       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6295       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6296         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6297       done
6298       test -z "$LD" && LD="$ac_prog"
6299       ;;
6300   "")
6301     # If it fails, then pretend we aren't using GCC.
6302     ac_prog=ld
6303     ;;
6304   *)
6305     # If it is relative, then search for the first ld in PATH.
6306     with_gnu_ld=unknown
6307     ;;
6308   esac
6309 elif test "$with_gnu_ld" = yes; then
6310   { echo "$as_me:$LINENO: checking for GNU ld" >&5
6311 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6312 else
6313   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6314 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6315 fi
6316 if test "${lt_cv_path_LD+set}" = set; then
6317   echo $ECHO_N "(cached) $ECHO_C" >&6
6318 else
6319   if test -z "$LD"; then
6320   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6321   for ac_dir in $PATH; do
6322     IFS="$lt_save_ifs"
6323     test -z "$ac_dir" && ac_dir=.
6324     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6325       lt_cv_path_LD="$ac_dir/$ac_prog"
6326       # Check to see if the program is GNU ld.  I'd rather use --version,
6327       # but apparently some variants of GNU ld only accept -v.
6328       # Break only if it was the GNU/non-GNU ld that we prefer.
6329       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6330       *GNU* | *'with BFD'*)
6331         test "$with_gnu_ld" != no && break
6332         ;;
6333       *)
6334         test "$with_gnu_ld" != yes && break
6335         ;;
6336       esac
6337     fi
6338   done
6339   IFS="$lt_save_ifs"
6340 else
6341   lt_cv_path_LD="$LD" # Let the user override the test with a path.
6342 fi
6343 fi
6344
6345 LD="$lt_cv_path_LD"
6346 if test -n "$LD"; then
6347   { echo "$as_me:$LINENO: result: $LD" >&5
6348 echo "${ECHO_T}$LD" >&6; }
6349 else
6350   { echo "$as_me:$LINENO: result: no" >&5
6351 echo "${ECHO_T}no" >&6; }
6352 fi
6353 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6354 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6355    { (exit 1); exit 1; }; }
6356 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6357 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6358 if test "${lt_cv_prog_gnu_ld+set}" = set; then
6359   echo $ECHO_N "(cached) $ECHO_C" >&6
6360 else
6361   # I'd rather use --version here, but apparently some GNU lds only accept -v.
6362 case `$LD -v 2>&1 </dev/null` in
6363 *GNU* | *'with BFD'*)
6364   lt_cv_prog_gnu_ld=yes
6365   ;;
6366 *)
6367   lt_cv_prog_gnu_ld=no
6368   ;;
6369 esac
6370 fi
6371 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6372 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
6373 with_gnu_ld=$lt_cv_prog_gnu_ld
6374
6375
6376 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6377 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6378 if test "${lt_cv_ld_reload_flag+set}" = set; then
6379   echo $ECHO_N "(cached) $ECHO_C" >&6
6380 else
6381   lt_cv_ld_reload_flag='-r'
6382 fi
6383 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6384 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6385 reload_flag=$lt_cv_ld_reload_flag
6386 case $reload_flag in
6387 "" | " "*) ;;
6388 *) reload_flag=" $reload_flag" ;;
6389 esac
6390 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6391 case $host_os in
6392   darwin*)
6393     if test "$GCC" = yes; then
6394       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6395     else
6396       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6397     fi
6398     ;;
6399 esac
6400
6401 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6402 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6403 if test "${lt_cv_path_NM+set}" = set; then
6404   echo $ECHO_N "(cached) $ECHO_C" >&6
6405 else
6406   if test -n "$NM"; then
6407   # Let the user override the test.
6408   lt_cv_path_NM="$NM"
6409 else
6410   lt_nm_to_check="${ac_tool_prefix}nm"
6411   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6412     lt_nm_to_check="$lt_nm_to_check nm"
6413   fi
6414   for lt_tmp_nm in $lt_nm_to_check; do
6415     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6416     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6417       IFS="$lt_save_ifs"
6418       test -z "$ac_dir" && ac_dir=.
6419       tmp_nm="$ac_dir/$lt_tmp_nm"
6420       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6421         # Check to see if the nm accepts a BSD-compat flag.
6422         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6423         #   nm: unknown option "B" ignored
6424         # Tru64's nm complains that /dev/null is an invalid object file
6425         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6426         */dev/null* | *'Invalid file or object type'*)
6427           lt_cv_path_NM="$tmp_nm -B"
6428           break
6429           ;;
6430         *)
6431           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6432           */dev/null*)
6433             lt_cv_path_NM="$tmp_nm -p"
6434             break
6435             ;;
6436           *)
6437             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6438             continue # so that we can try to find one that supports BSD flags
6439             ;;
6440           esac
6441           ;;
6442         esac
6443       fi
6444     done
6445     IFS="$lt_save_ifs"
6446   done
6447   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6448 fi
6449 fi
6450 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6451 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6452 NM="$lt_cv_path_NM"
6453
6454 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6455 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
6456 if test "${lt_cv_deplibs_check_method+set}" = set; then
6457   echo $ECHO_N "(cached) $ECHO_C" >&6
6458 else
6459   lt_cv_file_magic_cmd='$MAGIC_CMD'
6460 lt_cv_file_magic_test_file=
6461 lt_cv_deplibs_check_method='unknown'
6462 # Need to set the preceding variable on all platforms that support
6463 # interlibrary dependencies.
6464 # 'none' -- dependencies not supported.
6465 # `unknown' -- same as none, but documents that we really don't know.
6466 # 'pass_all' -- all dependencies passed with no checks.
6467 # 'test_compile' -- check by making test program.
6468 # 'file_magic [[regex]]' -- check by looking for files in library path
6469 # which responds to the $file_magic_cmd with a given extended regex.
6470 # If you have `file' or equivalent on your system and you're not sure
6471 # whether `pass_all' will *always* work, you probably want this one.
6472
6473 case $host_os in
6474 aix4* | aix5*)
6475   lt_cv_deplibs_check_method=pass_all
6476   ;;
6477
6478 beos*)
6479   lt_cv_deplibs_check_method=pass_all
6480   ;;
6481
6482 bsdi[45]*)
6483   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6484   lt_cv_file_magic_cmd='/usr/bin/file -L'
6485   lt_cv_file_magic_test_file=/shlib/libc.so
6486   ;;
6487
6488 cygwin*)
6489   # func_win32_libid is a shell function defined in ltmain.sh
6490   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6491   lt_cv_file_magic_cmd='func_win32_libid'
6492   ;;
6493
6494 mingw* | pw32*)
6495   # Base MSYS/MinGW do not provide the 'file' command needed by
6496   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6497   # unless we find 'file', for example because we are cross-compiling.
6498   if ( file / ) >/dev/null 2>&1; then
6499     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6500     lt_cv_file_magic_cmd='func_win32_libid'
6501   else
6502     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6503     lt_cv_file_magic_cmd='$OBJDUMP -f'
6504   fi
6505   ;;
6506
6507 darwin* | rhapsody*)
6508   lt_cv_deplibs_check_method=pass_all
6509   ;;
6510
6511 freebsd* | dragonfly*)
6512   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6513     case $host_cpu in
6514     i*86 )
6515       # Not sure whether the presence of OpenBSD here was a mistake.
6516       # Let's accept both of them until this is cleared up.
6517       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6518       lt_cv_file_magic_cmd=/usr/bin/file
6519       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6520       ;;
6521     esac
6522   else
6523     lt_cv_deplibs_check_method=pass_all
6524   fi
6525   ;;
6526
6527 gnu*)
6528   lt_cv_deplibs_check_method=pass_all
6529   ;;
6530
6531 hpux10.20* | hpux11*)
6532   lt_cv_file_magic_cmd=/usr/bin/file
6533   case $host_cpu in
6534   ia64*)
6535     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6536     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6537     ;;
6538   hppa*64*)
6539     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]'
6540     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6541     ;;
6542   *)
6543     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6544     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6545     ;;
6546   esac
6547   ;;
6548
6549 interix[3-9]*)
6550   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6551   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6552   ;;
6553
6554 irix5* | irix6* | nonstopux*)
6555   case $LD in
6556   *-32|*"-32 ") libmagic=32-bit;;
6557   *-n32|*"-n32 ") libmagic=N32;;
6558   *-64|*"-64 ") libmagic=64-bit;;
6559   *) libmagic=never-match;;
6560   esac
6561   lt_cv_deplibs_check_method=pass_all
6562   ;;
6563
6564 # This must be Linux ELF.
6565 linux* | k*bsd*-gnu)
6566   lt_cv_deplibs_check_method=pass_all
6567   ;;
6568
6569 netbsd* | netbsdelf*-gnu)
6570   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6571     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6572   else
6573     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6574   fi
6575   ;;
6576
6577 newos6*)
6578   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6579   lt_cv_file_magic_cmd=/usr/bin/file
6580   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6581   ;;
6582
6583 nto-qnx*)
6584   lt_cv_deplibs_check_method=unknown
6585   ;;
6586
6587 openbsd*)
6588   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6589     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6590   else
6591     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6592   fi
6593   ;;
6594
6595 osf3* | osf4* | osf5*)
6596   lt_cv_deplibs_check_method=pass_all
6597   ;;
6598
6599 rdos*)
6600   lt_cv_deplibs_check_method=pass_all
6601   ;;
6602
6603 solaris*)
6604   lt_cv_deplibs_check_method=pass_all
6605   ;;
6606
6607 sysv4 | sysv4.3*)
6608   case $host_vendor in
6609   motorola)
6610     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]'
6611     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6612     ;;
6613   ncr)
6614     lt_cv_deplibs_check_method=pass_all
6615     ;;
6616   sequent)
6617     lt_cv_file_magic_cmd='/bin/file'
6618     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6619     ;;
6620   sni)
6621     lt_cv_file_magic_cmd='/bin/file'
6622     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6623     lt_cv_file_magic_test_file=/lib/libc.so
6624     ;;
6625   siemens)
6626     lt_cv_deplibs_check_method=pass_all
6627     ;;
6628   pc)
6629     lt_cv_deplibs_check_method=pass_all
6630     ;;
6631   esac
6632   ;;
6633
6634 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6635   lt_cv_deplibs_check_method=pass_all
6636   ;;
6637 esac
6638
6639 fi
6640 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6641 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6642 file_magic_cmd=$lt_cv_file_magic_cmd
6643 deplibs_check_method=$lt_cv_deplibs_check_method
6644 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6645
6646
6647
6648
6649 # If no C compiler was specified, use CC.
6650 LTCC=${LTCC-"$CC"}
6651
6652 # If no C compiler flags were specified, use CFLAGS.
6653 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6654
6655 # Allow CC to be a program name with arguments.
6656 compiler=$CC
6657
6658 # Check whether --enable-libtool-lock was given.
6659 if test "${enable_libtool_lock+set}" = set; then
6660   enableval=$enable_libtool_lock; 
6661 fi
6662
6663 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6664
6665 # Some flags need to be propagated to the compiler or linker for good
6666 # libtool support.
6667 case $host in
6668 ia64-*-hpux*)
6669   # Find out which ABI we are using.
6670   echo 'int i;' > conftest.$ac_ext
6671   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6672   (eval $ac_compile) 2>&5
6673   ac_status=$?
6674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6675   (exit $ac_status); }; then
6676     case `/usr/bin/file conftest.$ac_objext` in
6677     *ELF-32*)
6678       HPUX_IA64_MODE="32"
6679       ;;
6680     *ELF-64*)
6681       HPUX_IA64_MODE="64"
6682       ;;
6683     esac
6684   fi
6685   rm -rf conftest*
6686   ;;
6687 *-*-irix6*)
6688   # Find out which ABI we are using.
6689   echo '#line __oline__ "configure"' > conftest.$ac_ext
6690   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6691   (eval $ac_compile) 2>&5
6692   ac_status=$?
6693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6694   (exit $ac_status); }; then
6695    if test "$lt_cv_prog_gnu_ld" = yes; then
6696     case `/usr/bin/file conftest.$ac_objext` in
6697     *32-bit*)
6698       LD="${LD-ld} -melf32bsmip"
6699       ;;
6700     *N32*)
6701       LD="${LD-ld} -melf32bmipn32"
6702       ;;
6703     *64-bit*)
6704       LD="${LD-ld} -melf64bmip"
6705       ;;
6706     esac
6707    else
6708     case `/usr/bin/file conftest.$ac_objext` in
6709     *32-bit*)
6710       LD="${LD-ld} -32"
6711       ;;
6712     *N32*)
6713       LD="${LD-ld} -n32"
6714       ;;
6715     *64-bit*)
6716       LD="${LD-ld} -64"
6717       ;;
6718     esac
6719    fi
6720   fi
6721   rm -rf conftest*
6722   ;;
6723
6724 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6725 s390*-*linux*|sparc*-*linux*)
6726   # Find out which ABI we are using.
6727   echo 'int i;' > conftest.$ac_ext
6728   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6729   (eval $ac_compile) 2>&5
6730   ac_status=$?
6731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6732   (exit $ac_status); }; then
6733     case `/usr/bin/file conftest.o` in
6734     *32-bit*)
6735       case $host in
6736         x86_64-*kfreebsd*-gnu)
6737           LD="${LD-ld} -m elf_i386_fbsd"
6738           ;;
6739         x86_64-*linux*)
6740           LD="${LD-ld} -m elf_i386"
6741           ;;
6742         ppc64-*linux*|powerpc64-*linux*)
6743           LD="${LD-ld} -m elf32ppclinux"
6744           ;;
6745         s390x-*linux*)
6746           LD="${LD-ld} -m elf_s390"
6747           ;;
6748         sparc64-*linux*)
6749           LD="${LD-ld} -m elf32_sparc"
6750           ;;
6751       esac
6752       ;;
6753     *64-bit*)
6754       case $host in
6755         x86_64-*kfreebsd*-gnu)
6756           LD="${LD-ld} -m elf_x86_64_fbsd"
6757           ;;
6758         x86_64-*linux*)
6759           LD="${LD-ld} -m elf_x86_64"
6760           ;;
6761         ppc*-*linux*|powerpc*-*linux*)
6762           LD="${LD-ld} -m elf64ppc"
6763           ;;
6764         s390*-*linux*)
6765           LD="${LD-ld} -m elf64_s390"
6766           ;;
6767         sparc*-*linux*)
6768           LD="${LD-ld} -m elf64_sparc"
6769           ;;
6770       esac
6771       ;;
6772     esac
6773   fi
6774   rm -rf conftest*
6775   ;;
6776
6777 *-*-sco3.2v5*)
6778   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6779   SAVE_CFLAGS="$CFLAGS"
6780   CFLAGS="$CFLAGS -belf"
6781   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6782 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
6783 if test "${lt_cv_cc_needs_belf+set}" = set; then
6784   echo $ECHO_N "(cached) $ECHO_C" >&6
6785 else
6786   ac_ext=c
6787 ac_cpp='$CPP $CPPFLAGS'
6788 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6789 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6790 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6791
6792      cat >conftest.$ac_ext <<_ACEOF
6793 /* confdefs.h.  */
6794 _ACEOF
6795 cat confdefs.h >>conftest.$ac_ext
6796 cat >>conftest.$ac_ext <<_ACEOF
6797 /* end confdefs.h.  */
6798
6799 int
6800 main ()
6801 {
6802
6803   ;
6804   return 0;
6805 }
6806 _ACEOF
6807 rm -f conftest.$ac_objext conftest$ac_exeext
6808 if { (ac_try="$ac_link"
6809 case "(($ac_try" in
6810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6811   *) ac_try_echo=$ac_try;;
6812 esac
6813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6814   (eval "$ac_link") 2>conftest.er1
6815   ac_status=$?
6816   grep -v '^ *+' conftest.er1 >conftest.err
6817   rm -f conftest.er1
6818   cat conftest.err >&5
6819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6820   (exit $ac_status); } && {
6821          test -z "$ac_c_werror_flag" ||
6822          test ! -s conftest.err
6823        } && test -s conftest$ac_exeext &&
6824        $as_test_x conftest$ac_exeext; then
6825   lt_cv_cc_needs_belf=yes
6826 else
6827   echo "$as_me: failed program was:" >&5
6828 sed 's/^/| /' conftest.$ac_ext >&5
6829
6830         lt_cv_cc_needs_belf=no
6831 fi
6832
6833 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6834       conftest$ac_exeext conftest.$ac_ext
6835      ac_ext=c
6836 ac_cpp='$CPP $CPPFLAGS'
6837 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6838 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6839 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6840
6841 fi
6842 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6843 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6844   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6845     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6846     CFLAGS="$SAVE_CFLAGS"
6847   fi
6848   ;;
6849 sparc*-*solaris*)
6850   # Find out which ABI we are using.
6851   echo 'int i;' > conftest.$ac_ext
6852   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6853   (eval $ac_compile) 2>&5
6854   ac_status=$?
6855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6856   (exit $ac_status); }; then
6857     case `/usr/bin/file conftest.o` in
6858     *64-bit*)
6859       case $lt_cv_prog_gnu_ld in
6860       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6861       *)    LD="${LD-ld} -64" ;;
6862       esac
6863       ;;
6864     esac
6865   fi
6866   rm -rf conftest*
6867   ;;
6868
6869
6870 esac
6871
6872 need_locks="$enable_libtool_lock"
6873
6874
6875
6876 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6877 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6878 if test "${ac_cv_header_stdc+set}" = set; then
6879   echo $ECHO_N "(cached) $ECHO_C" >&6
6880 else
6881   cat >conftest.$ac_ext <<_ACEOF
6882 /* confdefs.h.  */
6883 _ACEOF
6884 cat confdefs.h >>conftest.$ac_ext
6885 cat >>conftest.$ac_ext <<_ACEOF
6886 /* end confdefs.h.  */
6887 #include <stdlib.h>
6888 #include <stdarg.h>
6889 #include <string.h>
6890 #include <float.h>
6891
6892 int
6893 main ()
6894 {
6895
6896   ;
6897   return 0;
6898 }
6899 _ACEOF
6900 rm -f conftest.$ac_objext
6901 if { (ac_try="$ac_compile"
6902 case "(($ac_try" in
6903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6904   *) ac_try_echo=$ac_try;;
6905 esac
6906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6907   (eval "$ac_compile") 2>conftest.er1
6908   ac_status=$?
6909   grep -v '^ *+' conftest.er1 >conftest.err
6910   rm -f conftest.er1
6911   cat conftest.err >&5
6912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6913   (exit $ac_status); } && {
6914          test -z "$ac_c_werror_flag" ||
6915          test ! -s conftest.err
6916        } && test -s conftest.$ac_objext; then
6917   ac_cv_header_stdc=yes
6918 else
6919   echo "$as_me: failed program was:" >&5
6920 sed 's/^/| /' conftest.$ac_ext >&5
6921
6922         ac_cv_header_stdc=no
6923 fi
6924
6925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6926
6927 if test $ac_cv_header_stdc = yes; then
6928   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6929   cat >conftest.$ac_ext <<_ACEOF
6930 /* confdefs.h.  */
6931 _ACEOF
6932 cat confdefs.h >>conftest.$ac_ext
6933 cat >>conftest.$ac_ext <<_ACEOF
6934 /* end confdefs.h.  */
6935 #include <string.h>
6936
6937 _ACEOF
6938 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6939   $EGREP "memchr" >/dev/null 2>&1; then
6940   :
6941 else
6942   ac_cv_header_stdc=no
6943 fi
6944 rm -f conftest*
6945
6946 fi
6947
6948 if test $ac_cv_header_stdc = yes; then
6949   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6950   cat >conftest.$ac_ext <<_ACEOF
6951 /* confdefs.h.  */
6952 _ACEOF
6953 cat confdefs.h >>conftest.$ac_ext
6954 cat >>conftest.$ac_ext <<_ACEOF
6955 /* end confdefs.h.  */
6956 #include <stdlib.h>
6957
6958 _ACEOF
6959 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6960   $EGREP "free" >/dev/null 2>&1; then
6961   :
6962 else
6963   ac_cv_header_stdc=no
6964 fi
6965 rm -f conftest*
6966
6967 fi
6968
6969 if test $ac_cv_header_stdc = yes; then
6970   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6971   if test "$cross_compiling" = yes; then
6972   :
6973 else
6974   cat >conftest.$ac_ext <<_ACEOF
6975 /* confdefs.h.  */
6976 _ACEOF
6977 cat confdefs.h >>conftest.$ac_ext
6978 cat >>conftest.$ac_ext <<_ACEOF
6979 /* end confdefs.h.  */
6980 #include <ctype.h>
6981 #include <stdlib.h>
6982 #if ((' ' & 0x0FF) == 0x020)
6983 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6984 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6985 #else
6986 # define ISLOWER(c) \
6987                    (('a' <= (c) && (c) <= 'i') \
6988                      || ('j' <= (c) && (c) <= 'r') \
6989                      || ('s' <= (c) && (c) <= 'z'))
6990 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6991 #endif
6992
6993 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6994 int
6995 main ()
6996 {
6997   int i;
6998   for (i = 0; i < 256; i++)
6999     if (XOR (islower (i), ISLOWER (i))
7000         || toupper (i) != TOUPPER (i))
7001       return 2;
7002   return 0;
7003 }
7004 _ACEOF
7005 rm -f conftest$ac_exeext
7006 if { (ac_try="$ac_link"
7007 case "(($ac_try" in
7008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7009   *) ac_try_echo=$ac_try;;
7010 esac
7011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7012   (eval "$ac_link") 2>&5
7013   ac_status=$?
7014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7015   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7016   { (case "(($ac_try" in
7017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7018   *) ac_try_echo=$ac_try;;
7019 esac
7020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7021   (eval "$ac_try") 2>&5
7022   ac_status=$?
7023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7024   (exit $ac_status); }; }; then
7025   :
7026 else
7027   echo "$as_me: program exited with status $ac_status" >&5
7028 echo "$as_me: failed program was:" >&5
7029 sed 's/^/| /' conftest.$ac_ext >&5
7030
7031 ( exit $ac_status )
7032 ac_cv_header_stdc=no
7033 fi
7034 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7035 fi
7036
7037
7038 fi
7039 fi
7040 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7041 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7042 if test $ac_cv_header_stdc = yes; then
7043   
7044 cat >>confdefs.h <<\_ACEOF
7045 @%:@define STDC_HEADERS 1
7046 _ACEOF
7047
7048 fi
7049
7050 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7061                   inttypes.h stdint.h unistd.h
7062 do
7063 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7064 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7065 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7066 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7067   echo $ECHO_N "(cached) $ECHO_C" >&6
7068 else
7069   cat >conftest.$ac_ext <<_ACEOF
7070 /* confdefs.h.  */
7071 _ACEOF
7072 cat confdefs.h >>conftest.$ac_ext
7073 cat >>conftest.$ac_ext <<_ACEOF
7074 /* end confdefs.h.  */
7075 $ac_includes_default
7076
7077 @%:@include <$ac_header>
7078 _ACEOF
7079 rm -f conftest.$ac_objext
7080 if { (ac_try="$ac_compile"
7081 case "(($ac_try" in
7082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7083   *) ac_try_echo=$ac_try;;
7084 esac
7085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7086   (eval "$ac_compile") 2>conftest.er1
7087   ac_status=$?
7088   grep -v '^ *+' conftest.er1 >conftest.err
7089   rm -f conftest.er1
7090   cat conftest.err >&5
7091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7092   (exit $ac_status); } && {
7093          test -z "$ac_c_werror_flag" ||
7094          test ! -s conftest.err
7095        } && test -s conftest.$ac_objext; then
7096   eval "$as_ac_Header=yes"
7097 else
7098   echo "$as_me: failed program was:" >&5
7099 sed 's/^/| /' conftest.$ac_ext >&5
7100
7101         eval "$as_ac_Header=no"
7102 fi
7103
7104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7105 fi
7106 ac_res=`eval echo '${'$as_ac_Header'}'`
7107                { echo "$as_me:$LINENO: result: $ac_res" >&5
7108 echo "${ECHO_T}$ac_res" >&6; }
7109 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7110   cat >>confdefs.h <<_ACEOF
7111 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7112 _ACEOF
7113  
7114 fi
7115
7116 done
7117
7118
7119
7120 for ac_header in dlfcn.h
7121 do
7122 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7123 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7124   { echo "$as_me:$LINENO: checking for $ac_header" >&5
7125 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7126 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7127   echo $ECHO_N "(cached) $ECHO_C" >&6
7128 fi
7129 ac_res=`eval echo '${'$as_ac_Header'}'`
7130                { echo "$as_me:$LINENO: result: $ac_res" >&5
7131 echo "${ECHO_T}$ac_res" >&6; }
7132 else
7133   # Is the header compilable?
7134 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7135 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7136 cat >conftest.$ac_ext <<_ACEOF
7137 /* confdefs.h.  */
7138 _ACEOF
7139 cat confdefs.h >>conftest.$ac_ext
7140 cat >>conftest.$ac_ext <<_ACEOF
7141 /* end confdefs.h.  */
7142 $ac_includes_default
7143 @%:@include <$ac_header>
7144 _ACEOF
7145 rm -f conftest.$ac_objext
7146 if { (ac_try="$ac_compile"
7147 case "(($ac_try" in
7148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7149   *) ac_try_echo=$ac_try;;
7150 esac
7151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7152   (eval "$ac_compile") 2>conftest.er1
7153   ac_status=$?
7154   grep -v '^ *+' conftest.er1 >conftest.err
7155   rm -f conftest.er1
7156   cat conftest.err >&5
7157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7158   (exit $ac_status); } && {
7159          test -z "$ac_c_werror_flag" ||
7160          test ! -s conftest.err
7161        } && test -s conftest.$ac_objext; then
7162   ac_header_compiler=yes
7163 else
7164   echo "$as_me: failed program was:" >&5
7165 sed 's/^/| /' conftest.$ac_ext >&5
7166
7167         ac_header_compiler=no
7168 fi
7169
7170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7171 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7172 echo "${ECHO_T}$ac_header_compiler" >&6; }
7173
7174 # Is the header present?
7175 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7176 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7177 cat >conftest.$ac_ext <<_ACEOF
7178 /* confdefs.h.  */
7179 _ACEOF
7180 cat confdefs.h >>conftest.$ac_ext
7181 cat >>conftest.$ac_ext <<_ACEOF
7182 /* end confdefs.h.  */
7183 @%:@include <$ac_header>
7184 _ACEOF
7185 if { (ac_try="$ac_cpp conftest.$ac_ext"
7186 case "(($ac_try" in
7187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7188   *) ac_try_echo=$ac_try;;
7189 esac
7190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7191   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7192   ac_status=$?
7193   grep -v '^ *+' conftest.er1 >conftest.err
7194   rm -f conftest.er1
7195   cat conftest.err >&5
7196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7197   (exit $ac_status); } >/dev/null && {
7198          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7199          test ! -s conftest.err
7200        }; then
7201   ac_header_preproc=yes
7202 else
7203   echo "$as_me: failed program was:" >&5
7204 sed 's/^/| /' conftest.$ac_ext >&5
7205
7206   ac_header_preproc=no
7207 fi
7208
7209 rm -f conftest.err conftest.$ac_ext
7210 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7211 echo "${ECHO_T}$ac_header_preproc" >&6; }
7212
7213 # So?  What about this header?
7214 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7215   yes:no: )
7216     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7217 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7218     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7219 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7220     ac_header_preproc=yes
7221     ;;
7222   no:yes:* )
7223     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7224 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7225     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7226 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7227     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7228 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7229     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7230 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7231     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7232 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7233     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7234 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7235     ( cat <<\_ASBOX
7236 @%:@@%:@ ------------------------------- @%:@@%:@
7237 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
7238 @%:@@%:@ ------------------------------- @%:@@%:@
7239 _ASBOX
7240      ) | sed "s/^/$as_me: WARNING:     /" >&2
7241     ;;
7242 esac
7243 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7244 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7245 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7246   echo $ECHO_N "(cached) $ECHO_C" >&6
7247 else
7248   eval "$as_ac_Header=\$ac_header_preproc"
7249 fi
7250 ac_res=`eval echo '${'$as_ac_Header'}'`
7251                { echo "$as_me:$LINENO: result: $ac_res" >&5
7252 echo "${ECHO_T}$ac_res" >&6; }
7253
7254 fi
7255 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7256   cat >>confdefs.h <<_ACEOF
7257 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7258 _ACEOF
7259  
7260 fi
7261
7262 done
7263
7264
7265
7266 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7267     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7268     (test "X$CXX" != "Xg++"))) ; then
7269   ac_ext=cpp
7270 ac_cpp='$CXXCPP $CPPFLAGS'
7271 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7272 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7273 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7274 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7275 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
7276 if test -z "$CXXCPP"; then
7277   if test "${ac_cv_prog_CXXCPP+set}" = set; then
7278   echo $ECHO_N "(cached) $ECHO_C" >&6
7279 else
7280       # Double quotes because CXXCPP needs to be expanded
7281     for CXXCPP in "$CXX -E" "/lib/cpp"
7282     do
7283       ac_preproc_ok=false
7284 for ac_cxx_preproc_warn_flag in '' yes
7285 do
7286   # Use a header file that comes with gcc, so configuring glibc
7287   # with a fresh cross-compiler works.
7288   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7289   # <limits.h> exists even on freestanding compilers.
7290   # On the NeXT, cc -E runs the code through the compiler's parser,
7291   # not just through cpp. "Syntax error" is here to catch this case.
7292   cat >conftest.$ac_ext <<_ACEOF
7293 /* confdefs.h.  */
7294 _ACEOF
7295 cat confdefs.h >>conftest.$ac_ext
7296 cat >>conftest.$ac_ext <<_ACEOF
7297 /* end confdefs.h.  */
7298 @%:@ifdef __STDC__
7299 @%:@ include <limits.h>
7300 @%:@else
7301 @%:@ include <assert.h>
7302 @%:@endif
7303                      Syntax error
7304 _ACEOF
7305 if { (ac_try="$ac_cpp conftest.$ac_ext"
7306 case "(($ac_try" in
7307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7308   *) ac_try_echo=$ac_try;;
7309 esac
7310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7311   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7312   ac_status=$?
7313   grep -v '^ *+' conftest.er1 >conftest.err
7314   rm -f conftest.er1
7315   cat conftest.err >&5
7316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7317   (exit $ac_status); } >/dev/null && {
7318          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7319          test ! -s conftest.err
7320        }; then
7321   :
7322 else
7323   echo "$as_me: failed program was:" >&5
7324 sed 's/^/| /' conftest.$ac_ext >&5
7325
7326   # Broken: fails on valid input.
7327 continue
7328 fi
7329
7330 rm -f conftest.err conftest.$ac_ext
7331
7332   # OK, works on sane cases.  Now check whether nonexistent headers
7333   # can be detected and how.
7334   cat >conftest.$ac_ext <<_ACEOF
7335 /* confdefs.h.  */
7336 _ACEOF
7337 cat confdefs.h >>conftest.$ac_ext
7338 cat >>conftest.$ac_ext <<_ACEOF
7339 /* end confdefs.h.  */
7340 @%:@include <ac_nonexistent.h>
7341 _ACEOF
7342 if { (ac_try="$ac_cpp conftest.$ac_ext"
7343 case "(($ac_try" in
7344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7345   *) ac_try_echo=$ac_try;;
7346 esac
7347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7348   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7349   ac_status=$?
7350   grep -v '^ *+' conftest.er1 >conftest.err
7351   rm -f conftest.er1
7352   cat conftest.err >&5
7353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7354   (exit $ac_status); } >/dev/null && {
7355          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7356          test ! -s conftest.err
7357        }; then
7358   # Broken: success on invalid input.
7359 continue
7360 else
7361   echo "$as_me: failed program was:" >&5
7362 sed 's/^/| /' conftest.$ac_ext >&5
7363
7364   # Passes both tests.
7365 ac_preproc_ok=:
7366 break
7367 fi
7368
7369 rm -f conftest.err conftest.$ac_ext
7370
7371 done
7372 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7373 rm -f conftest.err conftest.$ac_ext
7374 if $ac_preproc_ok; then
7375   break
7376 fi
7377
7378     done
7379     ac_cv_prog_CXXCPP=$CXXCPP
7380   
7381 fi
7382   CXXCPP=$ac_cv_prog_CXXCPP
7383 else
7384   ac_cv_prog_CXXCPP=$CXXCPP
7385 fi
7386 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
7387 echo "${ECHO_T}$CXXCPP" >&6; }
7388 ac_preproc_ok=false
7389 for ac_cxx_preproc_warn_flag in '' yes
7390 do
7391   # Use a header file that comes with gcc, so configuring glibc
7392   # with a fresh cross-compiler works.
7393   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7394   # <limits.h> exists even on freestanding compilers.
7395   # On the NeXT, cc -E runs the code through the compiler's parser,
7396   # not just through cpp. "Syntax error" is here to catch this case.
7397   cat >conftest.$ac_ext <<_ACEOF
7398 /* confdefs.h.  */
7399 _ACEOF
7400 cat confdefs.h >>conftest.$ac_ext
7401 cat >>conftest.$ac_ext <<_ACEOF
7402 /* end confdefs.h.  */
7403 @%:@ifdef __STDC__
7404 @%:@ include <limits.h>
7405 @%:@else
7406 @%:@ include <assert.h>
7407 @%:@endif
7408                      Syntax error
7409 _ACEOF
7410 if { (ac_try="$ac_cpp conftest.$ac_ext"
7411 case "(($ac_try" in
7412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7413   *) ac_try_echo=$ac_try;;
7414 esac
7415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7416   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7417   ac_status=$?
7418   grep -v '^ *+' conftest.er1 >conftest.err
7419   rm -f conftest.er1
7420   cat conftest.err >&5
7421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7422   (exit $ac_status); } >/dev/null && {
7423          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7424          test ! -s conftest.err
7425        }; then
7426   :
7427 else
7428   echo "$as_me: failed program was:" >&5
7429 sed 's/^/| /' conftest.$ac_ext >&5
7430
7431   # Broken: fails on valid input.
7432 continue
7433 fi
7434
7435 rm -f conftest.err conftest.$ac_ext
7436
7437   # OK, works on sane cases.  Now check whether nonexistent headers
7438   # can be detected and how.
7439   cat >conftest.$ac_ext <<_ACEOF
7440 /* confdefs.h.  */
7441 _ACEOF
7442 cat confdefs.h >>conftest.$ac_ext
7443 cat >>conftest.$ac_ext <<_ACEOF
7444 /* end confdefs.h.  */
7445 @%:@include <ac_nonexistent.h>
7446 _ACEOF
7447 if { (ac_try="$ac_cpp conftest.$ac_ext"
7448 case "(($ac_try" in
7449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7450   *) ac_try_echo=$ac_try;;
7451 esac
7452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7453   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7454   ac_status=$?
7455   grep -v '^ *+' conftest.er1 >conftest.err
7456   rm -f conftest.er1
7457   cat conftest.err >&5
7458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7459   (exit $ac_status); } >/dev/null && {
7460          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7461          test ! -s conftest.err
7462        }; then
7463   # Broken: success on invalid input.
7464 continue
7465 else
7466   echo "$as_me: failed program was:" >&5
7467 sed 's/^/| /' conftest.$ac_ext >&5
7468
7469   # Passes both tests.
7470 ac_preproc_ok=:
7471 break
7472 fi
7473
7474 rm -f conftest.err conftest.$ac_ext
7475
7476 done
7477 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7478 rm -f conftest.err conftest.$ac_ext
7479 if $ac_preproc_ok; then
7480   :
7481 else
7482   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7483 See \`config.log' for more details." >&5
7484 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7485 See \`config.log' for more details." >&2;}
7486    { (exit 1); exit 1; }; }
7487 fi
7488
7489 ac_ext=cpp
7490 ac_cpp='$CXXCPP $CPPFLAGS'
7491 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7492 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7493 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7494
7495 fi
7496
7497
7498 ac_ext=f
7499 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7500 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7501 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7502 if test -n "$ac_tool_prefix"; then
7503   for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
7504   do
7505     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7506 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7507 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7508 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7509 if test "${ac_cv_prog_F77+set}" = set; then
7510   echo $ECHO_N "(cached) $ECHO_C" >&6
7511 else
7512   if test -n "$F77"; then
7513   ac_cv_prog_F77="$F77" # Let the user override the test.
7514 else
7515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7516 for as_dir in $PATH
7517 do
7518   IFS=$as_save_IFS
7519   test -z "$as_dir" && as_dir=.
7520   for ac_exec_ext in '' $ac_executable_extensions; do
7521   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7522     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7523     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7524     break 2
7525   fi
7526 done
7527 done
7528 IFS=$as_save_IFS
7529
7530 fi
7531 fi
7532 F77=$ac_cv_prog_F77
7533 if test -n "$F77"; then
7534   { echo "$as_me:$LINENO: result: $F77" >&5
7535 echo "${ECHO_T}$F77" >&6; }
7536 else
7537   { echo "$as_me:$LINENO: result: no" >&5
7538 echo "${ECHO_T}no" >&6; }
7539 fi
7540
7541
7542     test -n "$F77" && break
7543   done
7544 fi
7545 if test -z "$F77"; then
7546   ac_ct_F77=$F77
7547   for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
7548 do
7549   # Extract the first word of "$ac_prog", so it can be a program name with args.
7550 set dummy $ac_prog; ac_word=$2
7551 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7553 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7554   echo $ECHO_N "(cached) $ECHO_C" >&6
7555 else
7556   if test -n "$ac_ct_F77"; then
7557   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7558 else
7559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7560 for as_dir in $PATH
7561 do
7562   IFS=$as_save_IFS
7563   test -z "$as_dir" && as_dir=.
7564   for ac_exec_ext in '' $ac_executable_extensions; do
7565   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7566     ac_cv_prog_ac_ct_F77="$ac_prog"
7567     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7568     break 2
7569   fi
7570 done
7571 done
7572 IFS=$as_save_IFS
7573
7574 fi
7575 fi
7576 ac_ct_F77=$ac_cv_prog_ac_ct_F77
7577 if test -n "$ac_ct_F77"; then
7578   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7579 echo "${ECHO_T}$ac_ct_F77" >&6; }
7580 else
7581   { echo "$as_me:$LINENO: result: no" >&5
7582 echo "${ECHO_T}no" >&6; }
7583 fi
7584
7585
7586   test -n "$ac_ct_F77" && break
7587 done
7588
7589   if test "x$ac_ct_F77" = x; then
7590     F77=""
7591   else
7592     case $cross_compiling:$ac_tool_warned in
7593 yes:)
7594 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7595 whose name does not start with the host triplet.  If you think this
7596 configuration is useful to you, please write to autoconf@gnu.org." >&5
7597 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7598 whose name does not start with the host triplet.  If you think this
7599 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7600 ac_tool_warned=yes ;;
7601 esac
7602     F77=$ac_ct_F77
7603   fi
7604 fi
7605
7606
7607 # Provide some information about the compiler.
7608 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
7609 ac_compiler=`set X $ac_compile; echo $2`
7610 { (ac_try="$ac_compiler --version >&5"
7611 case "(($ac_try" in
7612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7613   *) ac_try_echo=$ac_try;;
7614 esac
7615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7616   (eval "$ac_compiler --version >&5") 2>&5
7617   ac_status=$?
7618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7619   (exit $ac_status); }
7620 { (ac_try="$ac_compiler -v >&5"
7621 case "(($ac_try" in
7622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7623   *) ac_try_echo=$ac_try;;
7624 esac
7625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7626   (eval "$ac_compiler -v >&5") 2>&5
7627   ac_status=$?
7628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7629   (exit $ac_status); }
7630 { (ac_try="$ac_compiler -V >&5"
7631 case "(($ac_try" in
7632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7633   *) ac_try_echo=$ac_try;;
7634 esac
7635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7636   (eval "$ac_compiler -V >&5") 2>&5
7637   ac_status=$?
7638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7639   (exit $ac_status); }
7640 rm -f a.out
7641
7642 # If we don't use `.F' as extension, the preprocessor is not run on the
7643 # input file.  (Note that this only needs to work for GNU compilers.)
7644 ac_save_ext=$ac_ext
7645 ac_ext=F
7646 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7647 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
7648 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7649   echo $ECHO_N "(cached) $ECHO_C" >&6
7650 else
7651   cat >conftest.$ac_ext <<_ACEOF
7652       program main
7653 #ifndef __GNUC__
7654        choke me
7655 #endif
7656
7657       end
7658 _ACEOF
7659 rm -f conftest.$ac_objext
7660 if { (ac_try="$ac_compile"
7661 case "(($ac_try" in
7662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7663   *) ac_try_echo=$ac_try;;
7664 esac
7665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7666   (eval "$ac_compile") 2>conftest.er1
7667   ac_status=$?
7668   grep -v '^ *+' conftest.er1 >conftest.err
7669   rm -f conftest.er1
7670   cat conftest.err >&5
7671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7672   (exit $ac_status); } && {
7673          test -z "$ac_f77_werror_flag" ||
7674          test ! -s conftest.err
7675        } && test -s conftest.$ac_objext; then
7676   ac_compiler_gnu=yes
7677 else
7678   echo "$as_me: failed program was:" >&5
7679 sed 's/^/| /' conftest.$ac_ext >&5
7680
7681         ac_compiler_gnu=no
7682 fi
7683
7684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7685 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7686
7687 fi
7688 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7689 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
7690 ac_ext=$ac_save_ext
7691 ac_test_FFLAGS=${FFLAGS+set}
7692 ac_save_FFLAGS=$FFLAGS
7693 FFLAGS=
7694 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7695 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
7696 if test "${ac_cv_prog_f77_g+set}" = set; then
7697   echo $ECHO_N "(cached) $ECHO_C" >&6
7698 else
7699   FFLAGS=-g
7700 cat >conftest.$ac_ext <<_ACEOF
7701       program main
7702
7703       end
7704 _ACEOF
7705 rm -f conftest.$ac_objext
7706 if { (ac_try="$ac_compile"
7707 case "(($ac_try" in
7708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7709   *) ac_try_echo=$ac_try;;
7710 esac
7711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7712   (eval "$ac_compile") 2>conftest.er1
7713   ac_status=$?
7714   grep -v '^ *+' conftest.er1 >conftest.err
7715   rm -f conftest.er1
7716   cat conftest.err >&5
7717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7718   (exit $ac_status); } && {
7719          test -z "$ac_f77_werror_flag" ||
7720          test ! -s conftest.err
7721        } && test -s conftest.$ac_objext; then
7722   ac_cv_prog_f77_g=yes
7723 else
7724   echo "$as_me: failed program was:" >&5
7725 sed 's/^/| /' conftest.$ac_ext >&5
7726
7727         ac_cv_prog_f77_g=no
7728 fi
7729
7730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7731
7732 fi
7733 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7734 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
7735 if test "$ac_test_FFLAGS" = set; then
7736   FFLAGS=$ac_save_FFLAGS
7737 elif test $ac_cv_prog_f77_g = yes; then
7738   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7739     FFLAGS="-g -O2"
7740   else
7741     FFLAGS="-g"
7742   fi
7743 else
7744   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7745     FFLAGS="-O2"
7746   else
7747     FFLAGS=
7748   fi
7749 fi
7750
7751 G77=`test $ac_compiler_gnu = yes && echo yes`
7752 ac_ext=c
7753 ac_cpp='$CPP $CPPFLAGS'
7754 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7755 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7756 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7757
7758
7759
7760 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7761
7762 # find the maximum length of command line arguments
7763 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7764 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
7765 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7766   echo $ECHO_N "(cached) $ECHO_C" >&6
7767 else
7768     i=0
7769   teststring="ABCD"
7770
7771   case $build_os in
7772   msdosdjgpp*)
7773     # On DJGPP, this test can blow up pretty badly due to problems in libc
7774     # (any single argument exceeding 2000 bytes causes a buffer overrun
7775     # during glob expansion).  Even if it were fixed, the result of this
7776     # check would be larger than it should be.
7777     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7778     ;;
7779
7780   gnu*)
7781     # Under GNU Hurd, this test is not required because there is
7782     # no limit to the length of command line arguments.
7783     # Libtool will interpret -1 as no limit whatsoever
7784     lt_cv_sys_max_cmd_len=-1;
7785     ;;
7786
7787   cygwin* | mingw*)
7788     # On Win9x/ME, this test blows up -- it succeeds, but takes
7789     # about 5 minutes as the teststring grows exponentially.
7790     # Worse, since 9x/ME are not pre-emptively multitasking,
7791     # you end up with a "frozen" computer, even though with patience
7792     # the test eventually succeeds (with a max line length of 256k).
7793     # Instead, let's just punt: use the minimum linelength reported by
7794     # all of the supported platforms: 8192 (on NT/2K/XP).
7795     lt_cv_sys_max_cmd_len=8192;
7796     ;;
7797
7798   amigaos*)
7799     # On AmigaOS with pdksh, this test takes hours, literally.
7800     # So we just punt and use a minimum line length of 8192.
7801     lt_cv_sys_max_cmd_len=8192;
7802     ;;
7803
7804   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7805     # This has been around since 386BSD, at least.  Likely further.
7806     if test -x /sbin/sysctl; then
7807       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7808     elif test -x /usr/sbin/sysctl; then
7809       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7810     else
7811       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7812     fi
7813     # And add a safety zone
7814     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7815     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7816     ;;
7817
7818   interix*)
7819     # We know the value 262144 and hardcode it with a safety zone (like BSD)
7820     lt_cv_sys_max_cmd_len=196608
7821     ;;
7822
7823   osf*)
7824     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7825     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7826     # nice to cause kernel panics so lets avoid the loop below.
7827     # First set a reasonable default.
7828     lt_cv_sys_max_cmd_len=16384
7829     #
7830     if test -x /sbin/sysconfig; then
7831       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7832         *1*) lt_cv_sys_max_cmd_len=-1 ;;
7833       esac
7834     fi
7835     ;;
7836   sco3.2v5*)
7837     lt_cv_sys_max_cmd_len=102400
7838     ;;
7839   sysv5* | sco5v6* | sysv4.2uw2*)
7840     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7841     if test -n "$kargmax"; then
7842       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
7843     else
7844       lt_cv_sys_max_cmd_len=32768
7845     fi
7846     ;;
7847   *)
7848     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7849     if test -n "$lt_cv_sys_max_cmd_len"; then
7850       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7851       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7852     else
7853       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7854       while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7855                = "XX$teststring") >/dev/null 2>&1 &&
7856               new_result=`expr "X$teststring" : ".*" 2>&1` &&
7857               lt_cv_sys_max_cmd_len=$new_result &&
7858               test $i != 17 # 1/2 MB should be enough
7859       do
7860         i=`expr $i + 1`
7861         teststring=$teststring$teststring
7862       done
7863       teststring=
7864       # Add a significant safety factor because C++ compilers can tack on massive
7865       # amounts of additional arguments before passing them to the linker.
7866       # It appears as though 1/2 is a usable value.
7867       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7868     fi
7869     ;;
7870   esac
7871
7872 fi
7873
7874 if test -n $lt_cv_sys_max_cmd_len ; then
7875   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7876 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
7877 else
7878   { echo "$as_me:$LINENO: result: none" >&5
7879 echo "${ECHO_T}none" >&6; }
7880 fi
7881
7882
7883
7884
7885
7886 # Check for command to grab the raw symbol name followed by C symbol from nm.
7887 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7888 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
7889 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7890   echo $ECHO_N "(cached) $ECHO_C" >&6
7891 else
7892   
7893 # These are sane defaults that work on at least a few old systems.
7894 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7895
7896 # Character class describing NM global symbol codes.
7897 symcode='[BCDEGRST]'
7898
7899 # Regexp to match symbols that can be accessed directly from C.
7900 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7901
7902 # Transform an extracted symbol line into a proper C declaration
7903 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7904
7905 # Transform an extracted symbol line into symbol name and symbol address
7906 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'"
7907
7908 # Define system-specific variables.
7909 case $host_os in
7910 aix*)
7911   symcode='[BCDT]'
7912   ;;
7913 cygwin* | mingw* | pw32*)
7914   symcode='[ABCDGISTW]'
7915   ;;
7916 hpux*) # Its linker distinguishes data from code symbols
7917   if test "$host_cpu" = ia64; then
7918     symcode='[ABCDEGRST]'
7919   fi
7920   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7921   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'"
7922   ;;
7923 linux* | k*bsd*-gnu)
7924   if test "$host_cpu" = ia64; then
7925     symcode='[ABCDGIRSTW]'
7926     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7927     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'"
7928   fi
7929   ;;
7930 irix* | nonstopux*)
7931   symcode='[BCDEGRST]'
7932   ;;
7933 osf*)
7934   symcode='[BCDEGQRST]'
7935   ;;
7936 solaris*)
7937   symcode='[BDRT]'
7938   ;;
7939 sco3.2v5*)
7940   symcode='[DT]'
7941   ;;
7942 sysv4.2uw2*)
7943   symcode='[DT]'
7944   ;;
7945 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7946   symcode='[ABDT]'
7947   ;;
7948 sysv4)
7949   symcode='[DFNSTU]'
7950   ;;
7951 esac
7952
7953 # Handle CRLF in mingw tool chain
7954 opt_cr=
7955 case $build_os in
7956 mingw*)
7957   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7958   ;;
7959 esac
7960
7961 # If we're using GNU nm, then use its standard symbol codes.
7962 case `$NM -V 2>&1` in
7963 *GNU* | *'with BFD'*)
7964   symcode='[ABCDGIRSTW]' ;;
7965 esac
7966
7967 # Try without a prefix undercore, then with it.
7968 for ac_symprfx in "" "_"; do
7969
7970   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7971   symxfrm="\\1 $ac_symprfx\\2 \\2"
7972
7973   # Write the raw and C identifiers.
7974   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7975
7976   # Check to see that the pipe works correctly.
7977   pipe_works=no
7978
7979   rm -f conftest*
7980   cat > conftest.$ac_ext <<EOF
7981 #ifdef __cplusplus
7982 extern "C" {
7983 #endif
7984 char nm_test_var;
7985 void nm_test_func(){}
7986 #ifdef __cplusplus
7987 }
7988 #endif
7989 int main(){nm_test_var='a';nm_test_func();return(0);}
7990 EOF
7991
7992   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7993   (eval $ac_compile) 2>&5
7994   ac_status=$?
7995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7996   (exit $ac_status); }; then
7997     # Now try to grab the symbols.
7998     nlist=conftest.nm
7999     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
8000   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
8001   ac_status=$?
8002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8003   (exit $ac_status); } && test -s "$nlist"; then
8004       # Try sorting and uniquifying the output.
8005       if sort "$nlist" | uniq > "$nlist"T; then
8006         mv -f "$nlist"T "$nlist"
8007       else
8008         rm -f "$nlist"T
8009       fi
8010
8011       # Make sure that we snagged all the symbols we need.
8012       if grep ' nm_test_var$' "$nlist" >/dev/null; then
8013         if grep ' nm_test_func$' "$nlist" >/dev/null; then
8014           cat <<EOF > conftest.$ac_ext
8015 #ifdef __cplusplus
8016 extern "C" {
8017 #endif
8018
8019 EOF
8020           # Now generate the symbol file.
8021           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
8022
8023           cat <<EOF >> conftest.$ac_ext
8024 #if defined (__STDC__) && __STDC__
8025 # define lt_ptr_t void *
8026 #else
8027 # define lt_ptr_t char *
8028 # define const
8029 #endif
8030
8031 /* The mapping between symbol names and symbols. */
8032 const struct {
8033   const char *name;
8034   lt_ptr_t address;
8035 }
8036 lt_preloaded_symbols[] =
8037 {
8038 EOF
8039           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
8040           cat <<\EOF >> conftest.$ac_ext
8041   {0, (lt_ptr_t) 0}
8042 };
8043
8044 #ifdef __cplusplus
8045 }
8046 #endif
8047 EOF
8048           # Now try linking the two files.
8049           mv conftest.$ac_objext conftstm.$ac_objext
8050           lt_save_LIBS="$LIBS"
8051           lt_save_CFLAGS="$CFLAGS"
8052           LIBS="conftstm.$ac_objext"
8053           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8054           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8055   (eval $ac_link) 2>&5
8056   ac_status=$?
8057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8058   (exit $ac_status); } && test -s conftest${ac_exeext}; then
8059             pipe_works=yes
8060           fi
8061           LIBS="$lt_save_LIBS"
8062           CFLAGS="$lt_save_CFLAGS"
8063         else
8064           echo "cannot find nm_test_func in $nlist" >&5
8065         fi
8066       else
8067         echo "cannot find nm_test_var in $nlist" >&5
8068       fi
8069     else
8070       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8071     fi
8072   else
8073     echo "$progname: failed program was:" >&5
8074     cat conftest.$ac_ext >&5
8075   fi
8076   rm -f conftest* conftst*
8077
8078   # Do not use the global_symbol_pipe unless it works.
8079   if test "$pipe_works" = yes; then
8080     break
8081   else
8082     lt_cv_sys_global_symbol_pipe=
8083   fi
8084 done
8085
8086 fi
8087
8088 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8089   lt_cv_sys_global_symbol_to_cdecl=
8090 fi
8091 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8092   { echo "$as_me:$LINENO: result: failed" >&5
8093 echo "${ECHO_T}failed" >&6; }
8094 else
8095   { echo "$as_me:$LINENO: result: ok" >&5
8096 echo "${ECHO_T}ok" >&6; }
8097 fi
8098
8099 { echo "$as_me:$LINENO: checking for objdir" >&5
8100 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
8101 if test "${lt_cv_objdir+set}" = set; then
8102   echo $ECHO_N "(cached) $ECHO_C" >&6
8103 else
8104   rm -f .libs 2>/dev/null
8105 mkdir .libs 2>/dev/null
8106 if test -d .libs; then
8107   lt_cv_objdir=.libs
8108 else
8109   # MS-DOS does not allow filenames that begin with a dot.
8110   lt_cv_objdir=_libs
8111 fi
8112 rmdir .libs 2>/dev/null
8113 fi
8114 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8115 echo "${ECHO_T}$lt_cv_objdir" >&6; }
8116 objdir=$lt_cv_objdir
8117
8118
8119
8120
8121
8122 case $host_os in
8123 aix3*)
8124   # AIX sometimes has problems with the GCC collect2 program.  For some
8125   # reason, if we set the COLLECT_NAMES environment variable, the problems
8126   # vanish in a puff of smoke.
8127   if test "X${COLLECT_NAMES+set}" != Xset; then
8128     COLLECT_NAMES=
8129     export COLLECT_NAMES
8130   fi
8131   ;;
8132 esac
8133
8134 # Sed substitution that helps us do robust quoting.  It backslashifies
8135 # metacharacters that are still active within double-quoted strings.
8136 Xsed='sed -e 1s/^X//'
8137 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
8138
8139 # Same as above, but do not quote variable references.
8140 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
8141
8142 # Sed substitution to delay expansion of an escaped shell variable in a
8143 # double_quote_subst'ed string.
8144 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8145
8146 # Sed substitution to avoid accidental globbing in evaled expressions
8147 no_glob_subst='s/\*/\\\*/g'
8148
8149 # Constants:
8150 rm="rm -f"
8151
8152 # Global variables:
8153 default_ofile=libtool
8154 can_build_shared=yes
8155
8156 # All known linkers require a `.a' archive for static linking (except MSVC,
8157 # which needs '.lib').
8158 libext=a
8159 ltmain="$ac_aux_dir/ltmain.sh"
8160 ofile="$default_ofile"
8161 with_gnu_ld="$lt_cv_prog_gnu_ld"
8162
8163 if test -n "$ac_tool_prefix"; then
8164   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8165 set dummy ${ac_tool_prefix}ar; ac_word=$2
8166 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8167 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8168 if test "${ac_cv_prog_AR+set}" = set; then
8169   echo $ECHO_N "(cached) $ECHO_C" >&6
8170 else
8171   if test -n "$AR"; then
8172   ac_cv_prog_AR="$AR" # Let the user override the test.
8173 else
8174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8175 for as_dir in $PATH
8176 do
8177   IFS=$as_save_IFS
8178   test -z "$as_dir" && as_dir=.
8179   for ac_exec_ext in '' $ac_executable_extensions; do
8180   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8181     ac_cv_prog_AR="${ac_tool_prefix}ar"
8182     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8183     break 2
8184   fi
8185 done
8186 done
8187 IFS=$as_save_IFS
8188
8189 fi
8190 fi
8191 AR=$ac_cv_prog_AR
8192 if test -n "$AR"; then
8193   { echo "$as_me:$LINENO: result: $AR" >&5
8194 echo "${ECHO_T}$AR" >&6; }
8195 else
8196   { echo "$as_me:$LINENO: result: no" >&5
8197 echo "${ECHO_T}no" >&6; }
8198 fi
8199
8200
8201 fi
8202 if test -z "$ac_cv_prog_AR"; then
8203   ac_ct_AR=$AR
8204   # Extract the first word of "ar", so it can be a program name with args.
8205 set dummy ar; ac_word=$2
8206 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8207 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8208 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8209   echo $ECHO_N "(cached) $ECHO_C" >&6
8210 else
8211   if test -n "$ac_ct_AR"; then
8212   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8213 else
8214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8215 for as_dir in $PATH
8216 do
8217   IFS=$as_save_IFS
8218   test -z "$as_dir" && as_dir=.
8219   for ac_exec_ext in '' $ac_executable_extensions; do
8220   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8221     ac_cv_prog_ac_ct_AR="ar"
8222     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8223     break 2
8224   fi
8225 done
8226 done
8227 IFS=$as_save_IFS
8228
8229 fi
8230 fi
8231 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8232 if test -n "$ac_ct_AR"; then
8233   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8234 echo "${ECHO_T}$ac_ct_AR" >&6; }
8235 else
8236   { echo "$as_me:$LINENO: result: no" >&5
8237 echo "${ECHO_T}no" >&6; }
8238 fi
8239
8240   if test "x$ac_ct_AR" = x; then
8241     AR="false"
8242   else
8243     case $cross_compiling:$ac_tool_warned in
8244 yes:)
8245 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8246 whose name does not start with the host triplet.  If you think this
8247 configuration is useful to you, please write to autoconf@gnu.org." >&5
8248 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8249 whose name does not start with the host triplet.  If you think this
8250 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8251 ac_tool_warned=yes ;;
8252 esac
8253     AR=$ac_ct_AR
8254   fi
8255 else
8256   AR="$ac_cv_prog_AR"
8257 fi
8258
8259 if test -n "$ac_tool_prefix"; then
8260   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8261 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8262 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8264 if test "${ac_cv_prog_RANLIB+set}" = set; then
8265   echo $ECHO_N "(cached) $ECHO_C" >&6
8266 else
8267   if test -n "$RANLIB"; then
8268   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8269 else
8270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8271 for as_dir in $PATH
8272 do
8273   IFS=$as_save_IFS
8274   test -z "$as_dir" && as_dir=.
8275   for ac_exec_ext in '' $ac_executable_extensions; do
8276   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8277     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8278     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8279     break 2
8280   fi
8281 done
8282 done
8283 IFS=$as_save_IFS
8284
8285 fi
8286 fi
8287 RANLIB=$ac_cv_prog_RANLIB
8288 if test -n "$RANLIB"; then
8289   { echo "$as_me:$LINENO: result: $RANLIB" >&5
8290 echo "${ECHO_T}$RANLIB" >&6; }
8291 else
8292   { echo "$as_me:$LINENO: result: no" >&5
8293 echo "${ECHO_T}no" >&6; }
8294 fi
8295
8296
8297 fi
8298 if test -z "$ac_cv_prog_RANLIB"; then
8299   ac_ct_RANLIB=$RANLIB
8300   # Extract the first word of "ranlib", so it can be a program name with args.
8301 set dummy ranlib; ac_word=$2
8302 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8303 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8304 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8305   echo $ECHO_N "(cached) $ECHO_C" >&6
8306 else
8307   if test -n "$ac_ct_RANLIB"; then
8308   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8309 else
8310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8311 for as_dir in $PATH
8312 do
8313   IFS=$as_save_IFS
8314   test -z "$as_dir" && as_dir=.
8315   for ac_exec_ext in '' $ac_executable_extensions; do
8316   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8317     ac_cv_prog_ac_ct_RANLIB="ranlib"
8318     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8319     break 2
8320   fi
8321 done
8322 done
8323 IFS=$as_save_IFS
8324
8325 fi
8326 fi
8327 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8328 if test -n "$ac_ct_RANLIB"; then
8329   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8330 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
8331 else
8332   { echo "$as_me:$LINENO: result: no" >&5
8333 echo "${ECHO_T}no" >&6; }
8334 fi
8335
8336   if test "x$ac_ct_RANLIB" = x; then
8337     RANLIB=":"
8338   else
8339     case $cross_compiling:$ac_tool_warned in
8340 yes:)
8341 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8342 whose name does not start with the host triplet.  If you think this
8343 configuration is useful to you, please write to autoconf@gnu.org." >&5
8344 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8345 whose name does not start with the host triplet.  If you think this
8346 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8347 ac_tool_warned=yes ;;
8348 esac
8349     RANLIB=$ac_ct_RANLIB
8350   fi
8351 else
8352   RANLIB="$ac_cv_prog_RANLIB"
8353 fi
8354
8355 if test -n "$ac_tool_prefix"; then
8356   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8357 set dummy ${ac_tool_prefix}strip; ac_word=$2
8358 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8359 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8360 if test "${ac_cv_prog_STRIP+set}" = set; then
8361   echo $ECHO_N "(cached) $ECHO_C" >&6
8362 else
8363   if test -n "$STRIP"; then
8364   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8365 else
8366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8367 for as_dir in $PATH
8368 do
8369   IFS=$as_save_IFS
8370   test -z "$as_dir" && as_dir=.
8371   for ac_exec_ext in '' $ac_executable_extensions; do
8372   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8373     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8374     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8375     break 2
8376   fi
8377 done
8378 done
8379 IFS=$as_save_IFS
8380
8381 fi
8382 fi
8383 STRIP=$ac_cv_prog_STRIP
8384 if test -n "$STRIP"; then
8385   { echo "$as_me:$LINENO: result: $STRIP" >&5
8386 echo "${ECHO_T}$STRIP" >&6; }
8387 else
8388   { echo "$as_me:$LINENO: result: no" >&5
8389 echo "${ECHO_T}no" >&6; }
8390 fi
8391
8392
8393 fi
8394 if test -z "$ac_cv_prog_STRIP"; then
8395   ac_ct_STRIP=$STRIP
8396   # Extract the first word of "strip", so it can be a program name with args.
8397 set dummy strip; ac_word=$2
8398 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8399 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8400 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8401   echo $ECHO_N "(cached) $ECHO_C" >&6
8402 else
8403   if test -n "$ac_ct_STRIP"; then
8404   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8405 else
8406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8407 for as_dir in $PATH
8408 do
8409   IFS=$as_save_IFS
8410   test -z "$as_dir" && as_dir=.
8411   for ac_exec_ext in '' $ac_executable_extensions; do
8412   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8413     ac_cv_prog_ac_ct_STRIP="strip"
8414     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8415     break 2
8416   fi
8417 done
8418 done
8419 IFS=$as_save_IFS
8420
8421 fi
8422 fi
8423 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8424 if test -n "$ac_ct_STRIP"; then
8425   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8426 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
8427 else
8428   { echo "$as_me:$LINENO: result: no" >&5
8429 echo "${ECHO_T}no" >&6; }
8430 fi
8431
8432   if test "x$ac_ct_STRIP" = x; then
8433     STRIP=":"
8434   else
8435     case $cross_compiling:$ac_tool_warned in
8436 yes:)
8437 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8438 whose name does not start with the host triplet.  If you think this
8439 configuration is useful to you, please write to autoconf@gnu.org." >&5
8440 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8441 whose name does not start with the host triplet.  If you think this
8442 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8443 ac_tool_warned=yes ;;
8444 esac
8445     STRIP=$ac_ct_STRIP
8446   fi
8447 else
8448   STRIP="$ac_cv_prog_STRIP"
8449 fi
8450
8451
8452 old_CC="$CC"
8453 old_CFLAGS="$CFLAGS"
8454
8455 # Set sane defaults for various variables
8456 test -z "$AR" && AR=ar
8457 test -z "$AR_FLAGS" && AR_FLAGS=cru
8458 test -z "$AS" && AS=as
8459 test -z "$CC" && CC=cc
8460 test -z "$LTCC" && LTCC=$CC
8461 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8462 test -z "$DLLTOOL" && DLLTOOL=dlltool
8463 test -z "$LD" && LD=ld
8464 test -z "$LN_S" && LN_S="ln -s"
8465 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8466 test -z "$NM" && NM=nm
8467 test -z "$SED" && SED=sed
8468 test -z "$OBJDUMP" && OBJDUMP=objdump
8469 test -z "$RANLIB" && RANLIB=:
8470 test -z "$STRIP" && STRIP=:
8471 test -z "$ac_objext" && ac_objext=o
8472
8473 # Determine commands to create old-style static archives.
8474 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8475 old_postinstall_cmds='chmod 644 $oldlib'
8476 old_postuninstall_cmds=
8477
8478 if test -n "$RANLIB"; then
8479   case $host_os in
8480   openbsd*)
8481     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8482     ;;
8483   *)
8484     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8485     ;;
8486   esac
8487   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8488 fi
8489
8490 for cc_temp in $compiler""; do
8491   case $cc_temp in
8492     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8493     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8494     \-*) ;;
8495     *) break;;
8496   esac
8497 done
8498 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8499
8500
8501 # Only perform the check for file, if the check method requires it
8502 case $deplibs_check_method in
8503 file_magic*)
8504   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8505     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8506 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
8507 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8508   echo $ECHO_N "(cached) $ECHO_C" >&6
8509 else
8510   case $MAGIC_CMD in
8511 [\\/*] |  ?:[\\/]*)
8512   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8513   ;;
8514 *)
8515   lt_save_MAGIC_CMD="$MAGIC_CMD"
8516   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8517   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8518   for ac_dir in $ac_dummy; do
8519     IFS="$lt_save_ifs"
8520     test -z "$ac_dir" && ac_dir=.
8521     if test -f $ac_dir/${ac_tool_prefix}file; then
8522       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8523       if test -n "$file_magic_test_file"; then
8524         case $deplibs_check_method in
8525         "file_magic "*)
8526           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8527           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8528           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8529             $EGREP "$file_magic_regex" > /dev/null; then
8530             :
8531           else
8532             cat <<EOF 1>&2
8533
8534 *** Warning: the command libtool uses to detect shared libraries,
8535 *** $file_magic_cmd, produces output that libtool cannot recognize.
8536 *** The result is that libtool may fail to recognize shared libraries
8537 *** as such.  This will affect the creation of libtool libraries that
8538 *** depend on shared libraries, but programs linked with such libtool
8539 *** libraries will work regardless of this problem.  Nevertheless, you
8540 *** may want to report the problem to your system manager and/or to
8541 *** bug-libtool@gnu.org
8542
8543 EOF
8544           fi ;;
8545         esac
8546       fi
8547       break
8548     fi
8549   done
8550   IFS="$lt_save_ifs"
8551   MAGIC_CMD="$lt_save_MAGIC_CMD"
8552   ;;
8553 esac
8554 fi
8555
8556 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8557 if test -n "$MAGIC_CMD"; then
8558   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8559 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8560 else
8561   { echo "$as_me:$LINENO: result: no" >&5
8562 echo "${ECHO_T}no" >&6; }
8563 fi
8564
8565 if test -z "$lt_cv_path_MAGIC_CMD"; then
8566   if test -n "$ac_tool_prefix"; then
8567     { echo "$as_me:$LINENO: checking for file" >&5
8568 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
8569 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8570   echo $ECHO_N "(cached) $ECHO_C" >&6
8571 else
8572   case $MAGIC_CMD in
8573 [\\/*] |  ?:[\\/]*)
8574   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8575   ;;
8576 *)
8577   lt_save_MAGIC_CMD="$MAGIC_CMD"
8578   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8579   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8580   for ac_dir in $ac_dummy; do
8581     IFS="$lt_save_ifs"
8582     test -z "$ac_dir" && ac_dir=.
8583     if test -f $ac_dir/file; then
8584       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8585       if test -n "$file_magic_test_file"; then
8586         case $deplibs_check_method in
8587         "file_magic "*)
8588           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8589           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8590           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8591             $EGREP "$file_magic_regex" > /dev/null; then
8592             :
8593           else
8594             cat <<EOF 1>&2
8595
8596 *** Warning: the command libtool uses to detect shared libraries,
8597 *** $file_magic_cmd, produces output that libtool cannot recognize.
8598 *** The result is that libtool may fail to recognize shared libraries
8599 *** as such.  This will affect the creation of libtool libraries that
8600 *** depend on shared libraries, but programs linked with such libtool
8601 *** libraries will work regardless of this problem.  Nevertheless, you
8602 *** may want to report the problem to your system manager and/or to
8603 *** bug-libtool@gnu.org
8604
8605 EOF
8606           fi ;;
8607         esac
8608       fi
8609       break
8610     fi
8611   done
8612   IFS="$lt_save_ifs"
8613   MAGIC_CMD="$lt_save_MAGIC_CMD"
8614   ;;
8615 esac
8616 fi
8617
8618 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8619 if test -n "$MAGIC_CMD"; then
8620   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8621 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8622 else
8623   { echo "$as_me:$LINENO: result: no" >&5
8624 echo "${ECHO_T}no" >&6; }
8625 fi
8626
8627   else
8628     MAGIC_CMD=:
8629   fi
8630 fi
8631
8632   fi
8633   ;;
8634 esac
8635
8636 enable_dlopen=no
8637 enable_win32_dll=no
8638
8639 # Check whether --enable-libtool-lock was given.
8640 if test "${enable_libtool_lock+set}" = set; then
8641   enableval=$enable_libtool_lock; 
8642 fi
8643
8644 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8645
8646
8647 # Check whether --with-pic was given.
8648 if test "${with_pic+set}" = set; then
8649   withval=$with_pic; pic_mode="$withval"
8650 else
8651   pic_mode=default
8652 fi
8653
8654 test -z "$pic_mode" && pic_mode=default
8655
8656 # Use C for the default configuration in the libtool script
8657 tagname=
8658 lt_save_CC="$CC"
8659 ac_ext=c
8660 ac_cpp='$CPP $CPPFLAGS'
8661 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8662 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8663 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8664
8665
8666 # Source file extension for C test sources.
8667 ac_ext=c
8668
8669 # Object file extension for compiled C test sources.
8670 objext=o
8671 objext=$objext
8672
8673 # Code to be used in simple compile tests
8674 lt_simple_compile_test_code="int some_variable = 0;"
8675
8676 # Code to be used in simple link tests
8677 lt_simple_link_test_code='int main(){return(0);}'
8678
8679
8680 # If no C compiler was specified, use CC.
8681 LTCC=${LTCC-"$CC"}
8682
8683 # If no C compiler flags were specified, use CFLAGS.
8684 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8685
8686 # Allow CC to be a program name with arguments.
8687 compiler=$CC
8688
8689
8690 # save warnings/boilerplate of simple test code
8691 ac_outfile=conftest.$ac_objext
8692 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8693 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8694 _lt_compiler_boilerplate=`cat conftest.err`
8695 $rm conftest*
8696
8697 ac_outfile=conftest.$ac_objext
8698 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8699 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8700 _lt_linker_boilerplate=`cat conftest.err`
8701 $rm conftest*
8702
8703
8704 ## CAVEAT EMPTOR:
8705 ## There is no encapsulation within the following macros, do not change
8706 ## the running order or otherwise move them around unless you know exactly
8707 ## what you are doing...
8708
8709 lt_prog_compiler_no_builtin_flag=
8710
8711 if test "$GCC" = yes; then
8712   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8713
8714   
8715 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8716 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
8717 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8718   echo $ECHO_N "(cached) $ECHO_C" >&6
8719 else
8720   lt_cv_prog_compiler_rtti_exceptions=no
8721   ac_outfile=conftest.$ac_objext
8722    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8723    lt_compiler_flag="-fno-rtti -fno-exceptions"
8724    # Insert the option either (1) after the last *FLAGS variable, or
8725    # (2) before a word containing "conftest.", or (3) at the end.
8726    # Note that $ac_compile itself does not contain backslashes and begins
8727    # with a dollar sign (not a hyphen), so the echo should work correctly.
8728    # The option is referenced via a variable to avoid confusing sed.
8729    lt_compile=`echo "$ac_compile" | $SED \
8730    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8731    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8732    -e 's:$: $lt_compiler_flag:'`
8733    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
8734    (eval "$lt_compile" 2>conftest.err)
8735    ac_status=$?
8736    cat conftest.err >&5
8737    echo "$as_me:__oline__: \$? = $ac_status" >&5
8738    if (exit $ac_status) && test -s "$ac_outfile"; then
8739      # The compiler can only warn and ignore the option if not recognized
8740      # So say no if there are warnings other than the usual output.
8741      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8742      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8743      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8744        lt_cv_prog_compiler_rtti_exceptions=yes
8745      fi
8746    fi
8747    $rm conftest*
8748
8749 fi
8750 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8751 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8752
8753 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8754     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8755 else
8756     :
8757 fi
8758
8759 fi
8760
8761 lt_prog_compiler_wl=
8762 lt_prog_compiler_pic=
8763 lt_prog_compiler_static=
8764
8765 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8766 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
8767  
8768   if test "$GCC" = yes; then
8769     lt_prog_compiler_wl='-Wl,'
8770     lt_prog_compiler_static='-static'
8771
8772     case $host_os in
8773       aix*)
8774       # All AIX code is PIC.
8775       if test "$host_cpu" = ia64; then
8776         # AIX 5 now supports IA64 processor
8777         lt_prog_compiler_static='-Bstatic'
8778       fi
8779       ;;
8780
8781     amigaos*)
8782       # FIXME: we need at least 68020 code to build shared libraries, but
8783       # adding the `-m68020' flag to GCC prevents building anything better,
8784       # like `-m68040'.
8785       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8786       ;;
8787
8788     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8789       # PIC is the default for these OSes.
8790       ;;
8791
8792     mingw* | cygwin* | pw32* | os2*)
8793       # This hack is so that the source file can tell whether it is being
8794       # built for inclusion in a dll (and should export symbols for example).
8795       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8796       # (--disable-auto-import) libraries
8797       lt_prog_compiler_pic='-DDLL_EXPORT'
8798       ;;
8799
8800     darwin* | rhapsody*)
8801       # PIC is the default on this platform
8802       # Common symbols not allowed in MH_DYLIB files
8803       lt_prog_compiler_pic='-fno-common'
8804       ;;
8805
8806     interix[3-9]*)
8807       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8808       # Instead, we relocate shared libraries at runtime.
8809       ;;
8810
8811     msdosdjgpp*)
8812       # Just because we use GCC doesn't mean we suddenly get shared libraries
8813       # on systems that don't support them.
8814       lt_prog_compiler_can_build_shared=no
8815       enable_shared=no
8816       ;;
8817
8818     sysv4*MP*)
8819       if test -d /usr/nec; then
8820         lt_prog_compiler_pic=-Kconform_pic
8821       fi
8822       ;;
8823
8824     hpux*)
8825       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8826       # not for PA HP-UX.
8827       case $host_cpu in
8828       hppa*64*|ia64*)
8829         # +Z the default
8830         ;;
8831       *)
8832         lt_prog_compiler_pic='-fPIC'
8833         ;;
8834       esac
8835       ;;
8836
8837     *)
8838       lt_prog_compiler_pic='-fPIC'
8839       ;;
8840     esac
8841   else
8842     # PORTME Check for flag to pass linker flags through the system compiler.
8843     case $host_os in
8844     aix*)
8845       lt_prog_compiler_wl='-Wl,'
8846       if test "$host_cpu" = ia64; then
8847         # AIX 5 now supports IA64 processor
8848         lt_prog_compiler_static='-Bstatic'
8849       else
8850         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8851       fi
8852       ;;
8853       darwin*)
8854         # PIC is the default on this platform
8855         # Common symbols not allowed in MH_DYLIB files
8856        case $cc_basename in
8857          xlc*)
8858          lt_prog_compiler_pic='-qnocommon'
8859          lt_prog_compiler_wl='-Wl,'
8860          ;;
8861        esac
8862        ;;
8863
8864     mingw* | cygwin* | pw32* | os2*)
8865       # This hack is so that the source file can tell whether it is being
8866       # built for inclusion in a dll (and should export symbols for example).
8867       lt_prog_compiler_pic='-DDLL_EXPORT'
8868       ;;
8869
8870     hpux9* | hpux10* | hpux11*)
8871       lt_prog_compiler_wl='-Wl,'
8872       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8873       # not for PA HP-UX.
8874       case $host_cpu in
8875       hppa*64*|ia64*)
8876         # +Z the default
8877         ;;
8878       *)
8879         lt_prog_compiler_pic='+Z'
8880         ;;
8881       esac
8882       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8883       lt_prog_compiler_static='${wl}-a ${wl}archive'
8884       ;;
8885
8886     irix5* | irix6* | nonstopux*)
8887       lt_prog_compiler_wl='-Wl,'
8888       # PIC (with -KPIC) is the default.
8889       lt_prog_compiler_static='-non_shared'
8890       ;;
8891
8892     newsos6)
8893       lt_prog_compiler_pic='-KPIC'
8894       lt_prog_compiler_static='-Bstatic'
8895       ;;
8896
8897     linux* | k*bsd*-gnu)
8898       case $cc_basename in
8899       icc* | ecc*)
8900         lt_prog_compiler_wl='-Wl,'
8901         lt_prog_compiler_pic='-KPIC'
8902         lt_prog_compiler_static='-static'
8903         ;;
8904       pgcc* | pgf77* | pgf90* | pgf95*)
8905         # Portland Group compilers (*not* the Pentium gcc compiler,
8906         # which looks to be a dead project)
8907         lt_prog_compiler_wl='-Wl,'
8908         lt_prog_compiler_pic='-fpic'
8909         lt_prog_compiler_static='-Bstatic'
8910         ;;
8911       ccc*)
8912         lt_prog_compiler_wl='-Wl,'
8913         # All Alpha code is PIC.
8914         lt_prog_compiler_static='-non_shared'
8915         ;;
8916       *)
8917         case `$CC -V 2>&1 | sed 5q` in
8918         *Sun\ C*)
8919           # Sun C 5.9
8920           lt_prog_compiler_pic='-KPIC'
8921           lt_prog_compiler_static='-Bstatic'
8922           lt_prog_compiler_wl='-Wl,'
8923           ;;
8924         *Sun\ F*)
8925           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8926           lt_prog_compiler_pic='-KPIC'
8927           lt_prog_compiler_static='-Bstatic'
8928           lt_prog_compiler_wl=''
8929           ;;
8930         esac
8931         ;;
8932       esac
8933       ;;
8934
8935     osf3* | osf4* | osf5*)
8936       lt_prog_compiler_wl='-Wl,'
8937       # All OSF/1 code is PIC.
8938       lt_prog_compiler_static='-non_shared'
8939       ;;
8940
8941     rdos*)
8942       lt_prog_compiler_static='-non_shared'
8943       ;;
8944
8945     solaris*)
8946       lt_prog_compiler_pic='-KPIC'
8947       lt_prog_compiler_static='-Bstatic'
8948       case $cc_basename in
8949       f77* | f90* | f95*)
8950         lt_prog_compiler_wl='-Qoption ld ';;
8951       *)
8952         lt_prog_compiler_wl='-Wl,';;
8953       esac
8954       ;;
8955
8956     sunos4*)
8957       lt_prog_compiler_wl='-Qoption ld '
8958       lt_prog_compiler_pic='-PIC'
8959       lt_prog_compiler_static='-Bstatic'
8960       ;;
8961
8962     sysv4 | sysv4.2uw2* | sysv4.3*)
8963       lt_prog_compiler_wl='-Wl,'
8964       lt_prog_compiler_pic='-KPIC'
8965       lt_prog_compiler_static='-Bstatic'
8966       ;;
8967
8968     sysv4*MP*)
8969       if test -d /usr/nec ;then
8970         lt_prog_compiler_pic='-Kconform_pic'
8971         lt_prog_compiler_static='-Bstatic'
8972       fi
8973       ;;
8974
8975     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8976       lt_prog_compiler_wl='-Wl,'
8977       lt_prog_compiler_pic='-KPIC'
8978       lt_prog_compiler_static='-Bstatic'
8979       ;;
8980
8981     unicos*)
8982       lt_prog_compiler_wl='-Wl,'
8983       lt_prog_compiler_can_build_shared=no
8984       ;;
8985
8986     uts4*)
8987       lt_prog_compiler_pic='-pic'
8988       lt_prog_compiler_static='-Bstatic'
8989       ;;
8990
8991     *)
8992       lt_prog_compiler_can_build_shared=no
8993       ;;
8994     esac
8995   fi
8996
8997 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8998 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8999
9000 #
9001 # Check to make sure the PIC flag actually works.
9002 #
9003 if test -n "$lt_prog_compiler_pic"; then
9004   
9005 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9006 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
9007 if test "${lt_prog_compiler_pic_works+set}" = set; then
9008   echo $ECHO_N "(cached) $ECHO_C" >&6
9009 else
9010   lt_prog_compiler_pic_works=no
9011   ac_outfile=conftest.$ac_objext
9012    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9013    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9014    # Insert the option either (1) after the last *FLAGS variable, or
9015    # (2) before a word containing "conftest.", or (3) at the end.
9016    # Note that $ac_compile itself does not contain backslashes and begins
9017    # with a dollar sign (not a hyphen), so the echo should work correctly.
9018    # The option is referenced via a variable to avoid confusing sed.
9019    lt_compile=`echo "$ac_compile" | $SED \
9020    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9021    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9022    -e 's:$: $lt_compiler_flag:'`
9023    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
9024    (eval "$lt_compile" 2>conftest.err)
9025    ac_status=$?
9026    cat conftest.err >&5
9027    echo "$as_me:__oline__: \$? = $ac_status" >&5
9028    if (exit $ac_status) && test -s "$ac_outfile"; then
9029      # The compiler can only warn and ignore the option if not recognized
9030      # So say no if there are warnings other than the usual output.
9031      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9032      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9033      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9034        lt_prog_compiler_pic_works=yes
9035      fi
9036    fi
9037    $rm conftest*
9038
9039 fi
9040 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
9041 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
9042
9043 if test x"$lt_prog_compiler_pic_works" = xyes; then
9044     case $lt_prog_compiler_pic in
9045      "" | " "*) ;;
9046      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9047      esac
9048 else
9049     lt_prog_compiler_pic=
9050      lt_prog_compiler_can_build_shared=no
9051 fi
9052
9053 fi
9054 case $host_os in
9055   # For platforms which do not support PIC, -DPIC is meaningless:
9056   *djgpp*)
9057     lt_prog_compiler_pic=
9058     ;;
9059   *)
9060     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9061     ;;
9062 esac
9063
9064 #
9065 # Check to make sure the static flag actually works.
9066 #
9067 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9068 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9069 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
9070 if test "${lt_prog_compiler_static_works+set}" = set; then
9071   echo $ECHO_N "(cached) $ECHO_C" >&6
9072 else
9073   lt_prog_compiler_static_works=no
9074    save_LDFLAGS="$LDFLAGS"
9075    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9076    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9077    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9078      # The linker can only warn and ignore the option if not recognized
9079      # So say no if there are warnings
9080      if test -s conftest.err; then
9081        # Append any errors to the config.log.
9082        cat conftest.err 1>&5
9083        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9084        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9085        if diff conftest.exp conftest.er2 >/dev/null; then
9086          lt_prog_compiler_static_works=yes
9087        fi
9088      else
9089        lt_prog_compiler_static_works=yes
9090      fi
9091    fi
9092    $rm conftest*
9093    LDFLAGS="$save_LDFLAGS"
9094
9095 fi
9096 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
9097 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
9098
9099 if test x"$lt_prog_compiler_static_works" = xyes; then
9100     :
9101 else
9102     lt_prog_compiler_static=
9103 fi
9104
9105
9106 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9107 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9108 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9109   echo $ECHO_N "(cached) $ECHO_C" >&6
9110 else
9111   lt_cv_prog_compiler_c_o=no
9112    $rm -r conftest 2>/dev/null
9113    mkdir conftest
9114    cd conftest
9115    mkdir out
9116    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9117
9118    lt_compiler_flag="-o out/conftest2.$ac_objext"
9119    # Insert the option either (1) after the last *FLAGS variable, or
9120    # (2) before a word containing "conftest.", or (3) at the end.
9121    # Note that $ac_compile itself does not contain backslashes and begins
9122    # with a dollar sign (not a hyphen), so the echo should work correctly.
9123    lt_compile=`echo "$ac_compile" | $SED \
9124    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9125    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9126    -e 's:$: $lt_compiler_flag:'`
9127    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
9128    (eval "$lt_compile" 2>out/conftest.err)
9129    ac_status=$?
9130    cat out/conftest.err >&5
9131    echo "$as_me:__oline__: \$? = $ac_status" >&5
9132    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9133    then
9134      # The compiler can only warn and ignore the option if not recognized
9135      # So say no if there are warnings
9136      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9137      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9138      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9139        lt_cv_prog_compiler_c_o=yes
9140      fi
9141    fi
9142    chmod u+w . 2>&5
9143    $rm conftest*
9144    # SGI C++ compiler will create directory out/ii_files/ for
9145    # template instantiation
9146    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
9147    $rm out/* && rmdir out
9148    cd ..
9149    rmdir conftest
9150    $rm conftest*
9151
9152 fi
9153 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9154 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9155
9156
9157 hard_links="nottested"
9158 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9159   # do not overwrite the value of need_locks provided by the user
9160   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9161 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
9162   hard_links=yes
9163   $rm conftest*
9164   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9165   touch conftest.a
9166   ln conftest.a conftest.b 2>&5 || hard_links=no
9167   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9168   { echo "$as_me:$LINENO: result: $hard_links" >&5
9169 echo "${ECHO_T}$hard_links" >&6; }
9170   if test "$hard_links" = no; then
9171     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9172 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9173     need_locks=warn
9174   fi
9175 else
9176   need_locks=no
9177 fi
9178
9179 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9180 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
9181
9182   runpath_var=
9183   allow_undefined_flag=
9184   enable_shared_with_static_runtimes=no
9185   archive_cmds=
9186   archive_expsym_cmds=
9187   old_archive_From_new_cmds=
9188   old_archive_from_expsyms_cmds=
9189   export_dynamic_flag_spec=
9190   whole_archive_flag_spec=
9191   thread_safe_flag_spec=
9192   hardcode_libdir_flag_spec=
9193   hardcode_libdir_flag_spec_ld=
9194   hardcode_libdir_separator=
9195   hardcode_direct=no
9196   hardcode_minus_L=no
9197   hardcode_shlibpath_var=unsupported
9198   link_all_deplibs=unknown
9199   hardcode_automatic=no
9200   module_cmds=
9201   module_expsym_cmds=
9202   always_export_symbols=no
9203   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9204   # include_expsyms should be a list of space-separated symbols to be *always*
9205   # included in the symbol list
9206   include_expsyms=
9207   # exclude_expsyms can be an extended regexp of symbols to exclude
9208   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9209   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9210   # as well as any symbol that contains `d'.
9211   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
9212   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9213   # platforms (ab)use it in PIC code, but their linkers get confused if
9214   # the symbol is explicitly referenced.  Since portable code cannot
9215   # rely on this symbol name, it's probably fine to never include it in
9216   # preloaded symbol tables.
9217   extract_expsyms_cmds=
9218   # Just being paranoid about ensuring that cc_basename is set.
9219   for cc_temp in $compiler""; do
9220   case $cc_temp in
9221     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9222     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9223     \-*) ;;
9224     *) break;;
9225   esac
9226 done
9227 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9228
9229   case $host_os in
9230   cygwin* | mingw* | pw32*)
9231     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9232     # When not using gcc, we currently assume that we are using
9233     # Microsoft Visual C++.
9234     if test "$GCC" != yes; then
9235       with_gnu_ld=no
9236     fi
9237     ;;
9238   interix*)
9239     # we just hope/assume this is gcc and not c89 (= MSVC++)
9240     with_gnu_ld=yes
9241     ;;
9242   openbsd*)
9243     with_gnu_ld=no
9244     ;;
9245   esac
9246
9247   ld_shlibs=yes
9248   if test "$with_gnu_ld" = yes; then
9249     # If archive_cmds runs LD, not CC, wlarc should be empty
9250     wlarc='${wl}'
9251
9252     # Set some defaults for GNU ld with shared library support. These
9253     # are reset later if shared libraries are not supported. Putting them
9254     # here allows them to be overridden if necessary.
9255     runpath_var=LD_RUN_PATH
9256     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9257     export_dynamic_flag_spec='${wl}--export-dynamic'
9258     # ancient GNU ld didn't support --whole-archive et. al.
9259     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9260         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9261       else
9262         whole_archive_flag_spec=
9263     fi
9264     supports_anon_versioning=no
9265     case `$LD -v 2>/dev/null` in
9266       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9267       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9268       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9269       *\ 2.11.*) ;; # other 2.11 versions
9270       *) supports_anon_versioning=yes ;;
9271     esac
9272
9273     # See if GNU ld supports shared libraries.
9274     case $host_os in
9275     aix3* | aix4* | aix5*)
9276       # On AIX/PPC, the GNU linker is very broken
9277       if test "$host_cpu" != ia64; then
9278         ld_shlibs=no
9279         cat <<EOF 1>&2
9280
9281 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9282 *** to be unable to reliably create shared libraries on AIX.
9283 *** Therefore, libtool is disabling shared libraries support.  If you
9284 *** really care for shared libraries, you may want to modify your PATH
9285 *** so that a non-GNU linker is found, and then restart.
9286
9287 EOF
9288       fi
9289       ;;
9290
9291     amigaos*)
9292       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)'
9293       hardcode_libdir_flag_spec='-L$libdir'
9294       hardcode_minus_L=yes
9295
9296       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9297       # that the semantics of dynamic libraries on AmigaOS, at least up
9298       # to version 4, is to share data among multiple programs linked
9299       # with the same dynamic library.  Since this doesn't match the
9300       # behavior of shared libraries on other platforms, we can't use
9301       # them.
9302       ld_shlibs=no
9303       ;;
9304
9305     beos*)
9306       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9307         allow_undefined_flag=unsupported
9308         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9309         # support --undefined.  This deserves some investigation.  FIXME
9310         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9311       else
9312         ld_shlibs=no
9313       fi
9314       ;;
9315
9316     cygwin* | mingw* | pw32*)
9317       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9318       # as there is no search path for DLLs.
9319       hardcode_libdir_flag_spec='-L$libdir'
9320       allow_undefined_flag=unsupported
9321       always_export_symbols=no
9322       enable_shared_with_static_runtimes=yes
9323       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9324
9325       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9326         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9327         # If the export-symbols file already is a .def file (1st line
9328         # is EXPORTS), use it as is; otherwise, prepend...
9329         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9330           cp $export_symbols $output_objdir/$soname.def;
9331         else
9332           echo EXPORTS > $output_objdir/$soname.def;
9333           cat $export_symbols >> $output_objdir/$soname.def;
9334         fi~
9335         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9336       else
9337         ld_shlibs=no
9338       fi
9339       ;;
9340
9341     interix[3-9]*)
9342       hardcode_direct=no
9343       hardcode_shlibpath_var=no
9344       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9345       export_dynamic_flag_spec='${wl}-E'
9346       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9347       # Instead, shared libraries are loaded at an image base (0x10000000 by
9348       # default) and relocated if they conflict, which is a slow very memory
9349       # consuming and fragmenting process.  To avoid this, we pick a random,
9350       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9351       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9352       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9353       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'
9354       ;;
9355
9356     gnu* | linux* | k*bsd*-gnu)
9357       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9358         tmp_addflag=
9359         case $cc_basename,$host_cpu in
9360         pgcc*)                          # Portland Group C compiler
9361           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'
9362           tmp_addflag=' $pic_flag'
9363           ;;
9364         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9365           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'
9366           tmp_addflag=' $pic_flag -Mnomain' ;;
9367         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
9368           tmp_addflag=' -i_dynamic' ;;
9369         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9370           tmp_addflag=' -i_dynamic -nofor_main' ;;
9371         ifc* | ifort*)                  # Intel Fortran compiler
9372           tmp_addflag=' -nofor_main' ;;
9373         esac
9374         case `$CC -V 2>&1 | sed 5q` in
9375         *Sun\ C*)                       # Sun C 5.9
9376           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
9377           tmp_sharedflag='-G' ;;
9378         *Sun\ F*)                       # Sun Fortran 8.3
9379           tmp_sharedflag='-G' ;;
9380         *)
9381           tmp_sharedflag='-shared' ;;
9382         esac
9383         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9384
9385         if test $supports_anon_versioning = yes; then
9386           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9387   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9388   $echo "local: *; };" >> $output_objdir/$libname.ver~
9389           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9390         fi
9391         link_all_deplibs=no
9392       else
9393         ld_shlibs=no
9394       fi
9395       ;;
9396
9397     netbsd* | netbsdelf*-gnu)
9398       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9399         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9400         wlarc=
9401       else
9402         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9403         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9404       fi
9405       ;;
9406
9407     solaris*)
9408       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9409         ld_shlibs=no
9410         cat <<EOF 1>&2
9411
9412 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9413 *** create shared libraries on Solaris systems.  Therefore, libtool
9414 *** is disabling shared libraries support.  We urge you to upgrade GNU
9415 *** binutils to release 2.9.1 or newer.  Another option is to modify
9416 *** your PATH or compiler configuration so that the native linker is
9417 *** used, and then restart.
9418
9419 EOF
9420       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9421         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9422         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9423       else
9424         ld_shlibs=no
9425       fi
9426       ;;
9427
9428     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9429       case `$LD -v 2>&1` in
9430         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9431         ld_shlibs=no
9432         cat <<_LT_EOF 1>&2
9433
9434 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9435 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9436 *** is disabling shared libraries support.  We urge you to upgrade GNU
9437 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9438 *** your PATH or compiler configuration so that the native linker is
9439 *** used, and then restart.
9440
9441 _LT_EOF
9442         ;;
9443         *)
9444           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9445             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9446             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9447             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9448           else
9449             ld_shlibs=no
9450           fi
9451         ;;
9452       esac
9453       ;;
9454
9455     sunos4*)
9456       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9457       wlarc=
9458       hardcode_direct=yes
9459       hardcode_shlibpath_var=no
9460       ;;
9461
9462     *)
9463       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9464         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9465         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9466       else
9467         ld_shlibs=no
9468       fi
9469       ;;
9470     esac
9471
9472     if test "$ld_shlibs" = no; then
9473       runpath_var=
9474       hardcode_libdir_flag_spec=
9475       export_dynamic_flag_spec=
9476       whole_archive_flag_spec=
9477     fi
9478   else
9479     # PORTME fill in a description of your system's linker (not GNU ld)
9480     case $host_os in
9481     aix3*)
9482       allow_undefined_flag=unsupported
9483       always_export_symbols=yes
9484       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'
9485       # Note: this linker hardcodes the directories in LIBPATH if there
9486       # are no directories specified by -L.
9487       hardcode_minus_L=yes
9488       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9489         # Neither direct hardcoding nor static linking is supported with a
9490         # broken collect2.
9491         hardcode_direct=unsupported
9492       fi
9493       ;;
9494
9495     aix4* | aix5*)
9496       if test "$host_cpu" = ia64; then
9497         # On IA64, the linker does run time linking by default, so we don't
9498         # have to do anything special.
9499         aix_use_runtimelinking=no
9500         exp_sym_flag='-Bexport'
9501         no_entry_flag=""
9502       else
9503         # If we're using GNU nm, then we don't want the "-C" option.
9504         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9505         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9506           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'
9507         else
9508           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'
9509         fi
9510         aix_use_runtimelinking=no
9511
9512         # Test if we are trying to use run time linking or normal
9513         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9514         # need to do runtime linking.
9515         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9516           for ld_flag in $LDFLAGS; do
9517           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9518             aix_use_runtimelinking=yes
9519             break
9520           fi
9521           done
9522           ;;
9523         esac
9524
9525         exp_sym_flag='-bexport'
9526         no_entry_flag='-bnoentry'
9527       fi
9528
9529       # When large executables or shared objects are built, AIX ld can
9530       # have problems creating the table of contents.  If linking a library
9531       # or program results in "error TOC overflow" add -mminimal-toc to
9532       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9533       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9534
9535       archive_cmds=''
9536       hardcode_direct=yes
9537       hardcode_libdir_separator=':'
9538       link_all_deplibs=yes
9539
9540       if test "$GCC" = yes; then
9541         case $host_os in aix4.[012]|aix4.[012].*)
9542         # We only want to do this on AIX 4.2 and lower, the check
9543         # below for broken collect2 doesn't work under 4.3+
9544           collect2name=`${CC} -print-prog-name=collect2`
9545           if test -f "$collect2name" && \
9546            strings "$collect2name" | grep resolve_lib_name >/dev/null
9547           then
9548           # We have reworked collect2
9549           :
9550           else
9551           # We have old collect2
9552           hardcode_direct=unsupported
9553           # It fails to find uninstalled libraries when the uninstalled
9554           # path is not listed in the libpath.  Setting hardcode_minus_L
9555           # to unsupported forces relinking
9556           hardcode_minus_L=yes
9557           hardcode_libdir_flag_spec='-L$libdir'
9558           hardcode_libdir_separator=
9559           fi
9560           ;;
9561         esac
9562         shared_flag='-shared'
9563         if test "$aix_use_runtimelinking" = yes; then
9564           shared_flag="$shared_flag "'${wl}-G'
9565         fi
9566       else
9567         # not using gcc
9568         if test "$host_cpu" = ia64; then
9569         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9570         # chokes on -Wl,-G. The following line is correct:
9571           shared_flag='-G'
9572         else
9573           if test "$aix_use_runtimelinking" = yes; then
9574             shared_flag='${wl}-G'
9575           else
9576             shared_flag='${wl}-bM:SRE'
9577           fi
9578         fi
9579       fi
9580
9581       # It seems that -bexpall does not export symbols beginning with
9582       # underscore (_), so it is better to generate a list of symbols to export.
9583       always_export_symbols=yes
9584       if test "$aix_use_runtimelinking" = yes; then
9585         # Warning - without using the other runtime loading flags (-brtl),
9586         # -berok will link without error, but may produce a broken library.
9587         allow_undefined_flag='-berok'
9588        # Determine the default libpath from the value encoded in an empty executable.
9589        cat >conftest.$ac_ext <<_ACEOF
9590 /* confdefs.h.  */
9591 _ACEOF
9592 cat confdefs.h >>conftest.$ac_ext
9593 cat >>conftest.$ac_ext <<_ACEOF
9594 /* end confdefs.h.  */
9595
9596 int
9597 main ()
9598 {
9599
9600   ;
9601   return 0;
9602 }
9603 _ACEOF
9604 rm -f conftest.$ac_objext conftest$ac_exeext
9605 if { (ac_try="$ac_link"
9606 case "(($ac_try" in
9607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9608   *) ac_try_echo=$ac_try;;
9609 esac
9610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9611   (eval "$ac_link") 2>conftest.er1
9612   ac_status=$?
9613   grep -v '^ *+' conftest.er1 >conftest.err
9614   rm -f conftest.er1
9615   cat conftest.err >&5
9616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9617   (exit $ac_status); } && {
9618          test -z "$ac_c_werror_flag" ||
9619          test ! -s conftest.err
9620        } && test -s conftest$ac_exeext &&
9621        $as_test_x conftest$ac_exeext; then
9622   
9623 lt_aix_libpath_sed='
9624     /Import File Strings/,/^$/ {
9625         /^0/ {
9626             s/^0  *\(.*\)$/\1/
9627             p
9628         }
9629     }'
9630 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9631 # Check for a 64-bit object if we didn't find anything.
9632 if test -z "$aix_libpath"; then
9633   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9634 fi
9635 else
9636   echo "$as_me: failed program was:" >&5
9637 sed 's/^/| /' conftest.$ac_ext >&5
9638
9639         
9640 fi
9641
9642 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9643       conftest$ac_exeext conftest.$ac_ext
9644 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9645
9646        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9647         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"
9648        else
9649         if test "$host_cpu" = ia64; then
9650           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9651           allow_undefined_flag="-z nodefs"
9652           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"
9653         else
9654          # Determine the default libpath from the value encoded in an empty executable.
9655          cat >conftest.$ac_ext <<_ACEOF
9656 /* confdefs.h.  */
9657 _ACEOF
9658 cat confdefs.h >>conftest.$ac_ext
9659 cat >>conftest.$ac_ext <<_ACEOF
9660 /* end confdefs.h.  */
9661
9662 int
9663 main ()
9664 {
9665
9666   ;
9667   return 0;
9668 }
9669 _ACEOF
9670 rm -f conftest.$ac_objext conftest$ac_exeext
9671 if { (ac_try="$ac_link"
9672 case "(($ac_try" in
9673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9674   *) ac_try_echo=$ac_try;;
9675 esac
9676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9677   (eval "$ac_link") 2>conftest.er1
9678   ac_status=$?
9679   grep -v '^ *+' conftest.er1 >conftest.err
9680   rm -f conftest.er1
9681   cat conftest.err >&5
9682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9683   (exit $ac_status); } && {
9684          test -z "$ac_c_werror_flag" ||
9685          test ! -s conftest.err
9686        } && test -s conftest$ac_exeext &&
9687        $as_test_x conftest$ac_exeext; then
9688   
9689 lt_aix_libpath_sed='
9690     /Import File Strings/,/^$/ {
9691         /^0/ {
9692             s/^0  *\(.*\)$/\1/
9693             p
9694         }
9695     }'
9696 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9697 # Check for a 64-bit object if we didn't find anything.
9698 if test -z "$aix_libpath"; then
9699   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9700 fi
9701 else
9702   echo "$as_me: failed program was:" >&5
9703 sed 's/^/| /' conftest.$ac_ext >&5
9704
9705         
9706 fi
9707
9708 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9709       conftest$ac_exeext conftest.$ac_ext
9710 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9711
9712          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9713           # Warning - without using the other run time loading flags,
9714           # -berok will link without error, but may produce a broken library.
9715           no_undefined_flag=' ${wl}-bernotok'
9716           allow_undefined_flag=' ${wl}-berok'
9717           # Exported symbols can be pulled into shared objects from archives
9718           whole_archive_flag_spec='$convenience'
9719           archive_cmds_need_lc=yes
9720           # This is similar to how AIX traditionally builds its shared libraries.
9721           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'
9722         fi
9723       fi
9724       ;;
9725
9726     amigaos*)
9727       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)'
9728       hardcode_libdir_flag_spec='-L$libdir'
9729       hardcode_minus_L=yes
9730       # see comment about different semantics on the GNU ld section
9731       ld_shlibs=no
9732       ;;
9733
9734     bsdi[45]*)
9735       export_dynamic_flag_spec=-rdynamic
9736       ;;
9737
9738     cygwin* | mingw* | pw32*)
9739       # When not using gcc, we currently assume that we are using
9740       # Microsoft Visual C++.
9741       # hardcode_libdir_flag_spec is actually meaningless, as there is
9742       # no search path for DLLs.
9743       hardcode_libdir_flag_spec=' '
9744       allow_undefined_flag=unsupported
9745       # Tell ltmain to make .lib files, not .a files.
9746       libext=lib
9747       # Tell ltmain to make .dll files, not .so files.
9748       shrext_cmds=".dll"
9749       # FIXME: Setting linknames here is a bad hack.
9750       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9751       # The linker will automatically build a .lib file if we build a DLL.
9752       old_archive_From_new_cmds='true'
9753       # FIXME: Should let the user specify the lib program.
9754       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9755       fix_srcfile_path='`cygpath -w "$srcfile"`'
9756       enable_shared_with_static_runtimes=yes
9757       ;;
9758
9759     darwin* | rhapsody*)
9760       case $host_os in
9761         rhapsody* | darwin1.[012])
9762          allow_undefined_flag='${wl}-undefined ${wl}suppress'
9763          ;;
9764        *) # Darwin 1.3 on
9765          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9766            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9767          else
9768            case ${MACOSX_DEPLOYMENT_TARGET} in
9769              10.[012])
9770                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9771                ;;
9772              10.*)
9773                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9774                ;;
9775            esac
9776          fi
9777          ;;
9778       esac
9779       archive_cmds_need_lc=no
9780       hardcode_direct=no
9781       hardcode_automatic=yes
9782       hardcode_shlibpath_var=unsupported
9783       whole_archive_flag_spec=''
9784       link_all_deplibs=yes
9785     if test "$GCC" = yes ; then
9786         output_verbose_link_cmd='echo'
9787         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9788       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9789       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9790       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}'
9791       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}'
9792     else
9793       case $cc_basename in
9794         xlc*)
9795          output_verbose_link_cmd='echo'
9796          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
9797          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9798           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9799          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9800           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}'
9801           ;;
9802        *)
9803          ld_shlibs=no
9804           ;;
9805       esac
9806     fi
9807       ;;
9808
9809     dgux*)
9810       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9811       hardcode_libdir_flag_spec='-L$libdir'
9812       hardcode_shlibpath_var=no
9813       ;;
9814
9815     freebsd1*)
9816       ld_shlibs=no
9817       ;;
9818
9819     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9820     # support.  Future versions do this automatically, but an explicit c++rt0.o
9821     # does not break anything, and helps significantly (at the cost of a little
9822     # extra space).
9823     freebsd2.2*)
9824       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9825       hardcode_libdir_flag_spec='-R$libdir'
9826       hardcode_direct=yes
9827       hardcode_shlibpath_var=no
9828       ;;
9829
9830     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9831     freebsd2*)
9832       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9833       hardcode_direct=yes
9834       hardcode_minus_L=yes
9835       hardcode_shlibpath_var=no
9836       ;;
9837
9838     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9839     freebsd* | dragonfly*)
9840       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9841       hardcode_libdir_flag_spec='-R$libdir'
9842       hardcode_direct=yes
9843       hardcode_shlibpath_var=no
9844       ;;
9845
9846     hpux9*)
9847       if test "$GCC" = yes; then
9848         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'
9849       else
9850         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'
9851       fi
9852       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9853       hardcode_libdir_separator=:
9854       hardcode_direct=yes
9855
9856       # hardcode_minus_L: Not really in the search PATH,
9857       # but as the default location of the library.
9858       hardcode_minus_L=yes
9859       export_dynamic_flag_spec='${wl}-E'
9860       ;;
9861
9862     hpux10*)
9863       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9864         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9865       else
9866         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9867       fi
9868       if test "$with_gnu_ld" = no; then
9869         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9870         hardcode_libdir_separator=:
9871
9872         hardcode_direct=yes
9873         export_dynamic_flag_spec='${wl}-E'
9874
9875         # hardcode_minus_L: Not really in the search PATH,
9876         # but as the default location of the library.
9877         hardcode_minus_L=yes
9878       fi
9879       ;;
9880
9881     hpux11*)
9882       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9883         case $host_cpu in
9884         hppa*64*)
9885           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9886           ;;
9887         ia64*)
9888           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9889           ;;
9890         *)
9891           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9892           ;;
9893         esac
9894       else
9895         case $host_cpu in
9896         hppa*64*)
9897           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9898           ;;
9899         ia64*)
9900           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9901           ;;
9902         *)
9903           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9904           ;;
9905         esac
9906       fi
9907       if test "$with_gnu_ld" = no; then
9908         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9909         hardcode_libdir_separator=:
9910
9911         case $host_cpu in
9912         hppa*64*|ia64*)
9913           hardcode_libdir_flag_spec_ld='+b $libdir'
9914           hardcode_direct=no
9915           hardcode_shlibpath_var=no
9916           ;;
9917         *)
9918           hardcode_direct=yes
9919           export_dynamic_flag_spec='${wl}-E'
9920
9921           # hardcode_minus_L: Not really in the search PATH,
9922           # but as the default location of the library.
9923           hardcode_minus_L=yes
9924           ;;
9925         esac
9926       fi
9927       ;;
9928
9929     irix5* | irix6* | nonstopux*)
9930       if test "$GCC" = yes; then
9931         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'
9932       else
9933         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'
9934         hardcode_libdir_flag_spec_ld='-rpath $libdir'
9935       fi
9936       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9937       hardcode_libdir_separator=:
9938       link_all_deplibs=yes
9939       ;;
9940
9941     netbsd* | netbsdelf*-gnu)
9942       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9943         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9944       else
9945         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9946       fi
9947       hardcode_libdir_flag_spec='-R$libdir'
9948       hardcode_direct=yes
9949       hardcode_shlibpath_var=no
9950       ;;
9951
9952     newsos6)
9953       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9954       hardcode_direct=yes
9955       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9956       hardcode_libdir_separator=:
9957       hardcode_shlibpath_var=no
9958       ;;
9959
9960     openbsd*)
9961       if test -f /usr/libexec/ld.so; then
9962         hardcode_direct=yes
9963         hardcode_shlibpath_var=no
9964         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9965           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9966           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9967           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9968           export_dynamic_flag_spec='${wl}-E'
9969         else
9970           case $host_os in
9971            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9972              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9973              hardcode_libdir_flag_spec='-R$libdir'
9974              ;;
9975            *)
9976              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9977              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9978              ;;
9979           esac
9980         fi
9981       else
9982         ld_shlibs=no
9983       fi
9984       ;;
9985
9986     os2*)
9987       hardcode_libdir_flag_spec='-L$libdir'
9988       hardcode_minus_L=yes
9989       allow_undefined_flag=unsupported
9990       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'
9991       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9992       ;;
9993
9994     osf3*)
9995       if test "$GCC" = yes; then
9996         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9997         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'
9998       else
9999         allow_undefined_flag=' -expect_unresolved \*'
10000         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'
10001       fi
10002       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10003       hardcode_libdir_separator=:
10004       ;;
10005
10006     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10007       if test "$GCC" = yes; then
10008         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10009         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'
10010         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10011       else
10012         allow_undefined_flag=' -expect_unresolved \*'
10013         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'
10014         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
10015         $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'
10016
10017         # Both c and cxx compiler support -rpath directly
10018         hardcode_libdir_flag_spec='-rpath $libdir'
10019       fi
10020       hardcode_libdir_separator=:
10021       ;;
10022
10023     solaris*)
10024       no_undefined_flag=' -z text'
10025       if test "$GCC" = yes; then
10026         wlarc='${wl}'
10027         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10028         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10029           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
10030       else
10031         wlarc=''
10032         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10033         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10034         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
10035       fi
10036       hardcode_libdir_flag_spec='-R$libdir'
10037       hardcode_shlibpath_var=no
10038       case $host_os in
10039       solaris2.[0-5] | solaris2.[0-5].*) ;;
10040       *)
10041         # The compiler driver will combine and reorder linker options,
10042         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10043         # but is careful enough not to reorder.
10044         # Supported since Solaris 2.6 (maybe 2.5.1?)
10045         if test "$GCC" = yes; then
10046           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10047         else
10048           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10049         fi
10050         ;;
10051       esac
10052       link_all_deplibs=yes
10053       ;;
10054
10055     sunos4*)
10056       if test "x$host_vendor" = xsequent; then
10057         # Use $CC to link under sequent, because it throws in some extra .o
10058         # files that make .init and .fini sections work.
10059         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10060       else
10061         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10062       fi
10063       hardcode_libdir_flag_spec='-L$libdir'
10064       hardcode_direct=yes
10065       hardcode_minus_L=yes
10066       hardcode_shlibpath_var=no
10067       ;;
10068
10069     sysv4)
10070       case $host_vendor in
10071         sni)
10072           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10073           hardcode_direct=yes # is this really true???
10074         ;;
10075         siemens)
10076           ## LD is ld it makes a PLAMLIB
10077           ## CC just makes a GrossModule.
10078           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10079           reload_cmds='$CC -r -o $output$reload_objs'
10080           hardcode_direct=no
10081         ;;
10082         motorola)
10083           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10084           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10085         ;;
10086       esac
10087       runpath_var='LD_RUN_PATH'
10088       hardcode_shlibpath_var=no
10089       ;;
10090
10091     sysv4.3*)
10092       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10093       hardcode_shlibpath_var=no
10094       export_dynamic_flag_spec='-Bexport'
10095       ;;
10096
10097     sysv4*MP*)
10098       if test -d /usr/nec; then
10099         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10100         hardcode_shlibpath_var=no
10101         runpath_var=LD_RUN_PATH
10102         hardcode_runpath_var=yes
10103         ld_shlibs=yes
10104       fi
10105       ;;
10106
10107     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10108       no_undefined_flag='${wl}-z,text'
10109       archive_cmds_need_lc=no
10110       hardcode_shlibpath_var=no
10111       runpath_var='LD_RUN_PATH'
10112
10113       if test "$GCC" = yes; then
10114         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10115         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10116       else
10117         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10118         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10119       fi
10120       ;;
10121
10122     sysv5* | sco3.2v5* | sco5v6*)
10123       # Note: We can NOT use -z defs as we might desire, because we do not
10124       # link with -lc, and that would cause any symbols used from libc to
10125       # always be unresolved, which means just about no library would
10126       # ever link correctly.  If we're not using GNU ld we use -z text
10127       # though, which does catch some bad symbols but isn't as heavy-handed
10128       # as -z defs.
10129       no_undefined_flag='${wl}-z,text'
10130       allow_undefined_flag='${wl}-z,nodefs'
10131       archive_cmds_need_lc=no
10132       hardcode_shlibpath_var=no
10133       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
10134       hardcode_libdir_separator=':'
10135       link_all_deplibs=yes
10136       export_dynamic_flag_spec='${wl}-Bexport'
10137       runpath_var='LD_RUN_PATH'
10138
10139       if test "$GCC" = yes; then
10140         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10141         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10142       else
10143         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10144         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10145       fi
10146       ;;
10147
10148     uts4*)
10149       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10150       hardcode_libdir_flag_spec='-L$libdir'
10151       hardcode_shlibpath_var=no
10152       ;;
10153
10154     *)
10155       ld_shlibs=no
10156       ;;
10157     esac
10158   fi
10159
10160 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10161 echo "${ECHO_T}$ld_shlibs" >&6; }
10162 test "$ld_shlibs" = no && can_build_shared=no
10163
10164 #
10165 # Do we need to explicitly link libc?
10166 #
10167 case "x$archive_cmds_need_lc" in
10168 x|xyes)
10169   # Assume -lc should be added
10170   archive_cmds_need_lc=yes
10171
10172   if test "$enable_shared" = yes && test "$GCC" = yes; then
10173     case $archive_cmds in
10174     *'~'*)
10175       # FIXME: we may have to deal with multi-command sequences.
10176       ;;
10177     '$CC '*)
10178       # Test whether the compiler implicitly links with -lc since on some
10179       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10180       # to ld, don't add -lc before -lgcc.
10181       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10182 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
10183       $rm conftest*
10184       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10185
10186       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10187   (eval $ac_compile) 2>&5
10188   ac_status=$?
10189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10190   (exit $ac_status); } 2>conftest.err; then
10191         soname=conftest
10192         lib=conftest
10193         libobjs=conftest.$ac_objext
10194         deplibs=
10195         wl=$lt_prog_compiler_wl
10196         pic_flag=$lt_prog_compiler_pic
10197         compiler_flags=-v
10198         linker_flags=-v
10199         verstring=
10200         output_objdir=.
10201         libname=conftest
10202         lt_save_allow_undefined_flag=$allow_undefined_flag
10203         allow_undefined_flag=
10204         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10205   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10206   ac_status=$?
10207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10208   (exit $ac_status); }
10209         then
10210           archive_cmds_need_lc=no
10211         else
10212           archive_cmds_need_lc=yes
10213         fi
10214         allow_undefined_flag=$lt_save_allow_undefined_flag
10215       else
10216         cat conftest.err 1>&5
10217       fi
10218       $rm conftest*
10219       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10220 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
10221       ;;
10222     esac
10223   fi
10224   ;;
10225 esac
10226
10227 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10228 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
10229 library_names_spec=
10230 libname_spec='lib$name'
10231 soname_spec=
10232 shrext_cmds=".so"
10233 postinstall_cmds=
10234 postuninstall_cmds=
10235 finish_cmds=
10236 finish_eval=
10237 shlibpath_var=
10238 shlibpath_overrides_runpath=unknown
10239 version_type=none
10240 dynamic_linker="$host_os ld.so"
10241 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10242
10243 if test "$GCC" = yes; then
10244   case $host_os in
10245     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10246     *) lt_awk_arg="/^libraries:/" ;;
10247   esac
10248   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10249   if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
10250     # if the path contains ";" then we assume it to be the separator
10251     # otherwise default to the standard path separator (i.e. ":") - it is
10252     # assumed that no part of a normal pathname contains ";" but that should
10253     # okay in the real world where ";" in dirpaths is itself problematic.
10254     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10255   else
10256     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10257   fi
10258   # Ok, now we have the path, separated by spaces, we can step through it
10259   # and add multilib dir if necessary.
10260   lt_tmp_lt_search_path_spec=
10261   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10262   for lt_sys_path in $lt_search_path_spec; do
10263     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10264       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10265     else
10266       test -d "$lt_sys_path" && \
10267         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10268     fi
10269   done
10270   lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
10271 BEGIN {RS=" "; FS="/|\n";} {
10272   lt_foo="";
10273   lt_count=0;
10274   for (lt_i = NF; lt_i > 0; lt_i--) {
10275     if ($lt_i != "" && $lt_i != ".") {
10276       if ($lt_i == "..") {
10277         lt_count++;
10278       } else {
10279         if (lt_count == 0) {
10280           lt_foo="/" $lt_i lt_foo;
10281         } else {
10282           lt_count--;
10283         }
10284       }
10285     }
10286   }
10287   if (lt_foo != "") { lt_freq[lt_foo]++; }
10288   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10289 }'`
10290   sys_lib_search_path_spec=`echo $lt_search_path_spec`
10291 else
10292   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10293 fi
10294 need_lib_prefix=unknown
10295 hardcode_into_libs=no
10296
10297 # when you set need_version to no, make sure it does not cause -set_version
10298 # flags to be left without arguments
10299 need_version=unknown
10300
10301 case $host_os in
10302 aix3*)
10303   version_type=linux
10304   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10305   shlibpath_var=LIBPATH
10306
10307   # AIX 3 has no versioning support, so we append a major version to the name.
10308   soname_spec='${libname}${release}${shared_ext}$major'
10309   ;;
10310
10311 aix4* | aix5*)
10312   version_type=linux
10313   need_lib_prefix=no
10314   need_version=no
10315   hardcode_into_libs=yes
10316   if test "$host_cpu" = ia64; then
10317     # AIX 5 supports IA64
10318     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10319     shlibpath_var=LD_LIBRARY_PATH
10320   else
10321     # With GCC up to 2.95.x, collect2 would create an import file
10322     # for dependence libraries.  The import file would start with
10323     # the line `#! .'.  This would cause the generated library to
10324     # depend on `.', always an invalid library.  This was fixed in
10325     # development snapshots of GCC prior to 3.0.
10326     case $host_os in
10327       aix4 | aix4.[01] | aix4.[01].*)
10328       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10329            echo ' yes '
10330            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10331         :
10332       else
10333         can_build_shared=no
10334       fi
10335       ;;
10336     esac
10337     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10338     # soname into executable. Probably we can add versioning support to
10339     # collect2, so additional links can be useful in future.
10340     if test "$aix_use_runtimelinking" = yes; then
10341       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10342       # instead of lib<name>.a to let people know that these are not
10343       # typical AIX shared libraries.
10344       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10345     else
10346       # We preserve .a as extension for shared libraries through AIX4.2
10347       # and later when we are not doing run time linking.
10348       library_names_spec='${libname}${release}.a $libname.a'
10349       soname_spec='${libname}${release}${shared_ext}$major'
10350     fi
10351     shlibpath_var=LIBPATH
10352   fi
10353   ;;
10354
10355 amigaos*)
10356   library_names_spec='$libname.ixlibrary $libname.a'
10357   # Create ${libname}_ixlibrary.a entries in /sys/libs.
10358   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'
10359   ;;
10360
10361 beos*)
10362   library_names_spec='${libname}${shared_ext}'
10363   dynamic_linker="$host_os ld.so"
10364   shlibpath_var=LIBRARY_PATH
10365   ;;
10366
10367 bsdi[45]*)
10368   version_type=linux
10369   need_version=no
10370   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10371   soname_spec='${libname}${release}${shared_ext}$major'
10372   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10373   shlibpath_var=LD_LIBRARY_PATH
10374   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10375   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10376   # the default ld.so.conf also contains /usr/contrib/lib and
10377   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10378   # libtool to hard-code these into programs
10379   ;;
10380
10381 cygwin* | mingw* | pw32*)
10382   version_type=windows
10383   shrext_cmds=".dll"
10384   need_version=no
10385   need_lib_prefix=no
10386
10387   case $GCC,$host_os in
10388   yes,cygwin* | yes,mingw* | yes,pw32*)
10389     library_names_spec='$libname.dll.a'
10390     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10391     postinstall_cmds='base_file=`basename \${file}`~
10392       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10393       dldir=$destdir/`dirname \$dlpath`~
10394       test -d \$dldir || mkdir -p \$dldir~
10395       $install_prog $dir/$dlname \$dldir/$dlname~
10396       chmod a+x \$dldir/$dlname'
10397     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10398       dlpath=$dir/\$dldll~
10399        $rm \$dlpath'
10400     shlibpath_overrides_runpath=yes
10401
10402     case $host_os in
10403     cygwin*)
10404       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10405       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10406       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10407       ;;
10408     mingw*)
10409       # MinGW DLLs use traditional 'lib' prefix
10410       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10411       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10412       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10413         # It is most probably a Windows format PATH printed by
10414         # mingw gcc, but we are running on Cygwin. Gcc prints its search
10415         # path with ; separators, and with drive letters. We can handle the
10416         # drive letters (cygwin fileutils understands them), so leave them,
10417         # especially as we might pass files found there to a mingw objdump,
10418         # which wouldn't understand a cygwinified path. Ahh.
10419         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10420       else
10421         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10422       fi
10423       ;;
10424     pw32*)
10425       # pw32 DLLs use 'pw' prefix rather than 'lib'
10426       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10427       ;;
10428     esac
10429     ;;
10430
10431   *)
10432     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10433     ;;
10434   esac
10435   dynamic_linker='Win32 ld.exe'
10436   # FIXME: first we should search . and the directory the executable is in
10437   shlibpath_var=PATH
10438   ;;
10439
10440 darwin* | rhapsody*)
10441   dynamic_linker="$host_os dyld"
10442   version_type=darwin
10443   need_lib_prefix=no
10444   need_version=no
10445   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10446   soname_spec='${libname}${release}${major}$shared_ext'
10447   shlibpath_overrides_runpath=yes
10448   shlibpath_var=DYLD_LIBRARY_PATH
10449   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10450   
10451   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 
10452   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10453   ;;
10454
10455 dgux*)
10456   version_type=linux
10457   need_lib_prefix=no
10458   need_version=no
10459   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10460   soname_spec='${libname}${release}${shared_ext}$major'
10461   shlibpath_var=LD_LIBRARY_PATH
10462   ;;
10463
10464 freebsd1*)
10465   dynamic_linker=no
10466   ;;
10467
10468 freebsd* | dragonfly*)
10469   # DragonFly does not have aout.  When/if they implement a new
10470   # versioning mechanism, adjust this.
10471   if test -x /usr/bin/objformat; then
10472     objformat=`/usr/bin/objformat`
10473   else
10474     case $host_os in
10475     freebsd[123]*) objformat=aout ;;
10476     *) objformat=elf ;;
10477     esac
10478   fi
10479   version_type=freebsd-$objformat
10480   case $version_type in
10481     freebsd-elf*)
10482       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10483       need_version=no
10484       need_lib_prefix=no
10485       ;;
10486     freebsd-*)
10487       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10488       need_version=yes
10489       ;;
10490   esac
10491   shlibpath_var=LD_LIBRARY_PATH
10492   case $host_os in
10493   freebsd2*)
10494     shlibpath_overrides_runpath=yes
10495     ;;
10496   freebsd3.[01]* | freebsdelf3.[01]*)
10497     shlibpath_overrides_runpath=yes
10498     hardcode_into_libs=yes
10499     ;;
10500   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10501   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10502     shlibpath_overrides_runpath=no
10503     hardcode_into_libs=yes
10504     ;;
10505   *) # from 4.6 on, and DragonFly
10506     shlibpath_overrides_runpath=yes
10507     hardcode_into_libs=yes
10508     ;;
10509   esac
10510   ;;
10511
10512 gnu*)
10513   version_type=linux
10514   need_lib_prefix=no
10515   need_version=no
10516   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10517   soname_spec='${libname}${release}${shared_ext}$major'
10518   shlibpath_var=LD_LIBRARY_PATH
10519   hardcode_into_libs=yes
10520   ;;
10521
10522 hpux9* | hpux10* | hpux11*)
10523   # Give a soname corresponding to the major version so that dld.sl refuses to
10524   # link against other versions.
10525   version_type=sunos
10526   need_lib_prefix=no
10527   need_version=no
10528   case $host_cpu in
10529   ia64*)
10530     shrext_cmds='.so'
10531     hardcode_into_libs=yes
10532     dynamic_linker="$host_os dld.so"
10533     shlibpath_var=LD_LIBRARY_PATH
10534     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10535     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10536     soname_spec='${libname}${release}${shared_ext}$major'
10537     if test "X$HPUX_IA64_MODE" = X32; then
10538       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10539     else
10540       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10541     fi
10542     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10543     ;;
10544    hppa*64*)
10545      shrext_cmds='.sl'
10546      hardcode_into_libs=yes
10547      dynamic_linker="$host_os dld.sl"
10548      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10549      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10550      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10551      soname_spec='${libname}${release}${shared_ext}$major'
10552      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10553      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10554      ;;
10555    *)
10556     shrext_cmds='.sl'
10557     dynamic_linker="$host_os dld.sl"
10558     shlibpath_var=SHLIB_PATH
10559     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10560     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10561     soname_spec='${libname}${release}${shared_ext}$major'
10562     ;;
10563   esac
10564   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10565   postinstall_cmds='chmod 555 $lib'
10566   ;;
10567
10568 interix[3-9]*)
10569   version_type=linux
10570   need_lib_prefix=no
10571   need_version=no
10572   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10573   soname_spec='${libname}${release}${shared_ext}$major'
10574   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10575   shlibpath_var=LD_LIBRARY_PATH
10576   shlibpath_overrides_runpath=no
10577   hardcode_into_libs=yes
10578   ;;
10579
10580 irix5* | irix6* | nonstopux*)
10581   case $host_os in
10582     nonstopux*) version_type=nonstopux ;;
10583     *)
10584         if test "$lt_cv_prog_gnu_ld" = yes; then
10585                 version_type=linux
10586         else
10587                 version_type=irix
10588         fi ;;
10589   esac
10590   need_lib_prefix=no
10591   need_version=no
10592   soname_spec='${libname}${release}${shared_ext}$major'
10593   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10594   case $host_os in
10595   irix5* | nonstopux*)
10596     libsuff= shlibsuff=
10597     ;;
10598   *)
10599     case $LD in # libtool.m4 will add one of these switches to LD
10600     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10601       libsuff= shlibsuff= libmagic=32-bit;;
10602     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10603       libsuff=32 shlibsuff=N32 libmagic=N32;;
10604     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10605       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10606     *) libsuff= shlibsuff= libmagic=never-match;;
10607     esac
10608     ;;
10609   esac
10610   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10611   shlibpath_overrides_runpath=no
10612   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10613   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10614   hardcode_into_libs=yes
10615   ;;
10616
10617 # No shared lib support for Linux oldld, aout, or coff.
10618 linux*oldld* | linux*aout* | linux*coff*)
10619   dynamic_linker=no
10620   ;;
10621
10622 # This must be Linux ELF.
10623 linux* | k*bsd*-gnu)
10624   version_type=linux
10625   need_lib_prefix=no
10626   need_version=no
10627   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10628   soname_spec='${libname}${release}${shared_ext}$major'
10629   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10630   shlibpath_var=LD_LIBRARY_PATH
10631   shlibpath_overrides_runpath=no
10632   # This implies no fast_install, which is unacceptable.
10633   # Some rework will be needed to allow for fast_install
10634   # before this can be enabled.
10635   hardcode_into_libs=yes
10636
10637   # Append ld.so.conf contents to the search path
10638   if test -f /etc/ld.so.conf; then
10639     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
10640     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10641   fi
10642
10643   # We used to test for /lib/ld.so.1 and disable shared libraries on
10644   # powerpc, because MkLinux only supported shared libraries with the
10645   # GNU dynamic linker.  Since this was broken with cross compilers,
10646   # most powerpc-linux boxes support dynamic linking these days and
10647   # people can always --disable-shared, the test was removed, and we
10648   # assume the GNU/Linux dynamic linker is in use.
10649   dynamic_linker='GNU/Linux ld.so'
10650   ;;
10651
10652 netbsdelf*-gnu)
10653   version_type=linux
10654   need_lib_prefix=no
10655   need_version=no
10656   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10657   soname_spec='${libname}${release}${shared_ext}$major'
10658   shlibpath_var=LD_LIBRARY_PATH
10659   shlibpath_overrides_runpath=no
10660   hardcode_into_libs=yes
10661   dynamic_linker='NetBSD ld.elf_so'
10662   ;;
10663
10664 netbsd*)
10665   version_type=sunos
10666   need_lib_prefix=no
10667   need_version=no
10668   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10669     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10670     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10671     dynamic_linker='NetBSD (a.out) ld.so'
10672   else
10673     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10674     soname_spec='${libname}${release}${shared_ext}$major'
10675     dynamic_linker='NetBSD ld.elf_so'
10676   fi
10677   shlibpath_var=LD_LIBRARY_PATH
10678   shlibpath_overrides_runpath=yes
10679   hardcode_into_libs=yes
10680   ;;
10681
10682 newsos6)
10683   version_type=linux
10684   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10685   shlibpath_var=LD_LIBRARY_PATH
10686   shlibpath_overrides_runpath=yes
10687   ;;
10688
10689 nto-qnx*)
10690   version_type=linux
10691   need_lib_prefix=no
10692   need_version=no
10693   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10694   soname_spec='${libname}${release}${shared_ext}$major'
10695   shlibpath_var=LD_LIBRARY_PATH
10696   shlibpath_overrides_runpath=yes
10697   ;;
10698
10699 openbsd*)
10700   version_type=sunos
10701   sys_lib_dlsearch_path_spec="/usr/lib"
10702   need_lib_prefix=no
10703   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10704   case $host_os in
10705     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10706     *)                         need_version=no  ;;
10707   esac
10708   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10709   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10710   shlibpath_var=LD_LIBRARY_PATH
10711   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10712     case $host_os in
10713       openbsd2.[89] | openbsd2.[89].*)
10714         shlibpath_overrides_runpath=no
10715         ;;
10716       *)
10717         shlibpath_overrides_runpath=yes
10718         ;;
10719       esac
10720   else
10721     shlibpath_overrides_runpath=yes
10722   fi
10723   ;;
10724
10725 os2*)
10726   libname_spec='$name'
10727   shrext_cmds=".dll"
10728   need_lib_prefix=no
10729   library_names_spec='$libname${shared_ext} $libname.a'
10730   dynamic_linker='OS/2 ld.exe'
10731   shlibpath_var=LIBPATH
10732   ;;
10733
10734 osf3* | osf4* | osf5*)
10735   version_type=osf
10736   need_lib_prefix=no
10737   need_version=no
10738   soname_spec='${libname}${release}${shared_ext}$major'
10739   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10740   shlibpath_var=LD_LIBRARY_PATH
10741   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10742   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10743   ;;
10744
10745 rdos*)
10746   dynamic_linker=no
10747   ;;
10748
10749 solaris*)
10750   version_type=linux
10751   need_lib_prefix=no
10752   need_version=no
10753   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10754   soname_spec='${libname}${release}${shared_ext}$major'
10755   shlibpath_var=LD_LIBRARY_PATH
10756   shlibpath_overrides_runpath=yes
10757   hardcode_into_libs=yes
10758   # ldd complains unless libraries are executable
10759   postinstall_cmds='chmod +x $lib'
10760   ;;
10761
10762 sunos4*)
10763   version_type=sunos
10764   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10765   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10766   shlibpath_var=LD_LIBRARY_PATH
10767   shlibpath_overrides_runpath=yes
10768   if test "$with_gnu_ld" = yes; then
10769     need_lib_prefix=no
10770   fi
10771   need_version=yes
10772   ;;
10773
10774 sysv4 | sysv4.3*)
10775   version_type=linux
10776   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10777   soname_spec='${libname}${release}${shared_ext}$major'
10778   shlibpath_var=LD_LIBRARY_PATH
10779   case $host_vendor in
10780     sni)
10781       shlibpath_overrides_runpath=no
10782       need_lib_prefix=no
10783       export_dynamic_flag_spec='${wl}-Blargedynsym'
10784       runpath_var=LD_RUN_PATH
10785       ;;
10786     siemens)
10787       need_lib_prefix=no
10788       ;;
10789     motorola)
10790       need_lib_prefix=no
10791       need_version=no
10792       shlibpath_overrides_runpath=no
10793       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10794       ;;
10795   esac
10796   ;;
10797
10798 sysv4*MP*)
10799   if test -d /usr/nec ;then
10800     version_type=linux
10801     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10802     soname_spec='$libname${shared_ext}.$major'
10803     shlibpath_var=LD_LIBRARY_PATH
10804   fi
10805   ;;
10806
10807 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10808   version_type=freebsd-elf
10809   need_lib_prefix=no
10810   need_version=no
10811   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10812   soname_spec='${libname}${release}${shared_ext}$major'
10813   shlibpath_var=LD_LIBRARY_PATH
10814   hardcode_into_libs=yes
10815   if test "$with_gnu_ld" = yes; then
10816     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10817     shlibpath_overrides_runpath=no
10818   else
10819     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10820     shlibpath_overrides_runpath=yes
10821     case $host_os in
10822       sco3.2v5*)
10823         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10824         ;;
10825     esac
10826   fi
10827   sys_lib_dlsearch_path_spec='/usr/lib'
10828   ;;
10829
10830 uts4*)
10831   version_type=linux
10832   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10833   soname_spec='${libname}${release}${shared_ext}$major'
10834   shlibpath_var=LD_LIBRARY_PATH
10835   ;;
10836
10837 *)
10838   dynamic_linker=no
10839   ;;
10840 esac
10841 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10842 echo "${ECHO_T}$dynamic_linker" >&6; }
10843 test "$dynamic_linker" = no && can_build_shared=no
10844
10845 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10846 if test "$GCC" = yes; then
10847   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10848 fi
10849
10850 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10851 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10852 hardcode_action=
10853 if test -n "$hardcode_libdir_flag_spec" || \
10854    test -n "$runpath_var" || \
10855    test "X$hardcode_automatic" = "Xyes" ; then
10856
10857   # We can hardcode non-existant directories.
10858   if test "$hardcode_direct" != no &&
10859      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10860      # have to relink, otherwise we might link with an installed library
10861      # when we should be linking with a yet-to-be-installed one
10862      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10863      test "$hardcode_minus_L" != no; then
10864     # Linking always hardcodes the temporary library directory.
10865     hardcode_action=relink
10866   else
10867     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10868     hardcode_action=immediate
10869   fi
10870 else
10871   # We cannot hardcode anything, or else we can only hardcode existing
10872   # directories.
10873   hardcode_action=unsupported
10874 fi
10875 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
10876 echo "${ECHO_T}$hardcode_action" >&6; }
10877
10878 if test "$hardcode_action" = relink; then
10879   # Fast installation is not supported
10880   enable_fast_install=no
10881 elif test "$shlibpath_overrides_runpath" = yes ||
10882      test "$enable_shared" = no; then
10883   # Fast installation is not necessary
10884   enable_fast_install=needless
10885 fi
10886
10887 striplib=
10888 old_striplib=
10889 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10890 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10891 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10892   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10893   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10894   { echo "$as_me:$LINENO: result: yes" >&5
10895 echo "${ECHO_T}yes" >&6; }
10896 else
10897 # FIXME - insert some real tests, host_os isn't really good enough
10898   case $host_os in
10899    darwin*)
10900        if test -n "$STRIP" ; then
10901          striplib="$STRIP -x"
10902          old_striplib="$STRIP -S"
10903          { echo "$as_me:$LINENO: result: yes" >&5
10904 echo "${ECHO_T}yes" >&6; }
10905        else
10906   { echo "$as_me:$LINENO: result: no" >&5
10907 echo "${ECHO_T}no" >&6; }
10908 fi
10909        ;;
10910    *)
10911   { echo "$as_me:$LINENO: result: no" >&5
10912 echo "${ECHO_T}no" >&6; }
10913     ;;
10914   esac
10915 fi
10916
10917 if test "x$enable_dlopen" != xyes; then
10918   enable_dlopen=unknown
10919   enable_dlopen_self=unknown
10920   enable_dlopen_self_static=unknown
10921 else
10922   lt_cv_dlopen=no
10923   lt_cv_dlopen_libs=
10924
10925   case $host_os in
10926   beos*)
10927     lt_cv_dlopen="load_add_on"
10928     lt_cv_dlopen_libs=
10929     lt_cv_dlopen_self=yes
10930     ;;
10931
10932   mingw* | pw32*)
10933     lt_cv_dlopen="LoadLibrary"
10934     lt_cv_dlopen_libs=
10935    ;;
10936
10937   cygwin*)
10938     lt_cv_dlopen="dlopen"
10939     lt_cv_dlopen_libs=
10940    ;;
10941
10942   darwin*)
10943   # if libdl is installed we need to link against it
10944     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10945 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10946 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10947   echo $ECHO_N "(cached) $ECHO_C" >&6
10948 else
10949   ac_check_lib_save_LIBS=$LIBS
10950 LIBS="-ldl  $LIBS"
10951 cat >conftest.$ac_ext <<_ACEOF
10952 /* confdefs.h.  */
10953 _ACEOF
10954 cat confdefs.h >>conftest.$ac_ext
10955 cat >>conftest.$ac_ext <<_ACEOF
10956 /* end confdefs.h.  */
10957
10958 /* Override any GCC internal prototype to avoid an error.
10959    Use char because int might match the return type of a GCC
10960    builtin and then its argument prototype would still apply.  */
10961 #ifdef __cplusplus
10962 extern "C"
10963 #endif
10964 char dlopen ();
10965 int
10966 main ()
10967 {
10968 return dlopen ();
10969   ;
10970   return 0;
10971 }
10972 _ACEOF
10973 rm -f conftest.$ac_objext conftest$ac_exeext
10974 if { (ac_try="$ac_link"
10975 case "(($ac_try" in
10976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10977   *) ac_try_echo=$ac_try;;
10978 esac
10979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10980   (eval "$ac_link") 2>conftest.er1
10981   ac_status=$?
10982   grep -v '^ *+' conftest.er1 >conftest.err
10983   rm -f conftest.er1
10984   cat conftest.err >&5
10985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10986   (exit $ac_status); } && {
10987          test -z "$ac_c_werror_flag" ||
10988          test ! -s conftest.err
10989        } && test -s conftest$ac_exeext &&
10990        $as_test_x conftest$ac_exeext; then
10991   ac_cv_lib_dl_dlopen=yes
10992 else
10993   echo "$as_me: failed program was:" >&5
10994 sed 's/^/| /' conftest.$ac_ext >&5
10995
10996         ac_cv_lib_dl_dlopen=no
10997 fi
10998
10999 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11000       conftest$ac_exeext conftest.$ac_ext
11001 LIBS=$ac_check_lib_save_LIBS
11002 fi
11003 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11004 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11005 if test $ac_cv_lib_dl_dlopen = yes; then
11006   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11007 else
11008   
11009     lt_cv_dlopen="dyld"
11010     lt_cv_dlopen_libs=
11011     lt_cv_dlopen_self=yes
11012     
11013 fi
11014
11015    ;;
11016
11017   *)
11018     { echo "$as_me:$LINENO: checking for shl_load" >&5
11019 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
11020 if test "${ac_cv_func_shl_load+set}" = set; then
11021   echo $ECHO_N "(cached) $ECHO_C" >&6
11022 else
11023   cat >conftest.$ac_ext <<_ACEOF
11024 /* confdefs.h.  */
11025 _ACEOF
11026 cat confdefs.h >>conftest.$ac_ext
11027 cat >>conftest.$ac_ext <<_ACEOF
11028 /* end confdefs.h.  */
11029 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11030    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11031 #define shl_load innocuous_shl_load
11032
11033 /* System header to define __stub macros and hopefully few prototypes,
11034     which can conflict with char shl_load (); below.
11035     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11036     <limits.h> exists even on freestanding compilers.  */
11037
11038 #ifdef __STDC__
11039 # include <limits.h>
11040 #else
11041 # include <assert.h>
11042 #endif
11043
11044 #undef shl_load
11045
11046 /* Override any GCC internal prototype to avoid an error.
11047    Use char because int might match the return type of a GCC
11048    builtin and then its argument prototype would still apply.  */
11049 #ifdef __cplusplus
11050 extern "C"
11051 #endif
11052 char shl_load ();
11053 /* The GNU C library defines this for functions which it implements
11054     to always fail with ENOSYS.  Some functions are actually named
11055     something starting with __ and the normal name is an alias.  */
11056 #if defined __stub_shl_load || defined __stub___shl_load
11057 choke me
11058 #endif
11059
11060 int
11061 main ()
11062 {
11063 return shl_load ();
11064   ;
11065   return 0;
11066 }
11067 _ACEOF
11068 rm -f conftest.$ac_objext conftest$ac_exeext
11069 if { (ac_try="$ac_link"
11070 case "(($ac_try" in
11071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11072   *) ac_try_echo=$ac_try;;
11073 esac
11074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11075   (eval "$ac_link") 2>conftest.er1
11076   ac_status=$?
11077   grep -v '^ *+' conftest.er1 >conftest.err
11078   rm -f conftest.er1
11079   cat conftest.err >&5
11080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11081   (exit $ac_status); } && {
11082          test -z "$ac_c_werror_flag" ||
11083          test ! -s conftest.err
11084        } && test -s conftest$ac_exeext &&
11085        $as_test_x conftest$ac_exeext; then
11086   ac_cv_func_shl_load=yes
11087 else
11088   echo "$as_me: failed program was:" >&5
11089 sed 's/^/| /' conftest.$ac_ext >&5
11090
11091         ac_cv_func_shl_load=no
11092 fi
11093
11094 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11095       conftest$ac_exeext conftest.$ac_ext
11096 fi
11097 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11098 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
11099 if test $ac_cv_func_shl_load = yes; then
11100   lt_cv_dlopen="shl_load"
11101 else
11102   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11103 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
11104 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11105   echo $ECHO_N "(cached) $ECHO_C" >&6
11106 else
11107   ac_check_lib_save_LIBS=$LIBS
11108 LIBS="-ldld  $LIBS"
11109 cat >conftest.$ac_ext <<_ACEOF
11110 /* confdefs.h.  */
11111 _ACEOF
11112 cat confdefs.h >>conftest.$ac_ext
11113 cat >>conftest.$ac_ext <<_ACEOF
11114 /* end confdefs.h.  */
11115
11116 /* Override any GCC internal prototype to avoid an error.
11117    Use char because int might match the return type of a GCC
11118    builtin and then its argument prototype would still apply.  */
11119 #ifdef __cplusplus
11120 extern "C"
11121 #endif
11122 char shl_load ();
11123 int
11124 main ()
11125 {
11126 return shl_load ();
11127   ;
11128   return 0;
11129 }
11130 _ACEOF
11131 rm -f conftest.$ac_objext conftest$ac_exeext
11132 if { (ac_try="$ac_link"
11133 case "(($ac_try" in
11134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11135   *) ac_try_echo=$ac_try;;
11136 esac
11137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11138   (eval "$ac_link") 2>conftest.er1
11139   ac_status=$?
11140   grep -v '^ *+' conftest.er1 >conftest.err
11141   rm -f conftest.er1
11142   cat conftest.err >&5
11143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11144   (exit $ac_status); } && {
11145          test -z "$ac_c_werror_flag" ||
11146          test ! -s conftest.err
11147        } && test -s conftest$ac_exeext &&
11148        $as_test_x conftest$ac_exeext; then
11149   ac_cv_lib_dld_shl_load=yes
11150 else
11151   echo "$as_me: failed program was:" >&5
11152 sed 's/^/| /' conftest.$ac_ext >&5
11153
11154         ac_cv_lib_dld_shl_load=no
11155 fi
11156
11157 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11158       conftest$ac_exeext conftest.$ac_ext
11159 LIBS=$ac_check_lib_save_LIBS
11160 fi
11161 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11162 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
11163 if test $ac_cv_lib_dld_shl_load = yes; then
11164   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11165 else
11166   { echo "$as_me:$LINENO: checking for dlopen" >&5
11167 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
11168 if test "${ac_cv_func_dlopen+set}" = set; then
11169   echo $ECHO_N "(cached) $ECHO_C" >&6
11170 else
11171   cat >conftest.$ac_ext <<_ACEOF
11172 /* confdefs.h.  */
11173 _ACEOF
11174 cat confdefs.h >>conftest.$ac_ext
11175 cat >>conftest.$ac_ext <<_ACEOF
11176 /* end confdefs.h.  */
11177 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11178    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11179 #define dlopen innocuous_dlopen
11180
11181 /* System header to define __stub macros and hopefully few prototypes,
11182     which can conflict with char dlopen (); below.
11183     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11184     <limits.h> exists even on freestanding compilers.  */
11185
11186 #ifdef __STDC__
11187 # include <limits.h>
11188 #else
11189 # include <assert.h>
11190 #endif
11191
11192 #undef dlopen
11193
11194 /* Override any GCC internal prototype to avoid an error.
11195    Use char because int might match the return type of a GCC
11196    builtin and then its argument prototype would still apply.  */
11197 #ifdef __cplusplus
11198 extern "C"
11199 #endif
11200 char dlopen ();
11201 /* The GNU C library defines this for functions which it implements
11202     to always fail with ENOSYS.  Some functions are actually named
11203     something starting with __ and the normal name is an alias.  */
11204 #if defined __stub_dlopen || defined __stub___dlopen
11205 choke me
11206 #endif
11207
11208 int
11209 main ()
11210 {
11211 return dlopen ();
11212   ;
11213   return 0;
11214 }
11215 _ACEOF
11216 rm -f conftest.$ac_objext conftest$ac_exeext
11217 if { (ac_try="$ac_link"
11218 case "(($ac_try" in
11219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11220   *) ac_try_echo=$ac_try;;
11221 esac
11222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11223   (eval "$ac_link") 2>conftest.er1
11224   ac_status=$?
11225   grep -v '^ *+' conftest.er1 >conftest.err
11226   rm -f conftest.er1
11227   cat conftest.err >&5
11228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11229   (exit $ac_status); } && {
11230          test -z "$ac_c_werror_flag" ||
11231          test ! -s conftest.err
11232        } && test -s conftest$ac_exeext &&
11233        $as_test_x conftest$ac_exeext; then
11234   ac_cv_func_dlopen=yes
11235 else
11236   echo "$as_me: failed program was:" >&5
11237 sed 's/^/| /' conftest.$ac_ext >&5
11238
11239         ac_cv_func_dlopen=no
11240 fi
11241
11242 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11243       conftest$ac_exeext conftest.$ac_ext
11244 fi
11245 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11246 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
11247 if test $ac_cv_func_dlopen = yes; then
11248   lt_cv_dlopen="dlopen"
11249 else
11250   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11251 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
11252 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11253   echo $ECHO_N "(cached) $ECHO_C" >&6
11254 else
11255   ac_check_lib_save_LIBS=$LIBS
11256 LIBS="-ldl  $LIBS"
11257 cat >conftest.$ac_ext <<_ACEOF
11258 /* confdefs.h.  */
11259 _ACEOF
11260 cat confdefs.h >>conftest.$ac_ext
11261 cat >>conftest.$ac_ext <<_ACEOF
11262 /* end confdefs.h.  */
11263
11264 /* Override any GCC internal prototype to avoid an error.
11265    Use char because int might match the return type of a GCC
11266    builtin and then its argument prototype would still apply.  */
11267 #ifdef __cplusplus
11268 extern "C"
11269 #endif
11270 char dlopen ();
11271 int
11272 main ()
11273 {
11274 return dlopen ();
11275   ;
11276   return 0;
11277 }
11278 _ACEOF
11279 rm -f conftest.$ac_objext conftest$ac_exeext
11280 if { (ac_try="$ac_link"
11281 case "(($ac_try" in
11282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11283   *) ac_try_echo=$ac_try;;
11284 esac
11285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11286   (eval "$ac_link") 2>conftest.er1
11287   ac_status=$?
11288   grep -v '^ *+' conftest.er1 >conftest.err
11289   rm -f conftest.er1
11290   cat conftest.err >&5
11291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11292   (exit $ac_status); } && {
11293          test -z "$ac_c_werror_flag" ||
11294          test ! -s conftest.err
11295        } && test -s conftest$ac_exeext &&
11296        $as_test_x conftest$ac_exeext; then
11297   ac_cv_lib_dl_dlopen=yes
11298 else
11299   echo "$as_me: failed program was:" >&5
11300 sed 's/^/| /' conftest.$ac_ext >&5
11301
11302         ac_cv_lib_dl_dlopen=no
11303 fi
11304
11305 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11306       conftest$ac_exeext conftest.$ac_ext
11307 LIBS=$ac_check_lib_save_LIBS
11308 fi
11309 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11310 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11311 if test $ac_cv_lib_dl_dlopen = yes; then
11312   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11313 else
11314   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11315 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
11316 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11317   echo $ECHO_N "(cached) $ECHO_C" >&6
11318 else
11319   ac_check_lib_save_LIBS=$LIBS
11320 LIBS="-lsvld  $LIBS"
11321 cat >conftest.$ac_ext <<_ACEOF
11322 /* confdefs.h.  */
11323 _ACEOF
11324 cat confdefs.h >>conftest.$ac_ext
11325 cat >>conftest.$ac_ext <<_ACEOF
11326 /* end confdefs.h.  */
11327
11328 /* Override any GCC internal prototype to avoid an error.
11329    Use char because int might match the return type of a GCC
11330    builtin and then its argument prototype would still apply.  */
11331 #ifdef __cplusplus
11332 extern "C"
11333 #endif
11334 char dlopen ();
11335 int
11336 main ()
11337 {
11338 return dlopen ();
11339   ;
11340   return 0;
11341 }
11342 _ACEOF
11343 rm -f conftest.$ac_objext conftest$ac_exeext
11344 if { (ac_try="$ac_link"
11345 case "(($ac_try" in
11346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11347   *) ac_try_echo=$ac_try;;
11348 esac
11349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11350   (eval "$ac_link") 2>conftest.er1
11351   ac_status=$?
11352   grep -v '^ *+' conftest.er1 >conftest.err
11353   rm -f conftest.er1
11354   cat conftest.err >&5
11355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11356   (exit $ac_status); } && {
11357          test -z "$ac_c_werror_flag" ||
11358          test ! -s conftest.err
11359        } && test -s conftest$ac_exeext &&
11360        $as_test_x conftest$ac_exeext; then
11361   ac_cv_lib_svld_dlopen=yes
11362 else
11363   echo "$as_me: failed program was:" >&5
11364 sed 's/^/| /' conftest.$ac_ext >&5
11365
11366         ac_cv_lib_svld_dlopen=no
11367 fi
11368
11369 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11370       conftest$ac_exeext conftest.$ac_ext
11371 LIBS=$ac_check_lib_save_LIBS
11372 fi
11373 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11374 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11375 if test $ac_cv_lib_svld_dlopen = yes; then
11376   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11377 else
11378   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11379 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11380 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11381   echo $ECHO_N "(cached) $ECHO_C" >&6
11382 else
11383   ac_check_lib_save_LIBS=$LIBS
11384 LIBS="-ldld  $LIBS"
11385 cat >conftest.$ac_ext <<_ACEOF
11386 /* confdefs.h.  */
11387 _ACEOF
11388 cat confdefs.h >>conftest.$ac_ext
11389 cat >>conftest.$ac_ext <<_ACEOF
11390 /* end confdefs.h.  */
11391
11392 /* Override any GCC internal prototype to avoid an error.
11393    Use char because int might match the return type of a GCC
11394    builtin and then its argument prototype would still apply.  */
11395 #ifdef __cplusplus
11396 extern "C"
11397 #endif
11398 char dld_link ();
11399 int
11400 main ()
11401 {
11402 return dld_link ();
11403   ;
11404   return 0;
11405 }
11406 _ACEOF
11407 rm -f conftest.$ac_objext conftest$ac_exeext
11408 if { (ac_try="$ac_link"
11409 case "(($ac_try" in
11410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11411   *) ac_try_echo=$ac_try;;
11412 esac
11413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11414   (eval "$ac_link") 2>conftest.er1
11415   ac_status=$?
11416   grep -v '^ *+' conftest.er1 >conftest.err
11417   rm -f conftest.er1
11418   cat conftest.err >&5
11419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11420   (exit $ac_status); } && {
11421          test -z "$ac_c_werror_flag" ||
11422          test ! -s conftest.err
11423        } && test -s conftest$ac_exeext &&
11424        $as_test_x conftest$ac_exeext; then
11425   ac_cv_lib_dld_dld_link=yes
11426 else
11427   echo "$as_me: failed program was:" >&5
11428 sed 's/^/| /' conftest.$ac_ext >&5
11429
11430         ac_cv_lib_dld_dld_link=no
11431 fi
11432
11433 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11434       conftest$ac_exeext conftest.$ac_ext
11435 LIBS=$ac_check_lib_save_LIBS
11436 fi
11437 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11438 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11439 if test $ac_cv_lib_dld_dld_link = yes; then
11440   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11441 fi
11442
11443               
11444 fi
11445
11446             
11447 fi
11448
11449           
11450 fi
11451
11452         
11453 fi
11454
11455       
11456 fi
11457
11458     ;;
11459   esac
11460
11461   if test "x$lt_cv_dlopen" != xno; then
11462     enable_dlopen=yes
11463   else
11464     enable_dlopen=no
11465   fi
11466
11467   case $lt_cv_dlopen in
11468   dlopen)
11469     save_CPPFLAGS="$CPPFLAGS"
11470     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11471
11472     save_LDFLAGS="$LDFLAGS"
11473     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11474
11475     save_LIBS="$LIBS"
11476     LIBS="$lt_cv_dlopen_libs $LIBS"
11477
11478     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11479 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
11480 if test "${lt_cv_dlopen_self+set}" = set; then
11481   echo $ECHO_N "(cached) $ECHO_C" >&6
11482 else
11483           if test "$cross_compiling" = yes; then :
11484   lt_cv_dlopen_self=cross
11485 else
11486   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11487   lt_status=$lt_dlunknown
11488   cat > conftest.$ac_ext <<EOF
11489 #line __oline__ "configure"
11490 #include "confdefs.h"
11491
11492 #if HAVE_DLFCN_H
11493 #include <dlfcn.h>
11494 #endif
11495
11496 #include <stdio.h>
11497
11498 #ifdef RTLD_GLOBAL
11499 #  define LT_DLGLOBAL           RTLD_GLOBAL
11500 #else
11501 #  ifdef DL_GLOBAL
11502 #    define LT_DLGLOBAL         DL_GLOBAL
11503 #  else
11504 #    define LT_DLGLOBAL         0
11505 #  endif
11506 #endif
11507
11508 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11509    find out it does not work in some platform. */
11510 #ifndef LT_DLLAZY_OR_NOW
11511 #  ifdef RTLD_LAZY
11512 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11513 #  else
11514 #    ifdef DL_LAZY
11515 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11516 #    else
11517 #      ifdef RTLD_NOW
11518 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11519 #      else
11520 #        ifdef DL_NOW
11521 #          define LT_DLLAZY_OR_NOW      DL_NOW
11522 #        else
11523 #          define LT_DLLAZY_OR_NOW      0
11524 #        endif
11525 #      endif
11526 #    endif
11527 #  endif
11528 #endif
11529
11530 #ifdef __cplusplus
11531 extern "C" void exit (int);
11532 #endif
11533
11534 void fnord() { int i=42;}
11535 int main ()
11536 {
11537   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11538   int status = $lt_dlunknown;
11539
11540   if (self)
11541     {
11542       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11543       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11544       /* dlclose (self); */
11545     }
11546   else
11547     puts (dlerror ());
11548
11549     exit (status);
11550 }
11551 EOF
11552   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11553   (eval $ac_link) 2>&5
11554   ac_status=$?
11555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11556   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11557     (./conftest; exit; ) >&5 2>/dev/null
11558     lt_status=$?
11559     case x$lt_status in
11560       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11561       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11562       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11563     esac
11564   else :
11565     # compilation failed
11566     lt_cv_dlopen_self=no
11567   fi
11568 fi
11569 rm -fr conftest*
11570
11571     
11572 fi
11573 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11574 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
11575
11576     if test "x$lt_cv_dlopen_self" = xyes; then
11577       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11578       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11579 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
11580 if test "${lt_cv_dlopen_self_static+set}" = set; then
11581   echo $ECHO_N "(cached) $ECHO_C" >&6
11582 else
11583           if test "$cross_compiling" = yes; then :
11584   lt_cv_dlopen_self_static=cross
11585 else
11586   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11587   lt_status=$lt_dlunknown
11588   cat > conftest.$ac_ext <<EOF
11589 #line __oline__ "configure"
11590 #include "confdefs.h"
11591
11592 #if HAVE_DLFCN_H
11593 #include <dlfcn.h>
11594 #endif
11595
11596 #include <stdio.h>
11597
11598 #ifdef RTLD_GLOBAL
11599 #  define LT_DLGLOBAL           RTLD_GLOBAL
11600 #else
11601 #  ifdef DL_GLOBAL
11602 #    define LT_DLGLOBAL         DL_GLOBAL
11603 #  else
11604 #    define LT_DLGLOBAL         0
11605 #  endif
11606 #endif
11607
11608 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11609    find out it does not work in some platform. */
11610 #ifndef LT_DLLAZY_OR_NOW
11611 #  ifdef RTLD_LAZY
11612 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11613 #  else
11614 #    ifdef DL_LAZY
11615 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11616 #    else
11617 #      ifdef RTLD_NOW
11618 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11619 #      else
11620 #        ifdef DL_NOW
11621 #          define LT_DLLAZY_OR_NOW      DL_NOW
11622 #        else
11623 #          define LT_DLLAZY_OR_NOW      0
11624 #        endif
11625 #      endif
11626 #    endif
11627 #  endif
11628 #endif
11629
11630 #ifdef __cplusplus
11631 extern "C" void exit (int);
11632 #endif
11633
11634 void fnord() { int i=42;}
11635 int main ()
11636 {
11637   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11638   int status = $lt_dlunknown;
11639
11640   if (self)
11641     {
11642       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11643       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11644       /* dlclose (self); */
11645     }
11646   else
11647     puts (dlerror ());
11648
11649     exit (status);
11650 }
11651 EOF
11652   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11653   (eval $ac_link) 2>&5
11654   ac_status=$?
11655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11656   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11657     (./conftest; exit; ) >&5 2>/dev/null
11658     lt_status=$?
11659     case x$lt_status in
11660       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11661       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11662       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11663     esac
11664   else :
11665     # compilation failed
11666     lt_cv_dlopen_self_static=no
11667   fi
11668 fi
11669 rm -fr conftest*
11670
11671       
11672 fi
11673 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11674 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
11675     fi
11676
11677     CPPFLAGS="$save_CPPFLAGS"
11678     LDFLAGS="$save_LDFLAGS"
11679     LIBS="$save_LIBS"
11680     ;;
11681   esac
11682
11683   case $lt_cv_dlopen_self in
11684   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11685   *) enable_dlopen_self=unknown ;;
11686   esac
11687
11688   case $lt_cv_dlopen_self_static in
11689   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11690   *) enable_dlopen_self_static=unknown ;;
11691   esac
11692 fi
11693
11694
11695 # Report which library types will actually be built
11696 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11697 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11698 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
11699 echo "${ECHO_T}$can_build_shared" >&6; }
11700
11701 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11702 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11703 test "$can_build_shared" = "no" && enable_shared=no
11704
11705 # On AIX, shared libraries and static libraries use the same namespace, and
11706 # are all built from PIC.
11707 case $host_os in
11708 aix3*)
11709   test "$enable_shared" = yes && enable_static=no
11710   if test -n "$RANLIB"; then
11711     archive_cmds="$archive_cmds~\$RANLIB \$lib"
11712     postinstall_cmds='$RANLIB $lib'
11713   fi
11714   ;;
11715
11716 aix4* | aix5*)
11717   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11718     test "$enable_shared" = yes && enable_static=no
11719   fi
11720     ;;
11721 esac
11722 { echo "$as_me:$LINENO: result: $enable_shared" >&5
11723 echo "${ECHO_T}$enable_shared" >&6; }
11724
11725 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11726 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11727 # Make sure either enable_shared or enable_static is yes.
11728 test "$enable_shared" = yes || enable_static=yes
11729 { echo "$as_me:$LINENO: result: $enable_static" >&5
11730 echo "${ECHO_T}$enable_static" >&6; }
11731
11732 # The else clause should only fire when bootstrapping the
11733 # libtool distribution, otherwise you forgot to ship ltmain.sh
11734 # with your package, and you will get complaints that there are
11735 # no rules to generate ltmain.sh.
11736 if test -f "$ltmain"; then
11737   # See if we are running on zsh, and set the options which allow our commands through
11738   # without removal of \ escapes.
11739   if test -n "${ZSH_VERSION+set}" ; then
11740     setopt NO_GLOB_SUBST
11741   fi
11742   # Now quote all the things that may contain metacharacters while being
11743   # careful not to overquote the AC_SUBSTed values.  We take copies of the
11744   # variables and quote the copies for generation of the libtool script.
11745   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
11746     SED SHELL STRIP \
11747     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11748     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11749     deplibs_check_method reload_flag reload_cmds need_locks \
11750     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11751     lt_cv_sys_global_symbol_to_c_name_address \
11752     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11753     old_postinstall_cmds old_postuninstall_cmds \
11754     compiler \
11755     CC \
11756     LD \
11757     lt_prog_compiler_wl \
11758     lt_prog_compiler_pic \
11759     lt_prog_compiler_static \
11760     lt_prog_compiler_no_builtin_flag \
11761     export_dynamic_flag_spec \
11762     thread_safe_flag_spec \
11763     whole_archive_flag_spec \
11764     enable_shared_with_static_runtimes \
11765     old_archive_cmds \
11766     old_archive_from_new_cmds \
11767     predep_objects \
11768     postdep_objects \
11769     predeps \
11770     postdeps \
11771     compiler_lib_search_path \
11772     archive_cmds \
11773     archive_expsym_cmds \
11774     postinstall_cmds \
11775     postuninstall_cmds \
11776     old_archive_from_expsyms_cmds \
11777     allow_undefined_flag \
11778     no_undefined_flag \
11779     export_symbols_cmds \
11780     hardcode_libdir_flag_spec \
11781     hardcode_libdir_flag_spec_ld \
11782     hardcode_libdir_separator \
11783     hardcode_automatic \
11784     module_cmds \
11785     module_expsym_cmds \
11786     lt_cv_prog_compiler_c_o \
11787     fix_srcfile_path \
11788     exclude_expsyms \
11789     include_expsyms; do
11790
11791     case $var in
11792     old_archive_cmds | \
11793     old_archive_from_new_cmds | \
11794     archive_cmds | \
11795     archive_expsym_cmds | \
11796     module_cmds | \
11797     module_expsym_cmds | \
11798     old_archive_from_expsyms_cmds | \
11799     export_symbols_cmds | \
11800     extract_expsyms_cmds | reload_cmds | finish_cmds | \
11801     postinstall_cmds | postuninstall_cmds | \
11802     old_postinstall_cmds | old_postuninstall_cmds | \
11803     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11804       # Double-quote double-evaled strings.
11805       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11806       ;;
11807     *)
11808       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11809       ;;
11810     esac
11811   done
11812
11813   case $lt_echo in
11814   *'\$0 --fallback-echo"')
11815     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11816     ;;
11817   esac
11818
11819 cfgfile="${ofile}T"
11820   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11821   $rm -f "$cfgfile"
11822   { echo "$as_me:$LINENO: creating $ofile" >&5
11823 echo "$as_me: creating $ofile" >&6;}
11824
11825   cat <<__EOF__ >> "$cfgfile"
11826 #! $SHELL
11827
11828 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11829 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11830 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11831 #
11832 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
11833 # Free Software Foundation, Inc.
11834 #
11835 # This file is part of GNU Libtool:
11836 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11837 #
11838 # This program is free software; you can redistribute it and/or modify
11839 # it under the terms of the GNU General Public License as published by
11840 # the Free Software Foundation; either version 2 of the License, or
11841 # (at your option) any later version.
11842 #
11843 # This program is distributed in the hope that it will be useful, but
11844 # WITHOUT ANY WARRANTY; without even the implied warranty of
11845 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11846 # General Public License for more details.
11847 #
11848 # You should have received a copy of the GNU General Public License
11849 # along with this program; if not, write to the Free Software
11850 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11851 #
11852 # As a special exception to the GNU General Public License, if you
11853 # distribute this file as part of a program that contains a
11854 # configuration script generated by Autoconf, you may include it under
11855 # the same distribution terms that you use for the rest of that program.
11856
11857 # A sed program that does not truncate output.
11858 SED=$lt_SED
11859
11860 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11861 Xsed="$SED -e 1s/^X//"
11862
11863 # The HP-UX ksh and POSIX shell print the target directory to stdout
11864 # if CDPATH is set.
11865 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11866
11867 # The names of the tagged configurations supported by this script.
11868 available_tags=
11869
11870 # ### BEGIN LIBTOOL CONFIG
11871
11872 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11873
11874 # Shell to use when invoking shell scripts.
11875 SHELL=$lt_SHELL
11876
11877 # Whether or not to build shared libraries.
11878 build_libtool_libs=$enable_shared
11879
11880 # Whether or not to build static libraries.
11881 build_old_libs=$enable_static
11882
11883 # Whether or not to add -lc for building shared libraries.
11884 build_libtool_need_lc=$archive_cmds_need_lc
11885
11886 # Whether or not to disallow shared libs when runtime libs are static
11887 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11888
11889 # Whether or not to optimize for fast installation.
11890 fast_install=$enable_fast_install
11891
11892 # The host system.
11893 host_alias=$host_alias
11894 host=$host
11895 host_os=$host_os
11896
11897 # The build system.
11898 build_alias=$build_alias
11899 build=$build
11900 build_os=$build_os
11901
11902 # An echo program that does not interpret backslashes.
11903 echo=$lt_echo
11904
11905 # The archiver.
11906 AR=$lt_AR
11907 AR_FLAGS=$lt_AR_FLAGS
11908
11909 # A C compiler.
11910 LTCC=$lt_LTCC
11911
11912 # LTCC compiler flags.
11913 LTCFLAGS=$lt_LTCFLAGS
11914
11915 # A language-specific compiler.
11916 CC=$lt_compiler
11917
11918 # Is the compiler the GNU C compiler?
11919 with_gcc=$GCC
11920
11921 # An ERE matcher.
11922 EGREP=$lt_EGREP
11923
11924 # The linker used to build libraries.
11925 LD=$lt_LD
11926
11927 # Whether we need hard or soft links.
11928 LN_S=$lt_LN_S
11929
11930 # A BSD-compatible nm program.
11931 NM=$lt_NM
11932
11933 # A symbol stripping program
11934 STRIP=$lt_STRIP
11935
11936 # Used to examine libraries when file_magic_cmd begins "file"
11937 MAGIC_CMD=$MAGIC_CMD
11938
11939 # Used on cygwin: DLL creation program.
11940 DLLTOOL="$DLLTOOL"
11941
11942 # Used on cygwin: object dumper.
11943 OBJDUMP="$OBJDUMP"
11944
11945 # Used on cygwin: assembler.
11946 AS="$AS"
11947
11948 # The name of the directory that contains temporary libtool files.
11949 objdir=$objdir
11950
11951 # How to create reloadable object files.
11952 reload_flag=$lt_reload_flag
11953 reload_cmds=$lt_reload_cmds
11954
11955 # How to pass a linker flag through the compiler.
11956 wl=$lt_lt_prog_compiler_wl
11957
11958 # Object file suffix (normally "o").
11959 objext="$ac_objext"
11960
11961 # Old archive suffix (normally "a").
11962 libext="$libext"
11963
11964 # Shared library suffix (normally ".so").
11965 shrext_cmds='$shrext_cmds'
11966
11967 # Executable file suffix (normally "").
11968 exeext="$exeext"
11969
11970 # Additional compiler flags for building library objects.
11971 pic_flag=$lt_lt_prog_compiler_pic
11972 pic_mode=$pic_mode
11973
11974 # What is the maximum length of a command?
11975 max_cmd_len=$lt_cv_sys_max_cmd_len
11976
11977 # Does compiler simultaneously support -c and -o options?
11978 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11979
11980 # Must we lock files when doing compilation?
11981 need_locks=$lt_need_locks
11982
11983 # Do we need the lib prefix for modules?
11984 need_lib_prefix=$need_lib_prefix
11985
11986 # Do we need a version for libraries?
11987 need_version=$need_version
11988
11989 # Whether dlopen is supported.
11990 dlopen_support=$enable_dlopen
11991
11992 # Whether dlopen of programs is supported.
11993 dlopen_self=$enable_dlopen_self
11994
11995 # Whether dlopen of statically linked programs is supported.
11996 dlopen_self_static=$enable_dlopen_self_static
11997
11998 # Compiler flag to prevent dynamic linking.
11999 link_static_flag=$lt_lt_prog_compiler_static
12000
12001 # Compiler flag to turn off builtin functions.
12002 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
12003
12004 # Compiler flag to allow reflexive dlopens.
12005 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
12006
12007 # Compiler flag to generate shared objects directly from archives.
12008 whole_archive_flag_spec=$lt_whole_archive_flag_spec
12009
12010 # Compiler flag to generate thread-safe objects.
12011 thread_safe_flag_spec=$lt_thread_safe_flag_spec
12012
12013 # Library versioning type.
12014 version_type=$version_type
12015
12016 # Format of library name prefix.
12017 libname_spec=$lt_libname_spec
12018
12019 # List of archive names.  First name is the real one, the rest are links.
12020 # The last name is the one that the linker finds with -lNAME.
12021 library_names_spec=$lt_library_names_spec
12022
12023 # The coded name of the library, if different from the real name.
12024 soname_spec=$lt_soname_spec
12025
12026 # Commands used to build and install an old-style archive.
12027 RANLIB=$lt_RANLIB
12028 old_archive_cmds=$lt_old_archive_cmds
12029 old_postinstall_cmds=$lt_old_postinstall_cmds
12030 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12031
12032 # Create an old-style archive from a shared archive.
12033 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
12034
12035 # Create a temporary old-style archive to link instead of a shared archive.
12036 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
12037
12038 # Commands used to build and install a shared archive.
12039 archive_cmds=$lt_archive_cmds
12040 archive_expsym_cmds=$lt_archive_expsym_cmds
12041 postinstall_cmds=$lt_postinstall_cmds
12042 postuninstall_cmds=$lt_postuninstall_cmds
12043
12044 # Commands used to build a loadable module (assumed same as above if empty)
12045 module_cmds=$lt_module_cmds
12046 module_expsym_cmds=$lt_module_expsym_cmds
12047
12048 # Commands to strip libraries.
12049 old_striplib=$lt_old_striplib
12050 striplib=$lt_striplib
12051
12052 # Dependencies to place before the objects being linked to create a
12053 # shared library.
12054 predep_objects=$lt_predep_objects
12055
12056 # Dependencies to place after the objects being linked to create a
12057 # shared library.
12058 postdep_objects=$lt_postdep_objects
12059
12060 # Dependencies to place before the objects being linked to create a
12061 # shared library.
12062 predeps=$lt_predeps
12063
12064 # Dependencies to place after the objects being linked to create a
12065 # shared library.
12066 postdeps=$lt_postdeps
12067
12068 # The library search path used internally by the compiler when linking
12069 # a shared library.
12070 compiler_lib_search_path=$lt_compiler_lib_search_path
12071
12072 # Method to check whether dependent libraries are shared objects.
12073 deplibs_check_method=$lt_deplibs_check_method
12074
12075 # Command to use when deplibs_check_method == file_magic.
12076 file_magic_cmd=$lt_file_magic_cmd
12077
12078 # Flag that allows shared libraries with undefined symbols to be built.
12079 allow_undefined_flag=$lt_allow_undefined_flag
12080
12081 # Flag that forces no undefined symbols.
12082 no_undefined_flag=$lt_no_undefined_flag
12083
12084 # Commands used to finish a libtool library installation in a directory.
12085 finish_cmds=$lt_finish_cmds
12086
12087 # Same as above, but a single script fragment to be evaled but not shown.
12088 finish_eval=$lt_finish_eval
12089
12090 # Take the output of nm and produce a listing of raw symbols and C names.
12091 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12092
12093 # Transform the output of nm in a proper C declaration
12094 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12095
12096 # Transform the output of nm in a C name address pair
12097 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12098
12099 # This is the shared library runtime path variable.
12100 runpath_var=$runpath_var
12101
12102 # This is the shared library path variable.
12103 shlibpath_var=$shlibpath_var
12104
12105 # Is shlibpath searched before the hard-coded library search path?
12106 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12107
12108 # How to hardcode a shared library path into an executable.
12109 hardcode_action=$hardcode_action
12110
12111 # Whether we should hardcode library paths into libraries.
12112 hardcode_into_libs=$hardcode_into_libs
12113
12114 # Flag to hardcode \$libdir into a binary during linking.
12115 # This must work even if \$libdir does not exist.
12116 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
12117
12118 # If ld is used when linking, flag to hardcode \$libdir into
12119 # a binary during linking. This must work even if \$libdir does
12120 # not exist.
12121 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
12122
12123 # Whether we need a single -rpath flag with a separated argument.
12124 hardcode_libdir_separator=$lt_hardcode_libdir_separator
12125
12126 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12127 # resulting binary.
12128 hardcode_direct=$hardcode_direct
12129
12130 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12131 # resulting binary.
12132 hardcode_minus_L=$hardcode_minus_L
12133
12134 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12135 # the resulting binary.
12136 hardcode_shlibpath_var=$hardcode_shlibpath_var
12137
12138 # Set to yes if building a shared library automatically hardcodes DIR into the library
12139 # and all subsequent libraries and executables linked against it.
12140 hardcode_automatic=$hardcode_automatic
12141
12142 # Variables whose values should be saved in libtool wrapper scripts and
12143 # restored at relink time.
12144 variables_saved_for_relink="$variables_saved_for_relink"
12145
12146 # Whether libtool must link a program against all its dependency libraries.
12147 link_all_deplibs=$link_all_deplibs
12148
12149 # Compile-time system search path for libraries
12150 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12151
12152 # Run-time system search path for libraries
12153 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12154
12155 # Fix the shell variable \$srcfile for the compiler.
12156 fix_srcfile_path=$lt_fix_srcfile_path
12157
12158 # Set to yes if exported symbols are required.
12159 always_export_symbols=$always_export_symbols
12160
12161 # The commands to list exported symbols.
12162 export_symbols_cmds=$lt_export_symbols_cmds
12163
12164 # The commands to extract the exported symbol list from a shared archive.
12165 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12166
12167 # Symbols that should not be listed in the preloaded symbols.
12168 exclude_expsyms=$lt_exclude_expsyms
12169
12170 # Symbols that must always be exported.
12171 include_expsyms=$lt_include_expsyms
12172
12173 # ### END LIBTOOL CONFIG
12174
12175 __EOF__
12176
12177
12178   case $host_os in
12179   aix3*)
12180     cat <<\EOF >> "$cfgfile"
12181
12182 # AIX sometimes has problems with the GCC collect2 program.  For some
12183 # reason, if we set the COLLECT_NAMES environment variable, the problems
12184 # vanish in a puff of smoke.
12185 if test "X${COLLECT_NAMES+set}" != Xset; then
12186   COLLECT_NAMES=
12187   export COLLECT_NAMES
12188 fi
12189 EOF
12190     ;;
12191   esac
12192
12193   # We use sed instead of cat because bash on DJGPP gets confused if
12194   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
12195   # text mode, it properly converts lines to CR/LF.  This bash problem
12196   # is reportedly fixed, but why not run on old versions too?
12197   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
12198
12199   mv -f "$cfgfile" "$ofile" || \
12200     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
12201   chmod +x "$ofile"
12202
12203 else
12204   # If there is no Makefile yet, we rely on a make rule to execute
12205   # `config.status --recheck' to rerun these tests and create the
12206   # libtool script then.
12207   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12208   if test -f "$ltmain_in"; then
12209     test -f Makefile && make "$ltmain"
12210   fi
12211 fi
12212
12213
12214 ac_ext=c
12215 ac_cpp='$CPP $CPPFLAGS'
12216 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12217 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12218 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12219
12220 CC="$lt_save_CC"
12221
12222
12223 # Check whether --with-tags was given.
12224 if test "${with_tags+set}" = set; then
12225   withval=$with_tags; tagnames="$withval"
12226 fi
12227
12228
12229 if test -f "$ltmain" && test -n "$tagnames"; then
12230   if test ! -f "${ofile}"; then
12231     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
12232 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
12233   fi
12234
12235   if test -z "$LTCC"; then
12236     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
12237     if test -z "$LTCC"; then
12238       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
12239 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
12240     else
12241       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
12242 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
12243     fi
12244   fi
12245   if test -z "$LTCFLAGS"; then
12246     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
12247   fi
12248
12249   # Extract list of available tagged configurations in $ofile.
12250   # Note that this assumes the entire list is on one line.
12251   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
12252
12253   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12254   for tagname in $tagnames; do
12255     IFS="$lt_save_ifs"
12256     # Check whether tagname contains only valid characters
12257     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
12258     "") ;;
12259     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
12260 echo "$as_me: error: invalid tag name: $tagname" >&2;}
12261    { (exit 1); exit 1; }; }
12262         ;;
12263     esac
12264
12265     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
12266     then
12267       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
12268 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
12269    { (exit 1); exit 1; }; }
12270     fi
12271
12272     # Update the list of available tags.
12273     if test -n "$tagname"; then
12274       echo appending configuration tag \"$tagname\" to $ofile
12275
12276       case $tagname in
12277       CXX)
12278         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12279             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12280             (test "X$CXX" != "Xg++"))) ; then
12281           ac_ext=cpp
12282 ac_cpp='$CXXCPP $CPPFLAGS'
12283 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12284 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12285 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12286
12287
12288
12289
12290 archive_cmds_need_lc_CXX=no
12291 allow_undefined_flag_CXX=
12292 always_export_symbols_CXX=no
12293 archive_expsym_cmds_CXX=
12294 export_dynamic_flag_spec_CXX=
12295 hardcode_direct_CXX=no
12296 hardcode_libdir_flag_spec_CXX=
12297 hardcode_libdir_flag_spec_ld_CXX=
12298 hardcode_libdir_separator_CXX=
12299 hardcode_minus_L_CXX=no
12300 hardcode_shlibpath_var_CXX=unsupported
12301 hardcode_automatic_CXX=no
12302 module_cmds_CXX=
12303 module_expsym_cmds_CXX=
12304 link_all_deplibs_CXX=unknown
12305 old_archive_cmds_CXX=$old_archive_cmds
12306 no_undefined_flag_CXX=
12307 whole_archive_flag_spec_CXX=
12308 enable_shared_with_static_runtimes_CXX=no
12309
12310 # Dependencies to place before and after the object being linked:
12311 predep_objects_CXX=
12312 postdep_objects_CXX=
12313 predeps_CXX=
12314 postdeps_CXX=
12315 compiler_lib_search_path_CXX=
12316
12317 # Source file extension for C++ test sources.
12318 ac_ext=cpp
12319
12320 # Object file extension for compiled C++ test sources.
12321 objext=o
12322 objext_CXX=$objext
12323
12324 # Code to be used in simple compile tests
12325 lt_simple_compile_test_code="int some_variable = 0;"
12326
12327 # Code to be used in simple link tests
12328 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12329
12330 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12331
12332 # If no C compiler was specified, use CC.
12333 LTCC=${LTCC-"$CC"}
12334
12335 # If no C compiler flags were specified, use CFLAGS.
12336 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12337
12338 # Allow CC to be a program name with arguments.
12339 compiler=$CC
12340
12341
12342 # save warnings/boilerplate of simple test code
12343 ac_outfile=conftest.$ac_objext
12344 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12345 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12346 _lt_compiler_boilerplate=`cat conftest.err`
12347 $rm conftest*
12348
12349 ac_outfile=conftest.$ac_objext
12350 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12351 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12352 _lt_linker_boilerplate=`cat conftest.err`
12353 $rm conftest*
12354
12355
12356 # Allow CC to be a program name with arguments.
12357 lt_save_CC=$CC
12358 lt_save_LD=$LD
12359 lt_save_GCC=$GCC
12360 GCC=$GXX
12361 lt_save_with_gnu_ld=$with_gnu_ld
12362 lt_save_path_LD=$lt_cv_path_LD
12363 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12364   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12365 else
12366   $as_unset lt_cv_prog_gnu_ld
12367 fi
12368 if test -n "${lt_cv_path_LDCXX+set}"; then
12369   lt_cv_path_LD=$lt_cv_path_LDCXX
12370 else
12371   $as_unset lt_cv_path_LD
12372 fi
12373 test -z "${LDCXX+set}" || LD=$LDCXX
12374 CC=${CXX-"c++"}
12375 compiler=$CC
12376 compiler_CXX=$CC
12377 for cc_temp in $compiler""; do
12378   case $cc_temp in
12379     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12380     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12381     \-*) ;;
12382     *) break;;
12383   esac
12384 done
12385 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12386
12387
12388 # We don't want -fno-exception wen compiling C++ code, so set the
12389 # no_builtin_flag separately
12390 if test "$GXX" = yes; then
12391   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12392 else
12393   lt_prog_compiler_no_builtin_flag_CXX=
12394 fi
12395
12396 if test "$GXX" = yes; then
12397   # Set up default GNU C++ configuration
12398
12399   
12400 # Check whether --with-gnu-ld was given.
12401 if test "${with_gnu_ld+set}" = set; then
12402   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12403 else
12404   with_gnu_ld=no
12405 fi
12406
12407 ac_prog=ld
12408 if test "$GCC" = yes; then
12409   # Check if gcc -print-prog-name=ld gives a path.
12410   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12411 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12412   case $host in
12413   *-*-mingw*)
12414     # gcc leaves a trailing carriage return which upsets mingw
12415     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12416   *)
12417     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12418   esac
12419   case $ac_prog in
12420     # Accept absolute paths.
12421     [\\/]* | ?:[\\/]*)
12422       re_direlt='/[^/][^/]*/\.\./'
12423       # Canonicalize the pathname of ld
12424       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12425       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12426         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12427       done
12428       test -z "$LD" && LD="$ac_prog"
12429       ;;
12430   "")
12431     # If it fails, then pretend we aren't using GCC.
12432     ac_prog=ld
12433     ;;
12434   *)
12435     # If it is relative, then search for the first ld in PATH.
12436     with_gnu_ld=unknown
12437     ;;
12438   esac
12439 elif test "$with_gnu_ld" = yes; then
12440   { echo "$as_me:$LINENO: checking for GNU ld" >&5
12441 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12442 else
12443   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12444 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12445 fi
12446 if test "${lt_cv_path_LD+set}" = set; then
12447   echo $ECHO_N "(cached) $ECHO_C" >&6
12448 else
12449   if test -z "$LD"; then
12450   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12451   for ac_dir in $PATH; do
12452     IFS="$lt_save_ifs"
12453     test -z "$ac_dir" && ac_dir=.
12454     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12455       lt_cv_path_LD="$ac_dir/$ac_prog"
12456       # Check to see if the program is GNU ld.  I'd rather use --version,
12457       # but apparently some variants of GNU ld only accept -v.
12458       # Break only if it was the GNU/non-GNU ld that we prefer.
12459       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12460       *GNU* | *'with BFD'*)
12461         test "$with_gnu_ld" != no && break
12462         ;;
12463       *)
12464         test "$with_gnu_ld" != yes && break
12465         ;;
12466       esac
12467     fi
12468   done
12469   IFS="$lt_save_ifs"
12470 else
12471   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12472 fi
12473 fi
12474
12475 LD="$lt_cv_path_LD"
12476 if test -n "$LD"; then
12477   { echo "$as_me:$LINENO: result: $LD" >&5
12478 echo "${ECHO_T}$LD" >&6; }
12479 else
12480   { echo "$as_me:$LINENO: result: no" >&5
12481 echo "${ECHO_T}no" >&6; }
12482 fi
12483 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12484 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12485    { (exit 1); exit 1; }; }
12486 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12487 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12488 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12489   echo $ECHO_N "(cached) $ECHO_C" >&6
12490 else
12491   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12492 case `$LD -v 2>&1 </dev/null` in
12493 *GNU* | *'with BFD'*)
12494   lt_cv_prog_gnu_ld=yes
12495   ;;
12496 *)
12497   lt_cv_prog_gnu_ld=no
12498   ;;
12499 esac
12500 fi
12501 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12502 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12503 with_gnu_ld=$lt_cv_prog_gnu_ld
12504
12505
12506
12507   # Check if GNU C++ uses GNU ld as the underlying linker, since the
12508   # archiving commands below assume that GNU ld is being used.
12509   if test "$with_gnu_ld" = yes; then
12510     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12511     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'
12512
12513     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12514     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12515
12516     # If archive_cmds runs LD, not CC, wlarc should be empty
12517     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12518     #     investigate it a little bit more. (MM)
12519     wlarc='${wl}'
12520
12521     # ancient GNU ld didn't support --whole-archive et. al.
12522     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
12523         grep 'no-whole-archive' > /dev/null; then
12524       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12525     else
12526       whole_archive_flag_spec_CXX=
12527     fi
12528   else
12529     with_gnu_ld=no
12530     wlarc=
12531
12532     # A generic and very simple default shared library creation
12533     # command for GNU C++ for the case where it uses the native
12534     # linker, instead of GNU ld.  If possible, this setting should
12535     # overridden to take advantage of the native linker features on
12536     # the platform it is being used on.
12537     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12538   fi
12539
12540   # Commands to make compiler produce verbose output that lists
12541   # what "hidden" libraries, object files and flags are used when
12542   # linking a shared library.
12543   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12544
12545 else
12546   GXX=no
12547   with_gnu_ld=no
12548   wlarc=
12549 fi
12550
12551 # PORTME: fill in a description of your system's C++ link characteristics
12552 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12553 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12554 ld_shlibs_CXX=yes
12555 case $host_os in
12556   aix3*)
12557     # FIXME: insert proper C++ library support
12558     ld_shlibs_CXX=no
12559     ;;
12560   aix4* | aix5*)
12561     if test "$host_cpu" = ia64; then
12562       # On IA64, the linker does run time linking by default, so we don't
12563       # have to do anything special.
12564       aix_use_runtimelinking=no
12565       exp_sym_flag='-Bexport'
12566       no_entry_flag=""
12567     else
12568       aix_use_runtimelinking=no
12569
12570       # Test if we are trying to use run time linking or normal
12571       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12572       # need to do runtime linking.
12573       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12574         for ld_flag in $LDFLAGS; do
12575           case $ld_flag in
12576           *-brtl*)
12577             aix_use_runtimelinking=yes
12578             break
12579             ;;
12580           esac
12581         done
12582         ;;
12583       esac
12584
12585       exp_sym_flag='-bexport'
12586       no_entry_flag='-bnoentry'
12587     fi
12588
12589     # When large executables or shared objects are built, AIX ld can
12590     # have problems creating the table of contents.  If linking a library
12591     # or program results in "error TOC overflow" add -mminimal-toc to
12592     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12593     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12594
12595     archive_cmds_CXX=''
12596     hardcode_direct_CXX=yes
12597     hardcode_libdir_separator_CXX=':'
12598     link_all_deplibs_CXX=yes
12599
12600     if test "$GXX" = yes; then
12601       case $host_os in aix4.[012]|aix4.[012].*)
12602       # We only want to do this on AIX 4.2 and lower, the check
12603       # below for broken collect2 doesn't work under 4.3+
12604         collect2name=`${CC} -print-prog-name=collect2`
12605         if test -f "$collect2name" && \
12606            strings "$collect2name" | grep resolve_lib_name >/dev/null
12607         then
12608           # We have reworked collect2
12609           :
12610         else
12611           # We have old collect2
12612           hardcode_direct_CXX=unsupported
12613           # It fails to find uninstalled libraries when the uninstalled
12614           # path is not listed in the libpath.  Setting hardcode_minus_L
12615           # to unsupported forces relinking
12616           hardcode_minus_L_CXX=yes
12617           hardcode_libdir_flag_spec_CXX='-L$libdir'
12618           hardcode_libdir_separator_CXX=
12619         fi
12620         ;;
12621       esac
12622       shared_flag='-shared'
12623       if test "$aix_use_runtimelinking" = yes; then
12624         shared_flag="$shared_flag "'${wl}-G'
12625       fi
12626     else
12627       # not using gcc
12628       if test "$host_cpu" = ia64; then
12629         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12630         # chokes on -Wl,-G. The following line is correct:
12631         shared_flag='-G'
12632       else
12633         if test "$aix_use_runtimelinking" = yes; then
12634           shared_flag='${wl}-G'
12635         else
12636           shared_flag='${wl}-bM:SRE'
12637         fi
12638       fi
12639     fi
12640
12641     # It seems that -bexpall does not export symbols beginning with
12642     # underscore (_), so it is better to generate a list of symbols to export.
12643     always_export_symbols_CXX=yes
12644     if test "$aix_use_runtimelinking" = yes; then
12645       # Warning - without using the other runtime loading flags (-brtl),
12646       # -berok will link without error, but may produce a broken library.
12647       allow_undefined_flag_CXX='-berok'
12648       # Determine the default libpath from the value encoded in an empty executable.
12649       cat >conftest.$ac_ext <<_ACEOF
12650 /* confdefs.h.  */
12651 _ACEOF
12652 cat confdefs.h >>conftest.$ac_ext
12653 cat >>conftest.$ac_ext <<_ACEOF
12654 /* end confdefs.h.  */
12655
12656 int
12657 main ()
12658 {
12659
12660   ;
12661   return 0;
12662 }
12663 _ACEOF
12664 rm -f conftest.$ac_objext conftest$ac_exeext
12665 if { (ac_try="$ac_link"
12666 case "(($ac_try" in
12667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12668   *) ac_try_echo=$ac_try;;
12669 esac
12670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12671   (eval "$ac_link") 2>conftest.er1
12672   ac_status=$?
12673   grep -v '^ *+' conftest.er1 >conftest.err
12674   rm -f conftest.er1
12675   cat conftest.err >&5
12676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12677   (exit $ac_status); } && {
12678          test -z "$ac_cxx_werror_flag" ||
12679          test ! -s conftest.err
12680        } && test -s conftest$ac_exeext &&
12681        $as_test_x conftest$ac_exeext; then
12682   
12683 lt_aix_libpath_sed='
12684     /Import File Strings/,/^$/ {
12685         /^0/ {
12686             s/^0  *\(.*\)$/\1/
12687             p
12688         }
12689     }'
12690 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12691 # Check for a 64-bit object if we didn't find anything.
12692 if test -z "$aix_libpath"; then
12693   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12694 fi
12695 else
12696   echo "$as_me: failed program was:" >&5
12697 sed 's/^/| /' conftest.$ac_ext >&5
12698
12699         
12700 fi
12701
12702 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12703       conftest$ac_exeext conftest.$ac_ext
12704 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12705
12706       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12707
12708       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"
12709      else
12710       if test "$host_cpu" = ia64; then
12711         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12712         allow_undefined_flag_CXX="-z nodefs"
12713         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"
12714       else
12715         # Determine the default libpath from the value encoded in an empty executable.
12716         cat >conftest.$ac_ext <<_ACEOF
12717 /* confdefs.h.  */
12718 _ACEOF
12719 cat confdefs.h >>conftest.$ac_ext
12720 cat >>conftest.$ac_ext <<_ACEOF
12721 /* end confdefs.h.  */
12722
12723 int
12724 main ()
12725 {
12726
12727   ;
12728   return 0;
12729 }
12730 _ACEOF
12731 rm -f conftest.$ac_objext conftest$ac_exeext
12732 if { (ac_try="$ac_link"
12733 case "(($ac_try" in
12734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12735   *) ac_try_echo=$ac_try;;
12736 esac
12737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12738   (eval "$ac_link") 2>conftest.er1
12739   ac_status=$?
12740   grep -v '^ *+' conftest.er1 >conftest.err
12741   rm -f conftest.er1
12742   cat conftest.err >&5
12743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12744   (exit $ac_status); } && {
12745          test -z "$ac_cxx_werror_flag" ||
12746          test ! -s conftest.err
12747        } && test -s conftest$ac_exeext &&
12748        $as_test_x conftest$ac_exeext; then
12749   
12750 lt_aix_libpath_sed='
12751     /Import File Strings/,/^$/ {
12752         /^0/ {
12753             s/^0  *\(.*\)$/\1/
12754             p
12755         }
12756     }'
12757 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12758 # Check for a 64-bit object if we didn't find anything.
12759 if test -z "$aix_libpath"; then
12760   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12761 fi
12762 else
12763   echo "$as_me: failed program was:" >&5
12764 sed 's/^/| /' conftest.$ac_ext >&5
12765
12766         
12767 fi
12768
12769 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12770       conftest$ac_exeext conftest.$ac_ext
12771 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12772
12773         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12774         # Warning - without using the other run time loading flags,
12775         # -berok will link without error, but may produce a broken library.
12776         no_undefined_flag_CXX=' ${wl}-bernotok'
12777         allow_undefined_flag_CXX=' ${wl}-berok'
12778         # Exported symbols can be pulled into shared objects from archives
12779         whole_archive_flag_spec_CXX='$convenience'
12780         archive_cmds_need_lc_CXX=yes
12781         # This is similar to how AIX traditionally builds its shared libraries.
12782         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'
12783       fi
12784     fi
12785     ;;
12786
12787   beos*)
12788     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12789       allow_undefined_flag_CXX=unsupported
12790       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12791       # support --undefined.  This deserves some investigation.  FIXME
12792       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12793     else
12794       ld_shlibs_CXX=no
12795     fi
12796     ;;
12797
12798   chorus*)
12799     case $cc_basename in
12800       *)
12801         # FIXME: insert proper C++ library support
12802         ld_shlibs_CXX=no
12803         ;;
12804     esac
12805     ;;
12806
12807   cygwin* | mingw* | pw32*)
12808     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12809     # as there is no search path for DLLs.
12810     hardcode_libdir_flag_spec_CXX='-L$libdir'
12811     allow_undefined_flag_CXX=unsupported
12812     always_export_symbols_CXX=no
12813     enable_shared_with_static_runtimes_CXX=yes
12814
12815     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12816       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'
12817       # If the export-symbols file already is a .def file (1st line
12818       # is EXPORTS), use it as is; otherwise, prepend...
12819       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12820         cp $export_symbols $output_objdir/$soname.def;
12821       else
12822         echo EXPORTS > $output_objdir/$soname.def;
12823         cat $export_symbols >> $output_objdir/$soname.def;
12824       fi~
12825       $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'
12826     else
12827       ld_shlibs_CXX=no
12828     fi
12829   ;;
12830       darwin* | rhapsody*)
12831         case $host_os in
12832         rhapsody* | darwin1.[012])
12833          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12834          ;;
12835        *) # Darwin 1.3 on
12836          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12837            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12838          else
12839            case ${MACOSX_DEPLOYMENT_TARGET} in
12840              10.[012])
12841                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12842                ;;
12843              10.*)
12844                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12845                ;;
12846            esac
12847          fi
12848          ;;
12849         esac
12850       archive_cmds_need_lc_CXX=no
12851       hardcode_direct_CXX=no
12852       hardcode_automatic_CXX=yes
12853       hardcode_shlibpath_var_CXX=unsupported
12854       whole_archive_flag_spec_CXX=''
12855       link_all_deplibs_CXX=yes
12856
12857     if test "$GXX" = yes ; then
12858       lt_int_apple_cc_single_mod=no
12859       output_verbose_link_cmd='echo'
12860       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
12861        lt_int_apple_cc_single_mod=yes
12862       fi
12863       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12864        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12865       else
12866           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'
12867         fi
12868         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12869         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12870           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12871             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}'
12872           else
12873             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}'
12874           fi
12875             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}'
12876       else
12877       case $cc_basename in
12878         xlc*)
12879          output_verbose_link_cmd='echo'
12880           archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
12881           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12882           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12883           archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12884           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}'
12885           ;;
12886        *)
12887          ld_shlibs_CXX=no
12888           ;;
12889       esac
12890       fi
12891         ;;
12892
12893   dgux*)
12894     case $cc_basename in
12895       ec++*)
12896         # FIXME: insert proper C++ library support
12897         ld_shlibs_CXX=no
12898         ;;
12899       ghcx*)
12900         # Green Hills C++ Compiler
12901         # FIXME: insert proper C++ library support
12902         ld_shlibs_CXX=no
12903         ;;
12904       *)
12905         # FIXME: insert proper C++ library support
12906         ld_shlibs_CXX=no
12907         ;;
12908     esac
12909     ;;
12910   freebsd[12]*)
12911     # C++ shared libraries reported to be fairly broken before switch to ELF
12912     ld_shlibs_CXX=no
12913     ;;
12914   freebsd-elf*)
12915     archive_cmds_need_lc_CXX=no
12916     ;;
12917   freebsd* | dragonfly*)
12918     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12919     # conventions
12920     ld_shlibs_CXX=yes
12921     ;;
12922   gnu*)
12923     ;;
12924   hpux9*)
12925     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12926     hardcode_libdir_separator_CXX=:
12927     export_dynamic_flag_spec_CXX='${wl}-E'
12928     hardcode_direct_CXX=yes
12929     hardcode_minus_L_CXX=yes # Not in the search PATH,
12930                                 # but as the default
12931                                 # location of the library.
12932
12933     case $cc_basename in
12934     CC*)
12935       # FIXME: insert proper C++ library support
12936       ld_shlibs_CXX=no
12937       ;;
12938     aCC*)
12939       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'
12940       # Commands to make compiler produce verbose output that lists
12941       # what "hidden" libraries, object files and flags are used when
12942       # linking a shared library.
12943       #
12944       # There doesn't appear to be a way to prevent this compiler from
12945       # explicitly linking system object files so we need to strip them
12946       # from the output so that they don't get included in the library
12947       # dependencies.
12948       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'
12949       ;;
12950     *)
12951       if test "$GXX" = yes; then
12952         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'
12953       else
12954         # FIXME: insert proper C++ library support
12955         ld_shlibs_CXX=no
12956       fi
12957       ;;
12958     esac
12959     ;;
12960   hpux10*|hpux11*)
12961     if test $with_gnu_ld = no; then
12962       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12963       hardcode_libdir_separator_CXX=:
12964
12965       case $host_cpu in
12966       hppa*64*|ia64*) ;;
12967       *)
12968         export_dynamic_flag_spec_CXX='${wl}-E'
12969         ;;
12970       esac
12971     fi
12972     case $host_cpu in
12973     hppa*64*|ia64*)
12974       hardcode_direct_CXX=no
12975       hardcode_shlibpath_var_CXX=no
12976       ;;
12977     *)
12978       hardcode_direct_CXX=yes
12979       hardcode_minus_L_CXX=yes # Not in the search PATH,
12980                                               # but as the default
12981                                               # location of the library.
12982       ;;
12983     esac
12984
12985     case $cc_basename in
12986       CC*)
12987         # FIXME: insert proper C++ library support
12988         ld_shlibs_CXX=no
12989         ;;
12990       aCC*)
12991         case $host_cpu in
12992         hppa*64*)
12993           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12994           ;;
12995         ia64*)
12996           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12997           ;;
12998         *)
12999           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13000           ;;
13001         esac
13002         # Commands to make compiler produce verbose output that lists
13003         # what "hidden" libraries, object files and flags are used when
13004         # linking a shared library.
13005         #
13006         # There doesn't appear to be a way to prevent this compiler from
13007         # explicitly linking system object files so we need to strip them
13008         # from the output so that they don't get included in the library
13009         # dependencies.
13010         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'
13011         ;;
13012       *)
13013         if test "$GXX" = yes; then
13014           if test $with_gnu_ld = no; then
13015             case $host_cpu in
13016             hppa*64*)
13017               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13018               ;;
13019             ia64*)
13020               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13021               ;;
13022             *)
13023               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'
13024               ;;
13025             esac
13026           fi
13027         else
13028           # FIXME: insert proper C++ library support
13029           ld_shlibs_CXX=no
13030         fi
13031         ;;
13032     esac
13033     ;;
13034   interix[3-9]*)
13035     hardcode_direct_CXX=no
13036     hardcode_shlibpath_var_CXX=no
13037     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13038     export_dynamic_flag_spec_CXX='${wl}-E'
13039     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13040     # Instead, shared libraries are loaded at an image base (0x10000000 by
13041     # default) and relocated if they conflict, which is a slow very memory
13042     # consuming and fragmenting process.  To avoid this, we pick a random,
13043     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13044     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13045     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'
13046     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'
13047     ;;
13048   irix5* | irix6*)
13049     case $cc_basename in
13050       CC*)
13051         # SGI C++
13052         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'
13053
13054         # Archives containing C++ object files must be created using
13055         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13056         # necessary to make sure instantiated templates are included
13057         # in the archive.
13058         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13059         ;;
13060       *)
13061         if test "$GXX" = yes; then
13062           if test "$with_gnu_ld" = no; then
13063             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'
13064           else
13065             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'
13066           fi
13067         fi
13068         link_all_deplibs_CXX=yes
13069         ;;
13070     esac
13071     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13072     hardcode_libdir_separator_CXX=:
13073     ;;
13074   linux* | k*bsd*-gnu)
13075     case $cc_basename in
13076       KCC*)
13077         # Kuck and Associates, Inc. (KAI) C++ Compiler
13078
13079         # KCC will only create a shared library if the output file
13080         # ends with ".so" (or ".sl" for HP-UX), so rename the library
13081         # to its proper name (with version) after linking.
13082         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'
13083         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'
13084         # Commands to make compiler produce verbose output that lists
13085         # what "hidden" libraries, object files and flags are used when
13086         # linking a shared library.
13087         #
13088         # There doesn't appear to be a way to prevent this compiler from
13089         # explicitly linking system object files so we need to strip them
13090         # from the output so that they don't get included in the library
13091         # dependencies.
13092         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'
13093
13094         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
13095         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13096
13097         # Archives containing C++ object files must be created using
13098         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13099         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13100         ;;
13101       icpc*)
13102         # Intel C++
13103         with_gnu_ld=yes
13104         # version 8.0 and above of icpc choke on multiply defined symbols
13105         # if we add $predep_objects and $postdep_objects, however 7.1 and
13106         # earlier do not add the objects themselves.
13107         case `$CC -V 2>&1` in
13108         *"Version 7."*)
13109           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13110           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'
13111           ;;
13112         *)  # Version 8.0 or newer
13113           tmp_idyn=
13114           case $host_cpu in
13115             ia64*) tmp_idyn=' -i_dynamic';;
13116           esac
13117           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13118           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'
13119           ;;
13120         esac
13121         archive_cmds_need_lc_CXX=no
13122         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13123         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13124         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13125         ;;
13126       pgCC*)
13127         # Portland Group C++ compiler
13128         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13129         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'
13130
13131         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13132         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13133         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'
13134         ;;
13135       cxx*)
13136         # Compaq C++
13137         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13138         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'
13139
13140         runpath_var=LD_RUN_PATH
13141         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13142         hardcode_libdir_separator_CXX=:
13143
13144         # Commands to make compiler produce verbose output that lists
13145         # what "hidden" libraries, object files and flags are used when
13146         # linking a shared library.
13147         #
13148         # There doesn't appear to be a way to prevent this compiler from
13149         # explicitly linking system object files so we need to strip them
13150         # from the output so that they don't get included in the library
13151         # dependencies.
13152         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'
13153         ;;
13154       *)
13155         case `$CC -V 2>&1 | sed 5q` in
13156         *Sun\ C*)
13157           # Sun C++ 5.9
13158           no_undefined_flag_CXX=' -zdefs'
13159           archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13160           archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
13161           hardcode_libdir_flag_spec_CXX='-R$libdir'
13162           whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13163
13164           # Not sure whether something based on
13165           # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13166           # would be better.
13167           output_verbose_link_cmd='echo'
13168
13169           # Archives containing C++ object files must be created using
13170           # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13171           # necessary to make sure instantiated templates are included
13172           # in the archive.
13173           old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13174           ;;
13175         esac
13176         ;;
13177     esac
13178     ;;
13179   lynxos*)
13180     # FIXME: insert proper C++ library support
13181     ld_shlibs_CXX=no
13182     ;;
13183   m88k*)
13184     # FIXME: insert proper C++ library support
13185     ld_shlibs_CXX=no
13186     ;;
13187   mvs*)
13188     case $cc_basename in
13189       cxx*)
13190         # FIXME: insert proper C++ library support
13191         ld_shlibs_CXX=no
13192         ;;
13193       *)
13194         # FIXME: insert proper C++ library support
13195         ld_shlibs_CXX=no
13196         ;;
13197     esac
13198     ;;
13199   netbsd* | netbsdelf*-gnu)
13200     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13201       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13202       wlarc=
13203       hardcode_libdir_flag_spec_CXX='-R$libdir'
13204       hardcode_direct_CXX=yes
13205       hardcode_shlibpath_var_CXX=no
13206     fi
13207     # Workaround some broken pre-1.5 toolchains
13208     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13209     ;;
13210   openbsd2*)
13211     # C++ shared libraries are fairly broken
13212     ld_shlibs_CXX=no
13213     ;;
13214   openbsd*)
13215     if test -f /usr/libexec/ld.so; then
13216       hardcode_direct_CXX=yes
13217       hardcode_shlibpath_var_CXX=no
13218       archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13219       hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13220       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13221         archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13222         export_dynamic_flag_spec_CXX='${wl}-E'
13223         whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13224       fi
13225       output_verbose_link_cmd='echo'
13226     else
13227       ld_shlibs_CXX=no
13228     fi
13229     ;;
13230   osf3*)
13231     case $cc_basename in
13232       KCC*)
13233         # Kuck and Associates, Inc. (KAI) C++ Compiler
13234
13235         # KCC will only create a shared library if the output file
13236         # ends with ".so" (or ".sl" for HP-UX), so rename the library
13237         # to its proper name (with version) after linking.
13238         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'
13239
13240         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13241         hardcode_libdir_separator_CXX=:
13242
13243         # Archives containing C++ object files must be created using
13244         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13245         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13246
13247         ;;
13248       RCC*)
13249         # Rational C++ 2.4.1
13250         # FIXME: insert proper C++ library support
13251         ld_shlibs_CXX=no
13252         ;;
13253       cxx*)
13254         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13255         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'
13256
13257         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13258         hardcode_libdir_separator_CXX=:
13259
13260         # Commands to make compiler produce verbose output that lists
13261         # what "hidden" libraries, object files and flags are used when
13262         # linking a shared library.
13263         #
13264         # There doesn't appear to be a way to prevent this compiler from
13265         # explicitly linking system object files so we need to strip them
13266         # from the output so that they don't get included in the library
13267         # dependencies.
13268         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'
13269         ;;
13270       *)
13271         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13272           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13273           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'
13274
13275           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13276           hardcode_libdir_separator_CXX=:
13277
13278           # Commands to make compiler produce verbose output that lists
13279           # what "hidden" libraries, object files and flags are used when
13280           # linking a shared library.
13281           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13282
13283         else
13284           # FIXME: insert proper C++ library support
13285           ld_shlibs_CXX=no
13286         fi
13287         ;;
13288     esac
13289     ;;
13290   osf4* | osf5*)
13291     case $cc_basename in
13292       KCC*)
13293         # Kuck and Associates, Inc. (KAI) C++ Compiler
13294
13295         # KCC will only create a shared library if the output file
13296         # ends with ".so" (or ".sl" for HP-UX), so rename the library
13297         # to its proper name (with version) after linking.
13298         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'
13299
13300         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13301         hardcode_libdir_separator_CXX=:
13302
13303         # Archives containing C++ object files must be created using
13304         # the KAI C++ compiler.
13305         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
13306         ;;
13307       RCC*)
13308         # Rational C++ 2.4.1
13309         # FIXME: insert proper C++ library support
13310         ld_shlibs_CXX=no
13311         ;;
13312       cxx*)
13313         allow_undefined_flag_CXX=' -expect_unresolved \*'
13314         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'
13315         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13316           echo "-hidden">> $lib.exp~
13317           $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~
13318           $rm $lib.exp'
13319
13320         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13321         hardcode_libdir_separator_CXX=:
13322
13323         # Commands to make compiler produce verbose output that lists
13324         # what "hidden" libraries, object files and flags are used when
13325         # linking a shared library.
13326         #
13327         # There doesn't appear to be a way to prevent this compiler from
13328         # explicitly linking system object files so we need to strip them
13329         # from the output so that they don't get included in the library
13330         # dependencies.
13331         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'
13332         ;;
13333       *)
13334         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13335           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13336          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'
13337
13338           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13339           hardcode_libdir_separator_CXX=:
13340
13341           # Commands to make compiler produce verbose output that lists
13342           # what "hidden" libraries, object files and flags are used when
13343           # linking a shared library.
13344           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13345
13346         else
13347           # FIXME: insert proper C++ library support
13348           ld_shlibs_CXX=no
13349         fi
13350         ;;
13351     esac
13352     ;;
13353   psos*)
13354     # FIXME: insert proper C++ library support
13355     ld_shlibs_CXX=no
13356     ;;
13357   sunos4*)
13358     case $cc_basename in
13359       CC*)
13360         # Sun C++ 4.x
13361         # FIXME: insert proper C++ library support
13362         ld_shlibs_CXX=no
13363         ;;
13364       lcc*)
13365         # Lucid
13366         # FIXME: insert proper C++ library support
13367         ld_shlibs_CXX=no
13368         ;;
13369       *)
13370         # FIXME: insert proper C++ library support
13371         ld_shlibs_CXX=no
13372         ;;
13373     esac
13374     ;;
13375   solaris*)
13376     case $cc_basename in
13377       CC*)
13378         # Sun C++ 4.2, 5.x and Centerline C++
13379         archive_cmds_need_lc_CXX=yes
13380         no_undefined_flag_CXX=' -zdefs'
13381         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13382         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13383         $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'
13384
13385         hardcode_libdir_flag_spec_CXX='-R$libdir'
13386         hardcode_shlibpath_var_CXX=no
13387         case $host_os in
13388           solaris2.[0-5] | solaris2.[0-5].*) ;;
13389           *)
13390             # The compiler driver will combine and reorder linker options,
13391             # but understands `-z linker_flag'.
13392             # Supported since Solaris 2.6 (maybe 2.5.1?)
13393             whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13394             ;;
13395         esac
13396         link_all_deplibs_CXX=yes
13397
13398         output_verbose_link_cmd='echo'
13399
13400         # Archives containing C++ object files must be created using
13401         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13402         # necessary to make sure instantiated templates are included
13403         # in the archive.
13404         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13405         ;;
13406       gcx*)
13407         # Green Hills C++ Compiler
13408         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13409
13410         # The C++ compiler must be used to create the archive.
13411         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13412         ;;
13413       *)
13414         # GNU C++ compiler with Solaris linker
13415         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13416           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13417           if $CC --version | grep -v '^2\.7' > /dev/null; then
13418             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13419             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13420                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13421
13422             # Commands to make compiler produce verbose output that lists
13423             # what "hidden" libraries, object files and flags are used when
13424             # linking a shared library.
13425             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13426           else
13427             # g++ 2.7 appears to require `-G' NOT `-shared' on this
13428             # platform.
13429             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13430             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13431                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13432
13433             # Commands to make compiler produce verbose output that lists
13434             # what "hidden" libraries, object files and flags are used when
13435             # linking a shared library.
13436             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13437           fi
13438
13439           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13440           case $host_os in
13441           solaris2.[0-5] | solaris2.[0-5].*) ;;
13442           *)
13443             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13444             ;;
13445           esac
13446         fi
13447         ;;
13448     esac
13449     ;;
13450   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13451     no_undefined_flag_CXX='${wl}-z,text'
13452     archive_cmds_need_lc_CXX=no
13453     hardcode_shlibpath_var_CXX=no
13454     runpath_var='LD_RUN_PATH'
13455
13456     case $cc_basename in
13457       CC*)
13458         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13459         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13460         ;;
13461       *)
13462         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13463         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13464         ;;
13465     esac
13466     ;;
13467   sysv5* | sco3.2v5* | sco5v6*)
13468     # Note: We can NOT use -z defs as we might desire, because we do not
13469     # link with -lc, and that would cause any symbols used from libc to
13470     # always be unresolved, which means just about no library would
13471     # ever link correctly.  If we're not using GNU ld we use -z text
13472     # though, which does catch some bad symbols but isn't as heavy-handed
13473     # as -z defs.
13474     # For security reasons, it is highly recommended that you always
13475     # use absolute paths for naming shared libraries, and exclude the
13476     # DT_RUNPATH tag from executables and libraries.  But doing so
13477     # requires that you compile everything twice, which is a pain.
13478     # So that behaviour is only enabled if SCOABSPATH is set to a
13479     # non-empty value in the environment.  Most likely only useful for
13480     # creating official distributions of packages.
13481     # This is a hack until libtool officially supports absolute path
13482     # names for shared libraries.
13483     no_undefined_flag_CXX='${wl}-z,text'
13484     allow_undefined_flag_CXX='${wl}-z,nodefs'
13485     archive_cmds_need_lc_CXX=no
13486     hardcode_shlibpath_var_CXX=no
13487     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
13488     hardcode_libdir_separator_CXX=':'
13489     link_all_deplibs_CXX=yes
13490     export_dynamic_flag_spec_CXX='${wl}-Bexport'
13491     runpath_var='LD_RUN_PATH'
13492
13493     case $cc_basename in
13494       CC*)
13495         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13496         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13497         ;;
13498       *)
13499         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13500         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13501         ;;
13502     esac
13503     ;;
13504   tandem*)
13505     case $cc_basename in
13506       NCC*)
13507         # NonStop-UX NCC 3.20
13508         # FIXME: insert proper C++ library support
13509         ld_shlibs_CXX=no
13510         ;;
13511       *)
13512         # FIXME: insert proper C++ library support
13513         ld_shlibs_CXX=no
13514         ;;
13515     esac
13516     ;;
13517   vxworks*)
13518     # FIXME: insert proper C++ library support
13519     ld_shlibs_CXX=no
13520     ;;
13521   *)
13522     # FIXME: insert proper C++ library support
13523     ld_shlibs_CXX=no
13524     ;;
13525 esac
13526 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13527 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13528 test "$ld_shlibs_CXX" = no && can_build_shared=no
13529
13530 GCC_CXX="$GXX"
13531 LD_CXX="$LD"
13532
13533 ## CAVEAT EMPTOR:
13534 ## There is no encapsulation within the following macros, do not change
13535 ## the running order or otherwise move them around unless you know exactly
13536 ## what you are doing...
13537
13538 cat > conftest.$ac_ext <<EOF
13539 class Foo
13540 {
13541 public:
13542   Foo (void) { a = 0; }
13543 private:
13544   int a;
13545 };
13546 EOF
13547
13548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13549   (eval $ac_compile) 2>&5
13550   ac_status=$?
13551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13552   (exit $ac_status); }; then
13553   # Parse the compiler output and extract the necessary
13554   # objects, libraries and library flags.
13555
13556   # Sentinel used to keep track of whether or not we are before
13557   # the conftest object file.
13558   pre_test_object_deps_done=no
13559
13560   # The `*' in the case matches for architectures that use `case' in
13561   # $output_verbose_cmd can trigger glob expansion during the loop
13562   # eval without this substitution.
13563   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
13564
13565   for p in `eval $output_verbose_link_cmd`; do
13566     case $p in
13567
13568     -L* | -R* | -l*)
13569        # Some compilers place space between "-{L,R}" and the path.
13570        # Remove the space.
13571        if test $p = "-L" \
13572           || test $p = "-R"; then
13573          prev=$p
13574          continue
13575        else
13576          prev=
13577        fi
13578
13579        if test "$pre_test_object_deps_done" = no; then
13580          case $p in
13581          -L* | -R*)
13582            # Internal compiler library paths should come after those
13583            # provided the user.  The postdeps already come after the
13584            # user supplied libs so there is no need to process them.
13585            if test -z "$compiler_lib_search_path_CXX"; then
13586              compiler_lib_search_path_CXX="${prev}${p}"
13587            else
13588              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13589            fi
13590            ;;
13591          # The "-l" case would never come before the object being
13592          # linked, so don't bother handling this case.
13593          esac
13594        else
13595          if test -z "$postdeps_CXX"; then
13596            postdeps_CXX="${prev}${p}"
13597          else
13598            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13599          fi
13600        fi
13601        ;;
13602
13603     *.$objext)
13604        # This assumes that the test object file only shows up
13605        # once in the compiler output.
13606        if test "$p" = "conftest.$objext"; then
13607          pre_test_object_deps_done=yes
13608          continue
13609        fi
13610
13611        if test "$pre_test_object_deps_done" = no; then
13612          if test -z "$predep_objects_CXX"; then
13613            predep_objects_CXX="$p"
13614          else
13615            predep_objects_CXX="$predep_objects_CXX $p"
13616          fi
13617        else
13618          if test -z "$postdep_objects_CXX"; then
13619            postdep_objects_CXX="$p"
13620          else
13621            postdep_objects_CXX="$postdep_objects_CXX $p"
13622          fi
13623        fi
13624        ;;
13625
13626     *) ;; # Ignore the rest.
13627
13628     esac
13629   done
13630
13631   # Clean up.
13632   rm -f a.out a.exe
13633 else
13634   echo "libtool.m4: error: problem compiling CXX test program"
13635 fi
13636
13637 $rm -f confest.$objext
13638
13639 # PORTME: override above test on systems where it is broken
13640 case $host_os in
13641 interix[3-9]*)
13642   # Interix 3.5 installs completely hosed .la files for C++, so rather than
13643   # hack all around it, let's just trust "g++" to DTRT.
13644   predep_objects_CXX=
13645   postdep_objects_CXX=
13646   postdeps_CXX=
13647   ;;
13648
13649 linux*)
13650   case `$CC -V 2>&1 | sed 5q` in
13651   *Sun\ C*)
13652     # Sun C++ 5.9
13653     #
13654     # The more standards-conforming stlport4 library is
13655     # incompatible with the Cstd library. Avoid specifying
13656     # it if it's in CXXFLAGS. Ignore libCrun as
13657     # -library=stlport4 depends on it.
13658     case " $CXX $CXXFLAGS " in
13659     *" -library=stlport4 "*)
13660       solaris_use_stlport4=yes
13661       ;;
13662     esac
13663     if test "$solaris_use_stlport4" != yes; then
13664       postdeps_CXX='-library=Cstd -library=Crun'
13665     fi
13666     ;;
13667   esac
13668   ;;
13669
13670 solaris*)
13671   case $cc_basename in
13672   CC*)
13673     # The more standards-conforming stlport4 library is
13674     # incompatible with the Cstd library. Avoid specifying
13675     # it if it's in CXXFLAGS. Ignore libCrun as
13676     # -library=stlport4 depends on it.
13677     case " $CXX $CXXFLAGS " in
13678     *" -library=stlport4 "*)
13679       solaris_use_stlport4=yes
13680       ;;
13681     esac
13682
13683     # Adding this requires a known-good setup of shared libraries for
13684     # Sun compiler versions before 5.6, else PIC objects from an old
13685     # archive will be linked into the output, leading to subtle bugs.
13686     if test "$solaris_use_stlport4" != yes; then
13687       postdeps_CXX='-library=Cstd -library=Crun'
13688     fi
13689     ;;
13690   esac
13691   ;;
13692 esac
13693
13694
13695 case " $postdeps_CXX " in
13696 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13697 esac
13698
13699 lt_prog_compiler_wl_CXX=
13700 lt_prog_compiler_pic_CXX=
13701 lt_prog_compiler_static_CXX=
13702
13703 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13704 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13705  
13706   # C++ specific cases for pic, static, wl, etc.
13707   if test "$GXX" = yes; then
13708     lt_prog_compiler_wl_CXX='-Wl,'
13709     lt_prog_compiler_static_CXX='-static'
13710
13711     case $host_os in
13712     aix*)
13713       # All AIX code is PIC.
13714       if test "$host_cpu" = ia64; then
13715         # AIX 5 now supports IA64 processor
13716         lt_prog_compiler_static_CXX='-Bstatic'
13717       fi
13718       ;;
13719     amigaos*)
13720       # FIXME: we need at least 68020 code to build shared libraries, but
13721       # adding the `-m68020' flag to GCC prevents building anything better,
13722       # like `-m68040'.
13723       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13724       ;;
13725     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13726       # PIC is the default for these OSes.
13727       ;;
13728     mingw* | cygwin* | os2* | pw32*)
13729       # This hack is so that the source file can tell whether it is being
13730       # built for inclusion in a dll (and should export symbols for example).
13731       # Although the cygwin gcc ignores -fPIC, still need this for old-style
13732       # (--disable-auto-import) libraries
13733       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13734       ;;
13735     darwin* | rhapsody*)
13736       # PIC is the default on this platform
13737       # Common symbols not allowed in MH_DYLIB files
13738       lt_prog_compiler_pic_CXX='-fno-common'
13739       ;;
13740     *djgpp*)
13741       # DJGPP does not support shared libraries at all
13742       lt_prog_compiler_pic_CXX=
13743       ;;
13744     interix[3-9]*)
13745       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13746       # Instead, we relocate shared libraries at runtime.
13747       ;;
13748     sysv4*MP*)
13749       if test -d /usr/nec; then
13750         lt_prog_compiler_pic_CXX=-Kconform_pic
13751       fi
13752       ;;
13753     hpux*)
13754       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13755       # not for PA HP-UX.
13756       case $host_cpu in
13757       hppa*64*|ia64*)
13758         ;;
13759       *)
13760         lt_prog_compiler_pic_CXX='-fPIC'
13761         ;;
13762       esac
13763       ;;
13764     *)
13765       lt_prog_compiler_pic_CXX='-fPIC'
13766       ;;
13767     esac
13768   else
13769     case $host_os in
13770       aix4* | aix5*)
13771         # All AIX code is PIC.
13772         if test "$host_cpu" = ia64; then
13773           # AIX 5 now supports IA64 processor
13774           lt_prog_compiler_static_CXX='-Bstatic'
13775         else
13776           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13777         fi
13778         ;;
13779       chorus*)
13780         case $cc_basename in
13781         cxch68*)
13782           # Green Hills C++ Compiler
13783           # _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"
13784           ;;
13785         esac
13786         ;;
13787        darwin*)
13788          # PIC is the default on this platform
13789          # Common symbols not allowed in MH_DYLIB files
13790          case $cc_basename in
13791            xlc*)
13792            lt_prog_compiler_pic_CXX='-qnocommon'
13793            lt_prog_compiler_wl_CXX='-Wl,'
13794            ;;
13795          esac
13796        ;;
13797       dgux*)
13798         case $cc_basename in
13799           ec++*)
13800             lt_prog_compiler_pic_CXX='-KPIC'
13801             ;;
13802           ghcx*)
13803             # Green Hills C++ Compiler
13804             lt_prog_compiler_pic_CXX='-pic'
13805             ;;
13806           *)
13807             ;;
13808         esac
13809         ;;
13810       freebsd* | dragonfly*)
13811         # FreeBSD uses GNU C++
13812         ;;
13813       hpux9* | hpux10* | hpux11*)
13814         case $cc_basename in
13815           CC*)
13816             lt_prog_compiler_wl_CXX='-Wl,'
13817             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13818             if test "$host_cpu" != ia64; then
13819               lt_prog_compiler_pic_CXX='+Z'
13820             fi
13821             ;;
13822           aCC*)
13823             lt_prog_compiler_wl_CXX='-Wl,'
13824             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13825             case $host_cpu in
13826             hppa*64*|ia64*)
13827               # +Z the default
13828               ;;
13829             *)
13830               lt_prog_compiler_pic_CXX='+Z'
13831               ;;
13832             esac
13833             ;;
13834           *)
13835             ;;
13836         esac
13837         ;;
13838       interix*)
13839         # This is c89, which is MS Visual C++ (no shared libs)
13840         # Anyone wants to do a port?
13841         ;;
13842       irix5* | irix6* | nonstopux*)
13843         case $cc_basename in
13844           CC*)
13845             lt_prog_compiler_wl_CXX='-Wl,'
13846             lt_prog_compiler_static_CXX='-non_shared'
13847             # CC pic flag -KPIC is the default.
13848             ;;
13849           *)
13850             ;;
13851         esac
13852         ;;
13853       linux* | k*bsd*-gnu)
13854         case $cc_basename in
13855           KCC*)
13856             # KAI C++ Compiler
13857             lt_prog_compiler_wl_CXX='--backend -Wl,'
13858             lt_prog_compiler_pic_CXX='-fPIC'
13859             ;;
13860           icpc* | ecpc*)
13861             # Intel C++
13862             lt_prog_compiler_wl_CXX='-Wl,'
13863             lt_prog_compiler_pic_CXX='-KPIC'
13864             lt_prog_compiler_static_CXX='-static'
13865             ;;
13866           pgCC*)
13867             # Portland Group C++ compiler.
13868             lt_prog_compiler_wl_CXX='-Wl,'
13869             lt_prog_compiler_pic_CXX='-fpic'
13870             lt_prog_compiler_static_CXX='-Bstatic'
13871             ;;
13872           cxx*)
13873             # Compaq C++
13874             # Make sure the PIC flag is empty.  It appears that all Alpha
13875             # Linux and Compaq Tru64 Unix objects are PIC.
13876             lt_prog_compiler_pic_CXX=
13877             lt_prog_compiler_static_CXX='-non_shared'
13878             ;;
13879           *)
13880             case `$CC -V 2>&1 | sed 5q` in
13881             *Sun\ C*)
13882               # Sun C++ 5.9
13883               lt_prog_compiler_pic_CXX='-KPIC'
13884               lt_prog_compiler_static_CXX='-Bstatic'
13885               lt_prog_compiler_wl_CXX='-Qoption ld '
13886               ;;
13887             esac
13888             ;;
13889         esac
13890         ;;
13891       lynxos*)
13892         ;;
13893       m88k*)
13894         ;;
13895       mvs*)
13896         case $cc_basename in
13897           cxx*)
13898             lt_prog_compiler_pic_CXX='-W c,exportall'
13899             ;;
13900           *)
13901             ;;
13902         esac
13903         ;;
13904       netbsd* | netbsdelf*-gnu)
13905         ;;
13906       osf3* | osf4* | osf5*)
13907         case $cc_basename in
13908           KCC*)
13909             lt_prog_compiler_wl_CXX='--backend -Wl,'
13910             ;;
13911           RCC*)
13912             # Rational C++ 2.4.1
13913             lt_prog_compiler_pic_CXX='-pic'
13914             ;;
13915           cxx*)
13916             # Digital/Compaq C++
13917             lt_prog_compiler_wl_CXX='-Wl,'
13918             # Make sure the PIC flag is empty.  It appears that all Alpha
13919             # Linux and Compaq Tru64 Unix objects are PIC.
13920             lt_prog_compiler_pic_CXX=
13921             lt_prog_compiler_static_CXX='-non_shared'
13922             ;;
13923           *)
13924             ;;
13925         esac
13926         ;;
13927       psos*)
13928         ;;
13929       solaris*)
13930         case $cc_basename in
13931           CC*)
13932             # Sun C++ 4.2, 5.x and Centerline C++
13933             lt_prog_compiler_pic_CXX='-KPIC'
13934             lt_prog_compiler_static_CXX='-Bstatic'
13935             lt_prog_compiler_wl_CXX='-Qoption ld '
13936             ;;
13937           gcx*)
13938             # Green Hills C++ Compiler
13939             lt_prog_compiler_pic_CXX='-PIC'
13940             ;;
13941           *)
13942             ;;
13943         esac
13944         ;;
13945       sunos4*)
13946         case $cc_basename in
13947           CC*)
13948             # Sun C++ 4.x
13949             lt_prog_compiler_pic_CXX='-pic'
13950             lt_prog_compiler_static_CXX='-Bstatic'
13951             ;;
13952           lcc*)
13953             # Lucid
13954             lt_prog_compiler_pic_CXX='-pic'
13955             ;;
13956           *)
13957             ;;
13958         esac
13959         ;;
13960       tandem*)
13961         case $cc_basename in
13962           NCC*)
13963             # NonStop-UX NCC 3.20
13964             lt_prog_compiler_pic_CXX='-KPIC'
13965             ;;
13966           *)
13967             ;;
13968         esac
13969         ;;
13970       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13971         case $cc_basename in
13972           CC*)
13973             lt_prog_compiler_wl_CXX='-Wl,'
13974             lt_prog_compiler_pic_CXX='-KPIC'
13975             lt_prog_compiler_static_CXX='-Bstatic'
13976             ;;
13977         esac
13978         ;;
13979       vxworks*)
13980         ;;
13981       *)
13982         lt_prog_compiler_can_build_shared_CXX=no
13983         ;;
13984     esac
13985   fi
13986
13987 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13988 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
13989
13990 #
13991 # Check to make sure the PIC flag actually works.
13992 #
13993 if test -n "$lt_prog_compiler_pic_CXX"; then
13994   
13995 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13996 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
13997 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13998   echo $ECHO_N "(cached) $ECHO_C" >&6
13999 else
14000   lt_prog_compiler_pic_works_CXX=no
14001   ac_outfile=conftest.$ac_objext
14002    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14003    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14004    # Insert the option either (1) after the last *FLAGS variable, or
14005    # (2) before a word containing "conftest.", or (3) at the end.
14006    # Note that $ac_compile itself does not contain backslashes and begins
14007    # with a dollar sign (not a hyphen), so the echo should work correctly.
14008    # The option is referenced via a variable to avoid confusing sed.
14009    lt_compile=`echo "$ac_compile" | $SED \
14010    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14011    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14012    -e 's:$: $lt_compiler_flag:'`
14013    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
14014    (eval "$lt_compile" 2>conftest.err)
14015    ac_status=$?
14016    cat conftest.err >&5
14017    echo "$as_me:__oline__: \$? = $ac_status" >&5
14018    if (exit $ac_status) && test -s "$ac_outfile"; then
14019      # The compiler can only warn and ignore the option if not recognized
14020      # So say no if there are warnings other than the usual output.
14021      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14022      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14023      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14024        lt_prog_compiler_pic_works_CXX=yes
14025      fi
14026    fi
14027    $rm conftest*
14028
14029 fi
14030 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
14031 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
14032
14033 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
14034     case $lt_prog_compiler_pic_CXX in
14035      "" | " "*) ;;
14036      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14037      esac
14038 else
14039     lt_prog_compiler_pic_CXX=
14040      lt_prog_compiler_can_build_shared_CXX=no
14041 fi
14042
14043 fi
14044 case $host_os in
14045   # For platforms which do not support PIC, -DPIC is meaningless:
14046   *djgpp*)
14047     lt_prog_compiler_pic_CXX=
14048     ;;
14049   *)
14050     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14051     ;;
14052 esac
14053
14054 #
14055 # Check to make sure the static flag actually works.
14056 #
14057 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14058 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14059 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14060 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
14061   echo $ECHO_N "(cached) $ECHO_C" >&6
14062 else
14063   lt_prog_compiler_static_works_CXX=no
14064    save_LDFLAGS="$LDFLAGS"
14065    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14066    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14067    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14068      # The linker can only warn and ignore the option if not recognized
14069      # So say no if there are warnings
14070      if test -s conftest.err; then
14071        # Append any errors to the config.log.
14072        cat conftest.err 1>&5
14073        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14074        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14075        if diff conftest.exp conftest.er2 >/dev/null; then
14076          lt_prog_compiler_static_works_CXX=yes
14077        fi
14078      else
14079        lt_prog_compiler_static_works_CXX=yes
14080      fi
14081    fi
14082    $rm conftest*
14083    LDFLAGS="$save_LDFLAGS"
14084
14085 fi
14086 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
14087 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
14088
14089 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
14090     :
14091 else
14092     lt_prog_compiler_static_CXX=
14093 fi
14094
14095
14096 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14097 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14098 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14099   echo $ECHO_N "(cached) $ECHO_C" >&6
14100 else
14101   lt_cv_prog_compiler_c_o_CXX=no
14102    $rm -r conftest 2>/dev/null
14103    mkdir conftest
14104    cd conftest
14105    mkdir out
14106    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14107
14108    lt_compiler_flag="-o out/conftest2.$ac_objext"
14109    # Insert the option either (1) after the last *FLAGS variable, or
14110    # (2) before a word containing "conftest.", or (3) at the end.
14111    # Note that $ac_compile itself does not contain backslashes and begins
14112    # with a dollar sign (not a hyphen), so the echo should work correctly.
14113    lt_compile=`echo "$ac_compile" | $SED \
14114    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14115    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14116    -e 's:$: $lt_compiler_flag:'`
14117    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
14118    (eval "$lt_compile" 2>out/conftest.err)
14119    ac_status=$?
14120    cat out/conftest.err >&5
14121    echo "$as_me:__oline__: \$? = $ac_status" >&5
14122    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14123    then
14124      # The compiler can only warn and ignore the option if not recognized
14125      # So say no if there are warnings
14126      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14127      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14128      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14129        lt_cv_prog_compiler_c_o_CXX=yes
14130      fi
14131    fi
14132    chmod u+w . 2>&5
14133    $rm conftest*
14134    # SGI C++ compiler will create directory out/ii_files/ for
14135    # template instantiation
14136    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14137    $rm out/* && rmdir out
14138    cd ..
14139    rmdir conftest
14140    $rm conftest*
14141
14142 fi
14143 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14144 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14145
14146
14147 hard_links="nottested"
14148 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14149   # do not overwrite the value of need_locks provided by the user
14150   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14151 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14152   hard_links=yes
14153   $rm conftest*
14154   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14155   touch conftest.a
14156   ln conftest.a conftest.b 2>&5 || hard_links=no
14157   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14158   { echo "$as_me:$LINENO: result: $hard_links" >&5
14159 echo "${ECHO_T}$hard_links" >&6; }
14160   if test "$hard_links" = no; then
14161     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14162 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14163     need_locks=warn
14164   fi
14165 else
14166   need_locks=no
14167 fi
14168
14169 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14170 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14171
14172   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14173   case $host_os in
14174   aix4* | aix5*)
14175     # If we're using GNU nm, then we don't want the "-C" option.
14176     # -C means demangle to AIX nm, but means don't demangle with GNU nm
14177     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14178       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'
14179     else
14180       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'
14181     fi
14182     ;;
14183   pw32*)
14184     export_symbols_cmds_CXX="$ltdll_cmds"
14185   ;;
14186   cygwin* | mingw*)
14187     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'
14188   ;;
14189   linux* | k*bsd*-gnu)
14190     link_all_deplibs_CXX=no
14191   ;;
14192   *)
14193     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14194   ;;
14195   esac
14196
14197 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14198 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14199 test "$ld_shlibs_CXX" = no && can_build_shared=no
14200
14201 #
14202 # Do we need to explicitly link libc?
14203 #
14204 case "x$archive_cmds_need_lc_CXX" in
14205 x|xyes)
14206   # Assume -lc should be added
14207   archive_cmds_need_lc_CXX=yes
14208
14209   if test "$enable_shared" = yes && test "$GCC" = yes; then
14210     case $archive_cmds_CXX in
14211     *'~'*)
14212       # FIXME: we may have to deal with multi-command sequences.
14213       ;;
14214     '$CC '*)
14215       # Test whether the compiler implicitly links with -lc since on some
14216       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14217       # to ld, don't add -lc before -lgcc.
14218       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14219 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14220       $rm conftest*
14221       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14222
14223       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14224   (eval $ac_compile) 2>&5
14225   ac_status=$?
14226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14227   (exit $ac_status); } 2>conftest.err; then
14228         soname=conftest
14229         lib=conftest
14230         libobjs=conftest.$ac_objext
14231         deplibs=
14232         wl=$lt_prog_compiler_wl_CXX
14233         pic_flag=$lt_prog_compiler_pic_CXX
14234         compiler_flags=-v
14235         linker_flags=-v
14236         verstring=
14237         output_objdir=.
14238         libname=conftest
14239         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14240         allow_undefined_flag_CXX=
14241         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14242   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14243   ac_status=$?
14244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14245   (exit $ac_status); }
14246         then
14247           archive_cmds_need_lc_CXX=no
14248         else
14249           archive_cmds_need_lc_CXX=yes
14250         fi
14251         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14252       else
14253         cat conftest.err 1>&5
14254       fi
14255       $rm conftest*
14256       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
14257 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
14258       ;;
14259     esac
14260   fi
14261   ;;
14262 esac
14263
14264 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14265 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14266 library_names_spec=
14267 libname_spec='lib$name'
14268 soname_spec=
14269 shrext_cmds=".so"
14270 postinstall_cmds=
14271 postuninstall_cmds=
14272 finish_cmds=
14273 finish_eval=
14274 shlibpath_var=
14275 shlibpath_overrides_runpath=unknown
14276 version_type=none
14277 dynamic_linker="$host_os ld.so"
14278 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14279
14280 need_lib_prefix=unknown
14281 hardcode_into_libs=no
14282
14283 # when you set need_version to no, make sure it does not cause -set_version
14284 # flags to be left without arguments
14285 need_version=unknown
14286
14287 case $host_os in
14288 aix3*)
14289   version_type=linux
14290   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14291   shlibpath_var=LIBPATH
14292
14293   # AIX 3 has no versioning support, so we append a major version to the name.
14294   soname_spec='${libname}${release}${shared_ext}$major'
14295   ;;
14296
14297 aix4* | aix5*)
14298   version_type=linux
14299   need_lib_prefix=no
14300   need_version=no
14301   hardcode_into_libs=yes
14302   if test "$host_cpu" = ia64; then
14303     # AIX 5 supports IA64
14304     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14305     shlibpath_var=LD_LIBRARY_PATH
14306   else
14307     # With GCC up to 2.95.x, collect2 would create an import file
14308     # for dependence libraries.  The import file would start with
14309     # the line `#! .'.  This would cause the generated library to
14310     # depend on `.', always an invalid library.  This was fixed in
14311     # development snapshots of GCC prior to 3.0.
14312     case $host_os in
14313       aix4 | aix4.[01] | aix4.[01].*)
14314       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14315            echo ' yes '
14316            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14317         :
14318       else
14319         can_build_shared=no
14320       fi
14321       ;;
14322     esac
14323     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14324     # soname into executable. Probably we can add versioning support to
14325     # collect2, so additional links can be useful in future.
14326     if test "$aix_use_runtimelinking" = yes; then
14327       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14328       # instead of lib<name>.a to let people know that these are not
14329       # typical AIX shared libraries.
14330       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14331     else
14332       # We preserve .a as extension for shared libraries through AIX4.2
14333       # and later when we are not doing run time linking.
14334       library_names_spec='${libname}${release}.a $libname.a'
14335       soname_spec='${libname}${release}${shared_ext}$major'
14336     fi
14337     shlibpath_var=LIBPATH
14338   fi
14339   ;;
14340
14341 amigaos*)
14342   library_names_spec='$libname.ixlibrary $libname.a'
14343   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14344   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'
14345   ;;
14346
14347 beos*)
14348   library_names_spec='${libname}${shared_ext}'
14349   dynamic_linker="$host_os ld.so"
14350   shlibpath_var=LIBRARY_PATH
14351   ;;
14352
14353 bsdi[45]*)
14354   version_type=linux
14355   need_version=no
14356   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14357   soname_spec='${libname}${release}${shared_ext}$major'
14358   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14359   shlibpath_var=LD_LIBRARY_PATH
14360   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14361   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14362   # the default ld.so.conf also contains /usr/contrib/lib and
14363   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14364   # libtool to hard-code these into programs
14365   ;;
14366
14367 cygwin* | mingw* | pw32*)
14368   version_type=windows
14369   shrext_cmds=".dll"
14370   need_version=no
14371   need_lib_prefix=no
14372
14373   case $GCC,$host_os in
14374   yes,cygwin* | yes,mingw* | yes,pw32*)
14375     library_names_spec='$libname.dll.a'
14376     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14377     postinstall_cmds='base_file=`basename \${file}`~
14378       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14379       dldir=$destdir/`dirname \$dlpath`~
14380       test -d \$dldir || mkdir -p \$dldir~
14381       $install_prog $dir/$dlname \$dldir/$dlname~
14382       chmod a+x \$dldir/$dlname'
14383     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14384       dlpath=$dir/\$dldll~
14385        $rm \$dlpath'
14386     shlibpath_overrides_runpath=yes
14387
14388     case $host_os in
14389     cygwin*)
14390       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14391       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14392       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14393       ;;
14394     mingw*)
14395       # MinGW DLLs use traditional 'lib' prefix
14396       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14397       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14398       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14399         # It is most probably a Windows format PATH printed by
14400         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14401         # path with ; separators, and with drive letters. We can handle the
14402         # drive letters (cygwin fileutils understands them), so leave them,
14403         # especially as we might pass files found there to a mingw objdump,
14404         # which wouldn't understand a cygwinified path. Ahh.
14405         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14406       else
14407         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14408       fi
14409       ;;
14410     pw32*)
14411       # pw32 DLLs use 'pw' prefix rather than 'lib'
14412       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14413       ;;
14414     esac
14415     ;;
14416
14417   *)
14418     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14419     ;;
14420   esac
14421   dynamic_linker='Win32 ld.exe'
14422   # FIXME: first we should search . and the directory the executable is in
14423   shlibpath_var=PATH
14424   ;;
14425
14426 darwin* | rhapsody*)
14427   dynamic_linker="$host_os dyld"
14428   version_type=darwin
14429   need_lib_prefix=no
14430   need_version=no
14431   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14432   soname_spec='${libname}${release}${major}$shared_ext'
14433   shlibpath_overrides_runpath=yes
14434   shlibpath_var=DYLD_LIBRARY_PATH
14435   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14436    
14437   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14438   ;;
14439
14440 dgux*)
14441   version_type=linux
14442   need_lib_prefix=no
14443   need_version=no
14444   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14445   soname_spec='${libname}${release}${shared_ext}$major'
14446   shlibpath_var=LD_LIBRARY_PATH
14447   ;;
14448
14449 freebsd1*)
14450   dynamic_linker=no
14451   ;;
14452
14453 freebsd* | dragonfly*)
14454   # DragonFly does not have aout.  When/if they implement a new
14455   # versioning mechanism, adjust this.
14456   if test -x /usr/bin/objformat; then
14457     objformat=`/usr/bin/objformat`
14458   else
14459     case $host_os in
14460     freebsd[123]*) objformat=aout ;;
14461     *) objformat=elf ;;
14462     esac
14463   fi
14464   version_type=freebsd-$objformat
14465   case $version_type in
14466     freebsd-elf*)
14467       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14468       need_version=no
14469       need_lib_prefix=no
14470       ;;
14471     freebsd-*)
14472       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14473       need_version=yes
14474       ;;
14475   esac
14476   shlibpath_var=LD_LIBRARY_PATH
14477   case $host_os in
14478   freebsd2*)
14479     shlibpath_overrides_runpath=yes
14480     ;;
14481   freebsd3.[01]* | freebsdelf3.[01]*)
14482     shlibpath_overrides_runpath=yes
14483     hardcode_into_libs=yes
14484     ;;
14485   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14486   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14487     shlibpath_overrides_runpath=no
14488     hardcode_into_libs=yes
14489     ;;
14490   *) # from 4.6 on, and DragonFly
14491     shlibpath_overrides_runpath=yes
14492     hardcode_into_libs=yes
14493     ;;
14494   esac
14495   ;;
14496
14497 gnu*)
14498   version_type=linux
14499   need_lib_prefix=no
14500   need_version=no
14501   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14502   soname_spec='${libname}${release}${shared_ext}$major'
14503   shlibpath_var=LD_LIBRARY_PATH
14504   hardcode_into_libs=yes
14505   ;;
14506
14507 hpux9* | hpux10* | hpux11*)
14508   # Give a soname corresponding to the major version so that dld.sl refuses to
14509   # link against other versions.
14510   version_type=sunos
14511   need_lib_prefix=no
14512   need_version=no
14513   case $host_cpu in
14514   ia64*)
14515     shrext_cmds='.so'
14516     hardcode_into_libs=yes
14517     dynamic_linker="$host_os dld.so"
14518     shlibpath_var=LD_LIBRARY_PATH
14519     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14520     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14521     soname_spec='${libname}${release}${shared_ext}$major'
14522     if test "X$HPUX_IA64_MODE" = X32; then
14523       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14524     else
14525       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14526     fi
14527     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14528     ;;
14529    hppa*64*)
14530      shrext_cmds='.sl'
14531      hardcode_into_libs=yes
14532      dynamic_linker="$host_os dld.sl"
14533      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14534      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14535      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14536      soname_spec='${libname}${release}${shared_ext}$major'
14537      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14538      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14539      ;;
14540    *)
14541     shrext_cmds='.sl'
14542     dynamic_linker="$host_os dld.sl"
14543     shlibpath_var=SHLIB_PATH
14544     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14545     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14546     soname_spec='${libname}${release}${shared_ext}$major'
14547     ;;
14548   esac
14549   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14550   postinstall_cmds='chmod 555 $lib'
14551   ;;
14552
14553 interix[3-9]*)
14554   version_type=linux
14555   need_lib_prefix=no
14556   need_version=no
14557   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14558   soname_spec='${libname}${release}${shared_ext}$major'
14559   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14560   shlibpath_var=LD_LIBRARY_PATH
14561   shlibpath_overrides_runpath=no
14562   hardcode_into_libs=yes
14563   ;;
14564
14565 irix5* | irix6* | nonstopux*)
14566   case $host_os in
14567     nonstopux*) version_type=nonstopux ;;
14568     *)
14569         if test "$lt_cv_prog_gnu_ld" = yes; then
14570                 version_type=linux
14571         else
14572                 version_type=irix
14573         fi ;;
14574   esac
14575   need_lib_prefix=no
14576   need_version=no
14577   soname_spec='${libname}${release}${shared_ext}$major'
14578   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14579   case $host_os in
14580   irix5* | nonstopux*)
14581     libsuff= shlibsuff=
14582     ;;
14583   *)
14584     case $LD in # libtool.m4 will add one of these switches to LD
14585     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14586       libsuff= shlibsuff= libmagic=32-bit;;
14587     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14588       libsuff=32 shlibsuff=N32 libmagic=N32;;
14589     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14590       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14591     *) libsuff= shlibsuff= libmagic=never-match;;
14592     esac
14593     ;;
14594   esac
14595   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14596   shlibpath_overrides_runpath=no
14597   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14598   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14599   hardcode_into_libs=yes
14600   ;;
14601
14602 # No shared lib support for Linux oldld, aout, or coff.
14603 linux*oldld* | linux*aout* | linux*coff*)
14604   dynamic_linker=no
14605   ;;
14606
14607 # This must be Linux ELF.
14608 linux* | k*bsd*-gnu)
14609   version_type=linux
14610   need_lib_prefix=no
14611   need_version=no
14612   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14613   soname_spec='${libname}${release}${shared_ext}$major'
14614   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14615   shlibpath_var=LD_LIBRARY_PATH
14616   shlibpath_overrides_runpath=no
14617   # This implies no fast_install, which is unacceptable.
14618   # Some rework will be needed to allow for fast_install
14619   # before this can be enabled.
14620   hardcode_into_libs=yes
14621
14622   # Append ld.so.conf contents to the search path
14623   if test -f /etc/ld.so.conf; then
14624     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14625     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14626   fi
14627
14628   # We used to test for /lib/ld.so.1 and disable shared libraries on
14629   # powerpc, because MkLinux only supported shared libraries with the
14630   # GNU dynamic linker.  Since this was broken with cross compilers,
14631   # most powerpc-linux boxes support dynamic linking these days and
14632   # people can always --disable-shared, the test was removed, and we
14633   # assume the GNU/Linux dynamic linker is in use.
14634   dynamic_linker='GNU/Linux ld.so'
14635   ;;
14636
14637 netbsdelf*-gnu)
14638   version_type=linux
14639   need_lib_prefix=no
14640   need_version=no
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   shlibpath_var=LD_LIBRARY_PATH
14644   shlibpath_overrides_runpath=no
14645   hardcode_into_libs=yes
14646   dynamic_linker='NetBSD ld.elf_so'
14647   ;;
14648
14649 netbsd*)
14650   version_type=sunos
14651   need_lib_prefix=no
14652   need_version=no
14653   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14654     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14655     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14656     dynamic_linker='NetBSD (a.out) ld.so'
14657   else
14658     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14659     soname_spec='${libname}${release}${shared_ext}$major'
14660     dynamic_linker='NetBSD ld.elf_so'
14661   fi
14662   shlibpath_var=LD_LIBRARY_PATH
14663   shlibpath_overrides_runpath=yes
14664   hardcode_into_libs=yes
14665   ;;
14666
14667 newsos6)
14668   version_type=linux
14669   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14670   shlibpath_var=LD_LIBRARY_PATH
14671   shlibpath_overrides_runpath=yes
14672   ;;
14673
14674 nto-qnx*)
14675   version_type=linux
14676   need_lib_prefix=no
14677   need_version=no
14678   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14679   soname_spec='${libname}${release}${shared_ext}$major'
14680   shlibpath_var=LD_LIBRARY_PATH
14681   shlibpath_overrides_runpath=yes
14682   ;;
14683
14684 openbsd*)
14685   version_type=sunos
14686   sys_lib_dlsearch_path_spec="/usr/lib"
14687   need_lib_prefix=no
14688   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14689   case $host_os in
14690     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14691     *)                         need_version=no  ;;
14692   esac
14693   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14694   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14695   shlibpath_var=LD_LIBRARY_PATH
14696   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14697     case $host_os in
14698       openbsd2.[89] | openbsd2.[89].*)
14699         shlibpath_overrides_runpath=no
14700         ;;
14701       *)
14702         shlibpath_overrides_runpath=yes
14703         ;;
14704       esac
14705   else
14706     shlibpath_overrides_runpath=yes
14707   fi
14708   ;;
14709
14710 os2*)
14711   libname_spec='$name'
14712   shrext_cmds=".dll"
14713   need_lib_prefix=no
14714   library_names_spec='$libname${shared_ext} $libname.a'
14715   dynamic_linker='OS/2 ld.exe'
14716   shlibpath_var=LIBPATH
14717   ;;
14718
14719 osf3* | osf4* | osf5*)
14720   version_type=osf
14721   need_lib_prefix=no
14722   need_version=no
14723   soname_spec='${libname}${release}${shared_ext}$major'
14724   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14725   shlibpath_var=LD_LIBRARY_PATH
14726   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14727   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14728   ;;
14729
14730 rdos*)
14731   dynamic_linker=no
14732   ;;
14733
14734 solaris*)
14735   version_type=linux
14736   need_lib_prefix=no
14737   need_version=no
14738   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14739   soname_spec='${libname}${release}${shared_ext}$major'
14740   shlibpath_var=LD_LIBRARY_PATH
14741   shlibpath_overrides_runpath=yes
14742   hardcode_into_libs=yes
14743   # ldd complains unless libraries are executable
14744   postinstall_cmds='chmod +x $lib'
14745   ;;
14746
14747 sunos4*)
14748   version_type=sunos
14749   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14750   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14751   shlibpath_var=LD_LIBRARY_PATH
14752   shlibpath_overrides_runpath=yes
14753   if test "$with_gnu_ld" = yes; then
14754     need_lib_prefix=no
14755   fi
14756   need_version=yes
14757   ;;
14758
14759 sysv4 | sysv4.3*)
14760   version_type=linux
14761   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14762   soname_spec='${libname}${release}${shared_ext}$major'
14763   shlibpath_var=LD_LIBRARY_PATH
14764   case $host_vendor in
14765     sni)
14766       shlibpath_overrides_runpath=no
14767       need_lib_prefix=no
14768       export_dynamic_flag_spec='${wl}-Blargedynsym'
14769       runpath_var=LD_RUN_PATH
14770       ;;
14771     siemens)
14772       need_lib_prefix=no
14773       ;;
14774     motorola)
14775       need_lib_prefix=no
14776       need_version=no
14777       shlibpath_overrides_runpath=no
14778       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14779       ;;
14780   esac
14781   ;;
14782
14783 sysv4*MP*)
14784   if test -d /usr/nec ;then
14785     version_type=linux
14786     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14787     soname_spec='$libname${shared_ext}.$major'
14788     shlibpath_var=LD_LIBRARY_PATH
14789   fi
14790   ;;
14791
14792 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14793   version_type=freebsd-elf
14794   need_lib_prefix=no
14795   need_version=no
14796   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14797   soname_spec='${libname}${release}${shared_ext}$major'
14798   shlibpath_var=LD_LIBRARY_PATH
14799   hardcode_into_libs=yes
14800   if test "$with_gnu_ld" = yes; then
14801     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14802     shlibpath_overrides_runpath=no
14803   else
14804     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14805     shlibpath_overrides_runpath=yes
14806     case $host_os in
14807       sco3.2v5*)
14808         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14809         ;;
14810     esac
14811   fi
14812   sys_lib_dlsearch_path_spec='/usr/lib'
14813   ;;
14814
14815 uts4*)
14816   version_type=linux
14817   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14818   soname_spec='${libname}${release}${shared_ext}$major'
14819   shlibpath_var=LD_LIBRARY_PATH
14820   ;;
14821
14822 *)
14823   dynamic_linker=no
14824   ;;
14825 esac
14826 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14827 echo "${ECHO_T}$dynamic_linker" >&6; }
14828 test "$dynamic_linker" = no && can_build_shared=no
14829
14830 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14831 if test "$GCC" = yes; then
14832   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14833 fi
14834
14835 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14836 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
14837 hardcode_action_CXX=
14838 if test -n "$hardcode_libdir_flag_spec_CXX" || \
14839    test -n "$runpath_var_CXX" || \
14840    test "X$hardcode_automatic_CXX" = "Xyes" ; then
14841
14842   # We can hardcode non-existant directories.
14843   if test "$hardcode_direct_CXX" != no &&
14844      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14845      # have to relink, otherwise we might link with an installed library
14846      # when we should be linking with a yet-to-be-installed one
14847      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14848      test "$hardcode_minus_L_CXX" != no; then
14849     # Linking always hardcodes the temporary library directory.
14850     hardcode_action_CXX=relink
14851   else
14852     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14853     hardcode_action_CXX=immediate
14854   fi
14855 else
14856   # We cannot hardcode anything, or else we can only hardcode existing
14857   # directories.
14858   hardcode_action_CXX=unsupported
14859 fi
14860 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14861 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
14862
14863 if test "$hardcode_action_CXX" = relink; then
14864   # Fast installation is not supported
14865   enable_fast_install=no
14866 elif test "$shlibpath_overrides_runpath" = yes ||
14867      test "$enable_shared" = no; then
14868   # Fast installation is not necessary
14869   enable_fast_install=needless
14870 fi
14871
14872
14873 # The else clause should only fire when bootstrapping the
14874 # libtool distribution, otherwise you forgot to ship ltmain.sh
14875 # with your package, and you will get complaints that there are
14876 # no rules to generate ltmain.sh.
14877 if test -f "$ltmain"; then
14878   # See if we are running on zsh, and set the options which allow our commands through
14879   # without removal of \ escapes.
14880   if test -n "${ZSH_VERSION+set}" ; then
14881     setopt NO_GLOB_SUBST
14882   fi
14883   # Now quote all the things that may contain metacharacters while being
14884   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14885   # variables and quote the copies for generation of the libtool script.
14886   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14887     SED SHELL STRIP \
14888     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14889     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14890     deplibs_check_method reload_flag reload_cmds need_locks \
14891     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14892     lt_cv_sys_global_symbol_to_c_name_address \
14893     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14894     old_postinstall_cmds old_postuninstall_cmds \
14895     compiler_CXX \
14896     CC_CXX \
14897     LD_CXX \
14898     lt_prog_compiler_wl_CXX \
14899     lt_prog_compiler_pic_CXX \
14900     lt_prog_compiler_static_CXX \
14901     lt_prog_compiler_no_builtin_flag_CXX \
14902     export_dynamic_flag_spec_CXX \
14903     thread_safe_flag_spec_CXX \
14904     whole_archive_flag_spec_CXX \
14905     enable_shared_with_static_runtimes_CXX \
14906     old_archive_cmds_CXX \
14907     old_archive_from_new_cmds_CXX \
14908     predep_objects_CXX \
14909     postdep_objects_CXX \
14910     predeps_CXX \
14911     postdeps_CXX \
14912     compiler_lib_search_path_CXX \
14913     archive_cmds_CXX \
14914     archive_expsym_cmds_CXX \
14915     postinstall_cmds_CXX \
14916     postuninstall_cmds_CXX \
14917     old_archive_from_expsyms_cmds_CXX \
14918     allow_undefined_flag_CXX \
14919     no_undefined_flag_CXX \
14920     export_symbols_cmds_CXX \
14921     hardcode_libdir_flag_spec_CXX \
14922     hardcode_libdir_flag_spec_ld_CXX \
14923     hardcode_libdir_separator_CXX \
14924     hardcode_automatic_CXX \
14925     module_cmds_CXX \
14926     module_expsym_cmds_CXX \
14927     lt_cv_prog_compiler_c_o_CXX \
14928     fix_srcfile_path_CXX \
14929     exclude_expsyms_CXX \
14930     include_expsyms_CXX; do
14931
14932     case $var in
14933     old_archive_cmds_CXX | \
14934     old_archive_from_new_cmds_CXX | \
14935     archive_cmds_CXX | \
14936     archive_expsym_cmds_CXX | \
14937     module_cmds_CXX | \
14938     module_expsym_cmds_CXX | \
14939     old_archive_from_expsyms_cmds_CXX | \
14940     export_symbols_cmds_CXX | \
14941     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14942     postinstall_cmds | postuninstall_cmds | \
14943     old_postinstall_cmds | old_postuninstall_cmds | \
14944     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14945       # Double-quote double-evaled strings.
14946       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14947       ;;
14948     *)
14949       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14950       ;;
14951     esac
14952   done
14953
14954   case $lt_echo in
14955   *'\$0 --fallback-echo"')
14956     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14957     ;;
14958   esac
14959
14960 cfgfile="$ofile"
14961
14962   cat <<__EOF__ >> "$cfgfile"
14963 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14964
14965 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14966
14967 # Shell to use when invoking shell scripts.
14968 SHELL=$lt_SHELL
14969
14970 # Whether or not to build shared libraries.
14971 build_libtool_libs=$enable_shared
14972
14973 # Whether or not to build static libraries.
14974 build_old_libs=$enable_static
14975
14976 # Whether or not to add -lc for building shared libraries.
14977 build_libtool_need_lc=$archive_cmds_need_lc_CXX
14978
14979 # Whether or not to disallow shared libs when runtime libs are static
14980 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14981
14982 # Whether or not to optimize for fast installation.
14983 fast_install=$enable_fast_install
14984
14985 # The host system.
14986 host_alias=$host_alias
14987 host=$host
14988 host_os=$host_os
14989
14990 # The build system.
14991 build_alias=$build_alias
14992 build=$build
14993 build_os=$build_os
14994
14995 # An echo program that does not interpret backslashes.
14996 echo=$lt_echo
14997
14998 # The archiver.
14999 AR=$lt_AR
15000 AR_FLAGS=$lt_AR_FLAGS
15001
15002 # A C compiler.
15003 LTCC=$lt_LTCC
15004
15005 # LTCC compiler flags.
15006 LTCFLAGS=$lt_LTCFLAGS
15007
15008 # A language-specific compiler.
15009 CC=$lt_compiler_CXX
15010
15011 # Is the compiler the GNU C compiler?
15012 with_gcc=$GCC_CXX
15013
15014 # An ERE matcher.
15015 EGREP=$lt_EGREP
15016
15017 # The linker used to build libraries.
15018 LD=$lt_LD_CXX
15019
15020 # Whether we need hard or soft links.
15021 LN_S=$lt_LN_S
15022
15023 # A BSD-compatible nm program.
15024 NM=$lt_NM
15025
15026 # A symbol stripping program
15027 STRIP=$lt_STRIP
15028
15029 # Used to examine libraries when file_magic_cmd begins "file"
15030 MAGIC_CMD=$MAGIC_CMD
15031
15032 # Used on cygwin: DLL creation program.
15033 DLLTOOL="$DLLTOOL"
15034
15035 # Used on cygwin: object dumper.
15036 OBJDUMP="$OBJDUMP"
15037
15038 # Used on cygwin: assembler.
15039 AS="$AS"
15040
15041 # The name of the directory that contains temporary libtool files.
15042 objdir=$objdir
15043
15044 # How to create reloadable object files.
15045 reload_flag=$lt_reload_flag
15046 reload_cmds=$lt_reload_cmds
15047
15048 # How to pass a linker flag through the compiler.
15049 wl=$lt_lt_prog_compiler_wl_CXX
15050
15051 # Object file suffix (normally "o").
15052 objext="$ac_objext"
15053
15054 # Old archive suffix (normally "a").
15055 libext="$libext"
15056
15057 # Shared library suffix (normally ".so").
15058 shrext_cmds='$shrext_cmds'
15059
15060 # Executable file suffix (normally "").
15061 exeext="$exeext"
15062
15063 # Additional compiler flags for building library objects.
15064 pic_flag=$lt_lt_prog_compiler_pic_CXX
15065 pic_mode=$pic_mode
15066
15067 # What is the maximum length of a command?
15068 max_cmd_len=$lt_cv_sys_max_cmd_len
15069
15070 # Does compiler simultaneously support -c and -o options?
15071 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
15072
15073 # Must we lock files when doing compilation?
15074 need_locks=$lt_need_locks
15075
15076 # Do we need the lib prefix for modules?
15077 need_lib_prefix=$need_lib_prefix
15078
15079 # Do we need a version for libraries?
15080 need_version=$need_version
15081
15082 # Whether dlopen is supported.
15083 dlopen_support=$enable_dlopen
15084
15085 # Whether dlopen of programs is supported.
15086 dlopen_self=$enable_dlopen_self
15087
15088 # Whether dlopen of statically linked programs is supported.
15089 dlopen_self_static=$enable_dlopen_self_static
15090
15091 # Compiler flag to prevent dynamic linking.
15092 link_static_flag=$lt_lt_prog_compiler_static_CXX
15093
15094 # Compiler flag to turn off builtin functions.
15095 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
15096
15097 # Compiler flag to allow reflexive dlopens.
15098 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
15099
15100 # Compiler flag to generate shared objects directly from archives.
15101 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
15102
15103 # Compiler flag to generate thread-safe objects.
15104 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
15105
15106 # Library versioning type.
15107 version_type=$version_type
15108
15109 # Format of library name prefix.
15110 libname_spec=$lt_libname_spec
15111
15112 # List of archive names.  First name is the real one, the rest are links.
15113 # The last name is the one that the linker finds with -lNAME.
15114 library_names_spec=$lt_library_names_spec
15115
15116 # The coded name of the library, if different from the real name.
15117 soname_spec=$lt_soname_spec
15118
15119 # Commands used to build and install an old-style archive.
15120 RANLIB=$lt_RANLIB
15121 old_archive_cmds=$lt_old_archive_cmds_CXX
15122 old_postinstall_cmds=$lt_old_postinstall_cmds
15123 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15124
15125 # Create an old-style archive from a shared archive.
15126 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
15127
15128 # Create a temporary old-style archive to link instead of a shared archive.
15129 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
15130
15131 # Commands used to build and install a shared archive.
15132 archive_cmds=$lt_archive_cmds_CXX
15133 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
15134 postinstall_cmds=$lt_postinstall_cmds
15135 postuninstall_cmds=$lt_postuninstall_cmds
15136
15137 # Commands used to build a loadable module (assumed same as above if empty)
15138 module_cmds=$lt_module_cmds_CXX
15139 module_expsym_cmds=$lt_module_expsym_cmds_CXX
15140
15141 # Commands to strip libraries.
15142 old_striplib=$lt_old_striplib
15143 striplib=$lt_striplib
15144
15145 # Dependencies to place before the objects being linked to create a
15146 # shared library.
15147 predep_objects=$lt_predep_objects_CXX
15148
15149 # Dependencies to place after the objects being linked to create a
15150 # shared library.
15151 postdep_objects=$lt_postdep_objects_CXX
15152
15153 # Dependencies to place before the objects being linked to create a
15154 # shared library.
15155 predeps=$lt_predeps_CXX
15156
15157 # Dependencies to place after the objects being linked to create a
15158 # shared library.
15159 postdeps=$lt_postdeps_CXX
15160
15161 # The library search path used internally by the compiler when linking
15162 # a shared library.
15163 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
15164
15165 # Method to check whether dependent libraries are shared objects.
15166 deplibs_check_method=$lt_deplibs_check_method
15167
15168 # Command to use when deplibs_check_method == file_magic.
15169 file_magic_cmd=$lt_file_magic_cmd
15170
15171 # Flag that allows shared libraries with undefined symbols to be built.
15172 allow_undefined_flag=$lt_allow_undefined_flag_CXX
15173
15174 # Flag that forces no undefined symbols.
15175 no_undefined_flag=$lt_no_undefined_flag_CXX
15176
15177 # Commands used to finish a libtool library installation in a directory.
15178 finish_cmds=$lt_finish_cmds
15179
15180 # Same as above, but a single script fragment to be evaled but not shown.
15181 finish_eval=$lt_finish_eval
15182
15183 # Take the output of nm and produce a listing of raw symbols and C names.
15184 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15185
15186 # Transform the output of nm in a proper C declaration
15187 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15188
15189 # Transform the output of nm in a C name address pair
15190 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15191
15192 # This is the shared library runtime path variable.
15193 runpath_var=$runpath_var
15194
15195 # This is the shared library path variable.
15196 shlibpath_var=$shlibpath_var
15197
15198 # Is shlibpath searched before the hard-coded library search path?
15199 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15200
15201 # How to hardcode a shared library path into an executable.
15202 hardcode_action=$hardcode_action_CXX
15203
15204 # Whether we should hardcode library paths into libraries.
15205 hardcode_into_libs=$hardcode_into_libs
15206
15207 # Flag to hardcode \$libdir into a binary during linking.
15208 # This must work even if \$libdir does not exist.
15209 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
15210
15211 # If ld is used when linking, flag to hardcode \$libdir into
15212 # a binary during linking. This must work even if \$libdir does
15213 # not exist.
15214 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
15215
15216 # Whether we need a single -rpath flag with a separated argument.
15217 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
15218
15219 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15220 # resulting binary.
15221 hardcode_direct=$hardcode_direct_CXX
15222
15223 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15224 # resulting binary.
15225 hardcode_minus_L=$hardcode_minus_L_CXX
15226
15227 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15228 # the resulting binary.
15229 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
15230
15231 # Set to yes if building a shared library automatically hardcodes DIR into the library
15232 # and all subsequent libraries and executables linked against it.
15233 hardcode_automatic=$hardcode_automatic_CXX
15234
15235 # Variables whose values should be saved in libtool wrapper scripts and
15236 # restored at relink time.
15237 variables_saved_for_relink="$variables_saved_for_relink"
15238
15239 # Whether libtool must link a program against all its dependency libraries.
15240 link_all_deplibs=$link_all_deplibs_CXX
15241
15242 # Compile-time system search path for libraries
15243 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15244
15245 # Run-time system search path for libraries
15246 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15247
15248 # Fix the shell variable \$srcfile for the compiler.
15249 fix_srcfile_path=$lt_fix_srcfile_path
15250
15251 # Set to yes if exported symbols are required.
15252 always_export_symbols=$always_export_symbols_CXX
15253
15254 # The commands to list exported symbols.
15255 export_symbols_cmds=$lt_export_symbols_cmds_CXX
15256
15257 # The commands to extract the exported symbol list from a shared archive.
15258 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15259
15260 # Symbols that should not be listed in the preloaded symbols.
15261 exclude_expsyms=$lt_exclude_expsyms_CXX
15262
15263 # Symbols that must always be exported.
15264 include_expsyms=$lt_include_expsyms_CXX
15265
15266 # ### END LIBTOOL TAG CONFIG: $tagname
15267
15268 __EOF__
15269
15270
15271 else
15272   # If there is no Makefile yet, we rely on a make rule to execute
15273   # `config.status --recheck' to rerun these tests and create the
15274   # libtool script then.
15275   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15276   if test -f "$ltmain_in"; then
15277     test -f Makefile && make "$ltmain"
15278   fi
15279 fi
15280
15281
15282 ac_ext=c
15283 ac_cpp='$CPP $CPPFLAGS'
15284 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15285 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15286 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15287
15288 CC=$lt_save_CC
15289 LDCXX=$LD
15290 LD=$lt_save_LD
15291 GCC=$lt_save_GCC
15292 with_gnu_ldcxx=$with_gnu_ld
15293 with_gnu_ld=$lt_save_with_gnu_ld
15294 lt_cv_path_LDCXX=$lt_cv_path_LD
15295 lt_cv_path_LD=$lt_save_path_LD
15296 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15297 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15298
15299         else
15300           tagname=""
15301         fi
15302         ;;
15303
15304       F77)
15305         if test -n "$F77" && test "X$F77" != "Xno"; then
15306           
15307 ac_ext=f
15308 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15309 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15310 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
15311
15312
15313 archive_cmds_need_lc_F77=no
15314 allow_undefined_flag_F77=
15315 always_export_symbols_F77=no
15316 archive_expsym_cmds_F77=
15317 export_dynamic_flag_spec_F77=
15318 hardcode_direct_F77=no
15319 hardcode_libdir_flag_spec_F77=
15320 hardcode_libdir_flag_spec_ld_F77=
15321 hardcode_libdir_separator_F77=
15322 hardcode_minus_L_F77=no
15323 hardcode_automatic_F77=no
15324 module_cmds_F77=
15325 module_expsym_cmds_F77=
15326 link_all_deplibs_F77=unknown
15327 old_archive_cmds_F77=$old_archive_cmds
15328 no_undefined_flag_F77=
15329 whole_archive_flag_spec_F77=
15330 enable_shared_with_static_runtimes_F77=no
15331
15332 # Source file extension for f77 test sources.
15333 ac_ext=f
15334
15335 # Object file extension for compiled f77 test sources.
15336 objext=o
15337 objext_F77=$objext
15338
15339 # Code to be used in simple compile tests
15340 lt_simple_compile_test_code="\
15341       subroutine t
15342       return
15343       end
15344 "
15345
15346 # Code to be used in simple link tests
15347 lt_simple_link_test_code="\
15348       program t
15349       end
15350 "
15351
15352 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15353
15354 # If no C compiler was specified, use CC.
15355 LTCC=${LTCC-"$CC"}
15356
15357 # If no C compiler flags were specified, use CFLAGS.
15358 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15359
15360 # Allow CC to be a program name with arguments.
15361 compiler=$CC
15362
15363
15364 # save warnings/boilerplate of simple test code
15365 ac_outfile=conftest.$ac_objext
15366 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15367 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15368 _lt_compiler_boilerplate=`cat conftest.err`
15369 $rm conftest*
15370
15371 ac_outfile=conftest.$ac_objext
15372 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15373 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15374 _lt_linker_boilerplate=`cat conftest.err`
15375 $rm conftest*
15376
15377
15378 # Allow CC to be a program name with arguments.
15379 lt_save_CC="$CC"
15380 CC=${F77-"f77"}
15381 compiler=$CC
15382 compiler_F77=$CC
15383 for cc_temp in $compiler""; do
15384   case $cc_temp in
15385     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15386     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15387     \-*) ;;
15388     *) break;;
15389   esac
15390 done
15391 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15392
15393
15394 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15395 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
15396 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
15397 echo "${ECHO_T}$can_build_shared" >&6; }
15398
15399 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15400 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
15401 test "$can_build_shared" = "no" && enable_shared=no
15402
15403 # On AIX, shared libraries and static libraries use the same namespace, and
15404 # are all built from PIC.
15405 case $host_os in
15406 aix3*)
15407   test "$enable_shared" = yes && enable_static=no
15408   if test -n "$RANLIB"; then
15409     archive_cmds="$archive_cmds~\$RANLIB \$lib"
15410     postinstall_cmds='$RANLIB $lib'
15411   fi
15412   ;;
15413 aix4* | aix5*)
15414   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15415     test "$enable_shared" = yes && enable_static=no
15416   fi
15417   ;;
15418 esac
15419 { echo "$as_me:$LINENO: result: $enable_shared" >&5
15420 echo "${ECHO_T}$enable_shared" >&6; }
15421
15422 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15423 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
15424 # Make sure either enable_shared or enable_static is yes.
15425 test "$enable_shared" = yes || enable_static=yes
15426 { echo "$as_me:$LINENO: result: $enable_static" >&5
15427 echo "${ECHO_T}$enable_static" >&6; }
15428
15429 GCC_F77="$G77"
15430 LD_F77="$LD"
15431
15432 lt_prog_compiler_wl_F77=
15433 lt_prog_compiler_pic_F77=
15434 lt_prog_compiler_static_F77=
15435
15436 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15437 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
15438  
15439   if test "$GCC" = yes; then
15440     lt_prog_compiler_wl_F77='-Wl,'
15441     lt_prog_compiler_static_F77='-static'
15442
15443     case $host_os in
15444       aix*)
15445       # All AIX code is PIC.
15446       if test "$host_cpu" = ia64; then
15447         # AIX 5 now supports IA64 processor
15448         lt_prog_compiler_static_F77='-Bstatic'
15449       fi
15450       ;;
15451
15452     amigaos*)
15453       # FIXME: we need at least 68020 code to build shared libraries, but
15454       # adding the `-m68020' flag to GCC prevents building anything better,
15455       # like `-m68040'.
15456       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
15457       ;;
15458
15459     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15460       # PIC is the default for these OSes.
15461       ;;
15462
15463     mingw* | cygwin* | pw32* | os2*)
15464       # This hack is so that the source file can tell whether it is being
15465       # built for inclusion in a dll (and should export symbols for example).
15466       # Although the cygwin gcc ignores -fPIC, still need this for old-style
15467       # (--disable-auto-import) libraries
15468       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15469       ;;
15470
15471     darwin* | rhapsody*)
15472       # PIC is the default on this platform
15473       # Common symbols not allowed in MH_DYLIB files
15474       lt_prog_compiler_pic_F77='-fno-common'
15475       ;;
15476
15477     interix[3-9]*)
15478       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15479       # Instead, we relocate shared libraries at runtime.
15480       ;;
15481
15482     msdosdjgpp*)
15483       # Just because we use GCC doesn't mean we suddenly get shared libraries
15484       # on systems that don't support them.
15485       lt_prog_compiler_can_build_shared_F77=no
15486       enable_shared=no
15487       ;;
15488
15489     sysv4*MP*)
15490       if test -d /usr/nec; then
15491         lt_prog_compiler_pic_F77=-Kconform_pic
15492       fi
15493       ;;
15494
15495     hpux*)
15496       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15497       # not for PA HP-UX.
15498       case $host_cpu in
15499       hppa*64*|ia64*)
15500         # +Z the default
15501         ;;
15502       *)
15503         lt_prog_compiler_pic_F77='-fPIC'
15504         ;;
15505       esac
15506       ;;
15507
15508     *)
15509       lt_prog_compiler_pic_F77='-fPIC'
15510       ;;
15511     esac
15512   else
15513     # PORTME Check for flag to pass linker flags through the system compiler.
15514     case $host_os in
15515     aix*)
15516       lt_prog_compiler_wl_F77='-Wl,'
15517       if test "$host_cpu" = ia64; then
15518         # AIX 5 now supports IA64 processor
15519         lt_prog_compiler_static_F77='-Bstatic'
15520       else
15521         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15522       fi
15523       ;;
15524       darwin*)
15525         # PIC is the default on this platform
15526         # Common symbols not allowed in MH_DYLIB files
15527        case $cc_basename in
15528          xlc*)
15529          lt_prog_compiler_pic_F77='-qnocommon'
15530          lt_prog_compiler_wl_F77='-Wl,'
15531          ;;
15532        esac
15533        ;;
15534
15535     mingw* | cygwin* | pw32* | os2*)
15536       # This hack is so that the source file can tell whether it is being
15537       # built for inclusion in a dll (and should export symbols for example).
15538       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15539       ;;
15540
15541     hpux9* | hpux10* | hpux11*)
15542       lt_prog_compiler_wl_F77='-Wl,'
15543       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15544       # not for PA HP-UX.
15545       case $host_cpu in
15546       hppa*64*|ia64*)
15547         # +Z the default
15548         ;;
15549       *)
15550         lt_prog_compiler_pic_F77='+Z'
15551         ;;
15552       esac
15553       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15554       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15555       ;;
15556
15557     irix5* | irix6* | nonstopux*)
15558       lt_prog_compiler_wl_F77='-Wl,'
15559       # PIC (with -KPIC) is the default.
15560       lt_prog_compiler_static_F77='-non_shared'
15561       ;;
15562
15563     newsos6)
15564       lt_prog_compiler_pic_F77='-KPIC'
15565       lt_prog_compiler_static_F77='-Bstatic'
15566       ;;
15567
15568     linux* | k*bsd*-gnu)
15569       case $cc_basename in
15570       icc* | ecc*)
15571         lt_prog_compiler_wl_F77='-Wl,'
15572         lt_prog_compiler_pic_F77='-KPIC'
15573         lt_prog_compiler_static_F77='-static'
15574         ;;
15575       pgcc* | pgf77* | pgf90* | pgf95*)
15576         # Portland Group compilers (*not* the Pentium gcc compiler,
15577         # which looks to be a dead project)
15578         lt_prog_compiler_wl_F77='-Wl,'
15579         lt_prog_compiler_pic_F77='-fpic'
15580         lt_prog_compiler_static_F77='-Bstatic'
15581         ;;
15582       ccc*)
15583         lt_prog_compiler_wl_F77='-Wl,'
15584         # All Alpha code is PIC.
15585         lt_prog_compiler_static_F77='-non_shared'
15586         ;;
15587       *)
15588         case `$CC -V 2>&1 | sed 5q` in
15589         *Sun\ C*)
15590           # Sun C 5.9
15591           lt_prog_compiler_pic_F77='-KPIC'
15592           lt_prog_compiler_static_F77='-Bstatic'
15593           lt_prog_compiler_wl_F77='-Wl,'
15594           ;;
15595         *Sun\ F*)
15596           # Sun Fortran 8.3 passes all unrecognized flags to the linker
15597           lt_prog_compiler_pic_F77='-KPIC'
15598           lt_prog_compiler_static_F77='-Bstatic'
15599           lt_prog_compiler_wl_F77=''
15600           ;;
15601         esac
15602         ;;
15603       esac
15604       ;;
15605
15606     osf3* | osf4* | osf5*)
15607       lt_prog_compiler_wl_F77='-Wl,'
15608       # All OSF/1 code is PIC.
15609       lt_prog_compiler_static_F77='-non_shared'
15610       ;;
15611
15612     rdos*)
15613       lt_prog_compiler_static_F77='-non_shared'
15614       ;;
15615
15616     solaris*)
15617       lt_prog_compiler_pic_F77='-KPIC'
15618       lt_prog_compiler_static_F77='-Bstatic'
15619       case $cc_basename in
15620       f77* | f90* | f95*)
15621         lt_prog_compiler_wl_F77='-Qoption ld ';;
15622       *)
15623         lt_prog_compiler_wl_F77='-Wl,';;
15624       esac
15625       ;;
15626
15627     sunos4*)
15628       lt_prog_compiler_wl_F77='-Qoption ld '
15629       lt_prog_compiler_pic_F77='-PIC'
15630       lt_prog_compiler_static_F77='-Bstatic'
15631       ;;
15632
15633     sysv4 | sysv4.2uw2* | sysv4.3*)
15634       lt_prog_compiler_wl_F77='-Wl,'
15635       lt_prog_compiler_pic_F77='-KPIC'
15636       lt_prog_compiler_static_F77='-Bstatic'
15637       ;;
15638
15639     sysv4*MP*)
15640       if test -d /usr/nec ;then
15641         lt_prog_compiler_pic_F77='-Kconform_pic'
15642         lt_prog_compiler_static_F77='-Bstatic'
15643       fi
15644       ;;
15645
15646     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15647       lt_prog_compiler_wl_F77='-Wl,'
15648       lt_prog_compiler_pic_F77='-KPIC'
15649       lt_prog_compiler_static_F77='-Bstatic'
15650       ;;
15651
15652     unicos*)
15653       lt_prog_compiler_wl_F77='-Wl,'
15654       lt_prog_compiler_can_build_shared_F77=no
15655       ;;
15656
15657     uts4*)
15658       lt_prog_compiler_pic_F77='-pic'
15659       lt_prog_compiler_static_F77='-Bstatic'
15660       ;;
15661
15662     *)
15663       lt_prog_compiler_can_build_shared_F77=no
15664       ;;
15665     esac
15666   fi
15667
15668 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15669 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
15670
15671 #
15672 # Check to make sure the PIC flag actually works.
15673 #
15674 if test -n "$lt_prog_compiler_pic_F77"; then
15675   
15676 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15677 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
15678 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15679   echo $ECHO_N "(cached) $ECHO_C" >&6
15680 else
15681   lt_prog_compiler_pic_works_F77=no
15682   ac_outfile=conftest.$ac_objext
15683    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15684    lt_compiler_flag="$lt_prog_compiler_pic_F77"
15685    # Insert the option either (1) after the last *FLAGS variable, or
15686    # (2) before a word containing "conftest.", or (3) at the end.
15687    # Note that $ac_compile itself does not contain backslashes and begins
15688    # with a dollar sign (not a hyphen), so the echo should work correctly.
15689    # The option is referenced via a variable to avoid confusing sed.
15690    lt_compile=`echo "$ac_compile" | $SED \
15691    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15692    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15693    -e 's:$: $lt_compiler_flag:'`
15694    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
15695    (eval "$lt_compile" 2>conftest.err)
15696    ac_status=$?
15697    cat conftest.err >&5
15698    echo "$as_me:__oline__: \$? = $ac_status" >&5
15699    if (exit $ac_status) && test -s "$ac_outfile"; then
15700      # The compiler can only warn and ignore the option if not recognized
15701      # So say no if there are warnings other than the usual output.
15702      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15703      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15704      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15705        lt_prog_compiler_pic_works_F77=yes
15706      fi
15707    fi
15708    $rm conftest*
15709
15710 fi
15711 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15712 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
15713
15714 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
15715     case $lt_prog_compiler_pic_F77 in
15716      "" | " "*) ;;
15717      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15718      esac
15719 else
15720     lt_prog_compiler_pic_F77=
15721      lt_prog_compiler_can_build_shared_F77=no
15722 fi
15723
15724 fi
15725 case $host_os in
15726   # For platforms which do not support PIC, -DPIC is meaningless:
15727   *djgpp*)
15728     lt_prog_compiler_pic_F77=
15729     ;;
15730   *)
15731     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15732     ;;
15733 esac
15734
15735 #
15736 # Check to make sure the static flag actually works.
15737 #
15738 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
15739 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15740 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15741 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
15742   echo $ECHO_N "(cached) $ECHO_C" >&6
15743 else
15744   lt_prog_compiler_static_works_F77=no
15745    save_LDFLAGS="$LDFLAGS"
15746    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15747    echo "$lt_simple_link_test_code" > conftest.$ac_ext
15748    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15749      # The linker can only warn and ignore the option if not recognized
15750      # So say no if there are warnings
15751      if test -s conftest.err; then
15752        # Append any errors to the config.log.
15753        cat conftest.err 1>&5
15754        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15755        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15756        if diff conftest.exp conftest.er2 >/dev/null; then
15757          lt_prog_compiler_static_works_F77=yes
15758        fi
15759      else
15760        lt_prog_compiler_static_works_F77=yes
15761      fi
15762    fi
15763    $rm conftest*
15764    LDFLAGS="$save_LDFLAGS"
15765
15766 fi
15767 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
15768 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
15769
15770 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
15771     :
15772 else
15773     lt_prog_compiler_static_F77=
15774 fi
15775
15776
15777 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15778 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15779 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15780   echo $ECHO_N "(cached) $ECHO_C" >&6
15781 else
15782   lt_cv_prog_compiler_c_o_F77=no
15783    $rm -r conftest 2>/dev/null
15784    mkdir conftest
15785    cd conftest
15786    mkdir out
15787    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15788
15789    lt_compiler_flag="-o out/conftest2.$ac_objext"
15790    # Insert the option either (1) after the last *FLAGS variable, or
15791    # (2) before a word containing "conftest.", or (3) at the end.
15792    # Note that $ac_compile itself does not contain backslashes and begins
15793    # with a dollar sign (not a hyphen), so the echo should work correctly.
15794    lt_compile=`echo "$ac_compile" | $SED \
15795    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15796    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15797    -e 's:$: $lt_compiler_flag:'`
15798    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
15799    (eval "$lt_compile" 2>out/conftest.err)
15800    ac_status=$?
15801    cat out/conftest.err >&5
15802    echo "$as_me:__oline__: \$? = $ac_status" >&5
15803    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15804    then
15805      # The compiler can only warn and ignore the option if not recognized
15806      # So say no if there are warnings
15807      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15808      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15809      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15810        lt_cv_prog_compiler_c_o_F77=yes
15811      fi
15812    fi
15813    chmod u+w . 2>&5
15814    $rm conftest*
15815    # SGI C++ compiler will create directory out/ii_files/ for
15816    # template instantiation
15817    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15818    $rm out/* && rmdir out
15819    cd ..
15820    rmdir conftest
15821    $rm conftest*
15822
15823 fi
15824 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15825 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
15826
15827
15828 hard_links="nottested"
15829 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15830   # do not overwrite the value of need_locks provided by the user
15831   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15832 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15833   hard_links=yes
15834   $rm conftest*
15835   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15836   touch conftest.a
15837   ln conftest.a conftest.b 2>&5 || hard_links=no
15838   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15839   { echo "$as_me:$LINENO: result: $hard_links" >&5
15840 echo "${ECHO_T}$hard_links" >&6; }
15841   if test "$hard_links" = no; then
15842     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15843 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15844     need_locks=warn
15845   fi
15846 else
15847   need_locks=no
15848 fi
15849
15850 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15851 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15852
15853   runpath_var=
15854   allow_undefined_flag_F77=
15855   enable_shared_with_static_runtimes_F77=no
15856   archive_cmds_F77=
15857   archive_expsym_cmds_F77=
15858   old_archive_From_new_cmds_F77=
15859   old_archive_from_expsyms_cmds_F77=
15860   export_dynamic_flag_spec_F77=
15861   whole_archive_flag_spec_F77=
15862   thread_safe_flag_spec_F77=
15863   hardcode_libdir_flag_spec_F77=
15864   hardcode_libdir_flag_spec_ld_F77=
15865   hardcode_libdir_separator_F77=
15866   hardcode_direct_F77=no
15867   hardcode_minus_L_F77=no
15868   hardcode_shlibpath_var_F77=unsupported
15869   link_all_deplibs_F77=unknown
15870   hardcode_automatic_F77=no
15871   module_cmds_F77=
15872   module_expsym_cmds_F77=
15873   always_export_symbols_F77=no
15874   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15875   # include_expsyms should be a list of space-separated symbols to be *always*
15876   # included in the symbol list
15877   include_expsyms_F77=
15878   # exclude_expsyms can be an extended regexp of symbols to exclude
15879   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15880   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15881   # as well as any symbol that contains `d'.
15882   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15883   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15884   # platforms (ab)use it in PIC code, but their linkers get confused if
15885   # the symbol is explicitly referenced.  Since portable code cannot
15886   # rely on this symbol name, it's probably fine to never include it in
15887   # preloaded symbol tables.
15888   extract_expsyms_cmds=
15889   # Just being paranoid about ensuring that cc_basename is set.
15890   for cc_temp in $compiler""; do
15891   case $cc_temp in
15892     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15893     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15894     \-*) ;;
15895     *) break;;
15896   esac
15897 done
15898 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15899
15900   case $host_os in
15901   cygwin* | mingw* | pw32*)
15902     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15903     # When not using gcc, we currently assume that we are using
15904     # Microsoft Visual C++.
15905     if test "$GCC" != yes; then
15906       with_gnu_ld=no
15907     fi
15908     ;;
15909   interix*)
15910     # we just hope/assume this is gcc and not c89 (= MSVC++)
15911     with_gnu_ld=yes
15912     ;;
15913   openbsd*)
15914     with_gnu_ld=no
15915     ;;
15916   esac
15917
15918   ld_shlibs_F77=yes
15919   if test "$with_gnu_ld" = yes; then
15920     # If archive_cmds runs LD, not CC, wlarc should be empty
15921     wlarc='${wl}'
15922
15923     # Set some defaults for GNU ld with shared library support. These
15924     # are reset later if shared libraries are not supported. Putting them
15925     # here allows them to be overridden if necessary.
15926     runpath_var=LD_RUN_PATH
15927     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15928     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15929     # ancient GNU ld didn't support --whole-archive et. al.
15930     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15931         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15932       else
15933         whole_archive_flag_spec_F77=
15934     fi
15935     supports_anon_versioning=no
15936     case `$LD -v 2>/dev/null` in
15937       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15938       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15939       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15940       *\ 2.11.*) ;; # other 2.11 versions
15941       *) supports_anon_versioning=yes ;;
15942     esac
15943
15944     # See if GNU ld supports shared libraries.
15945     case $host_os in
15946     aix3* | aix4* | aix5*)
15947       # On AIX/PPC, the GNU linker is very broken
15948       if test "$host_cpu" != ia64; then
15949         ld_shlibs_F77=no
15950         cat <<EOF 1>&2
15951
15952 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15953 *** to be unable to reliably create shared libraries on AIX.
15954 *** Therefore, libtool is disabling shared libraries support.  If you
15955 *** really care for shared libraries, you may want to modify your PATH
15956 *** so that a non-GNU linker is found, and then restart.
15957
15958 EOF
15959       fi
15960       ;;
15961
15962     amigaos*)
15963       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)'
15964       hardcode_libdir_flag_spec_F77='-L$libdir'
15965       hardcode_minus_L_F77=yes
15966
15967       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15968       # that the semantics of dynamic libraries on AmigaOS, at least up
15969       # to version 4, is to share data among multiple programs linked
15970       # with the same dynamic library.  Since this doesn't match the
15971       # behavior of shared libraries on other platforms, we can't use
15972       # them.
15973       ld_shlibs_F77=no
15974       ;;
15975
15976     beos*)
15977       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15978         allow_undefined_flag_F77=unsupported
15979         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15980         # support --undefined.  This deserves some investigation.  FIXME
15981         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15982       else
15983         ld_shlibs_F77=no
15984       fi
15985       ;;
15986
15987     cygwin* | mingw* | pw32*)
15988       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15989       # as there is no search path for DLLs.
15990       hardcode_libdir_flag_spec_F77='-L$libdir'
15991       allow_undefined_flag_F77=unsupported
15992       always_export_symbols_F77=no
15993       enable_shared_with_static_runtimes_F77=yes
15994       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15995
15996       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15997         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15998         # If the export-symbols file already is a .def file (1st line
15999         # is EXPORTS), use it as is; otherwise, prepend...
16000         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16001           cp $export_symbols $output_objdir/$soname.def;
16002         else
16003           echo EXPORTS > $output_objdir/$soname.def;
16004           cat $export_symbols >> $output_objdir/$soname.def;
16005         fi~
16006         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16007       else
16008         ld_shlibs_F77=no
16009       fi
16010       ;;
16011
16012     interix[3-9]*)
16013       hardcode_direct_F77=no
16014       hardcode_shlibpath_var_F77=no
16015       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16016       export_dynamic_flag_spec_F77='${wl}-E'
16017       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16018       # Instead, shared libraries are loaded at an image base (0x10000000 by
16019       # default) and relocated if they conflict, which is a slow very memory
16020       # consuming and fragmenting process.  To avoid this, we pick a random,
16021       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16022       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16023       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'
16024       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'
16025       ;;
16026
16027     gnu* | linux* | k*bsd*-gnu)
16028       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16029         tmp_addflag=
16030         case $cc_basename,$host_cpu in
16031         pgcc*)                          # Portland Group C compiler
16032           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'
16033           tmp_addflag=' $pic_flag'
16034           ;;
16035         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
16036           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'
16037           tmp_addflag=' $pic_flag -Mnomain' ;;
16038         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
16039           tmp_addflag=' -i_dynamic' ;;
16040         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
16041           tmp_addflag=' -i_dynamic -nofor_main' ;;
16042         ifc* | ifort*)                  # Intel Fortran compiler
16043           tmp_addflag=' -nofor_main' ;;
16044         esac
16045         case `$CC -V 2>&1 | sed 5q` in
16046         *Sun\ C*)                       # Sun C 5.9
16047           whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16048           tmp_sharedflag='-G' ;;
16049         *Sun\ F*)                       # Sun Fortran 8.3
16050           tmp_sharedflag='-G' ;;
16051         *)
16052           tmp_sharedflag='-shared' ;;
16053         esac
16054         archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16055
16056         if test $supports_anon_versioning = yes; then
16057           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
16058   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16059   $echo "local: *; };" >> $output_objdir/$libname.ver~
16060           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16061         fi
16062         link_all_deplibs_F77=no
16063       else
16064         ld_shlibs_F77=no
16065       fi
16066       ;;
16067
16068     netbsd* | netbsdelf*-gnu)
16069       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16070         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16071         wlarc=
16072       else
16073         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16074         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16075       fi
16076       ;;
16077
16078     solaris*)
16079       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16080         ld_shlibs_F77=no
16081         cat <<EOF 1>&2
16082
16083 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16084 *** create shared libraries on Solaris systems.  Therefore, libtool
16085 *** is disabling shared libraries support.  We urge you to upgrade GNU
16086 *** binutils to release 2.9.1 or newer.  Another option is to modify
16087 *** your PATH or compiler configuration so that the native linker is
16088 *** used, and then restart.
16089
16090 EOF
16091       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16092         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16093         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16094       else
16095         ld_shlibs_F77=no
16096       fi
16097       ;;
16098
16099     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16100       case `$LD -v 2>&1` in
16101         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16102         ld_shlibs_F77=no
16103         cat <<_LT_EOF 1>&2
16104
16105 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16106 *** reliably create shared libraries on SCO systems.  Therefore, libtool
16107 *** is disabling shared libraries support.  We urge you to upgrade GNU
16108 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16109 *** your PATH or compiler configuration so that the native linker is
16110 *** used, and then restart.
16111
16112 _LT_EOF
16113         ;;
16114         *)
16115           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16116             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16117             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16118             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16119           else
16120             ld_shlibs_F77=no
16121           fi
16122         ;;
16123       esac
16124       ;;
16125
16126     sunos4*)
16127       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16128       wlarc=
16129       hardcode_direct_F77=yes
16130       hardcode_shlibpath_var_F77=no
16131       ;;
16132
16133     *)
16134       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16135         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16136         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16137       else
16138         ld_shlibs_F77=no
16139       fi
16140       ;;
16141     esac
16142
16143     if test "$ld_shlibs_F77" = no; then
16144       runpath_var=
16145       hardcode_libdir_flag_spec_F77=
16146       export_dynamic_flag_spec_F77=
16147       whole_archive_flag_spec_F77=
16148     fi
16149   else
16150     # PORTME fill in a description of your system's linker (not GNU ld)
16151     case $host_os in
16152     aix3*)
16153       allow_undefined_flag_F77=unsupported
16154       always_export_symbols_F77=yes
16155       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'
16156       # Note: this linker hardcodes the directories in LIBPATH if there
16157       # are no directories specified by -L.
16158       hardcode_minus_L_F77=yes
16159       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16160         # Neither direct hardcoding nor static linking is supported with a
16161         # broken collect2.
16162         hardcode_direct_F77=unsupported
16163       fi
16164       ;;
16165
16166     aix4* | aix5*)
16167       if test "$host_cpu" = ia64; then
16168         # On IA64, the linker does run time linking by default, so we don't
16169         # have to do anything special.
16170         aix_use_runtimelinking=no
16171         exp_sym_flag='-Bexport'
16172         no_entry_flag=""
16173       else
16174         # If we're using GNU nm, then we don't want the "-C" option.
16175         # -C means demangle to AIX nm, but means don't demangle with GNU nm
16176         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16177           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'
16178         else
16179           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'
16180         fi
16181         aix_use_runtimelinking=no
16182
16183         # Test if we are trying to use run time linking or normal
16184         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16185         # need to do runtime linking.
16186         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16187           for ld_flag in $LDFLAGS; do
16188           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16189             aix_use_runtimelinking=yes
16190             break
16191           fi
16192           done
16193           ;;
16194         esac
16195
16196         exp_sym_flag='-bexport'
16197         no_entry_flag='-bnoentry'
16198       fi
16199
16200       # When large executables or shared objects are built, AIX ld can
16201       # have problems creating the table of contents.  If linking a library
16202       # or program results in "error TOC overflow" add -mminimal-toc to
16203       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16204       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16205
16206       archive_cmds_F77=''
16207       hardcode_direct_F77=yes
16208       hardcode_libdir_separator_F77=':'
16209       link_all_deplibs_F77=yes
16210
16211       if test "$GCC" = yes; then
16212         case $host_os in aix4.[012]|aix4.[012].*)
16213         # We only want to do this on AIX 4.2 and lower, the check
16214         # below for broken collect2 doesn't work under 4.3+
16215           collect2name=`${CC} -print-prog-name=collect2`
16216           if test -f "$collect2name" && \
16217            strings "$collect2name" | grep resolve_lib_name >/dev/null
16218           then
16219           # We have reworked collect2
16220           :
16221           else
16222           # We have old collect2
16223           hardcode_direct_F77=unsupported
16224           # It fails to find uninstalled libraries when the uninstalled
16225           # path is not listed in the libpath.  Setting hardcode_minus_L
16226           # to unsupported forces relinking
16227           hardcode_minus_L_F77=yes
16228           hardcode_libdir_flag_spec_F77='-L$libdir'
16229           hardcode_libdir_separator_F77=
16230           fi
16231           ;;
16232         esac
16233         shared_flag='-shared'
16234         if test "$aix_use_runtimelinking" = yes; then
16235           shared_flag="$shared_flag "'${wl}-G'
16236         fi
16237       else
16238         # not using gcc
16239         if test "$host_cpu" = ia64; then
16240         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16241         # chokes on -Wl,-G. The following line is correct:
16242           shared_flag='-G'
16243         else
16244           if test "$aix_use_runtimelinking" = yes; then
16245             shared_flag='${wl}-G'
16246           else
16247             shared_flag='${wl}-bM:SRE'
16248           fi
16249         fi
16250       fi
16251
16252       # It seems that -bexpall does not export symbols beginning with
16253       # underscore (_), so it is better to generate a list of symbols to export.
16254       always_export_symbols_F77=yes
16255       if test "$aix_use_runtimelinking" = yes; then
16256         # Warning - without using the other runtime loading flags (-brtl),
16257         # -berok will link without error, but may produce a broken library.
16258         allow_undefined_flag_F77='-berok'
16259        # Determine the default libpath from the value encoded in an empty executable.
16260        cat >conftest.$ac_ext <<_ACEOF
16261       program main
16262
16263       end
16264 _ACEOF
16265 rm -f conftest.$ac_objext conftest$ac_exeext
16266 if { (ac_try="$ac_link"
16267 case "(($ac_try" in
16268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16269   *) ac_try_echo=$ac_try;;
16270 esac
16271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16272   (eval "$ac_link") 2>conftest.er1
16273   ac_status=$?
16274   grep -v '^ *+' conftest.er1 >conftest.err
16275   rm -f conftest.er1
16276   cat conftest.err >&5
16277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16278   (exit $ac_status); } && {
16279          test -z "$ac_f77_werror_flag" ||
16280          test ! -s conftest.err
16281        } && test -s conftest$ac_exeext &&
16282        $as_test_x conftest$ac_exeext; then
16283   
16284 lt_aix_libpath_sed='
16285     /Import File Strings/,/^$/ {
16286         /^0/ {
16287             s/^0  *\(.*\)$/\1/
16288             p
16289         }
16290     }'
16291 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16292 # Check for a 64-bit object if we didn't find anything.
16293 if test -z "$aix_libpath"; then
16294   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16295 fi
16296 else
16297   echo "$as_me: failed program was:" >&5
16298 sed 's/^/| /' conftest.$ac_ext >&5
16299
16300         
16301 fi
16302
16303 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16304       conftest$ac_exeext conftest.$ac_ext
16305 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16306
16307        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16308         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"
16309        else
16310         if test "$host_cpu" = ia64; then
16311           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
16312           allow_undefined_flag_F77="-z nodefs"
16313           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"
16314         else
16315          # Determine the default libpath from the value encoded in an empty executable.
16316          cat >conftest.$ac_ext <<_ACEOF
16317       program main
16318
16319       end
16320 _ACEOF
16321 rm -f conftest.$ac_objext conftest$ac_exeext
16322 if { (ac_try="$ac_link"
16323 case "(($ac_try" in
16324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16325   *) ac_try_echo=$ac_try;;
16326 esac
16327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16328   (eval "$ac_link") 2>conftest.er1
16329   ac_status=$?
16330   grep -v '^ *+' conftest.er1 >conftest.err
16331   rm -f conftest.er1
16332   cat conftest.err >&5
16333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16334   (exit $ac_status); } && {
16335          test -z "$ac_f77_werror_flag" ||
16336          test ! -s conftest.err
16337        } && test -s conftest$ac_exeext &&
16338        $as_test_x conftest$ac_exeext; then
16339   
16340 lt_aix_libpath_sed='
16341     /Import File Strings/,/^$/ {
16342         /^0/ {
16343             s/^0  *\(.*\)$/\1/
16344             p
16345         }
16346     }'
16347 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16348 # Check for a 64-bit object if we didn't find anything.
16349 if test -z "$aix_libpath"; then
16350   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16351 fi
16352 else
16353   echo "$as_me: failed program was:" >&5
16354 sed 's/^/| /' conftest.$ac_ext >&5
16355
16356         
16357 fi
16358
16359 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16360       conftest$ac_exeext conftest.$ac_ext
16361 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16362
16363          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16364           # Warning - without using the other run time loading flags,
16365           # -berok will link without error, but may produce a broken library.
16366           no_undefined_flag_F77=' ${wl}-bernotok'
16367           allow_undefined_flag_F77=' ${wl}-berok'
16368           # Exported symbols can be pulled into shared objects from archives
16369           whole_archive_flag_spec_F77='$convenience'
16370           archive_cmds_need_lc_F77=yes
16371           # This is similar to how AIX traditionally builds its shared libraries.
16372           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'
16373         fi
16374       fi
16375       ;;
16376
16377     amigaos*)
16378       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)'
16379       hardcode_libdir_flag_spec_F77='-L$libdir'
16380       hardcode_minus_L_F77=yes
16381       # see comment about different semantics on the GNU ld section
16382       ld_shlibs_F77=no
16383       ;;
16384
16385     bsdi[45]*)
16386       export_dynamic_flag_spec_F77=-rdynamic
16387       ;;
16388
16389     cygwin* | mingw* | pw32*)
16390       # When not using gcc, we currently assume that we are using
16391       # Microsoft Visual C++.
16392       # hardcode_libdir_flag_spec is actually meaningless, as there is
16393       # no search path for DLLs.
16394       hardcode_libdir_flag_spec_F77=' '
16395       allow_undefined_flag_F77=unsupported
16396       # Tell ltmain to make .lib files, not .a files.
16397       libext=lib
16398       # Tell ltmain to make .dll files, not .so files.
16399       shrext_cmds=".dll"
16400       # FIXME: Setting linknames here is a bad hack.
16401       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16402       # The linker will automatically build a .lib file if we build a DLL.
16403       old_archive_From_new_cmds_F77='true'
16404       # FIXME: Should let the user specify the lib program.
16405       old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
16406       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
16407       enable_shared_with_static_runtimes_F77=yes
16408       ;;
16409
16410     darwin* | rhapsody*)
16411       case $host_os in
16412         rhapsody* | darwin1.[012])
16413          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
16414          ;;
16415        *) # Darwin 1.3 on
16416          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16417            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16418          else
16419            case ${MACOSX_DEPLOYMENT_TARGET} in
16420              10.[012])
16421                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16422                ;;
16423              10.*)
16424                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
16425                ;;
16426            esac
16427          fi
16428          ;;
16429       esac
16430       archive_cmds_need_lc_F77=no
16431       hardcode_direct_F77=no
16432       hardcode_automatic_F77=yes
16433       hardcode_shlibpath_var_F77=unsupported
16434       whole_archive_flag_spec_F77=''
16435       link_all_deplibs_F77=yes
16436     if test "$GCC" = yes ; then
16437         output_verbose_link_cmd='echo'
16438         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16439       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16440       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16441       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}'
16442       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}'
16443     else
16444       case $cc_basename in
16445         xlc*)
16446          output_verbose_link_cmd='echo'
16447          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
16448          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16449           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16450          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16451           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}'
16452           ;;
16453        *)
16454          ld_shlibs_F77=no
16455           ;;
16456       esac
16457     fi
16458       ;;
16459
16460     dgux*)
16461       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16462       hardcode_libdir_flag_spec_F77='-L$libdir'
16463       hardcode_shlibpath_var_F77=no
16464       ;;
16465
16466     freebsd1*)
16467       ld_shlibs_F77=no
16468       ;;
16469
16470     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16471     # support.  Future versions do this automatically, but an explicit c++rt0.o
16472     # does not break anything, and helps significantly (at the cost of a little
16473     # extra space).
16474     freebsd2.2*)
16475       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16476       hardcode_libdir_flag_spec_F77='-R$libdir'
16477       hardcode_direct_F77=yes
16478       hardcode_shlibpath_var_F77=no
16479       ;;
16480
16481     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16482     freebsd2*)
16483       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16484       hardcode_direct_F77=yes
16485       hardcode_minus_L_F77=yes
16486       hardcode_shlibpath_var_F77=no
16487       ;;
16488
16489     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16490     freebsd* | dragonfly*)
16491       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16492       hardcode_libdir_flag_spec_F77='-R$libdir'
16493       hardcode_direct_F77=yes
16494       hardcode_shlibpath_var_F77=no
16495       ;;
16496
16497     hpux9*)
16498       if test "$GCC" = yes; then
16499         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'
16500       else
16501         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'
16502       fi
16503       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16504       hardcode_libdir_separator_F77=:
16505       hardcode_direct_F77=yes
16506
16507       # hardcode_minus_L: Not really in the search PATH,
16508       # but as the default location of the library.
16509       hardcode_minus_L_F77=yes
16510       export_dynamic_flag_spec_F77='${wl}-E'
16511       ;;
16512
16513     hpux10*)
16514       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16515         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16516       else
16517         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16518       fi
16519       if test "$with_gnu_ld" = no; then
16520         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16521         hardcode_libdir_separator_F77=:
16522
16523         hardcode_direct_F77=yes
16524         export_dynamic_flag_spec_F77='${wl}-E'
16525
16526         # hardcode_minus_L: Not really in the search PATH,
16527         # but as the default location of the library.
16528         hardcode_minus_L_F77=yes
16529       fi
16530       ;;
16531
16532     hpux11*)
16533       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16534         case $host_cpu in
16535         hppa*64*)
16536           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16537           ;;
16538         ia64*)
16539           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16540           ;;
16541         *)
16542           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16543           ;;
16544         esac
16545       else
16546         case $host_cpu in
16547         hppa*64*)
16548           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16549           ;;
16550         ia64*)
16551           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16552           ;;
16553         *)
16554           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16555           ;;
16556         esac
16557       fi
16558       if test "$with_gnu_ld" = no; then
16559         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16560         hardcode_libdir_separator_F77=:
16561
16562         case $host_cpu in
16563         hppa*64*|ia64*)
16564           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16565           hardcode_direct_F77=no
16566           hardcode_shlibpath_var_F77=no
16567           ;;
16568         *)
16569           hardcode_direct_F77=yes
16570           export_dynamic_flag_spec_F77='${wl}-E'
16571
16572           # hardcode_minus_L: Not really in the search PATH,
16573           # but as the default location of the library.
16574           hardcode_minus_L_F77=yes
16575           ;;
16576         esac
16577       fi
16578       ;;
16579
16580     irix5* | irix6* | nonstopux*)
16581       if test "$GCC" = yes; then
16582         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'
16583       else
16584         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'
16585         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
16586       fi
16587       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16588       hardcode_libdir_separator_F77=:
16589       link_all_deplibs_F77=yes
16590       ;;
16591
16592     netbsd* | netbsdelf*-gnu)
16593       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16594         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16595       else
16596         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16597       fi
16598       hardcode_libdir_flag_spec_F77='-R$libdir'
16599       hardcode_direct_F77=yes
16600       hardcode_shlibpath_var_F77=no
16601       ;;
16602
16603     newsos6)
16604       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16605       hardcode_direct_F77=yes
16606       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16607       hardcode_libdir_separator_F77=:
16608       hardcode_shlibpath_var_F77=no
16609       ;;
16610
16611     openbsd*)
16612       if test -f /usr/libexec/ld.so; then
16613         hardcode_direct_F77=yes
16614         hardcode_shlibpath_var_F77=no
16615         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16616           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16617           archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16618           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16619           export_dynamic_flag_spec_F77='${wl}-E'
16620         else
16621           case $host_os in
16622            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16623              archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16624              hardcode_libdir_flag_spec_F77='-R$libdir'
16625              ;;
16626            *)
16627              archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16628              hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16629              ;;
16630           esac
16631         fi
16632       else
16633         ld_shlibs_F77=no
16634       fi
16635       ;;
16636
16637     os2*)
16638       hardcode_libdir_flag_spec_F77='-L$libdir'
16639       hardcode_minus_L_F77=yes
16640       allow_undefined_flag_F77=unsupported
16641       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'
16642       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16643       ;;
16644
16645     osf3*)
16646       if test "$GCC" = yes; then
16647         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16648         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'
16649       else
16650         allow_undefined_flag_F77=' -expect_unresolved \*'
16651         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'
16652       fi
16653       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16654       hardcode_libdir_separator_F77=:
16655       ;;
16656
16657     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16658       if test "$GCC" = yes; then
16659         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16660         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'
16661         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16662       else
16663         allow_undefined_flag_F77=' -expect_unresolved \*'
16664         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'
16665         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~
16666         $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'
16667
16668         # Both c and cxx compiler support -rpath directly
16669         hardcode_libdir_flag_spec_F77='-rpath $libdir'
16670       fi
16671       hardcode_libdir_separator_F77=:
16672       ;;
16673
16674     solaris*)
16675       no_undefined_flag_F77=' -z text'
16676       if test "$GCC" = yes; then
16677         wlarc='${wl}'
16678         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16679         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16680           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16681       else
16682         wlarc=''
16683         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16684         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16685         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16686       fi
16687       hardcode_libdir_flag_spec_F77='-R$libdir'
16688       hardcode_shlibpath_var_F77=no
16689       case $host_os in
16690       solaris2.[0-5] | solaris2.[0-5].*) ;;
16691       *)
16692         # The compiler driver will combine and reorder linker options,
16693         # but understands `-z linker_flag'.  GCC discards it without `$wl',
16694         # but is careful enough not to reorder.
16695         # Supported since Solaris 2.6 (maybe 2.5.1?)
16696         if test "$GCC" = yes; then
16697           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16698         else
16699           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
16700         fi
16701         ;;
16702       esac
16703       link_all_deplibs_F77=yes
16704       ;;
16705
16706     sunos4*)
16707       if test "x$host_vendor" = xsequent; then
16708         # Use $CC to link under sequent, because it throws in some extra .o
16709         # files that make .init and .fini sections work.
16710         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16711       else
16712         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16713       fi
16714       hardcode_libdir_flag_spec_F77='-L$libdir'
16715       hardcode_direct_F77=yes
16716       hardcode_minus_L_F77=yes
16717       hardcode_shlibpath_var_F77=no
16718       ;;
16719
16720     sysv4)
16721       case $host_vendor in
16722         sni)
16723           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16724           hardcode_direct_F77=yes # is this really true???
16725         ;;
16726         siemens)
16727           ## LD is ld it makes a PLAMLIB
16728           ## CC just makes a GrossModule.
16729           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16730           reload_cmds_F77='$CC -r -o $output$reload_objs'
16731           hardcode_direct_F77=no
16732         ;;
16733         motorola)
16734           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16735           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16736         ;;
16737       esac
16738       runpath_var='LD_RUN_PATH'
16739       hardcode_shlibpath_var_F77=no
16740       ;;
16741
16742     sysv4.3*)
16743       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16744       hardcode_shlibpath_var_F77=no
16745       export_dynamic_flag_spec_F77='-Bexport'
16746       ;;
16747
16748     sysv4*MP*)
16749       if test -d /usr/nec; then
16750         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16751         hardcode_shlibpath_var_F77=no
16752         runpath_var=LD_RUN_PATH
16753         hardcode_runpath_var=yes
16754         ld_shlibs_F77=yes
16755       fi
16756       ;;
16757
16758     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16759       no_undefined_flag_F77='${wl}-z,text'
16760       archive_cmds_need_lc_F77=no
16761       hardcode_shlibpath_var_F77=no
16762       runpath_var='LD_RUN_PATH'
16763
16764       if test "$GCC" = yes; then
16765         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16766         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16767       else
16768         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16769         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16770       fi
16771       ;;
16772
16773     sysv5* | sco3.2v5* | sco5v6*)
16774       # Note: We can NOT use -z defs as we might desire, because we do not
16775       # link with -lc, and that would cause any symbols used from libc to
16776       # always be unresolved, which means just about no library would
16777       # ever link correctly.  If we're not using GNU ld we use -z text
16778       # though, which does catch some bad symbols but isn't as heavy-handed
16779       # as -z defs.
16780       no_undefined_flag_F77='${wl}-z,text'
16781       allow_undefined_flag_F77='${wl}-z,nodefs'
16782       archive_cmds_need_lc_F77=no
16783       hardcode_shlibpath_var_F77=no
16784       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16785       hardcode_libdir_separator_F77=':'
16786       link_all_deplibs_F77=yes
16787       export_dynamic_flag_spec_F77='${wl}-Bexport'
16788       runpath_var='LD_RUN_PATH'
16789
16790       if test "$GCC" = yes; then
16791         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16792         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16793       else
16794         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16795         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16796       fi
16797       ;;
16798
16799     uts4*)
16800       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16801       hardcode_libdir_flag_spec_F77='-L$libdir'
16802       hardcode_shlibpath_var_F77=no
16803       ;;
16804
16805     *)
16806       ld_shlibs_F77=no
16807       ;;
16808     esac
16809   fi
16810
16811 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16812 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
16813 test "$ld_shlibs_F77" = no && can_build_shared=no
16814
16815 #
16816 # Do we need to explicitly link libc?
16817 #
16818 case "x$archive_cmds_need_lc_F77" in
16819 x|xyes)
16820   # Assume -lc should be added
16821   archive_cmds_need_lc_F77=yes
16822
16823   if test "$enable_shared" = yes && test "$GCC" = yes; then
16824     case $archive_cmds_F77 in
16825     *'~'*)
16826       # FIXME: we may have to deal with multi-command sequences.
16827       ;;
16828     '$CC '*)
16829       # Test whether the compiler implicitly links with -lc since on some
16830       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16831       # to ld, don't add -lc before -lgcc.
16832       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16833 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16834       $rm conftest*
16835       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16836
16837       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16838   (eval $ac_compile) 2>&5
16839   ac_status=$?
16840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16841   (exit $ac_status); } 2>conftest.err; then
16842         soname=conftest
16843         lib=conftest
16844         libobjs=conftest.$ac_objext
16845         deplibs=
16846         wl=$lt_prog_compiler_wl_F77
16847         pic_flag=$lt_prog_compiler_pic_F77
16848         compiler_flags=-v
16849         linker_flags=-v
16850         verstring=
16851         output_objdir=.
16852         libname=conftest
16853         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16854         allow_undefined_flag_F77=
16855         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16856   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16857   ac_status=$?
16858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16859   (exit $ac_status); }
16860         then
16861           archive_cmds_need_lc_F77=no
16862         else
16863           archive_cmds_need_lc_F77=yes
16864         fi
16865         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16866       else
16867         cat conftest.err 1>&5
16868       fi
16869       $rm conftest*
16870       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16871 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
16872       ;;
16873     esac
16874   fi
16875   ;;
16876 esac
16877
16878 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16879 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16880 library_names_spec=
16881 libname_spec='lib$name'
16882 soname_spec=
16883 shrext_cmds=".so"
16884 postinstall_cmds=
16885 postuninstall_cmds=
16886 finish_cmds=
16887 finish_eval=
16888 shlibpath_var=
16889 shlibpath_overrides_runpath=unknown
16890 version_type=none
16891 dynamic_linker="$host_os ld.so"
16892 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16893
16894 need_lib_prefix=unknown
16895 hardcode_into_libs=no
16896
16897 # when you set need_version to no, make sure it does not cause -set_version
16898 # flags to be left without arguments
16899 need_version=unknown
16900
16901 case $host_os in
16902 aix3*)
16903   version_type=linux
16904   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16905   shlibpath_var=LIBPATH
16906
16907   # AIX 3 has no versioning support, so we append a major version to the name.
16908   soname_spec='${libname}${release}${shared_ext}$major'
16909   ;;
16910
16911 aix4* | aix5*)
16912   version_type=linux
16913   need_lib_prefix=no
16914   need_version=no
16915   hardcode_into_libs=yes
16916   if test "$host_cpu" = ia64; then
16917     # AIX 5 supports IA64
16918     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16919     shlibpath_var=LD_LIBRARY_PATH
16920   else
16921     # With GCC up to 2.95.x, collect2 would create an import file
16922     # for dependence libraries.  The import file would start with
16923     # the line `#! .'.  This would cause the generated library to
16924     # depend on `.', always an invalid library.  This was fixed in
16925     # development snapshots of GCC prior to 3.0.
16926     case $host_os in
16927       aix4 | aix4.[01] | aix4.[01].*)
16928       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16929            echo ' yes '
16930            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16931         :
16932       else
16933         can_build_shared=no
16934       fi
16935       ;;
16936     esac
16937     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16938     # soname into executable. Probably we can add versioning support to
16939     # collect2, so additional links can be useful in future.
16940     if test "$aix_use_runtimelinking" = yes; then
16941       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16942       # instead of lib<name>.a to let people know that these are not
16943       # typical AIX shared libraries.
16944       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16945     else
16946       # We preserve .a as extension for shared libraries through AIX4.2
16947       # and later when we are not doing run time linking.
16948       library_names_spec='${libname}${release}.a $libname.a'
16949       soname_spec='${libname}${release}${shared_ext}$major'
16950     fi
16951     shlibpath_var=LIBPATH
16952   fi
16953   ;;
16954
16955 amigaos*)
16956   library_names_spec='$libname.ixlibrary $libname.a'
16957   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16958   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'
16959   ;;
16960
16961 beos*)
16962   library_names_spec='${libname}${shared_ext}'
16963   dynamic_linker="$host_os ld.so"
16964   shlibpath_var=LIBRARY_PATH
16965   ;;
16966
16967 bsdi[45]*)
16968   version_type=linux
16969   need_version=no
16970   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16971   soname_spec='${libname}${release}${shared_ext}$major'
16972   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16973   shlibpath_var=LD_LIBRARY_PATH
16974   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16975   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16976   # the default ld.so.conf also contains /usr/contrib/lib and
16977   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16978   # libtool to hard-code these into programs
16979   ;;
16980
16981 cygwin* | mingw* | pw32*)
16982   version_type=windows
16983   shrext_cmds=".dll"
16984   need_version=no
16985   need_lib_prefix=no
16986
16987   case $GCC,$host_os in
16988   yes,cygwin* | yes,mingw* | yes,pw32*)
16989     library_names_spec='$libname.dll.a'
16990     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16991     postinstall_cmds='base_file=`basename \${file}`~
16992       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16993       dldir=$destdir/`dirname \$dlpath`~
16994       test -d \$dldir || mkdir -p \$dldir~
16995       $install_prog $dir/$dlname \$dldir/$dlname~
16996       chmod a+x \$dldir/$dlname'
16997     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16998       dlpath=$dir/\$dldll~
16999        $rm \$dlpath'
17000     shlibpath_overrides_runpath=yes
17001
17002     case $host_os in
17003     cygwin*)
17004       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17005       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17006       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17007       ;;
17008     mingw*)
17009       # MinGW DLLs use traditional 'lib' prefix
17010       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17011       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17012       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17013         # It is most probably a Windows format PATH printed by
17014         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17015         # path with ; separators, and with drive letters. We can handle the
17016         # drive letters (cygwin fileutils understands them), so leave them,
17017         # especially as we might pass files found there to a mingw objdump,
17018         # which wouldn't understand a cygwinified path. Ahh.
17019         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17020       else
17021         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17022       fi
17023       ;;
17024     pw32*)
17025       # pw32 DLLs use 'pw' prefix rather than 'lib'
17026       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17027       ;;
17028     esac
17029     ;;
17030
17031   *)
17032     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17033     ;;
17034   esac
17035   dynamic_linker='Win32 ld.exe'
17036   # FIXME: first we should search . and the directory the executable is in
17037   shlibpath_var=PATH
17038   ;;
17039
17040 darwin* | rhapsody*)
17041   dynamic_linker="$host_os dyld"
17042   version_type=darwin
17043   need_lib_prefix=no
17044   need_version=no
17045   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17046   soname_spec='${libname}${release}${major}$shared_ext'
17047   shlibpath_overrides_runpath=yes
17048   shlibpath_var=DYLD_LIBRARY_PATH
17049   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17050    
17051   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17052   ;;
17053
17054 dgux*)
17055   version_type=linux
17056   need_lib_prefix=no
17057   need_version=no
17058   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17059   soname_spec='${libname}${release}${shared_ext}$major'
17060   shlibpath_var=LD_LIBRARY_PATH
17061   ;;
17062
17063 freebsd1*)
17064   dynamic_linker=no
17065   ;;
17066
17067 freebsd* | dragonfly*)
17068   # DragonFly does not have aout.  When/if they implement a new
17069   # versioning mechanism, adjust this.
17070   if test -x /usr/bin/objformat; then
17071     objformat=`/usr/bin/objformat`
17072   else
17073     case $host_os in
17074     freebsd[123]*) objformat=aout ;;
17075     *) objformat=elf ;;
17076     esac
17077   fi
17078   version_type=freebsd-$objformat
17079   case $version_type in
17080     freebsd-elf*)
17081       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17082       need_version=no
17083       need_lib_prefix=no
17084       ;;
17085     freebsd-*)
17086       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17087       need_version=yes
17088       ;;
17089   esac
17090   shlibpath_var=LD_LIBRARY_PATH
17091   case $host_os in
17092   freebsd2*)
17093     shlibpath_overrides_runpath=yes
17094     ;;
17095   freebsd3.[01]* | freebsdelf3.[01]*)
17096     shlibpath_overrides_runpath=yes
17097     hardcode_into_libs=yes
17098     ;;
17099   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17100   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17101     shlibpath_overrides_runpath=no
17102     hardcode_into_libs=yes
17103     ;;
17104   *) # from 4.6 on, and DragonFly
17105     shlibpath_overrides_runpath=yes
17106     hardcode_into_libs=yes
17107     ;;
17108   esac
17109   ;;
17110
17111 gnu*)
17112   version_type=linux
17113   need_lib_prefix=no
17114   need_version=no
17115   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17116   soname_spec='${libname}${release}${shared_ext}$major'
17117   shlibpath_var=LD_LIBRARY_PATH
17118   hardcode_into_libs=yes
17119   ;;
17120
17121 hpux9* | hpux10* | hpux11*)
17122   # Give a soname corresponding to the major version so that dld.sl refuses to
17123   # link against other versions.
17124   version_type=sunos
17125   need_lib_prefix=no
17126   need_version=no
17127   case $host_cpu in
17128   ia64*)
17129     shrext_cmds='.so'
17130     hardcode_into_libs=yes
17131     dynamic_linker="$host_os dld.so"
17132     shlibpath_var=LD_LIBRARY_PATH
17133     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17134     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17135     soname_spec='${libname}${release}${shared_ext}$major'
17136     if test "X$HPUX_IA64_MODE" = X32; then
17137       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17138     else
17139       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17140     fi
17141     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17142     ;;
17143    hppa*64*)
17144      shrext_cmds='.sl'
17145      hardcode_into_libs=yes
17146      dynamic_linker="$host_os dld.sl"
17147      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17148      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17149      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17150      soname_spec='${libname}${release}${shared_ext}$major'
17151      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17152      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17153      ;;
17154    *)
17155     shrext_cmds='.sl'
17156     dynamic_linker="$host_os dld.sl"
17157     shlibpath_var=SHLIB_PATH
17158     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17159     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17160     soname_spec='${libname}${release}${shared_ext}$major'
17161     ;;
17162   esac
17163   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17164   postinstall_cmds='chmod 555 $lib'
17165   ;;
17166
17167 interix[3-9]*)
17168   version_type=linux
17169   need_lib_prefix=no
17170   need_version=no
17171   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17172   soname_spec='${libname}${release}${shared_ext}$major'
17173   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17174   shlibpath_var=LD_LIBRARY_PATH
17175   shlibpath_overrides_runpath=no
17176   hardcode_into_libs=yes
17177   ;;
17178
17179 irix5* | irix6* | nonstopux*)
17180   case $host_os in
17181     nonstopux*) version_type=nonstopux ;;
17182     *)
17183         if test "$lt_cv_prog_gnu_ld" = yes; then
17184                 version_type=linux
17185         else
17186                 version_type=irix
17187         fi ;;
17188   esac
17189   need_lib_prefix=no
17190   need_version=no
17191   soname_spec='${libname}${release}${shared_ext}$major'
17192   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17193   case $host_os in
17194   irix5* | nonstopux*)
17195     libsuff= shlibsuff=
17196     ;;
17197   *)
17198     case $LD in # libtool.m4 will add one of these switches to LD
17199     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17200       libsuff= shlibsuff= libmagic=32-bit;;
17201     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17202       libsuff=32 shlibsuff=N32 libmagic=N32;;
17203     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17204       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17205     *) libsuff= shlibsuff= libmagic=never-match;;
17206     esac
17207     ;;
17208   esac
17209   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17210   shlibpath_overrides_runpath=no
17211   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17212   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17213   hardcode_into_libs=yes
17214   ;;
17215
17216 # No shared lib support for Linux oldld, aout, or coff.
17217 linux*oldld* | linux*aout* | linux*coff*)
17218   dynamic_linker=no
17219   ;;
17220
17221 # This must be Linux ELF.
17222 linux* | k*bsd*-gnu)
17223   version_type=linux
17224   need_lib_prefix=no
17225   need_version=no
17226   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17227   soname_spec='${libname}${release}${shared_ext}$major'
17228   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17229   shlibpath_var=LD_LIBRARY_PATH
17230   shlibpath_overrides_runpath=no
17231   # This implies no fast_install, which is unacceptable.
17232   # Some rework will be needed to allow for fast_install
17233   # before this can be enabled.
17234   hardcode_into_libs=yes
17235
17236   # Append ld.so.conf contents to the search path
17237   if test -f /etc/ld.so.conf; then
17238     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17239     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17240   fi
17241
17242   # We used to test for /lib/ld.so.1 and disable shared libraries on
17243   # powerpc, because MkLinux only supported shared libraries with the
17244   # GNU dynamic linker.  Since this was broken with cross compilers,
17245   # most powerpc-linux boxes support dynamic linking these days and
17246   # people can always --disable-shared, the test was removed, and we
17247   # assume the GNU/Linux dynamic linker is in use.
17248   dynamic_linker='GNU/Linux ld.so'
17249   ;;
17250
17251 netbsdelf*-gnu)
17252   version_type=linux
17253   need_lib_prefix=no
17254   need_version=no
17255   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17256   soname_spec='${libname}${release}${shared_ext}$major'
17257   shlibpath_var=LD_LIBRARY_PATH
17258   shlibpath_overrides_runpath=no
17259   hardcode_into_libs=yes
17260   dynamic_linker='NetBSD ld.elf_so'
17261   ;;
17262
17263 netbsd*)
17264   version_type=sunos
17265   need_lib_prefix=no
17266   need_version=no
17267   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17268     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17269     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17270     dynamic_linker='NetBSD (a.out) ld.so'
17271   else
17272     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17273     soname_spec='${libname}${release}${shared_ext}$major'
17274     dynamic_linker='NetBSD ld.elf_so'
17275   fi
17276   shlibpath_var=LD_LIBRARY_PATH
17277   shlibpath_overrides_runpath=yes
17278   hardcode_into_libs=yes
17279   ;;
17280
17281 newsos6)
17282   version_type=linux
17283   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17284   shlibpath_var=LD_LIBRARY_PATH
17285   shlibpath_overrides_runpath=yes
17286   ;;
17287
17288 nto-qnx*)
17289   version_type=linux
17290   need_lib_prefix=no
17291   need_version=no
17292   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17293   soname_spec='${libname}${release}${shared_ext}$major'
17294   shlibpath_var=LD_LIBRARY_PATH
17295   shlibpath_overrides_runpath=yes
17296   ;;
17297
17298 openbsd*)
17299   version_type=sunos
17300   sys_lib_dlsearch_path_spec="/usr/lib"
17301   need_lib_prefix=no
17302   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17303   case $host_os in
17304     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17305     *)                         need_version=no  ;;
17306   esac
17307   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17308   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17309   shlibpath_var=LD_LIBRARY_PATH
17310   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17311     case $host_os in
17312       openbsd2.[89] | openbsd2.[89].*)
17313         shlibpath_overrides_runpath=no
17314         ;;
17315       *)
17316         shlibpath_overrides_runpath=yes
17317         ;;
17318       esac
17319   else
17320     shlibpath_overrides_runpath=yes
17321   fi
17322   ;;
17323
17324 os2*)
17325   libname_spec='$name'
17326   shrext_cmds=".dll"
17327   need_lib_prefix=no
17328   library_names_spec='$libname${shared_ext} $libname.a'
17329   dynamic_linker='OS/2 ld.exe'
17330   shlibpath_var=LIBPATH
17331   ;;
17332
17333 osf3* | osf4* | osf5*)
17334   version_type=osf
17335   need_lib_prefix=no
17336   need_version=no
17337   soname_spec='${libname}${release}${shared_ext}$major'
17338   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17339   shlibpath_var=LD_LIBRARY_PATH
17340   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17341   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17342   ;;
17343
17344 rdos*)
17345   dynamic_linker=no
17346   ;;
17347
17348 solaris*)
17349   version_type=linux
17350   need_lib_prefix=no
17351   need_version=no
17352   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17353   soname_spec='${libname}${release}${shared_ext}$major'
17354   shlibpath_var=LD_LIBRARY_PATH
17355   shlibpath_overrides_runpath=yes
17356   hardcode_into_libs=yes
17357   # ldd complains unless libraries are executable
17358   postinstall_cmds='chmod +x $lib'
17359   ;;
17360
17361 sunos4*)
17362   version_type=sunos
17363   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17364   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17365   shlibpath_var=LD_LIBRARY_PATH
17366   shlibpath_overrides_runpath=yes
17367   if test "$with_gnu_ld" = yes; then
17368     need_lib_prefix=no
17369   fi
17370   need_version=yes
17371   ;;
17372
17373 sysv4 | sysv4.3*)
17374   version_type=linux
17375   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17376   soname_spec='${libname}${release}${shared_ext}$major'
17377   shlibpath_var=LD_LIBRARY_PATH
17378   case $host_vendor in
17379     sni)
17380       shlibpath_overrides_runpath=no
17381       need_lib_prefix=no
17382       export_dynamic_flag_spec='${wl}-Blargedynsym'
17383       runpath_var=LD_RUN_PATH
17384       ;;
17385     siemens)
17386       need_lib_prefix=no
17387       ;;
17388     motorola)
17389       need_lib_prefix=no
17390       need_version=no
17391       shlibpath_overrides_runpath=no
17392       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17393       ;;
17394   esac
17395   ;;
17396
17397 sysv4*MP*)
17398   if test -d /usr/nec ;then
17399     version_type=linux
17400     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17401     soname_spec='$libname${shared_ext}.$major'
17402     shlibpath_var=LD_LIBRARY_PATH
17403   fi
17404   ;;
17405
17406 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17407   version_type=freebsd-elf
17408   need_lib_prefix=no
17409   need_version=no
17410   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17411   soname_spec='${libname}${release}${shared_ext}$major'
17412   shlibpath_var=LD_LIBRARY_PATH
17413   hardcode_into_libs=yes
17414   if test "$with_gnu_ld" = yes; then
17415     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17416     shlibpath_overrides_runpath=no
17417   else
17418     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17419     shlibpath_overrides_runpath=yes
17420     case $host_os in
17421       sco3.2v5*)
17422         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17423         ;;
17424     esac
17425   fi
17426   sys_lib_dlsearch_path_spec='/usr/lib'
17427   ;;
17428
17429 uts4*)
17430   version_type=linux
17431   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17432   soname_spec='${libname}${release}${shared_ext}$major'
17433   shlibpath_var=LD_LIBRARY_PATH
17434   ;;
17435
17436 *)
17437   dynamic_linker=no
17438   ;;
17439 esac
17440 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17441 echo "${ECHO_T}$dynamic_linker" >&6; }
17442 test "$dynamic_linker" = no && can_build_shared=no
17443
17444 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17445 if test "$GCC" = yes; then
17446   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17447 fi
17448
17449 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17450 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
17451 hardcode_action_F77=
17452 if test -n "$hardcode_libdir_flag_spec_F77" || \
17453    test -n "$runpath_var_F77" || \
17454    test "X$hardcode_automatic_F77" = "Xyes" ; then
17455
17456   # We can hardcode non-existant directories.
17457   if test "$hardcode_direct_F77" != no &&
17458      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17459      # have to relink, otherwise we might link with an installed library
17460      # when we should be linking with a yet-to-be-installed one
17461      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
17462      test "$hardcode_minus_L_F77" != no; then
17463     # Linking always hardcodes the temporary library directory.
17464     hardcode_action_F77=relink
17465   else
17466     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17467     hardcode_action_F77=immediate
17468   fi
17469 else
17470   # We cannot hardcode anything, or else we can only hardcode existing
17471   # directories.
17472   hardcode_action_F77=unsupported
17473 fi
17474 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
17475 echo "${ECHO_T}$hardcode_action_F77" >&6; }
17476
17477 if test "$hardcode_action_F77" = relink; then
17478   # Fast installation is not supported
17479   enable_fast_install=no
17480 elif test "$shlibpath_overrides_runpath" = yes ||
17481      test "$enable_shared" = no; then
17482   # Fast installation is not necessary
17483   enable_fast_install=needless
17484 fi
17485
17486
17487 # The else clause should only fire when bootstrapping the
17488 # libtool distribution, otherwise you forgot to ship ltmain.sh
17489 # with your package, and you will get complaints that there are
17490 # no rules to generate ltmain.sh.
17491 if test -f "$ltmain"; then
17492   # See if we are running on zsh, and set the options which allow our commands through
17493   # without removal of \ escapes.
17494   if test -n "${ZSH_VERSION+set}" ; then
17495     setopt NO_GLOB_SUBST
17496   fi
17497   # Now quote all the things that may contain metacharacters while being
17498   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17499   # variables and quote the copies for generation of the libtool script.
17500   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17501     SED SHELL STRIP \
17502     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17503     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17504     deplibs_check_method reload_flag reload_cmds need_locks \
17505     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17506     lt_cv_sys_global_symbol_to_c_name_address \
17507     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17508     old_postinstall_cmds old_postuninstall_cmds \
17509     compiler_F77 \
17510     CC_F77 \
17511     LD_F77 \
17512     lt_prog_compiler_wl_F77 \
17513     lt_prog_compiler_pic_F77 \
17514     lt_prog_compiler_static_F77 \
17515     lt_prog_compiler_no_builtin_flag_F77 \
17516     export_dynamic_flag_spec_F77 \
17517     thread_safe_flag_spec_F77 \
17518     whole_archive_flag_spec_F77 \
17519     enable_shared_with_static_runtimes_F77 \
17520     old_archive_cmds_F77 \
17521     old_archive_from_new_cmds_F77 \
17522     predep_objects_F77 \
17523     postdep_objects_F77 \
17524     predeps_F77 \
17525     postdeps_F77 \
17526     compiler_lib_search_path_F77 \
17527     archive_cmds_F77 \
17528     archive_expsym_cmds_F77 \
17529     postinstall_cmds_F77 \
17530     postuninstall_cmds_F77 \
17531     old_archive_from_expsyms_cmds_F77 \
17532     allow_undefined_flag_F77 \
17533     no_undefined_flag_F77 \
17534     export_symbols_cmds_F77 \
17535     hardcode_libdir_flag_spec_F77 \
17536     hardcode_libdir_flag_spec_ld_F77 \
17537     hardcode_libdir_separator_F77 \
17538     hardcode_automatic_F77 \
17539     module_cmds_F77 \
17540     module_expsym_cmds_F77 \
17541     lt_cv_prog_compiler_c_o_F77 \
17542     fix_srcfile_path_F77 \
17543     exclude_expsyms_F77 \
17544     include_expsyms_F77; do
17545
17546     case $var in
17547     old_archive_cmds_F77 | \
17548     old_archive_from_new_cmds_F77 | \
17549     archive_cmds_F77 | \
17550     archive_expsym_cmds_F77 | \
17551     module_cmds_F77 | \
17552     module_expsym_cmds_F77 | \
17553     old_archive_from_expsyms_cmds_F77 | \
17554     export_symbols_cmds_F77 | \
17555     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17556     postinstall_cmds | postuninstall_cmds | \
17557     old_postinstall_cmds | old_postuninstall_cmds | \
17558     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17559       # Double-quote double-evaled strings.
17560       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17561       ;;
17562     *)
17563       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17564       ;;
17565     esac
17566   done
17567
17568   case $lt_echo in
17569   *'\$0 --fallback-echo"')
17570     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17571     ;;
17572   esac
17573
17574 cfgfile="$ofile"
17575
17576   cat <<__EOF__ >> "$cfgfile"
17577 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17578
17579 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17580
17581 # Shell to use when invoking shell scripts.
17582 SHELL=$lt_SHELL
17583
17584 # Whether or not to build shared libraries.
17585 build_libtool_libs=$enable_shared
17586
17587 # Whether or not to build static libraries.
17588 build_old_libs=$enable_static
17589
17590 # Whether or not to add -lc for building shared libraries.
17591 build_libtool_need_lc=$archive_cmds_need_lc_F77
17592
17593 # Whether or not to disallow shared libs when runtime libs are static
17594 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17595
17596 # Whether or not to optimize for fast installation.
17597 fast_install=$enable_fast_install
17598
17599 # The host system.
17600 host_alias=$host_alias
17601 host=$host
17602 host_os=$host_os
17603
17604 # The build system.
17605 build_alias=$build_alias
17606 build=$build
17607 build_os=$build_os
17608
17609 # An echo program that does not interpret backslashes.
17610 echo=$lt_echo
17611
17612 # The archiver.
17613 AR=$lt_AR
17614 AR_FLAGS=$lt_AR_FLAGS
17615
17616 # A C compiler.
17617 LTCC=$lt_LTCC
17618
17619 # LTCC compiler flags.
17620 LTCFLAGS=$lt_LTCFLAGS
17621
17622 # A language-specific compiler.
17623 CC=$lt_compiler_F77
17624
17625 # Is the compiler the GNU C compiler?
17626 with_gcc=$GCC_F77
17627
17628 # An ERE matcher.
17629 EGREP=$lt_EGREP
17630
17631 # The linker used to build libraries.
17632 LD=$lt_LD_F77
17633
17634 # Whether we need hard or soft links.
17635 LN_S=$lt_LN_S
17636
17637 # A BSD-compatible nm program.
17638 NM=$lt_NM
17639
17640 # A symbol stripping program
17641 STRIP=$lt_STRIP
17642
17643 # Used to examine libraries when file_magic_cmd begins "file"
17644 MAGIC_CMD=$MAGIC_CMD
17645
17646 # Used on cygwin: DLL creation program.
17647 DLLTOOL="$DLLTOOL"
17648
17649 # Used on cygwin: object dumper.
17650 OBJDUMP="$OBJDUMP"
17651
17652 # Used on cygwin: assembler.
17653 AS="$AS"
17654
17655 # The name of the directory that contains temporary libtool files.
17656 objdir=$objdir
17657
17658 # How to create reloadable object files.
17659 reload_flag=$lt_reload_flag
17660 reload_cmds=$lt_reload_cmds
17661
17662 # How to pass a linker flag through the compiler.
17663 wl=$lt_lt_prog_compiler_wl_F77
17664
17665 # Object file suffix (normally "o").
17666 objext="$ac_objext"
17667
17668 # Old archive suffix (normally "a").
17669 libext="$libext"
17670
17671 # Shared library suffix (normally ".so").
17672 shrext_cmds='$shrext_cmds'
17673
17674 # Executable file suffix (normally "").
17675 exeext="$exeext"
17676
17677 # Additional compiler flags for building library objects.
17678 pic_flag=$lt_lt_prog_compiler_pic_F77
17679 pic_mode=$pic_mode
17680
17681 # What is the maximum length of a command?
17682 max_cmd_len=$lt_cv_sys_max_cmd_len
17683
17684 # Does compiler simultaneously support -c and -o options?
17685 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17686
17687 # Must we lock files when doing compilation?
17688 need_locks=$lt_need_locks
17689
17690 # Do we need the lib prefix for modules?
17691 need_lib_prefix=$need_lib_prefix
17692
17693 # Do we need a version for libraries?
17694 need_version=$need_version
17695
17696 # Whether dlopen is supported.
17697 dlopen_support=$enable_dlopen
17698
17699 # Whether dlopen of programs is supported.
17700 dlopen_self=$enable_dlopen_self
17701
17702 # Whether dlopen of statically linked programs is supported.
17703 dlopen_self_static=$enable_dlopen_self_static
17704
17705 # Compiler flag to prevent dynamic linking.
17706 link_static_flag=$lt_lt_prog_compiler_static_F77
17707
17708 # Compiler flag to turn off builtin functions.
17709 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17710
17711 # Compiler flag to allow reflexive dlopens.
17712 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17713
17714 # Compiler flag to generate shared objects directly from archives.
17715 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17716
17717 # Compiler flag to generate thread-safe objects.
17718 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17719
17720 # Library versioning type.
17721 version_type=$version_type
17722
17723 # Format of library name prefix.
17724 libname_spec=$lt_libname_spec
17725
17726 # List of archive names.  First name is the real one, the rest are links.
17727 # The last name is the one that the linker finds with -lNAME.
17728 library_names_spec=$lt_library_names_spec
17729
17730 # The coded name of the library, if different from the real name.
17731 soname_spec=$lt_soname_spec
17732
17733 # Commands used to build and install an old-style archive.
17734 RANLIB=$lt_RANLIB
17735 old_archive_cmds=$lt_old_archive_cmds_F77
17736 old_postinstall_cmds=$lt_old_postinstall_cmds
17737 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17738
17739 # Create an old-style archive from a shared archive.
17740 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17741
17742 # Create a temporary old-style archive to link instead of a shared archive.
17743 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17744
17745 # Commands used to build and install a shared archive.
17746 archive_cmds=$lt_archive_cmds_F77
17747 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17748 postinstall_cmds=$lt_postinstall_cmds
17749 postuninstall_cmds=$lt_postuninstall_cmds
17750
17751 # Commands used to build a loadable module (assumed same as above if empty)
17752 module_cmds=$lt_module_cmds_F77
17753 module_expsym_cmds=$lt_module_expsym_cmds_F77
17754
17755 # Commands to strip libraries.
17756 old_striplib=$lt_old_striplib
17757 striplib=$lt_striplib
17758
17759 # Dependencies to place before the objects being linked to create a
17760 # shared library.
17761 predep_objects=$lt_predep_objects_F77
17762
17763 # Dependencies to place after the objects being linked to create a
17764 # shared library.
17765 postdep_objects=$lt_postdep_objects_F77
17766
17767 # Dependencies to place before the objects being linked to create a
17768 # shared library.
17769 predeps=$lt_predeps_F77
17770
17771 # Dependencies to place after the objects being linked to create a
17772 # shared library.
17773 postdeps=$lt_postdeps_F77
17774
17775 # The library search path used internally by the compiler when linking
17776 # a shared library.
17777 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17778
17779 # Method to check whether dependent libraries are shared objects.
17780 deplibs_check_method=$lt_deplibs_check_method
17781
17782 # Command to use when deplibs_check_method == file_magic.
17783 file_magic_cmd=$lt_file_magic_cmd
17784
17785 # Flag that allows shared libraries with undefined symbols to be built.
17786 allow_undefined_flag=$lt_allow_undefined_flag_F77
17787
17788 # Flag that forces no undefined symbols.
17789 no_undefined_flag=$lt_no_undefined_flag_F77
17790
17791 # Commands used to finish a libtool library installation in a directory.
17792 finish_cmds=$lt_finish_cmds
17793
17794 # Same as above, but a single script fragment to be evaled but not shown.
17795 finish_eval=$lt_finish_eval
17796
17797 # Take the output of nm and produce a listing of raw symbols and C names.
17798 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17799
17800 # Transform the output of nm in a proper C declaration
17801 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17802
17803 # Transform the output of nm in a C name address pair
17804 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17805
17806 # This is the shared library runtime path variable.
17807 runpath_var=$runpath_var
17808
17809 # This is the shared library path variable.
17810 shlibpath_var=$shlibpath_var
17811
17812 # Is shlibpath searched before the hard-coded library search path?
17813 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17814
17815 # How to hardcode a shared library path into an executable.
17816 hardcode_action=$hardcode_action_F77
17817
17818 # Whether we should hardcode library paths into libraries.
17819 hardcode_into_libs=$hardcode_into_libs
17820
17821 # Flag to hardcode \$libdir into a binary during linking.
17822 # This must work even if \$libdir does not exist.
17823 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17824
17825 # If ld is used when linking, flag to hardcode \$libdir into
17826 # a binary during linking. This must work even if \$libdir does
17827 # not exist.
17828 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17829
17830 # Whether we need a single -rpath flag with a separated argument.
17831 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17832
17833 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17834 # resulting binary.
17835 hardcode_direct=$hardcode_direct_F77
17836
17837 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17838 # resulting binary.
17839 hardcode_minus_L=$hardcode_minus_L_F77
17840
17841 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17842 # the resulting binary.
17843 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17844
17845 # Set to yes if building a shared library automatically hardcodes DIR into the library
17846 # and all subsequent libraries and executables linked against it.
17847 hardcode_automatic=$hardcode_automatic_F77
17848
17849 # Variables whose values should be saved in libtool wrapper scripts and
17850 # restored at relink time.
17851 variables_saved_for_relink="$variables_saved_for_relink"
17852
17853 # Whether libtool must link a program against all its dependency libraries.
17854 link_all_deplibs=$link_all_deplibs_F77
17855
17856 # Compile-time system search path for libraries
17857 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17858
17859 # Run-time system search path for libraries
17860 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17861
17862 # Fix the shell variable \$srcfile for the compiler.
17863 fix_srcfile_path=$lt_fix_srcfile_path
17864
17865 # Set to yes if exported symbols are required.
17866 always_export_symbols=$always_export_symbols_F77
17867
17868 # The commands to list exported symbols.
17869 export_symbols_cmds=$lt_export_symbols_cmds_F77
17870
17871 # The commands to extract the exported symbol list from a shared archive.
17872 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17873
17874 # Symbols that should not be listed in the preloaded symbols.
17875 exclude_expsyms=$lt_exclude_expsyms_F77
17876
17877 # Symbols that must always be exported.
17878 include_expsyms=$lt_include_expsyms_F77
17879
17880 # ### END LIBTOOL TAG CONFIG: $tagname
17881
17882 __EOF__
17883
17884
17885 else
17886   # If there is no Makefile yet, we rely on a make rule to execute
17887   # `config.status --recheck' to rerun these tests and create the
17888   # libtool script then.
17889   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17890   if test -f "$ltmain_in"; then
17891     test -f Makefile && make "$ltmain"
17892   fi
17893 fi
17894
17895
17896 ac_ext=c
17897 ac_cpp='$CPP $CPPFLAGS'
17898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17901
17902 CC="$lt_save_CC"
17903
17904         else
17905           tagname=""
17906         fi
17907         ;;
17908
17909       GCJ)
17910         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17911           
17912
17913 # Source file extension for Java test sources.
17914 ac_ext=java
17915
17916 # Object file extension for compiled Java test sources.
17917 objext=o
17918 objext_GCJ=$objext
17919
17920 # Code to be used in simple compile tests
17921 lt_simple_compile_test_code="class foo {}"
17922
17923 # Code to be used in simple link tests
17924 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
17925
17926 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17927
17928 # If no C compiler was specified, use CC.
17929 LTCC=${LTCC-"$CC"}
17930
17931 # If no C compiler flags were specified, use CFLAGS.
17932 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17933
17934 # Allow CC to be a program name with arguments.
17935 compiler=$CC
17936
17937
17938 # save warnings/boilerplate of simple test code
17939 ac_outfile=conftest.$ac_objext
17940 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17941 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17942 _lt_compiler_boilerplate=`cat conftest.err`
17943 $rm conftest*
17944
17945 ac_outfile=conftest.$ac_objext
17946 echo "$lt_simple_link_test_code" >conftest.$ac_ext
17947 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17948 _lt_linker_boilerplate=`cat conftest.err`
17949 $rm conftest*
17950
17951
17952 # Allow CC to be a program name with arguments.
17953 lt_save_CC="$CC"
17954 CC=${GCJ-"gcj"}
17955 compiler=$CC
17956 compiler_GCJ=$CC
17957 for cc_temp in $compiler""; do
17958   case $cc_temp in
17959     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17960     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17961     \-*) ;;
17962     *) break;;
17963   esac
17964 done
17965 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17966
17967
17968 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17969 archive_cmds_need_lc_GCJ=no
17970
17971 old_archive_cmds_GCJ=$old_archive_cmds
17972
17973 ## CAVEAT EMPTOR:
17974 ## There is no encapsulation within the following macros, do not change
17975 ## the running order or otherwise move them around unless you know exactly
17976 ## what you are doing...
17977
17978 lt_prog_compiler_no_builtin_flag_GCJ=
17979
17980 if test "$GCC" = yes; then
17981   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17982
17983   
17984 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17985 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
17986 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17987   echo $ECHO_N "(cached) $ECHO_C" >&6
17988 else
17989   lt_cv_prog_compiler_rtti_exceptions=no
17990   ac_outfile=conftest.$ac_objext
17991    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17992    lt_compiler_flag="-fno-rtti -fno-exceptions"
17993    # Insert the option either (1) after the last *FLAGS variable, or
17994    # (2) before a word containing "conftest.", or (3) at the end.
17995    # Note that $ac_compile itself does not contain backslashes and begins
17996    # with a dollar sign (not a hyphen), so the echo should work correctly.
17997    # The option is referenced via a variable to avoid confusing sed.
17998    lt_compile=`echo "$ac_compile" | $SED \
17999    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18000    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18001    -e 's:$: $lt_compiler_flag:'`
18002    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
18003    (eval "$lt_compile" 2>conftest.err)
18004    ac_status=$?
18005    cat conftest.err >&5
18006    echo "$as_me:__oline__: \$? = $ac_status" >&5
18007    if (exit $ac_status) && test -s "$ac_outfile"; then
18008      # The compiler can only warn and ignore the option if not recognized
18009      # So say no if there are warnings other than the usual output.
18010      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18011      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18012      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18013        lt_cv_prog_compiler_rtti_exceptions=yes
18014      fi
18015    fi
18016    $rm conftest*
18017
18018 fi
18019 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
18020 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
18021
18022 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
18023     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
18024 else
18025     :
18026 fi
18027
18028 fi
18029
18030 lt_prog_compiler_wl_GCJ=
18031 lt_prog_compiler_pic_GCJ=
18032 lt_prog_compiler_static_GCJ=
18033
18034 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18035 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
18036  
18037   if test "$GCC" = yes; then
18038     lt_prog_compiler_wl_GCJ='-Wl,'
18039     lt_prog_compiler_static_GCJ='-static'
18040
18041     case $host_os in
18042       aix*)
18043       # All AIX code is PIC.
18044       if test "$host_cpu" = ia64; then
18045         # AIX 5 now supports IA64 processor
18046         lt_prog_compiler_static_GCJ='-Bstatic'
18047       fi
18048       ;;
18049
18050     amigaos*)
18051       # FIXME: we need at least 68020 code to build shared libraries, but
18052       # adding the `-m68020' flag to GCC prevents building anything better,
18053       # like `-m68040'.
18054       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
18055       ;;
18056
18057     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18058       # PIC is the default for these OSes.
18059       ;;
18060
18061     mingw* | cygwin* | pw32* | os2*)
18062       # This hack is so that the source file can tell whether it is being
18063       # built for inclusion in a dll (and should export symbols for example).
18064       # Although the cygwin gcc ignores -fPIC, still need this for old-style
18065       # (--disable-auto-import) libraries
18066       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18067       ;;
18068
18069     darwin* | rhapsody*)
18070       # PIC is the default on this platform
18071       # Common symbols not allowed in MH_DYLIB files
18072       lt_prog_compiler_pic_GCJ='-fno-common'
18073       ;;
18074
18075     interix[3-9]*)
18076       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18077       # Instead, we relocate shared libraries at runtime.
18078       ;;
18079
18080     msdosdjgpp*)
18081       # Just because we use GCC doesn't mean we suddenly get shared libraries
18082       # on systems that don't support them.
18083       lt_prog_compiler_can_build_shared_GCJ=no
18084       enable_shared=no
18085       ;;
18086
18087     sysv4*MP*)
18088       if test -d /usr/nec; then
18089         lt_prog_compiler_pic_GCJ=-Kconform_pic
18090       fi
18091       ;;
18092
18093     hpux*)
18094       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18095       # not for PA HP-UX.
18096       case $host_cpu in
18097       hppa*64*|ia64*)
18098         # +Z the default
18099         ;;
18100       *)
18101         lt_prog_compiler_pic_GCJ='-fPIC'
18102         ;;
18103       esac
18104       ;;
18105
18106     *)
18107       lt_prog_compiler_pic_GCJ='-fPIC'
18108       ;;
18109     esac
18110   else
18111     # PORTME Check for flag to pass linker flags through the system compiler.
18112     case $host_os in
18113     aix*)
18114       lt_prog_compiler_wl_GCJ='-Wl,'
18115       if test "$host_cpu" = ia64; then
18116         # AIX 5 now supports IA64 processor
18117         lt_prog_compiler_static_GCJ='-Bstatic'
18118       else
18119         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
18120       fi
18121       ;;
18122       darwin*)
18123         # PIC is the default on this platform
18124         # Common symbols not allowed in MH_DYLIB files
18125        case $cc_basename in
18126          xlc*)
18127          lt_prog_compiler_pic_GCJ='-qnocommon'
18128          lt_prog_compiler_wl_GCJ='-Wl,'
18129          ;;
18130        esac
18131        ;;
18132
18133     mingw* | cygwin* | pw32* | os2*)
18134       # This hack is so that the source file can tell whether it is being
18135       # built for inclusion in a dll (and should export symbols for example).
18136       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18137       ;;
18138
18139     hpux9* | hpux10* | hpux11*)
18140       lt_prog_compiler_wl_GCJ='-Wl,'
18141       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18142       # not for PA HP-UX.
18143       case $host_cpu in
18144       hppa*64*|ia64*)
18145         # +Z the default
18146         ;;
18147       *)
18148         lt_prog_compiler_pic_GCJ='+Z'
18149         ;;
18150       esac
18151       # Is there a better lt_prog_compiler_static that works with the bundled CC?
18152       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
18153       ;;
18154
18155     irix5* | irix6* | nonstopux*)
18156       lt_prog_compiler_wl_GCJ='-Wl,'
18157       # PIC (with -KPIC) is the default.
18158       lt_prog_compiler_static_GCJ='-non_shared'
18159       ;;
18160
18161     newsos6)
18162       lt_prog_compiler_pic_GCJ='-KPIC'
18163       lt_prog_compiler_static_GCJ='-Bstatic'
18164       ;;
18165
18166     linux* | k*bsd*-gnu)
18167       case $cc_basename in
18168       icc* | ecc*)
18169         lt_prog_compiler_wl_GCJ='-Wl,'
18170         lt_prog_compiler_pic_GCJ='-KPIC'
18171         lt_prog_compiler_static_GCJ='-static'
18172         ;;
18173       pgcc* | pgf77* | pgf90* | pgf95*)
18174         # Portland Group compilers (*not* the Pentium gcc compiler,
18175         # which looks to be a dead project)
18176         lt_prog_compiler_wl_GCJ='-Wl,'
18177         lt_prog_compiler_pic_GCJ='-fpic'
18178         lt_prog_compiler_static_GCJ='-Bstatic'
18179         ;;
18180       ccc*)
18181         lt_prog_compiler_wl_GCJ='-Wl,'
18182         # All Alpha code is PIC.
18183         lt_prog_compiler_static_GCJ='-non_shared'
18184         ;;
18185       *)
18186         case `$CC -V 2>&1 | sed 5q` in
18187         *Sun\ C*)
18188           # Sun C 5.9
18189           lt_prog_compiler_pic_GCJ='-KPIC'
18190           lt_prog_compiler_static_GCJ='-Bstatic'
18191           lt_prog_compiler_wl_GCJ='-Wl,'
18192           ;;
18193         *Sun\ F*)
18194           # Sun Fortran 8.3 passes all unrecognized flags to the linker
18195           lt_prog_compiler_pic_GCJ='-KPIC'
18196           lt_prog_compiler_static_GCJ='-Bstatic'
18197           lt_prog_compiler_wl_GCJ=''
18198           ;;
18199         esac
18200         ;;
18201       esac
18202       ;;
18203
18204     osf3* | osf4* | osf5*)
18205       lt_prog_compiler_wl_GCJ='-Wl,'
18206       # All OSF/1 code is PIC.
18207       lt_prog_compiler_static_GCJ='-non_shared'
18208       ;;
18209
18210     rdos*)
18211       lt_prog_compiler_static_GCJ='-non_shared'
18212       ;;
18213
18214     solaris*)
18215       lt_prog_compiler_pic_GCJ='-KPIC'
18216       lt_prog_compiler_static_GCJ='-Bstatic'
18217       case $cc_basename in
18218       f77* | f90* | f95*)
18219         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
18220       *)
18221         lt_prog_compiler_wl_GCJ='-Wl,';;
18222       esac
18223       ;;
18224
18225     sunos4*)
18226       lt_prog_compiler_wl_GCJ='-Qoption ld '
18227       lt_prog_compiler_pic_GCJ='-PIC'
18228       lt_prog_compiler_static_GCJ='-Bstatic'
18229       ;;
18230
18231     sysv4 | sysv4.2uw2* | sysv4.3*)
18232       lt_prog_compiler_wl_GCJ='-Wl,'
18233       lt_prog_compiler_pic_GCJ='-KPIC'
18234       lt_prog_compiler_static_GCJ='-Bstatic'
18235       ;;
18236
18237     sysv4*MP*)
18238       if test -d /usr/nec ;then
18239         lt_prog_compiler_pic_GCJ='-Kconform_pic'
18240         lt_prog_compiler_static_GCJ='-Bstatic'
18241       fi
18242       ;;
18243
18244     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18245       lt_prog_compiler_wl_GCJ='-Wl,'
18246       lt_prog_compiler_pic_GCJ='-KPIC'
18247       lt_prog_compiler_static_GCJ='-Bstatic'
18248       ;;
18249
18250     unicos*)
18251       lt_prog_compiler_wl_GCJ='-Wl,'
18252       lt_prog_compiler_can_build_shared_GCJ=no
18253       ;;
18254
18255     uts4*)
18256       lt_prog_compiler_pic_GCJ='-pic'
18257       lt_prog_compiler_static_GCJ='-Bstatic'
18258       ;;
18259
18260     *)
18261       lt_prog_compiler_can_build_shared_GCJ=no
18262       ;;
18263     esac
18264   fi
18265
18266 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
18267 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
18268
18269 #
18270 # Check to make sure the PIC flag actually works.
18271 #
18272 if test -n "$lt_prog_compiler_pic_GCJ"; then
18273   
18274 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
18275 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
18276 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
18277   echo $ECHO_N "(cached) $ECHO_C" >&6
18278 else
18279   lt_prog_compiler_pic_works_GCJ=no
18280   ac_outfile=conftest.$ac_objext
18281    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18282    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
18283    # Insert the option either (1) after the last *FLAGS variable, or
18284    # (2) before a word containing "conftest.", or (3) at the end.
18285    # Note that $ac_compile itself does not contain backslashes and begins
18286    # with a dollar sign (not a hyphen), so the echo should work correctly.
18287    # The option is referenced via a variable to avoid confusing sed.
18288    lt_compile=`echo "$ac_compile" | $SED \
18289    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18290    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18291    -e 's:$: $lt_compiler_flag:'`
18292    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
18293    (eval "$lt_compile" 2>conftest.err)
18294    ac_status=$?
18295    cat conftest.err >&5
18296    echo "$as_me:__oline__: \$? = $ac_status" >&5
18297    if (exit $ac_status) && test -s "$ac_outfile"; then
18298      # The compiler can only warn and ignore the option if not recognized
18299      # So say no if there are warnings other than the usual output.
18300      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18301      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18302      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18303        lt_prog_compiler_pic_works_GCJ=yes
18304      fi
18305    fi
18306    $rm conftest*
18307
18308 fi
18309 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
18310 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
18311
18312 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
18313     case $lt_prog_compiler_pic_GCJ in
18314      "" | " "*) ;;
18315      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
18316      esac
18317 else
18318     lt_prog_compiler_pic_GCJ=
18319      lt_prog_compiler_can_build_shared_GCJ=no
18320 fi
18321
18322 fi
18323 case $host_os in
18324   # For platforms which do not support PIC, -DPIC is meaningless:
18325   *djgpp*)
18326     lt_prog_compiler_pic_GCJ=
18327     ;;
18328   *)
18329     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
18330     ;;
18331 esac
18332
18333 #
18334 # Check to make sure the static flag actually works.
18335 #
18336 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
18337 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18338 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
18339 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
18340   echo $ECHO_N "(cached) $ECHO_C" >&6
18341 else
18342   lt_prog_compiler_static_works_GCJ=no
18343    save_LDFLAGS="$LDFLAGS"
18344    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18345    echo "$lt_simple_link_test_code" > conftest.$ac_ext
18346    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18347      # The linker can only warn and ignore the option if not recognized
18348      # So say no if there are warnings
18349      if test -s conftest.err; then
18350        # Append any errors to the config.log.
18351        cat conftest.err 1>&5
18352        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
18353        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18354        if diff conftest.exp conftest.er2 >/dev/null; then
18355          lt_prog_compiler_static_works_GCJ=yes
18356        fi
18357      else
18358        lt_prog_compiler_static_works_GCJ=yes
18359      fi
18360    fi
18361    $rm conftest*
18362    LDFLAGS="$save_LDFLAGS"
18363
18364 fi
18365 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
18366 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
18367
18368 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
18369     :
18370 else
18371     lt_prog_compiler_static_GCJ=
18372 fi
18373
18374
18375 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18376 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
18377 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
18378   echo $ECHO_N "(cached) $ECHO_C" >&6
18379 else
18380   lt_cv_prog_compiler_c_o_GCJ=no
18381    $rm -r conftest 2>/dev/null
18382    mkdir conftest
18383    cd conftest
18384    mkdir out
18385    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18386
18387    lt_compiler_flag="-o out/conftest2.$ac_objext"
18388    # Insert the option either (1) after the last *FLAGS variable, or
18389    # (2) before a word containing "conftest.", or (3) at the end.
18390    # Note that $ac_compile itself does not contain backslashes and begins
18391    # with a dollar sign (not a hyphen), so the echo should work correctly.
18392    lt_compile=`echo "$ac_compile" | $SED \
18393    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18394    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18395    -e 's:$: $lt_compiler_flag:'`
18396    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
18397    (eval "$lt_compile" 2>out/conftest.err)
18398    ac_status=$?
18399    cat out/conftest.err >&5
18400    echo "$as_me:__oline__: \$? = $ac_status" >&5
18401    if (exit $ac_status) && test -s out/conftest2.$ac_objext
18402    then
18403      # The compiler can only warn and ignore the option if not recognized
18404      # So say no if there are warnings
18405      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18406      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18407      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18408        lt_cv_prog_compiler_c_o_GCJ=yes
18409      fi
18410    fi
18411    chmod u+w . 2>&5
18412    $rm conftest*
18413    # SGI C++ compiler will create directory out/ii_files/ for
18414    # template instantiation
18415    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18416    $rm out/* && rmdir out
18417    cd ..
18418    rmdir conftest
18419    $rm conftest*
18420
18421 fi
18422 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
18423 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
18424
18425
18426 hard_links="nottested"
18427 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
18428   # do not overwrite the value of need_locks provided by the user
18429   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18430 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
18431   hard_links=yes
18432   $rm conftest*
18433   ln conftest.a conftest.b 2>/dev/null && hard_links=no
18434   touch conftest.a
18435   ln conftest.a conftest.b 2>&5 || hard_links=no
18436   ln conftest.a conftest.b 2>/dev/null && hard_links=no
18437   { echo "$as_me:$LINENO: result: $hard_links" >&5
18438 echo "${ECHO_T}$hard_links" >&6; }
18439   if test "$hard_links" = no; then
18440     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18441 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18442     need_locks=warn
18443   fi
18444 else
18445   need_locks=no
18446 fi
18447
18448 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18449 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18450
18451   runpath_var=
18452   allow_undefined_flag_GCJ=
18453   enable_shared_with_static_runtimes_GCJ=no
18454   archive_cmds_GCJ=
18455   archive_expsym_cmds_GCJ=
18456   old_archive_From_new_cmds_GCJ=
18457   old_archive_from_expsyms_cmds_GCJ=
18458   export_dynamic_flag_spec_GCJ=
18459   whole_archive_flag_spec_GCJ=
18460   thread_safe_flag_spec_GCJ=
18461   hardcode_libdir_flag_spec_GCJ=
18462   hardcode_libdir_flag_spec_ld_GCJ=
18463   hardcode_libdir_separator_GCJ=
18464   hardcode_direct_GCJ=no
18465   hardcode_minus_L_GCJ=no
18466   hardcode_shlibpath_var_GCJ=unsupported
18467   link_all_deplibs_GCJ=unknown
18468   hardcode_automatic_GCJ=no
18469   module_cmds_GCJ=
18470   module_expsym_cmds_GCJ=
18471   always_export_symbols_GCJ=no
18472   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18473   # include_expsyms should be a list of space-separated symbols to be *always*
18474   # included in the symbol list
18475   include_expsyms_GCJ=
18476   # exclude_expsyms can be an extended regexp of symbols to exclude
18477   # it will be wrapped by ` (' and `)$', so one must not match beginning or
18478   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18479   # as well as any symbol that contains `d'.
18480   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
18481   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18482   # platforms (ab)use it in PIC code, but their linkers get confused if
18483   # the symbol is explicitly referenced.  Since portable code cannot
18484   # rely on this symbol name, it's probably fine to never include it in
18485   # preloaded symbol tables.
18486   extract_expsyms_cmds=
18487   # Just being paranoid about ensuring that cc_basename is set.
18488   for cc_temp in $compiler""; do
18489   case $cc_temp in
18490     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18491     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18492     \-*) ;;
18493     *) break;;
18494   esac
18495 done
18496 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18497
18498   case $host_os in
18499   cygwin* | mingw* | pw32*)
18500     # FIXME: the MSVC++ port hasn't been tested in a loooong time
18501     # When not using gcc, we currently assume that we are using
18502     # Microsoft Visual C++.
18503     if test "$GCC" != yes; then
18504       with_gnu_ld=no
18505     fi
18506     ;;
18507   interix*)
18508     # we just hope/assume this is gcc and not c89 (= MSVC++)
18509     with_gnu_ld=yes
18510     ;;
18511   openbsd*)
18512     with_gnu_ld=no
18513     ;;
18514   esac
18515
18516   ld_shlibs_GCJ=yes
18517   if test "$with_gnu_ld" = yes; then
18518     # If archive_cmds runs LD, not CC, wlarc should be empty
18519     wlarc='${wl}'
18520
18521     # Set some defaults for GNU ld with shared library support. These
18522     # are reset later if shared libraries are not supported. Putting them
18523     # here allows them to be overridden if necessary.
18524     runpath_var=LD_RUN_PATH
18525     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
18526     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
18527     # ancient GNU ld didn't support --whole-archive et. al.
18528     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18529         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18530       else
18531         whole_archive_flag_spec_GCJ=
18532     fi
18533     supports_anon_versioning=no
18534     case `$LD -v 2>/dev/null` in
18535       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18536       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18537       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18538       *\ 2.11.*) ;; # other 2.11 versions
18539       *) supports_anon_versioning=yes ;;
18540     esac
18541
18542     # See if GNU ld supports shared libraries.
18543     case $host_os in
18544     aix3* | aix4* | aix5*)
18545       # On AIX/PPC, the GNU linker is very broken
18546       if test "$host_cpu" != ia64; then
18547         ld_shlibs_GCJ=no
18548         cat <<EOF 1>&2
18549
18550 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
18551 *** to be unable to reliably create shared libraries on AIX.
18552 *** Therefore, libtool is disabling shared libraries support.  If you
18553 *** really care for shared libraries, you may want to modify your PATH
18554 *** so that a non-GNU linker is found, and then restart.
18555
18556 EOF
18557       fi
18558       ;;
18559
18560     amigaos*)
18561       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)'
18562       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18563       hardcode_minus_L_GCJ=yes
18564
18565       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
18566       # that the semantics of dynamic libraries on AmigaOS, at least up
18567       # to version 4, is to share data among multiple programs linked
18568       # with the same dynamic library.  Since this doesn't match the
18569       # behavior of shared libraries on other platforms, we can't use
18570       # them.
18571       ld_shlibs_GCJ=no
18572       ;;
18573
18574     beos*)
18575       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18576         allow_undefined_flag_GCJ=unsupported
18577         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18578         # support --undefined.  This deserves some investigation.  FIXME
18579         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18580       else
18581         ld_shlibs_GCJ=no
18582       fi
18583       ;;
18584
18585     cygwin* | mingw* | pw32*)
18586       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18587       # as there is no search path for DLLs.
18588       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18589       allow_undefined_flag_GCJ=unsupported
18590       always_export_symbols_GCJ=no
18591       enable_shared_with_static_runtimes_GCJ=yes
18592       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
18593
18594       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18595         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18596         # If the export-symbols file already is a .def file (1st line
18597         # is EXPORTS), use it as is; otherwise, prepend...
18598         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18599           cp $export_symbols $output_objdir/$soname.def;
18600         else
18601           echo EXPORTS > $output_objdir/$soname.def;
18602           cat $export_symbols >> $output_objdir/$soname.def;
18603         fi~
18604         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18605       else
18606         ld_shlibs_GCJ=no
18607       fi
18608       ;;
18609
18610     interix[3-9]*)
18611       hardcode_direct_GCJ=no
18612       hardcode_shlibpath_var_GCJ=no
18613       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18614       export_dynamic_flag_spec_GCJ='${wl}-E'
18615       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18616       # Instead, shared libraries are loaded at an image base (0x10000000 by
18617       # default) and relocated if they conflict, which is a slow very memory
18618       # consuming and fragmenting process.  To avoid this, we pick a random,
18619       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18620       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
18621       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'
18622       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'
18623       ;;
18624
18625     gnu* | linux* | k*bsd*-gnu)
18626       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18627         tmp_addflag=
18628         case $cc_basename,$host_cpu in
18629         pgcc*)                          # Portland Group C compiler
18630           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'
18631           tmp_addflag=' $pic_flag'
18632           ;;
18633         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
18634           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'
18635           tmp_addflag=' $pic_flag -Mnomain' ;;
18636         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
18637           tmp_addflag=' -i_dynamic' ;;
18638         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
18639           tmp_addflag=' -i_dynamic -nofor_main' ;;
18640         ifc* | ifort*)                  # Intel Fortran compiler
18641           tmp_addflag=' -nofor_main' ;;
18642         esac
18643         case `$CC -V 2>&1 | sed 5q` in
18644         *Sun\ C*)                       # Sun C 5.9
18645           whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
18646           tmp_sharedflag='-G' ;;
18647         *Sun\ F*)                       # Sun Fortran 8.3
18648           tmp_sharedflag='-G' ;;
18649         *)
18650           tmp_sharedflag='-shared' ;;
18651         esac
18652         archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18653
18654         if test $supports_anon_versioning = yes; then
18655           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18656   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18657   $echo "local: *; };" >> $output_objdir/$libname.ver~
18658           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18659         fi
18660         link_all_deplibs_GCJ=no
18661       else
18662         ld_shlibs_GCJ=no
18663       fi
18664       ;;
18665
18666     netbsd* | netbsdelf*-gnu)
18667       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18668         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18669         wlarc=
18670       else
18671         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18672         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18673       fi
18674       ;;
18675
18676     solaris*)
18677       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18678         ld_shlibs_GCJ=no
18679         cat <<EOF 1>&2
18680
18681 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
18682 *** create shared libraries on Solaris systems.  Therefore, libtool
18683 *** is disabling shared libraries support.  We urge you to upgrade GNU
18684 *** binutils to release 2.9.1 or newer.  Another option is to modify
18685 *** your PATH or compiler configuration so that the native linker is
18686 *** used, and then restart.
18687
18688 EOF
18689       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18690         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18691         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18692       else
18693         ld_shlibs_GCJ=no
18694       fi
18695       ;;
18696
18697     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18698       case `$LD -v 2>&1` in
18699         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18700         ld_shlibs_GCJ=no
18701         cat <<_LT_EOF 1>&2
18702
18703 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18704 *** reliably create shared libraries on SCO systems.  Therefore, libtool
18705 *** is disabling shared libraries support.  We urge you to upgrade GNU
18706 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
18707 *** your PATH or compiler configuration so that the native linker is
18708 *** used, and then restart.
18709
18710 _LT_EOF
18711         ;;
18712         *)
18713           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18714             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
18715             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
18716             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
18717           else
18718             ld_shlibs_GCJ=no
18719           fi
18720         ;;
18721       esac
18722       ;;
18723
18724     sunos4*)
18725       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18726       wlarc=
18727       hardcode_direct_GCJ=yes
18728       hardcode_shlibpath_var_GCJ=no
18729       ;;
18730
18731     *)
18732       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18733         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18734         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18735       else
18736         ld_shlibs_GCJ=no
18737       fi
18738       ;;
18739     esac
18740
18741     if test "$ld_shlibs_GCJ" = no; then
18742       runpath_var=
18743       hardcode_libdir_flag_spec_GCJ=
18744       export_dynamic_flag_spec_GCJ=
18745       whole_archive_flag_spec_GCJ=
18746     fi
18747   else
18748     # PORTME fill in a description of your system's linker (not GNU ld)
18749     case $host_os in
18750     aix3*)
18751       allow_undefined_flag_GCJ=unsupported
18752       always_export_symbols_GCJ=yes
18753       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'
18754       # Note: this linker hardcodes the directories in LIBPATH if there
18755       # are no directories specified by -L.
18756       hardcode_minus_L_GCJ=yes
18757       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18758         # Neither direct hardcoding nor static linking is supported with a
18759         # broken collect2.
18760         hardcode_direct_GCJ=unsupported
18761       fi
18762       ;;
18763
18764     aix4* | aix5*)
18765       if test "$host_cpu" = ia64; then
18766         # On IA64, the linker does run time linking by default, so we don't
18767         # have to do anything special.
18768         aix_use_runtimelinking=no
18769         exp_sym_flag='-Bexport'
18770         no_entry_flag=""
18771       else
18772         # If we're using GNU nm, then we don't want the "-C" option.
18773         # -C means demangle to AIX nm, but means don't demangle with GNU nm
18774         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18775           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'
18776         else
18777           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'
18778         fi
18779         aix_use_runtimelinking=no
18780
18781         # Test if we are trying to use run time linking or normal
18782         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18783         # need to do runtime linking.
18784         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18785           for ld_flag in $LDFLAGS; do
18786           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18787             aix_use_runtimelinking=yes
18788             break
18789           fi
18790           done
18791           ;;
18792         esac
18793
18794         exp_sym_flag='-bexport'
18795         no_entry_flag='-bnoentry'
18796       fi
18797
18798       # When large executables or shared objects are built, AIX ld can
18799       # have problems creating the table of contents.  If linking a library
18800       # or program results in "error TOC overflow" add -mminimal-toc to
18801       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18802       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18803
18804       archive_cmds_GCJ=''
18805       hardcode_direct_GCJ=yes
18806       hardcode_libdir_separator_GCJ=':'
18807       link_all_deplibs_GCJ=yes
18808
18809       if test "$GCC" = yes; then
18810         case $host_os in aix4.[012]|aix4.[012].*)
18811         # We only want to do this on AIX 4.2 and lower, the check
18812         # below for broken collect2 doesn't work under 4.3+
18813           collect2name=`${CC} -print-prog-name=collect2`
18814           if test -f "$collect2name" && \
18815            strings "$collect2name" | grep resolve_lib_name >/dev/null
18816           then
18817           # We have reworked collect2
18818           :
18819           else
18820           # We have old collect2
18821           hardcode_direct_GCJ=unsupported
18822           # It fails to find uninstalled libraries when the uninstalled
18823           # path is not listed in the libpath.  Setting hardcode_minus_L
18824           # to unsupported forces relinking
18825           hardcode_minus_L_GCJ=yes
18826           hardcode_libdir_flag_spec_GCJ='-L$libdir'
18827           hardcode_libdir_separator_GCJ=
18828           fi
18829           ;;
18830         esac
18831         shared_flag='-shared'
18832         if test "$aix_use_runtimelinking" = yes; then
18833           shared_flag="$shared_flag "'${wl}-G'
18834         fi
18835       else
18836         # not using gcc
18837         if test "$host_cpu" = ia64; then
18838         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18839         # chokes on -Wl,-G. The following line is correct:
18840           shared_flag='-G'
18841         else
18842           if test "$aix_use_runtimelinking" = yes; then
18843             shared_flag='${wl}-G'
18844           else
18845             shared_flag='${wl}-bM:SRE'
18846           fi
18847         fi
18848       fi
18849
18850       # It seems that -bexpall does not export symbols beginning with
18851       # underscore (_), so it is better to generate a list of symbols to export.
18852       always_export_symbols_GCJ=yes
18853       if test "$aix_use_runtimelinking" = yes; then
18854         # Warning - without using the other runtime loading flags (-brtl),
18855         # -berok will link without error, but may produce a broken library.
18856         allow_undefined_flag_GCJ='-berok'
18857        # Determine the default libpath from the value encoded in an empty executable.
18858        cat >conftest.$ac_ext <<_ACEOF
18859 /* confdefs.h.  */
18860 _ACEOF
18861 cat confdefs.h >>conftest.$ac_ext
18862 cat >>conftest.$ac_ext <<_ACEOF
18863 /* end confdefs.h.  */
18864
18865 int
18866 main ()
18867 {
18868
18869   ;
18870   return 0;
18871 }
18872 _ACEOF
18873 rm -f conftest.$ac_objext conftest$ac_exeext
18874 if { (ac_try="$ac_link"
18875 case "(($ac_try" in
18876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18877   *) ac_try_echo=$ac_try;;
18878 esac
18879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18880   (eval "$ac_link") 2>conftest.er1
18881   ac_status=$?
18882   grep -v '^ *+' conftest.er1 >conftest.err
18883   rm -f conftest.er1
18884   cat conftest.err >&5
18885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18886   (exit $ac_status); } && {
18887          test -z "$ac_c_werror_flag" ||
18888          test ! -s conftest.err
18889        } && test -s conftest$ac_exeext &&
18890        $as_test_x conftest$ac_exeext; then
18891   
18892 lt_aix_libpath_sed='
18893     /Import File Strings/,/^$/ {
18894         /^0/ {
18895             s/^0  *\(.*\)$/\1/
18896             p
18897         }
18898     }'
18899 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18900 # Check for a 64-bit object if we didn't find anything.
18901 if test -z "$aix_libpath"; then
18902   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18903 fi
18904 else
18905   echo "$as_me: failed program was:" >&5
18906 sed 's/^/| /' conftest.$ac_ext >&5
18907
18908         
18909 fi
18910
18911 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18912       conftest$ac_exeext conftest.$ac_ext
18913 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18914
18915        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18916         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"
18917        else
18918         if test "$host_cpu" = ia64; then
18919           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18920           allow_undefined_flag_GCJ="-z nodefs"
18921           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"
18922         else
18923          # Determine the default libpath from the value encoded in an empty executable.
18924          cat >conftest.$ac_ext <<_ACEOF
18925 /* confdefs.h.  */
18926 _ACEOF
18927 cat confdefs.h >>conftest.$ac_ext
18928 cat >>conftest.$ac_ext <<_ACEOF
18929 /* end confdefs.h.  */
18930
18931 int
18932 main ()
18933 {
18934
18935   ;
18936   return 0;
18937 }
18938 _ACEOF
18939 rm -f conftest.$ac_objext conftest$ac_exeext
18940 if { (ac_try="$ac_link"
18941 case "(($ac_try" in
18942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18943   *) ac_try_echo=$ac_try;;
18944 esac
18945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18946   (eval "$ac_link") 2>conftest.er1
18947   ac_status=$?
18948   grep -v '^ *+' conftest.er1 >conftest.err
18949   rm -f conftest.er1
18950   cat conftest.err >&5
18951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18952   (exit $ac_status); } && {
18953          test -z "$ac_c_werror_flag" ||
18954          test ! -s conftest.err
18955        } && test -s conftest$ac_exeext &&
18956        $as_test_x conftest$ac_exeext; then
18957   
18958 lt_aix_libpath_sed='
18959     /Import File Strings/,/^$/ {
18960         /^0/ {
18961             s/^0  *\(.*\)$/\1/
18962             p
18963         }
18964     }'
18965 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18966 # Check for a 64-bit object if we didn't find anything.
18967 if test -z "$aix_libpath"; then
18968   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18969 fi
18970 else
18971   echo "$as_me: failed program was:" >&5
18972 sed 's/^/| /' conftest.$ac_ext >&5
18973
18974         
18975 fi
18976
18977 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18978       conftest$ac_exeext conftest.$ac_ext
18979 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18980
18981          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18982           # Warning - without using the other run time loading flags,
18983           # -berok will link without error, but may produce a broken library.
18984           no_undefined_flag_GCJ=' ${wl}-bernotok'
18985           allow_undefined_flag_GCJ=' ${wl}-berok'
18986           # Exported symbols can be pulled into shared objects from archives
18987           whole_archive_flag_spec_GCJ='$convenience'
18988           archive_cmds_need_lc_GCJ=yes
18989           # This is similar to how AIX traditionally builds its shared libraries.
18990           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'
18991         fi
18992       fi
18993       ;;
18994
18995     amigaos*)
18996       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)'
18997       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18998       hardcode_minus_L_GCJ=yes
18999       # see comment about different semantics on the GNU ld section
19000       ld_shlibs_GCJ=no
19001       ;;
19002
19003     bsdi[45]*)
19004       export_dynamic_flag_spec_GCJ=-rdynamic
19005       ;;
19006
19007     cygwin* | mingw* | pw32*)
19008       # When not using gcc, we currently assume that we are using
19009       # Microsoft Visual C++.
19010       # hardcode_libdir_flag_spec is actually meaningless, as there is
19011       # no search path for DLLs.
19012       hardcode_libdir_flag_spec_GCJ=' '
19013       allow_undefined_flag_GCJ=unsupported
19014       # Tell ltmain to make .lib files, not .a files.
19015       libext=lib
19016       # Tell ltmain to make .dll files, not .so files.
19017       shrext_cmds=".dll"
19018       # FIXME: Setting linknames here is a bad hack.
19019       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19020       # The linker will automatically build a .lib file if we build a DLL.
19021       old_archive_From_new_cmds_GCJ='true'
19022       # FIXME: Should let the user specify the lib program.
19023       old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
19024       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
19025       enable_shared_with_static_runtimes_GCJ=yes
19026       ;;
19027
19028     darwin* | rhapsody*)
19029       case $host_os in
19030         rhapsody* | darwin1.[012])
19031          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
19032          ;;
19033        *) # Darwin 1.3 on
19034          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19035            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19036          else
19037            case ${MACOSX_DEPLOYMENT_TARGET} in
19038              10.[012])
19039                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19040                ;;
19041              10.*)
19042                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
19043                ;;
19044            esac
19045          fi
19046          ;;
19047       esac
19048       archive_cmds_need_lc_GCJ=no
19049       hardcode_direct_GCJ=no
19050       hardcode_automatic_GCJ=yes
19051       hardcode_shlibpath_var_GCJ=unsupported
19052       whole_archive_flag_spec_GCJ=''
19053       link_all_deplibs_GCJ=yes
19054     if test "$GCC" = yes ; then
19055         output_verbose_link_cmd='echo'
19056         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19057       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19058       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19059       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}'
19060       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}'
19061     else
19062       case $cc_basename in
19063         xlc*)
19064          output_verbose_link_cmd='echo'
19065          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
19066          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19067           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19068          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19069           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}'
19070           ;;
19071        *)
19072          ld_shlibs_GCJ=no
19073           ;;
19074       esac
19075     fi
19076       ;;
19077
19078     dgux*)
19079       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19080       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19081       hardcode_shlibpath_var_GCJ=no
19082       ;;
19083
19084     freebsd1*)
19085       ld_shlibs_GCJ=no
19086       ;;
19087
19088     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19089     # support.  Future versions do this automatically, but an explicit c++rt0.o
19090     # does not break anything, and helps significantly (at the cost of a little
19091     # extra space).
19092     freebsd2.2*)
19093       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19094       hardcode_libdir_flag_spec_GCJ='-R$libdir'
19095       hardcode_direct_GCJ=yes
19096       hardcode_shlibpath_var_GCJ=no
19097       ;;
19098
19099     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19100     freebsd2*)
19101       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19102       hardcode_direct_GCJ=yes
19103       hardcode_minus_L_GCJ=yes
19104       hardcode_shlibpath_var_GCJ=no
19105       ;;
19106
19107     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19108     freebsd* | dragonfly*)
19109       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19110       hardcode_libdir_flag_spec_GCJ='-R$libdir'
19111       hardcode_direct_GCJ=yes
19112       hardcode_shlibpath_var_GCJ=no
19113       ;;
19114
19115     hpux9*)
19116       if test "$GCC" = yes; then
19117         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'
19118       else
19119         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'
19120       fi
19121       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19122       hardcode_libdir_separator_GCJ=:
19123       hardcode_direct_GCJ=yes
19124
19125       # hardcode_minus_L: Not really in the search PATH,
19126       # but as the default location of the library.
19127       hardcode_minus_L_GCJ=yes
19128       export_dynamic_flag_spec_GCJ='${wl}-E'
19129       ;;
19130
19131     hpux10*)
19132       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19133         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19134       else
19135         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19136       fi
19137       if test "$with_gnu_ld" = no; then
19138         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19139         hardcode_libdir_separator_GCJ=:
19140
19141         hardcode_direct_GCJ=yes
19142         export_dynamic_flag_spec_GCJ='${wl}-E'
19143
19144         # hardcode_minus_L: Not really in the search PATH,
19145         # but as the default location of the library.
19146         hardcode_minus_L_GCJ=yes
19147       fi
19148       ;;
19149
19150     hpux11*)
19151       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19152         case $host_cpu in
19153         hppa*64*)
19154           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19155           ;;
19156         ia64*)
19157           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19158           ;;
19159         *)
19160           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19161           ;;
19162         esac
19163       else
19164         case $host_cpu in
19165         hppa*64*)
19166           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19167           ;;
19168         ia64*)
19169           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19170           ;;
19171         *)
19172           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19173           ;;
19174         esac
19175       fi
19176       if test "$with_gnu_ld" = no; then
19177         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19178         hardcode_libdir_separator_GCJ=:
19179
19180         case $host_cpu in
19181         hppa*64*|ia64*)
19182           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
19183           hardcode_direct_GCJ=no
19184           hardcode_shlibpath_var_GCJ=no
19185           ;;
19186         *)
19187           hardcode_direct_GCJ=yes
19188           export_dynamic_flag_spec_GCJ='${wl}-E'
19189
19190           # hardcode_minus_L: Not really in the search PATH,
19191           # but as the default location of the library.
19192           hardcode_minus_L_GCJ=yes
19193           ;;
19194         esac
19195       fi
19196       ;;
19197
19198     irix5* | irix6* | nonstopux*)
19199       if test "$GCC" = yes; then
19200         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'
19201       else
19202         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'
19203         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
19204       fi
19205       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19206       hardcode_libdir_separator_GCJ=:
19207       link_all_deplibs_GCJ=yes
19208       ;;
19209
19210     netbsd* | netbsdelf*-gnu)
19211       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19212         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
19213       else
19214         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
19215       fi
19216       hardcode_libdir_flag_spec_GCJ='-R$libdir'
19217       hardcode_direct_GCJ=yes
19218       hardcode_shlibpath_var_GCJ=no
19219       ;;
19220
19221     newsos6)
19222       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19223       hardcode_direct_GCJ=yes
19224       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19225       hardcode_libdir_separator_GCJ=:
19226       hardcode_shlibpath_var_GCJ=no
19227       ;;
19228
19229     openbsd*)
19230       if test -f /usr/libexec/ld.so; then
19231         hardcode_direct_GCJ=yes
19232         hardcode_shlibpath_var_GCJ=no
19233         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19234           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19235           archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19236           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19237           export_dynamic_flag_spec_GCJ='${wl}-E'
19238         else
19239           case $host_os in
19240            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19241              archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19242              hardcode_libdir_flag_spec_GCJ='-R$libdir'
19243              ;;
19244            *)
19245              archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19246              hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19247              ;;
19248           esac
19249         fi
19250       else
19251         ld_shlibs_GCJ=no
19252       fi
19253       ;;
19254
19255     os2*)
19256       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19257       hardcode_minus_L_GCJ=yes
19258       allow_undefined_flag_GCJ=unsupported
19259       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'
19260       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19261       ;;
19262
19263     osf3*)
19264       if test "$GCC" = yes; then
19265         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19266         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'
19267       else
19268         allow_undefined_flag_GCJ=' -expect_unresolved \*'
19269         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'
19270       fi
19271       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19272       hardcode_libdir_separator_GCJ=:
19273       ;;
19274
19275     osf4* | osf5*)      # as osf3* with the addition of -msym flag
19276       if test "$GCC" = yes; then
19277         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19278         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'
19279         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19280       else
19281         allow_undefined_flag_GCJ=' -expect_unresolved \*'
19282         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'
19283         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~
19284         $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'
19285
19286         # Both c and cxx compiler support -rpath directly
19287         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
19288       fi
19289       hardcode_libdir_separator_GCJ=:
19290       ;;
19291
19292     solaris*)
19293       no_undefined_flag_GCJ=' -z text'
19294       if test "$GCC" = yes; then
19295         wlarc='${wl}'
19296         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19297         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19298           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19299       else
19300         wlarc=''
19301         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19302         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19303         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19304       fi
19305       hardcode_libdir_flag_spec_GCJ='-R$libdir'
19306       hardcode_shlibpath_var_GCJ=no
19307       case $host_os in
19308       solaris2.[0-5] | solaris2.[0-5].*) ;;
19309       *)
19310         # The compiler driver will combine and reorder linker options,
19311         # but understands `-z linker_flag'.  GCC discards it without `$wl',
19312         # but is careful enough not to reorder.
19313         # Supported since Solaris 2.6 (maybe 2.5.1?)
19314         if test "$GCC" = yes; then
19315           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19316         else
19317           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
19318         fi
19319         ;;
19320       esac
19321       link_all_deplibs_GCJ=yes
19322       ;;
19323
19324     sunos4*)
19325       if test "x$host_vendor" = xsequent; then
19326         # Use $CC to link under sequent, because it throws in some extra .o
19327         # files that make .init and .fini sections work.
19328         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19329       else
19330         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19331       fi
19332       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19333       hardcode_direct_GCJ=yes
19334       hardcode_minus_L_GCJ=yes
19335       hardcode_shlibpath_var_GCJ=no
19336       ;;
19337
19338     sysv4)
19339       case $host_vendor in
19340         sni)
19341           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19342           hardcode_direct_GCJ=yes # is this really true???
19343         ;;
19344         siemens)
19345           ## LD is ld it makes a PLAMLIB
19346           ## CC just makes a GrossModule.
19347           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19348           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
19349           hardcode_direct_GCJ=no
19350         ;;
19351         motorola)
19352           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19353           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
19354         ;;
19355       esac
19356       runpath_var='LD_RUN_PATH'
19357       hardcode_shlibpath_var_GCJ=no
19358       ;;
19359
19360     sysv4.3*)
19361       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19362       hardcode_shlibpath_var_GCJ=no
19363       export_dynamic_flag_spec_GCJ='-Bexport'
19364       ;;
19365
19366     sysv4*MP*)
19367       if test -d /usr/nec; then
19368         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19369         hardcode_shlibpath_var_GCJ=no
19370         runpath_var=LD_RUN_PATH
19371         hardcode_runpath_var=yes
19372         ld_shlibs_GCJ=yes
19373       fi
19374       ;;
19375
19376     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19377       no_undefined_flag_GCJ='${wl}-z,text'
19378       archive_cmds_need_lc_GCJ=no
19379       hardcode_shlibpath_var_GCJ=no
19380       runpath_var='LD_RUN_PATH'
19381
19382       if test "$GCC" = yes; then
19383         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19384         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19385       else
19386         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19387         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19388       fi
19389       ;;
19390
19391     sysv5* | sco3.2v5* | sco5v6*)
19392       # Note: We can NOT use -z defs as we might desire, because we do not
19393       # link with -lc, and that would cause any symbols used from libc to
19394       # always be unresolved, which means just about no library would
19395       # ever link correctly.  If we're not using GNU ld we use -z text
19396       # though, which does catch some bad symbols but isn't as heavy-handed
19397       # as -z defs.
19398       no_undefined_flag_GCJ='${wl}-z,text'
19399       allow_undefined_flag_GCJ='${wl}-z,nodefs'
19400       archive_cmds_need_lc_GCJ=no
19401       hardcode_shlibpath_var_GCJ=no
19402       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19403       hardcode_libdir_separator_GCJ=':'
19404       link_all_deplibs_GCJ=yes
19405       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
19406       runpath_var='LD_RUN_PATH'
19407
19408       if test "$GCC" = yes; then
19409         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19410         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19411       else
19412         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19413         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19414       fi
19415       ;;
19416
19417     uts4*)
19418       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19419       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19420       hardcode_shlibpath_var_GCJ=no
19421       ;;
19422
19423     *)
19424       ld_shlibs_GCJ=no
19425       ;;
19426     esac
19427   fi
19428
19429 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
19430 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
19431 test "$ld_shlibs_GCJ" = no && can_build_shared=no
19432
19433 #
19434 # Do we need to explicitly link libc?
19435 #
19436 case "x$archive_cmds_need_lc_GCJ" in
19437 x|xyes)
19438   # Assume -lc should be added
19439   archive_cmds_need_lc_GCJ=yes
19440
19441   if test "$enable_shared" = yes && test "$GCC" = yes; then
19442     case $archive_cmds_GCJ in
19443     *'~'*)
19444       # FIXME: we may have to deal with multi-command sequences.
19445       ;;
19446     '$CC '*)
19447       # Test whether the compiler implicitly links with -lc since on some
19448       # systems, -lgcc has to come before -lc. If gcc already passes -lc
19449       # to ld, don't add -lc before -lgcc.
19450       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19451 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19452       $rm conftest*
19453       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19454
19455       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19456   (eval $ac_compile) 2>&5
19457   ac_status=$?
19458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19459   (exit $ac_status); } 2>conftest.err; then
19460         soname=conftest
19461         lib=conftest
19462         libobjs=conftest.$ac_objext
19463         deplibs=
19464         wl=$lt_prog_compiler_wl_GCJ
19465         pic_flag=$lt_prog_compiler_pic_GCJ
19466         compiler_flags=-v
19467         linker_flags=-v
19468         verstring=
19469         output_objdir=.
19470         libname=conftest
19471         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
19472         allow_undefined_flag_GCJ=
19473         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19474   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19475   ac_status=$?
19476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19477   (exit $ac_status); }
19478         then
19479           archive_cmds_need_lc_GCJ=no
19480         else
19481           archive_cmds_need_lc_GCJ=yes
19482         fi
19483         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
19484       else
19485         cat conftest.err 1>&5
19486       fi
19487       $rm conftest*
19488       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
19489 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
19490       ;;
19491     esac
19492   fi
19493   ;;
19494 esac
19495
19496 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19497 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19498 library_names_spec=
19499 libname_spec='lib$name'
19500 soname_spec=
19501 shrext_cmds=".so"
19502 postinstall_cmds=
19503 postuninstall_cmds=
19504 finish_cmds=
19505 finish_eval=
19506 shlibpath_var=
19507 shlibpath_overrides_runpath=unknown
19508 version_type=none
19509 dynamic_linker="$host_os ld.so"
19510 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19511
19512 need_lib_prefix=unknown
19513 hardcode_into_libs=no
19514
19515 # when you set need_version to no, make sure it does not cause -set_version
19516 # flags to be left without arguments
19517 need_version=unknown
19518
19519 case $host_os in
19520 aix3*)
19521   version_type=linux
19522   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19523   shlibpath_var=LIBPATH
19524
19525   # AIX 3 has no versioning support, so we append a major version to the name.
19526   soname_spec='${libname}${release}${shared_ext}$major'
19527   ;;
19528
19529 aix4* | aix5*)
19530   version_type=linux
19531   need_lib_prefix=no
19532   need_version=no
19533   hardcode_into_libs=yes
19534   if test "$host_cpu" = ia64; then
19535     # AIX 5 supports IA64
19536     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19537     shlibpath_var=LD_LIBRARY_PATH
19538   else
19539     # With GCC up to 2.95.x, collect2 would create an import file
19540     # for dependence libraries.  The import file would start with
19541     # the line `#! .'.  This would cause the generated library to
19542     # depend on `.', always an invalid library.  This was fixed in
19543     # development snapshots of GCC prior to 3.0.
19544     case $host_os in
19545       aix4 | aix4.[01] | aix4.[01].*)
19546       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19547            echo ' yes '
19548            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19549         :
19550       else
19551         can_build_shared=no
19552       fi
19553       ;;
19554     esac
19555     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19556     # soname into executable. Probably we can add versioning support to
19557     # collect2, so additional links can be useful in future.
19558     if test "$aix_use_runtimelinking" = yes; then
19559       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19560       # instead of lib<name>.a to let people know that these are not
19561       # typical AIX shared libraries.
19562       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19563     else
19564       # We preserve .a as extension for shared libraries through AIX4.2
19565       # and later when we are not doing run time linking.
19566       library_names_spec='${libname}${release}.a $libname.a'
19567       soname_spec='${libname}${release}${shared_ext}$major'
19568     fi
19569     shlibpath_var=LIBPATH
19570   fi
19571   ;;
19572
19573 amigaos*)
19574   library_names_spec='$libname.ixlibrary $libname.a'
19575   # Create ${libname}_ixlibrary.a entries in /sys/libs.
19576   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'
19577   ;;
19578
19579 beos*)
19580   library_names_spec='${libname}${shared_ext}'
19581   dynamic_linker="$host_os ld.so"
19582   shlibpath_var=LIBRARY_PATH
19583   ;;
19584
19585 bsdi[45]*)
19586   version_type=linux
19587   need_version=no
19588   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19589   soname_spec='${libname}${release}${shared_ext}$major'
19590   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19591   shlibpath_var=LD_LIBRARY_PATH
19592   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19593   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19594   # the default ld.so.conf also contains /usr/contrib/lib and
19595   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19596   # libtool to hard-code these into programs
19597   ;;
19598
19599 cygwin* | mingw* | pw32*)
19600   version_type=windows
19601   shrext_cmds=".dll"
19602   need_version=no
19603   need_lib_prefix=no
19604
19605   case $GCC,$host_os in
19606   yes,cygwin* | yes,mingw* | yes,pw32*)
19607     library_names_spec='$libname.dll.a'
19608     # DLL is installed to $(libdir)/../bin by postinstall_cmds
19609     postinstall_cmds='base_file=`basename \${file}`~
19610       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19611       dldir=$destdir/`dirname \$dlpath`~
19612       test -d \$dldir || mkdir -p \$dldir~
19613       $install_prog $dir/$dlname \$dldir/$dlname~
19614       chmod a+x \$dldir/$dlname'
19615     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19616       dlpath=$dir/\$dldll~
19617        $rm \$dlpath'
19618     shlibpath_overrides_runpath=yes
19619
19620     case $host_os in
19621     cygwin*)
19622       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19623       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19624       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19625       ;;
19626     mingw*)
19627       # MinGW DLLs use traditional 'lib' prefix
19628       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19629       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19630       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19631         # It is most probably a Windows format PATH printed by
19632         # mingw gcc, but we are running on Cygwin. Gcc prints its search
19633         # path with ; separators, and with drive letters. We can handle the
19634         # drive letters (cygwin fileutils understands them), so leave them,
19635         # especially as we might pass files found there to a mingw objdump,
19636         # which wouldn't understand a cygwinified path. Ahh.
19637         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19638       else
19639         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19640       fi
19641       ;;
19642     pw32*)
19643       # pw32 DLLs use 'pw' prefix rather than 'lib'
19644       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19645       ;;
19646     esac
19647     ;;
19648
19649   *)
19650     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19651     ;;
19652   esac
19653   dynamic_linker='Win32 ld.exe'
19654   # FIXME: first we should search . and the directory the executable is in
19655   shlibpath_var=PATH
19656   ;;
19657
19658 darwin* | rhapsody*)
19659   dynamic_linker="$host_os dyld"
19660   version_type=darwin
19661   need_lib_prefix=no
19662   need_version=no
19663   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19664   soname_spec='${libname}${release}${major}$shared_ext'
19665   shlibpath_overrides_runpath=yes
19666   shlibpath_var=DYLD_LIBRARY_PATH
19667   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19668    
19669   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19670   ;;
19671
19672 dgux*)
19673   version_type=linux
19674   need_lib_prefix=no
19675   need_version=no
19676   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19677   soname_spec='${libname}${release}${shared_ext}$major'
19678   shlibpath_var=LD_LIBRARY_PATH
19679   ;;
19680
19681 freebsd1*)
19682   dynamic_linker=no
19683   ;;
19684
19685 freebsd* | dragonfly*)
19686   # DragonFly does not have aout.  When/if they implement a new
19687   # versioning mechanism, adjust this.
19688   if test -x /usr/bin/objformat; then
19689     objformat=`/usr/bin/objformat`
19690   else
19691     case $host_os in
19692     freebsd[123]*) objformat=aout ;;
19693     *) objformat=elf ;;
19694     esac
19695   fi
19696   version_type=freebsd-$objformat
19697   case $version_type in
19698     freebsd-elf*)
19699       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19700       need_version=no
19701       need_lib_prefix=no
19702       ;;
19703     freebsd-*)
19704       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19705       need_version=yes
19706       ;;
19707   esac
19708   shlibpath_var=LD_LIBRARY_PATH
19709   case $host_os in
19710   freebsd2*)
19711     shlibpath_overrides_runpath=yes
19712     ;;
19713   freebsd3.[01]* | freebsdelf3.[01]*)
19714     shlibpath_overrides_runpath=yes
19715     hardcode_into_libs=yes
19716     ;;
19717   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19718   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19719     shlibpath_overrides_runpath=no
19720     hardcode_into_libs=yes
19721     ;;
19722   *) # from 4.6 on, and DragonFly
19723     shlibpath_overrides_runpath=yes
19724     hardcode_into_libs=yes
19725     ;;
19726   esac
19727   ;;
19728
19729 gnu*)
19730   version_type=linux
19731   need_lib_prefix=no
19732   need_version=no
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   shlibpath_var=LD_LIBRARY_PATH
19736   hardcode_into_libs=yes
19737   ;;
19738
19739 hpux9* | hpux10* | hpux11*)
19740   # Give a soname corresponding to the major version so that dld.sl refuses to
19741   # link against other versions.
19742   version_type=sunos
19743   need_lib_prefix=no
19744   need_version=no
19745   case $host_cpu in
19746   ia64*)
19747     shrext_cmds='.so'
19748     hardcode_into_libs=yes
19749     dynamic_linker="$host_os dld.so"
19750     shlibpath_var=LD_LIBRARY_PATH
19751     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19752     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19753     soname_spec='${libname}${release}${shared_ext}$major'
19754     if test "X$HPUX_IA64_MODE" = X32; then
19755       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19756     else
19757       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19758     fi
19759     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19760     ;;
19761    hppa*64*)
19762      shrext_cmds='.sl'
19763      hardcode_into_libs=yes
19764      dynamic_linker="$host_os dld.sl"
19765      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19766      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19767      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19768      soname_spec='${libname}${release}${shared_ext}$major'
19769      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19770      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19771      ;;
19772    *)
19773     shrext_cmds='.sl'
19774     dynamic_linker="$host_os dld.sl"
19775     shlibpath_var=SHLIB_PATH
19776     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19777     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19778     soname_spec='${libname}${release}${shared_ext}$major'
19779     ;;
19780   esac
19781   # HP-UX runs *really* slowly unless shared libraries are mode 555.
19782   postinstall_cmds='chmod 555 $lib'
19783   ;;
19784
19785 interix[3-9]*)
19786   version_type=linux
19787   need_lib_prefix=no
19788   need_version=no
19789   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19790   soname_spec='${libname}${release}${shared_ext}$major'
19791   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19792   shlibpath_var=LD_LIBRARY_PATH
19793   shlibpath_overrides_runpath=no
19794   hardcode_into_libs=yes
19795   ;;
19796
19797 irix5* | irix6* | nonstopux*)
19798   case $host_os in
19799     nonstopux*) version_type=nonstopux ;;
19800     *)
19801         if test "$lt_cv_prog_gnu_ld" = yes; then
19802                 version_type=linux
19803         else
19804                 version_type=irix
19805         fi ;;
19806   esac
19807   need_lib_prefix=no
19808   need_version=no
19809   soname_spec='${libname}${release}${shared_ext}$major'
19810   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19811   case $host_os in
19812   irix5* | nonstopux*)
19813     libsuff= shlibsuff=
19814     ;;
19815   *)
19816     case $LD in # libtool.m4 will add one of these switches to LD
19817     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19818       libsuff= shlibsuff= libmagic=32-bit;;
19819     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19820       libsuff=32 shlibsuff=N32 libmagic=N32;;
19821     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19822       libsuff=64 shlibsuff=64 libmagic=64-bit;;
19823     *) libsuff= shlibsuff= libmagic=never-match;;
19824     esac
19825     ;;
19826   esac
19827   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19828   shlibpath_overrides_runpath=no
19829   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19830   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19831   hardcode_into_libs=yes
19832   ;;
19833
19834 # No shared lib support for Linux oldld, aout, or coff.
19835 linux*oldld* | linux*aout* | linux*coff*)
19836   dynamic_linker=no
19837   ;;
19838
19839 # This must be Linux ELF.
19840 linux* | k*bsd*-gnu)
19841   version_type=linux
19842   need_lib_prefix=no
19843   need_version=no
19844   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19845   soname_spec='${libname}${release}${shared_ext}$major'
19846   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19847   shlibpath_var=LD_LIBRARY_PATH
19848   shlibpath_overrides_runpath=no
19849   # This implies no fast_install, which is unacceptable.
19850   # Some rework will be needed to allow for fast_install
19851   # before this can be enabled.
19852   hardcode_into_libs=yes
19853
19854   # Append ld.so.conf contents to the search path
19855   if test -f /etc/ld.so.conf; then
19856     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
19857     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19858   fi
19859
19860   # We used to test for /lib/ld.so.1 and disable shared libraries on
19861   # powerpc, because MkLinux only supported shared libraries with the
19862   # GNU dynamic linker.  Since this was broken with cross compilers,
19863   # most powerpc-linux boxes support dynamic linking these days and
19864   # people can always --disable-shared, the test was removed, and we
19865   # assume the GNU/Linux dynamic linker is in use.
19866   dynamic_linker='GNU/Linux ld.so'
19867   ;;
19868
19869 netbsdelf*-gnu)
19870   version_type=linux
19871   need_lib_prefix=no
19872   need_version=no
19873   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19874   soname_spec='${libname}${release}${shared_ext}$major'
19875   shlibpath_var=LD_LIBRARY_PATH
19876   shlibpath_overrides_runpath=no
19877   hardcode_into_libs=yes
19878   dynamic_linker='NetBSD ld.elf_so'
19879   ;;
19880
19881 netbsd*)
19882   version_type=sunos
19883   need_lib_prefix=no
19884   need_version=no
19885   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19886     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19887     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19888     dynamic_linker='NetBSD (a.out) ld.so'
19889   else
19890     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19891     soname_spec='${libname}${release}${shared_ext}$major'
19892     dynamic_linker='NetBSD ld.elf_so'
19893   fi
19894   shlibpath_var=LD_LIBRARY_PATH
19895   shlibpath_overrides_runpath=yes
19896   hardcode_into_libs=yes
19897   ;;
19898
19899 newsos6)
19900   version_type=linux
19901   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19902   shlibpath_var=LD_LIBRARY_PATH
19903   shlibpath_overrides_runpath=yes
19904   ;;
19905
19906 nto-qnx*)
19907   version_type=linux
19908   need_lib_prefix=no
19909   need_version=no
19910   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19911   soname_spec='${libname}${release}${shared_ext}$major'
19912   shlibpath_var=LD_LIBRARY_PATH
19913   shlibpath_overrides_runpath=yes
19914   ;;
19915
19916 openbsd*)
19917   version_type=sunos
19918   sys_lib_dlsearch_path_spec="/usr/lib"
19919   need_lib_prefix=no
19920   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19921   case $host_os in
19922     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19923     *)                         need_version=no  ;;
19924   esac
19925   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19926   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19927   shlibpath_var=LD_LIBRARY_PATH
19928   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19929     case $host_os in
19930       openbsd2.[89] | openbsd2.[89].*)
19931         shlibpath_overrides_runpath=no
19932         ;;
19933       *)
19934         shlibpath_overrides_runpath=yes
19935         ;;
19936       esac
19937   else
19938     shlibpath_overrides_runpath=yes
19939   fi
19940   ;;
19941
19942 os2*)
19943   libname_spec='$name'
19944   shrext_cmds=".dll"
19945   need_lib_prefix=no
19946   library_names_spec='$libname${shared_ext} $libname.a'
19947   dynamic_linker='OS/2 ld.exe'
19948   shlibpath_var=LIBPATH
19949   ;;
19950
19951 osf3* | osf4* | osf5*)
19952   version_type=osf
19953   need_lib_prefix=no
19954   need_version=no
19955   soname_spec='${libname}${release}${shared_ext}$major'
19956   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19957   shlibpath_var=LD_LIBRARY_PATH
19958   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19959   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19960   ;;
19961
19962 rdos*)
19963   dynamic_linker=no
19964   ;;
19965
19966 solaris*)
19967   version_type=linux
19968   need_lib_prefix=no
19969   need_version=no
19970   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19971   soname_spec='${libname}${release}${shared_ext}$major'
19972   shlibpath_var=LD_LIBRARY_PATH
19973   shlibpath_overrides_runpath=yes
19974   hardcode_into_libs=yes
19975   # ldd complains unless libraries are executable
19976   postinstall_cmds='chmod +x $lib'
19977   ;;
19978
19979 sunos4*)
19980   version_type=sunos
19981   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19982   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19983   shlibpath_var=LD_LIBRARY_PATH
19984   shlibpath_overrides_runpath=yes
19985   if test "$with_gnu_ld" = yes; then
19986     need_lib_prefix=no
19987   fi
19988   need_version=yes
19989   ;;
19990
19991 sysv4 | sysv4.3*)
19992   version_type=linux
19993   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19994   soname_spec='${libname}${release}${shared_ext}$major'
19995   shlibpath_var=LD_LIBRARY_PATH
19996   case $host_vendor in
19997     sni)
19998       shlibpath_overrides_runpath=no
19999       need_lib_prefix=no
20000       export_dynamic_flag_spec='${wl}-Blargedynsym'
20001       runpath_var=LD_RUN_PATH
20002       ;;
20003     siemens)
20004       need_lib_prefix=no
20005       ;;
20006     motorola)
20007       need_lib_prefix=no
20008       need_version=no
20009       shlibpath_overrides_runpath=no
20010       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20011       ;;
20012   esac
20013   ;;
20014
20015 sysv4*MP*)
20016   if test -d /usr/nec ;then
20017     version_type=linux
20018     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20019     soname_spec='$libname${shared_ext}.$major'
20020     shlibpath_var=LD_LIBRARY_PATH
20021   fi
20022   ;;
20023
20024 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20025   version_type=freebsd-elf
20026   need_lib_prefix=no
20027   need_version=no
20028   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20029   soname_spec='${libname}${release}${shared_ext}$major'
20030   shlibpath_var=LD_LIBRARY_PATH
20031   hardcode_into_libs=yes
20032   if test "$with_gnu_ld" = yes; then
20033     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20034     shlibpath_overrides_runpath=no
20035   else
20036     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20037     shlibpath_overrides_runpath=yes
20038     case $host_os in
20039       sco3.2v5*)
20040         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20041         ;;
20042     esac
20043   fi
20044   sys_lib_dlsearch_path_spec='/usr/lib'
20045   ;;
20046
20047 uts4*)
20048   version_type=linux
20049   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20050   soname_spec='${libname}${release}${shared_ext}$major'
20051   shlibpath_var=LD_LIBRARY_PATH
20052   ;;
20053
20054 *)
20055   dynamic_linker=no
20056   ;;
20057 esac
20058 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20059 echo "${ECHO_T}$dynamic_linker" >&6; }
20060 test "$dynamic_linker" = no && can_build_shared=no
20061
20062 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20063 if test "$GCC" = yes; then
20064   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20065 fi
20066
20067 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20068 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20069 hardcode_action_GCJ=
20070 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
20071    test -n "$runpath_var_GCJ" || \
20072    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
20073
20074   # We can hardcode non-existant directories.
20075   if test "$hardcode_direct_GCJ" != no &&
20076      # If the only mechanism to avoid hardcoding is shlibpath_var, we
20077      # have to relink, otherwise we might link with an installed library
20078      # when we should be linking with a yet-to-be-installed one
20079      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
20080      test "$hardcode_minus_L_GCJ" != no; then
20081     # Linking always hardcodes the temporary library directory.
20082     hardcode_action_GCJ=relink
20083   else
20084     # We can link without hardcoding, and we can hardcode nonexisting dirs.
20085     hardcode_action_GCJ=immediate
20086   fi
20087 else
20088   # We cannot hardcode anything, or else we can only hardcode existing
20089   # directories.
20090   hardcode_action_GCJ=unsupported
20091 fi
20092 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
20093 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
20094
20095 if test "$hardcode_action_GCJ" = relink; then
20096   # Fast installation is not supported
20097   enable_fast_install=no
20098 elif test "$shlibpath_overrides_runpath" = yes ||
20099      test "$enable_shared" = no; then
20100   # Fast installation is not necessary
20101   enable_fast_install=needless
20102 fi
20103
20104
20105 # The else clause should only fire when bootstrapping the
20106 # libtool distribution, otherwise you forgot to ship ltmain.sh
20107 # with your package, and you will get complaints that there are
20108 # no rules to generate ltmain.sh.
20109 if test -f "$ltmain"; then
20110   # See if we are running on zsh, and set the options which allow our commands through
20111   # without removal of \ escapes.
20112   if test -n "${ZSH_VERSION+set}" ; then
20113     setopt NO_GLOB_SUBST
20114   fi
20115   # Now quote all the things that may contain metacharacters while being
20116   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20117   # variables and quote the copies for generation of the libtool script.
20118   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20119     SED SHELL STRIP \
20120     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20121     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20122     deplibs_check_method reload_flag reload_cmds need_locks \
20123     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20124     lt_cv_sys_global_symbol_to_c_name_address \
20125     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20126     old_postinstall_cmds old_postuninstall_cmds \
20127     compiler_GCJ \
20128     CC_GCJ \
20129     LD_GCJ \
20130     lt_prog_compiler_wl_GCJ \
20131     lt_prog_compiler_pic_GCJ \
20132     lt_prog_compiler_static_GCJ \
20133     lt_prog_compiler_no_builtin_flag_GCJ \
20134     export_dynamic_flag_spec_GCJ \
20135     thread_safe_flag_spec_GCJ \
20136     whole_archive_flag_spec_GCJ \
20137     enable_shared_with_static_runtimes_GCJ \
20138     old_archive_cmds_GCJ \
20139     old_archive_from_new_cmds_GCJ \
20140     predep_objects_GCJ \
20141     postdep_objects_GCJ \
20142     predeps_GCJ \
20143     postdeps_GCJ \
20144     compiler_lib_search_path_GCJ \
20145     archive_cmds_GCJ \
20146     archive_expsym_cmds_GCJ \
20147     postinstall_cmds_GCJ \
20148     postuninstall_cmds_GCJ \
20149     old_archive_from_expsyms_cmds_GCJ \
20150     allow_undefined_flag_GCJ \
20151     no_undefined_flag_GCJ \
20152     export_symbols_cmds_GCJ \
20153     hardcode_libdir_flag_spec_GCJ \
20154     hardcode_libdir_flag_spec_ld_GCJ \
20155     hardcode_libdir_separator_GCJ \
20156     hardcode_automatic_GCJ \
20157     module_cmds_GCJ \
20158     module_expsym_cmds_GCJ \
20159     lt_cv_prog_compiler_c_o_GCJ \
20160     fix_srcfile_path_GCJ \
20161     exclude_expsyms_GCJ \
20162     include_expsyms_GCJ; do
20163
20164     case $var in
20165     old_archive_cmds_GCJ | \
20166     old_archive_from_new_cmds_GCJ | \
20167     archive_cmds_GCJ | \
20168     archive_expsym_cmds_GCJ | \
20169     module_cmds_GCJ | \
20170     module_expsym_cmds_GCJ | \
20171     old_archive_from_expsyms_cmds_GCJ | \
20172     export_symbols_cmds_GCJ | \
20173     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20174     postinstall_cmds | postuninstall_cmds | \
20175     old_postinstall_cmds | old_postuninstall_cmds | \
20176     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20177       # Double-quote double-evaled strings.
20178       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20179       ;;
20180     *)
20181       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20182       ;;
20183     esac
20184   done
20185
20186   case $lt_echo in
20187   *'\$0 --fallback-echo"')
20188     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20189     ;;
20190   esac
20191
20192 cfgfile="$ofile"
20193
20194   cat <<__EOF__ >> "$cfgfile"
20195 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20196
20197 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20198
20199 # Shell to use when invoking shell scripts.
20200 SHELL=$lt_SHELL
20201
20202 # Whether or not to build shared libraries.
20203 build_libtool_libs=$enable_shared
20204
20205 # Whether or not to build static libraries.
20206 build_old_libs=$enable_static
20207
20208 # Whether or not to add -lc for building shared libraries.
20209 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
20210
20211 # Whether or not to disallow shared libs when runtime libs are static
20212 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
20213
20214 # Whether or not to optimize for fast installation.
20215 fast_install=$enable_fast_install
20216
20217 # The host system.
20218 host_alias=$host_alias
20219 host=$host
20220 host_os=$host_os
20221
20222 # The build system.
20223 build_alias=$build_alias
20224 build=$build
20225 build_os=$build_os
20226
20227 # An echo program that does not interpret backslashes.
20228 echo=$lt_echo
20229
20230 # The archiver.
20231 AR=$lt_AR
20232 AR_FLAGS=$lt_AR_FLAGS
20233
20234 # A C compiler.
20235 LTCC=$lt_LTCC
20236
20237 # LTCC compiler flags.
20238 LTCFLAGS=$lt_LTCFLAGS
20239
20240 # A language-specific compiler.
20241 CC=$lt_compiler_GCJ
20242
20243 # Is the compiler the GNU C compiler?
20244 with_gcc=$GCC_GCJ
20245
20246 # An ERE matcher.
20247 EGREP=$lt_EGREP
20248
20249 # The linker used to build libraries.
20250 LD=$lt_LD_GCJ
20251
20252 # Whether we need hard or soft links.
20253 LN_S=$lt_LN_S
20254
20255 # A BSD-compatible nm program.
20256 NM=$lt_NM
20257
20258 # A symbol stripping program
20259 STRIP=$lt_STRIP
20260
20261 # Used to examine libraries when file_magic_cmd begins "file"
20262 MAGIC_CMD=$MAGIC_CMD
20263
20264 # Used on cygwin: DLL creation program.
20265 DLLTOOL="$DLLTOOL"
20266
20267 # Used on cygwin: object dumper.
20268 OBJDUMP="$OBJDUMP"
20269
20270 # Used on cygwin: assembler.
20271 AS="$AS"
20272
20273 # The name of the directory that contains temporary libtool files.
20274 objdir=$objdir
20275
20276 # How to create reloadable object files.
20277 reload_flag=$lt_reload_flag
20278 reload_cmds=$lt_reload_cmds
20279
20280 # How to pass a linker flag through the compiler.
20281 wl=$lt_lt_prog_compiler_wl_GCJ
20282
20283 # Object file suffix (normally "o").
20284 objext="$ac_objext"
20285
20286 # Old archive suffix (normally "a").
20287 libext="$libext"
20288
20289 # Shared library suffix (normally ".so").
20290 shrext_cmds='$shrext_cmds'
20291
20292 # Executable file suffix (normally "").
20293 exeext="$exeext"
20294
20295 # Additional compiler flags for building library objects.
20296 pic_flag=$lt_lt_prog_compiler_pic_GCJ
20297 pic_mode=$pic_mode
20298
20299 # What is the maximum length of a command?
20300 max_cmd_len=$lt_cv_sys_max_cmd_len
20301
20302 # Does compiler simultaneously support -c and -o options?
20303 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
20304
20305 # Must we lock files when doing compilation?
20306 need_locks=$lt_need_locks
20307
20308 # Do we need the lib prefix for modules?
20309 need_lib_prefix=$need_lib_prefix
20310
20311 # Do we need a version for libraries?
20312 need_version=$need_version
20313
20314 # Whether dlopen is supported.
20315 dlopen_support=$enable_dlopen
20316
20317 # Whether dlopen of programs is supported.
20318 dlopen_self=$enable_dlopen_self
20319
20320 # Whether dlopen of statically linked programs is supported.
20321 dlopen_self_static=$enable_dlopen_self_static
20322
20323 # Compiler flag to prevent dynamic linking.
20324 link_static_flag=$lt_lt_prog_compiler_static_GCJ
20325
20326 # Compiler flag to turn off builtin functions.
20327 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
20328
20329 # Compiler flag to allow reflexive dlopens.
20330 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
20331
20332 # Compiler flag to generate shared objects directly from archives.
20333 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
20334
20335 # Compiler flag to generate thread-safe objects.
20336 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
20337
20338 # Library versioning type.
20339 version_type=$version_type
20340
20341 # Format of library name prefix.
20342 libname_spec=$lt_libname_spec
20343
20344 # List of archive names.  First name is the real one, the rest are links.
20345 # The last name is the one that the linker finds with -lNAME.
20346 library_names_spec=$lt_library_names_spec
20347
20348 # The coded name of the library, if different from the real name.
20349 soname_spec=$lt_soname_spec
20350
20351 # Commands used to build and install an old-style archive.
20352 RANLIB=$lt_RANLIB
20353 old_archive_cmds=$lt_old_archive_cmds_GCJ
20354 old_postinstall_cmds=$lt_old_postinstall_cmds
20355 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20356
20357 # Create an old-style archive from a shared archive.
20358 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
20359
20360 # Create a temporary old-style archive to link instead of a shared archive.
20361 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
20362
20363 # Commands used to build and install a shared archive.
20364 archive_cmds=$lt_archive_cmds_GCJ
20365 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
20366 postinstall_cmds=$lt_postinstall_cmds
20367 postuninstall_cmds=$lt_postuninstall_cmds
20368
20369 # Commands used to build a loadable module (assumed same as above if empty)
20370 module_cmds=$lt_module_cmds_GCJ
20371 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
20372
20373 # Commands to strip libraries.
20374 old_striplib=$lt_old_striplib
20375 striplib=$lt_striplib
20376
20377 # Dependencies to place before the objects being linked to create a
20378 # shared library.
20379 predep_objects=$lt_predep_objects_GCJ
20380
20381 # Dependencies to place after the objects being linked to create a
20382 # shared library.
20383 postdep_objects=$lt_postdep_objects_GCJ
20384
20385 # Dependencies to place before the objects being linked to create a
20386 # shared library.
20387 predeps=$lt_predeps_GCJ
20388
20389 # Dependencies to place after the objects being linked to create a
20390 # shared library.
20391 postdeps=$lt_postdeps_GCJ
20392
20393 # The library search path used internally by the compiler when linking
20394 # a shared library.
20395 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
20396
20397 # Method to check whether dependent libraries are shared objects.
20398 deplibs_check_method=$lt_deplibs_check_method
20399
20400 # Command to use when deplibs_check_method == file_magic.
20401 file_magic_cmd=$lt_file_magic_cmd
20402
20403 # Flag that allows shared libraries with undefined symbols to be built.
20404 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
20405
20406 # Flag that forces no undefined symbols.
20407 no_undefined_flag=$lt_no_undefined_flag_GCJ
20408
20409 # Commands used to finish a libtool library installation in a directory.
20410 finish_cmds=$lt_finish_cmds
20411
20412 # Same as above, but a single script fragment to be evaled but not shown.
20413 finish_eval=$lt_finish_eval
20414
20415 # Take the output of nm and produce a listing of raw symbols and C names.
20416 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20417
20418 # Transform the output of nm in a proper C declaration
20419 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20420
20421 # Transform the output of nm in a C name address pair
20422 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20423
20424 # This is the shared library runtime path variable.
20425 runpath_var=$runpath_var
20426
20427 # This is the shared library path variable.
20428 shlibpath_var=$shlibpath_var
20429
20430 # Is shlibpath searched before the hard-coded library search path?
20431 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20432
20433 # How to hardcode a shared library path into an executable.
20434 hardcode_action=$hardcode_action_GCJ
20435
20436 # Whether we should hardcode library paths into libraries.
20437 hardcode_into_libs=$hardcode_into_libs
20438
20439 # Flag to hardcode \$libdir into a binary during linking.
20440 # This must work even if \$libdir does not exist.
20441 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
20442
20443 # If ld is used when linking, flag to hardcode \$libdir into
20444 # a binary during linking. This must work even if \$libdir does
20445 # not exist.
20446 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
20447
20448 # Whether we need a single -rpath flag with a separated argument.
20449 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
20450
20451 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20452 # resulting binary.
20453 hardcode_direct=$hardcode_direct_GCJ
20454
20455 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20456 # resulting binary.
20457 hardcode_minus_L=$hardcode_minus_L_GCJ
20458
20459 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20460 # the resulting binary.
20461 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
20462
20463 # Set to yes if building a shared library automatically hardcodes DIR into the library
20464 # and all subsequent libraries and executables linked against it.
20465 hardcode_automatic=$hardcode_automatic_GCJ
20466
20467 # Variables whose values should be saved in libtool wrapper scripts and
20468 # restored at relink time.
20469 variables_saved_for_relink="$variables_saved_for_relink"
20470
20471 # Whether libtool must link a program against all its dependency libraries.
20472 link_all_deplibs=$link_all_deplibs_GCJ
20473
20474 # Compile-time system search path for libraries
20475 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20476
20477 # Run-time system search path for libraries
20478 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20479
20480 # Fix the shell variable \$srcfile for the compiler.
20481 fix_srcfile_path=$lt_fix_srcfile_path
20482
20483 # Set to yes if exported symbols are required.
20484 always_export_symbols=$always_export_symbols_GCJ
20485
20486 # The commands to list exported symbols.
20487 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
20488
20489 # The commands to extract the exported symbol list from a shared archive.
20490 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20491
20492 # Symbols that should not be listed in the preloaded symbols.
20493 exclude_expsyms=$lt_exclude_expsyms_GCJ
20494
20495 # Symbols that must always be exported.
20496 include_expsyms=$lt_include_expsyms_GCJ
20497
20498 # ### END LIBTOOL TAG CONFIG: $tagname
20499
20500 __EOF__
20501
20502
20503 else
20504   # If there is no Makefile yet, we rely on a make rule to execute
20505   # `config.status --recheck' to rerun these tests and create the
20506   # libtool script then.
20507   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20508   if test -f "$ltmain_in"; then
20509     test -f Makefile && make "$ltmain"
20510   fi
20511 fi
20512
20513
20514 ac_ext=c
20515 ac_cpp='$CPP $CPPFLAGS'
20516 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20517 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20518 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20519
20520 CC="$lt_save_CC"
20521
20522         else
20523           tagname=""
20524         fi
20525         ;;
20526
20527       RC)
20528         
20529
20530 # Source file extension for RC test sources.
20531 ac_ext=rc
20532
20533 # Object file extension for compiled RC test sources.
20534 objext=o
20535 objext_RC=$objext
20536
20537 # Code to be used in simple compile tests
20538 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
20539
20540 # Code to be used in simple link tests
20541 lt_simple_link_test_code="$lt_simple_compile_test_code"
20542
20543 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20544
20545 # If no C compiler was specified, use CC.
20546 LTCC=${LTCC-"$CC"}
20547
20548 # If no C compiler flags were specified, use CFLAGS.
20549 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20550
20551 # Allow CC to be a program name with arguments.
20552 compiler=$CC
20553
20554
20555 # save warnings/boilerplate of simple test code
20556 ac_outfile=conftest.$ac_objext
20557 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
20558 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20559 _lt_compiler_boilerplate=`cat conftest.err`
20560 $rm conftest*
20561
20562 ac_outfile=conftest.$ac_objext
20563 echo "$lt_simple_link_test_code" >conftest.$ac_ext
20564 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20565 _lt_linker_boilerplate=`cat conftest.err`
20566 $rm conftest*
20567
20568
20569 # Allow CC to be a program name with arguments.
20570 lt_save_CC="$CC"
20571 CC=${RC-"windres"}
20572 compiler=$CC
20573 compiler_RC=$CC
20574 for cc_temp in $compiler""; do
20575   case $cc_temp in
20576     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20577     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20578     \-*) ;;
20579     *) break;;
20580   esac
20581 done
20582 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20583
20584 lt_cv_prog_compiler_c_o_RC=yes
20585
20586 # The else clause should only fire when bootstrapping the
20587 # libtool distribution, otherwise you forgot to ship ltmain.sh
20588 # with your package, and you will get complaints that there are
20589 # no rules to generate ltmain.sh.
20590 if test -f "$ltmain"; then
20591   # See if we are running on zsh, and set the options which allow our commands through
20592   # without removal of \ escapes.
20593   if test -n "${ZSH_VERSION+set}" ; then
20594     setopt NO_GLOB_SUBST
20595   fi
20596   # Now quote all the things that may contain metacharacters while being
20597   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20598   # variables and quote the copies for generation of the libtool script.
20599   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20600     SED SHELL STRIP \
20601     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20602     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20603     deplibs_check_method reload_flag reload_cmds need_locks \
20604     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20605     lt_cv_sys_global_symbol_to_c_name_address \
20606     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20607     old_postinstall_cmds old_postuninstall_cmds \
20608     compiler_RC \
20609     CC_RC \
20610     LD_RC \
20611     lt_prog_compiler_wl_RC \
20612     lt_prog_compiler_pic_RC \
20613     lt_prog_compiler_static_RC \
20614     lt_prog_compiler_no_builtin_flag_RC \
20615     export_dynamic_flag_spec_RC \
20616     thread_safe_flag_spec_RC \
20617     whole_archive_flag_spec_RC \
20618     enable_shared_with_static_runtimes_RC \
20619     old_archive_cmds_RC \
20620     old_archive_from_new_cmds_RC \
20621     predep_objects_RC \
20622     postdep_objects_RC \
20623     predeps_RC \
20624     postdeps_RC \
20625     compiler_lib_search_path_RC \
20626     archive_cmds_RC \
20627     archive_expsym_cmds_RC \
20628     postinstall_cmds_RC \
20629     postuninstall_cmds_RC \
20630     old_archive_from_expsyms_cmds_RC \
20631     allow_undefined_flag_RC \
20632     no_undefined_flag_RC \
20633     export_symbols_cmds_RC \
20634     hardcode_libdir_flag_spec_RC \
20635     hardcode_libdir_flag_spec_ld_RC \
20636     hardcode_libdir_separator_RC \
20637     hardcode_automatic_RC \
20638     module_cmds_RC \
20639     module_expsym_cmds_RC \
20640     lt_cv_prog_compiler_c_o_RC \
20641     fix_srcfile_path_RC \
20642     exclude_expsyms_RC \
20643     include_expsyms_RC; do
20644
20645     case $var in
20646     old_archive_cmds_RC | \
20647     old_archive_from_new_cmds_RC | \
20648     archive_cmds_RC | \
20649     archive_expsym_cmds_RC | \
20650     module_cmds_RC | \
20651     module_expsym_cmds_RC | \
20652     old_archive_from_expsyms_cmds_RC | \
20653     export_symbols_cmds_RC | \
20654     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20655     postinstall_cmds | postuninstall_cmds | \
20656     old_postinstall_cmds | old_postuninstall_cmds | \
20657     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20658       # Double-quote double-evaled strings.
20659       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20660       ;;
20661     *)
20662       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20663       ;;
20664     esac
20665   done
20666
20667   case $lt_echo in
20668   *'\$0 --fallback-echo"')
20669     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20670     ;;
20671   esac
20672
20673 cfgfile="$ofile"
20674
20675   cat <<__EOF__ >> "$cfgfile"
20676 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20677
20678 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20679
20680 # Shell to use when invoking shell scripts.
20681 SHELL=$lt_SHELL
20682
20683 # Whether or not to build shared libraries.
20684 build_libtool_libs=$enable_shared
20685
20686 # Whether or not to build static libraries.
20687 build_old_libs=$enable_static
20688
20689 # Whether or not to add -lc for building shared libraries.
20690 build_libtool_need_lc=$archive_cmds_need_lc_RC
20691
20692 # Whether or not to disallow shared libs when runtime libs are static
20693 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20694
20695 # Whether or not to optimize for fast installation.
20696 fast_install=$enable_fast_install
20697
20698 # The host system.
20699 host_alias=$host_alias
20700 host=$host
20701 host_os=$host_os
20702
20703 # The build system.
20704 build_alias=$build_alias
20705 build=$build
20706 build_os=$build_os
20707
20708 # An echo program that does not interpret backslashes.
20709 echo=$lt_echo
20710
20711 # The archiver.
20712 AR=$lt_AR
20713 AR_FLAGS=$lt_AR_FLAGS
20714
20715 # A C compiler.
20716 LTCC=$lt_LTCC
20717
20718 # LTCC compiler flags.
20719 LTCFLAGS=$lt_LTCFLAGS
20720
20721 # A language-specific compiler.
20722 CC=$lt_compiler_RC
20723
20724 # Is the compiler the GNU C compiler?
20725 with_gcc=$GCC_RC
20726
20727 # An ERE matcher.
20728 EGREP=$lt_EGREP
20729
20730 # The linker used to build libraries.
20731 LD=$lt_LD_RC
20732
20733 # Whether we need hard or soft links.
20734 LN_S=$lt_LN_S
20735
20736 # A BSD-compatible nm program.
20737 NM=$lt_NM
20738
20739 # A symbol stripping program
20740 STRIP=$lt_STRIP
20741
20742 # Used to examine libraries when file_magic_cmd begins "file"
20743 MAGIC_CMD=$MAGIC_CMD
20744
20745 # Used on cygwin: DLL creation program.
20746 DLLTOOL="$DLLTOOL"
20747
20748 # Used on cygwin: object dumper.
20749 OBJDUMP="$OBJDUMP"
20750
20751 # Used on cygwin: assembler.
20752 AS="$AS"
20753
20754 # The name of the directory that contains temporary libtool files.
20755 objdir=$objdir
20756
20757 # How to create reloadable object files.
20758 reload_flag=$lt_reload_flag
20759 reload_cmds=$lt_reload_cmds
20760
20761 # How to pass a linker flag through the compiler.
20762 wl=$lt_lt_prog_compiler_wl_RC
20763
20764 # Object file suffix (normally "o").
20765 objext="$ac_objext"
20766
20767 # Old archive suffix (normally "a").
20768 libext="$libext"
20769
20770 # Shared library suffix (normally ".so").
20771 shrext_cmds='$shrext_cmds'
20772
20773 # Executable file suffix (normally "").
20774 exeext="$exeext"
20775
20776 # Additional compiler flags for building library objects.
20777 pic_flag=$lt_lt_prog_compiler_pic_RC
20778 pic_mode=$pic_mode
20779
20780 # What is the maximum length of a command?
20781 max_cmd_len=$lt_cv_sys_max_cmd_len
20782
20783 # Does compiler simultaneously support -c and -o options?
20784 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20785
20786 # Must we lock files when doing compilation?
20787 need_locks=$lt_need_locks
20788
20789 # Do we need the lib prefix for modules?
20790 need_lib_prefix=$need_lib_prefix
20791
20792 # Do we need a version for libraries?
20793 need_version=$need_version
20794
20795 # Whether dlopen is supported.
20796 dlopen_support=$enable_dlopen
20797
20798 # Whether dlopen of programs is supported.
20799 dlopen_self=$enable_dlopen_self
20800
20801 # Whether dlopen of statically linked programs is supported.
20802 dlopen_self_static=$enable_dlopen_self_static
20803
20804 # Compiler flag to prevent dynamic linking.
20805 link_static_flag=$lt_lt_prog_compiler_static_RC
20806
20807 # Compiler flag to turn off builtin functions.
20808 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20809
20810 # Compiler flag to allow reflexive dlopens.
20811 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20812
20813 # Compiler flag to generate shared objects directly from archives.
20814 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20815
20816 # Compiler flag to generate thread-safe objects.
20817 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20818
20819 # Library versioning type.
20820 version_type=$version_type
20821
20822 # Format of library name prefix.
20823 libname_spec=$lt_libname_spec
20824
20825 # List of archive names.  First name is the real one, the rest are links.
20826 # The last name is the one that the linker finds with -lNAME.
20827 library_names_spec=$lt_library_names_spec
20828
20829 # The coded name of the library, if different from the real name.
20830 soname_spec=$lt_soname_spec
20831
20832 # Commands used to build and install an old-style archive.
20833 RANLIB=$lt_RANLIB
20834 old_archive_cmds=$lt_old_archive_cmds_RC
20835 old_postinstall_cmds=$lt_old_postinstall_cmds
20836 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20837
20838 # Create an old-style archive from a shared archive.
20839 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20840
20841 # Create a temporary old-style archive to link instead of a shared archive.
20842 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20843
20844 # Commands used to build and install a shared archive.
20845 archive_cmds=$lt_archive_cmds_RC
20846 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20847 postinstall_cmds=$lt_postinstall_cmds
20848 postuninstall_cmds=$lt_postuninstall_cmds
20849
20850 # Commands used to build a loadable module (assumed same as above if empty)
20851 module_cmds=$lt_module_cmds_RC
20852 module_expsym_cmds=$lt_module_expsym_cmds_RC
20853
20854 # Commands to strip libraries.
20855 old_striplib=$lt_old_striplib
20856 striplib=$lt_striplib
20857
20858 # Dependencies to place before the objects being linked to create a
20859 # shared library.
20860 predep_objects=$lt_predep_objects_RC
20861
20862 # Dependencies to place after the objects being linked to create a
20863 # shared library.
20864 postdep_objects=$lt_postdep_objects_RC
20865
20866 # Dependencies to place before the objects being linked to create a
20867 # shared library.
20868 predeps=$lt_predeps_RC
20869
20870 # Dependencies to place after the objects being linked to create a
20871 # shared library.
20872 postdeps=$lt_postdeps_RC
20873
20874 # The library search path used internally by the compiler when linking
20875 # a shared library.
20876 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20877
20878 # Method to check whether dependent libraries are shared objects.
20879 deplibs_check_method=$lt_deplibs_check_method
20880
20881 # Command to use when deplibs_check_method == file_magic.
20882 file_magic_cmd=$lt_file_magic_cmd
20883
20884 # Flag that allows shared libraries with undefined symbols to be built.
20885 allow_undefined_flag=$lt_allow_undefined_flag_RC
20886
20887 # Flag that forces no undefined symbols.
20888 no_undefined_flag=$lt_no_undefined_flag_RC
20889
20890 # Commands used to finish a libtool library installation in a directory.
20891 finish_cmds=$lt_finish_cmds
20892
20893 # Same as above, but a single script fragment to be evaled but not shown.
20894 finish_eval=$lt_finish_eval
20895
20896 # Take the output of nm and produce a listing of raw symbols and C names.
20897 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20898
20899 # Transform the output of nm in a proper C declaration
20900 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20901
20902 # Transform the output of nm in a C name address pair
20903 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20904
20905 # This is the shared library runtime path variable.
20906 runpath_var=$runpath_var
20907
20908 # This is the shared library path variable.
20909 shlibpath_var=$shlibpath_var
20910
20911 # Is shlibpath searched before the hard-coded library search path?
20912 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20913
20914 # How to hardcode a shared library path into an executable.
20915 hardcode_action=$hardcode_action_RC
20916
20917 # Whether we should hardcode library paths into libraries.
20918 hardcode_into_libs=$hardcode_into_libs
20919
20920 # Flag to hardcode \$libdir into a binary during linking.
20921 # This must work even if \$libdir does not exist.
20922 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20923
20924 # If ld is used when linking, flag to hardcode \$libdir into
20925 # a binary during linking. This must work even if \$libdir does
20926 # not exist.
20927 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20928
20929 # Whether we need a single -rpath flag with a separated argument.
20930 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20931
20932 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20933 # resulting binary.
20934 hardcode_direct=$hardcode_direct_RC
20935
20936 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20937 # resulting binary.
20938 hardcode_minus_L=$hardcode_minus_L_RC
20939
20940 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20941 # the resulting binary.
20942 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20943
20944 # Set to yes if building a shared library automatically hardcodes DIR into the library
20945 # and all subsequent libraries and executables linked against it.
20946 hardcode_automatic=$hardcode_automatic_RC
20947
20948 # Variables whose values should be saved in libtool wrapper scripts and
20949 # restored at relink time.
20950 variables_saved_for_relink="$variables_saved_for_relink"
20951
20952 # Whether libtool must link a program against all its dependency libraries.
20953 link_all_deplibs=$link_all_deplibs_RC
20954
20955 # Compile-time system search path for libraries
20956 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20957
20958 # Run-time system search path for libraries
20959 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20960
20961 # Fix the shell variable \$srcfile for the compiler.
20962 fix_srcfile_path=$lt_fix_srcfile_path
20963
20964 # Set to yes if exported symbols are required.
20965 always_export_symbols=$always_export_symbols_RC
20966
20967 # The commands to list exported symbols.
20968 export_symbols_cmds=$lt_export_symbols_cmds_RC
20969
20970 # The commands to extract the exported symbol list from a shared archive.
20971 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20972
20973 # Symbols that should not be listed in the preloaded symbols.
20974 exclude_expsyms=$lt_exclude_expsyms_RC
20975
20976 # Symbols that must always be exported.
20977 include_expsyms=$lt_include_expsyms_RC
20978
20979 # ### END LIBTOOL TAG CONFIG: $tagname
20980
20981 __EOF__
20982
20983
20984 else
20985   # If there is no Makefile yet, we rely on a make rule to execute
20986   # `config.status --recheck' to rerun these tests and create the
20987   # libtool script then.
20988   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20989   if test -f "$ltmain_in"; then
20990     test -f Makefile && make "$ltmain"
20991   fi
20992 fi
20993
20994
20995 ac_ext=c
20996 ac_cpp='$CPP $CPPFLAGS'
20997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20999 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21000
21001 CC="$lt_save_CC"
21002
21003         ;;
21004
21005       *)
21006         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
21007 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
21008    { (exit 1); exit 1; }; }
21009         ;;
21010       esac
21011
21012       # Append the new tag name to the list of available tags.
21013       if test -n "$tagname" ; then
21014       available_tags="$available_tags $tagname"
21015     fi
21016     fi
21017   done
21018   IFS="$lt_save_ifs"
21019
21020   # Now substitute the updated list of available tags.
21021   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
21022     mv "${ofile}T" "$ofile"
21023     chmod +x "$ofile"
21024   else
21025     rm -f "${ofile}T"
21026     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
21027 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
21028    { (exit 1); exit 1; }; }
21029   fi
21030 fi
21031
21032
21033
21034 # This can be used to rebuild libtool when needed
21035 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
21036
21037 # Always use our own libtool.
21038 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
21039
21040 # Prevent multiple expansion
21041
21042
21043
21044
21045
21046
21047
21048
21049
21050
21051
21052   
21053
21054   
21055
21056
21057   
21058        
21059        
21060
21061 if test "x$CC" != xcc; then
21062   { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
21063 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
21064 else
21065   { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
21066 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
21067 fi
21068 set dummy $CC; ac_cc=`echo $2 |
21069                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
21070 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
21071   echo $ECHO_N "(cached) $ECHO_C" >&6
21072 else
21073   cat >conftest.$ac_ext <<_ACEOF
21074 /* confdefs.h.  */
21075 _ACEOF
21076 cat confdefs.h >>conftest.$ac_ext
21077 cat >>conftest.$ac_ext <<_ACEOF
21078 /* end confdefs.h.  */
21079
21080 int
21081 main ()
21082 {
21083
21084   ;
21085   return 0;
21086 }
21087 _ACEOF
21088 # Make sure it works both with $CC and with simple cc.
21089 # We do the test twice because some compilers refuse to overwrite an
21090 # existing .o file with -o, though they will create one.
21091 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
21092 rm -f conftest2.*
21093 if { (case "(($ac_try" in
21094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21095   *) ac_try_echo=$ac_try;;
21096 esac
21097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21098   (eval "$ac_try") 2>&5
21099   ac_status=$?
21100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21101   (exit $ac_status); } &&
21102    test -f conftest2.$ac_objext && { (case "(($ac_try" in
21103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21104   *) ac_try_echo=$ac_try;;
21105 esac
21106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21107   (eval "$ac_try") 2>&5
21108   ac_status=$?
21109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21110   (exit $ac_status); };
21111 then
21112   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
21113   if test "x$CC" != xcc; then
21114     # Test first that cc exists at all.
21115     if { ac_try='cc -c conftest.$ac_ext >&5'
21116   { (case "(($ac_try" in
21117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21118   *) ac_try_echo=$ac_try;;
21119 esac
21120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21121   (eval "$ac_try") 2>&5
21122   ac_status=$?
21123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21124   (exit $ac_status); }; }; then
21125       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
21126       rm -f conftest2.*
21127       if { (case "(($ac_try" in
21128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21129   *) ac_try_echo=$ac_try;;
21130 esac
21131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21132   (eval "$ac_try") 2>&5
21133   ac_status=$?
21134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21135   (exit $ac_status); } &&
21136          test -f conftest2.$ac_objext && { (case "(($ac_try" in
21137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21138   *) ac_try_echo=$ac_try;;
21139 esac
21140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21141   (eval "$ac_try") 2>&5
21142   ac_status=$?
21143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21144   (exit $ac_status); };
21145       then
21146         # cc works too.
21147         :
21148       else
21149         # cc exists but doesn't like -o.
21150         eval ac_cv_prog_cc_${ac_cc}_c_o=no
21151       fi
21152     fi
21153   fi
21154 else
21155   eval ac_cv_prog_cc_${ac_cc}_c_o=no
21156 fi
21157 rm -f core conftest*
21158
21159 fi
21160 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
21161   { echo "$as_me:$LINENO: result: yes" >&5
21162 echo "${ECHO_T}yes" >&6; }
21163 else
21164   { echo "$as_me:$LINENO: result: no" >&5
21165 echo "${ECHO_T}no" >&6; }
21166   
21167 cat >>confdefs.h <<\_ACEOF
21168 @%:@define NO_MINUS_C_MINUS_O 1
21169 _ACEOF
21170
21171 fi
21172
21173 # FIXME: we rely on the cache variable name because
21174 # there is no other way.
21175 set dummy $CC
21176 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
21177 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
21178    # Losing compiler, so override with the script.
21179    # FIXME: It is wrong to rewrite CC.
21180    # But if we don't then we get into trouble of one sort or another.
21181    # A longer-term fix would be to have automake use am__CC in this case,
21182    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
21183    CC="$am_aux_dir/compile $CC"
21184 fi
21185
21186
21187 if test "x$cross_compiling" = "xno"; then
21188         CC_FOR_BUILD=${CC_FOR_BUILD-${CC-gcc}}
21189 else
21190         CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
21191 fi
21192
21193
21194
21195 if test -n "$ac_tool_prefix"; then
21196   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
21197 set dummy ${ac_tool_prefix}ar; ac_word=$2
21198 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21199 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21200 if test "${ac_cv_prog_AR+set}" = set; then
21201   echo $ECHO_N "(cached) $ECHO_C" >&6
21202 else
21203   if test -n "$AR"; then
21204   ac_cv_prog_AR="$AR" # Let the user override the test.
21205 else
21206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21207 for as_dir in $PATH
21208 do
21209   IFS=$as_save_IFS
21210   test -z "$as_dir" && as_dir=.
21211   for ac_exec_ext in '' $ac_executable_extensions; do
21212   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21213     ac_cv_prog_AR="${ac_tool_prefix}ar"
21214     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21215     break 2
21216   fi
21217 done
21218 done
21219 IFS=$as_save_IFS
21220
21221 fi
21222 fi
21223 AR=$ac_cv_prog_AR
21224 if test -n "$AR"; then
21225   { echo "$as_me:$LINENO: result: $AR" >&5
21226 echo "${ECHO_T}$AR" >&6; }
21227 else
21228   { echo "$as_me:$LINENO: result: no" >&5
21229 echo "${ECHO_T}no" >&6; }
21230 fi
21231
21232
21233 fi
21234 if test -z "$ac_cv_prog_AR"; then
21235   ac_ct_AR=$AR
21236   # Extract the first word of "ar", so it can be a program name with args.
21237 set dummy ar; ac_word=$2
21238 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21240 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
21241   echo $ECHO_N "(cached) $ECHO_C" >&6
21242 else
21243   if test -n "$ac_ct_AR"; then
21244   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
21245 else
21246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21247 for as_dir in $PATH
21248 do
21249   IFS=$as_save_IFS
21250   test -z "$as_dir" && as_dir=.
21251   for ac_exec_ext in '' $ac_executable_extensions; do
21252   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21253     ac_cv_prog_ac_ct_AR="ar"
21254     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21255     break 2
21256   fi
21257 done
21258 done
21259 IFS=$as_save_IFS
21260
21261 fi
21262 fi
21263 ac_ct_AR=$ac_cv_prog_ac_ct_AR
21264 if test -n "$ac_ct_AR"; then
21265   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
21266 echo "${ECHO_T}$ac_ct_AR" >&6; }
21267 else
21268   { echo "$as_me:$LINENO: result: no" >&5
21269 echo "${ECHO_T}no" >&6; }
21270 fi
21271
21272   if test "x$ac_ct_AR" = x; then
21273     AR=""
21274   else
21275     case $cross_compiling:$ac_tool_warned in
21276 yes:)
21277 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
21278 whose name does not start with the host triplet.  If you think this
21279 configuration is useful to you, please write to autoconf@gnu.org." >&5
21280 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
21281 whose name does not start with the host triplet.  If you think this
21282 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
21283 ac_tool_warned=yes ;;
21284 esac
21285     AR=$ac_ct_AR
21286   fi
21287 else
21288   AR="$ac_cv_prog_AR"
21289 fi
21290
21291 if test -n "$ac_tool_prefix"; then
21292   # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
21293 set dummy ${ac_tool_prefix}ld; ac_word=$2
21294 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21295 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21296 if test "${ac_cv_prog_LD+set}" = set; then
21297   echo $ECHO_N "(cached) $ECHO_C" >&6
21298 else
21299   if test -n "$LD"; then
21300   ac_cv_prog_LD="$LD" # Let the user override the test.
21301 else
21302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21303 for as_dir in $PATH
21304 do
21305   IFS=$as_save_IFS
21306   test -z "$as_dir" && as_dir=.
21307   for ac_exec_ext in '' $ac_executable_extensions; do
21308   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21309     ac_cv_prog_LD="${ac_tool_prefix}ld"
21310     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21311     break 2
21312   fi
21313 done
21314 done
21315 IFS=$as_save_IFS
21316
21317 fi
21318 fi
21319 LD=$ac_cv_prog_LD
21320 if test -n "$LD"; then
21321   { echo "$as_me:$LINENO: result: $LD" >&5
21322 echo "${ECHO_T}$LD" >&6; }
21323 else
21324   { echo "$as_me:$LINENO: result: no" >&5
21325 echo "${ECHO_T}no" >&6; }
21326 fi
21327
21328
21329 fi
21330 if test -z "$ac_cv_prog_LD"; then
21331   ac_ct_LD=$LD
21332   # Extract the first word of "ld", so it can be a program name with args.
21333 set dummy ld; ac_word=$2
21334 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21335 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21336 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
21337   echo $ECHO_N "(cached) $ECHO_C" >&6
21338 else
21339   if test -n "$ac_ct_LD"; then
21340   ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
21341 else
21342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21343 for as_dir in $PATH
21344 do
21345   IFS=$as_save_IFS
21346   test -z "$as_dir" && as_dir=.
21347   for ac_exec_ext in '' $ac_executable_extensions; do
21348   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21349     ac_cv_prog_ac_ct_LD="ld"
21350     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21351     break 2
21352   fi
21353 done
21354 done
21355 IFS=$as_save_IFS
21356
21357 fi
21358 fi
21359 ac_ct_LD=$ac_cv_prog_ac_ct_LD
21360 if test -n "$ac_ct_LD"; then
21361   { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
21362 echo "${ECHO_T}$ac_ct_LD" >&6; }
21363 else
21364   { echo "$as_me:$LINENO: result: no" >&5
21365 echo "${ECHO_T}no" >&6; }
21366 fi
21367
21368   if test "x$ac_ct_LD" = x; then
21369     LD=""
21370   else
21371     case $cross_compiling:$ac_tool_warned in
21372 yes:)
21373 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
21374 whose name does not start with the host triplet.  If you think this
21375 configuration is useful to you, please write to autoconf@gnu.org." >&5
21376 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
21377 whose name does not start with the host triplet.  If you think this
21378 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
21379 ac_tool_warned=yes ;;
21380 esac
21381     LD=$ac_ct_LD
21382   fi
21383 else
21384   LD="$ac_cv_prog_LD"
21385 fi
21386
21387
21388 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21389 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
21390 if test "${ac_cv_header_stdc+set}" = set; then
21391   echo $ECHO_N "(cached) $ECHO_C" >&6
21392 else
21393   cat >conftest.$ac_ext <<_ACEOF
21394 /* confdefs.h.  */
21395 _ACEOF
21396 cat confdefs.h >>conftest.$ac_ext
21397 cat >>conftest.$ac_ext <<_ACEOF
21398 /* end confdefs.h.  */
21399 #include <stdlib.h>
21400 #include <stdarg.h>
21401 #include <string.h>
21402 #include <float.h>
21403
21404 int
21405 main ()
21406 {
21407
21408   ;
21409   return 0;
21410 }
21411 _ACEOF
21412 rm -f conftest.$ac_objext
21413 if { (ac_try="$ac_compile"
21414 case "(($ac_try" in
21415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21416   *) ac_try_echo=$ac_try;;
21417 esac
21418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21419   (eval "$ac_compile") 2>conftest.er1
21420   ac_status=$?
21421   grep -v '^ *+' conftest.er1 >conftest.err
21422   rm -f conftest.er1
21423   cat conftest.err >&5
21424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21425   (exit $ac_status); } && {
21426          test -z "$ac_c_werror_flag" ||
21427          test ! -s conftest.err
21428        } && test -s conftest.$ac_objext; then
21429   ac_cv_header_stdc=yes
21430 else
21431   echo "$as_me: failed program was:" >&5
21432 sed 's/^/| /' conftest.$ac_ext >&5
21433
21434         ac_cv_header_stdc=no
21435 fi
21436
21437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21438
21439 if test $ac_cv_header_stdc = yes; then
21440   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21441   cat >conftest.$ac_ext <<_ACEOF
21442 /* confdefs.h.  */
21443 _ACEOF
21444 cat confdefs.h >>conftest.$ac_ext
21445 cat >>conftest.$ac_ext <<_ACEOF
21446 /* end confdefs.h.  */
21447 #include <string.h>
21448
21449 _ACEOF
21450 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21451   $EGREP "memchr" >/dev/null 2>&1; then
21452   :
21453 else
21454   ac_cv_header_stdc=no
21455 fi
21456 rm -f conftest*
21457
21458 fi
21459
21460 if test $ac_cv_header_stdc = yes; then
21461   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21462   cat >conftest.$ac_ext <<_ACEOF
21463 /* confdefs.h.  */
21464 _ACEOF
21465 cat confdefs.h >>conftest.$ac_ext
21466 cat >>conftest.$ac_ext <<_ACEOF
21467 /* end confdefs.h.  */
21468 #include <stdlib.h>
21469
21470 _ACEOF
21471 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21472   $EGREP "free" >/dev/null 2>&1; then
21473   :
21474 else
21475   ac_cv_header_stdc=no
21476 fi
21477 rm -f conftest*
21478
21479 fi
21480
21481 if test $ac_cv_header_stdc = yes; then
21482   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21483   if test "$cross_compiling" = yes; then
21484   :
21485 else
21486   cat >conftest.$ac_ext <<_ACEOF
21487 /* confdefs.h.  */
21488 _ACEOF
21489 cat confdefs.h >>conftest.$ac_ext
21490 cat >>conftest.$ac_ext <<_ACEOF
21491 /* end confdefs.h.  */
21492 #include <ctype.h>
21493 #include <stdlib.h>
21494 #if ((' ' & 0x0FF) == 0x020)
21495 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21496 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21497 #else
21498 # define ISLOWER(c) \
21499                    (('a' <= (c) && (c) <= 'i') \
21500                      || ('j' <= (c) && (c) <= 'r') \
21501                      || ('s' <= (c) && (c) <= 'z'))
21502 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21503 #endif
21504
21505 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21506 int
21507 main ()
21508 {
21509   int i;
21510   for (i = 0; i < 256; i++)
21511     if (XOR (islower (i), ISLOWER (i))
21512         || toupper (i) != TOUPPER (i))
21513       return 2;
21514   return 0;
21515 }
21516 _ACEOF
21517 rm -f conftest$ac_exeext
21518 if { (ac_try="$ac_link"
21519 case "(($ac_try" in
21520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21521   *) ac_try_echo=$ac_try;;
21522 esac
21523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21524   (eval "$ac_link") 2>&5
21525   ac_status=$?
21526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21527   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21528   { (case "(($ac_try" in
21529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21530   *) ac_try_echo=$ac_try;;
21531 esac
21532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21533   (eval "$ac_try") 2>&5
21534   ac_status=$?
21535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21536   (exit $ac_status); }; }; then
21537   :
21538 else
21539   echo "$as_me: program exited with status $ac_status" >&5
21540 echo "$as_me: failed program was:" >&5
21541 sed 's/^/| /' conftest.$ac_ext >&5
21542
21543 ( exit $ac_status )
21544 ac_cv_header_stdc=no
21545 fi
21546 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21547 fi
21548
21549
21550 fi
21551 fi
21552 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21553 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
21554 if test $ac_cv_header_stdc = yes; then
21555   
21556 cat >>confdefs.h <<\_ACEOF
21557 @%:@define STDC_HEADERS 1
21558 _ACEOF
21559
21560 fi
21561
21562
21563   { echo "$as_me:$LINENO: checking for GNU libc2" >&5
21564 echo $ECHO_N "checking for GNU libc2... $ECHO_C" >&6; }
21565   if test "${knfsd_cv_glibc2+set}" = set; then
21566   echo $ECHO_N "(cached) $ECHO_C" >&6
21567 else
21568   cat >conftest.$ac_ext <<_ACEOF
21569 /* confdefs.h.  */
21570 _ACEOF
21571 cat confdefs.h >>conftest.$ac_ext
21572 cat >>conftest.$ac_ext <<_ACEOF
21573 /* end confdefs.h.  */
21574
21575       #include <features.h>
21576       #if !defined(__GLIBC__)
21577       # error Nope
21578       #endif
21579       
21580 _ACEOF
21581 if { (ac_try="$ac_cpp conftest.$ac_ext"
21582 case "(($ac_try" in
21583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21584   *) ac_try_echo=$ac_try;;
21585 esac
21586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21587   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21588   ac_status=$?
21589   grep -v '^ *+' conftest.er1 >conftest.err
21590   rm -f conftest.er1
21591   cat conftest.err >&5
21592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21593   (exit $ac_status); } >/dev/null && {
21594          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21595          test ! -s conftest.err
21596        }; then
21597   knfsd_cv_glibc2=yes
21598 else
21599   echo "$as_me: failed program was:" >&5
21600 sed 's/^/| /' conftest.$ac_ext >&5
21601
21602   knfsd_cv_glibc2=no
21603 fi
21604
21605 rm -f conftest.err conftest.$ac_ext
21606 fi
21607
21608   { echo "$as_me:$LINENO: result: $knfsd_cv_glibc2" >&5
21609 echo "${ECHO_T}$knfsd_cv_glibc2" >&6; }
21610   if test $knfsd_cv_glibc2 = yes; then
21611     CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
21612     CPPFLAGS_FOR_BUILD="$CPPFLAGS_FOR_BUILD -D_GNU_SOURCE"
21613   fi
21614
21615
21616   { echo "$as_me:$LINENO: checking for BSD signal semantics" >&5
21617 echo $ECHO_N "checking for BSD signal semantics... $ECHO_C" >&6; }
21618   if test "${knfsd_cv_bsd_signals+set}" = set; then
21619   echo $ECHO_N "(cached) $ECHO_C" >&6
21620 else
21621   if test "$cross_compiling" = yes; then
21622   
21623       case "$host_os" in
21624         *linux*) knfsd_cv_bsd_signals=no;;
21625         *bsd*)   knfsd_cv_bsd_signals=yes;;
21626         *)       { { echo "$as_me:$LINENO: error: unable to guess signal semantics for $host_os; please set knfsd_cv_bsd_signals" >&5
21627 echo "$as_me: error: unable to guess signal semantics for $host_os; please set knfsd_cv_bsd_signals" >&2;}
21628    { (exit 1); exit 1; }; };;
21629       esac
21630     
21631 else
21632   cat >conftest.$ac_ext <<_ACEOF
21633 /* confdefs.h.  */
21634 _ACEOF
21635 cat confdefs.h >>conftest.$ac_ext
21636 cat >>conftest.$ac_ext <<_ACEOF
21637 /* end confdefs.h.  */
21638
21639         #include <signal.h>
21640         #include <unistd.h>
21641         #include <sys/wait.h>
21642
21643         static int counter = 0;
21644         static RETSIGTYPE handler(int num) { counter++; }
21645
21646         int main()
21647         {
21648                 int     s;
21649                 if ((s = fork()) < 0) return 1;
21650                 if (s != 0) {
21651                         if (wait(&s) < 0) return 1;
21652                         return WIFSIGNALED(s)? 1 : 0;
21653                 }
21654
21655                 signal(SIGHUP, handler);
21656                 kill(getpid(), SIGHUP); kill(getpid(), SIGHUP);
21657                 return (counter == 2)? 0 : 1;
21658         }
21659     
21660 _ACEOF
21661 rm -f conftest$ac_exeext
21662 if { (ac_try="$ac_link"
21663 case "(($ac_try" in
21664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21665   *) ac_try_echo=$ac_try;;
21666 esac
21667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21668   (eval "$ac_link") 2>&5
21669   ac_status=$?
21670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21671   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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); }; }; then
21681   knfsd_cv_bsd_signals=yes
21682 else
21683   echo "$as_me: program exited with status $ac_status" >&5
21684 echo "$as_me: failed program was:" >&5
21685 sed 's/^/| /' conftest.$ac_ext >&5
21686
21687 ( exit $ac_status )
21688 knfsd_cv_bsd_signals=no
21689 fi
21690 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21691 fi
21692
21693
21694 fi
21695      { echo "$as_me:$LINENO: result: $knfsd_cv_bsd_signals" >&5
21696 echo "${ECHO_T}$knfsd_cv_bsd_signals" >&6; }
21697     test $knfsd_cv_bsd_signals = yes && 
21698 cat >>confdefs.h <<\_ACEOF
21699 @%:@define HAVE_BSD_SIGNALS 1
21700 _ACEOF
21701
21702
21703
21704 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
21705 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
21706 if test "${ac_cv_func_gethostbyname+set}" = set; then
21707   echo $ECHO_N "(cached) $ECHO_C" >&6
21708 else
21709   cat >conftest.$ac_ext <<_ACEOF
21710 /* confdefs.h.  */
21711 _ACEOF
21712 cat confdefs.h >>conftest.$ac_ext
21713 cat >>conftest.$ac_ext <<_ACEOF
21714 /* end confdefs.h.  */
21715 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
21716    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21717 #define gethostbyname innocuous_gethostbyname
21718
21719 /* System header to define __stub macros and hopefully few prototypes,
21720     which can conflict with char gethostbyname (); below.
21721     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21722     <limits.h> exists even on freestanding compilers.  */
21723
21724 #ifdef __STDC__
21725 # include <limits.h>
21726 #else
21727 # include <assert.h>
21728 #endif
21729
21730 #undef gethostbyname
21731
21732 /* Override any GCC internal prototype to avoid an error.
21733    Use char because int might match the return type of a GCC
21734    builtin and then its argument prototype would still apply.  */
21735 #ifdef __cplusplus
21736 extern "C"
21737 #endif
21738 char gethostbyname ();
21739 /* The GNU C library defines this for functions which it implements
21740     to always fail with ENOSYS.  Some functions are actually named
21741     something starting with __ and the normal name is an alias.  */
21742 #if defined __stub_gethostbyname || defined __stub___gethostbyname
21743 choke me
21744 #endif
21745
21746 int
21747 main ()
21748 {
21749 return gethostbyname ();
21750   ;
21751   return 0;
21752 }
21753 _ACEOF
21754 rm -f conftest.$ac_objext conftest$ac_exeext
21755 if { (ac_try="$ac_link"
21756 case "(($ac_try" in
21757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21758   *) ac_try_echo=$ac_try;;
21759 esac
21760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21761   (eval "$ac_link") 2>conftest.er1
21762   ac_status=$?
21763   grep -v '^ *+' conftest.er1 >conftest.err
21764   rm -f conftest.er1
21765   cat conftest.err >&5
21766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21767   (exit $ac_status); } && {
21768          test -z "$ac_c_werror_flag" ||
21769          test ! -s conftest.err
21770        } && test -s conftest$ac_exeext &&
21771        $as_test_x conftest$ac_exeext; then
21772   ac_cv_func_gethostbyname=yes
21773 else
21774   echo "$as_me: failed program was:" >&5
21775 sed 's/^/| /' conftest.$ac_ext >&5
21776
21777         ac_cv_func_gethostbyname=no
21778 fi
21779
21780 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21781       conftest$ac_exeext conftest.$ac_ext
21782 fi
21783 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
21784 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
21785 if test $ac_cv_func_gethostbyname = yes; then
21786   :
21787 else
21788   { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
21789 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
21790 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
21791   echo $ECHO_N "(cached) $ECHO_C" >&6
21792 else
21793   ac_check_lib_save_LIBS=$LIBS
21794 LIBS="-lnsl  $LIBS"
21795 cat >conftest.$ac_ext <<_ACEOF
21796 /* confdefs.h.  */
21797 _ACEOF
21798 cat confdefs.h >>conftest.$ac_ext
21799 cat >>conftest.$ac_ext <<_ACEOF
21800 /* end confdefs.h.  */
21801
21802 /* Override any GCC internal prototype to avoid an error.
21803    Use char because int might match the return type of a GCC
21804    builtin and then its argument prototype would still apply.  */
21805 #ifdef __cplusplus
21806 extern "C"
21807 #endif
21808 char gethostbyname ();
21809 int
21810 main ()
21811 {
21812 return gethostbyname ();
21813   ;
21814   return 0;
21815 }
21816 _ACEOF
21817 rm -f conftest.$ac_objext conftest$ac_exeext
21818 if { (ac_try="$ac_link"
21819 case "(($ac_try" in
21820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21821   *) ac_try_echo=$ac_try;;
21822 esac
21823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21824   (eval "$ac_link") 2>conftest.er1
21825   ac_status=$?
21826   grep -v '^ *+' conftest.er1 >conftest.err
21827   rm -f conftest.er1
21828   cat conftest.err >&5
21829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21830   (exit $ac_status); } && {
21831          test -z "$ac_c_werror_flag" ||
21832          test ! -s conftest.err
21833        } && test -s conftest$ac_exeext &&
21834        $as_test_x conftest$ac_exeext; then
21835   ac_cv_lib_nsl_gethostbyname=yes
21836 else
21837   echo "$as_me: failed program was:" >&5
21838 sed 's/^/| /' conftest.$ac_ext >&5
21839
21840         ac_cv_lib_nsl_gethostbyname=no
21841 fi
21842
21843 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21844       conftest$ac_exeext conftest.$ac_ext
21845 LIBS=$ac_check_lib_save_LIBS
21846 fi
21847 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
21848 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
21849 if test $ac_cv_lib_nsl_gethostbyname = yes; then
21850   LIBNSL="-lnsl"
21851 fi
21852
21853 fi
21854
21855
21856
21857 { echo "$as_me:$LINENO: checking for connect" >&5
21858 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
21859 if test "${ac_cv_func_connect+set}" = set; then
21860   echo $ECHO_N "(cached) $ECHO_C" >&6
21861 else
21862   cat >conftest.$ac_ext <<_ACEOF
21863 /* confdefs.h.  */
21864 _ACEOF
21865 cat confdefs.h >>conftest.$ac_ext
21866 cat >>conftest.$ac_ext <<_ACEOF
21867 /* end confdefs.h.  */
21868 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
21869    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21870 #define connect innocuous_connect
21871
21872 /* System header to define __stub macros and hopefully few prototypes,
21873     which can conflict with char connect (); below.
21874     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21875     <limits.h> exists even on freestanding compilers.  */
21876
21877 #ifdef __STDC__
21878 # include <limits.h>
21879 #else
21880 # include <assert.h>
21881 #endif
21882
21883 #undef connect
21884
21885 /* Override any GCC internal prototype to avoid an error.
21886    Use char because int might match the return type of a GCC
21887    builtin and then its argument prototype would still apply.  */
21888 #ifdef __cplusplus
21889 extern "C"
21890 #endif
21891 char connect ();
21892 /* The GNU C library defines this for functions which it implements
21893     to always fail with ENOSYS.  Some functions are actually named
21894     something starting with __ and the normal name is an alias.  */
21895 #if defined __stub_connect || defined __stub___connect
21896 choke me
21897 #endif
21898
21899 int
21900 main ()
21901 {
21902 return connect ();
21903   ;
21904   return 0;
21905 }
21906 _ACEOF
21907 rm -f conftest.$ac_objext conftest$ac_exeext
21908 if { (ac_try="$ac_link"
21909 case "(($ac_try" in
21910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21911   *) ac_try_echo=$ac_try;;
21912 esac
21913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21914   (eval "$ac_link") 2>conftest.er1
21915   ac_status=$?
21916   grep -v '^ *+' conftest.er1 >conftest.err
21917   rm -f conftest.er1
21918   cat conftest.err >&5
21919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21920   (exit $ac_status); } && {
21921          test -z "$ac_c_werror_flag" ||
21922          test ! -s conftest.err
21923        } && test -s conftest$ac_exeext &&
21924        $as_test_x conftest$ac_exeext; then
21925   ac_cv_func_connect=yes
21926 else
21927   echo "$as_me: failed program was:" >&5
21928 sed 's/^/| /' conftest.$ac_ext >&5
21929
21930         ac_cv_func_connect=no
21931 fi
21932
21933 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21934       conftest$ac_exeext conftest.$ac_ext
21935 fi
21936 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
21937 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
21938 if test $ac_cv_func_connect = yes; then
21939   :
21940 else
21941   { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
21942 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
21943 if test "${ac_cv_lib_socket_connect+set}" = set; then
21944   echo $ECHO_N "(cached) $ECHO_C" >&6
21945 else
21946   ac_check_lib_save_LIBS=$LIBS
21947 LIBS="-lsocket $LIBNSL $LIBS"
21948 cat >conftest.$ac_ext <<_ACEOF
21949 /* confdefs.h.  */
21950 _ACEOF
21951 cat confdefs.h >>conftest.$ac_ext
21952 cat >>conftest.$ac_ext <<_ACEOF
21953 /* end confdefs.h.  */
21954
21955 /* Override any GCC internal prototype to avoid an error.
21956    Use char because int might match the return type of a GCC
21957    builtin and then its argument prototype would still apply.  */
21958 #ifdef __cplusplus
21959 extern "C"
21960 #endif
21961 char connect ();
21962 int
21963 main ()
21964 {
21965 return connect ();
21966   ;
21967   return 0;
21968 }
21969 _ACEOF
21970 rm -f conftest.$ac_objext conftest$ac_exeext
21971 if { (ac_try="$ac_link"
21972 case "(($ac_try" in
21973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21974   *) ac_try_echo=$ac_try;;
21975 esac
21976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21977   (eval "$ac_link") 2>conftest.er1
21978   ac_status=$?
21979   grep -v '^ *+' conftest.er1 >conftest.err
21980   rm -f conftest.er1
21981   cat conftest.err >&5
21982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21983   (exit $ac_status); } && {
21984          test -z "$ac_c_werror_flag" ||
21985          test ! -s conftest.err
21986        } && test -s conftest$ac_exeext &&
21987        $as_test_x conftest$ac_exeext; then
21988   ac_cv_lib_socket_connect=yes
21989 else
21990   echo "$as_me: failed program was:" >&5
21991 sed 's/^/| /' conftest.$ac_ext >&5
21992
21993         ac_cv_lib_socket_connect=no
21994 fi
21995
21996 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21997       conftest$ac_exeext conftest.$ac_ext
21998 LIBS=$ac_check_lib_save_LIBS
21999 fi
22000 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
22001 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
22002 if test $ac_cv_lib_socket_connect = yes; then
22003   LIBSOCKET="-lsocket"
22004 else
22005   { { echo "$as_me:$LINENO: error: Function 'socket' not found." >&5
22006 echo "$as_me: error: Function 'socket' not found." >&2;}
22007    { (exit 1); exit 1; }; }
22008 fi
22009
22010 fi
22011
22012
22013 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
22014 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
22015 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
22016   echo $ECHO_N "(cached) $ECHO_C" >&6
22017 else
22018   ac_check_lib_save_LIBS=$LIBS
22019 LIBS="-lcrypt  $LIBS"
22020 cat >conftest.$ac_ext <<_ACEOF
22021 /* confdefs.h.  */
22022 _ACEOF
22023 cat confdefs.h >>conftest.$ac_ext
22024 cat >>conftest.$ac_ext <<_ACEOF
22025 /* end confdefs.h.  */
22026
22027 /* Override any GCC internal prototype to avoid an error.
22028    Use char because int might match the return type of a GCC
22029    builtin and then its argument prototype would still apply.  */
22030 #ifdef __cplusplus
22031 extern "C"
22032 #endif
22033 char crypt ();
22034 int
22035 main ()
22036 {
22037 return crypt ();
22038   ;
22039   return 0;
22040 }
22041 _ACEOF
22042 rm -f conftest.$ac_objext conftest$ac_exeext
22043 if { (ac_try="$ac_link"
22044 case "(($ac_try" in
22045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22046   *) ac_try_echo=$ac_try;;
22047 esac
22048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22049   (eval "$ac_link") 2>conftest.er1
22050   ac_status=$?
22051   grep -v '^ *+' conftest.er1 >conftest.err
22052   rm -f conftest.er1
22053   cat conftest.err >&5
22054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22055   (exit $ac_status); } && {
22056          test -z "$ac_c_werror_flag" ||
22057          test ! -s conftest.err
22058        } && test -s conftest$ac_exeext &&
22059        $as_test_x conftest$ac_exeext; then
22060   ac_cv_lib_crypt_crypt=yes
22061 else
22062   echo "$as_me: failed program was:" >&5
22063 sed 's/^/| /' conftest.$ac_ext >&5
22064
22065         ac_cv_lib_crypt_crypt=no
22066 fi
22067
22068 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22069       conftest$ac_exeext conftest.$ac_ext
22070 LIBS=$ac_check_lib_save_LIBS
22071 fi
22072 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
22073 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
22074 if test $ac_cv_lib_crypt_crypt = yes; then
22075   LIBCRYPT="-lcrypt"
22076 fi
22077
22078 if test "$enable_nfsv4" = yes; then
22079     { echo "$as_me:$LINENO: checking for event_dispatch in -levent" >&5
22080 echo $ECHO_N "checking for event_dispatch in -levent... $ECHO_C" >&6; }
22081 if test "${ac_cv_lib_event_event_dispatch+set}" = set; then
22082   echo $ECHO_N "(cached) $ECHO_C" >&6
22083 else
22084   ac_check_lib_save_LIBS=$LIBS
22085 LIBS="-levent  $LIBS"
22086 cat >conftest.$ac_ext <<_ACEOF
22087 /* confdefs.h.  */
22088 _ACEOF
22089 cat confdefs.h >>conftest.$ac_ext
22090 cat >>conftest.$ac_ext <<_ACEOF
22091 /* end confdefs.h.  */
22092
22093 /* Override any GCC internal prototype to avoid an error.
22094    Use char because int might match the return type of a GCC
22095    builtin and then its argument prototype would still apply.  */
22096 #ifdef __cplusplus
22097 extern "C"
22098 #endif
22099 char event_dispatch ();
22100 int
22101 main ()
22102 {
22103 return event_dispatch ();
22104   ;
22105   return 0;
22106 }
22107 _ACEOF
22108 rm -f conftest.$ac_objext conftest$ac_exeext
22109 if { (ac_try="$ac_link"
22110 case "(($ac_try" in
22111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22112   *) ac_try_echo=$ac_try;;
22113 esac
22114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22115   (eval "$ac_link") 2>conftest.er1
22116   ac_status=$?
22117   grep -v '^ *+' conftest.er1 >conftest.err
22118   rm -f conftest.er1
22119   cat conftest.err >&5
22120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22121   (exit $ac_status); } && {
22122          test -z "$ac_c_werror_flag" ||
22123          test ! -s conftest.err
22124        } && test -s conftest$ac_exeext &&
22125        $as_test_x conftest$ac_exeext; then
22126   ac_cv_lib_event_event_dispatch=yes
22127 else
22128   echo "$as_me: failed program was:" >&5
22129 sed 's/^/| /' conftest.$ac_ext >&5
22130
22131         ac_cv_lib_event_event_dispatch=no
22132 fi
22133
22134 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22135       conftest$ac_exeext conftest.$ac_ext
22136 LIBS=$ac_check_lib_save_LIBS
22137 fi
22138 { echo "$as_me:$LINENO: result: $ac_cv_lib_event_event_dispatch" >&5
22139 echo "${ECHO_T}$ac_cv_lib_event_event_dispatch" >&6; }
22140 if test $ac_cv_lib_event_event_dispatch = yes; then
22141   libevent=1
22142 else
22143   { { echo "$as_me:$LINENO: error: libevent needed for nfsv4 support" >&5
22144 echo "$as_me: error: libevent needed for nfsv4 support" >&2;}
22145    { (exit 1); exit 1; }; }
22146 fi
22147
22148     { echo "$as_me:$LINENO: checking for nfs4_init_name_mapping in -lnfsidmap" >&5
22149 echo $ECHO_N "checking for nfs4_init_name_mapping in -lnfsidmap... $ECHO_C" >&6; }
22150 if test "${ac_cv_lib_nfsidmap_nfs4_init_name_mapping+set}" = set; then
22151   echo $ECHO_N "(cached) $ECHO_C" >&6
22152 else
22153   ac_check_lib_save_LIBS=$LIBS
22154 LIBS="-lnfsidmap  $LIBS"
22155 cat >conftest.$ac_ext <<_ACEOF
22156 /* confdefs.h.  */
22157 _ACEOF
22158 cat confdefs.h >>conftest.$ac_ext
22159 cat >>conftest.$ac_ext <<_ACEOF
22160 /* end confdefs.h.  */
22161
22162 /* Override any GCC internal prototype to avoid an error.
22163    Use char because int might match the return type of a GCC
22164    builtin and then its argument prototype would still apply.  */
22165 #ifdef __cplusplus
22166 extern "C"
22167 #endif
22168 char nfs4_init_name_mapping ();
22169 int
22170 main ()
22171 {
22172 return nfs4_init_name_mapping ();
22173   ;
22174   return 0;
22175 }
22176 _ACEOF
22177 rm -f conftest.$ac_objext conftest$ac_exeext
22178 if { (ac_try="$ac_link"
22179 case "(($ac_try" in
22180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22181   *) ac_try_echo=$ac_try;;
22182 esac
22183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22184   (eval "$ac_link") 2>conftest.er1
22185   ac_status=$?
22186   grep -v '^ *+' conftest.er1 >conftest.err
22187   rm -f conftest.er1
22188   cat conftest.err >&5
22189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22190   (exit $ac_status); } && {
22191          test -z "$ac_c_werror_flag" ||
22192          test ! -s conftest.err
22193        } && test -s conftest$ac_exeext &&
22194        $as_test_x conftest$ac_exeext; then
22195   ac_cv_lib_nfsidmap_nfs4_init_name_mapping=yes
22196 else
22197   echo "$as_me: failed program was:" >&5
22198 sed 's/^/| /' conftest.$ac_ext >&5
22199
22200         ac_cv_lib_nfsidmap_nfs4_init_name_mapping=no
22201 fi
22202
22203 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22204       conftest$ac_exeext conftest.$ac_ext
22205 LIBS=$ac_check_lib_save_LIBS
22206 fi
22207 { echo "$as_me:$LINENO: result: $ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&5
22208 echo "${ECHO_T}$ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&6; }
22209 if test $ac_cv_lib_nfsidmap_nfs4_init_name_mapping = yes; then
22210   libnfsidmap=1
22211 else
22212   { { echo "$as_me:$LINENO: error: libnfsidmap needed for nfsv4 support" >&5
22213 echo "$as_me: error: libnfsidmap needed for nfsv4 support" >&2;}
22214    { (exit 1); exit 1; }; }
22215 fi
22216
22217     
22218 for ac_header in event.h
22219 do
22220 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22221 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22222   { echo "$as_me:$LINENO: checking for $ac_header" >&5
22223 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22224 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22225   echo $ECHO_N "(cached) $ECHO_C" >&6
22226 fi
22227 ac_res=`eval echo '${'$as_ac_Header'}'`
22228                { echo "$as_me:$LINENO: result: $ac_res" >&5
22229 echo "${ECHO_T}$ac_res" >&6; }
22230 else
22231   # Is the header compilable?
22232 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22233 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22234 cat >conftest.$ac_ext <<_ACEOF
22235 /* confdefs.h.  */
22236 _ACEOF
22237 cat confdefs.h >>conftest.$ac_ext
22238 cat >>conftest.$ac_ext <<_ACEOF
22239 /* end confdefs.h.  */
22240 $ac_includes_default
22241 @%:@include <$ac_header>
22242 _ACEOF
22243 rm -f conftest.$ac_objext
22244 if { (ac_try="$ac_compile"
22245 case "(($ac_try" in
22246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22247   *) ac_try_echo=$ac_try;;
22248 esac
22249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22250   (eval "$ac_compile") 2>conftest.er1
22251   ac_status=$?
22252   grep -v '^ *+' conftest.er1 >conftest.err
22253   rm -f conftest.er1
22254   cat conftest.err >&5
22255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22256   (exit $ac_status); } && {
22257          test -z "$ac_c_werror_flag" ||
22258          test ! -s conftest.err
22259        } && test -s conftest.$ac_objext; then
22260   ac_header_compiler=yes
22261 else
22262   echo "$as_me: failed program was:" >&5
22263 sed 's/^/| /' conftest.$ac_ext >&5
22264
22265         ac_header_compiler=no
22266 fi
22267
22268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22269 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22270 echo "${ECHO_T}$ac_header_compiler" >&6; }
22271
22272 # Is the header present?
22273 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22274 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22275 cat >conftest.$ac_ext <<_ACEOF
22276 /* confdefs.h.  */
22277 _ACEOF
22278 cat confdefs.h >>conftest.$ac_ext
22279 cat >>conftest.$ac_ext <<_ACEOF
22280 /* end confdefs.h.  */
22281 @%:@include <$ac_header>
22282 _ACEOF
22283 if { (ac_try="$ac_cpp conftest.$ac_ext"
22284 case "(($ac_try" in
22285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22286   *) ac_try_echo=$ac_try;;
22287 esac
22288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22289   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22290   ac_status=$?
22291   grep -v '^ *+' conftest.er1 >conftest.err
22292   rm -f conftest.er1
22293   cat conftest.err >&5
22294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22295   (exit $ac_status); } >/dev/null && {
22296          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22297          test ! -s conftest.err
22298        }; then
22299   ac_header_preproc=yes
22300 else
22301   echo "$as_me: failed program was:" >&5
22302 sed 's/^/| /' conftest.$ac_ext >&5
22303
22304   ac_header_preproc=no
22305 fi
22306
22307 rm -f conftest.err conftest.$ac_ext
22308 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22309 echo "${ECHO_T}$ac_header_preproc" >&6; }
22310
22311 # So?  What about this header?
22312 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22313   yes:no: )
22314     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22315 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22316     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22317 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22318     ac_header_preproc=yes
22319     ;;
22320   no:yes:* )
22321     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22322 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22323     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22324 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22325     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22326 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22327     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22328 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22329     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22330 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22331     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22332 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22333     ( cat <<\_ASBOX
22334 @%:@@%:@ ------------------------------- @%:@@%:@
22335 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
22336 @%:@@%:@ ------------------------------- @%:@@%:@
22337 _ASBOX
22338      ) | sed "s/^/$as_me: WARNING:     /" >&2
22339     ;;
22340 esac
22341 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22342 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22343 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22344   echo $ECHO_N "(cached) $ECHO_C" >&6
22345 else
22346   eval "$as_ac_Header=\$ac_header_preproc"
22347 fi
22348 ac_res=`eval echo '${'$as_ac_Header'}'`
22349                { echo "$as_me:$LINENO: result: $ac_res" >&5
22350 echo "${ECHO_T}$ac_res" >&6; }
22351
22352 fi
22353 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22354   cat >>confdefs.h <<_ACEOF
22355 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22356 _ACEOF
22357  
22358 else
22359   { { echo "$as_me:$LINENO: error: libevent needed for nfsv4 support" >&5
22360 echo "$as_me: error: libevent needed for nfsv4 support" >&2;}
22361    { (exit 1); exit 1; }; }
22362 fi
22363
22364 done
22365
22366     
22367 for ac_header in nfsidmap.h
22368 do
22369 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22370 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22371   { echo "$as_me:$LINENO: checking for $ac_header" >&5
22372 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22373 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22374   echo $ECHO_N "(cached) $ECHO_C" >&6
22375 fi
22376 ac_res=`eval echo '${'$as_ac_Header'}'`
22377                { echo "$as_me:$LINENO: result: $ac_res" >&5
22378 echo "${ECHO_T}$ac_res" >&6; }
22379 else
22380   # Is the header compilable?
22381 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22382 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22383 cat >conftest.$ac_ext <<_ACEOF
22384 /* confdefs.h.  */
22385 _ACEOF
22386 cat confdefs.h >>conftest.$ac_ext
22387 cat >>conftest.$ac_ext <<_ACEOF
22388 /* end confdefs.h.  */
22389 $ac_includes_default
22390 @%:@include <$ac_header>
22391 _ACEOF
22392 rm -f conftest.$ac_objext
22393 if { (ac_try="$ac_compile"
22394 case "(($ac_try" in
22395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22396   *) ac_try_echo=$ac_try;;
22397 esac
22398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22399   (eval "$ac_compile") 2>conftest.er1
22400   ac_status=$?
22401   grep -v '^ *+' conftest.er1 >conftest.err
22402   rm -f conftest.er1
22403   cat conftest.err >&5
22404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22405   (exit $ac_status); } && {
22406          test -z "$ac_c_werror_flag" ||
22407          test ! -s conftest.err
22408        } && test -s conftest.$ac_objext; then
22409   ac_header_compiler=yes
22410 else
22411   echo "$as_me: failed program was:" >&5
22412 sed 's/^/| /' conftest.$ac_ext >&5
22413
22414         ac_header_compiler=no
22415 fi
22416
22417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22418 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22419 echo "${ECHO_T}$ac_header_compiler" >&6; }
22420
22421 # Is the header present?
22422 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22423 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22424 cat >conftest.$ac_ext <<_ACEOF
22425 /* confdefs.h.  */
22426 _ACEOF
22427 cat confdefs.h >>conftest.$ac_ext
22428 cat >>conftest.$ac_ext <<_ACEOF
22429 /* end confdefs.h.  */
22430 @%:@include <$ac_header>
22431 _ACEOF
22432 if { (ac_try="$ac_cpp conftest.$ac_ext"
22433 case "(($ac_try" in
22434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22435   *) ac_try_echo=$ac_try;;
22436 esac
22437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22438   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22439   ac_status=$?
22440   grep -v '^ *+' conftest.er1 >conftest.err
22441   rm -f conftest.er1
22442   cat conftest.err >&5
22443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22444   (exit $ac_status); } >/dev/null && {
22445          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22446          test ! -s conftest.err
22447        }; then
22448   ac_header_preproc=yes
22449 else
22450   echo "$as_me: failed program was:" >&5
22451 sed 's/^/| /' conftest.$ac_ext >&5
22452
22453   ac_header_preproc=no
22454 fi
22455
22456 rm -f conftest.err conftest.$ac_ext
22457 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22458 echo "${ECHO_T}$ac_header_preproc" >&6; }
22459
22460 # So?  What about this header?
22461 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22462   yes:no: )
22463     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22464 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22465     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22466 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22467     ac_header_preproc=yes
22468     ;;
22469   no:yes:* )
22470     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22471 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22472     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22473 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22474     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22475 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22476     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22477 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22478     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22479 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22480     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22481 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22482     ( cat <<\_ASBOX
22483 @%:@@%:@ ------------------------------- @%:@@%:@
22484 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
22485 @%:@@%:@ ------------------------------- @%:@@%:@
22486 _ASBOX
22487      ) | sed "s/^/$as_me: WARNING:     /" >&2
22488     ;;
22489 esac
22490 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22491 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22492 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22493   echo $ECHO_N "(cached) $ECHO_C" >&6
22494 else
22495   eval "$as_ac_Header=\$ac_header_preproc"
22496 fi
22497 ac_res=`eval echo '${'$as_ac_Header'}'`
22498                { echo "$as_me:$LINENO: result: $ac_res" >&5
22499 echo "${ECHO_T}$ac_res" >&6; }
22500
22501 fi
22502 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22503   cat >>confdefs.h <<_ACEOF
22504 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22505 _ACEOF
22506  
22507 else
22508   { { echo "$as_me:$LINENO: error: libnfsidmap needed for nfsv4 support" >&5
22509 echo "$as_me: error: libnfsidmap needed for nfsv4 support" >&2;}
22510    { (exit 1); exit 1; }; }
22511 fi
22512
22513 done
22514
22515             if test "$enable_gss" = yes; then
22516      
22517
22518 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
22519         if test -n "$ac_tool_prefix"; then
22520   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
22521 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
22522 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22524 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22525   echo $ECHO_N "(cached) $ECHO_C" >&6
22526 else
22527   case $PKG_CONFIG in
22528   [\\/]* | ?:[\\/]*)
22529   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22530   ;;
22531   *)
22532   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22533 for as_dir in $PATH
22534 do
22535   IFS=$as_save_IFS
22536   test -z "$as_dir" && as_dir=.
22537   for ac_exec_ext in '' $ac_executable_extensions; do
22538   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22539     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22540     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22541     break 2
22542   fi
22543 done
22544 done
22545 IFS=$as_save_IFS
22546
22547   ;;
22548 esac
22549 fi
22550 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22551 if test -n "$PKG_CONFIG"; then
22552   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22553 echo "${ECHO_T}$PKG_CONFIG" >&6; }
22554 else
22555   { echo "$as_me:$LINENO: result: no" >&5
22556 echo "${ECHO_T}no" >&6; }
22557 fi
22558
22559
22560 fi
22561 if test -z "$ac_cv_path_PKG_CONFIG"; then
22562   ac_pt_PKG_CONFIG=$PKG_CONFIG
22563   # Extract the first word of "pkg-config", so it can be a program name with args.
22564 set dummy pkg-config; ac_word=$2
22565 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22567 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
22568   echo $ECHO_N "(cached) $ECHO_C" >&6
22569 else
22570   case $ac_pt_PKG_CONFIG in
22571   [\\/]* | ?:[\\/]*)
22572   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
22573   ;;
22574   *)
22575   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22576 for as_dir in $PATH
22577 do
22578   IFS=$as_save_IFS
22579   test -z "$as_dir" && as_dir=.
22580   for ac_exec_ext in '' $ac_executable_extensions; do
22581   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22582     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22583     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22584     break 2
22585   fi
22586 done
22587 done
22588 IFS=$as_save_IFS
22589
22590   ;;
22591 esac
22592 fi
22593 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
22594 if test -n "$ac_pt_PKG_CONFIG"; then
22595   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
22596 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
22597 else
22598   { echo "$as_me:$LINENO: result: no" >&5
22599 echo "${ECHO_T}no" >&6; }
22600 fi
22601
22602   if test "x$ac_pt_PKG_CONFIG" = x; then
22603     PKG_CONFIG=""
22604   else
22605     case $cross_compiling:$ac_tool_warned in
22606 yes:)
22607 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
22608 whose name does not start with the host triplet.  If you think this
22609 configuration is useful to you, please write to autoconf@gnu.org." >&5
22610 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
22611 whose name does not start with the host triplet.  If you think this
22612 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
22613 ac_tool_warned=yes ;;
22614 esac
22615     PKG_CONFIG=$ac_pt_PKG_CONFIG
22616   fi
22617 else
22618   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
22619 fi
22620
22621 fi
22622 if test -n "$PKG_CONFIG"; then
22623         _pkg_min_version=0.9.0
22624         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
22625 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
22626         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
22627                 { echo "$as_me:$LINENO: result: yes" >&5
22628 echo "${ECHO_T}yes" >&6; }
22629         else
22630                 { echo "$as_me:$LINENO: result: no" >&5
22631 echo "${ECHO_T}no" >&6; }
22632                 PKG_CONFIG=""
22633         fi
22634                 
22635 fi
22636
22637 pkg_failed=no
22638 { echo "$as_me:$LINENO: checking for RPCSECGSS" >&5
22639 echo $ECHO_N "checking for RPCSECGSS... $ECHO_C" >&6; }
22640
22641 if test -n "$PKG_CONFIG"; then
22642     if test -n "$RPCSECGSS_CFLAGS"; then
22643         pkg_cv_RPCSECGSS_CFLAGS="$RPCSECGSS_CFLAGS"
22644     else
22645         if test -n "$PKG_CONFIG" && \
22646     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"librpcsecgss >= 0.10\"") >&5
22647   ($PKG_CONFIG --exists --print-errors "librpcsecgss >= 0.10") 2>&5
22648   ac_status=$?
22649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22650   (exit $ac_status); }; then
22651   pkg_cv_RPCSECGSS_CFLAGS=`$PKG_CONFIG --cflags "librpcsecgss >= 0.10" 2>/dev/null`
22652 else
22653   pkg_failed=yes
22654 fi
22655     fi
22656 else
22657         pkg_failed=untried
22658 fi
22659 if test -n "$PKG_CONFIG"; then
22660     if test -n "$RPCSECGSS_LIBS"; then
22661         pkg_cv_RPCSECGSS_LIBS="$RPCSECGSS_LIBS"
22662     else
22663         if test -n "$PKG_CONFIG" && \
22664     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"librpcsecgss >= 0.10\"") >&5
22665   ($PKG_CONFIG --exists --print-errors "librpcsecgss >= 0.10") 2>&5
22666   ac_status=$?
22667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22668   (exit $ac_status); }; then
22669   pkg_cv_RPCSECGSS_LIBS=`$PKG_CONFIG --libs "librpcsecgss >= 0.10" 2>/dev/null`
22670 else
22671   pkg_failed=yes
22672 fi
22673     fi
22674 else
22675         pkg_failed=untried
22676 fi
22677
22678
22679
22680 if test $pkg_failed = yes; then
22681         
22682 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22683         _pkg_short_errors_supported=yes
22684 else
22685         _pkg_short_errors_supported=no
22686 fi
22687         if test $_pkg_short_errors_supported = yes; then
22688                 RPCSECGSS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "librpcsecgss >= 0.10"`
22689         else 
22690                 RPCSECGSS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "librpcsecgss >= 0.10"`
22691         fi
22692         # Put the nasty error message in config.log where it belongs
22693         echo "$RPCSECGSS_PKG_ERRORS" >&5
22694
22695         { echo "$as_me:$LINENO: result: no" >&5
22696 echo "${ECHO_T}no" >&6; }
22697                 { { echo "$as_me:$LINENO: error: Unable to locate information required to use librpcsecgss.  If you have pkgconfig installed, you might try setting environment variable PKG_CONFIG_PATH to /usr/local/lib/pkgconfig" >&5
22698 echo "$as_me: error: Unable to locate information required to use librpcsecgss.  If you have pkgconfig installed, you might try setting environment variable PKG_CONFIG_PATH to /usr/local/lib/pkgconfig" >&2;}
22699    { (exit 1); exit 1; }; }
22700       
22701      
22702 elif test $pkg_failed = untried; then
22703         { { echo "$as_me:$LINENO: error: Unable to locate information required to use librpcsecgss.  If you have pkgconfig installed, you might try setting environment variable PKG_CONFIG_PATH to /usr/local/lib/pkgconfig" >&5
22704 echo "$as_me: error: Unable to locate information required to use librpcsecgss.  If you have pkgconfig installed, you might try setting environment variable PKG_CONFIG_PATH to /usr/local/lib/pkgconfig" >&2;}
22705    { (exit 1); exit 1; }; }
22706       
22707      
22708 else
22709         RPCSECGSS_CFLAGS=$pkg_cv_RPCSECGSS_CFLAGS
22710         RPCSECGSS_LIBS=$pkg_cv_RPCSECGSS_LIBS
22711         { echo "$as_me:$LINENO: result: yes" >&5
22712 echo "${ECHO_T}yes" >&6; }
22713         :
22714 fi
22715     
22716 pkg_failed=no
22717 { echo "$as_me:$LINENO: checking for GSSAPI" >&5
22718 echo $ECHO_N "checking for GSSAPI... $ECHO_C" >&6; }
22719
22720 if test -n "$PKG_CONFIG"; then
22721     if test -n "$GSSAPI_CFLAGS"; then
22722         pkg_cv_GSSAPI_CFLAGS="$GSSAPI_CFLAGS"
22723     else
22724         if test -n "$PKG_CONFIG" && \
22725     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgssapi >= 0.11\"") >&5
22726   ($PKG_CONFIG --exists --print-errors "libgssapi >= 0.11") 2>&5
22727   ac_status=$?
22728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22729   (exit $ac_status); }; then
22730   pkg_cv_GSSAPI_CFLAGS=`$PKG_CONFIG --cflags "libgssapi >= 0.11" 2>/dev/null`
22731 else
22732   pkg_failed=yes
22733 fi
22734     fi
22735 else
22736         pkg_failed=untried
22737 fi
22738 if test -n "$PKG_CONFIG"; then
22739     if test -n "$GSSAPI_LIBS"; then
22740         pkg_cv_GSSAPI_LIBS="$GSSAPI_LIBS"
22741     else
22742         if test -n "$PKG_CONFIG" && \
22743     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgssapi >= 0.11\"") >&5
22744   ($PKG_CONFIG --exists --print-errors "libgssapi >= 0.11") 2>&5
22745   ac_status=$?
22746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22747   (exit $ac_status); }; then
22748   pkg_cv_GSSAPI_LIBS=`$PKG_CONFIG --libs "libgssapi >= 0.11" 2>/dev/null`
22749 else
22750   pkg_failed=yes
22751 fi
22752     fi
22753 else
22754         pkg_failed=untried
22755 fi
22756
22757
22758
22759 if test $pkg_failed = yes; then
22760         
22761 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22762         _pkg_short_errors_supported=yes
22763 else
22764         _pkg_short_errors_supported=no
22765 fi
22766         if test $_pkg_short_errors_supported = yes; then
22767                 GSSAPI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgssapi >= 0.11"`
22768         else 
22769                 GSSAPI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgssapi >= 0.11"`
22770         fi
22771         # Put the nasty error message in config.log where it belongs
22772         echo "$GSSAPI_PKG_ERRORS" >&5
22773
22774         { { echo "$as_me:$LINENO: error: Package requirements (libgssapi >= 0.11) were not met:
22775
22776 $GSSAPI_PKG_ERRORS
22777
22778 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22779 installed software in a non-standard prefix.
22780
22781 Alternatively, you may set the environment variables GSSAPI_CFLAGS
22782 and GSSAPI_LIBS to avoid the need to call pkg-config.
22783 See the pkg-config man page for more details.
22784 " >&5
22785 echo "$as_me: error: Package requirements (libgssapi >= 0.11) were not met:
22786
22787 $GSSAPI_PKG_ERRORS
22788
22789 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22790 installed software in a non-standard prefix.
22791
22792 Alternatively, you may set the environment variables GSSAPI_CFLAGS
22793 and GSSAPI_LIBS to avoid the need to call pkg-config.
22794 See the pkg-config man page for more details.
22795 " >&2;}
22796    { (exit 1); exit 1; }; }
22797 elif test $pkg_failed = untried; then
22798         { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
22799 is in your PATH or set the PKG_CONFIG environment variable to the full
22800 path to pkg-config.
22801
22802 Alternatively, you may set the environment variables GSSAPI_CFLAGS
22803 and GSSAPI_LIBS to avoid the need to call pkg-config.
22804 See the pkg-config man page for more details.
22805
22806 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22807 See \`config.log' for more details." >&5
22808 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
22809 is in your PATH or set the PKG_CONFIG environment variable to the full
22810 path to pkg-config.
22811
22812 Alternatively, you may set the environment variables GSSAPI_CFLAGS
22813 and GSSAPI_LIBS to avoid the need to call pkg-config.
22814 See the pkg-config man page for more details.
22815
22816 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22817 See \`config.log' for more details." >&2;}
22818    { (exit 1); exit 1; }; }
22819 else
22820         GSSAPI_CFLAGS=$pkg_cv_GSSAPI_CFLAGS
22821         GSSAPI_LIBS=$pkg_cv_GSSAPI_LIBS
22822         { echo "$as_me:$LINENO: result: yes" >&5
22823 echo "${ECHO_T}yes" >&6; }
22824         :
22825 fi
22826     fi
22827
22828 fi
22829 if test "$knfsd_cv_glibc2" = no; then
22830     { echo "$as_me:$LINENO: checking for daemon in -lbsd" >&5
22831 echo $ECHO_N "checking for daemon in -lbsd... $ECHO_C" >&6; }
22832 if test "${ac_cv_lib_bsd_daemon+set}" = set; then
22833   echo $ECHO_N "(cached) $ECHO_C" >&6
22834 else
22835   ac_check_lib_save_LIBS=$LIBS
22836 LIBS="-lbsd  $LIBS"
22837 cat >conftest.$ac_ext <<_ACEOF
22838 /* confdefs.h.  */
22839 _ACEOF
22840 cat confdefs.h >>conftest.$ac_ext
22841 cat >>conftest.$ac_ext <<_ACEOF
22842 /* end confdefs.h.  */
22843
22844 /* Override any GCC internal prototype to avoid an error.
22845    Use char because int might match the return type of a GCC
22846    builtin and then its argument prototype would still apply.  */
22847 #ifdef __cplusplus
22848 extern "C"
22849 #endif
22850 char daemon ();
22851 int
22852 main ()
22853 {
22854 return daemon ();
22855   ;
22856   return 0;
22857 }
22858 _ACEOF
22859 rm -f conftest.$ac_objext conftest$ac_exeext
22860 if { (ac_try="$ac_link"
22861 case "(($ac_try" in
22862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22863   *) ac_try_echo=$ac_try;;
22864 esac
22865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22866   (eval "$ac_link") 2>conftest.er1
22867   ac_status=$?
22868   grep -v '^ *+' conftest.er1 >conftest.err
22869   rm -f conftest.er1
22870   cat conftest.err >&5
22871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22872   (exit $ac_status); } && {
22873          test -z "$ac_c_werror_flag" ||
22874          test ! -s conftest.err
22875        } && test -s conftest$ac_exeext &&
22876        $as_test_x conftest$ac_exeext; then
22877   ac_cv_lib_bsd_daemon=yes
22878 else
22879   echo "$as_me: failed program was:" >&5
22880 sed 's/^/| /' conftest.$ac_ext >&5
22881
22882         ac_cv_lib_bsd_daemon=no
22883 fi
22884
22885 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22886       conftest$ac_exeext conftest.$ac_ext
22887 LIBS=$ac_check_lib_save_LIBS
22888 fi
22889 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_daemon" >&5
22890 echo "${ECHO_T}$ac_cv_lib_bsd_daemon" >&6; }
22891 if test $ac_cv_lib_bsd_daemon = yes; then
22892   LIBBSD="-lbsd"
22893 fi
22894
22895 fi
22896
22897 if test "$choose_blkid" != no; then 
22898    { echo "$as_me:$LINENO: checking for blkid_get_library_version in -lblkid" >&5
22899 echo $ECHO_N "checking for blkid_get_library_version in -lblkid... $ECHO_C" >&6; }
22900 if test "${ac_cv_lib_blkid_blkid_get_library_version+set}" = set; then
22901   echo $ECHO_N "(cached) $ECHO_C" >&6
22902 else
22903   ac_check_lib_save_LIBS=$LIBS
22904 LIBS="-lblkid  $LIBS"
22905 cat >conftest.$ac_ext <<_ACEOF
22906 /* confdefs.h.  */
22907 _ACEOF
22908 cat confdefs.h >>conftest.$ac_ext
22909 cat >>conftest.$ac_ext <<_ACEOF
22910 /* end confdefs.h.  */
22911
22912 /* Override any GCC internal prototype to avoid an error.
22913    Use char because int might match the return type of a GCC
22914    builtin and then its argument prototype would still apply.  */
22915 #ifdef __cplusplus
22916 extern "C"
22917 #endif
22918 char blkid_get_library_version ();
22919 int
22920 main ()
22921 {
22922 return blkid_get_library_version ();
22923   ;
22924   return 0;
22925 }
22926 _ACEOF
22927 rm -f conftest.$ac_objext conftest$ac_exeext
22928 if { (ac_try="$ac_link"
22929 case "(($ac_try" in
22930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22931   *) ac_try_echo=$ac_try;;
22932 esac
22933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22934   (eval "$ac_link") 2>conftest.er1
22935   ac_status=$?
22936   grep -v '^ *+' conftest.er1 >conftest.err
22937   rm -f conftest.er1
22938   cat conftest.err >&5
22939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22940   (exit $ac_status); } && {
22941          test -z "$ac_c_werror_flag" ||
22942          test ! -s conftest.err
22943        } && test -s conftest$ac_exeext &&
22944        $as_test_x conftest$ac_exeext; then
22945   ac_cv_lib_blkid_blkid_get_library_version=yes
22946 else
22947   echo "$as_me: failed program was:" >&5
22948 sed 's/^/| /' conftest.$ac_ext >&5
22949
22950         ac_cv_lib_blkid_blkid_get_library_version=no
22951 fi
22952
22953 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22954       conftest$ac_exeext conftest.$ac_ext
22955 LIBS=$ac_check_lib_save_LIBS
22956 fi
22957 { echo "$as_me:$LINENO: result: $ac_cv_lib_blkid_blkid_get_library_version" >&5
22958 echo "${ECHO_T}$ac_cv_lib_blkid_blkid_get_library_version" >&6; }
22959 if test $ac_cv_lib_blkid_blkid_get_library_version = yes; then
22960   LIBBLKID="-lblkid"
22961 else
22962   { { echo "$as_me:$LINENO: error: libblkid needed" >&5
22963 echo "$as_me: error: libblkid needed" >&2;}
22964    { (exit 1); exit 1; }; }
22965 fi
22966
22967    if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
22968   { echo "$as_me:$LINENO: checking for blkid/blkid.h" >&5
22969 echo $ECHO_N "checking for blkid/blkid.h... $ECHO_C" >&6; }
22970 if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
22971   echo $ECHO_N "(cached) $ECHO_C" >&6
22972 fi
22973 { echo "$as_me:$LINENO: result: $ac_cv_header_blkid_blkid_h" >&5
22974 echo "${ECHO_T}$ac_cv_header_blkid_blkid_h" >&6; }
22975 else
22976   # Is the header compilable?
22977 { echo "$as_me:$LINENO: checking blkid/blkid.h usability" >&5
22978 echo $ECHO_N "checking blkid/blkid.h usability... $ECHO_C" >&6; }
22979 cat >conftest.$ac_ext <<_ACEOF
22980 /* confdefs.h.  */
22981 _ACEOF
22982 cat confdefs.h >>conftest.$ac_ext
22983 cat >>conftest.$ac_ext <<_ACEOF
22984 /* end confdefs.h.  */
22985 $ac_includes_default
22986 @%:@include <blkid/blkid.h>
22987 _ACEOF
22988 rm -f conftest.$ac_objext
22989 if { (ac_try="$ac_compile"
22990 case "(($ac_try" in
22991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22992   *) ac_try_echo=$ac_try;;
22993 esac
22994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22995   (eval "$ac_compile") 2>conftest.er1
22996   ac_status=$?
22997   grep -v '^ *+' conftest.er1 >conftest.err
22998   rm -f conftest.er1
22999   cat conftest.err >&5
23000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23001   (exit $ac_status); } && {
23002          test -z "$ac_c_werror_flag" ||
23003          test ! -s conftest.err
23004        } && test -s conftest.$ac_objext; then
23005   ac_header_compiler=yes
23006 else
23007   echo "$as_me: failed program was:" >&5
23008 sed 's/^/| /' conftest.$ac_ext >&5
23009
23010         ac_header_compiler=no
23011 fi
23012
23013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23014 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23015 echo "${ECHO_T}$ac_header_compiler" >&6; }
23016
23017 # Is the header present?
23018 { echo "$as_me:$LINENO: checking blkid/blkid.h presence" >&5
23019 echo $ECHO_N "checking blkid/blkid.h presence... $ECHO_C" >&6; }
23020 cat >conftest.$ac_ext <<_ACEOF
23021 /* confdefs.h.  */
23022 _ACEOF
23023 cat confdefs.h >>conftest.$ac_ext
23024 cat >>conftest.$ac_ext <<_ACEOF
23025 /* end confdefs.h.  */
23026 @%:@include <blkid/blkid.h>
23027 _ACEOF
23028 if { (ac_try="$ac_cpp conftest.$ac_ext"
23029 case "(($ac_try" in
23030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23031   *) ac_try_echo=$ac_try;;
23032 esac
23033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23034   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23035   ac_status=$?
23036   grep -v '^ *+' conftest.er1 >conftest.err
23037   rm -f conftest.er1
23038   cat conftest.err >&5
23039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23040   (exit $ac_status); } >/dev/null && {
23041          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23042          test ! -s conftest.err
23043        }; then
23044   ac_header_preproc=yes
23045 else
23046   echo "$as_me: failed program was:" >&5
23047 sed 's/^/| /' conftest.$ac_ext >&5
23048
23049   ac_header_preproc=no
23050 fi
23051
23052 rm -f conftest.err conftest.$ac_ext
23053 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23054 echo "${ECHO_T}$ac_header_preproc" >&6; }
23055
23056 # So?  What about this header?
23057 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23058   yes:no: )
23059     { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: accepted by the compiler, rejected by the preprocessor!" >&5
23060 echo "$as_me: WARNING: blkid/blkid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23061     { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: proceeding with the compiler's result" >&5
23062 echo "$as_me: WARNING: blkid/blkid.h: proceeding with the compiler's result" >&2;}
23063     ac_header_preproc=yes
23064     ;;
23065   no:yes:* )
23066     { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: present but cannot be compiled" >&5
23067 echo "$as_me: WARNING: blkid/blkid.h: present but cannot be compiled" >&2;}
23068     { echo "$as_me:$LINENO: WARNING: blkid/blkid.h:     check for missing prerequisite headers?" >&5
23069 echo "$as_me: WARNING: blkid/blkid.h:     check for missing prerequisite headers?" >&2;}
23070     { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: see the Autoconf documentation" >&5
23071 echo "$as_me: WARNING: blkid/blkid.h: see the Autoconf documentation" >&2;}
23072     { echo "$as_me:$LINENO: WARNING: blkid/blkid.h:     section \"Present But Cannot Be Compiled\"" >&5
23073 echo "$as_me: WARNING: blkid/blkid.h:     section \"Present But Cannot Be Compiled\"" >&2;}
23074     { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: proceeding with the preprocessor's result" >&5
23075 echo "$as_me: WARNING: blkid/blkid.h: proceeding with the preprocessor's result" >&2;}
23076     { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: in the future, the compiler will take precedence" >&5
23077 echo "$as_me: WARNING: blkid/blkid.h: in the future, the compiler will take precedence" >&2;}
23078     ( cat <<\_ASBOX
23079 @%:@@%:@ ------------------------------- @%:@@%:@
23080 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
23081 @%:@@%:@ ------------------------------- @%:@@%:@
23082 _ASBOX
23083      ) | sed "s/^/$as_me: WARNING:     /" >&2
23084     ;;
23085 esac
23086 { echo "$as_me:$LINENO: checking for blkid/blkid.h" >&5
23087 echo $ECHO_N "checking for blkid/blkid.h... $ECHO_C" >&6; }
23088 if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
23089   echo $ECHO_N "(cached) $ECHO_C" >&6
23090 else
23091   ac_cv_header_blkid_blkid_h=$ac_header_preproc
23092 fi
23093 { echo "$as_me:$LINENO: result: $ac_cv_header_blkid_blkid_h" >&5
23094 echo "${ECHO_T}$ac_cv_header_blkid_blkid_h" >&6; }
23095
23096 fi
23097 if test $ac_cv_header_blkid_blkid_h = yes; then
23098   :
23099 else
23100   { { echo "$as_me:$LINENO: error: Cannot find libblkid header file blkid/blkid.h" >&5
23101 echo "$as_me: error: Cannot find libblkid header file blkid/blkid.h" >&2;}
23102    { (exit 1); exit 1; }; }
23103 fi
23104
23105
23106    
23107   { echo "$as_me:$LINENO: checking for suitable libblkid version" >&5
23108 echo $ECHO_N "checking for suitable libblkid version... $ECHO_C" >&6; }
23109   if test "${libblkid_is_recent+set}" = set; then
23110   echo $ECHO_N "(cached) $ECHO_C" >&6
23111 else
23112   
23113     saved_LIBS="$LIBS"
23114     LIBS=-lblkid
23115     if test "$cross_compiling" = yes; then
23116   libblkid_is_recent=unknown
23117 else
23118   cat >conftest.$ac_ext <<_ACEOF
23119 /* confdefs.h.  */
23120 _ACEOF
23121 cat confdefs.h >>conftest.$ac_ext
23122 cat >>conftest.$ac_ext <<_ACEOF
23123 /* end confdefs.h.  */
23124
23125         #include <blkid/blkid.h>
23126         int main()
23127         {
23128                 int vers = blkid_get_library_version(0, 0);
23129                 return vers >= 140 ? 0 : 1;
23130         }
23131        
23132 _ACEOF
23133 rm -f conftest$ac_exeext
23134 if { (ac_try="$ac_link"
23135 case "(($ac_try" in
23136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23137   *) ac_try_echo=$ac_try;;
23138 esac
23139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23140   (eval "$ac_link") 2>&5
23141   ac_status=$?
23142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23143   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23144   { (case "(($ac_try" in
23145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23146   *) ac_try_echo=$ac_try;;
23147 esac
23148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23149   (eval "$ac_try") 2>&5
23150   ac_status=$?
23151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23152   (exit $ac_status); }; }; then
23153   libblkid_is_recent=yes
23154 else
23155   echo "$as_me: program exited with status $ac_status" >&5
23156 echo "$as_me: failed program was:" >&5
23157 sed 's/^/| /' conftest.$ac_ext >&5
23158
23159 ( exit $ac_status )
23160 libblkid_is_recent=no
23161 fi
23162 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23163 fi
23164
23165
23166     LIBS="$saved_LIBS"
23167     
23168 fi
23169   { echo "$as_me:$LINENO: result: $libblkid_is_recent" >&5
23170 echo "${ECHO_T}$libblkid_is_recent" >&6; }
23171
23172    if test $choose_blkid = yes; then
23173       use_blkid=1
23174       test $libblkid_is_recent = no && { echo "$as_me:$LINENO: WARNING: libblkid is old and may cause mountd to leak memory" >&5
23175 echo "$as_me: WARNING: libblkid is old and may cause mountd to leak memory" >&2;}
23176    else
23177       if test $libblkid_is_recent = yes
23178       then use_blkid=1
23179       else use_blkid=0
23180            { echo "$as_me:$LINENO: WARNING: uuid support disabled as libblkid is too old" >&5
23181 echo "$as_me: WARNING: uuid support disabled as libblkid is too old" >&2;}
23182       fi
23183     fi
23184     
23185 cat >>confdefs.h <<_ACEOF
23186 @%:@define USE_BLKID $use_blkid
23187 _ACEOF
23188
23189 fi
23190
23191
23192
23193
23194
23195 if test "$enable_gss" = yes; then
23196     
23197 for ac_header in nfsidmap.h
23198 do
23199 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23200 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23201   { echo "$as_me:$LINENO: checking for $ac_header" >&5
23202 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23203 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23204   echo $ECHO_N "(cached) $ECHO_C" >&6
23205 fi
23206 ac_res=`eval echo '${'$as_ac_Header'}'`
23207                { echo "$as_me:$LINENO: result: $ac_res" >&5
23208 echo "${ECHO_T}$ac_res" >&6; }
23209 else
23210   # Is the header compilable?
23211 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23212 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23213 cat >conftest.$ac_ext <<_ACEOF
23214 /* confdefs.h.  */
23215 _ACEOF
23216 cat confdefs.h >>conftest.$ac_ext
23217 cat >>conftest.$ac_ext <<_ACEOF
23218 /* end confdefs.h.  */
23219 $ac_includes_default
23220 @%:@include <$ac_header>
23221 _ACEOF
23222 rm -f conftest.$ac_objext
23223 if { (ac_try="$ac_compile"
23224 case "(($ac_try" in
23225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23226   *) ac_try_echo=$ac_try;;
23227 esac
23228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23229   (eval "$ac_compile") 2>conftest.er1
23230   ac_status=$?
23231   grep -v '^ *+' conftest.er1 >conftest.err
23232   rm -f conftest.er1
23233   cat conftest.err >&5
23234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23235   (exit $ac_status); } && {
23236          test -z "$ac_c_werror_flag" ||
23237          test ! -s conftest.err
23238        } && test -s conftest.$ac_objext; then
23239   ac_header_compiler=yes
23240 else
23241   echo "$as_me: failed program was:" >&5
23242 sed 's/^/| /' conftest.$ac_ext >&5
23243
23244         ac_header_compiler=no
23245 fi
23246
23247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23248 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23249 echo "${ECHO_T}$ac_header_compiler" >&6; }
23250
23251 # Is the header present?
23252 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23253 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23254 cat >conftest.$ac_ext <<_ACEOF
23255 /* confdefs.h.  */
23256 _ACEOF
23257 cat confdefs.h >>conftest.$ac_ext
23258 cat >>conftest.$ac_ext <<_ACEOF
23259 /* end confdefs.h.  */
23260 @%:@include <$ac_header>
23261 _ACEOF
23262 if { (ac_try="$ac_cpp conftest.$ac_ext"
23263 case "(($ac_try" in
23264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23265   *) ac_try_echo=$ac_try;;
23266 esac
23267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23268   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23269   ac_status=$?
23270   grep -v '^ *+' conftest.er1 >conftest.err
23271   rm -f conftest.er1
23272   cat conftest.err >&5
23273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23274   (exit $ac_status); } >/dev/null && {
23275          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23276          test ! -s conftest.err
23277        }; then
23278   ac_header_preproc=yes
23279 else
23280   echo "$as_me: failed program was:" >&5
23281 sed 's/^/| /' conftest.$ac_ext >&5
23282
23283   ac_header_preproc=no
23284 fi
23285
23286 rm -f conftest.err conftest.$ac_ext
23287 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23288 echo "${ECHO_T}$ac_header_preproc" >&6; }
23289
23290 # So?  What about this header?
23291 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23292   yes:no: )
23293     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23294 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23295     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23296 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23297     ac_header_preproc=yes
23298     ;;
23299   no:yes:* )
23300     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23301 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23302     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23303 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23304     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23305 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23306     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23307 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23308     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23309 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23310     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23311 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23312     ( cat <<\_ASBOX
23313 @%:@@%:@ ------------------------------- @%:@@%:@
23314 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
23315 @%:@@%:@ ------------------------------- @%:@@%:@
23316 _ASBOX
23317      ) | sed "s/^/$as_me: WARNING:     /" >&2
23318     ;;
23319 esac
23320 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23321 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23322 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23323   echo $ECHO_N "(cached) $ECHO_C" >&6
23324 else
23325   eval "$as_ac_Header=\$ac_header_preproc"
23326 fi
23327 ac_res=`eval echo '${'$as_ac_Header'}'`
23328                { echo "$as_me:$LINENO: result: $ac_res" >&5
23329 echo "${ECHO_T}$ac_res" >&6; }
23330
23331 fi
23332 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23333   cat >>confdefs.h <<_ACEOF
23334 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23335 _ACEOF
23336  
23337 else
23338   { { echo "$as_me:$LINENO: error: libnfsidmap needed for gss support" >&5
23339 echo "$as_me: error: libnfsidmap needed for gss support" >&2;}
23340    { (exit 1); exit 1; }; }
23341 fi
23342
23343 done
23344
23345   
23346 for ac_header in spkm3.h
23347 do
23348 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23349 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23350   { echo "$as_me:$LINENO: checking for $ac_header" >&5
23351 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23352 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23353   echo $ECHO_N "(cached) $ECHO_C" >&6
23354 fi
23355 ac_res=`eval echo '${'$as_ac_Header'}'`
23356                { echo "$as_me:$LINENO: result: $ac_res" >&5
23357 echo "${ECHO_T}$ac_res" >&6; }
23358 else
23359   # Is the header compilable?
23360 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23361 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23362 cat >conftest.$ac_ext <<_ACEOF
23363 /* confdefs.h.  */
23364 _ACEOF
23365 cat confdefs.h >>conftest.$ac_ext
23366 cat >>conftest.$ac_ext <<_ACEOF
23367 /* end confdefs.h.  */
23368 $ac_includes_default
23369 @%:@include <$ac_header>
23370 _ACEOF
23371 rm -f conftest.$ac_objext
23372 if { (ac_try="$ac_compile"
23373 case "(($ac_try" in
23374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23375   *) ac_try_echo=$ac_try;;
23376 esac
23377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23378   (eval "$ac_compile") 2>conftest.er1
23379   ac_status=$?
23380   grep -v '^ *+' conftest.er1 >conftest.err
23381   rm -f conftest.er1
23382   cat conftest.err >&5
23383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23384   (exit $ac_status); } && {
23385          test -z "$ac_c_werror_flag" ||
23386          test ! -s conftest.err
23387        } && test -s conftest.$ac_objext; then
23388   ac_header_compiler=yes
23389 else
23390   echo "$as_me: failed program was:" >&5
23391 sed 's/^/| /' conftest.$ac_ext >&5
23392
23393         ac_header_compiler=no
23394 fi
23395
23396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23397 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23398 echo "${ECHO_T}$ac_header_compiler" >&6; }
23399
23400 # Is the header present?
23401 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23402 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23403 cat >conftest.$ac_ext <<_ACEOF
23404 /* confdefs.h.  */
23405 _ACEOF
23406 cat confdefs.h >>conftest.$ac_ext
23407 cat >>conftest.$ac_ext <<_ACEOF
23408 /* end confdefs.h.  */
23409 @%:@include <$ac_header>
23410 _ACEOF
23411 if { (ac_try="$ac_cpp conftest.$ac_ext"
23412 case "(($ac_try" in
23413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23414   *) ac_try_echo=$ac_try;;
23415 esac
23416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23417   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23418   ac_status=$?
23419   grep -v '^ *+' conftest.er1 >conftest.err
23420   rm -f conftest.er1
23421   cat conftest.err >&5
23422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23423   (exit $ac_status); } >/dev/null && {
23424          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23425          test ! -s conftest.err
23426        }; then
23427   ac_header_preproc=yes
23428 else
23429   echo "$as_me: failed program was:" >&5
23430 sed 's/^/| /' conftest.$ac_ext >&5
23431
23432   ac_header_preproc=no
23433 fi
23434
23435 rm -f conftest.err conftest.$ac_ext
23436 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23437 echo "${ECHO_T}$ac_header_preproc" >&6; }
23438
23439 # So?  What about this header?
23440 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23441   yes:no: )
23442     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23443 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23444     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23445 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23446     ac_header_preproc=yes
23447     ;;
23448   no:yes:* )
23449     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23450 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23451     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23452 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23453     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23454 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23455     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23456 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23457     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23458 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23459     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23460 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23461     ( cat <<\_ASBOX
23462 @%:@@%:@ ------------------------------- @%:@@%:@
23463 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
23464 @%:@@%:@ ------------------------------- @%:@@%:@
23465 _ASBOX
23466      ) | sed "s/^/$as_me: WARNING:     /" >&2
23467     ;;
23468 esac
23469 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23470 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23471 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23472   echo $ECHO_N "(cached) $ECHO_C" >&6
23473 else
23474   eval "$as_ac_Header=\$ac_header_preproc"
23475 fi
23476 ac_res=`eval echo '${'$as_ac_Header'}'`
23477                { echo "$as_me:$LINENO: result: $ac_res" >&5
23478 echo "${ECHO_T}$ac_res" >&6; }
23479
23480 fi
23481 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23482   cat >>confdefs.h <<_ACEOF
23483 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23484 _ACEOF
23485  
23486 else
23487   { echo "$as_me:$LINENO: WARNING: could not locate SPKM3 header; will not have SPKM3 support" >&5
23488 echo "$as_me: WARNING: could not locate SPKM3 header; will not have SPKM3 support" >&2;}
23489 fi
23490
23491 done
23492
23493     { echo "$as_me:$LINENO: checking for nfs4_set_debug in -lnfsidmap" >&5
23494 echo $ECHO_N "checking for nfs4_set_debug in -lnfsidmap... $ECHO_C" >&6; }
23495 if test "${ac_cv_lib_nfsidmap_nfs4_set_debug+set}" = set; then
23496   echo $ECHO_N "(cached) $ECHO_C" >&6
23497 else
23498   ac_check_lib_save_LIBS=$LIBS
23499 LIBS="-lnfsidmap  $LIBS"
23500 cat >conftest.$ac_ext <<_ACEOF
23501 /* confdefs.h.  */
23502 _ACEOF
23503 cat confdefs.h >>conftest.$ac_ext
23504 cat >>conftest.$ac_ext <<_ACEOF
23505 /* end confdefs.h.  */
23506
23507 /* Override any GCC internal prototype to avoid an error.
23508    Use char because int might match the return type of a GCC
23509    builtin and then its argument prototype would still apply.  */
23510 #ifdef __cplusplus
23511 extern "C"
23512 #endif
23513 char nfs4_set_debug ();
23514 int
23515 main ()
23516 {
23517 return nfs4_set_debug ();
23518   ;
23519   return 0;
23520 }
23521 _ACEOF
23522 rm -f conftest.$ac_objext conftest$ac_exeext
23523 if { (ac_try="$ac_link"
23524 case "(($ac_try" in
23525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23526   *) ac_try_echo=$ac_try;;
23527 esac
23528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23529   (eval "$ac_link") 2>conftest.er1
23530   ac_status=$?
23531   grep -v '^ *+' conftest.er1 >conftest.err
23532   rm -f conftest.er1
23533   cat conftest.err >&5
23534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23535   (exit $ac_status); } && {
23536          test -z "$ac_c_werror_flag" ||
23537          test ! -s conftest.err
23538        } && test -s conftest$ac_exeext &&
23539        $as_test_x conftest$ac_exeext; then
23540   ac_cv_lib_nfsidmap_nfs4_set_debug=yes
23541 else
23542   echo "$as_me: failed program was:" >&5
23543 sed 's/^/| /' conftest.$ac_ext >&5
23544
23545         ac_cv_lib_nfsidmap_nfs4_set_debug=no
23546 fi
23547
23548 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23549       conftest$ac_exeext conftest.$ac_ext
23550 LIBS=$ac_check_lib_save_LIBS
23551 fi
23552 { echo "$as_me:$LINENO: result: $ac_cv_lib_nfsidmap_nfs4_set_debug" >&5
23553 echo "${ECHO_T}$ac_cv_lib_nfsidmap_nfs4_set_debug" >&6; }
23554 if test $ac_cv_lib_nfsidmap_nfs4_set_debug = yes; then
23555   
23556 cat >>confdefs.h <<\_ACEOF
23557 @%:@define HAVE_NFS4_SET_DEBUG 1
23558 _ACEOF
23559
23560 fi
23561
23562
23563     
23564   { echo "$as_me:$LINENO: checking for Kerberos v5" >&5
23565 echo $ECHO_N "checking for Kerberos v5... $ECHO_C" >&6; }
23566   
23567 # Check whether --with-krb5 was given.
23568 if test "${with_krb5+set}" = set; then
23569   withval=$with_krb5;  case "$withval" in
23570     yes|no)
23571        krb5_with=""
23572        ;;
23573     *)
23574        krb5_with="$withval"
23575        ;;
23576     esac 
23577   
23578 fi
23579
23580
23581   for dir in $krb5_with /usr /usr/kerberos /usr/local /usr/local/krb5 \
23582              /usr/krb5 /usr/heimdal /usr/local/heimdal /usr/athena ; do
23583             K5CONFIG=""
23584     if test -f $dir/bin/krb5-config; then
23585       K5CONFIG=$dir/bin/krb5-config
23586     elif test -f "/usr/kerberos/bin/krb5-config"; then
23587       K5CONFIG="/usr/kerberos/bin/krb5-config"
23588     elif test -f "/usr/lib/mit/bin/krb5-config"; then
23589       K5CONFIG="/usr/lib/mit/bin/krb5-config"
23590     fi
23591     if test "$K5CONFIG" != ""; then
23592       KRBCFLAGS=`$K5CONFIG --cflags`
23593       KRBLIBS=`$K5CONFIG --libs gssapi`
23594       K5VERS=`$K5CONFIG --version | head -n 1 | awk '{split($(4),v,"."); if (v@<:@"3"@:>@ == "") v@<:@"3"@:>@ = "0"; print v@<:@"1"@:>@v@<:@"2"@:>@v@<:@"3"@:>@ }'`
23595       
23596 cat >>confdefs.h <<_ACEOF
23597 @%:@define KRB5_VERSION $K5VERS
23598 _ACEOF
23599
23600       if test -f $dir/include/gssapi/gssapi_krb5.h -a \
23601                 \( -f $dir/lib/libgssapi_krb5.a -o \
23602                    -f $dir/lib64/libgssapi_krb5.a -o \
23603                    -f $dir/lib64/libgssapi_krb5.so -o \
23604                    -f $dir/lib/libgssapi_krb5.so \) ; then
23605          
23606 cat >>confdefs.h <<\_ACEOF
23607 @%:@define HAVE_KRB5 1
23608 _ACEOF
23609
23610          KRBDIR="$dir"
23611                      if test $K5VERS -le 131; then
23612            
23613 cat >>confdefs.h <<\_ACEOF
23614 @%:@define USE_GSS_KRB5_CCACHE_NAME 1
23615 _ACEOF
23616
23617          fi
23618          gssapi_lib=gssapi_krb5
23619          break
23620                   elif test \( -f $dir/include/heim_err.h -o\
23621                  -f $dir/include/heimdal/heim_err.h \) -a \
23622                 -f $dir/lib/libroken.a; then
23623          
23624 cat >>confdefs.h <<\_ACEOF
23625 @%:@define HAVE_HEIMDAL 1
23626 _ACEOF
23627
23628          KRBDIR="$dir"
23629          gssapi_lib=gssapi
23630         break
23631       fi
23632     fi
23633   done
23634     if test "x$KRBDIR" = "x"; then
23635     if test "x$krb5_with" = "x"; then
23636       { { echo "$as_me:$LINENO: error: Kerberos v5 with GSS support not found: consider --disable-gss or --with-krb5=" >&5
23637 echo "$as_me: error: Kerberos v5 with GSS support not found: consider --disable-gss or --with-krb5=" >&2;}
23638    { (exit 1); exit 1; }; }
23639     else
23640       { { echo "$as_me:$LINENO: error: Kerberos v5 with GSS support not found at $krb5_with" >&5
23641 echo "$as_me: error: Kerberos v5 with GSS support not found at $krb5_with" >&2;}
23642    { (exit 1); exit 1; }; }
23643     fi
23644   fi
23645   { echo "$as_me:$LINENO: result: $KRBDIR" >&5
23646 echo "${ECHO_T}$KRBDIR" >&6; }
23647
23648     echo "The current KRBDIR is $KRBDIR"
23649   if test "$KRBDIR/lib" = "/lib" -o "$KRBDIR/lib" = "/usr/lib" \
23650        -o "$KRBDIR/lib" = "//lib" -o "$KRBDIR/lib" = "/usr//lib" ; then
23651     KRBLDFLAGS="";
23652   elif /sbin/ldconfig -p | grep > /dev/null "=> $KRBDIR/lib/"; then
23653     KRBLDFLAGS="";
23654   else
23655     KRBLDFLAGS="-Wl,-rpath=$KRBDIR/lib"
23656   fi
23657
23658     as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_export_lucid_sec_context" | $as_tr_sh`
23659 { echo "$as_me:$LINENO: checking for gss_krb5_export_lucid_sec_context in -l$gssapi_lib" >&5
23660 echo $ECHO_N "checking for gss_krb5_export_lucid_sec_context in -l$gssapi_lib... $ECHO_C" >&6; }
23661 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23662   echo $ECHO_N "(cached) $ECHO_C" >&6
23663 else
23664   ac_check_lib_save_LIBS=$LIBS
23665 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
23666 cat >conftest.$ac_ext <<_ACEOF
23667 /* confdefs.h.  */
23668 _ACEOF
23669 cat confdefs.h >>conftest.$ac_ext
23670 cat >>conftest.$ac_ext <<_ACEOF
23671 /* end confdefs.h.  */
23672
23673 /* Override any GCC internal prototype to avoid an error.
23674    Use char because int might match the return type of a GCC
23675    builtin and then its argument prototype would still apply.  */
23676 #ifdef __cplusplus
23677 extern "C"
23678 #endif
23679 char gss_krb5_export_lucid_sec_context ();
23680 int
23681 main ()
23682 {
23683 return gss_krb5_export_lucid_sec_context ();
23684   ;
23685   return 0;
23686 }
23687 _ACEOF
23688 rm -f conftest.$ac_objext conftest$ac_exeext
23689 if { (ac_try="$ac_link"
23690 case "(($ac_try" in
23691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23692   *) ac_try_echo=$ac_try;;
23693 esac
23694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23695   (eval "$ac_link") 2>conftest.er1
23696   ac_status=$?
23697   grep -v '^ *+' conftest.er1 >conftest.err
23698   rm -f conftest.er1
23699   cat conftest.err >&5
23700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23701   (exit $ac_status); } && {
23702          test -z "$ac_c_werror_flag" ||
23703          test ! -s conftest.err
23704        } && test -s conftest$ac_exeext &&
23705        $as_test_x conftest$ac_exeext; then
23706   eval "$as_ac_Lib=yes"
23707 else
23708   echo "$as_me: failed program was:" >&5
23709 sed 's/^/| /' conftest.$ac_ext >&5
23710
23711         eval "$as_ac_Lib=no"
23712 fi
23713
23714 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23715       conftest$ac_exeext conftest.$ac_ext
23716 LIBS=$ac_check_lib_save_LIBS
23717 fi
23718 ac_res=`eval echo '${'$as_ac_Lib'}'`
23719                { echo "$as_me:$LINENO: result: $ac_res" >&5
23720 echo "${ECHO_T}$ac_res" >&6; }
23721 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23722   
23723 cat >>confdefs.h <<\_ACEOF
23724 @%:@define HAVE_LUCID_CONTEXT_SUPPORT 1
23725 _ACEOF
23726
23727 fi
23728
23729   as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_set_allowable_enctypes" | $as_tr_sh`
23730 { echo "$as_me:$LINENO: checking for gss_krb5_set_allowable_enctypes in -l$gssapi_lib" >&5
23731 echo $ECHO_N "checking for gss_krb5_set_allowable_enctypes in -l$gssapi_lib... $ECHO_C" >&6; }
23732 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23733   echo $ECHO_N "(cached) $ECHO_C" >&6
23734 else
23735   ac_check_lib_save_LIBS=$LIBS
23736 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
23737 cat >conftest.$ac_ext <<_ACEOF
23738 /* confdefs.h.  */
23739 _ACEOF
23740 cat confdefs.h >>conftest.$ac_ext
23741 cat >>conftest.$ac_ext <<_ACEOF
23742 /* end confdefs.h.  */
23743
23744 /* Override any GCC internal prototype to avoid an error.
23745    Use char because int might match the return type of a GCC
23746    builtin and then its argument prototype would still apply.  */
23747 #ifdef __cplusplus
23748 extern "C"
23749 #endif
23750 char gss_krb5_set_allowable_enctypes ();
23751 int
23752 main ()
23753 {
23754 return gss_krb5_set_allowable_enctypes ();
23755   ;
23756   return 0;
23757 }
23758 _ACEOF
23759 rm -f conftest.$ac_objext conftest$ac_exeext
23760 if { (ac_try="$ac_link"
23761 case "(($ac_try" in
23762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23763   *) ac_try_echo=$ac_try;;
23764 esac
23765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23766   (eval "$ac_link") 2>conftest.er1
23767   ac_status=$?
23768   grep -v '^ *+' conftest.er1 >conftest.err
23769   rm -f conftest.er1
23770   cat conftest.err >&5
23771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23772   (exit $ac_status); } && {
23773          test -z "$ac_c_werror_flag" ||
23774          test ! -s conftest.err
23775        } && test -s conftest$ac_exeext &&
23776        $as_test_x conftest$ac_exeext; then
23777   eval "$as_ac_Lib=yes"
23778 else
23779   echo "$as_me: failed program was:" >&5
23780 sed 's/^/| /' conftest.$ac_ext >&5
23781
23782         eval "$as_ac_Lib=no"
23783 fi
23784
23785 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23786       conftest$ac_exeext conftest.$ac_ext
23787 LIBS=$ac_check_lib_save_LIBS
23788 fi
23789 ac_res=`eval echo '${'$as_ac_Lib'}'`
23790                { echo "$as_me:$LINENO: result: $ac_res" >&5
23791 echo "${ECHO_T}$ac_res" >&6; }
23792 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23793   
23794 cat >>confdefs.h <<\_ACEOF
23795 @%:@define HAVE_SET_ALLOWABLE_ENCTYPES 1
23796 _ACEOF
23797
23798 fi
23799
23800   as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_ccache_name" | $as_tr_sh`
23801 { echo "$as_me:$LINENO: checking for gss_krb5_ccache_name in -l$gssapi_lib" >&5
23802 echo $ECHO_N "checking for gss_krb5_ccache_name in -l$gssapi_lib... $ECHO_C" >&6; }
23803 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23804   echo $ECHO_N "(cached) $ECHO_C" >&6
23805 else
23806   ac_check_lib_save_LIBS=$LIBS
23807 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
23808 cat >conftest.$ac_ext <<_ACEOF
23809 /* confdefs.h.  */
23810 _ACEOF
23811 cat confdefs.h >>conftest.$ac_ext
23812 cat >>conftest.$ac_ext <<_ACEOF
23813 /* end confdefs.h.  */
23814
23815 /* Override any GCC internal prototype to avoid an error.
23816    Use char because int might match the return type of a GCC
23817    builtin and then its argument prototype would still apply.  */
23818 #ifdef __cplusplus
23819 extern "C"
23820 #endif
23821 char gss_krb5_ccache_name ();
23822 int
23823 main ()
23824 {
23825 return gss_krb5_ccache_name ();
23826   ;
23827   return 0;
23828 }
23829 _ACEOF
23830 rm -f conftest.$ac_objext conftest$ac_exeext
23831 if { (ac_try="$ac_link"
23832 case "(($ac_try" in
23833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23834   *) ac_try_echo=$ac_try;;
23835 esac
23836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23837   (eval "$ac_link") 2>conftest.er1
23838   ac_status=$?
23839   grep -v '^ *+' conftest.er1 >conftest.err
23840   rm -f conftest.er1
23841   cat conftest.err >&5
23842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23843   (exit $ac_status); } && {
23844          test -z "$ac_c_werror_flag" ||
23845          test ! -s conftest.err
23846        } && test -s conftest$ac_exeext &&
23847        $as_test_x conftest$ac_exeext; then
23848   eval "$as_ac_Lib=yes"
23849 else
23850   echo "$as_me: failed program was:" >&5
23851 sed 's/^/| /' conftest.$ac_ext >&5
23852
23853         eval "$as_ac_Lib=no"
23854 fi
23855
23856 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23857       conftest$ac_exeext conftest.$ac_ext
23858 LIBS=$ac_check_lib_save_LIBS
23859 fi
23860 ac_res=`eval echo '${'$as_ac_Lib'}'`
23861                { echo "$as_me:$LINENO: result: $ac_res" >&5
23862 echo "${ECHO_T}$ac_res" >&6; }
23863 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23864   
23865 cat >>confdefs.h <<\_ACEOF
23866 @%:@define HAVE_GSS_KRB5_CCACHE_NAME 1
23867 _ACEOF
23868
23869 fi
23870
23871
23872     as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_krb5_get_error_message" | $as_tr_sh`
23873 { echo "$as_me:$LINENO: checking for krb5_get_error_message in -l$gssapi_lib" >&5
23874 echo $ECHO_N "checking for krb5_get_error_message in -l$gssapi_lib... $ECHO_C" >&6; }
23875 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23876   echo $ECHO_N "(cached) $ECHO_C" >&6
23877 else
23878   ac_check_lib_save_LIBS=$LIBS
23879 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
23880 cat >conftest.$ac_ext <<_ACEOF
23881 /* confdefs.h.  */
23882 _ACEOF
23883 cat confdefs.h >>conftest.$ac_ext
23884 cat >>conftest.$ac_ext <<_ACEOF
23885 /* end confdefs.h.  */
23886
23887 /* Override any GCC internal prototype to avoid an error.
23888    Use char because int might match the return type of a GCC
23889    builtin and then its argument prototype would still apply.  */
23890 #ifdef __cplusplus
23891 extern "C"
23892 #endif
23893 char krb5_get_error_message ();
23894 int
23895 main ()
23896 {
23897 return krb5_get_error_message ();
23898   ;
23899   return 0;
23900 }
23901 _ACEOF
23902 rm -f conftest.$ac_objext conftest$ac_exeext
23903 if { (ac_try="$ac_link"
23904 case "(($ac_try" in
23905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23906   *) ac_try_echo=$ac_try;;
23907 esac
23908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23909   (eval "$ac_link") 2>conftest.er1
23910   ac_status=$?
23911   grep -v '^ *+' conftest.er1 >conftest.err
23912   rm -f conftest.er1
23913   cat conftest.err >&5
23914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23915   (exit $ac_status); } && {
23916          test -z "$ac_c_werror_flag" ||
23917          test ! -s conftest.err
23918        } && test -s conftest$ac_exeext &&
23919        $as_test_x conftest$ac_exeext; then
23920   eval "$as_ac_Lib=yes"
23921 else
23922   echo "$as_me: failed program was:" >&5
23923 sed 's/^/| /' conftest.$ac_ext >&5
23924
23925         eval "$as_ac_Lib=no"
23926 fi
23927
23928 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23929       conftest$ac_exeext conftest.$ac_ext
23930 LIBS=$ac_check_lib_save_LIBS
23931 fi
23932 ac_res=`eval echo '${'$as_ac_Lib'}'`
23933                { echo "$as_me:$LINENO: result: $ac_res" >&5
23934 echo "${ECHO_T}$ac_res" >&6; }
23935 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23936   
23937 cat >>confdefs.h <<\_ACEOF
23938 @%:@define HAVE_KRB5_GET_ERROR_MESSAGE 1
23939 _ACEOF
23940
23941 fi
23942
23943
23944     as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_krb5_get_init_creds_opt_set_addressless" | $as_tr_sh`
23945 { echo "$as_me:$LINENO: checking for krb5_get_init_creds_opt_set_addressless in -l$gssapi_lib" >&5
23946 echo $ECHO_N "checking for krb5_get_init_creds_opt_set_addressless in -l$gssapi_lib... $ECHO_C" >&6; }
23947 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23948   echo $ECHO_N "(cached) $ECHO_C" >&6
23949 else
23950   ac_check_lib_save_LIBS=$LIBS
23951 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
23952 cat >conftest.$ac_ext <<_ACEOF
23953 /* confdefs.h.  */
23954 _ACEOF
23955 cat confdefs.h >>conftest.$ac_ext
23956 cat >>conftest.$ac_ext <<_ACEOF
23957 /* end confdefs.h.  */
23958
23959 /* Override any GCC internal prototype to avoid an error.
23960    Use char because int might match the return type of a GCC
23961    builtin and then its argument prototype would still apply.  */
23962 #ifdef __cplusplus
23963 extern "C"
23964 #endif
23965 char krb5_get_init_creds_opt_set_addressless ();
23966 int
23967 main ()
23968 {
23969 return krb5_get_init_creds_opt_set_addressless ();
23970   ;
23971   return 0;
23972 }
23973 _ACEOF
23974 rm -f conftest.$ac_objext conftest$ac_exeext
23975 if { (ac_try="$ac_link"
23976 case "(($ac_try" in
23977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23978   *) ac_try_echo=$ac_try;;
23979 esac
23980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23981   (eval "$ac_link") 2>conftest.er1
23982   ac_status=$?
23983   grep -v '^ *+' conftest.er1 >conftest.err
23984   rm -f conftest.er1
23985   cat conftest.err >&5
23986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23987   (exit $ac_status); } && {
23988          test -z "$ac_c_werror_flag" ||
23989          test ! -s conftest.err
23990        } && test -s conftest$ac_exeext &&
23991        $as_test_x conftest$ac_exeext; then
23992   eval "$as_ac_Lib=yes"
23993 else
23994   echo "$as_me: failed program was:" >&5
23995 sed 's/^/| /' conftest.$ac_ext >&5
23996
23997         eval "$as_ac_Lib=no"
23998 fi
23999
24000 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24001       conftest$ac_exeext conftest.$ac_ext
24002 LIBS=$ac_check_lib_save_LIBS
24003 fi
24004 ac_res=`eval echo '${'$as_ac_Lib'}'`
24005                { echo "$as_me:$LINENO: result: $ac_res" >&5
24006 echo "${ECHO_T}$ac_res" >&6; }
24007 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
24008   
24009 cat >>confdefs.h <<\_ACEOF
24010 @%:@define HAVE_KRB5_GET_INIT_CREDS_OPT_SET_ADDRESSLESS 1
24011 _ACEOF
24012
24013 fi
24014
24015
24016     if test "x$krb5_with" != "x" -a "$krb5_with" != "$KRBDIR"; then
24017     { echo "$as_me:$LINENO: WARNING: Using $KRBDIR instead of requested value of $krb5_with for Kerberos!" >&5
24018 echo "$as_me: WARNING: Using $KRBDIR instead of requested value of $krb5_with for Kerberos!" >&2;}
24019   fi
24020
24021   
24022   
24023   
24024   
24025   
24026
24027
24028
24029       { echo "$as_me:$LINENO: checking for authgss_create_default in -lrpcsecgss" >&5
24030 echo $ECHO_N "checking for authgss_create_default in -lrpcsecgss... $ECHO_C" >&6; }
24031 if test "${ac_cv_lib_rpcsecgss_authgss_create_default+set}" = set; then
24032   echo $ECHO_N "(cached) $ECHO_C" >&6
24033 else
24034   ac_check_lib_save_LIBS=$LIBS
24035 LIBS="-lrpcsecgss -lgssapi -ldl $LIBS"
24036 cat >conftest.$ac_ext <<_ACEOF
24037 /* confdefs.h.  */
24038 _ACEOF
24039 cat confdefs.h >>conftest.$ac_ext
24040 cat >>conftest.$ac_ext <<_ACEOF
24041 /* end confdefs.h.  */
24042
24043 /* Override any GCC internal prototype to avoid an error.
24044    Use char because int might match the return type of a GCC
24045    builtin and then its argument prototype would still apply.  */
24046 #ifdef __cplusplus
24047 extern "C"
24048 #endif
24049 char authgss_create_default ();
24050 int
24051 main ()
24052 {
24053 return authgss_create_default ();
24054   ;
24055   return 0;
24056 }
24057 _ACEOF
24058 rm -f conftest.$ac_objext conftest$ac_exeext
24059 if { (ac_try="$ac_link"
24060 case "(($ac_try" in
24061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24062   *) ac_try_echo=$ac_try;;
24063 esac
24064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24065   (eval "$ac_link") 2>conftest.er1
24066   ac_status=$?
24067   grep -v '^ *+' conftest.er1 >conftest.err
24068   rm -f conftest.er1
24069   cat conftest.err >&5
24070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24071   (exit $ac_status); } && {
24072          test -z "$ac_c_werror_flag" ||
24073          test ! -s conftest.err
24074        } && test -s conftest$ac_exeext &&
24075        $as_test_x conftest$ac_exeext; then
24076   ac_cv_lib_rpcsecgss_authgss_create_default=yes
24077 else
24078   echo "$as_me: failed program was:" >&5
24079 sed 's/^/| /' conftest.$ac_ext >&5
24080
24081         ac_cv_lib_rpcsecgss_authgss_create_default=no
24082 fi
24083
24084 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24085       conftest$ac_exeext conftest.$ac_ext
24086 LIBS=$ac_check_lib_save_LIBS
24087 fi
24088 { echo "$as_me:$LINENO: result: $ac_cv_lib_rpcsecgss_authgss_create_default" >&5
24089 echo "${ECHO_T}$ac_cv_lib_rpcsecgss_authgss_create_default" >&6; }
24090 if test $ac_cv_lib_rpcsecgss_authgss_create_default = yes; then
24091   librpcsecgss=1
24092 else
24093   { { echo "$as_me:$LINENO: error: librpcsecgss needed for nfsv4 support" >&5
24094 echo "$as_me: error: librpcsecgss needed for nfsv4 support" >&2;}
24095    { (exit 1); exit 1; }; }
24096 fi
24097
24098   { echo "$as_me:$LINENO: checking for authgss_set_debug_level in -lrpcsecgss" >&5
24099 echo $ECHO_N "checking for authgss_set_debug_level in -lrpcsecgss... $ECHO_C" >&6; }
24100 if test "${ac_cv_lib_rpcsecgss_authgss_set_debug_level+set}" = set; then
24101   echo $ECHO_N "(cached) $ECHO_C" >&6
24102 else
24103   ac_check_lib_save_LIBS=$LIBS
24104 LIBS="-lrpcsecgss -lgssapi -ldl $LIBS"
24105 cat >conftest.$ac_ext <<_ACEOF
24106 /* confdefs.h.  */
24107 _ACEOF
24108 cat confdefs.h >>conftest.$ac_ext
24109 cat >>conftest.$ac_ext <<_ACEOF
24110 /* end confdefs.h.  */
24111
24112 /* Override any GCC internal prototype to avoid an error.
24113    Use char because int might match the return type of a GCC
24114    builtin and then its argument prototype would still apply.  */
24115 #ifdef __cplusplus
24116 extern "C"
24117 #endif
24118 char authgss_set_debug_level ();
24119 int
24120 main ()
24121 {
24122 return authgss_set_debug_level ();
24123   ;
24124   return 0;
24125 }
24126 _ACEOF
24127 rm -f conftest.$ac_objext conftest$ac_exeext
24128 if { (ac_try="$ac_link"
24129 case "(($ac_try" in
24130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24131   *) ac_try_echo=$ac_try;;
24132 esac
24133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24134   (eval "$ac_link") 2>conftest.er1
24135   ac_status=$?
24136   grep -v '^ *+' conftest.er1 >conftest.err
24137   rm -f conftest.er1
24138   cat conftest.err >&5
24139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24140   (exit $ac_status); } && {
24141          test -z "$ac_c_werror_flag" ||
24142          test ! -s conftest.err
24143        } && test -s conftest$ac_exeext &&
24144        $as_test_x conftest$ac_exeext; then
24145   ac_cv_lib_rpcsecgss_authgss_set_debug_level=yes
24146 else
24147   echo "$as_me: failed program was:" >&5
24148 sed 's/^/| /' conftest.$ac_ext >&5
24149
24150         ac_cv_lib_rpcsecgss_authgss_set_debug_level=no
24151 fi
24152
24153 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24154       conftest$ac_exeext conftest.$ac_ext
24155 LIBS=$ac_check_lib_save_LIBS
24156 fi
24157 { echo "$as_me:$LINENO: result: $ac_cv_lib_rpcsecgss_authgss_set_debug_level" >&5
24158 echo "${ECHO_T}$ac_cv_lib_rpcsecgss_authgss_set_debug_level" >&6; }
24159 if test $ac_cv_lib_rpcsecgss_authgss_set_debug_level = yes; then
24160   
24161 cat >>confdefs.h <<\_ACEOF
24162 @%:@define HAVE_AUTHGSS_SET_DEBUG_LEVEL 1
24163 _ACEOF
24164
24165 fi
24166
24167
24168 fi
24169
24170
24171
24172
24173
24174
24175
24176
24177
24178
24179
24180
24181
24182
24183
24184
24185
24186
24187
24188
24189
24190
24191
24192
24193 for ac_header in arpa/inet.h fcntl.h libintl.h limits.h \
24194                  malloc.h memory.h netdb.h netinet/in.h paths.h \
24195                  stdlib.h string.h sys/file.h sys/ioctl.h sys/mount.h \
24196                  sys/param.h sys/socket.h sys/time.h sys/vfs.h \
24197                  syslog.h unistd.h com_err.h et/com_err.h \
24198                  ifaddrs.h
24199 do
24200 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24201 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24202   { echo "$as_me:$LINENO: checking for $ac_header" >&5
24203 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24204 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24205   echo $ECHO_N "(cached) $ECHO_C" >&6
24206 fi
24207 ac_res=`eval echo '${'$as_ac_Header'}'`
24208                { echo "$as_me:$LINENO: result: $ac_res" >&5
24209 echo "${ECHO_T}$ac_res" >&6; }
24210 else
24211   # Is the header compilable?
24212 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24213 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24214 cat >conftest.$ac_ext <<_ACEOF
24215 /* confdefs.h.  */
24216 _ACEOF
24217 cat confdefs.h >>conftest.$ac_ext
24218 cat >>conftest.$ac_ext <<_ACEOF
24219 /* end confdefs.h.  */
24220 $ac_includes_default
24221 @%:@include <$ac_header>
24222 _ACEOF
24223 rm -f conftest.$ac_objext
24224 if { (ac_try="$ac_compile"
24225 case "(($ac_try" in
24226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24227   *) ac_try_echo=$ac_try;;
24228 esac
24229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24230   (eval "$ac_compile") 2>conftest.er1
24231   ac_status=$?
24232   grep -v '^ *+' conftest.er1 >conftest.err
24233   rm -f conftest.er1
24234   cat conftest.err >&5
24235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24236   (exit $ac_status); } && {
24237          test -z "$ac_c_werror_flag" ||
24238          test ! -s conftest.err
24239        } && test -s conftest.$ac_objext; then
24240   ac_header_compiler=yes
24241 else
24242   echo "$as_me: failed program was:" >&5
24243 sed 's/^/| /' conftest.$ac_ext >&5
24244
24245         ac_header_compiler=no
24246 fi
24247
24248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24249 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24250 echo "${ECHO_T}$ac_header_compiler" >&6; }
24251
24252 # Is the header present?
24253 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24254 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24255 cat >conftest.$ac_ext <<_ACEOF
24256 /* confdefs.h.  */
24257 _ACEOF
24258 cat confdefs.h >>conftest.$ac_ext
24259 cat >>conftest.$ac_ext <<_ACEOF
24260 /* end confdefs.h.  */
24261 @%:@include <$ac_header>
24262 _ACEOF
24263 if { (ac_try="$ac_cpp conftest.$ac_ext"
24264 case "(($ac_try" in
24265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24266   *) ac_try_echo=$ac_try;;
24267 esac
24268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24269   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24270   ac_status=$?
24271   grep -v '^ *+' conftest.er1 >conftest.err
24272   rm -f conftest.er1
24273   cat conftest.err >&5
24274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24275   (exit $ac_status); } >/dev/null && {
24276          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24277          test ! -s conftest.err
24278        }; then
24279   ac_header_preproc=yes
24280 else
24281   echo "$as_me: failed program was:" >&5
24282 sed 's/^/| /' conftest.$ac_ext >&5
24283
24284   ac_header_preproc=no
24285 fi
24286
24287 rm -f conftest.err conftest.$ac_ext
24288 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24289 echo "${ECHO_T}$ac_header_preproc" >&6; }
24290
24291 # So?  What about this header?
24292 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24293   yes:no: )
24294     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24295 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24296     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24297 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24298     ac_header_preproc=yes
24299     ;;
24300   no:yes:* )
24301     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24302 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24303     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24304 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24305     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24306 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24307     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24308 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24309     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24310 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24311     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24312 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24313     ( cat <<\_ASBOX
24314 @%:@@%:@ ------------------------------- @%:@@%:@
24315 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
24316 @%:@@%:@ ------------------------------- @%:@@%:@
24317 _ASBOX
24318      ) | sed "s/^/$as_me: WARNING:     /" >&2
24319     ;;
24320 esac
24321 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24322 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24323 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24324   echo $ECHO_N "(cached) $ECHO_C" >&6
24325 else
24326   eval "$as_ac_Header=\$ac_header_preproc"
24327 fi
24328 ac_res=`eval echo '${'$as_ac_Header'}'`
24329                { echo "$as_me:$LINENO: result: $ac_res" >&5
24330 echo "${ECHO_T}$ac_res" >&6; }
24331
24332 fi
24333 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24334   cat >>confdefs.h <<_ACEOF
24335 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24336 _ACEOF
24337  
24338 fi
24339
24340 done
24341
24342
24343 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
24344 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
24345 if test "${ac_cv_c_const+set}" = set; then
24346   echo $ECHO_N "(cached) $ECHO_C" >&6
24347 else
24348   cat >conftest.$ac_ext <<_ACEOF
24349 /* confdefs.h.  */
24350 _ACEOF
24351 cat confdefs.h >>conftest.$ac_ext
24352 cat >>conftest.$ac_ext <<_ACEOF
24353 /* end confdefs.h.  */
24354
24355 int
24356 main ()
24357 {
24358 /* FIXME: Include the comments suggested by Paul. */
24359 #ifndef __cplusplus
24360   /* Ultrix mips cc rejects this.  */
24361   typedef int charset[2];
24362   const charset cs;
24363   /* SunOS 4.1.1 cc rejects this.  */
24364   char const *const *pcpcc;
24365   char **ppc;
24366   /* NEC SVR4.0.2 mips cc rejects this.  */
24367   struct point {int x, y;};
24368   static struct point const zero = {0,0};
24369   /* AIX XL C 1.02.0.0 rejects this.
24370      It does not let you subtract one const X* pointer from another in
24371      an arm of an if-expression whose if-part is not a constant
24372      expression */
24373   const char *g = "string";
24374   pcpcc = &g + (g ? g-g : 0);
24375   /* HPUX 7.0 cc rejects these. */
24376   ++pcpcc;
24377   ppc = (char**) pcpcc;
24378   pcpcc = (char const *const *) ppc;
24379   { /* SCO 3.2v4 cc rejects this.  */
24380     char *t;
24381     char const *s = 0 ? (char *) 0 : (char const *) 0;
24382
24383     *t++ = 0;
24384     if (s) return 0;
24385   }
24386   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
24387     int x[] = {25, 17};
24388     const int *foo = &x[0];
24389     ++foo;
24390   }
24391   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
24392     typedef const int *iptr;
24393     iptr p = 0;
24394     ++p;
24395   }
24396   { /* AIX XL C 1.02.0.0 rejects this saying
24397        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
24398     struct s { int j; const int *ap[3]; };
24399     struct s *b; b->j = 5;
24400   }
24401   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
24402     const int foo = 10;
24403     if (!foo) return 0;
24404   }
24405   return !cs[0] && !zero.x;
24406 #endif
24407
24408   ;
24409   return 0;
24410 }
24411 _ACEOF
24412 rm -f conftest.$ac_objext
24413 if { (ac_try="$ac_compile"
24414 case "(($ac_try" in
24415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24416   *) ac_try_echo=$ac_try;;
24417 esac
24418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24419   (eval "$ac_compile") 2>conftest.er1
24420   ac_status=$?
24421   grep -v '^ *+' conftest.er1 >conftest.err
24422   rm -f conftest.er1
24423   cat conftest.err >&5
24424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24425   (exit $ac_status); } && {
24426          test -z "$ac_c_werror_flag" ||
24427          test ! -s conftest.err
24428        } && test -s conftest.$ac_objext; then
24429   ac_cv_c_const=yes
24430 else
24431   echo "$as_me: failed program was:" >&5
24432 sed 's/^/| /' conftest.$ac_ext >&5
24433
24434         ac_cv_c_const=no
24435 fi
24436
24437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24438 fi
24439 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
24440 echo "${ECHO_T}$ac_cv_c_const" >&6; }
24441 if test $ac_cv_c_const = no; then
24442   
24443 cat >>confdefs.h <<\_ACEOF
24444 @%:@define const 
24445 _ACEOF
24446
24447 fi
24448
24449 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
24450 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
24451 if test "${ac_cv_type_uid_t+set}" = set; then
24452   echo $ECHO_N "(cached) $ECHO_C" >&6
24453 else
24454   cat >conftest.$ac_ext <<_ACEOF
24455 /* confdefs.h.  */
24456 _ACEOF
24457 cat confdefs.h >>conftest.$ac_ext
24458 cat >>conftest.$ac_ext <<_ACEOF
24459 /* end confdefs.h.  */
24460 #include <sys/types.h>
24461
24462 _ACEOF
24463 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24464   $EGREP "uid_t" >/dev/null 2>&1; then
24465   ac_cv_type_uid_t=yes
24466 else
24467   ac_cv_type_uid_t=no
24468 fi
24469 rm -f conftest*
24470
24471 fi
24472 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
24473 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
24474 if test $ac_cv_type_uid_t = no; then
24475   
24476 cat >>confdefs.h <<\_ACEOF
24477 @%:@define uid_t int
24478 _ACEOF
24479
24480   
24481 cat >>confdefs.h <<\_ACEOF
24482 @%:@define gid_t int
24483 _ACEOF
24484
24485 fi
24486
24487 { echo "$as_me:$LINENO: checking for inline" >&5
24488 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
24489 if test "${ac_cv_c_inline+set}" = set; then
24490   echo $ECHO_N "(cached) $ECHO_C" >&6
24491 else
24492   ac_cv_c_inline=no
24493 for ac_kw in inline __inline__ __inline; do
24494   cat >conftest.$ac_ext <<_ACEOF
24495 /* confdefs.h.  */
24496 _ACEOF
24497 cat confdefs.h >>conftest.$ac_ext
24498 cat >>conftest.$ac_ext <<_ACEOF
24499 /* end confdefs.h.  */
24500 #ifndef __cplusplus
24501 typedef int foo_t;
24502 static $ac_kw foo_t static_foo () {return 0; }
24503 $ac_kw foo_t foo () {return 0; }
24504 #endif
24505
24506 _ACEOF
24507 rm -f conftest.$ac_objext
24508 if { (ac_try="$ac_compile"
24509 case "(($ac_try" in
24510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24511   *) ac_try_echo=$ac_try;;
24512 esac
24513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24514   (eval "$ac_compile") 2>conftest.er1
24515   ac_status=$?
24516   grep -v '^ *+' conftest.er1 >conftest.err
24517   rm -f conftest.er1
24518   cat conftest.err >&5
24519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24520   (exit $ac_status); } && {
24521          test -z "$ac_c_werror_flag" ||
24522          test ! -s conftest.err
24523        } && test -s conftest.$ac_objext; then
24524   ac_cv_c_inline=$ac_kw
24525 else
24526   echo "$as_me: failed program was:" >&5
24527 sed 's/^/| /' conftest.$ac_ext >&5
24528
24529         
24530 fi
24531
24532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24533   test "$ac_cv_c_inline" != no && break
24534 done
24535
24536 fi
24537 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
24538 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
24539
24540
24541 case $ac_cv_c_inline in
24542   inline | yes) ;;
24543   *)
24544     case $ac_cv_c_inline in
24545       no) ac_val=;;
24546       *) ac_val=$ac_cv_c_inline;;
24547     esac
24548     cat >>confdefs.h <<_ACEOF
24549 #ifndef __cplusplus
24550 #define inline $ac_val
24551 #endif
24552 _ACEOF
24553     ;;
24554 esac
24555
24556 { echo "$as_me:$LINENO: checking for off_t" >&5
24557 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
24558 if test "${ac_cv_type_off_t+set}" = set; then
24559   echo $ECHO_N "(cached) $ECHO_C" >&6
24560 else
24561   cat >conftest.$ac_ext <<_ACEOF
24562 /* confdefs.h.  */
24563 _ACEOF
24564 cat confdefs.h >>conftest.$ac_ext
24565 cat >>conftest.$ac_ext <<_ACEOF
24566 /* end confdefs.h.  */
24567 $ac_includes_default
24568 typedef off_t ac__type_new_;
24569 int
24570 main ()
24571 {
24572 if ((ac__type_new_ *) 0)
24573   return 0;
24574 if (sizeof (ac__type_new_))
24575   return 0;
24576   ;
24577   return 0;
24578 }
24579 _ACEOF
24580 rm -f conftest.$ac_objext
24581 if { (ac_try="$ac_compile"
24582 case "(($ac_try" in
24583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24584   *) ac_try_echo=$ac_try;;
24585 esac
24586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24587   (eval "$ac_compile") 2>conftest.er1
24588   ac_status=$?
24589   grep -v '^ *+' conftest.er1 >conftest.err
24590   rm -f conftest.er1
24591   cat conftest.err >&5
24592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24593   (exit $ac_status); } && {
24594          test -z "$ac_c_werror_flag" ||
24595          test ! -s conftest.err
24596        } && test -s conftest.$ac_objext; then
24597   ac_cv_type_off_t=yes
24598 else
24599   echo "$as_me: failed program was:" >&5
24600 sed 's/^/| /' conftest.$ac_ext >&5
24601
24602         ac_cv_type_off_t=no
24603 fi
24604
24605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24606 fi
24607 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
24608 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
24609 if test $ac_cv_type_off_t = yes; then
24610   :
24611 else
24612   
24613 cat >>confdefs.h <<_ACEOF
24614 @%:@define off_t long int
24615 _ACEOF
24616
24617 fi
24618
24619 { echo "$as_me:$LINENO: checking for pid_t" >&5
24620 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
24621 if test "${ac_cv_type_pid_t+set}" = set; then
24622   echo $ECHO_N "(cached) $ECHO_C" >&6
24623 else
24624   cat >conftest.$ac_ext <<_ACEOF
24625 /* confdefs.h.  */
24626 _ACEOF
24627 cat confdefs.h >>conftest.$ac_ext
24628 cat >>conftest.$ac_ext <<_ACEOF
24629 /* end confdefs.h.  */
24630 $ac_includes_default
24631 typedef pid_t ac__type_new_;
24632 int
24633 main ()
24634 {
24635 if ((ac__type_new_ *) 0)
24636   return 0;
24637 if (sizeof (ac__type_new_))
24638   return 0;
24639   ;
24640   return 0;
24641 }
24642 _ACEOF
24643 rm -f conftest.$ac_objext
24644 if { (ac_try="$ac_compile"
24645 case "(($ac_try" in
24646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24647   *) ac_try_echo=$ac_try;;
24648 esac
24649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24650   (eval "$ac_compile") 2>conftest.er1
24651   ac_status=$?
24652   grep -v '^ *+' conftest.er1 >conftest.err
24653   rm -f conftest.er1
24654   cat conftest.err >&5
24655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24656   (exit $ac_status); } && {
24657          test -z "$ac_c_werror_flag" ||
24658          test ! -s conftest.err
24659        } && test -s conftest.$ac_objext; then
24660   ac_cv_type_pid_t=yes
24661 else
24662   echo "$as_me: failed program was:" >&5
24663 sed 's/^/| /' conftest.$ac_ext >&5
24664
24665         ac_cv_type_pid_t=no
24666 fi
24667
24668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24669 fi
24670 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
24671 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
24672 if test $ac_cv_type_pid_t = yes; then
24673   :
24674 else
24675   
24676 cat >>confdefs.h <<_ACEOF
24677 @%:@define pid_t int
24678 _ACEOF
24679
24680 fi
24681
24682 { echo "$as_me:$LINENO: checking for size_t" >&5
24683 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
24684 if test "${ac_cv_type_size_t+set}" = set; then
24685   echo $ECHO_N "(cached) $ECHO_C" >&6
24686 else
24687   cat >conftest.$ac_ext <<_ACEOF
24688 /* confdefs.h.  */
24689 _ACEOF
24690 cat confdefs.h >>conftest.$ac_ext
24691 cat >>conftest.$ac_ext <<_ACEOF
24692 /* end confdefs.h.  */
24693 $ac_includes_default
24694 typedef size_t ac__type_new_;
24695 int
24696 main ()
24697 {
24698 if ((ac__type_new_ *) 0)
24699   return 0;
24700 if (sizeof (ac__type_new_))
24701   return 0;
24702   ;
24703   return 0;
24704 }
24705 _ACEOF
24706 rm -f conftest.$ac_objext
24707 if { (ac_try="$ac_compile"
24708 case "(($ac_try" in
24709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24710   *) ac_try_echo=$ac_try;;
24711 esac
24712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24713   (eval "$ac_compile") 2>conftest.er1
24714   ac_status=$?
24715   grep -v '^ *+' conftest.er1 >conftest.err
24716   rm -f conftest.er1
24717   cat conftest.err >&5
24718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24719   (exit $ac_status); } && {
24720          test -z "$ac_c_werror_flag" ||
24721          test ! -s conftest.err
24722        } && test -s conftest.$ac_objext; then
24723   ac_cv_type_size_t=yes
24724 else
24725   echo "$as_me: failed program was:" >&5
24726 sed 's/^/| /' conftest.$ac_ext >&5
24727
24728         ac_cv_type_size_t=no
24729 fi
24730
24731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24732 fi
24733 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
24734 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
24735 if test $ac_cv_type_size_t = yes; then
24736   :
24737 else
24738   
24739 cat >>confdefs.h <<_ACEOF
24740 @%:@define size_t unsigned int
24741 _ACEOF
24742
24743 fi
24744
24745 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
24746 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
24747 if test "${ac_cv_header_time+set}" = set; then
24748   echo $ECHO_N "(cached) $ECHO_C" >&6
24749 else
24750   cat >conftest.$ac_ext <<_ACEOF
24751 /* confdefs.h.  */
24752 _ACEOF
24753 cat confdefs.h >>conftest.$ac_ext
24754 cat >>conftest.$ac_ext <<_ACEOF
24755 /* end confdefs.h.  */
24756 #include <sys/types.h>
24757 #include <sys/time.h>
24758 #include <time.h>
24759
24760 int
24761 main ()
24762 {
24763 if ((struct tm *) 0)
24764 return 0;
24765   ;
24766   return 0;
24767 }
24768 _ACEOF
24769 rm -f conftest.$ac_objext
24770 if { (ac_try="$ac_compile"
24771 case "(($ac_try" in
24772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24773   *) ac_try_echo=$ac_try;;
24774 esac
24775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24776   (eval "$ac_compile") 2>conftest.er1
24777   ac_status=$?
24778   grep -v '^ *+' conftest.er1 >conftest.err
24779   rm -f conftest.er1
24780   cat conftest.err >&5
24781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24782   (exit $ac_status); } && {
24783          test -z "$ac_c_werror_flag" ||
24784          test ! -s conftest.err
24785        } && test -s conftest.$ac_objext; then
24786   ac_cv_header_time=yes
24787 else
24788   echo "$as_me: failed program was:" >&5
24789 sed 's/^/| /' conftest.$ac_ext >&5
24790
24791         ac_cv_header_time=no
24792 fi
24793
24794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24795 fi
24796 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
24797 echo "${ECHO_T}$ac_cv_header_time" >&6; }
24798 if test $ac_cv_header_time = yes; then
24799   
24800 cat >>confdefs.h <<\_ACEOF
24801 @%:@define TIME_WITH_SYS_TIME 1
24802 _ACEOF
24803
24804 fi
24805
24806 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
24807 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
24808 if test "${ac_cv_struct_tm+set}" = set; then
24809   echo $ECHO_N "(cached) $ECHO_C" >&6
24810 else
24811   cat >conftest.$ac_ext <<_ACEOF
24812 /* confdefs.h.  */
24813 _ACEOF
24814 cat confdefs.h >>conftest.$ac_ext
24815 cat >>conftest.$ac_ext <<_ACEOF
24816 /* end confdefs.h.  */
24817 #include <sys/types.h>
24818 #include <time.h>
24819
24820 int
24821 main ()
24822 {
24823 struct tm tm;
24824                                      int *p = &tm.tm_sec;
24825                                      return !p;
24826   ;
24827   return 0;
24828 }
24829 _ACEOF
24830 rm -f conftest.$ac_objext
24831 if { (ac_try="$ac_compile"
24832 case "(($ac_try" in
24833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24834   *) ac_try_echo=$ac_try;;
24835 esac
24836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24837   (eval "$ac_compile") 2>conftest.er1
24838   ac_status=$?
24839   grep -v '^ *+' conftest.er1 >conftest.err
24840   rm -f conftest.er1
24841   cat conftest.err >&5
24842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24843   (exit $ac_status); } && {
24844          test -z "$ac_c_werror_flag" ||
24845          test ! -s conftest.err
24846        } && test -s conftest.$ac_objext; then
24847   ac_cv_struct_tm=time.h
24848 else
24849   echo "$as_me: failed program was:" >&5
24850 sed 's/^/| /' conftest.$ac_ext >&5
24851
24852         ac_cv_struct_tm=sys/time.h
24853 fi
24854
24855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24856 fi
24857 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
24858 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
24859 if test $ac_cv_struct_tm = sys/time.h; then
24860   
24861 cat >>confdefs.h <<\_ACEOF
24862 @%:@define TM_IN_SYS_TIME 1
24863 _ACEOF
24864
24865 fi
24866
24867
24868 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
24869 # for constant arguments.  Useless!
24870 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
24871 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
24872 if test "${ac_cv_working_alloca_h+set}" = set; then
24873   echo $ECHO_N "(cached) $ECHO_C" >&6
24874 else
24875   cat >conftest.$ac_ext <<_ACEOF
24876 /* confdefs.h.  */
24877 _ACEOF
24878 cat confdefs.h >>conftest.$ac_ext
24879 cat >>conftest.$ac_ext <<_ACEOF
24880 /* end confdefs.h.  */
24881 @%:@include <alloca.h>
24882 int
24883 main ()
24884 {
24885 char *p = (char *) alloca (2 * sizeof (int));
24886                           if (p) return 0;
24887   ;
24888   return 0;
24889 }
24890 _ACEOF
24891 rm -f conftest.$ac_objext conftest$ac_exeext
24892 if { (ac_try="$ac_link"
24893 case "(($ac_try" in
24894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24895   *) ac_try_echo=$ac_try;;
24896 esac
24897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24898   (eval "$ac_link") 2>conftest.er1
24899   ac_status=$?
24900   grep -v '^ *+' conftest.er1 >conftest.err
24901   rm -f conftest.er1
24902   cat conftest.err >&5
24903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24904   (exit $ac_status); } && {
24905          test -z "$ac_c_werror_flag" ||
24906          test ! -s conftest.err
24907        } && test -s conftest$ac_exeext &&
24908        $as_test_x conftest$ac_exeext; then
24909   ac_cv_working_alloca_h=yes
24910 else
24911   echo "$as_me: failed program was:" >&5
24912 sed 's/^/| /' conftest.$ac_ext >&5
24913
24914         ac_cv_working_alloca_h=no
24915 fi
24916
24917 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24918       conftest$ac_exeext conftest.$ac_ext
24919 fi
24920 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
24921 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
24922 if test $ac_cv_working_alloca_h = yes; then
24923   
24924 cat >>confdefs.h <<\_ACEOF
24925 @%:@define HAVE_ALLOCA_H 1
24926 _ACEOF
24927
24928 fi
24929
24930 { echo "$as_me:$LINENO: checking for alloca" >&5
24931 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
24932 if test "${ac_cv_func_alloca_works+set}" = set; then
24933   echo $ECHO_N "(cached) $ECHO_C" >&6
24934 else
24935   cat >conftest.$ac_ext <<_ACEOF
24936 /* confdefs.h.  */
24937 _ACEOF
24938 cat confdefs.h >>conftest.$ac_ext
24939 cat >>conftest.$ac_ext <<_ACEOF
24940 /* end confdefs.h.  */
24941 #ifdef __GNUC__
24942 # define alloca __builtin_alloca
24943 #else
24944 # ifdef _MSC_VER
24945 #  include <malloc.h>
24946 #  define alloca _alloca
24947 # else
24948 #  ifdef HAVE_ALLOCA_H
24949 #   include <alloca.h>
24950 #  else
24951 #   ifdef _AIX
24952  #pragma alloca
24953 #   else
24954 #    ifndef alloca /* predefined by HP cc +Olibcalls */
24955 char *alloca ();
24956 #    endif
24957 #   endif
24958 #  endif
24959 # endif
24960 #endif
24961
24962 int
24963 main ()
24964 {
24965 char *p = (char *) alloca (1);
24966                                     if (p) return 0;
24967   ;
24968   return 0;
24969 }
24970 _ACEOF
24971 rm -f conftest.$ac_objext conftest$ac_exeext
24972 if { (ac_try="$ac_link"
24973 case "(($ac_try" in
24974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24975   *) ac_try_echo=$ac_try;;
24976 esac
24977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24978   (eval "$ac_link") 2>conftest.er1
24979   ac_status=$?
24980   grep -v '^ *+' conftest.er1 >conftest.err
24981   rm -f conftest.er1
24982   cat conftest.err >&5
24983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24984   (exit $ac_status); } && {
24985          test -z "$ac_c_werror_flag" ||
24986          test ! -s conftest.err
24987        } && test -s conftest$ac_exeext &&
24988        $as_test_x conftest$ac_exeext; then
24989   ac_cv_func_alloca_works=yes
24990 else
24991   echo "$as_me: failed program was:" >&5
24992 sed 's/^/| /' conftest.$ac_ext >&5
24993
24994         ac_cv_func_alloca_works=no
24995 fi
24996
24997 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24998       conftest$ac_exeext conftest.$ac_ext
24999 fi
25000 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
25001 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
25002
25003 if test $ac_cv_func_alloca_works = yes; then
25004   
25005 cat >>confdefs.h <<\_ACEOF
25006 @%:@define HAVE_ALLOCA 1
25007 _ACEOF
25008
25009 else
25010   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
25011 # that cause trouble.  Some versions do not even contain alloca or
25012 # contain a buggy version.  If you still want to use their alloca,
25013 # use ar to extract alloca.o from them instead of compiling alloca.c.
25014
25015 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
25016
25017 cat >>confdefs.h <<\_ACEOF
25018 @%:@define C_ALLOCA 1
25019 _ACEOF
25020
25021
25022 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
25023 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
25024 if test "${ac_cv_os_cray+set}" = set; then
25025   echo $ECHO_N "(cached) $ECHO_C" >&6
25026 else
25027   cat >conftest.$ac_ext <<_ACEOF
25028 /* confdefs.h.  */
25029 _ACEOF
25030 cat confdefs.h >>conftest.$ac_ext
25031 cat >>conftest.$ac_ext <<_ACEOF
25032 /* end confdefs.h.  */
25033 #if defined CRAY && ! defined CRAY2
25034 webecray
25035 #else
25036 wenotbecray
25037 #endif
25038
25039 _ACEOF
25040 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25041   $EGREP "webecray" >/dev/null 2>&1; then
25042   ac_cv_os_cray=yes
25043 else
25044   ac_cv_os_cray=no
25045 fi
25046 rm -f conftest*
25047
25048 fi
25049 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
25050 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
25051 if test $ac_cv_os_cray = yes; then
25052   for ac_func in _getb67 GETB67 getb67; do
25053     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25054 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25055 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25056 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25057   echo $ECHO_N "(cached) $ECHO_C" >&6
25058 else
25059   cat >conftest.$ac_ext <<_ACEOF
25060 /* confdefs.h.  */
25061 _ACEOF
25062 cat confdefs.h >>conftest.$ac_ext
25063 cat >>conftest.$ac_ext <<_ACEOF
25064 /* end confdefs.h.  */
25065 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25066    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25067 #define $ac_func innocuous_$ac_func
25068
25069 /* System header to define __stub macros and hopefully few prototypes,
25070     which can conflict with char $ac_func (); below.
25071     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25072     <limits.h> exists even on freestanding compilers.  */
25073
25074 #ifdef __STDC__
25075 # include <limits.h>
25076 #else
25077 # include <assert.h>
25078 #endif
25079
25080 #undef $ac_func
25081
25082 /* Override any GCC internal prototype to avoid an error.
25083    Use char because int might match the return type of a GCC
25084    builtin and then its argument prototype would still apply.  */
25085 #ifdef __cplusplus
25086 extern "C"
25087 #endif
25088 char $ac_func ();
25089 /* The GNU C library defines this for functions which it implements
25090     to always fail with ENOSYS.  Some functions are actually named
25091     something starting with __ and the normal name is an alias.  */
25092 #if defined __stub_$ac_func || defined __stub___$ac_func
25093 choke me
25094 #endif
25095
25096 int
25097 main ()
25098 {
25099 return $ac_func ();
25100   ;
25101   return 0;
25102 }
25103 _ACEOF
25104 rm -f conftest.$ac_objext conftest$ac_exeext
25105 if { (ac_try="$ac_link"
25106 case "(($ac_try" in
25107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25108   *) ac_try_echo=$ac_try;;
25109 esac
25110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25111   (eval "$ac_link") 2>conftest.er1
25112   ac_status=$?
25113   grep -v '^ *+' conftest.er1 >conftest.err
25114   rm -f conftest.er1
25115   cat conftest.err >&5
25116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25117   (exit $ac_status); } && {
25118          test -z "$ac_c_werror_flag" ||
25119          test ! -s conftest.err
25120        } && test -s conftest$ac_exeext &&
25121        $as_test_x conftest$ac_exeext; then
25122   eval "$as_ac_var=yes"
25123 else
25124   echo "$as_me: failed program was:" >&5
25125 sed 's/^/| /' conftest.$ac_ext >&5
25126
25127         eval "$as_ac_var=no"
25128 fi
25129
25130 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25131       conftest$ac_exeext conftest.$ac_ext
25132 fi
25133 ac_res=`eval echo '${'$as_ac_var'}'`
25134                { echo "$as_me:$LINENO: result: $ac_res" >&5
25135 echo "${ECHO_T}$ac_res" >&6; }
25136 if test `eval echo '${'$as_ac_var'}'` = yes; then
25137   
25138 cat >>confdefs.h <<_ACEOF
25139 @%:@define CRAY_STACKSEG_END $ac_func
25140 _ACEOF
25141
25142     break
25143 fi
25144
25145   done
25146 fi
25147
25148 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
25149 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
25150 if test "${ac_cv_c_stack_direction+set}" = set; then
25151   echo $ECHO_N "(cached) $ECHO_C" >&6
25152 else
25153   if test "$cross_compiling" = yes; then
25154   ac_cv_c_stack_direction=0
25155 else
25156   cat >conftest.$ac_ext <<_ACEOF
25157 /* confdefs.h.  */
25158 _ACEOF
25159 cat confdefs.h >>conftest.$ac_ext
25160 cat >>conftest.$ac_ext <<_ACEOF
25161 /* end confdefs.h.  */
25162 $ac_includes_default
25163 int
25164 find_stack_direction ()
25165 {
25166   static char *addr = 0;
25167   auto char dummy;
25168   if (addr == 0)
25169     {
25170       addr = &dummy;
25171       return find_stack_direction ();
25172     }
25173   else
25174     return (&dummy > addr) ? 1 : -1;
25175 }
25176
25177 int
25178 main ()
25179 {
25180   return find_stack_direction () < 0;
25181 }
25182 _ACEOF
25183 rm -f conftest$ac_exeext
25184 if { (ac_try="$ac_link"
25185 case "(($ac_try" in
25186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25187   *) ac_try_echo=$ac_try;;
25188 esac
25189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25190   (eval "$ac_link") 2>&5
25191   ac_status=$?
25192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25193   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25194   { (case "(($ac_try" in
25195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25196   *) ac_try_echo=$ac_try;;
25197 esac
25198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25199   (eval "$ac_try") 2>&5
25200   ac_status=$?
25201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25202   (exit $ac_status); }; }; then
25203   ac_cv_c_stack_direction=1
25204 else
25205   echo "$as_me: program exited with status $ac_status" >&5
25206 echo "$as_me: failed program was:" >&5
25207 sed 's/^/| /' conftest.$ac_ext >&5
25208
25209 ( exit $ac_status )
25210 ac_cv_c_stack_direction=-1
25211 fi
25212 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25213 fi
25214
25215
25216 fi
25217 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
25218 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
25219
25220 cat >>confdefs.h <<_ACEOF
25221 @%:@define STACK_DIRECTION $ac_cv_c_stack_direction
25222 _ACEOF
25223
25224
25225 fi
25226
25227
25228
25229
25230
25231
25232 ac_header_dirent=no
25233 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25234   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25235 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25236 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
25237 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25238   echo $ECHO_N "(cached) $ECHO_C" >&6
25239 else
25240   cat >conftest.$ac_ext <<_ACEOF
25241 /* confdefs.h.  */
25242 _ACEOF
25243 cat confdefs.h >>conftest.$ac_ext
25244 cat >>conftest.$ac_ext <<_ACEOF
25245 /* end confdefs.h.  */
25246 #include <sys/types.h>
25247 #include <$ac_hdr>
25248
25249 int
25250 main ()
25251 {
25252 if ((DIR *) 0)
25253 return 0;
25254   ;
25255   return 0;
25256 }
25257 _ACEOF
25258 rm -f conftest.$ac_objext
25259 if { (ac_try="$ac_compile"
25260 case "(($ac_try" in
25261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25262   *) ac_try_echo=$ac_try;;
25263 esac
25264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25265   (eval "$ac_compile") 2>conftest.er1
25266   ac_status=$?
25267   grep -v '^ *+' conftest.er1 >conftest.err
25268   rm -f conftest.er1
25269   cat conftest.err >&5
25270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25271   (exit $ac_status); } && {
25272          test -z "$ac_c_werror_flag" ||
25273          test ! -s conftest.err
25274        } && test -s conftest.$ac_objext; then
25275   eval "$as_ac_Header=yes"
25276 else
25277   echo "$as_me: failed program was:" >&5
25278 sed 's/^/| /' conftest.$ac_ext >&5
25279
25280         eval "$as_ac_Header=no"
25281 fi
25282
25283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25284 fi
25285 ac_res=`eval echo '${'$as_ac_Header'}'`
25286                { echo "$as_me:$LINENO: result: $ac_res" >&5
25287 echo "${ECHO_T}$ac_res" >&6; }
25288 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25289   cat >>confdefs.h <<_ACEOF
25290 @%:@define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25291 _ACEOF
25292
25293 ac_header_dirent=$ac_hdr; break
25294 fi
25295
25296 done
25297 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25298 if test $ac_header_dirent = dirent.h; then
25299   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25300 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25301 if test "${ac_cv_search_opendir+set}" = set; then
25302   echo $ECHO_N "(cached) $ECHO_C" >&6
25303 else
25304   ac_func_search_save_LIBS=$LIBS
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
25312 /* Override any GCC internal prototype to avoid an error.
25313    Use char because int might match the return type of a GCC
25314    builtin and then its argument prototype would still apply.  */
25315 #ifdef __cplusplus
25316 extern "C"
25317 #endif
25318 char opendir ();
25319 int
25320 main ()
25321 {
25322 return opendir ();
25323   ;
25324   return 0;
25325 }
25326 _ACEOF
25327 for ac_lib in '' dir; do
25328   if test -z "$ac_lib"; then
25329     ac_res="none required"
25330   else
25331     ac_res=-l$ac_lib
25332     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25333   fi
25334   rm -f conftest.$ac_objext conftest$ac_exeext
25335 if { (ac_try="$ac_link"
25336 case "(($ac_try" in
25337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25338   *) ac_try_echo=$ac_try;;
25339 esac
25340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25341   (eval "$ac_link") 2>conftest.er1
25342   ac_status=$?
25343   grep -v '^ *+' conftest.er1 >conftest.err
25344   rm -f conftest.er1
25345   cat conftest.err >&5
25346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25347   (exit $ac_status); } && {
25348          test -z "$ac_c_werror_flag" ||
25349          test ! -s conftest.err
25350        } && test -s conftest$ac_exeext &&
25351        $as_test_x conftest$ac_exeext; then
25352   ac_cv_search_opendir=$ac_res
25353 else
25354   echo "$as_me: failed program was:" >&5
25355 sed 's/^/| /' conftest.$ac_ext >&5
25356
25357         
25358 fi
25359
25360 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25361       conftest$ac_exeext 
25362   if test "${ac_cv_search_opendir+set}" = set; then
25363   break
25364 fi
25365 done
25366 if test "${ac_cv_search_opendir+set}" = set; then
25367   :
25368 else
25369   ac_cv_search_opendir=no
25370 fi
25371 rm conftest.$ac_ext
25372 LIBS=$ac_func_search_save_LIBS
25373 fi
25374 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25375 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25376 ac_res=$ac_cv_search_opendir
25377 if test "$ac_res" != no; then
25378   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25379   
25380 fi
25381
25382 else
25383   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25384 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25385 if test "${ac_cv_search_opendir+set}" = set; then
25386   echo $ECHO_N "(cached) $ECHO_C" >&6
25387 else
25388   ac_func_search_save_LIBS=$LIBS
25389 cat >conftest.$ac_ext <<_ACEOF
25390 /* confdefs.h.  */
25391 _ACEOF
25392 cat confdefs.h >>conftest.$ac_ext
25393 cat >>conftest.$ac_ext <<_ACEOF
25394 /* end confdefs.h.  */
25395
25396 /* Override any GCC internal prototype to avoid an error.
25397    Use char because int might match the return type of a GCC
25398    builtin and then its argument prototype would still apply.  */
25399 #ifdef __cplusplus
25400 extern "C"
25401 #endif
25402 char opendir ();
25403 int
25404 main ()
25405 {
25406 return opendir ();
25407   ;
25408   return 0;
25409 }
25410 _ACEOF
25411 for ac_lib in '' x; do
25412   if test -z "$ac_lib"; then
25413     ac_res="none required"
25414   else
25415     ac_res=-l$ac_lib
25416     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25417   fi
25418   rm -f conftest.$ac_objext conftest$ac_exeext
25419 if { (ac_try="$ac_link"
25420 case "(($ac_try" in
25421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25422   *) ac_try_echo=$ac_try;;
25423 esac
25424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25425   (eval "$ac_link") 2>conftest.er1
25426   ac_status=$?
25427   grep -v '^ *+' conftest.er1 >conftest.err
25428   rm -f conftest.er1
25429   cat conftest.err >&5
25430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25431   (exit $ac_status); } && {
25432          test -z "$ac_c_werror_flag" ||
25433          test ! -s conftest.err
25434        } && test -s conftest$ac_exeext &&
25435        $as_test_x conftest$ac_exeext; then
25436   ac_cv_search_opendir=$ac_res
25437 else
25438   echo "$as_me: failed program was:" >&5
25439 sed 's/^/| /' conftest.$ac_ext >&5
25440
25441         
25442 fi
25443
25444 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25445       conftest$ac_exeext 
25446   if test "${ac_cv_search_opendir+set}" = set; then
25447   break
25448 fi
25449 done
25450 if test "${ac_cv_search_opendir+set}" = set; then
25451   :
25452 else
25453   ac_cv_search_opendir=no
25454 fi
25455 rm conftest.$ac_ext
25456 LIBS=$ac_func_search_save_LIBS
25457 fi
25458 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25459 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25460 ac_res=$ac_cv_search_opendir
25461 if test "$ac_res" != no; then
25462   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25463   
25464 fi
25465
25466 fi
25467
25468 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
25469 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
25470 if test "${ac_cv_func_closedir_void+set}" = set; then
25471   echo $ECHO_N "(cached) $ECHO_C" >&6
25472 else
25473   if test "$cross_compiling" = yes; then
25474   ac_cv_func_closedir_void=yes
25475 else
25476   cat >conftest.$ac_ext <<_ACEOF
25477 /* confdefs.h.  */
25478 _ACEOF
25479 cat confdefs.h >>conftest.$ac_ext
25480 cat >>conftest.$ac_ext <<_ACEOF
25481 /* end confdefs.h.  */
25482 $ac_includes_default
25483 #include <$ac_header_dirent>
25484 #ifndef __cplusplus
25485 int closedir ();
25486 #endif
25487
25488 int
25489 main ()
25490 {
25491 return closedir (opendir (".")) != 0;
25492   ;
25493   return 0;
25494 }
25495 _ACEOF
25496 rm -f conftest$ac_exeext
25497 if { (ac_try="$ac_link"
25498 case "(($ac_try" in
25499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25500   *) ac_try_echo=$ac_try;;
25501 esac
25502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25503   (eval "$ac_link") 2>&5
25504   ac_status=$?
25505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25506   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25507   { (case "(($ac_try" in
25508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25509   *) ac_try_echo=$ac_try;;
25510 esac
25511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25512   (eval "$ac_try") 2>&5
25513   ac_status=$?
25514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25515   (exit $ac_status); }; }; then
25516   ac_cv_func_closedir_void=no
25517 else
25518   echo "$as_me: program exited with status $ac_status" >&5
25519 echo "$as_me: failed program was:" >&5
25520 sed 's/^/| /' conftest.$ac_ext >&5
25521
25522 ( exit $ac_status )
25523 ac_cv_func_closedir_void=yes
25524 fi
25525 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25526 fi
25527
25528
25529 fi
25530 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
25531 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
25532 if test $ac_cv_func_closedir_void = yes; then
25533   
25534 cat >>confdefs.h <<\_ACEOF
25535 @%:@define CLOSEDIR_VOID 1
25536 _ACEOF
25537
25538 fi
25539
25540 { echo "$as_me:$LINENO: checking for error_at_line" >&5
25541 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
25542 if test "${ac_cv_lib_error_at_line+set}" = set; then
25543   echo $ECHO_N "(cached) $ECHO_C" >&6
25544 else
25545   cat >conftest.$ac_ext <<_ACEOF
25546 /* confdefs.h.  */
25547 _ACEOF
25548 cat confdefs.h >>conftest.$ac_ext
25549 cat >>conftest.$ac_ext <<_ACEOF
25550 /* end confdefs.h.  */
25551 #include <error.h>
25552 int
25553 main ()
25554 {
25555 error_at_line (0, 0, "", 0, "an error occurred");
25556   ;
25557   return 0;
25558 }
25559 _ACEOF
25560 rm -f conftest.$ac_objext conftest$ac_exeext
25561 if { (ac_try="$ac_link"
25562 case "(($ac_try" in
25563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25564   *) ac_try_echo=$ac_try;;
25565 esac
25566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25567   (eval "$ac_link") 2>conftest.er1
25568   ac_status=$?
25569   grep -v '^ *+' conftest.er1 >conftest.err
25570   rm -f conftest.er1
25571   cat conftest.err >&5
25572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25573   (exit $ac_status); } && {
25574          test -z "$ac_c_werror_flag" ||
25575          test ! -s conftest.err
25576        } && test -s conftest$ac_exeext &&
25577        $as_test_x conftest$ac_exeext; then
25578   ac_cv_lib_error_at_line=yes
25579 else
25580   echo "$as_me: failed program was:" >&5
25581 sed 's/^/| /' conftest.$ac_ext >&5
25582
25583         ac_cv_lib_error_at_line=no
25584 fi
25585
25586 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25587       conftest$ac_exeext conftest.$ac_ext
25588 fi
25589 { echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
25590 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
25591 if test $ac_cv_lib_error_at_line = no; then
25592   case " $LIB@&t@OBJS " in
25593   *" error.$ac_objext "* ) ;;
25594   *) LIB@&t@OBJS="$LIB@&t@OBJS error.$ac_objext"
25595  ;;
25596 esac
25597
25598 fi
25599
25600
25601 for ac_header in vfork.h
25602 do
25603 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25604 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25605   { echo "$as_me:$LINENO: checking for $ac_header" >&5
25606 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25607 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25608   echo $ECHO_N "(cached) $ECHO_C" >&6
25609 fi
25610 ac_res=`eval echo '${'$as_ac_Header'}'`
25611                { echo "$as_me:$LINENO: result: $ac_res" >&5
25612 echo "${ECHO_T}$ac_res" >&6; }
25613 else
25614   # Is the header compilable?
25615 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
25616 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25617 cat >conftest.$ac_ext <<_ACEOF
25618 /* confdefs.h.  */
25619 _ACEOF
25620 cat confdefs.h >>conftest.$ac_ext
25621 cat >>conftest.$ac_ext <<_ACEOF
25622 /* end confdefs.h.  */
25623 $ac_includes_default
25624 @%:@include <$ac_header>
25625 _ACEOF
25626 rm -f conftest.$ac_objext
25627 if { (ac_try="$ac_compile"
25628 case "(($ac_try" in
25629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25630   *) ac_try_echo=$ac_try;;
25631 esac
25632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25633   (eval "$ac_compile") 2>conftest.er1
25634   ac_status=$?
25635   grep -v '^ *+' conftest.er1 >conftest.err
25636   rm -f conftest.er1
25637   cat conftest.err >&5
25638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25639   (exit $ac_status); } && {
25640          test -z "$ac_c_werror_flag" ||
25641          test ! -s conftest.err
25642        } && test -s conftest.$ac_objext; then
25643   ac_header_compiler=yes
25644 else
25645   echo "$as_me: failed program was:" >&5
25646 sed 's/^/| /' conftest.$ac_ext >&5
25647
25648         ac_header_compiler=no
25649 fi
25650
25651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25652 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25653 echo "${ECHO_T}$ac_header_compiler" >&6; }
25654
25655 # Is the header present?
25656 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
25657 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
25658 cat >conftest.$ac_ext <<_ACEOF
25659 /* confdefs.h.  */
25660 _ACEOF
25661 cat confdefs.h >>conftest.$ac_ext
25662 cat >>conftest.$ac_ext <<_ACEOF
25663 /* end confdefs.h.  */
25664 @%:@include <$ac_header>
25665 _ACEOF
25666 if { (ac_try="$ac_cpp conftest.$ac_ext"
25667 case "(($ac_try" in
25668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25669   *) ac_try_echo=$ac_try;;
25670 esac
25671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25672   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25673   ac_status=$?
25674   grep -v '^ *+' conftest.er1 >conftest.err
25675   rm -f conftest.er1
25676   cat conftest.err >&5
25677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25678   (exit $ac_status); } >/dev/null && {
25679          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25680          test ! -s conftest.err
25681        }; then
25682   ac_header_preproc=yes
25683 else
25684   echo "$as_me: failed program was:" >&5
25685 sed 's/^/| /' conftest.$ac_ext >&5
25686
25687   ac_header_preproc=no
25688 fi
25689
25690 rm -f conftest.err conftest.$ac_ext
25691 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25692 echo "${ECHO_T}$ac_header_preproc" >&6; }
25693
25694 # So?  What about this header?
25695 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25696   yes:no: )
25697     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25698 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25699     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25700 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25701     ac_header_preproc=yes
25702     ;;
25703   no:yes:* )
25704     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25705 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25706     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25707 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25708     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25709 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25710     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25711 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25712     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25713 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25714     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25715 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25716     ( cat <<\_ASBOX
25717 @%:@@%:@ ------------------------------- @%:@@%:@
25718 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
25719 @%:@@%:@ ------------------------------- @%:@@%:@
25720 _ASBOX
25721      ) | sed "s/^/$as_me: WARNING:     /" >&2
25722     ;;
25723 esac
25724 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25725 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25726 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25727   echo $ECHO_N "(cached) $ECHO_C" >&6
25728 else
25729   eval "$as_ac_Header=\$ac_header_preproc"
25730 fi
25731 ac_res=`eval echo '${'$as_ac_Header'}'`
25732                { echo "$as_me:$LINENO: result: $ac_res" >&5
25733 echo "${ECHO_T}$ac_res" >&6; }
25734
25735 fi
25736 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25737   cat >>confdefs.h <<_ACEOF
25738 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25739 _ACEOF
25740  
25741 fi
25742
25743 done
25744
25745
25746
25747 for ac_func in fork vfork
25748 do
25749 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25750 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25751 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25752 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25753   echo $ECHO_N "(cached) $ECHO_C" >&6
25754 else
25755   cat >conftest.$ac_ext <<_ACEOF
25756 /* confdefs.h.  */
25757 _ACEOF
25758 cat confdefs.h >>conftest.$ac_ext
25759 cat >>conftest.$ac_ext <<_ACEOF
25760 /* end confdefs.h.  */
25761 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25762    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25763 #define $ac_func innocuous_$ac_func
25764
25765 /* System header to define __stub macros and hopefully few prototypes,
25766     which can conflict with char $ac_func (); below.
25767     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25768     <limits.h> exists even on freestanding compilers.  */
25769
25770 #ifdef __STDC__
25771 # include <limits.h>
25772 #else
25773 # include <assert.h>
25774 #endif
25775
25776 #undef $ac_func
25777
25778 /* Override any GCC internal prototype to avoid an error.
25779    Use char because int might match the return type of a GCC
25780    builtin and then its argument prototype would still apply.  */
25781 #ifdef __cplusplus
25782 extern "C"
25783 #endif
25784 char $ac_func ();
25785 /* The GNU C library defines this for functions which it implements
25786     to always fail with ENOSYS.  Some functions are actually named
25787     something starting with __ and the normal name is an alias.  */
25788 #if defined __stub_$ac_func || defined __stub___$ac_func
25789 choke me
25790 #endif
25791
25792 int
25793 main ()
25794 {
25795 return $ac_func ();
25796   ;
25797   return 0;
25798 }
25799 _ACEOF
25800 rm -f conftest.$ac_objext conftest$ac_exeext
25801 if { (ac_try="$ac_link"
25802 case "(($ac_try" in
25803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25804   *) ac_try_echo=$ac_try;;
25805 esac
25806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25807   (eval "$ac_link") 2>conftest.er1
25808   ac_status=$?
25809   grep -v '^ *+' conftest.er1 >conftest.err
25810   rm -f conftest.er1
25811   cat conftest.err >&5
25812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25813   (exit $ac_status); } && {
25814          test -z "$ac_c_werror_flag" ||
25815          test ! -s conftest.err
25816        } && test -s conftest$ac_exeext &&
25817        $as_test_x conftest$ac_exeext; then
25818   eval "$as_ac_var=yes"
25819 else
25820   echo "$as_me: failed program was:" >&5
25821 sed 's/^/| /' conftest.$ac_ext >&5
25822
25823         eval "$as_ac_var=no"
25824 fi
25825
25826 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25827       conftest$ac_exeext conftest.$ac_ext
25828 fi
25829 ac_res=`eval echo '${'$as_ac_var'}'`
25830                { echo "$as_me:$LINENO: result: $ac_res" >&5
25831 echo "${ECHO_T}$ac_res" >&6; }
25832 if test `eval echo '${'$as_ac_var'}'` = yes; then
25833   cat >>confdefs.h <<_ACEOF
25834 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25835 _ACEOF
25836  
25837 fi
25838 done
25839
25840 if test "x$ac_cv_func_fork" = xyes; then
25841   { echo "$as_me:$LINENO: checking for working fork" >&5
25842 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
25843 if test "${ac_cv_func_fork_works+set}" = set; then
25844   echo $ECHO_N "(cached) $ECHO_C" >&6
25845 else
25846   if test "$cross_compiling" = yes; then
25847   ac_cv_func_fork_works=cross
25848 else
25849   cat >conftest.$ac_ext <<_ACEOF
25850 /* confdefs.h.  */
25851 _ACEOF
25852 cat confdefs.h >>conftest.$ac_ext
25853 cat >>conftest.$ac_ext <<_ACEOF
25854 /* end confdefs.h.  */
25855 $ac_includes_default
25856 int
25857 main ()
25858 {
25859
25860           /* By Ruediger Kuhlmann. */
25861           return fork () < 0;
25862         
25863   ;
25864   return 0;
25865 }
25866 _ACEOF
25867 rm -f conftest$ac_exeext
25868 if { (ac_try="$ac_link"
25869 case "(($ac_try" in
25870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25871   *) ac_try_echo=$ac_try;;
25872 esac
25873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25874   (eval "$ac_link") 2>&5
25875   ac_status=$?
25876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25877   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25878   { (case "(($ac_try" in
25879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25880   *) ac_try_echo=$ac_try;;
25881 esac
25882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25883   (eval "$ac_try") 2>&5
25884   ac_status=$?
25885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25886   (exit $ac_status); }; }; then
25887   ac_cv_func_fork_works=yes
25888 else
25889   echo "$as_me: program exited with status $ac_status" >&5
25890 echo "$as_me: failed program was:" >&5
25891 sed 's/^/| /' conftest.$ac_ext >&5
25892
25893 ( exit $ac_status )
25894 ac_cv_func_fork_works=no
25895 fi
25896 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25897 fi
25898
25899
25900 fi
25901 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
25902 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
25903
25904 else
25905   ac_cv_func_fork_works=$ac_cv_func_fork
25906 fi
25907 if test "x$ac_cv_func_fork_works" = xcross; then
25908   case $host in
25909     *-*-amigaos* | *-*-msdosdjgpp*)
25910       # Override, as these systems have only a dummy fork() stub
25911       ac_cv_func_fork_works=no
25912       ;;
25913     *)
25914       ac_cv_func_fork_works=yes
25915       ;;
25916   esac
25917   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
25918 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
25919 fi
25920 ac_cv_func_vfork_works=$ac_cv_func_vfork
25921 if test "x$ac_cv_func_vfork" = xyes; then
25922   { echo "$as_me:$LINENO: checking for working vfork" >&5
25923 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
25924 if test "${ac_cv_func_vfork_works+set}" = set; then
25925   echo $ECHO_N "(cached) $ECHO_C" >&6
25926 else
25927   if test "$cross_compiling" = yes; then
25928   ac_cv_func_vfork_works=cross
25929 else
25930   cat >conftest.$ac_ext <<_ACEOF
25931 /* confdefs.h.  */
25932 _ACEOF
25933 cat confdefs.h >>conftest.$ac_ext
25934 cat >>conftest.$ac_ext <<_ACEOF
25935 /* end confdefs.h.  */
25936 /* Thanks to Paul Eggert for this test.  */
25937 $ac_includes_default
25938 #include <sys/wait.h>
25939 #ifdef HAVE_VFORK_H
25940 # include <vfork.h>
25941 #endif
25942 /* On some sparc systems, changes by the child to local and incoming
25943    argument registers are propagated back to the parent.  The compiler
25944    is told about this with #include <vfork.h>, but some compilers
25945    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
25946    static variable whose address is put into a register that is
25947    clobbered by the vfork.  */
25948 static void
25949 #ifdef __cplusplus
25950 sparc_address_test (int arg)
25951 # else
25952 sparc_address_test (arg) int arg;
25953 #endif
25954 {
25955   static pid_t child;
25956   if (!child) {
25957     child = vfork ();
25958     if (child < 0) {
25959       perror ("vfork");
25960       _exit(2);
25961     }
25962     if (!child) {
25963       arg = getpid();
25964       write(-1, "", 0);
25965       _exit (arg);
25966     }
25967   }
25968 }
25969
25970 int
25971 main ()
25972 {
25973   pid_t parent = getpid ();
25974   pid_t child;
25975
25976   sparc_address_test (0);
25977
25978   child = vfork ();
25979
25980   if (child == 0) {
25981     /* Here is another test for sparc vfork register problems.  This
25982        test uses lots of local variables, at least as many local
25983        variables as main has allocated so far including compiler
25984        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
25985        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
25986        reuse the register of parent for one of the local variables,
25987        since it will think that parent can't possibly be used any more
25988        in this routine.  Assigning to the local variable will thus
25989        munge parent in the parent process.  */
25990     pid_t
25991       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
25992       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
25993     /* Convince the compiler that p..p7 are live; otherwise, it might
25994        use the same hardware register for all 8 local variables.  */
25995     if (p != p1 || p != p2 || p != p3 || p != p4
25996         || p != p5 || p != p6 || p != p7)
25997       _exit(1);
25998
25999     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
26000        from child file descriptors.  If the child closes a descriptor
26001        before it execs or exits, this munges the parent's descriptor
26002        as well.  Test for this by closing stdout in the child.  */
26003     _exit(close(fileno(stdout)) != 0);
26004   } else {
26005     int status;
26006     struct stat st;
26007
26008     while (wait(&status) != child)
26009       ;
26010     return (
26011          /* Was there some problem with vforking?  */
26012          child < 0
26013
26014          /* Did the child fail?  (This shouldn't happen.)  */
26015          || status
26016
26017          /* Did the vfork/compiler bug occur?  */
26018          || parent != getpid()
26019
26020          /* Did the file descriptor bug occur?  */
26021          || fstat(fileno(stdout), &st) != 0
26022          );
26023   }
26024 }
26025 _ACEOF
26026 rm -f conftest$ac_exeext
26027 if { (ac_try="$ac_link"
26028 case "(($ac_try" in
26029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26030   *) ac_try_echo=$ac_try;;
26031 esac
26032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26033   (eval "$ac_link") 2>&5
26034   ac_status=$?
26035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26036   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26037   { (case "(($ac_try" in
26038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26039   *) ac_try_echo=$ac_try;;
26040 esac
26041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26042   (eval "$ac_try") 2>&5
26043   ac_status=$?
26044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26045   (exit $ac_status); }; }; then
26046   ac_cv_func_vfork_works=yes
26047 else
26048   echo "$as_me: program exited with status $ac_status" >&5
26049 echo "$as_me: failed program was:" >&5
26050 sed 's/^/| /' conftest.$ac_ext >&5
26051
26052 ( exit $ac_status )
26053 ac_cv_func_vfork_works=no
26054 fi
26055 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26056 fi
26057
26058
26059 fi
26060 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
26061 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
26062
26063 fi;
26064 if test "x$ac_cv_func_fork_works" = xcross; then
26065   ac_cv_func_vfork_works=$ac_cv_func_vfork
26066   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
26067 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
26068 fi
26069
26070 if test "x$ac_cv_func_vfork_works" = xyes; then
26071   
26072 cat >>confdefs.h <<\_ACEOF
26073 @%:@define HAVE_WORKING_VFORK 1
26074 _ACEOF
26075
26076 else
26077   
26078 cat >>confdefs.h <<\_ACEOF
26079 @%:@define vfork fork
26080 _ACEOF
26081
26082 fi
26083 if test "x$ac_cv_func_fork_works" = xyes; then
26084   
26085 cat >>confdefs.h <<\_ACEOF
26086 @%:@define HAVE_WORKING_FORK 1
26087 _ACEOF
26088
26089 fi
26090
26091 { echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
26092 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6; }
26093 if test "${ac_cv_type_getgroups+set}" = set; then
26094   echo $ECHO_N "(cached) $ECHO_C" >&6
26095 else
26096   if test "$cross_compiling" = yes; then
26097   ac_cv_type_getgroups=cross
26098 else
26099   cat >conftest.$ac_ext <<_ACEOF
26100 /* confdefs.h.  */
26101 _ACEOF
26102 cat confdefs.h >>conftest.$ac_ext
26103 cat >>conftest.$ac_ext <<_ACEOF
26104 /* end confdefs.h.  */
26105 /* Thanks to Mike Rendell for this test.  */
26106 $ac_includes_default
26107 #define NGID 256
26108 #undef MAX
26109 #define MAX(x, y) ((x) > (y) ? (x) : (y))
26110
26111 int
26112 main ()
26113 {
26114   gid_t gidset[NGID];
26115   int i, n;
26116   union { gid_t gval; long int lval; }  val;
26117
26118   val.lval = -1;
26119   for (i = 0; i < NGID; i++)
26120     gidset[i] = val.gval;
26121   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
26122                  gidset);
26123   /* Exit non-zero if getgroups seems to require an array of ints.  This
26124      happens when gid_t is short int but getgroups modifies an array
26125      of ints.  */
26126   return n > 0 && gidset[n] != val.gval;
26127 }
26128 _ACEOF
26129 rm -f conftest$ac_exeext
26130 if { (ac_try="$ac_link"
26131 case "(($ac_try" in
26132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26133   *) ac_try_echo=$ac_try;;
26134 esac
26135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26136   (eval "$ac_link") 2>&5
26137   ac_status=$?
26138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26139   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
26146   ac_status=$?
26147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26148   (exit $ac_status); }; }; then
26149   ac_cv_type_getgroups=gid_t
26150 else
26151   echo "$as_me: program exited with status $ac_status" >&5
26152 echo "$as_me: failed program was:" >&5
26153 sed 's/^/| /' conftest.$ac_ext >&5
26154
26155 ( exit $ac_status )
26156 ac_cv_type_getgroups=int
26157 fi
26158 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26159 fi
26160
26161
26162 if test $ac_cv_type_getgroups = cross; then
26163         cat >conftest.$ac_ext <<_ACEOF
26164 /* confdefs.h.  */
26165 _ACEOF
26166 cat confdefs.h >>conftest.$ac_ext
26167 cat >>conftest.$ac_ext <<_ACEOF
26168 /* end confdefs.h.  */
26169 #include <unistd.h>
26170
26171 _ACEOF
26172 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26173   $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
26174   ac_cv_type_getgroups=gid_t
26175 else
26176   ac_cv_type_getgroups=int
26177 fi
26178 rm -f conftest*
26179
26180 fi
26181 fi
26182 { echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
26183 echo "${ECHO_T}$ac_cv_type_getgroups" >&6; }
26184
26185 cat >>confdefs.h <<_ACEOF
26186 @%:@define GETGROUPS_T $ac_cv_type_getgroups
26187 _ACEOF
26188
26189
26190 { echo "$as_me:$LINENO: checking for getgroups" >&5
26191 echo $ECHO_N "checking for getgroups... $ECHO_C" >&6; }
26192 if test "${ac_cv_func_getgroups+set}" = set; then
26193   echo $ECHO_N "(cached) $ECHO_C" >&6
26194 else
26195   cat >conftest.$ac_ext <<_ACEOF
26196 /* confdefs.h.  */
26197 _ACEOF
26198 cat confdefs.h >>conftest.$ac_ext
26199 cat >>conftest.$ac_ext <<_ACEOF
26200 /* end confdefs.h.  */
26201 /* Define getgroups to an innocuous variant, in case <limits.h> declares getgroups.
26202    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26203 #define getgroups innocuous_getgroups
26204
26205 /* System header to define __stub macros and hopefully few prototypes,
26206     which can conflict with char getgroups (); below.
26207     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26208     <limits.h> exists even on freestanding compilers.  */
26209
26210 #ifdef __STDC__
26211 # include <limits.h>
26212 #else
26213 # include <assert.h>
26214 #endif
26215
26216 #undef getgroups
26217
26218 /* Override any GCC internal prototype to avoid an error.
26219    Use char because int might match the return type of a GCC
26220    builtin and then its argument prototype would still apply.  */
26221 #ifdef __cplusplus
26222 extern "C"
26223 #endif
26224 char getgroups ();
26225 /* The GNU C library defines this for functions which it implements
26226     to always fail with ENOSYS.  Some functions are actually named
26227     something starting with __ and the normal name is an alias.  */
26228 #if defined __stub_getgroups || defined __stub___getgroups
26229 choke me
26230 #endif
26231
26232 int
26233 main ()
26234 {
26235 return getgroups ();
26236   ;
26237   return 0;
26238 }
26239 _ACEOF
26240 rm -f conftest.$ac_objext conftest$ac_exeext
26241 if { (ac_try="$ac_link"
26242 case "(($ac_try" in
26243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26244   *) ac_try_echo=$ac_try;;
26245 esac
26246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26247   (eval "$ac_link") 2>conftest.er1
26248   ac_status=$?
26249   grep -v '^ *+' conftest.er1 >conftest.err
26250   rm -f conftest.er1
26251   cat conftest.err >&5
26252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26253   (exit $ac_status); } && {
26254          test -z "$ac_c_werror_flag" ||
26255          test ! -s conftest.err
26256        } && test -s conftest$ac_exeext &&
26257        $as_test_x conftest$ac_exeext; then
26258   ac_cv_func_getgroups=yes
26259 else
26260   echo "$as_me: failed program was:" >&5
26261 sed 's/^/| /' conftest.$ac_ext >&5
26262
26263         ac_cv_func_getgroups=no
26264 fi
26265
26266 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26267       conftest$ac_exeext conftest.$ac_ext
26268 fi
26269 { echo "$as_me:$LINENO: result: $ac_cv_func_getgroups" >&5
26270 echo "${ECHO_T}$ac_cv_func_getgroups" >&6; }
26271
26272
26273 # If we don't yet have getgroups, see if it's in -lbsd.
26274 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
26275 ac_save_LIBS=$LIBS
26276 if test $ac_cv_func_getgroups = no; then
26277   { echo "$as_me:$LINENO: checking for getgroups in -lbsd" >&5
26278 echo $ECHO_N "checking for getgroups in -lbsd... $ECHO_C" >&6; }
26279 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then
26280   echo $ECHO_N "(cached) $ECHO_C" >&6
26281 else
26282   ac_check_lib_save_LIBS=$LIBS
26283 LIBS="-lbsd  $LIBS"
26284 cat >conftest.$ac_ext <<_ACEOF
26285 /* confdefs.h.  */
26286 _ACEOF
26287 cat confdefs.h >>conftest.$ac_ext
26288 cat >>conftest.$ac_ext <<_ACEOF
26289 /* end confdefs.h.  */
26290
26291 /* Override any GCC internal prototype to avoid an error.
26292    Use char because int might match the return type of a GCC
26293    builtin and then its argument prototype would still apply.  */
26294 #ifdef __cplusplus
26295 extern "C"
26296 #endif
26297 char getgroups ();
26298 int
26299 main ()
26300 {
26301 return getgroups ();
26302   ;
26303   return 0;
26304 }
26305 _ACEOF
26306 rm -f conftest.$ac_objext conftest$ac_exeext
26307 if { (ac_try="$ac_link"
26308 case "(($ac_try" in
26309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26310   *) ac_try_echo=$ac_try;;
26311 esac
26312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26313   (eval "$ac_link") 2>conftest.er1
26314   ac_status=$?
26315   grep -v '^ *+' conftest.er1 >conftest.err
26316   rm -f conftest.er1
26317   cat conftest.err >&5
26318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26319   (exit $ac_status); } && {
26320          test -z "$ac_c_werror_flag" ||
26321          test ! -s conftest.err
26322        } && test -s conftest$ac_exeext &&
26323        $as_test_x conftest$ac_exeext; then
26324   ac_cv_lib_bsd_getgroups=yes
26325 else
26326   echo "$as_me: failed program was:" >&5
26327 sed 's/^/| /' conftest.$ac_ext >&5
26328
26329         ac_cv_lib_bsd_getgroups=no
26330 fi
26331
26332 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26333       conftest$ac_exeext conftest.$ac_ext
26334 LIBS=$ac_check_lib_save_LIBS
26335 fi
26336 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_getgroups" >&5
26337 echo "${ECHO_T}$ac_cv_lib_bsd_getgroups" >&6; }
26338 if test $ac_cv_lib_bsd_getgroups = yes; then
26339   GETGROUPS_LIB=-lbsd
26340 fi
26341
26342 fi
26343
26344 # Run the program to test the functionality of the system-supplied
26345 # getgroups function only if there is such a function.
26346 if test $ac_cv_func_getgroups = yes; then
26347   { echo "$as_me:$LINENO: checking for working getgroups" >&5
26348 echo $ECHO_N "checking for working getgroups... $ECHO_C" >&6; }
26349 if test "${ac_cv_func_getgroups_works+set}" = set; then
26350   echo $ECHO_N "(cached) $ECHO_C" >&6
26351 else
26352   if test "$cross_compiling" = yes; then
26353   ac_cv_func_getgroups_works=no
26354 else
26355   cat >conftest.$ac_ext <<_ACEOF
26356 /* confdefs.h.  */
26357 _ACEOF
26358 cat confdefs.h >>conftest.$ac_ext
26359 cat >>conftest.$ac_ext <<_ACEOF
26360 /* end confdefs.h.  */
26361 $ac_includes_default
26362 int
26363 main ()
26364 {
26365 /* On Ultrix 4.3, getgroups (0, 0) always fails.  */
26366        return getgroups (0, 0) == -1;
26367   ;
26368   return 0;
26369 }
26370 _ACEOF
26371 rm -f conftest$ac_exeext
26372 if { (ac_try="$ac_link"
26373 case "(($ac_try" in
26374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26375   *) ac_try_echo=$ac_try;;
26376 esac
26377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26378   (eval "$ac_link") 2>&5
26379   ac_status=$?
26380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26381   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26382   { (case "(($ac_try" in
26383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26384   *) ac_try_echo=$ac_try;;
26385 esac
26386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26387   (eval "$ac_try") 2>&5
26388   ac_status=$?
26389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26390   (exit $ac_status); }; }; then
26391   ac_cv_func_getgroups_works=yes
26392 else
26393   echo "$as_me: program exited with status $ac_status" >&5
26394 echo "$as_me: failed program was:" >&5
26395 sed 's/^/| /' conftest.$ac_ext >&5
26396
26397 ( exit $ac_status )
26398 ac_cv_func_getgroups_works=no
26399 fi
26400 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26401 fi
26402
26403
26404    
26405 fi
26406 { echo "$as_me:$LINENO: result: $ac_cv_func_getgroups_works" >&5
26407 echo "${ECHO_T}$ac_cv_func_getgroups_works" >&6; }
26408   if test $ac_cv_func_getgroups_works = yes; then
26409     
26410 cat >>confdefs.h <<\_ACEOF
26411 @%:@define HAVE_GETGROUPS 1
26412 _ACEOF
26413
26414   fi
26415 fi
26416 LIBS=$ac_save_LIBS
26417
26418 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
26419 # -lseq on Dynix/PTX, -lgen on Unixware.
26420 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
26421 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
26422 if test "${ac_cv_search_getmntent+set}" = set; then
26423   echo $ECHO_N "(cached) $ECHO_C" >&6
26424 else
26425   ac_func_search_save_LIBS=$LIBS
26426 cat >conftest.$ac_ext <<_ACEOF
26427 /* confdefs.h.  */
26428 _ACEOF
26429 cat confdefs.h >>conftest.$ac_ext
26430 cat >>conftest.$ac_ext <<_ACEOF
26431 /* end confdefs.h.  */
26432
26433 /* Override any GCC internal prototype to avoid an error.
26434    Use char because int might match the return type of a GCC
26435    builtin and then its argument prototype would still apply.  */
26436 #ifdef __cplusplus
26437 extern "C"
26438 #endif
26439 char getmntent ();
26440 int
26441 main ()
26442 {
26443 return getmntent ();
26444   ;
26445   return 0;
26446 }
26447 _ACEOF
26448 for ac_lib in '' sun seq gen; do
26449   if test -z "$ac_lib"; then
26450     ac_res="none required"
26451   else
26452     ac_res=-l$ac_lib
26453     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26454   fi
26455   rm -f conftest.$ac_objext conftest$ac_exeext
26456 if { (ac_try="$ac_link"
26457 case "(($ac_try" in
26458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26459   *) ac_try_echo=$ac_try;;
26460 esac
26461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26462   (eval "$ac_link") 2>conftest.er1
26463   ac_status=$?
26464   grep -v '^ *+' conftest.er1 >conftest.err
26465   rm -f conftest.er1
26466   cat conftest.err >&5
26467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26468   (exit $ac_status); } && {
26469          test -z "$ac_c_werror_flag" ||
26470          test ! -s conftest.err
26471        } && test -s conftest$ac_exeext &&
26472        $as_test_x conftest$ac_exeext; then
26473   ac_cv_search_getmntent=$ac_res
26474 else
26475   echo "$as_me: failed program was:" >&5
26476 sed 's/^/| /' conftest.$ac_ext >&5
26477
26478         
26479 fi
26480
26481 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26482       conftest$ac_exeext 
26483   if test "${ac_cv_search_getmntent+set}" = set; then
26484   break
26485 fi
26486 done
26487 if test "${ac_cv_search_getmntent+set}" = set; then
26488   :
26489 else
26490   ac_cv_search_getmntent=no
26491 fi
26492 rm conftest.$ac_ext
26493 LIBS=$ac_func_search_save_LIBS
26494 fi
26495 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
26496 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
26497 ac_res=$ac_cv_search_getmntent
26498 if test "$ac_res" != no; then
26499   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26500   ac_cv_func_getmntent=yes
26501                 
26502 cat >>confdefs.h <<\_ACEOF
26503 @%:@define HAVE_GETMNTENT 1
26504 _ACEOF
26505
26506 else
26507   ac_cv_func_getmntent=no
26508 fi
26509
26510
26511 if test $ac_cv_c_compiler_gnu = yes; then
26512     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
26513 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
26514 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
26515   echo $ECHO_N "(cached) $ECHO_C" >&6
26516 else
26517     ac_pattern="Autoconf.*'x'"
26518   cat >conftest.$ac_ext <<_ACEOF
26519 /* confdefs.h.  */
26520 _ACEOF
26521 cat confdefs.h >>conftest.$ac_ext
26522 cat >>conftest.$ac_ext <<_ACEOF
26523 /* end confdefs.h.  */
26524 #include <sgtty.h>
26525 Autoconf TIOCGETP
26526 _ACEOF
26527 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26528   $EGREP "$ac_pattern" >/dev/null 2>&1; then
26529   ac_cv_prog_gcc_traditional=yes
26530 else
26531   ac_cv_prog_gcc_traditional=no
26532 fi
26533 rm -f conftest*
26534
26535
26536   if test $ac_cv_prog_gcc_traditional = no; then
26537     cat >conftest.$ac_ext <<_ACEOF
26538 /* confdefs.h.  */
26539 _ACEOF
26540 cat confdefs.h >>conftest.$ac_ext
26541 cat >>conftest.$ac_ext <<_ACEOF
26542 /* end confdefs.h.  */
26543 #include <termio.h>
26544 Autoconf TCGETA
26545 _ACEOF
26546 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26547   $EGREP "$ac_pattern" >/dev/null 2>&1; then
26548   ac_cv_prog_gcc_traditional=yes
26549 fi
26550 rm -f conftest*
26551
26552   fi
26553 fi
26554 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
26555 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
26556   if test $ac_cv_prog_gcc_traditional = yes; then
26557     CC="$CC -traditional"
26558   fi
26559 fi
26560
26561 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
26562 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
26563 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
26564   echo $ECHO_N "(cached) $ECHO_C" >&6
26565 else
26566   rm -f conftest.sym conftest.file
26567 echo >conftest.file
26568 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
26569   if test "$cross_compiling" = yes; then
26570   ac_cv_func_lstat_dereferences_slashed_symlink=no
26571 else
26572   cat >conftest.$ac_ext <<_ACEOF
26573 /* confdefs.h.  */
26574 _ACEOF
26575 cat confdefs.h >>conftest.$ac_ext
26576 cat >>conftest.$ac_ext <<_ACEOF
26577 /* end confdefs.h.  */
26578 $ac_includes_default
26579 int
26580 main ()
26581 {
26582 struct stat sbuf;
26583      /* Linux will dereference the symlink and fail.
26584         That is better in the sense that it means we will not
26585         have to compile and use the lstat wrapper.  */
26586      return lstat ("conftest.sym/", &sbuf) == 0;
26587   ;
26588   return 0;
26589 }
26590 _ACEOF
26591 rm -f conftest$ac_exeext
26592 if { (ac_try="$ac_link"
26593 case "(($ac_try" in
26594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26595   *) ac_try_echo=$ac_try;;
26596 esac
26597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26598   (eval "$ac_link") 2>&5
26599   ac_status=$?
26600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26601   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26602   { (case "(($ac_try" in
26603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26604   *) ac_try_echo=$ac_try;;
26605 esac
26606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26607   (eval "$ac_try") 2>&5
26608   ac_status=$?
26609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26610   (exit $ac_status); }; }; then
26611   ac_cv_func_lstat_dereferences_slashed_symlink=yes
26612 else
26613   echo "$as_me: program exited with status $ac_status" >&5
26614 echo "$as_me: failed program was:" >&5
26615 sed 's/^/| /' conftest.$ac_ext >&5
26616
26617 ( exit $ac_status )
26618 ac_cv_func_lstat_dereferences_slashed_symlink=no
26619 fi
26620 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26621 fi
26622
26623
26624 else
26625   # If the `ln -s' command failed, then we probably don't even
26626   # have an lstat function.
26627   ac_cv_func_lstat_dereferences_slashed_symlink=no
26628 fi
26629 rm -f conftest.sym conftest.file
26630
26631 fi
26632 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
26633 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
26634
26635 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
26636   
26637 cat >>confdefs.h <<_ACEOF
26638 @%:@define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
26639 _ACEOF
26640
26641
26642 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
26643   case " $LIB@&t@OBJS " in
26644   *" lstat.$ac_objext "* ) ;;
26645   *) LIB@&t@OBJS="$LIB@&t@OBJS lstat.$ac_objext"
26646  ;;
26647 esac
26648
26649 fi
26650
26651 { echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
26652 echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6; }
26653 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
26654   echo $ECHO_N "(cached) $ECHO_C" >&6
26655 else
26656   if test "$cross_compiling" = yes; then
26657   ac_cv_func_lstat_empty_string_bug=yes
26658 else
26659   cat >conftest.$ac_ext <<_ACEOF
26660 /* confdefs.h.  */
26661 _ACEOF
26662 cat confdefs.h >>conftest.$ac_ext
26663 cat >>conftest.$ac_ext <<_ACEOF
26664 /* end confdefs.h.  */
26665 $ac_includes_default
26666 int
26667 main ()
26668 {
26669 struct stat sbuf;
26670   return lstat ("", &sbuf) == 0;
26671   ;
26672   return 0;
26673 }
26674 _ACEOF
26675 rm -f conftest$ac_exeext
26676 if { (ac_try="$ac_link"
26677 case "(($ac_try" in
26678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26679   *) ac_try_echo=$ac_try;;
26680 esac
26681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26682   (eval "$ac_link") 2>&5
26683   ac_status=$?
26684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26685   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26686   { (case "(($ac_try" in
26687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26688   *) ac_try_echo=$ac_try;;
26689 esac
26690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26691   (eval "$ac_try") 2>&5
26692   ac_status=$?
26693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26694   (exit $ac_status); }; }; then
26695   ac_cv_func_lstat_empty_string_bug=no
26696 else
26697   echo "$as_me: program exited with status $ac_status" >&5
26698 echo "$as_me: failed program was:" >&5
26699 sed 's/^/| /' conftest.$ac_ext >&5
26700
26701 ( exit $ac_status )
26702 ac_cv_func_lstat_empty_string_bug=yes
26703 fi
26704 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26705 fi
26706
26707
26708 fi
26709 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
26710 echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6; }
26711 if test $ac_cv_func_lstat_empty_string_bug = yes; then
26712   case " $LIB@&t@OBJS " in
26713   *" lstat.$ac_objext "* ) ;;
26714   *) LIB@&t@OBJS="$LIB@&t@OBJS lstat.$ac_objext"
26715  ;;
26716 esac
26717
26718   
26719 cat >>confdefs.h <<_ACEOF
26720 @%:@define HAVE_LSTAT_EMPTY_STRING_BUG 1
26721 _ACEOF
26722
26723 fi
26724
26725 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
26726 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
26727 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
26728   echo $ECHO_N "(cached) $ECHO_C" >&6
26729 else
26730   rm -f conftest.sym conftest.file
26731 echo >conftest.file
26732 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
26733   if test "$cross_compiling" = yes; then
26734   ac_cv_func_lstat_dereferences_slashed_symlink=no
26735 else
26736   cat >conftest.$ac_ext <<_ACEOF
26737 /* confdefs.h.  */
26738 _ACEOF
26739 cat confdefs.h >>conftest.$ac_ext
26740 cat >>conftest.$ac_ext <<_ACEOF
26741 /* end confdefs.h.  */
26742 $ac_includes_default
26743 int
26744 main ()
26745 {
26746 struct stat sbuf;
26747      /* Linux will dereference the symlink and fail.
26748         That is better in the sense that it means we will not
26749         have to compile and use the lstat wrapper.  */
26750      return lstat ("conftest.sym/", &sbuf) == 0;
26751   ;
26752   return 0;
26753 }
26754 _ACEOF
26755 rm -f conftest$ac_exeext
26756 if { (ac_try="$ac_link"
26757 case "(($ac_try" in
26758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26759   *) ac_try_echo=$ac_try;;
26760 esac
26761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26762   (eval "$ac_link") 2>&5
26763   ac_status=$?
26764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26765   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26766   { (case "(($ac_try" in
26767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26768   *) ac_try_echo=$ac_try;;
26769 esac
26770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26771   (eval "$ac_try") 2>&5
26772   ac_status=$?
26773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26774   (exit $ac_status); }; }; then
26775   ac_cv_func_lstat_dereferences_slashed_symlink=yes
26776 else
26777   echo "$as_me: program exited with status $ac_status" >&5
26778 echo "$as_me: failed program was:" >&5
26779 sed 's/^/| /' conftest.$ac_ext >&5
26780
26781 ( exit $ac_status )
26782 ac_cv_func_lstat_dereferences_slashed_symlink=no
26783 fi
26784 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26785 fi
26786
26787
26788 else
26789   # If the `ln -s' command failed, then we probably don't even
26790   # have an lstat function.
26791   ac_cv_func_lstat_dereferences_slashed_symlink=no
26792 fi
26793 rm -f conftest.sym conftest.file
26794
26795 fi
26796 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
26797 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
26798
26799 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
26800   
26801 cat >>confdefs.h <<_ACEOF
26802 @%:@define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
26803 _ACEOF
26804
26805
26806 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
26807   case " $LIB@&t@OBJS " in
26808   *" lstat.$ac_objext "* ) ;;
26809   *) LIB@&t@OBJS="$LIB@&t@OBJS lstat.$ac_objext"
26810  ;;
26811 esac
26812
26813 fi
26814
26815 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
26816 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
26817 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
26818   echo $ECHO_N "(cached) $ECHO_C" >&6
26819 else
26820   cat >conftest.$ac_ext <<_ACEOF
26821 /* confdefs.h.  */
26822 _ACEOF
26823 cat confdefs.h >>conftest.$ac_ext
26824 cat >>conftest.$ac_ext <<_ACEOF
26825 /* end confdefs.h.  */
26826 @%:@include <sys/types.h>
26827 int
26828 main ()
26829 {
26830 return makedev(0, 0);
26831   ;
26832   return 0;
26833 }
26834 _ACEOF
26835 rm -f conftest.$ac_objext conftest$ac_exeext
26836 if { (ac_try="$ac_link"
26837 case "(($ac_try" in
26838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26839   *) ac_try_echo=$ac_try;;
26840 esac
26841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26842   (eval "$ac_link") 2>conftest.er1
26843   ac_status=$?
26844   grep -v '^ *+' conftest.er1 >conftest.err
26845   rm -f conftest.er1
26846   cat conftest.err >&5
26847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26848   (exit $ac_status); } && {
26849          test -z "$ac_c_werror_flag" ||
26850          test ! -s conftest.err
26851        } && test -s conftest$ac_exeext &&
26852        $as_test_x conftest$ac_exeext; then
26853   ac_cv_header_sys_types_h_makedev=yes
26854 else
26855   echo "$as_me: failed program was:" >&5
26856 sed 's/^/| /' conftest.$ac_ext >&5
26857
26858         ac_cv_header_sys_types_h_makedev=no
26859 fi
26860
26861 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26862       conftest$ac_exeext conftest.$ac_ext
26863
26864 fi
26865 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
26866 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
26867
26868 if test $ac_cv_header_sys_types_h_makedev = no; then
26869 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
26870   { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
26871 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
26872 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
26873   echo $ECHO_N "(cached) $ECHO_C" >&6
26874 fi
26875 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
26876 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
26877 else
26878   # Is the header compilable?
26879 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
26880 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
26881 cat >conftest.$ac_ext <<_ACEOF
26882 /* confdefs.h.  */
26883 _ACEOF
26884 cat confdefs.h >>conftest.$ac_ext
26885 cat >>conftest.$ac_ext <<_ACEOF
26886 /* end confdefs.h.  */
26887 $ac_includes_default
26888 @%:@include <sys/mkdev.h>
26889 _ACEOF
26890 rm -f conftest.$ac_objext
26891 if { (ac_try="$ac_compile"
26892 case "(($ac_try" in
26893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26894   *) ac_try_echo=$ac_try;;
26895 esac
26896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26897   (eval "$ac_compile") 2>conftest.er1
26898   ac_status=$?
26899   grep -v '^ *+' conftest.er1 >conftest.err
26900   rm -f conftest.er1
26901   cat conftest.err >&5
26902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26903   (exit $ac_status); } && {
26904          test -z "$ac_c_werror_flag" ||
26905          test ! -s conftest.err
26906        } && test -s conftest.$ac_objext; 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 && {
26943          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26944          test ! -s conftest.err
26945        }; then
26946   ac_header_preproc=yes
26947 else
26948   echo "$as_me: failed program was:" >&5
26949 sed 's/^/| /' conftest.$ac_ext >&5
26950
26951   ac_header_preproc=no
26952 fi
26953
26954 rm -f conftest.err conftest.$ac_ext
26955 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26956 echo "${ECHO_T}$ac_header_preproc" >&6; }
26957
26958 # So?  What about this header?
26959 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26960   yes:no: )
26961     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
26962 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26963     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
26964 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
26965     ac_header_preproc=yes
26966     ;;
26967   no:yes:* )
26968     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
26969 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
26970     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
26971 echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
26972     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
26973 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
26974     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
26975 echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
26976     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
26977 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
26978     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
26979 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
26980     ( cat <<\_ASBOX
26981 @%:@@%:@ ------------------------------- @%:@@%:@
26982 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
26983 @%:@@%:@ ------------------------------- @%:@@%:@
26984 _ASBOX
26985      ) | sed "s/^/$as_me: WARNING:     /" >&2
26986     ;;
26987 esac
26988 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
26989 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
26990 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
26991   echo $ECHO_N "(cached) $ECHO_C" >&6
26992 else
26993   ac_cv_header_sys_mkdev_h=$ac_header_preproc
26994 fi
26995 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
26996 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
26997
26998 fi
26999 if test $ac_cv_header_sys_mkdev_h = yes; then
27000   
27001 cat >>confdefs.h <<\_ACEOF
27002 @%:@define MAJOR_IN_MKDEV 1
27003 _ACEOF
27004
27005 fi
27006
27007
27008
27009   if test $ac_cv_header_sys_mkdev_h = no; then
27010     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
27011   { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
27012 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
27013 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
27014   echo $ECHO_N "(cached) $ECHO_C" >&6
27015 fi
27016 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
27017 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
27018 else
27019   # Is the header compilable?
27020 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
27021 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
27022 cat >conftest.$ac_ext <<_ACEOF
27023 /* confdefs.h.  */
27024 _ACEOF
27025 cat confdefs.h >>conftest.$ac_ext
27026 cat >>conftest.$ac_ext <<_ACEOF
27027 /* end confdefs.h.  */
27028 $ac_includes_default
27029 @%:@include <sys/sysmacros.h>
27030 _ACEOF
27031 rm -f conftest.$ac_objext
27032 if { (ac_try="$ac_compile"
27033 case "(($ac_try" in
27034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27035   *) ac_try_echo=$ac_try;;
27036 esac
27037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27038   (eval "$ac_compile") 2>conftest.er1
27039   ac_status=$?
27040   grep -v '^ *+' conftest.er1 >conftest.err
27041   rm -f conftest.er1
27042   cat conftest.err >&5
27043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27044   (exit $ac_status); } && {
27045          test -z "$ac_c_werror_flag" ||
27046          test ! -s conftest.err
27047        } && test -s conftest.$ac_objext; then
27048   ac_header_compiler=yes
27049 else
27050   echo "$as_me: failed program was:" >&5
27051 sed 's/^/| /' conftest.$ac_ext >&5
27052
27053         ac_header_compiler=no
27054 fi
27055
27056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27057 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27058 echo "${ECHO_T}$ac_header_compiler" >&6; }
27059
27060 # Is the header present?
27061 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
27062 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
27063 cat >conftest.$ac_ext <<_ACEOF
27064 /* confdefs.h.  */
27065 _ACEOF
27066 cat confdefs.h >>conftest.$ac_ext
27067 cat >>conftest.$ac_ext <<_ACEOF
27068 /* end confdefs.h.  */
27069 @%:@include <sys/sysmacros.h>
27070 _ACEOF
27071 if { (ac_try="$ac_cpp conftest.$ac_ext"
27072 case "(($ac_try" in
27073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27074   *) ac_try_echo=$ac_try;;
27075 esac
27076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27077   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27078   ac_status=$?
27079   grep -v '^ *+' conftest.er1 >conftest.err
27080   rm -f conftest.er1
27081   cat conftest.err >&5
27082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27083   (exit $ac_status); } >/dev/null && {
27084          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27085          test ! -s conftest.err
27086        }; then
27087   ac_header_preproc=yes
27088 else
27089   echo "$as_me: failed program was:" >&5
27090 sed 's/^/| /' conftest.$ac_ext >&5
27091
27092   ac_header_preproc=no
27093 fi
27094
27095 rm -f conftest.err conftest.$ac_ext
27096 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27097 echo "${ECHO_T}$ac_header_preproc" >&6; }
27098
27099 # So?  What about this header?
27100 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27101   yes:no: )
27102     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
27103 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27104     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
27105 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
27106     ac_header_preproc=yes
27107     ;;
27108   no:yes:* )
27109     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
27110 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
27111     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
27112 echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
27113     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
27114 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
27115     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
27116 echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
27117     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
27118 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
27119     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
27120 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
27121     ( cat <<\_ASBOX
27122 @%:@@%:@ ------------------------------- @%:@@%:@
27123 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
27124 @%:@@%:@ ------------------------------- @%:@@%:@
27125 _ASBOX
27126      ) | sed "s/^/$as_me: WARNING:     /" >&2
27127     ;;
27128 esac
27129 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
27130 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
27131 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
27132   echo $ECHO_N "(cached) $ECHO_C" >&6
27133 else
27134   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
27135 fi
27136 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
27137 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
27138
27139 fi
27140 if test $ac_cv_header_sys_sysmacros_h = yes; then
27141   
27142 cat >>confdefs.h <<\_ACEOF
27143 @%:@define MAJOR_IN_SYSMACROS 1
27144 _ACEOF
27145
27146 fi
27147
27148
27149   fi
27150 fi
27151
27152 #AC_FUNC_MALLOC
27153 { echo "$as_me:$LINENO: checking for working memcmp" >&5
27154 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
27155 if test "${ac_cv_func_memcmp_working+set}" = set; then
27156   echo $ECHO_N "(cached) $ECHO_C" >&6
27157 else
27158   if test "$cross_compiling" = yes; then
27159   ac_cv_func_memcmp_working=no
27160 else
27161   cat >conftest.$ac_ext <<_ACEOF
27162 /* confdefs.h.  */
27163 _ACEOF
27164 cat confdefs.h >>conftest.$ac_ext
27165 cat >>conftest.$ac_ext <<_ACEOF
27166 /* end confdefs.h.  */
27167 $ac_includes_default
27168 int
27169 main ()
27170 {
27171
27172   /* Some versions of memcmp are not 8-bit clean.  */
27173   char c0 = '\100', c1 = '\200', c2 = '\201';
27174   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
27175     return 1;
27176
27177   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
27178      or more and with at least one buffer not starting on a 4-byte boundary.
27179      William Lewis provided this test program.   */
27180   {
27181     char foo[21];
27182     char bar[21];
27183     int i;
27184     for (i = 0; i < 4; i++)
27185       {
27186         char *a = foo + i;
27187         char *b = bar + i;
27188         strcpy (a, "--------01111111");
27189         strcpy (b, "--------10000000");
27190         if (memcmp (a, b, 16) >= 0)
27191           return 1;
27192       }
27193     return 0;
27194   }
27195
27196   ;
27197   return 0;
27198 }
27199 _ACEOF
27200 rm -f conftest$ac_exeext
27201 if { (ac_try="$ac_link"
27202 case "(($ac_try" in
27203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27204   *) ac_try_echo=$ac_try;;
27205 esac
27206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27207   (eval "$ac_link") 2>&5
27208   ac_status=$?
27209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27210   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27211   { (case "(($ac_try" in
27212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27213   *) ac_try_echo=$ac_try;;
27214 esac
27215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27216   (eval "$ac_try") 2>&5
27217   ac_status=$?
27218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27219   (exit $ac_status); }; }; then
27220   ac_cv_func_memcmp_working=yes
27221 else
27222   echo "$as_me: program exited with status $ac_status" >&5
27223 echo "$as_me: failed program was:" >&5
27224 sed 's/^/| /' conftest.$ac_ext >&5
27225
27226 ( exit $ac_status )
27227 ac_cv_func_memcmp_working=no
27228 fi
27229 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27230 fi
27231
27232
27233 fi
27234 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
27235 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
27236 test $ac_cv_func_memcmp_working = no && case " $LIB@&t@OBJS " in
27237   *" memcmp.$ac_objext "* ) ;;
27238   *) LIB@&t@OBJS="$LIB@&t@OBJS memcmp.$ac_objext"
27239  ;;
27240 esac
27241
27242
27243 #AC_FUNC_REALLOC
27244
27245
27246 for ac_header in sys/select.h sys/socket.h
27247 do
27248 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27249 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27250   { echo "$as_me:$LINENO: checking for $ac_header" >&5
27251 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27252 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27253   echo $ECHO_N "(cached) $ECHO_C" >&6
27254 fi
27255 ac_res=`eval echo '${'$as_ac_Header'}'`
27256                { echo "$as_me:$LINENO: result: $ac_res" >&5
27257 echo "${ECHO_T}$ac_res" >&6; }
27258 else
27259   # Is the header compilable?
27260 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27261 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27262 cat >conftest.$ac_ext <<_ACEOF
27263 /* confdefs.h.  */
27264 _ACEOF
27265 cat confdefs.h >>conftest.$ac_ext
27266 cat >>conftest.$ac_ext <<_ACEOF
27267 /* end confdefs.h.  */
27268 $ac_includes_default
27269 @%:@include <$ac_header>
27270 _ACEOF
27271 rm -f conftest.$ac_objext
27272 if { (ac_try="$ac_compile"
27273 case "(($ac_try" in
27274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27275   *) ac_try_echo=$ac_try;;
27276 esac
27277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27278   (eval "$ac_compile") 2>conftest.er1
27279   ac_status=$?
27280   grep -v '^ *+' conftest.er1 >conftest.err
27281   rm -f conftest.er1
27282   cat conftest.err >&5
27283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27284   (exit $ac_status); } && {
27285          test -z "$ac_c_werror_flag" ||
27286          test ! -s conftest.err
27287        } && test -s conftest.$ac_objext; then
27288   ac_header_compiler=yes
27289 else
27290   echo "$as_me: failed program was:" >&5
27291 sed 's/^/| /' conftest.$ac_ext >&5
27292
27293         ac_header_compiler=no
27294 fi
27295
27296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27297 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27298 echo "${ECHO_T}$ac_header_compiler" >&6; }
27299
27300 # Is the header present?
27301 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27302 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27303 cat >conftest.$ac_ext <<_ACEOF
27304 /* confdefs.h.  */
27305 _ACEOF
27306 cat confdefs.h >>conftest.$ac_ext
27307 cat >>conftest.$ac_ext <<_ACEOF
27308 /* end confdefs.h.  */
27309 @%:@include <$ac_header>
27310 _ACEOF
27311 if { (ac_try="$ac_cpp conftest.$ac_ext"
27312 case "(($ac_try" in
27313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27314   *) ac_try_echo=$ac_try;;
27315 esac
27316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27317   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27318   ac_status=$?
27319   grep -v '^ *+' conftest.er1 >conftest.err
27320   rm -f conftest.er1
27321   cat conftest.err >&5
27322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27323   (exit $ac_status); } >/dev/null && {
27324          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27325          test ! -s conftest.err
27326        }; then
27327   ac_header_preproc=yes
27328 else
27329   echo "$as_me: failed program was:" >&5
27330 sed 's/^/| /' conftest.$ac_ext >&5
27331
27332   ac_header_preproc=no
27333 fi
27334
27335 rm -f conftest.err conftest.$ac_ext
27336 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27337 echo "${ECHO_T}$ac_header_preproc" >&6; }
27338
27339 # So?  What about this header?
27340 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27341   yes:no: )
27342     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27343 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27344     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27345 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27346     ac_header_preproc=yes
27347     ;;
27348   no:yes:* )
27349     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27350 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27351     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27352 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27353     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27354 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27355     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27356 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27357     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27358 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27359     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27360 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27361     ( cat <<\_ASBOX
27362 @%:@@%:@ ------------------------------- @%:@@%:@
27363 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
27364 @%:@@%:@ ------------------------------- @%:@@%:@
27365 _ASBOX
27366      ) | sed "s/^/$as_me: WARNING:     /" >&2
27367     ;;
27368 esac
27369 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27370 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27371 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27372   echo $ECHO_N "(cached) $ECHO_C" >&6
27373 else
27374   eval "$as_ac_Header=\$ac_header_preproc"
27375 fi
27376 ac_res=`eval echo '${'$as_ac_Header'}'`
27377                { echo "$as_me:$LINENO: result: $ac_res" >&5
27378 echo "${ECHO_T}$ac_res" >&6; }
27379
27380 fi
27381 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27382   cat >>confdefs.h <<_ACEOF
27383 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27384 _ACEOF
27385  
27386 fi
27387
27388 done
27389
27390 { echo "$as_me:$LINENO: checking types of arguments for select" >&5
27391 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
27392 if test "${ac_cv_func_select_args+set}" = set; then
27393   echo $ECHO_N "(cached) $ECHO_C" >&6
27394 else
27395   for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
27396  for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
27397   for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
27398    cat >conftest.$ac_ext <<_ACEOF
27399 /* confdefs.h.  */
27400 _ACEOF
27401 cat confdefs.h >>conftest.$ac_ext
27402 cat >>conftest.$ac_ext <<_ACEOF
27403 /* end confdefs.h.  */
27404 $ac_includes_default
27405 #ifdef HAVE_SYS_SELECT_H
27406 # include <sys/select.h>
27407 #endif
27408 #ifdef HAVE_SYS_SOCKET_H
27409 # include <sys/socket.h>
27410 #endif
27411
27412 int
27413 main ()
27414 {
27415 extern int select ($ac_arg1,
27416                                             $ac_arg234, $ac_arg234, $ac_arg234,
27417                                             $ac_arg5);
27418   ;
27419   return 0;
27420 }
27421 _ACEOF
27422 rm -f conftest.$ac_objext
27423 if { (ac_try="$ac_compile"
27424 case "(($ac_try" in
27425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27426   *) ac_try_echo=$ac_try;;
27427 esac
27428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27429   (eval "$ac_compile") 2>conftest.er1
27430   ac_status=$?
27431   grep -v '^ *+' conftest.er1 >conftest.err
27432   rm -f conftest.er1
27433   cat conftest.err >&5
27434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27435   (exit $ac_status); } && {
27436          test -z "$ac_c_werror_flag" ||
27437          test ! -s conftest.err
27438        } && test -s conftest.$ac_objext; then
27439   ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
27440 else
27441   echo "$as_me: failed program was:" >&5
27442 sed 's/^/| /' conftest.$ac_ext >&5
27443
27444         
27445 fi
27446
27447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27448   done
27449  done
27450 done
27451 # Provide a safe default value.
27452 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
27453
27454 fi
27455 { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
27456 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
27457 ac_save_IFS=$IFS; IFS=','
27458 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
27459 IFS=$ac_save_IFS
27460 shift
27461
27462 cat >>confdefs.h <<_ACEOF
27463 @%:@define SELECT_TYPE_ARG1 $1
27464 _ACEOF
27465
27466
27467 cat >>confdefs.h <<_ACEOF
27468 @%:@define SELECT_TYPE_ARG234 ($2)
27469 _ACEOF
27470
27471
27472 cat >>confdefs.h <<_ACEOF
27473 @%:@define SELECT_TYPE_ARG5 ($3)
27474 _ACEOF
27475
27476 rm -f conftest*
27477
27478 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
27479 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
27480 if test "${ac_cv_type_signal+set}" = set; then
27481   echo $ECHO_N "(cached) $ECHO_C" >&6
27482 else
27483   cat >conftest.$ac_ext <<_ACEOF
27484 /* confdefs.h.  */
27485 _ACEOF
27486 cat confdefs.h >>conftest.$ac_ext
27487 cat >>conftest.$ac_ext <<_ACEOF
27488 /* end confdefs.h.  */
27489 #include <sys/types.h>
27490 #include <signal.h>
27491
27492 int
27493 main ()
27494 {
27495 return *(signal (0, 0)) (0) == 1;
27496   ;
27497   return 0;
27498 }
27499 _ACEOF
27500 rm -f conftest.$ac_objext
27501 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
27508   ac_status=$?
27509   grep -v '^ *+' conftest.er1 >conftest.err
27510   rm -f conftest.er1
27511   cat conftest.err >&5
27512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27513   (exit $ac_status); } && {
27514          test -z "$ac_c_werror_flag" ||
27515          test ! -s conftest.err
27516        } && test -s conftest.$ac_objext; then
27517   ac_cv_type_signal=int
27518 else
27519   echo "$as_me: failed program was:" >&5
27520 sed 's/^/| /' conftest.$ac_ext >&5
27521
27522         ac_cv_type_signal=void
27523 fi
27524
27525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27526 fi
27527 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
27528 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
27529
27530 cat >>confdefs.h <<_ACEOF
27531 @%:@define RETSIGTYPE $ac_cv_type_signal
27532 _ACEOF
27533
27534
27535 { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
27536 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
27537 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
27538   echo $ECHO_N "(cached) $ECHO_C" >&6
27539 else
27540   if test "$cross_compiling" = yes; then
27541   ac_cv_func_stat_empty_string_bug=yes
27542 else
27543   cat >conftest.$ac_ext <<_ACEOF
27544 /* confdefs.h.  */
27545 _ACEOF
27546 cat confdefs.h >>conftest.$ac_ext
27547 cat >>conftest.$ac_ext <<_ACEOF
27548 /* end confdefs.h.  */
27549 $ac_includes_default
27550 int
27551 main ()
27552 {
27553 struct stat sbuf;
27554   return stat ("", &sbuf) == 0;
27555   ;
27556   return 0;
27557 }
27558 _ACEOF
27559 rm -f conftest$ac_exeext
27560 if { (ac_try="$ac_link"
27561 case "(($ac_try" in
27562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27563   *) ac_try_echo=$ac_try;;
27564 esac
27565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27566   (eval "$ac_link") 2>&5
27567   ac_status=$?
27568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27569   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27570   { (case "(($ac_try" in
27571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27572   *) ac_try_echo=$ac_try;;
27573 esac
27574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27575   (eval "$ac_try") 2>&5
27576   ac_status=$?
27577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27578   (exit $ac_status); }; }; then
27579   ac_cv_func_stat_empty_string_bug=no
27580 else
27581   echo "$as_me: program exited with status $ac_status" >&5
27582 echo "$as_me: failed program was:" >&5
27583 sed 's/^/| /' conftest.$ac_ext >&5
27584
27585 ( exit $ac_status )
27586 ac_cv_func_stat_empty_string_bug=yes
27587 fi
27588 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27589 fi
27590
27591
27592 fi
27593 { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
27594 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
27595 if test $ac_cv_func_stat_empty_string_bug = yes; then
27596   case " $LIB@&t@OBJS " in
27597   *" stat.$ac_objext "* ) ;;
27598   *) LIB@&t@OBJS="$LIB@&t@OBJS stat.$ac_objext"
27599  ;;
27600 esac
27601
27602   
27603 cat >>confdefs.h <<_ACEOF
27604 @%:@define HAVE_STAT_EMPTY_STRING_BUG 1
27605 _ACEOF
27606
27607 fi
27608
27609
27610 for ac_func in vprintf
27611 do
27612 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27613 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27614 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27615 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27616   echo $ECHO_N "(cached) $ECHO_C" >&6
27617 else
27618   cat >conftest.$ac_ext <<_ACEOF
27619 /* confdefs.h.  */
27620 _ACEOF
27621 cat confdefs.h >>conftest.$ac_ext
27622 cat >>conftest.$ac_ext <<_ACEOF
27623 /* end confdefs.h.  */
27624 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27625    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27626 #define $ac_func innocuous_$ac_func
27627
27628 /* System header to define __stub macros and hopefully few prototypes,
27629     which can conflict with char $ac_func (); below.
27630     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27631     <limits.h> exists even on freestanding compilers.  */
27632
27633 #ifdef __STDC__
27634 # include <limits.h>
27635 #else
27636 # include <assert.h>
27637 #endif
27638
27639 #undef $ac_func
27640
27641 /* Override any GCC internal prototype to avoid an error.
27642    Use char because int might match the return type of a GCC
27643    builtin and then its argument prototype would still apply.  */
27644 #ifdef __cplusplus
27645 extern "C"
27646 #endif
27647 char $ac_func ();
27648 /* The GNU C library defines this for functions which it implements
27649     to always fail with ENOSYS.  Some functions are actually named
27650     something starting with __ and the normal name is an alias.  */
27651 #if defined __stub_$ac_func || defined __stub___$ac_func
27652 choke me
27653 #endif
27654
27655 int
27656 main ()
27657 {
27658 return $ac_func ();
27659   ;
27660   return 0;
27661 }
27662 _ACEOF
27663 rm -f conftest.$ac_objext conftest$ac_exeext
27664 if { (ac_try="$ac_link"
27665 case "(($ac_try" in
27666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27667   *) ac_try_echo=$ac_try;;
27668 esac
27669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27670   (eval "$ac_link") 2>conftest.er1
27671   ac_status=$?
27672   grep -v '^ *+' conftest.er1 >conftest.err
27673   rm -f conftest.er1
27674   cat conftest.err >&5
27675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27676   (exit $ac_status); } && {
27677          test -z "$ac_c_werror_flag" ||
27678          test ! -s conftest.err
27679        } && test -s conftest$ac_exeext &&
27680        $as_test_x conftest$ac_exeext; then
27681   eval "$as_ac_var=yes"
27682 else
27683   echo "$as_me: failed program was:" >&5
27684 sed 's/^/| /' conftest.$ac_ext >&5
27685
27686         eval "$as_ac_var=no"
27687 fi
27688
27689 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27690       conftest$ac_exeext conftest.$ac_ext
27691 fi
27692 ac_res=`eval echo '${'$as_ac_var'}'`
27693                { echo "$as_me:$LINENO: result: $ac_res" >&5
27694 echo "${ECHO_T}$ac_res" >&6; }
27695 if test `eval echo '${'$as_ac_var'}'` = yes; then
27696   cat >>confdefs.h <<_ACEOF
27697 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27698 _ACEOF
27699  
27700 { echo "$as_me:$LINENO: checking for _doprnt" >&5
27701 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
27702 if test "${ac_cv_func__doprnt+set}" = set; then
27703   echo $ECHO_N "(cached) $ECHO_C" >&6
27704 else
27705   cat >conftest.$ac_ext <<_ACEOF
27706 /* confdefs.h.  */
27707 _ACEOF
27708 cat confdefs.h >>conftest.$ac_ext
27709 cat >>conftest.$ac_ext <<_ACEOF
27710 /* end confdefs.h.  */
27711 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
27712    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27713 #define _doprnt innocuous__doprnt
27714
27715 /* System header to define __stub macros and hopefully few prototypes,
27716     which can conflict with char _doprnt (); below.
27717     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27718     <limits.h> exists even on freestanding compilers.  */
27719
27720 #ifdef __STDC__
27721 # include <limits.h>
27722 #else
27723 # include <assert.h>
27724 #endif
27725
27726 #undef _doprnt
27727
27728 /* Override any GCC internal prototype to avoid an error.
27729    Use char because int might match the return type of a GCC
27730    builtin and then its argument prototype would still apply.  */
27731 #ifdef __cplusplus
27732 extern "C"
27733 #endif
27734 char _doprnt ();
27735 /* The GNU C library defines this for functions which it implements
27736     to always fail with ENOSYS.  Some functions are actually named
27737     something starting with __ and the normal name is an alias.  */
27738 #if defined __stub__doprnt || defined __stub____doprnt
27739 choke me
27740 #endif
27741
27742 int
27743 main ()
27744 {
27745 return _doprnt ();
27746   ;
27747   return 0;
27748 }
27749 _ACEOF
27750 rm -f conftest.$ac_objext conftest$ac_exeext
27751 if { (ac_try="$ac_link"
27752 case "(($ac_try" in
27753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27754   *) ac_try_echo=$ac_try;;
27755 esac
27756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27757   (eval "$ac_link") 2>conftest.er1
27758   ac_status=$?
27759   grep -v '^ *+' conftest.er1 >conftest.err
27760   rm -f conftest.er1
27761   cat conftest.err >&5
27762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27763   (exit $ac_status); } && {
27764          test -z "$ac_c_werror_flag" ||
27765          test ! -s conftest.err
27766        } && test -s conftest$ac_exeext &&
27767        $as_test_x conftest$ac_exeext; then
27768   ac_cv_func__doprnt=yes
27769 else
27770   echo "$as_me: failed program was:" >&5
27771 sed 's/^/| /' conftest.$ac_ext >&5
27772
27773         ac_cv_func__doprnt=no
27774 fi
27775
27776 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27777       conftest$ac_exeext conftest.$ac_ext
27778 fi
27779 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
27780 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
27781 if test $ac_cv_func__doprnt = yes; then
27782   
27783 cat >>confdefs.h <<\_ACEOF
27784 @%:@define HAVE_DOPRNT 1
27785 _ACEOF
27786
27787 fi
27788
27789 fi
27790 done
27791
27792
27793
27794
27795
27796
27797
27798
27799
27800
27801
27802
27803
27804
27805
27806
27807
27808
27809
27810
27811
27812
27813
27814
27815
27816
27817
27818
27819
27820
27821
27822 for ac_func in alarm atexit dup2 fdatasync ftruncate getcwd \
27823                gethostbyaddr gethostbyname gethostname getmntent \
27824                gettimeofday hasmntopt inet_ntoa innetgr memset mkdir pathconf \
27825                realpath rmdir select socket strcasecmp strchr strdup \
27826                strerror strrchr strtol strtoul sigprocmask
27827 do
27828 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27829 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27830 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27831 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27832   echo $ECHO_N "(cached) $ECHO_C" >&6
27833 else
27834   cat >conftest.$ac_ext <<_ACEOF
27835 /* confdefs.h.  */
27836 _ACEOF
27837 cat confdefs.h >>conftest.$ac_ext
27838 cat >>conftest.$ac_ext <<_ACEOF
27839 /* end confdefs.h.  */
27840 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27841    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27842 #define $ac_func innocuous_$ac_func
27843
27844 /* System header to define __stub macros and hopefully few prototypes,
27845     which can conflict with char $ac_func (); below.
27846     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27847     <limits.h> exists even on freestanding compilers.  */
27848
27849 #ifdef __STDC__
27850 # include <limits.h>
27851 #else
27852 # include <assert.h>
27853 #endif
27854
27855 #undef $ac_func
27856
27857 /* Override any GCC internal prototype to avoid an error.
27858    Use char because int might match the return type of a GCC
27859    builtin and then its argument prototype would still apply.  */
27860 #ifdef __cplusplus
27861 extern "C"
27862 #endif
27863 char $ac_func ();
27864 /* The GNU C library defines this for functions which it implements
27865     to always fail with ENOSYS.  Some functions are actually named
27866     something starting with __ and the normal name is an alias.  */
27867 #if defined __stub_$ac_func || defined __stub___$ac_func
27868 choke me
27869 #endif
27870
27871 int
27872 main ()
27873 {
27874 return $ac_func ();
27875   ;
27876   return 0;
27877 }
27878 _ACEOF
27879 rm -f conftest.$ac_objext conftest$ac_exeext
27880 if { (ac_try="$ac_link"
27881 case "(($ac_try" in
27882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27883   *) ac_try_echo=$ac_try;;
27884 esac
27885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27886   (eval "$ac_link") 2>conftest.er1
27887   ac_status=$?
27888   grep -v '^ *+' conftest.er1 >conftest.err
27889   rm -f conftest.er1
27890   cat conftest.err >&5
27891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27892   (exit $ac_status); } && {
27893          test -z "$ac_c_werror_flag" ||
27894          test ! -s conftest.err
27895        } && test -s conftest$ac_exeext &&
27896        $as_test_x conftest$ac_exeext; then
27897   eval "$as_ac_var=yes"
27898 else
27899   echo "$as_me: failed program was:" >&5
27900 sed 's/^/| /' conftest.$ac_ext >&5
27901
27902         eval "$as_ac_var=no"
27903 fi
27904
27905 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27906       conftest$ac_exeext conftest.$ac_ext
27907 fi
27908 ac_res=`eval echo '${'$as_ac_var'}'`
27909                { echo "$as_me:$LINENO: result: $ac_res" >&5
27910 echo "${ECHO_T}$ac_res" >&6; }
27911 if test `eval echo '${'$as_ac_var'}'` = yes; then
27912   cat >>confdefs.h <<_ACEOF
27913 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27914 _ACEOF
27915  
27916 fi
27917 done
27918
27919
27920
27921 { echo "$as_me:$LINENO: checking for short" >&5
27922 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
27923 if test "${ac_cv_type_short+set}" = set; then
27924   echo $ECHO_N "(cached) $ECHO_C" >&6
27925 else
27926   cat >conftest.$ac_ext <<_ACEOF
27927 /* confdefs.h.  */
27928 _ACEOF
27929 cat confdefs.h >>conftest.$ac_ext
27930 cat >>conftest.$ac_ext <<_ACEOF
27931 /* end confdefs.h.  */
27932 $ac_includes_default
27933 typedef short ac__type_new_;
27934 int
27935 main ()
27936 {
27937 if ((ac__type_new_ *) 0)
27938   return 0;
27939 if (sizeof (ac__type_new_))
27940   return 0;
27941   ;
27942   return 0;
27943 }
27944 _ACEOF
27945 rm -f conftest.$ac_objext
27946 if { (ac_try="$ac_compile"
27947 case "(($ac_try" in
27948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27949   *) ac_try_echo=$ac_try;;
27950 esac
27951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27952   (eval "$ac_compile") 2>conftest.er1
27953   ac_status=$?
27954   grep -v '^ *+' conftest.er1 >conftest.err
27955   rm -f conftest.er1
27956   cat conftest.err >&5
27957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27958   (exit $ac_status); } && {
27959          test -z "$ac_c_werror_flag" ||
27960          test ! -s conftest.err
27961        } && test -s conftest.$ac_objext; then
27962   ac_cv_type_short=yes
27963 else
27964   echo "$as_me: failed program was:" >&5
27965 sed 's/^/| /' conftest.$ac_ext >&5
27966
27967         ac_cv_type_short=no
27968 fi
27969
27970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27971 fi
27972 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
27973 echo "${ECHO_T}$ac_cv_type_short" >&6; }
27974
27975 # The cast to long int works around a bug in the HP C Compiler
27976 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27977 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27978 # This bug is HP SR number 8606223364.
27979 { echo "$as_me:$LINENO: checking size of short" >&5
27980 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
27981 if test "${ac_cv_sizeof_short+set}" = set; then
27982   echo $ECHO_N "(cached) $ECHO_C" >&6
27983 else
27984   if test "$cross_compiling" = yes; then
27985   # Depending upon the size, compute the lo and hi bounds.
27986 cat >conftest.$ac_ext <<_ACEOF
27987 /* confdefs.h.  */
27988 _ACEOF
27989 cat confdefs.h >>conftest.$ac_ext
27990 cat >>conftest.$ac_ext <<_ACEOF
27991 /* end confdefs.h.  */
27992 $ac_includes_default
27993    typedef short ac__type_sizeof_;
27994 int
27995 main ()
27996 {
27997 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
27998 test_array @<:@0@:>@ = 0
27999
28000   ;
28001   return 0;
28002 }
28003 _ACEOF
28004 rm -f conftest.$ac_objext
28005 if { (ac_try="$ac_compile"
28006 case "(($ac_try" in
28007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28008   *) ac_try_echo=$ac_try;;
28009 esac
28010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28011   (eval "$ac_compile") 2>conftest.er1
28012   ac_status=$?
28013   grep -v '^ *+' conftest.er1 >conftest.err
28014   rm -f conftest.er1
28015   cat conftest.err >&5
28016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28017   (exit $ac_status); } && {
28018          test -z "$ac_c_werror_flag" ||
28019          test ! -s conftest.err
28020        } && test -s conftest.$ac_objext; then
28021   ac_lo=0 ac_mid=0
28022   while :; do
28023     cat >conftest.$ac_ext <<_ACEOF
28024 /* confdefs.h.  */
28025 _ACEOF
28026 cat confdefs.h >>conftest.$ac_ext
28027 cat >>conftest.$ac_ext <<_ACEOF
28028 /* end confdefs.h.  */
28029 $ac_includes_default
28030    typedef short ac__type_sizeof_;
28031 int
28032 main ()
28033 {
28034 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
28035 test_array @<:@0@:>@ = 0
28036
28037   ;
28038   return 0;
28039 }
28040 _ACEOF
28041 rm -f conftest.$ac_objext
28042 if { (ac_try="$ac_compile"
28043 case "(($ac_try" in
28044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28045   *) ac_try_echo=$ac_try;;
28046 esac
28047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28048   (eval "$ac_compile") 2>conftest.er1
28049   ac_status=$?
28050   grep -v '^ *+' conftest.er1 >conftest.err
28051   rm -f conftest.er1
28052   cat conftest.err >&5
28053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28054   (exit $ac_status); } && {
28055          test -z "$ac_c_werror_flag" ||
28056          test ! -s conftest.err
28057        } && test -s conftest.$ac_objext; then
28058   ac_hi=$ac_mid; break
28059 else
28060   echo "$as_me: failed program was:" >&5
28061 sed 's/^/| /' conftest.$ac_ext >&5
28062
28063         ac_lo=`expr $ac_mid + 1`
28064                         if test $ac_lo -le $ac_mid; then
28065                           ac_lo= ac_hi=
28066                           break
28067                         fi
28068                         ac_mid=`expr 2 '*' $ac_mid + 1`
28069 fi
28070
28071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28072   done
28073 else
28074   echo "$as_me: failed program was:" >&5
28075 sed 's/^/| /' conftest.$ac_ext >&5
28076
28077         cat >conftest.$ac_ext <<_ACEOF
28078 /* confdefs.h.  */
28079 _ACEOF
28080 cat confdefs.h >>conftest.$ac_ext
28081 cat >>conftest.$ac_ext <<_ACEOF
28082 /* end confdefs.h.  */
28083 $ac_includes_default
28084    typedef short ac__type_sizeof_;
28085 int
28086 main ()
28087 {
28088 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
28089 test_array @<:@0@:>@ = 0
28090
28091   ;
28092   return 0;
28093 }
28094 _ACEOF
28095 rm -f conftest.$ac_objext
28096 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
28103   ac_status=$?
28104   grep -v '^ *+' conftest.er1 >conftest.err
28105   rm -f conftest.er1
28106   cat conftest.err >&5
28107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28108   (exit $ac_status); } && {
28109          test -z "$ac_c_werror_flag" ||
28110          test ! -s conftest.err
28111        } && test -s conftest.$ac_objext; then
28112   ac_hi=-1 ac_mid=-1
28113   while :; do
28114     cat >conftest.$ac_ext <<_ACEOF
28115 /* confdefs.h.  */
28116 _ACEOF
28117 cat confdefs.h >>conftest.$ac_ext
28118 cat >>conftest.$ac_ext <<_ACEOF
28119 /* end confdefs.h.  */
28120 $ac_includes_default
28121    typedef short ac__type_sizeof_;
28122 int
28123 main ()
28124 {
28125 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
28126 test_array @<:@0@:>@ = 0
28127
28128   ;
28129   return 0;
28130 }
28131 _ACEOF
28132 rm -f conftest.$ac_objext
28133 if { (ac_try="$ac_compile"
28134 case "(($ac_try" in
28135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28136   *) ac_try_echo=$ac_try;;
28137 esac
28138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28139   (eval "$ac_compile") 2>conftest.er1
28140   ac_status=$?
28141   grep -v '^ *+' conftest.er1 >conftest.err
28142   rm -f conftest.er1
28143   cat conftest.err >&5
28144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28145   (exit $ac_status); } && {
28146          test -z "$ac_c_werror_flag" ||
28147          test ! -s conftest.err
28148        } && test -s conftest.$ac_objext; then
28149   ac_lo=$ac_mid; break
28150 else
28151   echo "$as_me: failed program was:" >&5
28152 sed 's/^/| /' conftest.$ac_ext >&5
28153
28154         ac_hi=`expr '(' $ac_mid ')' - 1`
28155                         if test $ac_mid -le $ac_hi; then
28156                           ac_lo= ac_hi=
28157                           break
28158                         fi
28159                         ac_mid=`expr 2 '*' $ac_mid`
28160 fi
28161
28162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28163   done
28164 else
28165   echo "$as_me: failed program was:" >&5
28166 sed 's/^/| /' conftest.$ac_ext >&5
28167
28168         ac_lo= ac_hi=
28169 fi
28170
28171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28172 fi
28173
28174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28175 # Binary search between lo and hi bounds.
28176 while test "x$ac_lo" != "x$ac_hi"; do
28177   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28178   cat >conftest.$ac_ext <<_ACEOF
28179 /* confdefs.h.  */
28180 _ACEOF
28181 cat confdefs.h >>conftest.$ac_ext
28182 cat >>conftest.$ac_ext <<_ACEOF
28183 /* end confdefs.h.  */
28184 $ac_includes_default
28185    typedef short ac__type_sizeof_;
28186 int
28187 main ()
28188 {
28189 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
28190 test_array @<:@0@:>@ = 0
28191
28192   ;
28193   return 0;
28194 }
28195 _ACEOF
28196 rm -f conftest.$ac_objext
28197 if { (ac_try="$ac_compile"
28198 case "(($ac_try" in
28199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28200   *) ac_try_echo=$ac_try;;
28201 esac
28202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28203   (eval "$ac_compile") 2>conftest.er1
28204   ac_status=$?
28205   grep -v '^ *+' conftest.er1 >conftest.err
28206   rm -f conftest.er1
28207   cat conftest.err >&5
28208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28209   (exit $ac_status); } && {
28210          test -z "$ac_c_werror_flag" ||
28211          test ! -s conftest.err
28212        } && test -s conftest.$ac_objext; then
28213   ac_hi=$ac_mid
28214 else
28215   echo "$as_me: failed program was:" >&5
28216 sed 's/^/| /' conftest.$ac_ext >&5
28217
28218         ac_lo=`expr '(' $ac_mid ')' + 1`
28219 fi
28220
28221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28222 done
28223 case $ac_lo in
28224 ?*) ac_cv_sizeof_short=$ac_lo;;
28225 '') if test "$ac_cv_type_short" = yes; then
28226      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
28227 See \`config.log' for more details." >&5
28228 echo "$as_me: error: cannot compute sizeof (short)
28229 See \`config.log' for more details." >&2;}
28230    { (exit 77); exit 77; }; }
28231    else
28232      ac_cv_sizeof_short=0
28233    fi ;;
28234 esac
28235 else
28236   cat >conftest.$ac_ext <<_ACEOF
28237 /* confdefs.h.  */
28238 _ACEOF
28239 cat confdefs.h >>conftest.$ac_ext
28240 cat >>conftest.$ac_ext <<_ACEOF
28241 /* end confdefs.h.  */
28242 $ac_includes_default
28243    typedef short ac__type_sizeof_;
28244 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28245 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28246 @%:@include <stdio.h>
28247 @%:@include <stdlib.h>
28248 int
28249 main ()
28250 {
28251
28252   FILE *f = fopen ("conftest.val", "w");
28253   if (! f)
28254     return 1;
28255   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
28256     {
28257       long int i = longval ();
28258       if (i != ((long int) (sizeof (ac__type_sizeof_))))
28259         return 1;
28260       fprintf (f, "%ld\n", i);
28261     }
28262   else
28263     {
28264       unsigned long int i = ulongval ();
28265       if (i != ((long int) (sizeof (ac__type_sizeof_))))
28266         return 1;
28267       fprintf (f, "%lu\n", i);
28268     }
28269   return ferror (f) || fclose (f) != 0;
28270
28271   ;
28272   return 0;
28273 }
28274 _ACEOF
28275 rm -f conftest$ac_exeext
28276 if { (ac_try="$ac_link"
28277 case "(($ac_try" in
28278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28279   *) ac_try_echo=$ac_try;;
28280 esac
28281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28282   (eval "$ac_link") 2>&5
28283   ac_status=$?
28284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28285   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
28292   ac_status=$?
28293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28294   (exit $ac_status); }; }; then
28295   ac_cv_sizeof_short=`cat conftest.val`
28296 else
28297   echo "$as_me: program exited with status $ac_status" >&5
28298 echo "$as_me: failed program was:" >&5
28299 sed 's/^/| /' conftest.$ac_ext >&5
28300
28301 ( exit $ac_status )
28302 if test "$ac_cv_type_short" = yes; then
28303      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
28304 See \`config.log' for more details." >&5
28305 echo "$as_me: error: cannot compute sizeof (short)
28306 See \`config.log' for more details." >&2;}
28307    { (exit 77); exit 77; }; }
28308    else
28309      ac_cv_sizeof_short=0
28310    fi
28311 fi
28312 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28313 fi
28314 rm -f conftest.val
28315 fi
28316 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
28317 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
28318
28319
28320
28321 cat >>confdefs.h <<_ACEOF
28322 @%:@define SIZEOF_SHORT $ac_cv_sizeof_short
28323 _ACEOF
28324
28325
28326 { echo "$as_me:$LINENO: checking for int" >&5
28327 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
28328 if test "${ac_cv_type_int+set}" = set; then
28329   echo $ECHO_N "(cached) $ECHO_C" >&6
28330 else
28331   cat >conftest.$ac_ext <<_ACEOF
28332 /* confdefs.h.  */
28333 _ACEOF
28334 cat confdefs.h >>conftest.$ac_ext
28335 cat >>conftest.$ac_ext <<_ACEOF
28336 /* end confdefs.h.  */
28337 $ac_includes_default
28338 typedef int ac__type_new_;
28339 int
28340 main ()
28341 {
28342 if ((ac__type_new_ *) 0)
28343   return 0;
28344 if (sizeof (ac__type_new_))
28345   return 0;
28346   ;
28347   return 0;
28348 }
28349 _ACEOF
28350 rm -f conftest.$ac_objext
28351 if { (ac_try="$ac_compile"
28352 case "(($ac_try" in
28353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28354   *) ac_try_echo=$ac_try;;
28355 esac
28356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28357   (eval "$ac_compile") 2>conftest.er1
28358   ac_status=$?
28359   grep -v '^ *+' conftest.er1 >conftest.err
28360   rm -f conftest.er1
28361   cat conftest.err >&5
28362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28363   (exit $ac_status); } && {
28364          test -z "$ac_c_werror_flag" ||
28365          test ! -s conftest.err
28366        } && test -s conftest.$ac_objext; then
28367   ac_cv_type_int=yes
28368 else
28369   echo "$as_me: failed program was:" >&5
28370 sed 's/^/| /' conftest.$ac_ext >&5
28371
28372         ac_cv_type_int=no
28373 fi
28374
28375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28376 fi
28377 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
28378 echo "${ECHO_T}$ac_cv_type_int" >&6; }
28379
28380 # The cast to long int works around a bug in the HP C Compiler
28381 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28382 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28383 # This bug is HP SR number 8606223364.
28384 { echo "$as_me:$LINENO: checking size of int" >&5
28385 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
28386 if test "${ac_cv_sizeof_int+set}" = set; then
28387   echo $ECHO_N "(cached) $ECHO_C" >&6
28388 else
28389   if test "$cross_compiling" = yes; then
28390   # Depending upon the size, compute the lo and hi bounds.
28391 cat >conftest.$ac_ext <<_ACEOF
28392 /* confdefs.h.  */
28393 _ACEOF
28394 cat confdefs.h >>conftest.$ac_ext
28395 cat >>conftest.$ac_ext <<_ACEOF
28396 /* end confdefs.h.  */
28397 $ac_includes_default
28398    typedef int ac__type_sizeof_;
28399 int
28400 main ()
28401 {
28402 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
28403 test_array @<:@0@:>@ = 0
28404
28405   ;
28406   return 0;
28407 }
28408 _ACEOF
28409 rm -f conftest.$ac_objext
28410 if { (ac_try="$ac_compile"
28411 case "(($ac_try" in
28412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28413   *) ac_try_echo=$ac_try;;
28414 esac
28415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28416   (eval "$ac_compile") 2>conftest.er1
28417   ac_status=$?
28418   grep -v '^ *+' conftest.er1 >conftest.err
28419   rm -f conftest.er1
28420   cat conftest.err >&5
28421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28422   (exit $ac_status); } && {
28423          test -z "$ac_c_werror_flag" ||
28424          test ! -s conftest.err
28425        } && test -s conftest.$ac_objext; then
28426   ac_lo=0 ac_mid=0
28427   while :; do
28428     cat >conftest.$ac_ext <<_ACEOF
28429 /* confdefs.h.  */
28430 _ACEOF
28431 cat confdefs.h >>conftest.$ac_ext
28432 cat >>conftest.$ac_ext <<_ACEOF
28433 /* end confdefs.h.  */
28434 $ac_includes_default
28435    typedef int ac__type_sizeof_;
28436 int
28437 main ()
28438 {
28439 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
28440 test_array @<:@0@:>@ = 0
28441
28442   ;
28443   return 0;
28444 }
28445 _ACEOF
28446 rm -f conftest.$ac_objext
28447 if { (ac_try="$ac_compile"
28448 case "(($ac_try" in
28449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28450   *) ac_try_echo=$ac_try;;
28451 esac
28452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28453   (eval "$ac_compile") 2>conftest.er1
28454   ac_status=$?
28455   grep -v '^ *+' conftest.er1 >conftest.err
28456   rm -f conftest.er1
28457   cat conftest.err >&5
28458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28459   (exit $ac_status); } && {
28460          test -z "$ac_c_werror_flag" ||
28461          test ! -s conftest.err
28462        } && test -s conftest.$ac_objext; then
28463   ac_hi=$ac_mid; break
28464 else
28465   echo "$as_me: failed program was:" >&5
28466 sed 's/^/| /' conftest.$ac_ext >&5
28467
28468         ac_lo=`expr $ac_mid + 1`
28469                         if test $ac_lo -le $ac_mid; then
28470                           ac_lo= ac_hi=
28471                           break
28472                         fi
28473                         ac_mid=`expr 2 '*' $ac_mid + 1`
28474 fi
28475
28476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28477   done
28478 else
28479   echo "$as_me: failed program was:" >&5
28480 sed 's/^/| /' conftest.$ac_ext >&5
28481
28482         cat >conftest.$ac_ext <<_ACEOF
28483 /* confdefs.h.  */
28484 _ACEOF
28485 cat confdefs.h >>conftest.$ac_ext
28486 cat >>conftest.$ac_ext <<_ACEOF
28487 /* end confdefs.h.  */
28488 $ac_includes_default
28489    typedef int ac__type_sizeof_;
28490 int
28491 main ()
28492 {
28493 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
28494 test_array @<:@0@:>@ = 0
28495
28496   ;
28497   return 0;
28498 }
28499 _ACEOF
28500 rm -f conftest.$ac_objext
28501 if { (ac_try="$ac_compile"
28502 case "(($ac_try" in
28503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28504   *) ac_try_echo=$ac_try;;
28505 esac
28506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28507   (eval "$ac_compile") 2>conftest.er1
28508   ac_status=$?
28509   grep -v '^ *+' conftest.er1 >conftest.err
28510   rm -f conftest.er1
28511   cat conftest.err >&5
28512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28513   (exit $ac_status); } && {
28514          test -z "$ac_c_werror_flag" ||
28515          test ! -s conftest.err
28516        } && test -s conftest.$ac_objext; then
28517   ac_hi=-1 ac_mid=-1
28518   while :; do
28519     cat >conftest.$ac_ext <<_ACEOF
28520 /* confdefs.h.  */
28521 _ACEOF
28522 cat confdefs.h >>conftest.$ac_ext
28523 cat >>conftest.$ac_ext <<_ACEOF
28524 /* end confdefs.h.  */
28525 $ac_includes_default
28526    typedef int ac__type_sizeof_;
28527 int
28528 main ()
28529 {
28530 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
28531 test_array @<:@0@:>@ = 0
28532
28533   ;
28534   return 0;
28535 }
28536 _ACEOF
28537 rm -f conftest.$ac_objext
28538 if { (ac_try="$ac_compile"
28539 case "(($ac_try" in
28540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28541   *) ac_try_echo=$ac_try;;
28542 esac
28543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28544   (eval "$ac_compile") 2>conftest.er1
28545   ac_status=$?
28546   grep -v '^ *+' conftest.er1 >conftest.err
28547   rm -f conftest.er1
28548   cat conftest.err >&5
28549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28550   (exit $ac_status); } && {
28551          test -z "$ac_c_werror_flag" ||
28552          test ! -s conftest.err
28553        } && test -s conftest.$ac_objext; then
28554   ac_lo=$ac_mid; break
28555 else
28556   echo "$as_me: failed program was:" >&5
28557 sed 's/^/| /' conftest.$ac_ext >&5
28558
28559         ac_hi=`expr '(' $ac_mid ')' - 1`
28560                         if test $ac_mid -le $ac_hi; then
28561                           ac_lo= ac_hi=
28562                           break
28563                         fi
28564                         ac_mid=`expr 2 '*' $ac_mid`
28565 fi
28566
28567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28568   done
28569 else
28570   echo "$as_me: failed program was:" >&5
28571 sed 's/^/| /' conftest.$ac_ext >&5
28572
28573         ac_lo= ac_hi=
28574 fi
28575
28576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28577 fi
28578
28579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28580 # Binary search between lo and hi bounds.
28581 while test "x$ac_lo" != "x$ac_hi"; do
28582   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28583   cat >conftest.$ac_ext <<_ACEOF
28584 /* confdefs.h.  */
28585 _ACEOF
28586 cat confdefs.h >>conftest.$ac_ext
28587 cat >>conftest.$ac_ext <<_ACEOF
28588 /* end confdefs.h.  */
28589 $ac_includes_default
28590    typedef int ac__type_sizeof_;
28591 int
28592 main ()
28593 {
28594 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
28595 test_array @<:@0@:>@ = 0
28596
28597   ;
28598   return 0;
28599 }
28600 _ACEOF
28601 rm -f conftest.$ac_objext
28602 if { (ac_try="$ac_compile"
28603 case "(($ac_try" in
28604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28605   *) ac_try_echo=$ac_try;;
28606 esac
28607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28608   (eval "$ac_compile") 2>conftest.er1
28609   ac_status=$?
28610   grep -v '^ *+' conftest.er1 >conftest.err
28611   rm -f conftest.er1
28612   cat conftest.err >&5
28613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28614   (exit $ac_status); } && {
28615          test -z "$ac_c_werror_flag" ||
28616          test ! -s conftest.err
28617        } && test -s conftest.$ac_objext; then
28618   ac_hi=$ac_mid
28619 else
28620   echo "$as_me: failed program was:" >&5
28621 sed 's/^/| /' conftest.$ac_ext >&5
28622
28623         ac_lo=`expr '(' $ac_mid ')' + 1`
28624 fi
28625
28626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28627 done
28628 case $ac_lo in
28629 ?*) ac_cv_sizeof_int=$ac_lo;;
28630 '') if test "$ac_cv_type_int" = yes; then
28631      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
28632 See \`config.log' for more details." >&5
28633 echo "$as_me: error: cannot compute sizeof (int)
28634 See \`config.log' for more details." >&2;}
28635    { (exit 77); exit 77; }; }
28636    else
28637      ac_cv_sizeof_int=0
28638    fi ;;
28639 esac
28640 else
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 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28650 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28651 @%:@include <stdio.h>
28652 @%:@include <stdlib.h>
28653 int
28654 main ()
28655 {
28656
28657   FILE *f = fopen ("conftest.val", "w");
28658   if (! f)
28659     return 1;
28660   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
28661     {
28662       long int i = longval ();
28663       if (i != ((long int) (sizeof (ac__type_sizeof_))))
28664         return 1;
28665       fprintf (f, "%ld\n", i);
28666     }
28667   else
28668     {
28669       unsigned long int i = ulongval ();
28670       if (i != ((long int) (sizeof (ac__type_sizeof_))))
28671         return 1;
28672       fprintf (f, "%lu\n", i);
28673     }
28674   return ferror (f) || fclose (f) != 0;
28675
28676   ;
28677   return 0;
28678 }
28679 _ACEOF
28680 rm -f conftest$ac_exeext
28681 if { (ac_try="$ac_link"
28682 case "(($ac_try" in
28683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28684   *) ac_try_echo=$ac_try;;
28685 esac
28686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28687   (eval "$ac_link") 2>&5
28688   ac_status=$?
28689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28690   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28691   { (case "(($ac_try" in
28692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28693   *) ac_try_echo=$ac_try;;
28694 esac
28695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28696   (eval "$ac_try") 2>&5
28697   ac_status=$?
28698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28699   (exit $ac_status); }; }; then
28700   ac_cv_sizeof_int=`cat conftest.val`
28701 else
28702   echo "$as_me: program exited with status $ac_status" >&5
28703 echo "$as_me: failed program was:" >&5
28704 sed 's/^/| /' conftest.$ac_ext >&5
28705
28706 ( exit $ac_status )
28707 if test "$ac_cv_type_int" = yes; then
28708      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
28709 See \`config.log' for more details." >&5
28710 echo "$as_me: error: cannot compute sizeof (int)
28711 See \`config.log' for more details." >&2;}
28712    { (exit 77); exit 77; }; }
28713    else
28714      ac_cv_sizeof_int=0
28715    fi
28716 fi
28717 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28718 fi
28719 rm -f conftest.val
28720 fi
28721 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
28722 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
28723
28724
28725
28726 cat >>confdefs.h <<_ACEOF
28727 @%:@define SIZEOF_INT $ac_cv_sizeof_int
28728 _ACEOF
28729
28730
28731 { echo "$as_me:$LINENO: checking for long" >&5
28732 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
28733 if test "${ac_cv_type_long+set}" = set; then
28734   echo $ECHO_N "(cached) $ECHO_C" >&6
28735 else
28736   cat >conftest.$ac_ext <<_ACEOF
28737 /* confdefs.h.  */
28738 _ACEOF
28739 cat confdefs.h >>conftest.$ac_ext
28740 cat >>conftest.$ac_ext <<_ACEOF
28741 /* end confdefs.h.  */
28742 $ac_includes_default
28743 typedef long ac__type_new_;
28744 int
28745 main ()
28746 {
28747 if ((ac__type_new_ *) 0)
28748   return 0;
28749 if (sizeof (ac__type_new_))
28750   return 0;
28751   ;
28752   return 0;
28753 }
28754 _ACEOF
28755 rm -f conftest.$ac_objext
28756 if { (ac_try="$ac_compile"
28757 case "(($ac_try" in
28758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28759   *) ac_try_echo=$ac_try;;
28760 esac
28761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28762   (eval "$ac_compile") 2>conftest.er1
28763   ac_status=$?
28764   grep -v '^ *+' conftest.er1 >conftest.err
28765   rm -f conftest.er1
28766   cat conftest.err >&5
28767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28768   (exit $ac_status); } && {
28769          test -z "$ac_c_werror_flag" ||
28770          test ! -s conftest.err
28771        } && test -s conftest.$ac_objext; then
28772   ac_cv_type_long=yes
28773 else
28774   echo "$as_me: failed program was:" >&5
28775 sed 's/^/| /' conftest.$ac_ext >&5
28776
28777         ac_cv_type_long=no
28778 fi
28779
28780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28781 fi
28782 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
28783 echo "${ECHO_T}$ac_cv_type_long" >&6; }
28784
28785 # The cast to long int works around a bug in the HP C Compiler
28786 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28787 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28788 # This bug is HP SR number 8606223364.
28789 { echo "$as_me:$LINENO: checking size of long" >&5
28790 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
28791 if test "${ac_cv_sizeof_long+set}" = set; then
28792   echo $ECHO_N "(cached) $ECHO_C" >&6
28793 else
28794   if test "$cross_compiling" = yes; then
28795   # Depending upon the size, compute the lo and hi bounds.
28796 cat >conftest.$ac_ext <<_ACEOF
28797 /* confdefs.h.  */
28798 _ACEOF
28799 cat confdefs.h >>conftest.$ac_ext
28800 cat >>conftest.$ac_ext <<_ACEOF
28801 /* end confdefs.h.  */
28802 $ac_includes_default
28803    typedef long ac__type_sizeof_;
28804 int
28805 main ()
28806 {
28807 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
28808 test_array @<:@0@:>@ = 0
28809
28810   ;
28811   return 0;
28812 }
28813 _ACEOF
28814 rm -f conftest.$ac_objext
28815 if { (ac_try="$ac_compile"
28816 case "(($ac_try" in
28817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28818   *) ac_try_echo=$ac_try;;
28819 esac
28820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28821   (eval "$ac_compile") 2>conftest.er1
28822   ac_status=$?
28823   grep -v '^ *+' conftest.er1 >conftest.err
28824   rm -f conftest.er1
28825   cat conftest.err >&5
28826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28827   (exit $ac_status); } && {
28828          test -z "$ac_c_werror_flag" ||
28829          test ! -s conftest.err
28830        } && test -s conftest.$ac_objext; then
28831   ac_lo=0 ac_mid=0
28832   while :; do
28833     cat >conftest.$ac_ext <<_ACEOF
28834 /* confdefs.h.  */
28835 _ACEOF
28836 cat confdefs.h >>conftest.$ac_ext
28837 cat >>conftest.$ac_ext <<_ACEOF
28838 /* end confdefs.h.  */
28839 $ac_includes_default
28840    typedef long ac__type_sizeof_;
28841 int
28842 main ()
28843 {
28844 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
28845 test_array @<:@0@:>@ = 0
28846
28847   ;
28848   return 0;
28849 }
28850 _ACEOF
28851 rm -f conftest.$ac_objext
28852 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
28859   ac_status=$?
28860   grep -v '^ *+' conftest.er1 >conftest.err
28861   rm -f conftest.er1
28862   cat conftest.err >&5
28863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28864   (exit $ac_status); } && {
28865          test -z "$ac_c_werror_flag" ||
28866          test ! -s conftest.err
28867        } && test -s conftest.$ac_objext; then
28868   ac_hi=$ac_mid; break
28869 else
28870   echo "$as_me: failed program was:" >&5
28871 sed 's/^/| /' conftest.$ac_ext >&5
28872
28873         ac_lo=`expr $ac_mid + 1`
28874                         if test $ac_lo -le $ac_mid; then
28875                           ac_lo= ac_hi=
28876                           break
28877                         fi
28878                         ac_mid=`expr 2 '*' $ac_mid + 1`
28879 fi
28880
28881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28882   done
28883 else
28884   echo "$as_me: failed program was:" >&5
28885 sed 's/^/| /' conftest.$ac_ext >&5
28886
28887         cat >conftest.$ac_ext <<_ACEOF
28888 /* confdefs.h.  */
28889 _ACEOF
28890 cat confdefs.h >>conftest.$ac_ext
28891 cat >>conftest.$ac_ext <<_ACEOF
28892 /* end confdefs.h.  */
28893 $ac_includes_default
28894    typedef long ac__type_sizeof_;
28895 int
28896 main ()
28897 {
28898 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
28899 test_array @<:@0@:>@ = 0
28900
28901   ;
28902   return 0;
28903 }
28904 _ACEOF
28905 rm -f conftest.$ac_objext
28906 if { (ac_try="$ac_compile"
28907 case "(($ac_try" in
28908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28909   *) ac_try_echo=$ac_try;;
28910 esac
28911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28912   (eval "$ac_compile") 2>conftest.er1
28913   ac_status=$?
28914   grep -v '^ *+' conftest.er1 >conftest.err
28915   rm -f conftest.er1
28916   cat conftest.err >&5
28917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28918   (exit $ac_status); } && {
28919          test -z "$ac_c_werror_flag" ||
28920          test ! -s conftest.err
28921        } && test -s conftest.$ac_objext; then
28922   ac_hi=-1 ac_mid=-1
28923   while :; do
28924     cat >conftest.$ac_ext <<_ACEOF
28925 /* confdefs.h.  */
28926 _ACEOF
28927 cat confdefs.h >>conftest.$ac_ext
28928 cat >>conftest.$ac_ext <<_ACEOF
28929 /* end confdefs.h.  */
28930 $ac_includes_default
28931    typedef long ac__type_sizeof_;
28932 int
28933 main ()
28934 {
28935 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
28936 test_array @<:@0@:>@ = 0
28937
28938   ;
28939   return 0;
28940 }
28941 _ACEOF
28942 rm -f conftest.$ac_objext
28943 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
28950   ac_status=$?
28951   grep -v '^ *+' conftest.er1 >conftest.err
28952   rm -f conftest.er1
28953   cat conftest.err >&5
28954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28955   (exit $ac_status); } && {
28956          test -z "$ac_c_werror_flag" ||
28957          test ! -s conftest.err
28958        } && test -s conftest.$ac_objext; then
28959   ac_lo=$ac_mid; break
28960 else
28961   echo "$as_me: failed program was:" >&5
28962 sed 's/^/| /' conftest.$ac_ext >&5
28963
28964         ac_hi=`expr '(' $ac_mid ')' - 1`
28965                         if test $ac_mid -le $ac_hi; then
28966                           ac_lo= ac_hi=
28967                           break
28968                         fi
28969                         ac_mid=`expr 2 '*' $ac_mid`
28970 fi
28971
28972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28973   done
28974 else
28975   echo "$as_me: failed program was:" >&5
28976 sed 's/^/| /' conftest.$ac_ext >&5
28977
28978         ac_lo= ac_hi=
28979 fi
28980
28981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28982 fi
28983
28984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28985 # Binary search between lo and hi bounds.
28986 while test "x$ac_lo" != "x$ac_hi"; do
28987   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28988   cat >conftest.$ac_ext <<_ACEOF
28989 /* confdefs.h.  */
28990 _ACEOF
28991 cat confdefs.h >>conftest.$ac_ext
28992 cat >>conftest.$ac_ext <<_ACEOF
28993 /* end confdefs.h.  */
28994 $ac_includes_default
28995    typedef long ac__type_sizeof_;
28996 int
28997 main ()
28998 {
28999 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
29000 test_array @<:@0@:>@ = 0
29001
29002   ;
29003   return 0;
29004 }
29005 _ACEOF
29006 rm -f conftest.$ac_objext
29007 if { (ac_try="$ac_compile"
29008 case "(($ac_try" in
29009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29010   *) ac_try_echo=$ac_try;;
29011 esac
29012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29013   (eval "$ac_compile") 2>conftest.er1
29014   ac_status=$?
29015   grep -v '^ *+' conftest.er1 >conftest.err
29016   rm -f conftest.er1
29017   cat conftest.err >&5
29018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29019   (exit $ac_status); } && {
29020          test -z "$ac_c_werror_flag" ||
29021          test ! -s conftest.err
29022        } && test -s conftest.$ac_objext; then
29023   ac_hi=$ac_mid
29024 else
29025   echo "$as_me: failed program was:" >&5
29026 sed 's/^/| /' conftest.$ac_ext >&5
29027
29028         ac_lo=`expr '(' $ac_mid ')' + 1`
29029 fi
29030
29031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29032 done
29033 case $ac_lo in
29034 ?*) ac_cv_sizeof_long=$ac_lo;;
29035 '') if test "$ac_cv_type_long" = yes; then
29036      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
29037 See \`config.log' for more details." >&5
29038 echo "$as_me: error: cannot compute sizeof (long)
29039 See \`config.log' for more details." >&2;}
29040    { (exit 77); exit 77; }; }
29041    else
29042      ac_cv_sizeof_long=0
29043    fi ;;
29044 esac
29045 else
29046   cat >conftest.$ac_ext <<_ACEOF
29047 /* confdefs.h.  */
29048 _ACEOF
29049 cat confdefs.h >>conftest.$ac_ext
29050 cat >>conftest.$ac_ext <<_ACEOF
29051 /* end confdefs.h.  */
29052 $ac_includes_default
29053    typedef long ac__type_sizeof_;
29054 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
29055 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
29056 @%:@include <stdio.h>
29057 @%:@include <stdlib.h>
29058 int
29059 main ()
29060 {
29061
29062   FILE *f = fopen ("conftest.val", "w");
29063   if (! f)
29064     return 1;
29065   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
29066     {
29067       long int i = longval ();
29068       if (i != ((long int) (sizeof (ac__type_sizeof_))))
29069         return 1;
29070       fprintf (f, "%ld\n", i);
29071     }
29072   else
29073     {
29074       unsigned long int i = ulongval ();
29075       if (i != ((long int) (sizeof (ac__type_sizeof_))))
29076         return 1;
29077       fprintf (f, "%lu\n", i);
29078     }
29079   return ferror (f) || fclose (f) != 0;
29080
29081   ;
29082   return 0;
29083 }
29084 _ACEOF
29085 rm -f conftest$ac_exeext
29086 if { (ac_try="$ac_link"
29087 case "(($ac_try" in
29088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29089   *) ac_try_echo=$ac_try;;
29090 esac
29091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29092   (eval "$ac_link") 2>&5
29093   ac_status=$?
29094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29095   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29096   { (case "(($ac_try" in
29097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29098   *) ac_try_echo=$ac_try;;
29099 esac
29100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29101   (eval "$ac_try") 2>&5
29102   ac_status=$?
29103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29104   (exit $ac_status); }; }; then
29105   ac_cv_sizeof_long=`cat conftest.val`
29106 else
29107   echo "$as_me: program exited with status $ac_status" >&5
29108 echo "$as_me: failed program was:" >&5
29109 sed 's/^/| /' conftest.$ac_ext >&5
29110
29111 ( exit $ac_status )
29112 if test "$ac_cv_type_long" = yes; then
29113      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
29114 See \`config.log' for more details." >&5
29115 echo "$as_me: error: cannot compute sizeof (long)
29116 See \`config.log' for more details." >&2;}
29117    { (exit 77); exit 77; }; }
29118    else
29119      ac_cv_sizeof_long=0
29120    fi
29121 fi
29122 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29123 fi
29124 rm -f conftest.val
29125 fi
29126 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
29127 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
29128
29129
29130
29131 cat >>confdefs.h <<_ACEOF
29132 @%:@define SIZEOF_LONG $ac_cv_sizeof_long
29133 _ACEOF
29134
29135
29136 { echo "$as_me:$LINENO: checking for size_t" >&5
29137 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
29138 if test "${ac_cv_type_size_t+set}" = set; then
29139   echo $ECHO_N "(cached) $ECHO_C" >&6
29140 else
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 size_t ac__type_new_;
29149 int
29150 main ()
29151 {
29152 if ((ac__type_new_ *) 0)
29153   return 0;
29154 if (sizeof (ac__type_new_))
29155   return 0;
29156   ;
29157   return 0;
29158 }
29159 _ACEOF
29160 rm -f conftest.$ac_objext
29161 if { (ac_try="$ac_compile"
29162 case "(($ac_try" in
29163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29164   *) ac_try_echo=$ac_try;;
29165 esac
29166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29167   (eval "$ac_compile") 2>conftest.er1
29168   ac_status=$?
29169   grep -v '^ *+' conftest.er1 >conftest.err
29170   rm -f conftest.er1
29171   cat conftest.err >&5
29172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29173   (exit $ac_status); } && {
29174          test -z "$ac_c_werror_flag" ||
29175          test ! -s conftest.err
29176        } && test -s conftest.$ac_objext; then
29177   ac_cv_type_size_t=yes
29178 else
29179   echo "$as_me: failed program was:" >&5
29180 sed 's/^/| /' conftest.$ac_ext >&5
29181
29182         ac_cv_type_size_t=no
29183 fi
29184
29185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29186 fi
29187 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
29188 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
29189
29190 # The cast to long int works around a bug in the HP C Compiler
29191 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
29192 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
29193 # This bug is HP SR number 8606223364.
29194 { echo "$as_me:$LINENO: checking size of size_t" >&5
29195 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
29196 if test "${ac_cv_sizeof_size_t+set}" = set; then
29197   echo $ECHO_N "(cached) $ECHO_C" >&6
29198 else
29199   if test "$cross_compiling" = yes; then
29200   # Depending upon the size, compute the lo and hi bounds.
29201 cat >conftest.$ac_ext <<_ACEOF
29202 /* confdefs.h.  */
29203 _ACEOF
29204 cat confdefs.h >>conftest.$ac_ext
29205 cat >>conftest.$ac_ext <<_ACEOF
29206 /* end confdefs.h.  */
29207 $ac_includes_default
29208    typedef size_t ac__type_sizeof_;
29209 int
29210 main ()
29211 {
29212 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
29213 test_array @<:@0@:>@ = 0
29214
29215   ;
29216   return 0;
29217 }
29218 _ACEOF
29219 rm -f conftest.$ac_objext
29220 if { (ac_try="$ac_compile"
29221 case "(($ac_try" in
29222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29223   *) ac_try_echo=$ac_try;;
29224 esac
29225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29226   (eval "$ac_compile") 2>conftest.er1
29227   ac_status=$?
29228   grep -v '^ *+' conftest.er1 >conftest.err
29229   rm -f conftest.er1
29230   cat conftest.err >&5
29231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29232   (exit $ac_status); } && {
29233          test -z "$ac_c_werror_flag" ||
29234          test ! -s conftest.err
29235        } && test -s conftest.$ac_objext; then
29236   ac_lo=0 ac_mid=0
29237   while :; do
29238     cat >conftest.$ac_ext <<_ACEOF
29239 /* confdefs.h.  */
29240 _ACEOF
29241 cat confdefs.h >>conftest.$ac_ext
29242 cat >>conftest.$ac_ext <<_ACEOF
29243 /* end confdefs.h.  */
29244 $ac_includes_default
29245    typedef size_t ac__type_sizeof_;
29246 int
29247 main ()
29248 {
29249 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
29250 test_array @<:@0@:>@ = 0
29251
29252   ;
29253   return 0;
29254 }
29255 _ACEOF
29256 rm -f conftest.$ac_objext
29257 if { (ac_try="$ac_compile"
29258 case "(($ac_try" in
29259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29260   *) ac_try_echo=$ac_try;;
29261 esac
29262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29263   (eval "$ac_compile") 2>conftest.er1
29264   ac_status=$?
29265   grep -v '^ *+' conftest.er1 >conftest.err
29266   rm -f conftest.er1
29267   cat conftest.err >&5
29268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29269   (exit $ac_status); } && {
29270          test -z "$ac_c_werror_flag" ||
29271          test ! -s conftest.err
29272        } && test -s conftest.$ac_objext; then
29273   ac_hi=$ac_mid; break
29274 else
29275   echo "$as_me: failed program was:" >&5
29276 sed 's/^/| /' conftest.$ac_ext >&5
29277
29278         ac_lo=`expr $ac_mid + 1`
29279                         if test $ac_lo -le $ac_mid; then
29280                           ac_lo= ac_hi=
29281                           break
29282                         fi
29283                         ac_mid=`expr 2 '*' $ac_mid + 1`
29284 fi
29285
29286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29287   done
29288 else
29289   echo "$as_me: failed program was:" >&5
29290 sed 's/^/| /' conftest.$ac_ext >&5
29291
29292         cat >conftest.$ac_ext <<_ACEOF
29293 /* confdefs.h.  */
29294 _ACEOF
29295 cat confdefs.h >>conftest.$ac_ext
29296 cat >>conftest.$ac_ext <<_ACEOF
29297 /* end confdefs.h.  */
29298 $ac_includes_default
29299    typedef size_t ac__type_sizeof_;
29300 int
29301 main ()
29302 {
29303 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
29304 test_array @<:@0@:>@ = 0
29305
29306   ;
29307   return 0;
29308 }
29309 _ACEOF
29310 rm -f conftest.$ac_objext
29311 if { (ac_try="$ac_compile"
29312 case "(($ac_try" in
29313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29314   *) ac_try_echo=$ac_try;;
29315 esac
29316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29317   (eval "$ac_compile") 2>conftest.er1
29318   ac_status=$?
29319   grep -v '^ *+' conftest.er1 >conftest.err
29320   rm -f conftest.er1
29321   cat conftest.err >&5
29322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29323   (exit $ac_status); } && {
29324          test -z "$ac_c_werror_flag" ||
29325          test ! -s conftest.err
29326        } && test -s conftest.$ac_objext; then
29327   ac_hi=-1 ac_mid=-1
29328   while :; do
29329     cat >conftest.$ac_ext <<_ACEOF
29330 /* confdefs.h.  */
29331 _ACEOF
29332 cat confdefs.h >>conftest.$ac_ext
29333 cat >>conftest.$ac_ext <<_ACEOF
29334 /* end confdefs.h.  */
29335 $ac_includes_default
29336    typedef size_t ac__type_sizeof_;
29337 int
29338 main ()
29339 {
29340 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
29341 test_array @<:@0@:>@ = 0
29342
29343   ;
29344   return 0;
29345 }
29346 _ACEOF
29347 rm -f conftest.$ac_objext
29348 if { (ac_try="$ac_compile"
29349 case "(($ac_try" in
29350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29351   *) ac_try_echo=$ac_try;;
29352 esac
29353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29354   (eval "$ac_compile") 2>conftest.er1
29355   ac_status=$?
29356   grep -v '^ *+' conftest.er1 >conftest.err
29357   rm -f conftest.er1
29358   cat conftest.err >&5
29359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29360   (exit $ac_status); } && {
29361          test -z "$ac_c_werror_flag" ||
29362          test ! -s conftest.err
29363        } && test -s conftest.$ac_objext; then
29364   ac_lo=$ac_mid; break
29365 else
29366   echo "$as_me: failed program was:" >&5
29367 sed 's/^/| /' conftest.$ac_ext >&5
29368
29369         ac_hi=`expr '(' $ac_mid ')' - 1`
29370                         if test $ac_mid -le $ac_hi; then
29371                           ac_lo= ac_hi=
29372                           break
29373                         fi
29374                         ac_mid=`expr 2 '*' $ac_mid`
29375 fi
29376
29377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29378   done
29379 else
29380   echo "$as_me: failed program was:" >&5
29381 sed 's/^/| /' conftest.$ac_ext >&5
29382
29383         ac_lo= ac_hi=
29384 fi
29385
29386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29387 fi
29388
29389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29390 # Binary search between lo and hi bounds.
29391 while test "x$ac_lo" != "x$ac_hi"; do
29392   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
29393   cat >conftest.$ac_ext <<_ACEOF
29394 /* confdefs.h.  */
29395 _ACEOF
29396 cat confdefs.h >>conftest.$ac_ext
29397 cat >>conftest.$ac_ext <<_ACEOF
29398 /* end confdefs.h.  */
29399 $ac_includes_default
29400    typedef size_t ac__type_sizeof_;
29401 int
29402 main ()
29403 {
29404 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
29405 test_array @<:@0@:>@ = 0
29406
29407   ;
29408   return 0;
29409 }
29410 _ACEOF
29411 rm -f conftest.$ac_objext
29412 if { (ac_try="$ac_compile"
29413 case "(($ac_try" in
29414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29415   *) ac_try_echo=$ac_try;;
29416 esac
29417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29418   (eval "$ac_compile") 2>conftest.er1
29419   ac_status=$?
29420   grep -v '^ *+' conftest.er1 >conftest.err
29421   rm -f conftest.er1
29422   cat conftest.err >&5
29423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29424   (exit $ac_status); } && {
29425          test -z "$ac_c_werror_flag" ||
29426          test ! -s conftest.err
29427        } && test -s conftest.$ac_objext; then
29428   ac_hi=$ac_mid
29429 else
29430   echo "$as_me: failed program was:" >&5
29431 sed 's/^/| /' conftest.$ac_ext >&5
29432
29433         ac_lo=`expr '(' $ac_mid ')' + 1`
29434 fi
29435
29436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29437 done
29438 case $ac_lo in
29439 ?*) ac_cv_sizeof_size_t=$ac_lo;;
29440 '') if test "$ac_cv_type_size_t" = yes; then
29441      { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
29442 See \`config.log' for more details." >&5
29443 echo "$as_me: error: cannot compute sizeof (size_t)
29444 See \`config.log' for more details." >&2;}
29445    { (exit 77); exit 77; }; }
29446    else
29447      ac_cv_sizeof_size_t=0
29448    fi ;;
29449 esac
29450 else
29451   cat >conftest.$ac_ext <<_ACEOF
29452 /* confdefs.h.  */
29453 _ACEOF
29454 cat confdefs.h >>conftest.$ac_ext
29455 cat >>conftest.$ac_ext <<_ACEOF
29456 /* end confdefs.h.  */
29457 $ac_includes_default
29458    typedef size_t ac__type_sizeof_;
29459 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
29460 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
29461 @%:@include <stdio.h>
29462 @%:@include <stdlib.h>
29463 int
29464 main ()
29465 {
29466
29467   FILE *f = fopen ("conftest.val", "w");
29468   if (! f)
29469     return 1;
29470   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
29471     {
29472       long int i = longval ();
29473       if (i != ((long int) (sizeof (ac__type_sizeof_))))
29474         return 1;
29475       fprintf (f, "%ld\n", i);
29476     }
29477   else
29478     {
29479       unsigned long int i = ulongval ();
29480       if (i != ((long int) (sizeof (ac__type_sizeof_))))
29481         return 1;
29482       fprintf (f, "%lu\n", i);
29483     }
29484   return ferror (f) || fclose (f) != 0;
29485
29486   ;
29487   return 0;
29488 }
29489 _ACEOF
29490 rm -f conftest$ac_exeext
29491 if { (ac_try="$ac_link"
29492 case "(($ac_try" in
29493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29494   *) ac_try_echo=$ac_try;;
29495 esac
29496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29497   (eval "$ac_link") 2>&5
29498   ac_status=$?
29499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29500   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29501   { (case "(($ac_try" in
29502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29503   *) ac_try_echo=$ac_try;;
29504 esac
29505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29506   (eval "$ac_try") 2>&5
29507   ac_status=$?
29508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29509   (exit $ac_status); }; }; then
29510   ac_cv_sizeof_size_t=`cat conftest.val`
29511 else
29512   echo "$as_me: program exited with status $ac_status" >&5
29513 echo "$as_me: failed program was:" >&5
29514 sed 's/^/| /' conftest.$ac_ext >&5
29515
29516 ( exit $ac_status )
29517 if test "$ac_cv_type_size_t" = yes; then
29518      { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
29519 See \`config.log' for more details." >&5
29520 echo "$as_me: error: cannot compute sizeof (size_t)
29521 See \`config.log' for more details." >&2;}
29522    { (exit 77); exit 77; }; }
29523    else
29524      ac_cv_sizeof_size_t=0
29525    fi
29526 fi
29527 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29528 fi
29529 rm -f conftest.val
29530 fi
29531 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
29532 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
29533
29534
29535
29536 cat >>confdefs.h <<_ACEOF
29537 @%:@define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
29538 _ACEOF
29539
29540
29541 { echo "$as_me:$LINENO: checking for socklen_t" >&5
29542 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
29543 if test "${ac_cv_type_socklen_t+set}" = set; then
29544   echo $ECHO_N "(cached) $ECHO_C" >&6
29545 else
29546   cat >conftest.$ac_ext <<_ACEOF
29547 /* confdefs.h.  */
29548 _ACEOF
29549 cat confdefs.h >>conftest.$ac_ext
29550 cat >>conftest.$ac_ext <<_ACEOF
29551 /* end confdefs.h.  */
29552 $ac_includes_default
29553 typedef socklen_t ac__type_new_;
29554 int
29555 main ()
29556 {
29557 if ((ac__type_new_ *) 0)
29558   return 0;
29559 if (sizeof (ac__type_new_))
29560   return 0;
29561   ;
29562   return 0;
29563 }
29564 _ACEOF
29565 rm -f conftest.$ac_objext
29566 if { (ac_try="$ac_compile"
29567 case "(($ac_try" in
29568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29569   *) ac_try_echo=$ac_try;;
29570 esac
29571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29572   (eval "$ac_compile") 2>conftest.er1
29573   ac_status=$?
29574   grep -v '^ *+' conftest.er1 >conftest.err
29575   rm -f conftest.er1
29576   cat conftest.err >&5
29577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29578   (exit $ac_status); } && {
29579          test -z "$ac_c_werror_flag" ||
29580          test ! -s conftest.err
29581        } && test -s conftest.$ac_objext; then
29582   ac_cv_type_socklen_t=yes
29583 else
29584   echo "$as_me: failed program was:" >&5
29585 sed 's/^/| /' conftest.$ac_ext >&5
29586
29587         ac_cv_type_socklen_t=no
29588 fi
29589
29590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29591 fi
29592 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
29593 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
29594
29595 # The cast to long int works around a bug in the HP C Compiler
29596 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
29597 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
29598 # This bug is HP SR number 8606223364.
29599 { echo "$as_me:$LINENO: checking size of socklen_t" >&5
29600 echo $ECHO_N "checking size of socklen_t... $ECHO_C" >&6; }
29601 if test "${ac_cv_sizeof_socklen_t+set}" = set; then
29602   echo $ECHO_N "(cached) $ECHO_C" >&6
29603 else
29604   if test "$cross_compiling" = yes; then
29605   # Depending upon the size, compute the lo and hi bounds.
29606 cat >conftest.$ac_ext <<_ACEOF
29607 /* confdefs.h.  */
29608 _ACEOF
29609 cat confdefs.h >>conftest.$ac_ext
29610 cat >>conftest.$ac_ext <<_ACEOF
29611 /* end confdefs.h.  */
29612 $ac_includes_default
29613    typedef socklen_t ac__type_sizeof_;
29614 int
29615 main ()
29616 {
29617 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
29618 test_array @<:@0@:>@ = 0
29619
29620   ;
29621   return 0;
29622 }
29623 _ACEOF
29624 rm -f conftest.$ac_objext
29625 if { (ac_try="$ac_compile"
29626 case "(($ac_try" in
29627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29628   *) ac_try_echo=$ac_try;;
29629 esac
29630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29631   (eval "$ac_compile") 2>conftest.er1
29632   ac_status=$?
29633   grep -v '^ *+' conftest.er1 >conftest.err
29634   rm -f conftest.er1
29635   cat conftest.err >&5
29636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29637   (exit $ac_status); } && {
29638          test -z "$ac_c_werror_flag" ||
29639          test ! -s conftest.err
29640        } && test -s conftest.$ac_objext; then
29641   ac_lo=0 ac_mid=0
29642   while :; do
29643     cat >conftest.$ac_ext <<_ACEOF
29644 /* confdefs.h.  */
29645 _ACEOF
29646 cat confdefs.h >>conftest.$ac_ext
29647 cat >>conftest.$ac_ext <<_ACEOF
29648 /* end confdefs.h.  */
29649 $ac_includes_default
29650    typedef socklen_t ac__type_sizeof_;
29651 int
29652 main ()
29653 {
29654 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
29655 test_array @<:@0@:>@ = 0
29656
29657   ;
29658   return 0;
29659 }
29660 _ACEOF
29661 rm -f conftest.$ac_objext
29662 if { (ac_try="$ac_compile"
29663 case "(($ac_try" in
29664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29665   *) ac_try_echo=$ac_try;;
29666 esac
29667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29668   (eval "$ac_compile") 2>conftest.er1
29669   ac_status=$?
29670   grep -v '^ *+' conftest.er1 >conftest.err
29671   rm -f conftest.er1
29672   cat conftest.err >&5
29673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29674   (exit $ac_status); } && {
29675          test -z "$ac_c_werror_flag" ||
29676          test ! -s conftest.err
29677        } && test -s conftest.$ac_objext; then
29678   ac_hi=$ac_mid; break
29679 else
29680   echo "$as_me: failed program was:" >&5
29681 sed 's/^/| /' conftest.$ac_ext >&5
29682
29683         ac_lo=`expr $ac_mid + 1`
29684                         if test $ac_lo -le $ac_mid; then
29685                           ac_lo= ac_hi=
29686                           break
29687                         fi
29688                         ac_mid=`expr 2 '*' $ac_mid + 1`
29689 fi
29690
29691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29692   done
29693 else
29694   echo "$as_me: failed program was:" >&5
29695 sed 's/^/| /' conftest.$ac_ext >&5
29696
29697         cat >conftest.$ac_ext <<_ACEOF
29698 /* confdefs.h.  */
29699 _ACEOF
29700 cat confdefs.h >>conftest.$ac_ext
29701 cat >>conftest.$ac_ext <<_ACEOF
29702 /* end confdefs.h.  */
29703 $ac_includes_default
29704    typedef socklen_t ac__type_sizeof_;
29705 int
29706 main ()
29707 {
29708 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
29709 test_array @<:@0@:>@ = 0
29710
29711   ;
29712   return 0;
29713 }
29714 _ACEOF
29715 rm -f conftest.$ac_objext
29716 if { (ac_try="$ac_compile"
29717 case "(($ac_try" in
29718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29719   *) ac_try_echo=$ac_try;;
29720 esac
29721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29722   (eval "$ac_compile") 2>conftest.er1
29723   ac_status=$?
29724   grep -v '^ *+' conftest.er1 >conftest.err
29725   rm -f conftest.er1
29726   cat conftest.err >&5
29727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29728   (exit $ac_status); } && {
29729          test -z "$ac_c_werror_flag" ||
29730          test ! -s conftest.err
29731        } && test -s conftest.$ac_objext; then
29732   ac_hi=-1 ac_mid=-1
29733   while :; do
29734     cat >conftest.$ac_ext <<_ACEOF
29735 /* confdefs.h.  */
29736 _ACEOF
29737 cat confdefs.h >>conftest.$ac_ext
29738 cat >>conftest.$ac_ext <<_ACEOF
29739 /* end confdefs.h.  */
29740 $ac_includes_default
29741    typedef socklen_t ac__type_sizeof_;
29742 int
29743 main ()
29744 {
29745 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
29746 test_array @<:@0@:>@ = 0
29747
29748   ;
29749   return 0;
29750 }
29751 _ACEOF
29752 rm -f conftest.$ac_objext
29753 if { (ac_try="$ac_compile"
29754 case "(($ac_try" in
29755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29756   *) ac_try_echo=$ac_try;;
29757 esac
29758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29759   (eval "$ac_compile") 2>conftest.er1
29760   ac_status=$?
29761   grep -v '^ *+' conftest.er1 >conftest.err
29762   rm -f conftest.er1
29763   cat conftest.err >&5
29764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29765   (exit $ac_status); } && {
29766          test -z "$ac_c_werror_flag" ||
29767          test ! -s conftest.err
29768        } && test -s conftest.$ac_objext; then
29769   ac_lo=$ac_mid; break
29770 else
29771   echo "$as_me: failed program was:" >&5
29772 sed 's/^/| /' conftest.$ac_ext >&5
29773
29774         ac_hi=`expr '(' $ac_mid ')' - 1`
29775                         if test $ac_mid -le $ac_hi; then
29776                           ac_lo= ac_hi=
29777                           break
29778                         fi
29779                         ac_mid=`expr 2 '*' $ac_mid`
29780 fi
29781
29782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29783   done
29784 else
29785   echo "$as_me: failed program was:" >&5
29786 sed 's/^/| /' conftest.$ac_ext >&5
29787
29788         ac_lo= ac_hi=
29789 fi
29790
29791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29792 fi
29793
29794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29795 # Binary search between lo and hi bounds.
29796 while test "x$ac_lo" != "x$ac_hi"; do
29797   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
29798   cat >conftest.$ac_ext <<_ACEOF
29799 /* confdefs.h.  */
29800 _ACEOF
29801 cat confdefs.h >>conftest.$ac_ext
29802 cat >>conftest.$ac_ext <<_ACEOF
29803 /* end confdefs.h.  */
29804 $ac_includes_default
29805    typedef socklen_t ac__type_sizeof_;
29806 int
29807 main ()
29808 {
29809 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
29810 test_array @<:@0@:>@ = 0
29811
29812   ;
29813   return 0;
29814 }
29815 _ACEOF
29816 rm -f conftest.$ac_objext
29817 if { (ac_try="$ac_compile"
29818 case "(($ac_try" in
29819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29820   *) ac_try_echo=$ac_try;;
29821 esac
29822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29823   (eval "$ac_compile") 2>conftest.er1
29824   ac_status=$?
29825   grep -v '^ *+' conftest.er1 >conftest.err
29826   rm -f conftest.er1
29827   cat conftest.err >&5
29828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29829   (exit $ac_status); } && {
29830          test -z "$ac_c_werror_flag" ||
29831          test ! -s conftest.err
29832        } && test -s conftest.$ac_objext; then
29833   ac_hi=$ac_mid
29834 else
29835   echo "$as_me: failed program was:" >&5
29836 sed 's/^/| /' conftest.$ac_ext >&5
29837
29838         ac_lo=`expr '(' $ac_mid ')' + 1`
29839 fi
29840
29841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29842 done
29843 case $ac_lo in
29844 ?*) ac_cv_sizeof_socklen_t=$ac_lo;;
29845 '') if test "$ac_cv_type_socklen_t" = yes; then
29846      { { echo "$as_me:$LINENO: error: cannot compute sizeof (socklen_t)
29847 See \`config.log' for more details." >&5
29848 echo "$as_me: error: cannot compute sizeof (socklen_t)
29849 See \`config.log' for more details." >&2;}
29850    { (exit 77); exit 77; }; }
29851    else
29852      ac_cv_sizeof_socklen_t=0
29853    fi ;;
29854 esac
29855 else
29856   cat >conftest.$ac_ext <<_ACEOF
29857 /* confdefs.h.  */
29858 _ACEOF
29859 cat confdefs.h >>conftest.$ac_ext
29860 cat >>conftest.$ac_ext <<_ACEOF
29861 /* end confdefs.h.  */
29862 $ac_includes_default
29863    typedef socklen_t ac__type_sizeof_;
29864 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
29865 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
29866 @%:@include <stdio.h>
29867 @%:@include <stdlib.h>
29868 int
29869 main ()
29870 {
29871
29872   FILE *f = fopen ("conftest.val", "w");
29873   if (! f)
29874     return 1;
29875   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
29876     {
29877       long int i = longval ();
29878       if (i != ((long int) (sizeof (ac__type_sizeof_))))
29879         return 1;
29880       fprintf (f, "%ld\n", i);
29881     }
29882   else
29883     {
29884       unsigned long int i = ulongval ();
29885       if (i != ((long int) (sizeof (ac__type_sizeof_))))
29886         return 1;
29887       fprintf (f, "%lu\n", i);
29888     }
29889   return ferror (f) || fclose (f) != 0;
29890
29891   ;
29892   return 0;
29893 }
29894 _ACEOF
29895 rm -f conftest$ac_exeext
29896 if { (ac_try="$ac_link"
29897 case "(($ac_try" in
29898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29899   *) ac_try_echo=$ac_try;;
29900 esac
29901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29902   (eval "$ac_link") 2>&5
29903   ac_status=$?
29904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29905   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29906   { (case "(($ac_try" in
29907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29908   *) ac_try_echo=$ac_try;;
29909 esac
29910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29911   (eval "$ac_try") 2>&5
29912   ac_status=$?
29913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29914   (exit $ac_status); }; }; then
29915   ac_cv_sizeof_socklen_t=`cat conftest.val`
29916 else
29917   echo "$as_me: program exited with status $ac_status" >&5
29918 echo "$as_me: failed program was:" >&5
29919 sed 's/^/| /' conftest.$ac_ext >&5
29920
29921 ( exit $ac_status )
29922 if test "$ac_cv_type_socklen_t" = yes; then
29923      { { echo "$as_me:$LINENO: error: cannot compute sizeof (socklen_t)
29924 See \`config.log' for more details." >&5
29925 echo "$as_me: error: cannot compute sizeof (socklen_t)
29926 See \`config.log' for more details." >&2;}
29927    { (exit 77); exit 77; }; }
29928    else
29929      ac_cv_sizeof_socklen_t=0
29930    fi
29931 fi
29932 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29933 fi
29934 rm -f conftest.val
29935 fi
29936 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_socklen_t" >&5
29937 echo "${ECHO_T}$ac_cv_sizeof_socklen_t" >&6; }
29938
29939
29940
29941 cat >>confdefs.h <<_ACEOF
29942 @%:@define SIZEOF_SOCKLEN_T $ac_cv_sizeof_socklen_t
29943 _ACEOF
29944
29945
29946
29947
29948
29949 cat >>confdefs.h <<_ACEOF
29950 @%:@define NFS_STATEDIR "$statedir"
29951 _ACEOF
29952
29953
29954 if test "x$cross_compiling" = "xno"; then
29955         CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-"$CFLAGS"}
29956         CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-"$CXXFLAGS"}
29957         CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-"$CPPFLAGS"}
29958         LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-"$LDFLAGS"}
29959 else
29960         CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-""}
29961         CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-""}
29962         CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-""}
29963         LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-""}
29964 fi
29965
29966
29967
29968
29969
29970
29971
29972
29973
29974
29975
29976 case $host in
29977   alpha*)
29978     ARCHFLAGS="-mno-fp-regs -ffixed-8" ;;
29979   *)
29980     ARCHFLAGS="" ;;
29981 esac
29982
29983 my_am_cflags="-Wall -Wstrict-prototypes $ARCHFLAGS -pipe"
29984
29985 AM_CPPFLAGS="-I\${top_srcdir}/support/include"
29986
29987 AM_CFLAGS="$my_am_cflags"
29988
29989
29990 # Make sure that $ACLOCAL_FLAGS are used during a rebuild
29991 ACLOCAL_AMFLAGS="-I $ac_macro_dir \$(ACLOCAL_FLAGS)"
29992
29993
29994 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/locktest/Makefile tools/nlmtest/Makefile tools/rpcdebug/Makefile tools/rpcgen/Makefile utils/Makefile utils/exportfs/Makefile utils/gssd/Makefile utils/idmapd/Makefile utils/mount/Makefile utils/mountd/Makefile utils/nfsd/Makefile utils/nfsstat/Makefile utils/showmount/Makefile utils/statd/Makefile"
29995
29996 cat >confcache <<\_ACEOF
29997 # This file is a shell script that caches the results of configure
29998 # tests run on this system so they can be shared between configure
29999 # scripts and configure runs, see configure's option --config-cache.
30000 # It is not useful on other systems.  If it contains results you don't
30001 # want to keep, you may remove or edit it.
30002 #
30003 # config.status only pays attention to the cache file if you give it
30004 # the --recheck option to rerun configure.
30005 #
30006 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30007 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30008 # following values.
30009
30010 _ACEOF
30011
30012 # The following way of writing the cache mishandles newlines in values,
30013 # but we know of no workaround that is simple, portable, and efficient.
30014 # So, we kill variables containing newlines.
30015 # Ultrix sh set writes to stderr and can't be redirected directly,
30016 # and sets the high bit in the cache file unless we assign to the vars.
30017 (
30018   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30019     eval ac_val=\$$ac_var
30020     case $ac_val in #(
30021     *${as_nl}*)
30022       case $ac_var in #(
30023       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
30024 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
30025       esac
30026       case $ac_var in #(
30027       _ | IFS | as_nl) ;; #(
30028       *) $as_unset $ac_var ;;
30029       esac ;;
30030     esac
30031   done
30032
30033   (set) 2>&1 |
30034     case $as_nl`(ac_space=' '; set) 2>&1` in #(
30035     *${as_nl}ac_space=\ *)
30036       # `set' does not quote correctly, so add quotes (double-quote
30037       # substitution turns \\\\ into \\, and sed turns \\ into \).
30038       sed -n \
30039         "s/'/'\\\\''/g;
30040           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30041       ;; #(
30042     *)
30043       # `set' quotes correctly as required by POSIX, so do not add quotes.
30044       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30045       ;;
30046     esac |
30047     sort
30048 ) |
30049   sed '
30050      /^ac_cv_env_/b end
30051      t clear
30052      :clear
30053      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30054      t end
30055      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30056      :end' >>confcache
30057 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30058   if test -w "$cache_file"; then
30059     test "x$cache_file" != "x/dev/null" &&
30060       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
30061 echo "$as_me: updating cache $cache_file" >&6;}
30062     cat confcache >$cache_file
30063   else
30064     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
30065 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30066   fi
30067 fi
30068 rm -f confcache
30069
30070 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30071 # Let make expand exec_prefix.
30072 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30073
30074 DEFS=-DHAVE_CONFIG_H
30075
30076 ac_libobjs=
30077 ac_ltlibobjs=
30078 for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
30079   # 1. Remove the extension, and $U if already installed.
30080   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30081   ac_i=`echo "$ac_i" | sed "$ac_script"`
30082   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
30083   #    will be set to the directory where LIBOBJS objects are built.
30084   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30085   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
30086 done
30087 LIB@&t@OBJS=$ac_libobjs
30088
30089 LTLIBOBJS=$ac_ltlibobjs
30090
30091
30092 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
30093   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
30094 Usually this means the macro was only invoked conditionally." >&5
30095 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
30096 Usually this means the macro was only invoked conditionally." >&2;}
30097    { (exit 1); exit 1; }; }
30098 fi
30099 if test -z "${CONFIG_NFSV4_TRUE}" && test -z "${CONFIG_NFSV4_FALSE}"; then
30100   { { echo "$as_me:$LINENO: error: conditional \"CONFIG_NFSV4\" was never defined.
30101 Usually this means the macro was only invoked conditionally." >&5
30102 echo "$as_me: error: conditional \"CONFIG_NFSV4\" was never defined.
30103 Usually this means the macro was only invoked conditionally." >&2;}
30104    { (exit 1); exit 1; }; }
30105 fi
30106 if test -z "${CONFIG_GSS_TRUE}" && test -z "${CONFIG_GSS_FALSE}"; then
30107   { { echo "$as_me:$LINENO: error: conditional \"CONFIG_GSS\" was never defined.
30108 Usually this means the macro was only invoked conditionally." >&5
30109 echo "$as_me: error: conditional \"CONFIG_GSS\" was never defined.
30110 Usually this means the macro was only invoked conditionally." >&2;}
30111    { (exit 1); exit 1; }; }
30112 fi
30113 if test -z "${CONFIG_RPCGEN_TRUE}" && test -z "${CONFIG_RPCGEN_FALSE}"; then
30114   { { echo "$as_me:$LINENO: error: conditional \"CONFIG_RPCGEN\" was never defined.
30115 Usually this means the macro was only invoked conditionally." >&5
30116 echo "$as_me: error: conditional \"CONFIG_RPCGEN\" was never defined.
30117 Usually this means the macro was only invoked conditionally." >&2;}
30118    { (exit 1); exit 1; }; }
30119 fi
30120 if test -z "${CONFIG_MOUNT_TRUE}" && test -z "${CONFIG_MOUNT_FALSE}"; then
30121   { { echo "$as_me:$LINENO: error: conditional \"CONFIG_MOUNT\" was never defined.
30122 Usually this means the macro was only invoked conditionally." >&5
30123 echo "$as_me: error: conditional \"CONFIG_MOUNT\" was never defined.
30124 Usually this means the macro was only invoked conditionally." >&2;}
30125    { (exit 1); exit 1; }; }
30126 fi
30127 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
30128   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
30129 Usually this means the macro was only invoked conditionally." >&5
30130 echo "$as_me: error: conditional \"AMDEP\" was never defined.
30131 Usually this means the macro was only invoked conditionally." >&2;}
30132    { (exit 1); exit 1; }; }
30133 fi
30134 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
30135   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
30136 Usually this means the macro was only invoked conditionally." >&5
30137 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
30138 Usually this means the macro was only invoked conditionally." >&2;}
30139    { (exit 1); exit 1; }; }
30140 fi
30141 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
30142   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
30143 Usually this means the macro was only invoked conditionally." >&5
30144 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
30145 Usually this means the macro was only invoked conditionally." >&2;}
30146    { (exit 1); exit 1; }; }
30147 fi
30148 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
30149   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
30150 Usually this means the macro was only invoked conditionally." >&5
30151 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
30152 Usually this means the macro was only invoked conditionally." >&2;}
30153    { (exit 1); exit 1; }; }
30154 fi
30155
30156 : ${CONFIG_STATUS=./config.status}
30157 ac_clean_files_save=$ac_clean_files
30158 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30159 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30160 echo "$as_me: creating $CONFIG_STATUS" >&6;}
30161 cat >$CONFIG_STATUS <<_ACEOF
30162 #! $SHELL
30163 # Generated by $as_me.
30164 # Run this file to recreate the current configuration.
30165 # Compiler output produced by configure, useful for debugging
30166 # configure, is in config.log if it exists.
30167
30168 debug=false
30169 ac_cs_recheck=false
30170 ac_cs_silent=false
30171 SHELL=\${CONFIG_SHELL-$SHELL}
30172 _ACEOF
30173
30174 cat >>$CONFIG_STATUS <<\_ACEOF
30175 ## --------------------- ##
30176 ## M4sh Initialization.  ##
30177 ## --------------------- ##
30178
30179 # Be more Bourne compatible
30180 DUALCASE=1; export DUALCASE # for MKS sh
30181 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30182   emulate sh
30183   NULLCMD=:
30184   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30185   # is contrary to our usage.  Disable this feature.
30186   alias -g '${1+"$@"}'='"$@"'
30187   setopt NO_GLOB_SUBST
30188 else
30189   case `(set -o) 2>/dev/null` in
30190   *posix*) set -o posix ;;
30191 esac
30192
30193 fi
30194
30195
30196
30197
30198 # PATH needs CR
30199 # Avoid depending upon Character Ranges.
30200 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30201 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30202 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30203 as_cr_digits='0123456789'
30204 as_cr_alnum=$as_cr_Letters$as_cr_digits
30205
30206 # The user is always right.
30207 if test "${PATH_SEPARATOR+set}" != set; then
30208   echo "#! /bin/sh" >conf$$.sh
30209   echo  "exit 0"   >>conf$$.sh
30210   chmod +x conf$$.sh
30211   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
30212     PATH_SEPARATOR=';'
30213   else
30214     PATH_SEPARATOR=:
30215   fi
30216   rm -f conf$$.sh
30217 fi
30218
30219 # Support unset when possible.
30220 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30221   as_unset=unset
30222 else
30223   as_unset=false
30224 fi
30225
30226
30227 # IFS
30228 # We need space, tab and new line, in precisely that order.  Quoting is
30229 # there to prevent editors from complaining about space-tab.
30230 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30231 # splitting by setting IFS to empty value.)
30232 as_nl='
30233 '
30234 IFS=" ""        $as_nl"
30235
30236 # Find who we are.  Look in the path if we contain no directory separator.
30237 case $0 in
30238   *[\\/]* ) as_myself=$0 ;;
30239   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30240 for as_dir in $PATH
30241 do
30242   IFS=$as_save_IFS
30243   test -z "$as_dir" && as_dir=.
30244   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30245 done
30246 IFS=$as_save_IFS
30247
30248      ;;
30249 esac
30250 # We did not find ourselves, most probably we were run as `sh COMMAND'
30251 # in which case we are not to be found in the path.
30252 if test "x$as_myself" = x; then
30253   as_myself=$0
30254 fi
30255 if test ! -f "$as_myself"; then
30256   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30257   { (exit 1); exit 1; }
30258 fi
30259
30260 # Work around bugs in pre-3.0 UWIN ksh.
30261 for as_var in ENV MAIL MAILPATH
30262 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30263 done
30264 PS1='$ '
30265 PS2='> '
30266 PS4='+ '
30267
30268 # NLS nuisances.
30269 for as_var in \
30270   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30271   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30272   LC_TELEPHONE LC_TIME
30273 do
30274   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
30275     eval $as_var=C; export $as_var
30276   else
30277     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30278   fi
30279 done
30280
30281 # Required to use basename.
30282 if expr a : '\(a\)' >/dev/null 2>&1 &&
30283    test "X`expr 00001 : '.*\(...\)'`" = X001; then
30284   as_expr=expr
30285 else
30286   as_expr=false
30287 fi
30288
30289 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30290   as_basename=basename
30291 else
30292   as_basename=false
30293 fi
30294
30295
30296 # Name of the executable.
30297 as_me=`$as_basename -- "$0" ||
30298 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30299          X"$0" : 'X\(//\)$' \| \
30300          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30301 echo X/"$0" |
30302     sed '/^.*\/\([^/][^/]*\)\/*$/{
30303             s//\1/
30304             q
30305           }
30306           /^X\/\(\/\/\)$/{
30307             s//\1/
30308             q
30309           }
30310           /^X\/\(\/\).*/{
30311             s//\1/
30312             q
30313           }
30314           s/.*/./; q'`
30315
30316 # CDPATH.
30317 $as_unset CDPATH
30318
30319
30320
30321   as_lineno_1=$LINENO
30322   as_lineno_2=$LINENO
30323   test "x$as_lineno_1" != "x$as_lineno_2" &&
30324   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
30325
30326   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30327   # uniformly replaced by the line number.  The first 'sed' inserts a
30328   # line-number line after each line using $LINENO; the second 'sed'
30329   # does the real work.  The second script uses 'N' to pair each
30330   # line-number line with the line containing $LINENO, and appends
30331   # trailing '-' during substitution so that $LINENO is not a special
30332   # case at line end.
30333   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30334   # scripts with optimization help from Paolo Bonzini.  Blame Lee
30335   # E. McMahon (1931-1989) for sed's syntax.  :-)
30336   sed -n '
30337     p
30338     /[$]LINENO/=
30339   ' <$as_myself |
30340     sed '
30341       s/[$]LINENO.*/&-/
30342       t lineno
30343       b
30344       :lineno
30345       N
30346       :loop
30347       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
30348       t loop
30349       s/-\n.*//
30350     ' >$as_me.lineno &&
30351   chmod +x "$as_me.lineno" ||
30352     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
30353    { (exit 1); exit 1; }; }
30354
30355   # Don't try to exec as it changes $[0], causing all sort of problems
30356   # (the dirname of $[0] is not the place where we might find the
30357   # original and so on.  Autoconf is especially sensitive to this).
30358   . "./$as_me.lineno"
30359   # Exit status is that of the last command.
30360   exit
30361 }
30362
30363
30364 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30365   as_dirname=dirname
30366 else
30367   as_dirname=false
30368 fi
30369
30370 ECHO_C= ECHO_N= ECHO_T=
30371 case `echo -n x` in
30372 -n*)
30373   case `echo 'x\c'` in
30374   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
30375   *)   ECHO_C='\c';;
30376   esac;;
30377 *)
30378   ECHO_N='-n';;
30379 esac
30380
30381 if expr a : '\(a\)' >/dev/null 2>&1 &&
30382    test "X`expr 00001 : '.*\(...\)'`" = X001; then
30383   as_expr=expr
30384 else
30385   as_expr=false
30386 fi
30387
30388 rm -f conf$$ conf$$.exe conf$$.file
30389 if test -d conf$$.dir; then
30390   rm -f conf$$.dir/conf$$.file
30391 else
30392   rm -f conf$$.dir
30393   mkdir conf$$.dir
30394 fi
30395 echo >conf$$.file
30396 if ln -s conf$$.file conf$$ 2>/dev/null; then
30397   as_ln_s='ln -s'
30398   # ... but there are two gotchas:
30399   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30400   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30401   # In both cases, we have to default to `cp -p'.
30402   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30403     as_ln_s='cp -p'
30404 elif ln conf$$.file conf$$ 2>/dev/null; then
30405   as_ln_s=ln
30406 else
30407   as_ln_s='cp -p'
30408 fi
30409 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30410 rmdir conf$$.dir 2>/dev/null
30411
30412 if mkdir -p . 2>/dev/null; then
30413   as_mkdir_p=:
30414 else
30415   test -d ./-p && rmdir ./-p
30416   as_mkdir_p=false
30417 fi
30418
30419 if test -x / >/dev/null 2>&1; then
30420   as_test_x='test -x'
30421 else
30422   if ls -dL / >/dev/null 2>&1; then
30423     as_ls_L_option=L
30424   else
30425     as_ls_L_option=
30426   fi
30427   as_test_x='
30428     eval sh -c '\''
30429       if test -d "$1"; then
30430         test -d "$1/.";
30431       else
30432         case $1 in
30433         -*)set "./$1";;
30434         esac;
30435         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
30436         ???[sx]*):;;*)false;;esac;fi
30437     '\'' sh
30438   '
30439 fi
30440 as_executable_p=$as_test_x
30441
30442 # Sed expression to map a string onto a valid CPP name.
30443 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30444
30445 # Sed expression to map a string onto a valid variable name.
30446 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30447
30448
30449 exec 6>&1
30450
30451 # Save the log message, to keep $[0] and so on meaningful, and to
30452 # report actual input values of CONFIG_FILES etc. instead of their
30453 # values after options handling.
30454 ac_log="
30455 This file was extended by linux nfs-utils $as_me 1.1.0, which was
30456 generated by GNU Autoconf 2.61.  Invocation command line was
30457
30458   CONFIG_FILES    = $CONFIG_FILES
30459   CONFIG_HEADERS  = $CONFIG_HEADERS
30460   CONFIG_LINKS    = $CONFIG_LINKS
30461   CONFIG_COMMANDS = $CONFIG_COMMANDS
30462   $ $0 $@
30463
30464 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30465 "
30466
30467 _ACEOF
30468
30469 cat >>$CONFIG_STATUS <<_ACEOF
30470 # Files that config.status was made for.
30471 config_files="$ac_config_files"
30472 config_headers="$ac_config_headers"
30473 config_commands="$ac_config_commands"
30474
30475 _ACEOF
30476
30477 cat >>$CONFIG_STATUS <<\_ACEOF
30478 ac_cs_usage="\
30479 \`$as_me' instantiates files from templates according to the
30480 current configuration.
30481
30482 Usage: $0 [OPTIONS] [FILE]...
30483
30484   -h, --help       print this help, then exit
30485   -V, --version    print version number and configuration settings, then exit
30486   -q, --quiet      do not print progress messages
30487   -d, --debug      don't remove temporary files
30488       --recheck    update $as_me by reconfiguring in the same conditions
30489   --file=FILE[:TEMPLATE]
30490                    instantiate the configuration file FILE
30491   --header=FILE[:TEMPLATE]
30492                    instantiate the configuration header FILE
30493
30494 Configuration files:
30495 $config_files
30496
30497 Configuration headers:
30498 $config_headers
30499
30500 Configuration commands:
30501 $config_commands
30502
30503 Report bugs to <bug-autoconf@gnu.org>."
30504
30505 _ACEOF
30506 cat >>$CONFIG_STATUS <<_ACEOF
30507 ac_cs_version="\\
30508 linux nfs-utils config.status 1.1.0
30509 configured by $0, generated by GNU Autoconf 2.61,
30510   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
30511
30512 Copyright (C) 2006 Free Software Foundation, Inc.
30513 This config.status script is free software; the Free Software Foundation
30514 gives unlimited permission to copy, distribute and modify it."
30515
30516 ac_pwd='$ac_pwd'
30517 srcdir='$srcdir'
30518 INSTALL='$INSTALL'
30519 _ACEOF
30520
30521 cat >>$CONFIG_STATUS <<\_ACEOF
30522 # If no file are specified by the user, then we need to provide default
30523 # value.  By we need to know if files were specified by the user.
30524 ac_need_defaults=:
30525 while test $# != 0
30526 do
30527   case $1 in
30528   --*=*)
30529     ac_option=`expr "X$1" : 'X\([^=]*\)='`
30530     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30531     ac_shift=:
30532     ;;
30533   *)
30534     ac_option=$1
30535     ac_optarg=$2
30536     ac_shift=shift
30537     ;;
30538   esac
30539
30540   case $ac_option in
30541   # Handling of the options.
30542   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30543     ac_cs_recheck=: ;;
30544   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30545     echo "$ac_cs_version"; exit ;;
30546   --debug | --debu | --deb | --de | --d | -d )
30547     debug=: ;;
30548   --file | --fil | --fi | --f )
30549     $ac_shift
30550     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
30551     ac_need_defaults=false;;
30552   --header | --heade | --head | --hea )
30553     $ac_shift
30554     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
30555     ac_need_defaults=false;;
30556   --he | --h)
30557     # Conflict between --help and --header
30558     { echo "$as_me: error: ambiguous option: $1
30559 Try \`$0 --help' for more information." >&2
30560    { (exit 1); exit 1; }; };;
30561   --help | --hel | -h )
30562     echo "$ac_cs_usage"; exit ;;
30563   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30564   | -silent | --silent | --silen | --sile | --sil | --si | --s)
30565     ac_cs_silent=: ;;
30566
30567   # This is an error.
30568   -*) { echo "$as_me: error: unrecognized option: $1
30569 Try \`$0 --help' for more information." >&2
30570    { (exit 1); exit 1; }; } ;;
30571
30572   *) ac_config_targets="$ac_config_targets $1"
30573      ac_need_defaults=false ;;
30574
30575   esac
30576   shift
30577 done
30578
30579 ac_configure_extra_args=
30580
30581 if $ac_cs_silent; then
30582   exec 6>/dev/null
30583   ac_configure_extra_args="$ac_configure_extra_args --silent"
30584 fi
30585
30586 _ACEOF
30587 cat >>$CONFIG_STATUS <<_ACEOF
30588 if \$ac_cs_recheck; then
30589   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30590   CONFIG_SHELL=$SHELL
30591   export CONFIG_SHELL
30592   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30593 fi
30594
30595 _ACEOF
30596 cat >>$CONFIG_STATUS <<\_ACEOF
30597 exec 5>>config.log
30598 {
30599   echo
30600   sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
30601 @%:@@%:@ Running $as_me. @%:@@%:@
30602 _ASBOX
30603   echo "$ac_log"
30604 } >&5
30605
30606 _ACEOF
30607 cat >>$CONFIG_STATUS <<_ACEOF
30608 #
30609 # INIT-COMMANDS
30610 #
30611 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
30612
30613 _ACEOF
30614
30615 cat >>$CONFIG_STATUS <<\_ACEOF
30616
30617 # Handling of arguments.
30618 for ac_config_target in $ac_config_targets
30619 do
30620   case $ac_config_target in
30621     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
30622     "support/include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS support/include/config.h" ;;
30623     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
30624     "linux-nfs/Makefile") CONFIG_FILES="$CONFIG_FILES linux-nfs/Makefile" ;;
30625     "support/Makefile") CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
30626     "support/export/Makefile") CONFIG_FILES="$CONFIG_FILES support/export/Makefile" ;;
30627     "support/include/nfs/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/nfs/Makefile" ;;
30628     "support/include/rpcsvc/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/rpcsvc/Makefile" ;;
30629     "support/include/sys/fs/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/sys/fs/Makefile" ;;
30630     "support/include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/sys/Makefile" ;;
30631     "support/include/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/Makefile" ;;
30632     "support/misc/Makefile") CONFIG_FILES="$CONFIG_FILES support/misc/Makefile" ;;
30633     "support/nfs/Makefile") CONFIG_FILES="$CONFIG_FILES support/nfs/Makefile" ;;
30634     "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
30635     "tools/locktest/Makefile") CONFIG_FILES="$CONFIG_FILES tools/locktest/Makefile" ;;
30636     "tools/nlmtest/Makefile") CONFIG_FILES="$CONFIG_FILES tools/nlmtest/Makefile" ;;
30637     "tools/rpcdebug/Makefile") CONFIG_FILES="$CONFIG_FILES tools/rpcdebug/Makefile" ;;
30638     "tools/rpcgen/Makefile") CONFIG_FILES="$CONFIG_FILES tools/rpcgen/Makefile" ;;
30639     "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
30640     "utils/exportfs/Makefile") CONFIG_FILES="$CONFIG_FILES utils/exportfs/Makefile" ;;
30641     "utils/gssd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/gssd/Makefile" ;;
30642     "utils/idmapd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/idmapd/Makefile" ;;
30643     "utils/mount/Makefile") CONFIG_FILES="$CONFIG_FILES utils/mount/Makefile" ;;
30644     "utils/mountd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/mountd/Makefile" ;;
30645     "utils/nfsd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/nfsd/Makefile" ;;
30646     "utils/nfsstat/Makefile") CONFIG_FILES="$CONFIG_FILES utils/nfsstat/Makefile" ;;
30647     "utils/showmount/Makefile") CONFIG_FILES="$CONFIG_FILES utils/showmount/Makefile" ;;
30648     "utils/statd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/statd/Makefile" ;;
30649
30650   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30651 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30652    { (exit 1); exit 1; }; };;
30653   esac
30654 done
30655
30656
30657 # If the user did not use the arguments to specify the items to instantiate,
30658 # then the envvar interface is used.  Set only those that are not.
30659 # We use the long form for the default assignment because of an extremely
30660 # bizarre bug on SunOS 4.1.3.
30661 if $ac_need_defaults; then
30662   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30663   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30664   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30665 fi
30666
30667 # Have a temporary directory for convenience.  Make it in the build tree
30668 # simply because there is no reason against having it here, and in addition,
30669 # creating and moving files from /tmp can sometimes cause problems.
30670 # Hook for its removal unless debugging.
30671 # Note that there is a small window in which the directory will not be cleaned:
30672 # after its creation but before its name has been assigned to `$tmp'.
30673 $debug ||
30674 {
30675   tmp=
30676   trap 'exit_status=$?
30677   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
30678 ' 0
30679   trap '{ (exit 1); exit 1; }' 1 2 13 15
30680 }
30681 # Create a (secure) tmp directory for tmp files.
30682
30683 {
30684   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30685   test -n "$tmp" && test -d "$tmp"
30686 }  ||
30687 {
30688   tmp=./conf$$-$RANDOM
30689   (umask 077 && mkdir "$tmp")
30690 } ||
30691 {
30692    echo "$me: cannot create a temporary directory in ." >&2
30693    { (exit 1); exit 1; }
30694 }
30695
30696 #
30697 # Set up the sed scripts for CONFIG_FILES section.
30698 #
30699
30700 # No need to generate the scripts if there are no CONFIG_FILES.
30701 # This happens for instance when ./config.status config.h
30702 if test -n "$CONFIG_FILES"; then
30703
30704 _ACEOF
30705
30706
30707
30708 ac_delim='%!_!# '
30709 for ac_last_try in false false false false false :; do
30710   cat >conf$$subs.sed <<_ACEOF
30711 SHELL!$SHELL$ac_delim
30712 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
30713 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
30714 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
30715 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
30716 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
30717 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
30718 exec_prefix!$exec_prefix$ac_delim
30719 prefix!$prefix$ac_delim
30720 program_transform_name!$program_transform_name$ac_delim
30721 bindir!$bindir$ac_delim
30722 sbindir!$sbindir$ac_delim
30723 libexecdir!$libexecdir$ac_delim
30724 datarootdir!$datarootdir$ac_delim
30725 datadir!$datadir$ac_delim
30726 sysconfdir!$sysconfdir$ac_delim
30727 sharedstatedir!$sharedstatedir$ac_delim
30728 localstatedir!$localstatedir$ac_delim
30729 includedir!$includedir$ac_delim
30730 oldincludedir!$oldincludedir$ac_delim
30731 docdir!$docdir$ac_delim
30732 infodir!$infodir$ac_delim
30733 htmldir!$htmldir$ac_delim
30734 dvidir!$dvidir$ac_delim
30735 pdfdir!$pdfdir$ac_delim
30736 psdir!$psdir$ac_delim
30737 libdir!$libdir$ac_delim
30738 localedir!$localedir$ac_delim
30739 mandir!$mandir$ac_delim
30740 DEFS!$DEFS$ac_delim
30741 ECHO_C!$ECHO_C$ac_delim
30742 ECHO_N!$ECHO_N$ac_delim
30743 ECHO_T!$ECHO_T$ac_delim
30744 LIBS!$LIBS$ac_delim
30745 build_alias!$build_alias$ac_delim
30746 host_alias!$host_alias$ac_delim
30747 target_alias!$target_alias$ac_delim
30748 build!$build$ac_delim
30749 build_cpu!$build_cpu$ac_delim
30750 build_vendor!$build_vendor$ac_delim
30751 build_os!$build_os$ac_delim
30752 host!$host$ac_delim
30753 host_cpu!$host_cpu$ac_delim
30754 host_vendor!$host_vendor$ac_delim
30755 host_os!$host_os$ac_delim
30756 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
30757 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
30758 INSTALL_DATA!$INSTALL_DATA$ac_delim
30759 CYGPATH_W!$CYGPATH_W$ac_delim
30760 PACKAGE!$PACKAGE$ac_delim
30761 VERSION!$VERSION$ac_delim
30762 ACLOCAL!$ACLOCAL$ac_delim
30763 AUTOCONF!$AUTOCONF$ac_delim
30764 AUTOMAKE!$AUTOMAKE$ac_delim
30765 AUTOHEADER!$AUTOHEADER$ac_delim
30766 MAKEINFO!$MAKEINFO$ac_delim
30767 install_sh!$install_sh$ac_delim
30768 STRIP!$STRIP$ac_delim
30769 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
30770 mkdir_p!$mkdir_p$ac_delim
30771 AWK!$AWK$ac_delim
30772 SET_MAKE!$SET_MAKE$ac_delim
30773 am__leading_dot!$am__leading_dot$ac_delim
30774 AMTAR!$AMTAR$ac_delim
30775 am__tar!$am__tar$ac_delim
30776 am__untar!$am__untar$ac_delim
30777 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
30778 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
30779 MAINT!$MAINT$ac_delim
30780 RELEASE!$RELEASE$ac_delim
30781 statedir!$statedir$ac_delim
30782 statduser!$statduser$ac_delim
30783 startstatd!$startstatd$ac_delim
30784 enable_nfsv3!$enable_nfsv3$ac_delim
30785 IDMAPD!$IDMAPD$ac_delim
30786 enable_nfsv4!$enable_nfsv4$ac_delim
30787 CONFIG_NFSV4_TRUE!$CONFIG_NFSV4_TRUE$ac_delim
30788 CONFIG_NFSV4_FALSE!$CONFIG_NFSV4_FALSE$ac_delim
30789 GSSD!$GSSD$ac_delim
30790 SVCGSSD!$SVCGSSD$ac_delim
30791 enable_gss!$enable_gss$ac_delim
30792 CONFIG_GSS_TRUE!$CONFIG_GSS_TRUE$ac_delim
30793 CONFIG_GSS_FALSE!$CONFIG_GSS_FALSE$ac_delim
30794 kprefix!$kprefix$ac_delim
30795 secure_statd!$secure_statd$ac_delim
30796 RPCGEN_PATH!$RPCGEN_PATH$ac_delim
30797 CONFIG_RPCGEN_TRUE!$CONFIG_RPCGEN_TRUE$ac_delim
30798 CONFIG_RPCGEN_FALSE!$CONFIG_RPCGEN_FALSE$ac_delim
30799 CONFIG_MOUNT_TRUE!$CONFIG_MOUNT_TRUE$ac_delim
30800 CONFIG_MOUNT_FALSE!$CONFIG_MOUNT_FALSE$ac_delim
30801 CC!$CC$ac_delim
30802 CFLAGS!$CFLAGS$ac_delim
30803 LDFLAGS!$LDFLAGS$ac_delim
30804 CPPFLAGS!$CPPFLAGS$ac_delim
30805 ac_ct_CC!$ac_ct_CC$ac_delim
30806 EXEEXT!$EXEEXT$ac_delim
30807 OBJEXT!$OBJEXT$ac_delim
30808 _ACEOF
30809
30810   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
30811     break
30812   elif $ac_last_try; then
30813     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30814 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30815    { (exit 1); exit 1; }; }
30816   else
30817     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30818   fi
30819 done
30820
30821 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
30822 if test -n "$ac_eof"; then
30823   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
30824   ac_eof=`expr $ac_eof + 1`
30825 fi
30826
30827 cat >>$CONFIG_STATUS <<_ACEOF
30828 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
30829 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30830 _ACEOF
30831 sed '
30832 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
30833 s/^/s,@/; s/!/@,|#_!!_#|/
30834 :n
30835 t n
30836 s/'"$ac_delim"'$/,g/; t
30837 s/$/\\/; p
30838 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
30839 ' >>$CONFIG_STATUS <conf$$subs.sed
30840 rm -f conf$$subs.sed
30841 cat >>$CONFIG_STATUS <<_ACEOF
30842 CEOF$ac_eof
30843 _ACEOF
30844
30845
30846 ac_delim='%!_!# '
30847 for ac_last_try in false false false false false :; do
30848   cat >conf$$subs.sed <<_ACEOF
30849 DEPDIR!$DEPDIR$ac_delim
30850 am__include!$am__include$ac_delim
30851 am__quote!$am__quote$ac_delim
30852 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
30853 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
30854 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
30855 CCDEPMODE!$CCDEPMODE$ac_delim
30856 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
30857 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
30858 LIBWRAP!$LIBWRAP$ac_delim
30859 HAVE_LIBWRAP!$HAVE_LIBWRAP$ac_delim
30860 HAVE_TCP_WRAPPER!$HAVE_TCP_WRAPPER$ac_delim
30861 CXX!$CXX$ac_delim
30862 CXXFLAGS!$CXXFLAGS$ac_delim
30863 ac_ct_CXX!$ac_ct_CXX$ac_delim
30864 CXXDEPMODE!$CXXDEPMODE$ac_delim
30865 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
30866 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
30867 CPP!$CPP$ac_delim
30868 LN_S!$LN_S$ac_delim
30869 SED!$SED$ac_delim
30870 GREP!$GREP$ac_delim
30871 EGREP!$EGREP$ac_delim
30872 ECHO!$ECHO$ac_delim
30873 AR!$AR$ac_delim
30874 RANLIB!$RANLIB$ac_delim
30875 CXXCPP!$CXXCPP$ac_delim
30876 F77!$F77$ac_delim
30877 FFLAGS!$FFLAGS$ac_delim
30878 ac_ct_F77!$ac_ct_F77$ac_delim
30879 LIBTOOL!$LIBTOOL$ac_delim
30880 CC_FOR_BUILD!$CC_FOR_BUILD$ac_delim
30881 LD!$LD$ac_delim
30882 LIBNSL!$LIBNSL$ac_delim
30883 PKG_CONFIG!$PKG_CONFIG$ac_delim
30884 RPCSECGSS_CFLAGS!$RPCSECGSS_CFLAGS$ac_delim
30885 RPCSECGSS_LIBS!$RPCSECGSS_LIBS$ac_delim
30886 GSSAPI_CFLAGS!$GSSAPI_CFLAGS$ac_delim
30887 GSSAPI_LIBS!$GSSAPI_LIBS$ac_delim
30888 LIBSOCKET!$LIBSOCKET$ac_delim
30889 LIBCRYPT!$LIBCRYPT$ac_delim
30890 LIBBSD!$LIBBSD$ac_delim
30891 LIBBLKID!$LIBBLKID$ac_delim
30892 KRBDIR!$KRBDIR$ac_delim
30893 KRBLIBS!$KRBLIBS$ac_delim
30894 KRBCFLAGS!$KRBCFLAGS$ac_delim
30895 KRBLDFLAGS!$KRBLDFLAGS$ac_delim
30896 K5VERS!$K5VERS$ac_delim
30897 ALLOCA!$ALLOCA$ac_delim
30898 LIB@&t@OBJS!$LIB@&t@OBJS$ac_delim
30899 CFLAGS_FOR_BUILD!$CFLAGS_FOR_BUILD$ac_delim
30900 CXXFLAGS_FOR_BUILD!$CXXFLAGS_FOR_BUILD$ac_delim
30901 CPPFLAGS_FOR_BUILD!$CPPFLAGS_FOR_BUILD$ac_delim
30902 LDFLAGS_FOR_BUILD!$LDFLAGS_FOR_BUILD$ac_delim
30903 AM_CPPFLAGS!$AM_CPPFLAGS$ac_delim
30904 AM_CFLAGS!$AM_CFLAGS$ac_delim
30905 ACLOCAL_AMFLAGS!$ACLOCAL_AMFLAGS$ac_delim
30906 LTLIBOBJS!$LTLIBOBJS$ac_delim
30907 _ACEOF
30908
30909   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 58; then
30910     break
30911   elif $ac_last_try; then
30912     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30913 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30914    { (exit 1); exit 1; }; }
30915   else
30916     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30917   fi
30918 done
30919
30920 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
30921 if test -n "$ac_eof"; then
30922   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
30923   ac_eof=`expr $ac_eof + 1`
30924 fi
30925
30926 cat >>$CONFIG_STATUS <<_ACEOF
30927 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
30928 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
30929 _ACEOF
30930 sed '
30931 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
30932 s/^/s,@/; s/!/@,|#_!!_#|/
30933 :n
30934 t n
30935 s/'"$ac_delim"'$/,g/; t
30936 s/$/\\/; p
30937 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
30938 ' >>$CONFIG_STATUS <conf$$subs.sed
30939 rm -f conf$$subs.sed
30940 cat >>$CONFIG_STATUS <<_ACEOF
30941 :end
30942 s/|#_!!_#|//g
30943 CEOF$ac_eof
30944 _ACEOF
30945
30946
30947 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30948 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30949 # trailing colons and then remove the whole line if VPATH becomes empty
30950 # (actually we leave an empty line to preserve line numbers).
30951 if test "x$srcdir" = x.; then
30952   ac_vpsub='/^[  ]*VPATH[        ]*=/{
30953 s/:*\$(srcdir):*/:/
30954 s/:*\${srcdir}:*/:/
30955 s/:*@srcdir@:*/:/
30956 s/^\([^=]*=[     ]*\):*/\1/
30957 s/:*$//
30958 s/^[^=]*=[       ]*$//
30959 }'
30960 fi
30961
30962 cat >>$CONFIG_STATUS <<\_ACEOF
30963 fi # test -n "$CONFIG_FILES"
30964
30965
30966 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
30967 do
30968   case $ac_tag in
30969   :[FHLC]) ac_mode=$ac_tag; continue;;
30970   esac
30971   case $ac_mode$ac_tag in
30972   :[FHL]*:*);;
30973   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
30974 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
30975    { (exit 1); exit 1; }; };;
30976   :[FH]-) ac_tag=-:-;;
30977   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
30978   esac
30979   ac_save_IFS=$IFS
30980   IFS=:
30981   set x $ac_tag
30982   IFS=$ac_save_IFS
30983   shift
30984   ac_file=$1
30985   shift
30986
30987   case $ac_mode in
30988   :L) ac_source=$1;;
30989   :[FH])
30990     ac_file_inputs=
30991     for ac_f
30992     do
30993       case $ac_f in
30994       -) ac_f="$tmp/stdin";;
30995       *) # Look for the file first in the build tree, then in the source tree
30996          # (if the path is not absolute).  The absolute path cannot be DOS-style,
30997          # because $ac_f cannot contain `:'.
30998          test -f "$ac_f" ||
30999            case $ac_f in
31000            [\\/$]*) false;;
31001            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
31002            esac ||
31003            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
31004 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
31005    { (exit 1); exit 1; }; };;
31006       esac
31007       ac_file_inputs="$ac_file_inputs $ac_f"
31008     done
31009
31010     # Let's still pretend it is `configure' which instantiates (i.e., don't
31011     # use $as_me), people would be surprised to read:
31012     #    /* config.h.  Generated by config.status.  */
31013     configure_input="Generated from "`IFS=:
31014           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
31015     if test x"$ac_file" != x-; then
31016       configure_input="$ac_file.  $configure_input"
31017       { echo "$as_me:$LINENO: creating $ac_file" >&5
31018 echo "$as_me: creating $ac_file" >&6;}
31019     fi
31020
31021     case $ac_tag in
31022     *:-:* | *:-) cat >"$tmp/stdin";;
31023     esac
31024     ;;
31025   esac
31026
31027   ac_dir=`$as_dirname -- "$ac_file" ||
31028 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31029          X"$ac_file" : 'X\(//\)[^/]' \| \
31030          X"$ac_file" : 'X\(//\)$' \| \
31031          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31032 echo X"$ac_file" |
31033     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31034             s//\1/
31035             q
31036           }
31037           /^X\(\/\/\)[^/].*/{
31038             s//\1/
31039             q
31040           }
31041           /^X\(\/\/\)$/{
31042             s//\1/
31043             q
31044           }
31045           /^X\(\/\).*/{
31046             s//\1/
31047             q
31048           }
31049           s/.*/./; q'`
31050   { as_dir="$ac_dir"
31051   case $as_dir in #(
31052   -*) as_dir=./$as_dir;;
31053   esac
31054   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
31055     as_dirs=
31056     while :; do
31057       case $as_dir in #(
31058       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
31059       *) as_qdir=$as_dir;;
31060       esac
31061       as_dirs="'$as_qdir' $as_dirs"
31062       as_dir=`$as_dirname -- "$as_dir" ||
31063 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31064          X"$as_dir" : 'X\(//\)[^/]' \| \
31065          X"$as_dir" : 'X\(//\)$' \| \
31066          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31067 echo X"$as_dir" |
31068     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31069             s//\1/
31070             q
31071           }
31072           /^X\(\/\/\)[^/].*/{
31073             s//\1/
31074             q
31075           }
31076           /^X\(\/\/\)$/{
31077             s//\1/
31078             q
31079           }
31080           /^X\(\/\).*/{
31081             s//\1/
31082             q
31083           }
31084           s/.*/./; q'`
31085       test -d "$as_dir" && break
31086     done
31087     test -z "$as_dirs" || eval "mkdir $as_dirs"
31088   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
31089 echo "$as_me: error: cannot create directory $as_dir" >&2;}
31090    { (exit 1); exit 1; }; }; }
31091   ac_builddir=.
31092
31093 case "$ac_dir" in
31094 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31095 *)
31096   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31097   # A ".." for each directory in $ac_dir_suffix.
31098   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
31099   case $ac_top_builddir_sub in
31100   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31101   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31102   esac ;;
31103 esac
31104 ac_abs_top_builddir=$ac_pwd
31105 ac_abs_builddir=$ac_pwd$ac_dir_suffix
31106 # for backward compatibility:
31107 ac_top_builddir=$ac_top_build_prefix
31108
31109 case $srcdir in
31110   .)  # We are building in place.
31111     ac_srcdir=.
31112     ac_top_srcdir=$ac_top_builddir_sub
31113     ac_abs_top_srcdir=$ac_pwd ;;
31114   [\\/]* | ?:[\\/]* )  # Absolute name.
31115     ac_srcdir=$srcdir$ac_dir_suffix;
31116     ac_top_srcdir=$srcdir
31117     ac_abs_top_srcdir=$srcdir ;;
31118   *) # Relative name.
31119     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31120     ac_top_srcdir=$ac_top_build_prefix$srcdir
31121     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31122 esac
31123 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31124
31125
31126   case $ac_mode in
31127   :F)
31128   #
31129   # CONFIG_FILE
31130   #
31131
31132   case $INSTALL in
31133   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31134   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
31135   esac
31136 _ACEOF
31137
31138 cat >>$CONFIG_STATUS <<\_ACEOF
31139 # If the template does not know about datarootdir, expand it.
31140 # FIXME: This hack should be removed a few years after 2.60.
31141 ac_datarootdir_hack=; ac_datarootdir_seen=
31142
31143 case `sed -n '/datarootdir/ {
31144   p
31145   q
31146 }
31147 /@datadir@/p
31148 /@docdir@/p
31149 /@infodir@/p
31150 /@localedir@/p
31151 /@mandir@/p
31152 ' $ac_file_inputs` in
31153 *datarootdir*) ac_datarootdir_seen=yes;;
31154 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31155   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31156 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31157 _ACEOF
31158 cat >>$CONFIG_STATUS <<_ACEOF
31159   ac_datarootdir_hack='
31160   s&@datadir@&$datadir&g
31161   s&@docdir@&$docdir&g
31162   s&@infodir@&$infodir&g
31163   s&@localedir@&$localedir&g
31164   s&@mandir@&$mandir&g
31165     s&\\\${datarootdir}&$datarootdir&g' ;;
31166 esac
31167 _ACEOF
31168
31169 # Neutralize VPATH when `$srcdir' = `.'.
31170 # Shell code in configure.ac might set extrasub.
31171 # FIXME: do we really want to maintain this feature?
31172 cat >>$CONFIG_STATUS <<_ACEOF
31173   sed "$ac_vpsub
31174 $extrasub
31175 _ACEOF
31176 cat >>$CONFIG_STATUS <<\_ACEOF
31177 :t
31178 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31179 s&@configure_input@&$configure_input&;t t
31180 s&@top_builddir@&$ac_top_builddir_sub&;t t
31181 s&@srcdir@&$ac_srcdir&;t t
31182 s&@abs_srcdir@&$ac_abs_srcdir&;t t
31183 s&@top_srcdir@&$ac_top_srcdir&;t t
31184 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31185 s&@builddir@&$ac_builddir&;t t
31186 s&@abs_builddir@&$ac_abs_builddir&;t t
31187 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31188 s&@INSTALL@&$ac_INSTALL&;t t
31189 $ac_datarootdir_hack
31190 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
31191
31192 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31193   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
31194   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
31195   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31196 which seems to be undefined.  Please make sure it is defined." >&5
31197 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31198 which seems to be undefined.  Please make sure it is defined." >&2;}
31199
31200   rm -f "$tmp/stdin"
31201   case $ac_file in
31202   -) cat "$tmp/out"; rm -f "$tmp/out";;
31203   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
31204   esac
31205  ;;
31206   :H)
31207   #
31208   # CONFIG_HEADER
31209   #
31210 _ACEOF
31211
31212 # Transform confdefs.h into a sed script `conftest.defines', that
31213 # substitutes the proper values into config.h.in to produce config.h.
31214 rm -f conftest.defines conftest.tail
31215 # First, append a space to every undef/define line, to ease matching.
31216 echo 's/$/ /' >conftest.defines
31217 # Then, protect against being on the right side of a sed subst, or in
31218 # an unquoted here document, in config.status.  If some macros were
31219 # called several times there might be several #defines for the same
31220 # symbol, which is useless.  But do not sort them, since the last
31221 # AC_DEFINE must be honored.
31222 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31223 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
31224 # NAME is the cpp macro being defined, VALUE is the value it is being given.
31225 # PARAMS is the parameter list in the macro definition--in most cases, it's
31226 # just an empty string.
31227 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
31228 ac_dB='\\)[      (].*,\\1define\\2'
31229 ac_dC=' '
31230 ac_dD=' ,'
31231
31232 uniq confdefs.h |
31233   sed -n '
31234         t rset
31235         :rset
31236         s/^[     ]*#[    ]*define[       ][      ]*//
31237         t ok
31238         d
31239         :ok
31240         s/[\\&,]/\\&/g
31241         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
31242         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
31243   ' >>conftest.defines
31244
31245 # Remove the space that was appended to ease matching.
31246 # Then replace #undef with comments.  This is necessary, for
31247 # example, in the case of _POSIX_SOURCE, which is predefined and required
31248 # on some systems where configure will not decide to define it.
31249 # (The regexp can be short, since the line contains either #define or #undef.)
31250 echo 's/ $//
31251 s,^[     #]*u.*,/* & */,' >>conftest.defines
31252
31253 # Break up conftest.defines:
31254 ac_max_sed_lines=50
31255
31256 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
31257 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
31258 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
31259 # et cetera.
31260 ac_in='$ac_file_inputs'
31261 ac_out='"$tmp/out1"'
31262 ac_nxt='"$tmp/out2"'
31263
31264 while :
31265 do
31266   # Write a here document:
31267     cat >>$CONFIG_STATUS <<_ACEOF
31268     # First, check the format of the line:
31269     cat >"\$tmp/defines.sed" <<\\CEOF
31270 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
31271 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
31272 b
31273 :def
31274 _ACEOF
31275   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
31276   echo 'CEOF
31277     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
31278   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
31279   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
31280   grep . conftest.tail >/dev/null || break
31281   rm -f conftest.defines
31282   mv conftest.tail conftest.defines
31283 done
31284 rm -f conftest.defines conftest.tail
31285
31286 echo "ac_result=$ac_in" >>$CONFIG_STATUS
31287 cat >>$CONFIG_STATUS <<\_ACEOF
31288   if test x"$ac_file" != x-; then
31289     echo "/* $configure_input  */" >"$tmp/config.h"
31290     cat "$ac_result" >>"$tmp/config.h"
31291     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
31292       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31293 echo "$as_me: $ac_file is unchanged" >&6;}
31294     else
31295       rm -f $ac_file
31296       mv "$tmp/config.h" $ac_file
31297     fi
31298   else
31299     echo "/* $configure_input  */"
31300     cat "$ac_result"
31301   fi
31302   rm -f "$tmp/out12"
31303 # Compute $ac_file's index in $config_headers.
31304 _am_stamp_count=1
31305 for _am_header in $config_headers :; do
31306   case $_am_header in
31307     $ac_file | $ac_file:* )
31308       break ;;
31309     * )
31310       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
31311   esac
31312 done
31313 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
31314 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31315          X$ac_file : 'X\(//\)[^/]' \| \
31316          X$ac_file : 'X\(//\)$' \| \
31317          X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
31318 echo X$ac_file |
31319     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31320             s//\1/
31321             q
31322           }
31323           /^X\(\/\/\)[^/].*/{
31324             s//\1/
31325             q
31326           }
31327           /^X\(\/\/\)$/{
31328             s//\1/
31329             q
31330           }
31331           /^X\(\/\).*/{
31332             s//\1/
31333             q
31334           }
31335           s/.*/./; q'`/stamp-h$_am_stamp_count
31336  ;;
31337   
31338   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
31339 echo "$as_me: executing $ac_file commands" >&6;}
31340  ;;
31341   esac
31342
31343
31344   case $ac_file$ac_mode in
31345     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
31346   # Strip MF so we end up with the name of the file.
31347   mf=`echo "$mf" | sed -e 's/:.*$//'`
31348   # Check whether this is an Automake generated Makefile or not.
31349   # We used to match only the files named `Makefile.in', but
31350   # some people rename them; so instead we look at the file content.
31351   # Grep'ing the first line is not enough: some people post-process
31352   # each Makefile.in and add a new line on top of each file to say so.
31353   # So let's grep whole file.
31354   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
31355     dirpart=`$as_dirname -- "$mf" ||
31356 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31357          X"$mf" : 'X\(//\)[^/]' \| \
31358          X"$mf" : 'X\(//\)$' \| \
31359          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
31360 echo X"$mf" |
31361     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31362             s//\1/
31363             q
31364           }
31365           /^X\(\/\/\)[^/].*/{
31366             s//\1/
31367             q
31368           }
31369           /^X\(\/\/\)$/{
31370             s//\1/
31371             q
31372           }
31373           /^X\(\/\).*/{
31374             s//\1/
31375             q
31376           }
31377           s/.*/./; q'`
31378   else
31379     continue
31380   fi
31381   # Extract the definition of DEPDIR, am__include, and am__quote
31382   # from the Makefile without running `make'.
31383   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
31384   test -z "$DEPDIR" && continue
31385   am__include=`sed -n 's/^am__include = //p' < "$mf"`
31386   test -z "am__include" && continue
31387   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
31388   # When using ansi2knr, U may be empty or an underscore; expand it
31389   U=`sed -n 's/^U = //p' < "$mf"`
31390   # Find all dependency output files, they are included files with
31391   # $(DEPDIR) in their names.  We invoke sed twice because it is the
31392   # simplest approach to changing $(DEPDIR) to its actual value in the
31393   # expansion.
31394   for file in `sed -n "
31395     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
31396        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
31397     # Make sure the directory exists.
31398     test -f "$dirpart/$file" && continue
31399     fdir=`$as_dirname -- "$file" ||
31400 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31401          X"$file" : 'X\(//\)[^/]' \| \
31402          X"$file" : 'X\(//\)$' \| \
31403          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
31404 echo X"$file" |
31405     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31406             s//\1/
31407             q
31408           }
31409           /^X\(\/\/\)[^/].*/{
31410             s//\1/
31411             q
31412           }
31413           /^X\(\/\/\)$/{
31414             s//\1/
31415             q
31416           }
31417           /^X\(\/\).*/{
31418             s//\1/
31419             q
31420           }
31421           s/.*/./; q'`
31422     { as_dir=$dirpart/$fdir
31423   case $as_dir in #(
31424   -*) as_dir=./$as_dir;;
31425   esac
31426   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
31427     as_dirs=
31428     while :; do
31429       case $as_dir in #(
31430       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
31431       *) as_qdir=$as_dir;;
31432       esac
31433       as_dirs="'$as_qdir' $as_dirs"
31434       as_dir=`$as_dirname -- "$as_dir" ||
31435 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31436          X"$as_dir" : 'X\(//\)[^/]' \| \
31437          X"$as_dir" : 'X\(//\)$' \| \
31438          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31439 echo X"$as_dir" |
31440     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31441             s//\1/
31442             q
31443           }
31444           /^X\(\/\/\)[^/].*/{
31445             s//\1/
31446             q
31447           }
31448           /^X\(\/\/\)$/{
31449             s//\1/
31450             q
31451           }
31452           /^X\(\/\).*/{
31453             s//\1/
31454             q
31455           }
31456           s/.*/./; q'`
31457       test -d "$as_dir" && break
31458     done
31459     test -z "$as_dirs" || eval "mkdir $as_dirs"
31460   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
31461 echo "$as_me: error: cannot create directory $as_dir" >&2;}
31462    { (exit 1); exit 1; }; }; }
31463     # echo "creating $dirpart/$file"
31464     echo '# dummy' > "$dirpart/$file"
31465   done
31466 done
31467  ;;
31468
31469   esac
31470 done # for ac_tag
31471
31472
31473 { (exit 0); exit 0; }
31474 _ACEOF
31475 chmod +x $CONFIG_STATUS
31476 ac_clean_files=$ac_clean_files_save
31477
31478
31479 # configure is writing to config.log, and then calls config.status.
31480 # config.status does its own redirection, appending to config.log.
31481 # Unfortunately, on DOS this fails, as config.log is still kept open
31482 # by configure, so config.status won't be able to write to it; its
31483 # output is simply discarded.  So we exec the FD to /dev/null,
31484 # effectively closing config.log, so it can be properly (re)opened and
31485 # appended to by config.status.  When coming back to configure, we
31486 # need to make the FD available again.
31487 if test "$no_create" != yes; then
31488   ac_cs_success=:
31489   ac_config_status_args=
31490   test "$silent" = yes &&
31491     ac_config_status_args="$ac_config_status_args --quiet"
31492   exec 5>/dev/null
31493   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31494   exec 5>>config.log
31495   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31496   # would make configure fail if this is the last instruction.
31497   $ac_cs_success || { (exit 1); exit 1; }
31498 fi
31499
31500