]> git.decadent.org.uk Git - nfs-utils.git/blob - autom4te.cache/output.0
Imported Upstream version 1.0.11~git-20070212
[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.0.10.
4 @%:@
5 @%:@ Report bugs to <nfs@lists.sf.net>.
6 @%:@ 
7 @%:@ Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 @%:@ 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 @%:@ This configure script is free software; the Free Software Foundation
10 @%:@ gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization.  ##
13 ## --------------------- ##
14
15 # Be 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.0.10'
732 PACKAGE_STRING='linux nfs-utils 1.0.10'
733 PACKAGE_BUGREPORT='nfs@lists.sf.net'
734
735 ac_unique_file="tools/getiversion/getiversion.c"
736 ac_default_prefix=/usr
737 ac_unique_file="support/include/config.h.in"
738 # Factoring default headers for most tests.
739 ac_includes_default="\
740 #include <stdio.h>
741 #ifdef HAVE_SYS_TYPES_H
742 # include <sys/types.h>
743 #endif
744 #ifdef HAVE_SYS_STAT_H
745 # include <sys/stat.h>
746 #endif
747 #ifdef STDC_HEADERS
748 # include <stdlib.h>
749 # include <stddef.h>
750 #else
751 # ifdef HAVE_STDLIB_H
752 #  include <stdlib.h>
753 # endif
754 #endif
755 #ifdef HAVE_STRING_H
756 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
757 #  include <memory.h>
758 # endif
759 # include <string.h>
760 #endif
761 #ifdef HAVE_STRINGS_H
762 # include <strings.h>
763 #endif
764 #ifdef HAVE_INTTYPES_H
765 # include <inttypes.h>
766 #endif
767 #ifdef HAVE_STDINT_H
768 # include <stdint.h>
769 #endif
770 #ifdef HAVE_UNISTD_H
771 # include <unistd.h>
772 #endif"
773
774 ac_subst_vars='SHELL
775 PATH_SEPARATOR
776 PACKAGE_NAME
777 PACKAGE_TARNAME
778 PACKAGE_VERSION
779 PACKAGE_STRING
780 PACKAGE_BUGREPORT
781 exec_prefix
782 prefix
783 program_transform_name
784 bindir
785 sbindir
786 libexecdir
787 datarootdir
788 datadir
789 sysconfdir
790 sharedstatedir
791 localstatedir
792 includedir
793 oldincludedir
794 docdir
795 infodir
796 htmldir
797 dvidir
798 pdfdir
799 psdir
800 libdir
801 localedir
802 mandir
803 DEFS
804 ECHO_C
805 ECHO_N
806 ECHO_T
807 LIBS
808 build_alias
809 host_alias
810 target_alias
811 build
812 build_cpu
813 build_vendor
814 build_os
815 host
816 host_cpu
817 host_vendor
818 host_os
819 INSTALL_PROGRAM
820 INSTALL_SCRIPT
821 INSTALL_DATA
822 am__isrc
823 CYGPATH_W
824 PACKAGE
825 VERSION
826 ACLOCAL
827 AUTOCONF
828 AUTOMAKE
829 AUTOHEADER
830 MAKEINFO
831 install_sh
832 STRIP
833 INSTALL_STRIP_PROGRAM
834 mkdir_p
835 AWK
836 SET_MAKE
837 am__leading_dot
838 AMTAR
839 am__tar
840 am__untar
841 MAINTAINER_MODE_TRUE
842 MAINTAINER_MODE_FALSE
843 MAINT
844 RELEASE
845 statedir
846 statduser
847 enable_nfsv3
848 IDMAPD
849 enable_nfsv4
850 CONFIG_NFSV4_TRUE
851 CONFIG_NFSV4_FALSE
852 GSSD
853 SVCGSSD
854 enable_gss
855 CONFIG_GSS_TRUE
856 CONFIG_GSS_FALSE
857 kprefix
858 secure_statd
859 CONFIG_RQUOTAD_TRUE
860 CONFIG_RQUOTAD_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 GREP
891 EGREP
892 ECHO
893 AR
894 RANLIB
895 CXXCPP
896 F77
897 FFLAGS
898 ac_ct_F77
899 LIBTOOL
900 CC_FOR_BUILD
901 LD
902 LIBNSL
903 PKG_CONFIG
904 RPCSECGSS_CFLAGS
905 RPCSECGSS_LIBS
906 GSSAPI_CFLAGS
907 GSSAPI_LIBS
908 LIBSOCKET
909 LIBCRYPT
910 LIBBSD
911 LIBBLKID
912 KRBDIR
913 KRBLIBS
914 KRBCFLAGS
915 KRBLDFLAGS
916 K5VERS
917 ALLOCA
918 LIB@&t@OBJS
919 CFLAGS_FOR_BUILD
920 CXXFLAGS_FOR_BUILD
921 CPPFLAGS_FOR_BUILD
922 LDFLAGS_FOR_BUILD
923 AM_CPPFLAGS
924 AM_CFLAGS
925 ACLOCAL_AMFLAGS
926 LTLIBOBJS'
927 ac_subst_files=''
928       ac_precious_vars='build_alias
929 host_alias
930 target_alias
931 CC
932 CFLAGS
933 LDFLAGS
934 LIBS
935 CPPFLAGS
936 CXX
937 CXXFLAGS
938 CCC
939 CPP
940 CXXCPP
941 F77
942 FFLAGS
943 PKG_CONFIG
944 RPCSECGSS_CFLAGS
945 RPCSECGSS_LIBS
946 GSSAPI_CFLAGS
947 GSSAPI_LIBS'
948
949
950 # Initialize some variables set by options.
951 ac_init_help=
952 ac_init_version=false
953 # The variables have the same names as the options, with
954 # dashes changed to underlines.
955 cache_file=/dev/null
956 exec_prefix=NONE
957 no_create=
958 no_recursion=
959 prefix=NONE
960 program_prefix=NONE
961 program_suffix=NONE
962 program_transform_name=s,x,x,
963 silent=
964 site=
965 srcdir=
966 verbose=
967 x_includes=NONE
968 x_libraries=NONE
969
970 # Installation directory options.
971 # These are left unexpanded so users can "make install exec_prefix=/foo"
972 # and all the variables that are supposed to be based on exec_prefix
973 # by default will actually change.
974 # Use braces instead of parens because sh, perl, etc. also accept them.
975 # (The list follows the same order as the GNU Coding Standards.)
976 bindir='${exec_prefix}/bin'
977 sbindir='${exec_prefix}/sbin'
978 libexecdir='${exec_prefix}/libexec'
979 datarootdir='${prefix}/share'
980 datadir='${datarootdir}'
981 sysconfdir='${prefix}/etc'
982 sharedstatedir='${prefix}/com'
983 localstatedir='${prefix}/var'
984 includedir='${prefix}/include'
985 oldincludedir='/usr/include'
986 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
987 infodir='${datarootdir}/info'
988 htmldir='${docdir}'
989 dvidir='${docdir}'
990 pdfdir='${docdir}'
991 psdir='${docdir}'
992 libdir='${exec_prefix}/lib'
993 localedir='${datarootdir}/locale'
994 mandir='${datarootdir}/man'
995
996 ac_prev=
997 ac_dashdash=
998 for ac_option
999 do
1000   # If the previous option needs an argument, assign it.
1001   if test -n "$ac_prev"; then
1002     eval $ac_prev=\$ac_option
1003     ac_prev=
1004     continue
1005   fi
1006
1007   case $ac_option in
1008   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1009   *)    ac_optarg=yes ;;
1010   esac
1011
1012   # Accept the important Cygnus configure options, so we can diagnose typos.
1013
1014   case $ac_dashdash$ac_option in
1015   --)
1016     ac_dashdash=yes ;;
1017
1018   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1019     ac_prev=bindir ;;
1020   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1021     bindir=$ac_optarg ;;
1022
1023   -build | --build | --buil | --bui | --bu)
1024     ac_prev=build_alias ;;
1025   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1026     build_alias=$ac_optarg ;;
1027
1028   -cache-file | --cache-file | --cache-fil | --cache-fi \
1029   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1030     ac_prev=cache_file ;;
1031   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1032   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1033     cache_file=$ac_optarg ;;
1034
1035   --config-cache | -C)
1036     cache_file=config.cache ;;
1037
1038   -datadir | --datadir | --datadi | --datad)
1039     ac_prev=datadir ;;
1040   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1041     datadir=$ac_optarg ;;
1042
1043   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1044   | --dataroo | --dataro | --datar)
1045     ac_prev=datarootdir ;;
1046   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1047   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1048     datarootdir=$ac_optarg ;;
1049
1050   -disable-* | --disable-*)
1051     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1052     # Reject names that are not valid shell variable names.
1053     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1054       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1055    { (exit 1); exit 1; }; }
1056     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1057     eval enable_$ac_feature=no ;;
1058
1059   -docdir | --docdir | --docdi | --doc | --do)
1060     ac_prev=docdir ;;
1061   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1062     docdir=$ac_optarg ;;
1063
1064   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1065     ac_prev=dvidir ;;
1066   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1067     dvidir=$ac_optarg ;;
1068
1069   -enable-* | --enable-*)
1070     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1071     # Reject names that are not valid shell variable names.
1072     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1073       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1074    { (exit 1); exit 1; }; }
1075     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1076     eval enable_$ac_feature=\$ac_optarg ;;
1077
1078   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1079   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1080   | --exec | --exe | --ex)
1081     ac_prev=exec_prefix ;;
1082   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1083   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1084   | --exec=* | --exe=* | --ex=*)
1085     exec_prefix=$ac_optarg ;;
1086
1087   -gas | --gas | --ga | --g)
1088     # Obsolete; use --with-gas.
1089     with_gas=yes ;;
1090
1091   -help | --help | --hel | --he | -h)
1092     ac_init_help=long ;;
1093   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1094     ac_init_help=recursive ;;
1095   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1096     ac_init_help=short ;;
1097
1098   -host | --host | --hos | --ho)
1099     ac_prev=host_alias ;;
1100   -host=* | --host=* | --hos=* | --ho=*)
1101     host_alias=$ac_optarg ;;
1102
1103   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1104     ac_prev=htmldir ;;
1105   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1106   | --ht=*)
1107     htmldir=$ac_optarg ;;
1108
1109   -includedir | --includedir | --includedi | --included | --include \
1110   | --includ | --inclu | --incl | --inc)
1111     ac_prev=includedir ;;
1112   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1113   | --includ=* | --inclu=* | --incl=* | --inc=*)
1114     includedir=$ac_optarg ;;
1115
1116   -infodir | --infodir | --infodi | --infod | --info | --inf)
1117     ac_prev=infodir ;;
1118   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1119     infodir=$ac_optarg ;;
1120
1121   -libdir | --libdir | --libdi | --libd)
1122     ac_prev=libdir ;;
1123   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1124     libdir=$ac_optarg ;;
1125
1126   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1127   | --libexe | --libex | --libe)
1128     ac_prev=libexecdir ;;
1129   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1130   | --libexe=* | --libex=* | --libe=*)
1131     libexecdir=$ac_optarg ;;
1132
1133   -localedir | --localedir | --localedi | --localed | --locale)
1134     ac_prev=localedir ;;
1135   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1136     localedir=$ac_optarg ;;
1137
1138   -localstatedir | --localstatedir | --localstatedi | --localstated \
1139   | --localstate | --localstat | --localsta | --localst | --locals)
1140     ac_prev=localstatedir ;;
1141   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1142   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1143     localstatedir=$ac_optarg ;;
1144
1145   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1146     ac_prev=mandir ;;
1147   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1148     mandir=$ac_optarg ;;
1149
1150   -nfp | --nfp | --nf)
1151     # Obsolete; use --without-fp.
1152     with_fp=no ;;
1153
1154   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1155   | --no-cr | --no-c | -n)
1156     no_create=yes ;;
1157
1158   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1159   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1160     no_recursion=yes ;;
1161
1162   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1163   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1164   | --oldin | --oldi | --old | --ol | --o)
1165     ac_prev=oldincludedir ;;
1166   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1167   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1168   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1169     oldincludedir=$ac_optarg ;;
1170
1171   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1172     ac_prev=prefix ;;
1173   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1174     prefix=$ac_optarg ;;
1175
1176   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1177   | --program-pre | --program-pr | --program-p)
1178     ac_prev=program_prefix ;;
1179   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1180   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1181     program_prefix=$ac_optarg ;;
1182
1183   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1184   | --program-suf | --program-su | --program-s)
1185     ac_prev=program_suffix ;;
1186   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1187   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1188     program_suffix=$ac_optarg ;;
1189
1190   -program-transform-name | --program-transform-name \
1191   | --program-transform-nam | --program-transform-na \
1192   | --program-transform-n | --program-transform- \
1193   | --program-transform | --program-transfor \
1194   | --program-transfo | --program-transf \
1195   | --program-trans | --program-tran \
1196   | --progr-tra | --program-tr | --program-t)
1197     ac_prev=program_transform_name ;;
1198   -program-transform-name=* | --program-transform-name=* \
1199   | --program-transform-nam=* | --program-transform-na=* \
1200   | --program-transform-n=* | --program-transform-=* \
1201   | --program-transform=* | --program-transfor=* \
1202   | --program-transfo=* | --program-transf=* \
1203   | --program-trans=* | --program-tran=* \
1204   | --progr-tra=* | --program-tr=* | --program-t=*)
1205     program_transform_name=$ac_optarg ;;
1206
1207   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1208     ac_prev=pdfdir ;;
1209   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1210     pdfdir=$ac_optarg ;;
1211
1212   -psdir | --psdir | --psdi | --psd | --ps)
1213     ac_prev=psdir ;;
1214   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1215     psdir=$ac_optarg ;;
1216
1217   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1218   | -silent | --silent | --silen | --sile | --sil)
1219     silent=yes ;;
1220
1221   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1222     ac_prev=sbindir ;;
1223   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1224   | --sbi=* | --sb=*)
1225     sbindir=$ac_optarg ;;
1226
1227   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1228   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1229   | --sharedst | --shareds | --shared | --share | --shar \
1230   | --sha | --sh)
1231     ac_prev=sharedstatedir ;;
1232   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1233   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1234   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1235   | --sha=* | --sh=*)
1236     sharedstatedir=$ac_optarg ;;
1237
1238   -site | --site | --sit)
1239     ac_prev=site ;;
1240   -site=* | --site=* | --sit=*)
1241     site=$ac_optarg ;;
1242
1243   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1244     ac_prev=srcdir ;;
1245   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1246     srcdir=$ac_optarg ;;
1247
1248   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1249   | --syscon | --sysco | --sysc | --sys | --sy)
1250     ac_prev=sysconfdir ;;
1251   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1252   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1253     sysconfdir=$ac_optarg ;;
1254
1255   -target | --target | --targe | --targ | --tar | --ta | --t)
1256     ac_prev=target_alias ;;
1257   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1258     target_alias=$ac_optarg ;;
1259
1260   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1261     verbose=yes ;;
1262
1263   -version | --version | --versio | --versi | --vers | -V)
1264     ac_init_version=: ;;
1265
1266   -with-* | --with-*)
1267     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1268     # Reject names that are not valid shell variable names.
1269     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1270       { echo "$as_me: error: invalid package name: $ac_package" >&2
1271    { (exit 1); exit 1; }; }
1272     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1273     eval with_$ac_package=\$ac_optarg ;;
1274
1275   -without-* | --without-*)
1276     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1277     # Reject names that are not valid shell variable names.
1278     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1279       { echo "$as_me: error: invalid package name: $ac_package" >&2
1280    { (exit 1); exit 1; }; }
1281     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1282     eval with_$ac_package=no ;;
1283
1284   --x)
1285     # Obsolete; use --with-x.
1286     with_x=yes ;;
1287
1288   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1289   | --x-incl | --x-inc | --x-in | --x-i)
1290     ac_prev=x_includes ;;
1291   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1292   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1293     x_includes=$ac_optarg ;;
1294
1295   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1296   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1297     ac_prev=x_libraries ;;
1298   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1299   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1300     x_libraries=$ac_optarg ;;
1301
1302   -*) { echo "$as_me: error: unrecognized option: $ac_option
1303 Try \`$0 --help' for more information." >&2
1304    { (exit 1); exit 1; }; }
1305     ;;
1306
1307   *=*)
1308     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1309     # Reject names that are not valid shell variable names.
1310     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1311       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1312    { (exit 1); exit 1; }; }
1313     eval $ac_envvar=\$ac_optarg
1314     export $ac_envvar ;;
1315
1316   *)
1317     # FIXME: should be removed in autoconf 3.0.
1318     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1319     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1320       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1321     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1322     ;;
1323
1324   esac
1325 done
1326
1327 if test -n "$ac_prev"; then
1328   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1329   { echo "$as_me: error: missing argument to $ac_option" >&2
1330    { (exit 1); exit 1; }; }
1331 fi
1332
1333 # Be sure to have absolute directory names.
1334 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1335                 datadir sysconfdir sharedstatedir localstatedir includedir \
1336                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1337                 libdir localedir mandir
1338 do
1339   eval ac_val=\$$ac_var
1340   case $ac_val in
1341     [\\/$]* | ?:[\\/]* )  continue;;
1342     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1343   esac
1344   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1345    { (exit 1); exit 1; }; }
1346 done
1347
1348 # There might be people who depend on the old broken behavior: `$host'
1349 # used to hold the argument of --host etc.
1350 # FIXME: To remove some day.
1351 build=$build_alias
1352 host=$host_alias
1353 target=$target_alias
1354
1355 # FIXME: To remove some day.
1356 if test "x$host_alias" != x; then
1357   if test "x$build_alias" = x; then
1358     cross_compiling=maybe
1359     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1360     If a cross compiler is detected then cross compile mode will be used." >&2
1361   elif test "x$build_alias" != "x$host_alias"; then
1362     cross_compiling=yes
1363   fi
1364 fi
1365
1366 ac_tool_prefix=
1367 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1368
1369 test "$silent" = yes && exec 6>/dev/null
1370
1371
1372 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1373 ac_ls_di=`ls -di .` &&
1374 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1375   { echo "$as_me: error: Working directory cannot be determined" >&2
1376    { (exit 1); exit 1; }; }
1377 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1378   { echo "$as_me: error: pwd does not report name of working directory" >&2
1379    { (exit 1); exit 1; }; }
1380
1381
1382 # Find the source files, if location was not specified.
1383 if test -z "$srcdir"; then
1384   ac_srcdir_defaulted=yes
1385   # Try the directory containing this script, then the parent directory.
1386   ac_confdir=`$as_dirname -- "$0" ||
1387 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1388          X"$0" : 'X\(//\)[^/]' \| \
1389          X"$0" : 'X\(//\)$' \| \
1390          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1391 echo X"$0" |
1392     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1393             s//\1/
1394             q
1395           }
1396           /^X\(\/\/\)[^/].*/{
1397             s//\1/
1398             q
1399           }
1400           /^X\(\/\/\)$/{
1401             s//\1/
1402             q
1403           }
1404           /^X\(\/\).*/{
1405             s//\1/
1406             q
1407           }
1408           s/.*/./; q'`
1409   srcdir=$ac_confdir
1410   if test ! -r "$srcdir/$ac_unique_file"; then
1411     srcdir=..
1412   fi
1413 else
1414   ac_srcdir_defaulted=no
1415 fi
1416 if test ! -r "$srcdir/$ac_unique_file"; then
1417   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1418   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1419    { (exit 1); exit 1; }; }
1420 fi
1421 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1422 ac_abs_confdir=`(
1423         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1424    { (exit 1); exit 1; }; }
1425         pwd)`
1426 # When building in place, set srcdir=.
1427 if test "$ac_abs_confdir" = "$ac_pwd"; then
1428   srcdir=.
1429 fi
1430 # Remove unnecessary trailing slashes from srcdir.
1431 # Double slashes in file names in object file debugging info
1432 # mess up M-x gdb in Emacs.
1433 case $srcdir in
1434 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1435 esac
1436 for ac_var in $ac_precious_vars; do
1437   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1438   eval ac_env_${ac_var}_value=\$${ac_var}
1439   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1440   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1441 done
1442
1443 #
1444 # Report the --help message.
1445 #
1446 if test "$ac_init_help" = "long"; then
1447   # Omit some internal or obsolete options to make the list less imposing.
1448   # This message is too long to be a string in the A/UX 3.1 sh.
1449   cat <<_ACEOF
1450 \`configure' configures linux nfs-utils 1.0.10 to adapt to many kinds of systems.
1451
1452 Usage: $0 [OPTION]... [VAR=VALUE]...
1453
1454 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1455 VAR=VALUE.  See below for descriptions of some of the useful variables.
1456
1457 Defaults for the options are specified in brackets.
1458
1459 Configuration:
1460   -h, --help              display this help and exit
1461       --help=short        display options specific to this package
1462       --help=recursive    display the short help of all the included packages
1463   -V, --version           display version information and exit
1464   -q, --quiet, --silent   do not print \`checking...' messages
1465       --cache-file=FILE   cache test results in FILE [disabled]
1466   -C, --config-cache      alias for \`--cache-file=config.cache'
1467   -n, --no-create         do not create output files
1468       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1469
1470 Installation directories:
1471   --prefix=PREFIX         install architecture-independent files in PREFIX
1472                           [$ac_default_prefix]
1473   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1474                           [PREFIX]
1475
1476 By default, \`make install' will install all the files in
1477 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1478 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1479 for instance \`--prefix=\$HOME'.
1480
1481 For better control, use the options below.
1482
1483 Fine tuning of the installation directories:
1484   --bindir=DIR           user executables [EPREFIX/bin]
1485   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1486   --libexecdir=DIR       program executables [EPREFIX/libexec]
1487   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1488   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1489   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1490   --libdir=DIR           object code libraries [EPREFIX/lib]
1491   --includedir=DIR       C header files [PREFIX/include]
1492   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1493   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1494   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1495   --infodir=DIR          info documentation [DATAROOTDIR/info]
1496   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1497   --mandir=DIR           man documentation [DATAROOTDIR/man]
1498   --docdir=DIR           documentation root @<:@DATAROOTDIR/doc/nfs-utils@:>@
1499   --htmldir=DIR          html documentation [DOCDIR]
1500   --dvidir=DIR           dvi documentation [DOCDIR]
1501   --pdfdir=DIR           pdf documentation [DOCDIR]
1502   --psdir=DIR            ps documentation [DOCDIR]
1503 _ACEOF
1504
1505   cat <<\_ACEOF
1506
1507 Program names:
1508   --program-prefix=PREFIX            prepend PREFIX to installed program names
1509   --program-suffix=SUFFIX            append SUFFIX to installed program names
1510   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1511
1512 System types:
1513   --build=BUILD     configure for building on BUILD [guessed]
1514   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1515 _ACEOF
1516 fi
1517
1518 if test -n "$ac_init_help"; then
1519   case $ac_init_help in
1520      short | recursive ) echo "Configuration of linux nfs-utils 1.0.10:";;
1521    esac
1522   cat <<\_ACEOF
1523
1524 Optional Features:
1525   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1526   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1527   --enable-maintainer-mode  enable make rules and dependencies not useful
1528                           (and sometimes confusing) to the casual installer
1529   --enable-nfsv3          enable support for NFSv3 @<:@default=yes@:>@
1530   --enable-nfsv4          enable support for NFSv4 @<:@default=yes@:>@
1531   --enable-gss            enable support for rpcsec_gss @<:@default=yes@:>@
1532   --enable-kprefix        install progs as rpc.knfsd etc
1533   --enable-secure-statd   Only lockd can use statd (security)
1534   --enable-rquotad        enable rquotad @<:@default=yes@:>@
1535   --enable-mount          Create mount.nfs and don't use the util-linux
1536                           mount(8) functionality. @<:@default=no@:>@
1537   --disable-dependency-tracking  speeds up one-time build
1538   --enable-dependency-tracking   do not reject slow dependency extractors
1539   --enable-shared@<:@=PKGS@:>@  build shared libraries @<:@default=yes@:>@
1540   --enable-static@<:@=PKGS@:>@  build static libraries @<:@default=yes@:>@
1541   --enable-fast-install@<:@=PKGS@:>@ 
1542                           optimize for fast installation @<:@default=yes@:>@
1543   --disable-libtool-lock  avoid locking (might break parallel builds)
1544
1545 Optional Packages:
1546   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1547   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1548   --with-release=XXX      set release to XXX [1]
1549   --with-statedir=/foo    use state dir /foo /var/lib/nfs
1550   --with-statduser=rpcuser 
1551                           statd to run under @<:@rpcuser or nobody@:>@
1552   --with-tcp-wrappers[=PATH]      Enable tcpwrappers support
1553                  (optionally in PATH)
1554   --with-gnu-ld           assume the C compiler uses GNU ld @<:@default=no@:>@
1555   --with-pic              try to use only PIC/non-PIC objects @<:@default=use
1556                           both@:>@
1557   --with-tags@<:@=TAGS@:>@      include additional configurations @<:@automatic@:>@
1558   --with-krb5=DIR         use Kerberos v5 installation in DIR
1559
1560 Some influential environment variables:
1561   CC          C compiler command
1562   CFLAGS      C compiler flags
1563   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1564               nonstandard directory <lib dir>
1565   LIBS        libraries to pass to the linker, e.g. -l<library>
1566   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1567               you have headers in a nonstandard directory <include dir>
1568   CXX         C++ compiler command
1569   CXXFLAGS    C++ compiler flags
1570   CPP         C preprocessor
1571   CXXCPP      C++ preprocessor
1572   F77         Fortran 77 compiler command
1573   FFLAGS      Fortran 77 compiler flags
1574   PKG_CONFIG  path to pkg-config utility
1575   RPCSECGSS_CFLAGS 
1576               C compiler flags for RPCSECGSS, overriding pkg-config
1577   RPCSECGSS_LIBS 
1578               linker flags for RPCSECGSS, overriding pkg-config
1579   GSSAPI_CFLAGS 
1580               C compiler flags for GSSAPI, overriding pkg-config
1581   GSSAPI_LIBS linker flags for GSSAPI, overriding pkg-config
1582
1583 Use these variables to override the choices made by `configure' or to help
1584 it to find libraries and programs with nonstandard names/locations.
1585
1586 Report bugs to <nfs@lists.sf.net>.
1587 _ACEOF
1588 ac_status=$?
1589 fi
1590
1591 if test "$ac_init_help" = "recursive"; then
1592   # If there are subdirs, report their specific --help.
1593   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1594     test -d "$ac_dir" || continue
1595     ac_builddir=.
1596
1597 case "$ac_dir" in
1598 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1599 *)
1600   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1601   # A ".." for each directory in $ac_dir_suffix.
1602   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1603   case $ac_top_builddir_sub in
1604   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1605   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1606   esac ;;
1607 esac
1608 ac_abs_top_builddir=$ac_pwd
1609 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1610 # for backward compatibility:
1611 ac_top_builddir=$ac_top_build_prefix
1612
1613 case $srcdir in
1614   .)  # We are building in place.
1615     ac_srcdir=.
1616     ac_top_srcdir=$ac_top_builddir_sub
1617     ac_abs_top_srcdir=$ac_pwd ;;
1618   [\\/]* | ?:[\\/]* )  # Absolute name.
1619     ac_srcdir=$srcdir$ac_dir_suffix;
1620     ac_top_srcdir=$srcdir
1621     ac_abs_top_srcdir=$srcdir ;;
1622   *) # Relative name.
1623     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1624     ac_top_srcdir=$ac_top_build_prefix$srcdir
1625     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1626 esac
1627 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1628
1629     cd "$ac_dir" || { ac_status=$?; continue; }
1630     # Check for guested configure.
1631     if test -f "$ac_srcdir/configure.gnu"; then
1632       echo &&
1633       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1634     elif test -f "$ac_srcdir/configure"; then
1635       echo &&
1636       $SHELL "$ac_srcdir/configure" --help=recursive
1637     else
1638       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1639     fi || ac_status=$?
1640     cd "$ac_pwd" || { ac_status=$?; break; }
1641   done
1642 fi
1643
1644 test -n "$ac_init_help" && exit $ac_status
1645 if $ac_init_version; then
1646   cat <<\_ACEOF
1647 linux nfs-utils configure 1.0.10
1648 generated by GNU Autoconf 2.61
1649
1650 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1651 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1652 This configure script is free software; the Free Software Foundation
1653 gives unlimited permission to copy, distribute and modify it.
1654 _ACEOF
1655   exit
1656 fi
1657 cat >config.log <<_ACEOF
1658 This file contains any messages produced by compilers while
1659 running configure, to aid debugging if configure makes a mistake.
1660
1661 It was created by linux nfs-utils $as_me 1.0.10, which was
1662 generated by GNU Autoconf 2.61.  Invocation command line was
1663
1664   $ $0 $@
1665
1666 _ACEOF
1667 exec 5>>config.log
1668 {
1669 cat <<_ASUNAME
1670 @%:@@%:@ --------- @%:@@%:@
1671 @%:@@%:@ Platform. @%:@@%:@
1672 @%:@@%:@ --------- @%:@@%:@
1673
1674 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1675 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1676 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1677 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1678 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1679
1680 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1681 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1682
1683 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1684 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1685 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1686 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1687 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1688 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1689 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1690
1691 _ASUNAME
1692
1693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1694 for as_dir in $PATH
1695 do
1696   IFS=$as_save_IFS
1697   test -z "$as_dir" && as_dir=.
1698   echo "PATH: $as_dir"
1699 done
1700 IFS=$as_save_IFS
1701
1702 } >&5
1703
1704 cat >&5 <<_ACEOF
1705
1706
1707 @%:@@%:@ ----------- @%:@@%:@
1708 @%:@@%:@ Core tests. @%:@@%:@
1709 @%:@@%:@ ----------- @%:@@%:@
1710
1711 _ACEOF
1712
1713
1714 # Keep a trace of the command line.
1715 # Strip out --no-create and --no-recursion so they do not pile up.
1716 # Strip out --silent because we don't want to record it for future runs.
1717 # Also quote any args containing shell meta-characters.
1718 # Make two passes to allow for proper duplicate-argument suppression.
1719 ac_configure_args=
1720 ac_configure_args0=
1721 ac_configure_args1=
1722 ac_must_keep_next=false
1723 for ac_pass in 1 2
1724 do
1725   for ac_arg
1726   do
1727     case $ac_arg in
1728     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1729     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1730     | -silent | --silent | --silen | --sile | --sil)
1731       continue ;;
1732     *\'*)
1733       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1734     esac
1735     case $ac_pass in
1736     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1737     2)
1738       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1739       if test $ac_must_keep_next = true; then
1740         ac_must_keep_next=false # Got value, back to normal.
1741       else
1742         case $ac_arg in
1743           *=* | --config-cache | -C | -disable-* | --disable-* \
1744           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1745           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1746           | -with-* | --with-* | -without-* | --without-* | --x)
1747             case "$ac_configure_args0 " in
1748               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1749             esac
1750             ;;
1751           -* ) ac_must_keep_next=true ;;
1752         esac
1753       fi
1754       ac_configure_args="$ac_configure_args '$ac_arg'"
1755       ;;
1756     esac
1757   done
1758 done
1759 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1760 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1761
1762 # When interrupted or exit'd, cleanup temporary files, and complete
1763 # config.log.  We remove comments because anyway the quotes in there
1764 # would cause problems or look ugly.
1765 # WARNING: Use '\'' to represent an apostrophe within the trap.
1766 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1767 trap 'exit_status=$?
1768   # Save into config.log some information that might help in debugging.
1769   {
1770     echo
1771
1772     cat <<\_ASBOX
1773 @%:@@%:@ ---------------- @%:@@%:@
1774 @%:@@%:@ Cache variables. @%:@@%:@
1775 @%:@@%:@ ---------------- @%:@@%:@
1776 _ASBOX
1777     echo
1778     # The following way of writing the cache mishandles newlines in values,
1779 (
1780   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1781     eval ac_val=\$$ac_var
1782     case $ac_val in #(
1783     *${as_nl}*)
1784       case $ac_var in #(
1785       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1786 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1787       esac
1788       case $ac_var in #(
1789       _ | IFS | as_nl) ;; #(
1790       *) $as_unset $ac_var ;;
1791       esac ;;
1792     esac
1793   done
1794   (set) 2>&1 |
1795     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1796     *${as_nl}ac_space=\ *)
1797       sed -n \
1798         "s/'\''/'\''\\\\'\'''\''/g;
1799           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1800       ;; #(
1801     *)
1802       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1803       ;;
1804     esac |
1805     sort
1806 )
1807     echo
1808
1809     cat <<\_ASBOX
1810 @%:@@%:@ ----------------- @%:@@%:@
1811 @%:@@%:@ Output variables. @%:@@%:@
1812 @%:@@%:@ ----------------- @%:@@%:@
1813 _ASBOX
1814     echo
1815     for ac_var in $ac_subst_vars
1816     do
1817       eval ac_val=\$$ac_var
1818       case $ac_val in
1819       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1820       esac
1821       echo "$ac_var='\''$ac_val'\''"
1822     done | sort
1823     echo
1824
1825     if test -n "$ac_subst_files"; then
1826       cat <<\_ASBOX
1827 @%:@@%:@ ------------------- @%:@@%:@
1828 @%:@@%:@ File substitutions. @%:@@%:@
1829 @%:@@%:@ ------------------- @%:@@%:@
1830 _ASBOX
1831       echo
1832       for ac_var in $ac_subst_files
1833       do
1834         eval ac_val=\$$ac_var
1835         case $ac_val in
1836         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1837         esac
1838         echo "$ac_var='\''$ac_val'\''"
1839       done | sort
1840       echo
1841     fi
1842
1843     if test -s confdefs.h; then
1844       cat <<\_ASBOX
1845 @%:@@%:@ ----------- @%:@@%:@
1846 @%:@@%:@ confdefs.h. @%:@@%:@
1847 @%:@@%:@ ----------- @%:@@%:@
1848 _ASBOX
1849       echo
1850       cat confdefs.h
1851       echo
1852     fi
1853     test "$ac_signal" != 0 &&
1854       echo "$as_me: caught signal $ac_signal"
1855     echo "$as_me: exit $exit_status"
1856   } >&5
1857   rm -f core *.core core.conftest.* &&
1858     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1859     exit $exit_status
1860 ' 0
1861 for ac_signal in 1 2 13 15; do
1862   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1863 done
1864 ac_signal=0
1865
1866 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1867 rm -f -r conftest* confdefs.h
1868
1869 # Predefined preprocessor variables.
1870
1871 cat >>confdefs.h <<_ACEOF
1872 @%:@define PACKAGE_NAME "$PACKAGE_NAME"
1873 _ACEOF
1874
1875
1876 cat >>confdefs.h <<_ACEOF
1877 @%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1878 _ACEOF
1879
1880
1881 cat >>confdefs.h <<_ACEOF
1882 @%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
1883 _ACEOF
1884
1885
1886 cat >>confdefs.h <<_ACEOF
1887 @%:@define PACKAGE_STRING "$PACKAGE_STRING"
1888 _ACEOF
1889
1890
1891 cat >>confdefs.h <<_ACEOF
1892 @%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1893 _ACEOF
1894
1895
1896 # Let the site file select an alternate cache file if it wants to.
1897 # Prefer explicitly selected file to automatically selected ones.
1898 if test -n "$CONFIG_SITE"; then
1899   set x "$CONFIG_SITE"
1900 elif test "x$prefix" != xNONE; then
1901   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1902 else
1903   set x "$ac_default_prefix/share/config.site" \
1904         "$ac_default_prefix/etc/config.site"
1905 fi
1906 shift
1907 for ac_site_file
1908 do
1909   if test -r "$ac_site_file"; then
1910     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1911 echo "$as_me: loading site script $ac_site_file" >&6;}
1912     sed 's/^/| /' "$ac_site_file" >&5
1913     . "$ac_site_file"
1914   fi
1915 done
1916
1917 if test -r "$cache_file"; then
1918   # Some versions of bash will fail to source /dev/null (special
1919   # files actually), so we avoid doing that.
1920   if test -f "$cache_file"; then
1921     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1922 echo "$as_me: loading cache $cache_file" >&6;}
1923     case $cache_file in
1924       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1925       *)                      . "./$cache_file";;
1926     esac
1927   fi
1928 else
1929   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1930 echo "$as_me: creating cache $cache_file" >&6;}
1931   >$cache_file
1932 fi
1933
1934 # Check that the precious variables saved in the cache have kept the same
1935 # value.
1936 ac_cache_corrupted=false
1937 for ac_var in $ac_precious_vars; do
1938   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1939   eval ac_new_set=\$ac_env_${ac_var}_set
1940   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1941   eval ac_new_val=\$ac_env_${ac_var}_value
1942   case $ac_old_set,$ac_new_set in
1943     set,)
1944       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1945 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1946       ac_cache_corrupted=: ;;
1947     ,set)
1948       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1949 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1950       ac_cache_corrupted=: ;;
1951     ,);;
1952     *)
1953       if test "x$ac_old_val" != "x$ac_new_val"; then
1954         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1955 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1956         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1957 echo "$as_me:   former value:  $ac_old_val" >&2;}
1958         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1959 echo "$as_me:   current value: $ac_new_val" >&2;}
1960         ac_cache_corrupted=:
1961       fi;;
1962   esac
1963   # Pass precious variables to config.status.
1964   if test "$ac_new_set" = set; then
1965     case $ac_new_val in
1966     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1967     *) ac_arg=$ac_var=$ac_new_val ;;
1968     esac
1969     case " $ac_configure_args " in
1970       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1971       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1972     esac
1973   fi
1974 done
1975 if $ac_cache_corrupted; then
1976   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1977 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1978   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1979 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1980    { (exit 1); exit 1; }; }
1981 fi
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007 ac_ext=c
2008 ac_cpp='$CPP $CPPFLAGS'
2009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2012
2013
2014 ac_aux_dir=
2015 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2016   if test -f "$ac_dir/install-sh"; then
2017     ac_aux_dir=$ac_dir
2018     ac_install_sh="$ac_aux_dir/install-sh -c"
2019     break
2020   elif test -f "$ac_dir/install.sh"; then
2021     ac_aux_dir=$ac_dir
2022     ac_install_sh="$ac_aux_dir/install.sh -c"
2023     break
2024   elif test -f "$ac_dir/shtool"; then
2025     ac_aux_dir=$ac_dir
2026     ac_install_sh="$ac_aux_dir/shtool install -c"
2027     break
2028   fi
2029 done
2030 if test -z "$ac_aux_dir"; then
2031   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2032 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2033    { (exit 1); exit 1; }; }
2034 fi
2035
2036 # These three variables are undocumented and unsupported,
2037 # and are intended to be withdrawn in a future Autoconf release.
2038 # They can cause serious problems if a builder's source tree is in a directory
2039 # whose full name contains unusual characters.
2040 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2041 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2042 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2043
2044
2045 # Make sure we can run config.sub.
2046 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2047   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2048 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2049    { (exit 1); exit 1; }; }
2050
2051 { echo "$as_me:$LINENO: checking build system type" >&5
2052 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2053 if test "${ac_cv_build+set}" = set; then
2054   echo $ECHO_N "(cached) $ECHO_C" >&6
2055 else
2056   ac_build_alias=$build_alias
2057 test "x$ac_build_alias" = x &&
2058   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2059 test "x$ac_build_alias" = x &&
2060   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2061 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2062    { (exit 1); exit 1; }; }
2063 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2064   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2065 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2066    { (exit 1); exit 1; }; }
2067
2068 fi
2069 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2070 echo "${ECHO_T}$ac_cv_build" >&6; }
2071 case $ac_cv_build in
2072 *-*-*) ;;
2073 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2074 echo "$as_me: error: invalid value of canonical build" >&2;}
2075    { (exit 1); exit 1; }; };;
2076 esac
2077 build=$ac_cv_build
2078 ac_save_IFS=$IFS; IFS='-'
2079 set x $ac_cv_build
2080 shift
2081 build_cpu=$1
2082 build_vendor=$2
2083 shift; shift
2084 # Remember, the first character of IFS is used to create $*,
2085 # except with old shells:
2086 build_os=$*
2087 IFS=$ac_save_IFS
2088 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2089
2090
2091 { echo "$as_me:$LINENO: checking host system type" >&5
2092 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2093 if test "${ac_cv_host+set}" = set; then
2094   echo $ECHO_N "(cached) $ECHO_C" >&6
2095 else
2096   if test "x$host_alias" = x; then
2097   ac_cv_host=$ac_cv_build
2098 else
2099   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2100     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2101 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2102    { (exit 1); exit 1; }; }
2103 fi
2104
2105 fi
2106 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2107 echo "${ECHO_T}$ac_cv_host" >&6; }
2108 case $ac_cv_host in
2109 *-*-*) ;;
2110 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2111 echo "$as_me: error: invalid value of canonical host" >&2;}
2112    { (exit 1); exit 1; }; };;
2113 esac
2114 host=$ac_cv_host
2115 ac_save_IFS=$IFS; IFS='-'
2116 set x $ac_cv_host
2117 shift
2118 host_cpu=$1
2119 host_vendor=$2
2120 shift; shift
2121 # Remember, the first character of IFS is used to create $*,
2122 # except with old shells:
2123 host_os=$*
2124 IFS=$ac_save_IFS
2125 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2126
2127
2128
2129
2130 am__api_version='1.10'
2131
2132 # Find a good install program.  We prefer a C program (faster),
2133 # so one script is as good as another.  But avoid the broken or
2134 # incompatible versions:
2135 # SysV /etc/install, /usr/sbin/install
2136 # SunOS /usr/etc/install
2137 # IRIX /sbin/install
2138 # AIX /bin/install
2139 # AmigaOS /C/install, which installs bootblocks on floppy discs
2140 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2141 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2142 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2143 # OS/2's system install, which has a completely different semantic
2144 # ./install, which can be erroneously created by make from ./install.sh.
2145 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2146 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2147 if test -z "$INSTALL"; then
2148 if test "${ac_cv_path_install+set}" = set; then
2149   echo $ECHO_N "(cached) $ECHO_C" >&6
2150 else
2151   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2152 for as_dir in $PATH
2153 do
2154   IFS=$as_save_IFS
2155   test -z "$as_dir" && as_dir=.
2156   # Account for people who put trailing slashes in PATH elements.
2157 case $as_dir/ in
2158   ./ | .// | /cC/* | \
2159   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2160   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2161   /usr/ucb/* ) ;;
2162   *)
2163     # OSF1 and SCO ODT 3.0 have their own names for install.
2164     # Don't use installbsd from OSF since it installs stuff as root
2165     # by default.
2166     for ac_prog in ginstall scoinst install; do
2167       for ac_exec_ext in '' $ac_executable_extensions; do
2168         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2169           if test $ac_prog = install &&
2170             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2171             # AIX install.  It has an incompatible calling convention.
2172             :
2173           elif test $ac_prog = install &&
2174             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2175             # program-specific install script used by HP pwplus--don't use.
2176             :
2177           else
2178             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2179             break 3
2180           fi
2181         fi
2182       done
2183     done
2184     ;;
2185 esac
2186 done
2187 IFS=$as_save_IFS
2188
2189
2190 fi
2191   if test "${ac_cv_path_install+set}" = set; then
2192     INSTALL=$ac_cv_path_install
2193   else
2194     # As a last resort, use the slow shell script.  Don't cache a
2195     # value for INSTALL within a source directory, because that will
2196     # break other packages using the cache if that directory is
2197     # removed, or if the value is a relative name.
2198     INSTALL=$ac_install_sh
2199   fi
2200 fi
2201 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2202 echo "${ECHO_T}$INSTALL" >&6; }
2203
2204 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2205 # It thinks the first close brace ends the variable substitution.
2206 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2207
2208 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2209
2210 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2211
2212 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2213 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2214 # Just in case
2215 sleep 1
2216 echo timestamp > conftest.file
2217 # Do `set' in a subshell so we don't clobber the current shell's
2218 # arguments.  Must try -L first in case configure is actually a
2219 # symlink; some systems play weird games with the mod time of symlinks
2220 # (eg FreeBSD returns the mod time of the symlink's containing
2221 # directory).
2222 if (
2223    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2224    if test "$*" = "X"; then
2225       # -L didn't work.
2226       set X `ls -t $srcdir/configure conftest.file`
2227    fi
2228    rm -f conftest.file
2229    if test "$*" != "X $srcdir/configure conftest.file" \
2230       && test "$*" != "X conftest.file $srcdir/configure"; then
2231
2232       # If neither matched, then we have a broken ls.  This can happen
2233       # if, for instance, CONFIG_SHELL is bash and it inherits a
2234       # broken ls alias from the environment.  This has actually
2235       # happened.  Such a system could not be considered "sane".
2236       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2237 alias in your environment" >&5
2238 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2239 alias in your environment" >&2;}
2240    { (exit 1); exit 1; }; }
2241    fi
2242
2243    test "$2" = conftest.file
2244    )
2245 then
2246    # Ok.
2247    :
2248 else
2249    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2250 Check your system clock" >&5
2251 echo "$as_me: error: newly created file is older than distributed files!
2252 Check your system clock" >&2;}
2253    { (exit 1); exit 1; }; }
2254 fi
2255 { echo "$as_me:$LINENO: result: yes" >&5
2256 echo "${ECHO_T}yes" >&6; }
2257 test "$program_prefix" != NONE &&
2258   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2259 # Use a double $ so make ignores it.
2260 test "$program_suffix" != NONE &&
2261   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2262 # Double any \ or $.  echo might interpret backslashes.
2263 # By default was `s,x,x', remove it if useless.
2264 cat <<\_ACEOF >conftest.sed
2265 s/[\\$]/&&/g;s/;s,x,x,$//
2266 _ACEOF
2267 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2268 rm -f conftest.sed
2269
2270 # expand $ac_aux_dir to an absolute path
2271 am_aux_dir=`cd $ac_aux_dir && pwd`
2272
2273 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2274 # Use eval to expand $SHELL
2275 if eval "$MISSING --run true"; then
2276   am_missing_run="$MISSING --run "
2277 else
2278   am_missing_run=
2279   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2280 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2281 fi
2282
2283 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2284 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2285 if test -z "$MKDIR_P"; then
2286   if test "${ac_cv_path_mkdir+set}" = set; then
2287   echo $ECHO_N "(cached) $ECHO_C" >&6
2288 else
2289   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2290 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2291 do
2292   IFS=$as_save_IFS
2293   test -z "$as_dir" && as_dir=.
2294   for ac_prog in mkdir gmkdir; do
2295          for ac_exec_ext in '' $ac_executable_extensions; do
2296            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2297            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2298              'mkdir (GNU coreutils) '* | \
2299              'mkdir (coreutils) '* | \
2300              'mkdir (fileutils) '4.1*)
2301                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2302                break 3;;
2303            esac
2304          done
2305        done
2306 done
2307 IFS=$as_save_IFS
2308
2309 fi
2310
2311   if test "${ac_cv_path_mkdir+set}" = set; then
2312     MKDIR_P="$ac_cv_path_mkdir -p"
2313   else
2314     # As a last resort, use the slow shell script.  Don't cache a
2315     # value for MKDIR_P within a source directory, because that will
2316     # break other packages using the cache if that directory is
2317     # removed, or if the value is a relative name.
2318     test -d ./--version && rmdir ./--version
2319     MKDIR_P="$ac_install_sh -d"
2320   fi
2321 fi
2322 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2323 echo "${ECHO_T}$MKDIR_P" >&6; }
2324
2325 mkdir_p="$MKDIR_P"
2326 case $mkdir_p in
2327   [\\/$]* | ?:[\\/]*) ;;
2328   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2329 esac
2330
2331 for ac_prog in gawk mawk nawk awk
2332 do
2333   # Extract the first word of "$ac_prog", so it can be a program name with args.
2334 set dummy $ac_prog; ac_word=$2
2335 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2336 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2337 if test "${ac_cv_prog_AWK+set}" = set; then
2338   echo $ECHO_N "(cached) $ECHO_C" >&6
2339 else
2340   if test -n "$AWK"; then
2341   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2342 else
2343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2344 for as_dir in $PATH
2345 do
2346   IFS=$as_save_IFS
2347   test -z "$as_dir" && as_dir=.
2348   for ac_exec_ext in '' $ac_executable_extensions; do
2349   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2350     ac_cv_prog_AWK="$ac_prog"
2351     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2352     break 2
2353   fi
2354 done
2355 done
2356 IFS=$as_save_IFS
2357
2358 fi
2359 fi
2360 AWK=$ac_cv_prog_AWK
2361 if test -n "$AWK"; then
2362   { echo "$as_me:$LINENO: result: $AWK" >&5
2363 echo "${ECHO_T}$AWK" >&6; }
2364 else
2365   { echo "$as_me:$LINENO: result: no" >&5
2366 echo "${ECHO_T}no" >&6; }
2367 fi
2368
2369
2370   test -n "$AWK" && break
2371 done
2372
2373 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2374 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2375 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2376 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2377   echo $ECHO_N "(cached) $ECHO_C" >&6
2378 else
2379   cat >conftest.make <<\_ACEOF
2380 SHELL = /bin/sh
2381 all:
2382         @echo '@@@%%%=$(MAKE)=@@@%%%'
2383 _ACEOF
2384 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2385 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2386   *@@@%%%=?*=@@@%%%*)
2387     eval ac_cv_prog_make_${ac_make}_set=yes;;
2388   *)
2389     eval ac_cv_prog_make_${ac_make}_set=no;;
2390 esac
2391 rm -f conftest.make
2392 fi
2393 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2394   { echo "$as_me:$LINENO: result: yes" >&5
2395 echo "${ECHO_T}yes" >&6; }
2396   SET_MAKE=
2397 else
2398   { echo "$as_me:$LINENO: result: no" >&5
2399 echo "${ECHO_T}no" >&6; }
2400   SET_MAKE="MAKE=${MAKE-make}"
2401 fi
2402
2403 rm -rf .tst 2>/dev/null
2404 mkdir .tst 2>/dev/null
2405 if test -d .tst; then
2406   am__leading_dot=.
2407 else
2408   am__leading_dot=_
2409 fi
2410 rmdir .tst 2>/dev/null
2411
2412 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2413   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2414   # is not polluted with repeated "-I."
2415   am__isrc=' -I$(srcdir)'
2416   # test to see if srcdir already configured
2417   if test -f $srcdir/config.status; then
2418     { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2419 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2420    { (exit 1); exit 1; }; }
2421   fi
2422 fi
2423
2424 # test whether we have cygpath
2425 if test -z "$CYGPATH_W"; then
2426   if (cygpath --version) >/dev/null 2>/dev/null; then
2427     CYGPATH_W='cygpath -w'
2428   else
2429     CYGPATH_W=echo
2430   fi
2431 fi
2432
2433
2434 # Define the identity of the package.
2435  PACKAGE='nfs-utils'
2436  VERSION='1.0.10'
2437
2438
2439 cat >>confdefs.h <<_ACEOF
2440 @%:@define PACKAGE "$PACKAGE"
2441 _ACEOF
2442
2443  
2444 cat >>confdefs.h <<_ACEOF
2445 @%:@define VERSION "$VERSION"
2446 _ACEOF
2447
2448 # Some tools Automake needs.
2449
2450 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2451
2452
2453 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2454
2455
2456 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2457
2458
2459 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2460
2461
2462 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2463
2464 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2465
2466 # Installed binaries are usually stripped using `strip' when the user
2467 # run `make install-strip'.  However `strip' might not be the right
2468 # tool to use in cross-compilation environments, therefore Automake
2469 # will honor the `STRIP' environment variable to overrule this program.
2470 if test "$cross_compiling" != no; then
2471   if test -n "$ac_tool_prefix"; then
2472   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2473 set dummy ${ac_tool_prefix}strip; ac_word=$2
2474 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2476 if test "${ac_cv_prog_STRIP+set}" = set; then
2477   echo $ECHO_N "(cached) $ECHO_C" >&6
2478 else
2479   if test -n "$STRIP"; then
2480   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2481 else
2482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2483 for as_dir in $PATH
2484 do
2485   IFS=$as_save_IFS
2486   test -z "$as_dir" && as_dir=.
2487   for ac_exec_ext in '' $ac_executable_extensions; do
2488   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2489     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2490     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2491     break 2
2492   fi
2493 done
2494 done
2495 IFS=$as_save_IFS
2496
2497 fi
2498 fi
2499 STRIP=$ac_cv_prog_STRIP
2500 if test -n "$STRIP"; then
2501   { echo "$as_me:$LINENO: result: $STRIP" >&5
2502 echo "${ECHO_T}$STRIP" >&6; }
2503 else
2504   { echo "$as_me:$LINENO: result: no" >&5
2505 echo "${ECHO_T}no" >&6; }
2506 fi
2507
2508
2509 fi
2510 if test -z "$ac_cv_prog_STRIP"; then
2511   ac_ct_STRIP=$STRIP
2512   # Extract the first word of "strip", so it can be a program name with args.
2513 set dummy strip; ac_word=$2
2514 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2516 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2517   echo $ECHO_N "(cached) $ECHO_C" >&6
2518 else
2519   if test -n "$ac_ct_STRIP"; then
2520   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2521 else
2522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2523 for as_dir in $PATH
2524 do
2525   IFS=$as_save_IFS
2526   test -z "$as_dir" && as_dir=.
2527   for ac_exec_ext in '' $ac_executable_extensions; do
2528   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2529     ac_cv_prog_ac_ct_STRIP="strip"
2530     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2531     break 2
2532   fi
2533 done
2534 done
2535 IFS=$as_save_IFS
2536
2537 fi
2538 fi
2539 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2540 if test -n "$ac_ct_STRIP"; then
2541   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2542 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2543 else
2544   { echo "$as_me:$LINENO: result: no" >&5
2545 echo "${ECHO_T}no" >&6; }
2546 fi
2547
2548   if test "x$ac_ct_STRIP" = x; then
2549     STRIP=":"
2550   else
2551     case $cross_compiling:$ac_tool_warned in
2552 yes:)
2553 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2554 whose name does not start with the host triplet.  If you think this
2555 configuration is useful to you, please write to autoconf@gnu.org." >&5
2556 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2557 whose name does not start with the host triplet.  If you think this
2558 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2559 ac_tool_warned=yes ;;
2560 esac
2561     STRIP=$ac_ct_STRIP
2562   fi
2563 else
2564   STRIP="$ac_cv_prog_STRIP"
2565 fi
2566
2567 fi
2568 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2569
2570 # We need awk for the "check" target.  The system "awk" is bad on
2571 # some platforms.
2572 # Always define AMTAR for backward compatibility.
2573
2574 AMTAR=${AMTAR-"${am_missing_run}tar"}
2575
2576 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2577
2578
2579
2580
2581
2582
2583
2584 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2585 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2586     # Check whether --enable-maintainer-mode was given.
2587 if test "${enable_maintainer_mode+set}" = set; then
2588   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2589 else
2590   USE_MAINTAINER_MODE=no
2591 fi
2592
2593   { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2594 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2595    if test $USE_MAINTAINER_MODE = yes; then
2596   MAINTAINER_MODE_TRUE=
2597   MAINTAINER_MODE_FALSE='#'
2598 else
2599   MAINTAINER_MODE_TRUE='#'
2600   MAINTAINER_MODE_FALSE=
2601 fi
2602
2603   MAINT=$MAINTAINER_MODE_TRUE
2604   
2605
2606
2607
2608 # Check whether --with-release was given.
2609 if test "${with_release+set}" = set; then
2610   withval=$with_release; RELEASE=$withval
2611 else
2612   RELEASE=1
2613 fi
2614
2615         
2616
2617 # Check whether --with-statedir was given.
2618 if test "${with_statedir+set}" = set; then
2619   withval=$with_statedir; statedir=$withval
2620 else
2621   statedir=/var/lib/nfs
2622 fi
2623
2624         
2625
2626 # Check whether --with-statduser was given.
2627 if test "${with_statduser+set}" = set; then
2628   withval=$with_statduser; statduser=$withval
2629 else
2630   if test "x$cross_compiling" = "xno"; then
2631                 if grep -s '^rpcuser:' /etc/passwd > /dev/null; then
2632                         statduser=rpcuser
2633                 else
2634                         statduser=nobody
2635                 fi
2636         else
2637                 statduser=nobody
2638         fi
2639 fi
2640
2641         
2642 # Check whether --enable-nfsv3 was given.
2643 if test "${enable_nfsv3+set}" = set; then
2644   enableval=$enable_nfsv3; enable_nfsv3=$enableval
2645 else
2646   enable_nfsv3=yes
2647 fi
2648
2649         if test "$enable_nfsv3" = yes; then
2650                 
2651 cat >>confdefs.h <<\_ACEOF
2652 @%:@define NFS3_SUPPORTED 1
2653 _ACEOF
2654
2655         else
2656                 enable_nfsv3=
2657         fi
2658         
2659 # Check whether --enable-nfsv4 was given.
2660 if test "${enable_nfsv4+set}" = set; then
2661   enableval=$enable_nfsv4; enable_nfsv4=$enableval
2662 else
2663   enable_nfsv4=yes
2664 fi
2665
2666         if test "$enable_nfsv4" = yes; then
2667                 
2668 cat >>confdefs.h <<\_ACEOF
2669 @%:@define NFS4_SUPPORTED 1
2670 _ACEOF
2671
2672                 IDMAPD=idmapd
2673         else
2674                 enable_nfsv4=
2675                 IDMAPD=
2676         fi
2677         
2678         
2679          if test "$enable_nfsv4" = "yes"; then
2680   CONFIG_NFSV4_TRUE=
2681   CONFIG_NFSV4_FALSE='#'
2682 else
2683   CONFIG_NFSV4_TRUE='#'
2684   CONFIG_NFSV4_FALSE=
2685 fi
2686
2687 # Check whether --enable-gss was given.
2688 if test "${enable_gss+set}" = set; then
2689   enableval=$enable_gss; enable_gss=$enableval
2690 else
2691   enable_gss=yes
2692 fi
2693
2694         if test "$enable_gss" = yes; then
2695                 
2696 cat >>confdefs.h <<\_ACEOF
2697 @%:@define GSS_SUPPORTED 1
2698 _ACEOF
2699
2700                 GSSD=gssd
2701                 SVCGSSD=svcgssd
2702         else
2703                 enable_gss=
2704                 GSSD=
2705                 SVCGSSD=
2706         fi
2707         
2708         
2709         
2710          if test "$enable_gss" = "yes"; then
2711   CONFIG_GSS_TRUE=
2712   CONFIG_GSS_FALSE='#'
2713 else
2714   CONFIG_GSS_TRUE='#'
2715   CONFIG_GSS_FALSE=
2716 fi
2717
2718 # Check whether --enable-kprefix was given.
2719 if test "${enable_kprefix+set}" = set; then
2720   enableval=$enable_kprefix; test "$enableval" = "yes" && kprefix=k
2721 else
2722   kprefix=
2723 fi
2724
2725         
2726 # Check whether --enable-secure-statd was given.
2727 if test "${enable_secure_statd+set}" = set; then
2728   enableval=$enable_secure_statd; test "$enableval" = "yes" && secure_statd=yes
2729 else
2730   secure_statd=no
2731 fi
2732
2733         if test "$secure_statd" = yes; then
2734                 
2735 cat >>confdefs.h <<\_ACEOF
2736 @%:@define RESTRICTED_STATD 1
2737 _ACEOF
2738
2739         fi
2740         
2741 # Check whether --enable-rquotad was given.
2742 if test "${enable_rquotad+set}" = set; then
2743   enableval=$enable_rquotad; enable_rquotad=$enableval
2744 else
2745   enable_rquotad=yes
2746 fi
2747
2748         if test "$enable_rquotad" = yes; then
2749                 RQUOTAD=rquotad
2750         else
2751                 RQUOTAD=
2752         fi
2753          if test "$enable_rquotad" = "yes"; then
2754   CONFIG_RQUOTAD_TRUE=
2755   CONFIG_RQUOTAD_FALSE='#'
2756 else
2757   CONFIG_RQUOTAD_TRUE='#'
2758   CONFIG_RQUOTAD_FALSE=
2759 fi
2760
2761
2762 # Check whether --enable-mount was given.
2763 if test "${enable_mount+set}" = set; then
2764   enableval=$enable_mount; enable_mount=$enableval
2765 else
2766   enable_mount=no
2767 fi
2768
2769          if test "$enable_mount" = "yes"; then
2770   CONFIG_MOUNT_TRUE=
2771   CONFIG_MOUNT_FALSE='#'
2772 else
2773   CONFIG_MOUNT_TRUE='#'
2774   CONFIG_MOUNT_FALSE=
2775 fi
2776
2777
2778 # Check whether user wants TCP wrappers support
2779 DEPDIR="${am__leading_dot}deps"
2780
2781 ac_config_commands="$ac_config_commands depfiles"
2782
2783
2784 am_make=${MAKE-make}
2785 cat > confinc << 'END'
2786 am__doit:
2787         @echo done
2788 .PHONY: am__doit
2789 END
2790 # If we don't find an include directive, just comment out the code.
2791 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2792 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2793 am__include="#"
2794 am__quote=
2795 _am_result=none
2796 # First try GNU make style include.
2797 echo "include confinc" > confmf
2798 # We grep out `Entering directory' and `Leaving directory'
2799 # messages which can occur if `w' ends up in MAKEFLAGS.
2800 # In particular we don't look at `^make:' because GNU make might
2801 # be invoked under some other name (usually "gmake"), in which
2802 # case it prints its new name instead of `make'.
2803 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2804    am__include=include
2805    am__quote=
2806    _am_result=GNU
2807 fi
2808 # Now try BSD make style include.
2809 if test "$am__include" = "#"; then
2810    echo '.include "confinc"' > confmf
2811    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2812       am__include=.include
2813       am__quote="\""
2814       _am_result=BSD
2815    fi
2816 fi
2817
2818
2819 { echo "$as_me:$LINENO: result: $_am_result" >&5
2820 echo "${ECHO_T}$_am_result" >&6; }
2821 rm -f confinc confmf
2822
2823 # Check whether --enable-dependency-tracking was given.
2824 if test "${enable_dependency_tracking+set}" = set; then
2825   enableval=$enable_dependency_tracking; 
2826 fi
2827
2828 if test "x$enable_dependency_tracking" != xno; then
2829   am_depcomp="$ac_aux_dir/depcomp"
2830   AMDEPBACKSLASH='\'
2831 fi
2832  if test "x$enable_dependency_tracking" != xno; then
2833   AMDEP_TRUE=
2834   AMDEP_FALSE='#'
2835 else
2836   AMDEP_TRUE='#'
2837   AMDEP_FALSE=
2838 fi
2839
2840
2841 ac_ext=c
2842 ac_cpp='$CPP $CPPFLAGS'
2843 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2844 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2845 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2846 if test -n "$ac_tool_prefix"; then
2847   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2848 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2849 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2851 if test "${ac_cv_prog_CC+set}" = set; then
2852   echo $ECHO_N "(cached) $ECHO_C" >&6
2853 else
2854   if test -n "$CC"; then
2855   ac_cv_prog_CC="$CC" # Let the user override the test.
2856 else
2857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2858 for as_dir in $PATH
2859 do
2860   IFS=$as_save_IFS
2861   test -z "$as_dir" && as_dir=.
2862   for ac_exec_ext in '' $ac_executable_extensions; do
2863   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2864     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2865     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2866     break 2
2867   fi
2868 done
2869 done
2870 IFS=$as_save_IFS
2871
2872 fi
2873 fi
2874 CC=$ac_cv_prog_CC
2875 if test -n "$CC"; then
2876   { echo "$as_me:$LINENO: result: $CC" >&5
2877 echo "${ECHO_T}$CC" >&6; }
2878 else
2879   { echo "$as_me:$LINENO: result: no" >&5
2880 echo "${ECHO_T}no" >&6; }
2881 fi
2882
2883
2884 fi
2885 if test -z "$ac_cv_prog_CC"; then
2886   ac_ct_CC=$CC
2887   # Extract the first word of "gcc", so it can be a program name with args.
2888 set dummy gcc; ac_word=$2
2889 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2890 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2891 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2892   echo $ECHO_N "(cached) $ECHO_C" >&6
2893 else
2894   if test -n "$ac_ct_CC"; then
2895   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2896 else
2897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2898 for as_dir in $PATH
2899 do
2900   IFS=$as_save_IFS
2901   test -z "$as_dir" && as_dir=.
2902   for ac_exec_ext in '' $ac_executable_extensions; do
2903   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2904     ac_cv_prog_ac_ct_CC="gcc"
2905     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2906     break 2
2907   fi
2908 done
2909 done
2910 IFS=$as_save_IFS
2911
2912 fi
2913 fi
2914 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2915 if test -n "$ac_ct_CC"; then
2916   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2917 echo "${ECHO_T}$ac_ct_CC" >&6; }
2918 else
2919   { echo "$as_me:$LINENO: result: no" >&5
2920 echo "${ECHO_T}no" >&6; }
2921 fi
2922
2923   if test "x$ac_ct_CC" = x; then
2924     CC=""
2925   else
2926     case $cross_compiling:$ac_tool_warned in
2927 yes:)
2928 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2929 whose name does not start with the host triplet.  If you think this
2930 configuration is useful to you, please write to autoconf@gnu.org." >&5
2931 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2932 whose name does not start with the host triplet.  If you think this
2933 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2934 ac_tool_warned=yes ;;
2935 esac
2936     CC=$ac_ct_CC
2937   fi
2938 else
2939   CC="$ac_cv_prog_CC"
2940 fi
2941
2942 if test -z "$CC"; then
2943           if test -n "$ac_tool_prefix"; then
2944     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2945 set dummy ${ac_tool_prefix}cc; ac_word=$2
2946 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2947 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2948 if test "${ac_cv_prog_CC+set}" = set; then
2949   echo $ECHO_N "(cached) $ECHO_C" >&6
2950 else
2951   if test -n "$CC"; then
2952   ac_cv_prog_CC="$CC" # Let the user override the test.
2953 else
2954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2955 for as_dir in $PATH
2956 do
2957   IFS=$as_save_IFS
2958   test -z "$as_dir" && as_dir=.
2959   for ac_exec_ext in '' $ac_executable_extensions; do
2960   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2961     ac_cv_prog_CC="${ac_tool_prefix}cc"
2962     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2963     break 2
2964   fi
2965 done
2966 done
2967 IFS=$as_save_IFS
2968
2969 fi
2970 fi
2971 CC=$ac_cv_prog_CC
2972 if test -n "$CC"; then
2973   { echo "$as_me:$LINENO: result: $CC" >&5
2974 echo "${ECHO_T}$CC" >&6; }
2975 else
2976   { echo "$as_me:$LINENO: result: no" >&5
2977 echo "${ECHO_T}no" >&6; }
2978 fi
2979
2980
2981   fi
2982 fi
2983 if test -z "$CC"; then
2984   # Extract the first word of "cc", so it can be a program name with args.
2985 set dummy cc; ac_word=$2
2986 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2987 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2988 if test "${ac_cv_prog_CC+set}" = set; then
2989   echo $ECHO_N "(cached) $ECHO_C" >&6
2990 else
2991   if test -n "$CC"; then
2992   ac_cv_prog_CC="$CC" # Let the user override the test.
2993 else
2994   ac_prog_rejected=no
2995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2996 for as_dir in $PATH
2997 do
2998   IFS=$as_save_IFS
2999   test -z "$as_dir" && as_dir=.
3000   for ac_exec_ext in '' $ac_executable_extensions; do
3001   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3002     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3003        ac_prog_rejected=yes
3004        continue
3005      fi
3006     ac_cv_prog_CC="cc"
3007     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3008     break 2
3009   fi
3010 done
3011 done
3012 IFS=$as_save_IFS
3013
3014 if test $ac_prog_rejected = yes; then
3015   # We found a bogon in the path, so make sure we never use it.
3016   set dummy $ac_cv_prog_CC
3017   shift
3018   if test $@%:@ != 0; then
3019     # We chose a different compiler from the bogus one.
3020     # However, it has the same basename, so the bogon will be chosen
3021     # first if we set CC to just the basename; use the full file name.
3022     shift
3023     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3024   fi
3025 fi
3026 fi
3027 fi
3028 CC=$ac_cv_prog_CC
3029 if test -n "$CC"; then
3030   { echo "$as_me:$LINENO: result: $CC" >&5
3031 echo "${ECHO_T}$CC" >&6; }
3032 else
3033   { echo "$as_me:$LINENO: result: no" >&5
3034 echo "${ECHO_T}no" >&6; }
3035 fi
3036
3037
3038 fi
3039 if test -z "$CC"; then
3040   if test -n "$ac_tool_prefix"; then
3041   for ac_prog in cl.exe
3042   do
3043     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3044 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3045 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3047 if test "${ac_cv_prog_CC+set}" = set; then
3048   echo $ECHO_N "(cached) $ECHO_C" >&6
3049 else
3050   if test -n "$CC"; then
3051   ac_cv_prog_CC="$CC" # Let the user override the test.
3052 else
3053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3054 for as_dir in $PATH
3055 do
3056   IFS=$as_save_IFS
3057   test -z "$as_dir" && as_dir=.
3058   for ac_exec_ext in '' $ac_executable_extensions; do
3059   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3060     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3061     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3062     break 2
3063   fi
3064 done
3065 done
3066 IFS=$as_save_IFS
3067
3068 fi
3069 fi
3070 CC=$ac_cv_prog_CC
3071 if test -n "$CC"; then
3072   { echo "$as_me:$LINENO: result: $CC" >&5
3073 echo "${ECHO_T}$CC" >&6; }
3074 else
3075   { echo "$as_me:$LINENO: result: no" >&5
3076 echo "${ECHO_T}no" >&6; }
3077 fi
3078
3079
3080     test -n "$CC" && break
3081   done
3082 fi
3083 if test -z "$CC"; then
3084   ac_ct_CC=$CC
3085   for ac_prog in cl.exe
3086 do
3087   # Extract the first word of "$ac_prog", so it can be a program name with args.
3088 set dummy $ac_prog; ac_word=$2
3089 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3090 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3091 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3092   echo $ECHO_N "(cached) $ECHO_C" >&6
3093 else
3094   if test -n "$ac_ct_CC"; then
3095   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3096 else
3097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3098 for as_dir in $PATH
3099 do
3100   IFS=$as_save_IFS
3101   test -z "$as_dir" && as_dir=.
3102   for ac_exec_ext in '' $ac_executable_extensions; do
3103   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3104     ac_cv_prog_ac_ct_CC="$ac_prog"
3105     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3106     break 2
3107   fi
3108 done
3109 done
3110 IFS=$as_save_IFS
3111
3112 fi
3113 fi
3114 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3115 if test -n "$ac_ct_CC"; then
3116   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3117 echo "${ECHO_T}$ac_ct_CC" >&6; }
3118 else
3119   { echo "$as_me:$LINENO: result: no" >&5
3120 echo "${ECHO_T}no" >&6; }
3121 fi
3122
3123
3124   test -n "$ac_ct_CC" && break
3125 done
3126
3127   if test "x$ac_ct_CC" = x; then
3128     CC=""
3129   else
3130     case $cross_compiling:$ac_tool_warned in
3131 yes:)
3132 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3133 whose name does not start with the host triplet.  If you think this
3134 configuration is useful to you, please write to autoconf@gnu.org." >&5
3135 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3136 whose name does not start with the host triplet.  If you think this
3137 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3138 ac_tool_warned=yes ;;
3139 esac
3140     CC=$ac_ct_CC
3141   fi
3142 fi
3143
3144 fi
3145
3146
3147 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3148 See \`config.log' for more details." >&5
3149 echo "$as_me: error: no acceptable C compiler found in \$PATH
3150 See \`config.log' for more details." >&2;}
3151    { (exit 1); exit 1; }; }
3152
3153 # Provide some information about the compiler.
3154 echo "$as_me:$LINENO: checking for C compiler version" >&5
3155 ac_compiler=`set X $ac_compile; echo $2`
3156 { (ac_try="$ac_compiler --version >&5"
3157 case "(($ac_try" in
3158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3159   *) ac_try_echo=$ac_try;;
3160 esac
3161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3162   (eval "$ac_compiler --version >&5") 2>&5
3163   ac_status=$?
3164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3165   (exit $ac_status); }
3166 { (ac_try="$ac_compiler -v >&5"
3167 case "(($ac_try" in
3168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3169   *) ac_try_echo=$ac_try;;
3170 esac
3171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3172   (eval "$ac_compiler -v >&5") 2>&5
3173   ac_status=$?
3174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3175   (exit $ac_status); }
3176 { (ac_try="$ac_compiler -V >&5"
3177 case "(($ac_try" in
3178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3179   *) ac_try_echo=$ac_try;;
3180 esac
3181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3182   (eval "$ac_compiler -V >&5") 2>&5
3183   ac_status=$?
3184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185   (exit $ac_status); }
3186
3187 cat >conftest.$ac_ext <<_ACEOF
3188 /* confdefs.h.  */
3189 _ACEOF
3190 cat confdefs.h >>conftest.$ac_ext
3191 cat >>conftest.$ac_ext <<_ACEOF
3192 /* end confdefs.h.  */
3193
3194 int
3195 main ()
3196 {
3197
3198   ;
3199   return 0;
3200 }
3201 _ACEOF
3202 ac_clean_files_save=$ac_clean_files
3203 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3204 # Try to create an executable without -o first, disregard a.out.
3205 # It will help us diagnose broken compilers, and finding out an intuition
3206 # of exeext.
3207 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3208 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3209 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3210 #
3211 # List of possible output files, starting from the most likely.
3212 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3213 # only as a last resort.  b.out is created by i960 compilers.
3214 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3215 #
3216 # The IRIX 6 linker writes into existing files which may not be
3217 # executable, retaining their permissions.  Remove them first so a
3218 # subsequent execution test works.
3219 ac_rmfiles=
3220 for ac_file in $ac_files
3221 do
3222   case $ac_file in
3223     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3224     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3225   esac
3226 done
3227 rm -f $ac_rmfiles
3228
3229 if { (ac_try="$ac_link_default"
3230 case "(($ac_try" in
3231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3232   *) ac_try_echo=$ac_try;;
3233 esac
3234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3235   (eval "$ac_link_default") 2>&5
3236   ac_status=$?
3237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3238   (exit $ac_status); }; then
3239   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3240 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3241 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3242 # so that the user can short-circuit this test for compilers unknown to
3243 # Autoconf.
3244 for ac_file in $ac_files ''
3245 do
3246   test -f "$ac_file" || continue
3247   case $ac_file in
3248     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3249         ;;
3250     [ab].out )
3251         # We found the default executable, but exeext='' is most
3252         # certainly right.
3253         break;;
3254     *.* )
3255         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3256         then :; else
3257            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3258         fi
3259         # We set ac_cv_exeext here because the later test for it is not
3260         # safe: cross compilers may not add the suffix if given an `-o'
3261         # argument, so we may need to know it at that point already.
3262         # Even if this section looks crufty: it has the advantage of
3263         # actually working.
3264         break;;
3265     * )
3266         break;;
3267   esac
3268 done
3269 test "$ac_cv_exeext" = no && ac_cv_exeext=
3270
3271 else
3272   ac_file=''
3273 fi
3274
3275 { echo "$as_me:$LINENO: result: $ac_file" >&5
3276 echo "${ECHO_T}$ac_file" >&6; }
3277 if test -z "$ac_file"; then
3278   echo "$as_me: failed program was:" >&5
3279 sed 's/^/| /' conftest.$ac_ext >&5
3280
3281 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3282 See \`config.log' for more details." >&5
3283 echo "$as_me: error: C compiler cannot create executables
3284 See \`config.log' for more details." >&2;}
3285    { (exit 77); exit 77; }; }
3286 fi
3287
3288 ac_exeext=$ac_cv_exeext
3289
3290 # Check that the compiler produces executables we can run.  If not, either
3291 # the compiler is broken, or we cross compile.
3292 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3293 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3294 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3295 # If not cross compiling, check that we can run a simple program.
3296 if test "$cross_compiling" != yes; then
3297   if { ac_try='./$ac_file'
3298   { (case "(($ac_try" in
3299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3300   *) ac_try_echo=$ac_try;;
3301 esac
3302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3303   (eval "$ac_try") 2>&5
3304   ac_status=$?
3305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3306   (exit $ac_status); }; }; then
3307     cross_compiling=no
3308   else
3309     if test "$cross_compiling" = maybe; then
3310         cross_compiling=yes
3311     else
3312         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3313 If you meant to cross compile, use \`--host'.
3314 See \`config.log' for more details." >&5
3315 echo "$as_me: error: cannot run C compiled programs.
3316 If you meant to cross compile, use \`--host'.
3317 See \`config.log' for more details." >&2;}
3318    { (exit 1); exit 1; }; }
3319     fi
3320   fi
3321 fi
3322 { echo "$as_me:$LINENO: result: yes" >&5
3323 echo "${ECHO_T}yes" >&6; }
3324
3325 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3326 ac_clean_files=$ac_clean_files_save
3327 # Check that the compiler produces executables we can run.  If not, either
3328 # the compiler is broken, or we cross compile.
3329 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3330 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3331 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3332 echo "${ECHO_T}$cross_compiling" >&6; }
3333
3334 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3335 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3336 if { (ac_try="$ac_link"
3337 case "(($ac_try" in
3338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3339   *) ac_try_echo=$ac_try;;
3340 esac
3341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3342   (eval "$ac_link") 2>&5
3343   ac_status=$?
3344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3345   (exit $ac_status); }; then
3346   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3347 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3348 # work properly (i.e., refer to `conftest.exe'), while it won't with
3349 # `rm'.
3350 for ac_file in conftest.exe conftest conftest.*; do
3351   test -f "$ac_file" || continue
3352   case $ac_file in
3353     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3354     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3355           break;;
3356     * ) break;;
3357   esac
3358 done
3359 else
3360   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3361 See \`config.log' for more details." >&5
3362 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3363 See \`config.log' for more details." >&2;}
3364    { (exit 1); exit 1; }; }
3365 fi
3366
3367 rm -f conftest$ac_cv_exeext
3368 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3369 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3370
3371 rm -f conftest.$ac_ext
3372 EXEEXT=$ac_cv_exeext
3373 ac_exeext=$EXEEXT
3374 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3375 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3376 if test "${ac_cv_objext+set}" = set; then
3377   echo $ECHO_N "(cached) $ECHO_C" >&6
3378 else
3379   cat >conftest.$ac_ext <<_ACEOF
3380 /* confdefs.h.  */
3381 _ACEOF
3382 cat confdefs.h >>conftest.$ac_ext
3383 cat >>conftest.$ac_ext <<_ACEOF
3384 /* end confdefs.h.  */
3385
3386 int
3387 main ()
3388 {
3389
3390   ;
3391   return 0;
3392 }
3393 _ACEOF
3394 rm -f conftest.o conftest.obj
3395 if { (ac_try="$ac_compile"
3396 case "(($ac_try" in
3397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3398   *) ac_try_echo=$ac_try;;
3399 esac
3400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3401   (eval "$ac_compile") 2>&5
3402   ac_status=$?
3403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3404   (exit $ac_status); }; then
3405   for ac_file in conftest.o conftest.obj conftest.*; do
3406   test -f "$ac_file" || continue;
3407   case $ac_file in
3408     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3409     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3410        break;;
3411   esac
3412 done
3413 else
3414   echo "$as_me: failed program was:" >&5
3415 sed 's/^/| /' conftest.$ac_ext >&5
3416
3417 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3418 See \`config.log' for more details." >&5
3419 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3420 See \`config.log' for more details." >&2;}
3421    { (exit 1); exit 1; }; }
3422 fi
3423
3424 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3425 fi
3426 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3427 echo "${ECHO_T}$ac_cv_objext" >&6; }
3428 OBJEXT=$ac_cv_objext
3429 ac_objext=$OBJEXT
3430 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3431 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3432 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3433   echo $ECHO_N "(cached) $ECHO_C" >&6
3434 else
3435   cat >conftest.$ac_ext <<_ACEOF
3436 /* confdefs.h.  */
3437 _ACEOF
3438 cat confdefs.h >>conftest.$ac_ext
3439 cat >>conftest.$ac_ext <<_ACEOF
3440 /* end confdefs.h.  */
3441
3442 int
3443 main ()
3444 {
3445 #ifndef __GNUC__
3446        choke me
3447 #endif
3448
3449   ;
3450   return 0;
3451 }
3452 _ACEOF
3453 rm -f conftest.$ac_objext
3454 if { (ac_try="$ac_compile"
3455 case "(($ac_try" in
3456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3457   *) ac_try_echo=$ac_try;;
3458 esac
3459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3460   (eval "$ac_compile") 2>conftest.er1
3461   ac_status=$?
3462   grep -v '^ *+' conftest.er1 >conftest.err
3463   rm -f conftest.er1
3464   cat conftest.err >&5
3465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3466   (exit $ac_status); } && {
3467          test -z "$ac_c_werror_flag" ||
3468          test ! -s conftest.err
3469        } && test -s conftest.$ac_objext; then
3470   ac_compiler_gnu=yes
3471 else
3472   echo "$as_me: failed program was:" >&5
3473 sed 's/^/| /' conftest.$ac_ext >&5
3474
3475         ac_compiler_gnu=no
3476 fi
3477
3478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3479 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3480
3481 fi
3482 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3483 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3484 GCC=`test $ac_compiler_gnu = yes && echo yes`
3485 ac_test_CFLAGS=${CFLAGS+set}
3486 ac_save_CFLAGS=$CFLAGS
3487 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3488 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3489 if test "${ac_cv_prog_cc_g+set}" = set; then
3490   echo $ECHO_N "(cached) $ECHO_C" >&6
3491 else
3492   ac_save_c_werror_flag=$ac_c_werror_flag
3493    ac_c_werror_flag=yes
3494    ac_cv_prog_cc_g=no
3495    CFLAGS="-g"
3496    cat >conftest.$ac_ext <<_ACEOF
3497 /* confdefs.h.  */
3498 _ACEOF
3499 cat confdefs.h >>conftest.$ac_ext
3500 cat >>conftest.$ac_ext <<_ACEOF
3501 /* end confdefs.h.  */
3502
3503 int
3504 main ()
3505 {
3506
3507   ;
3508   return 0;
3509 }
3510 _ACEOF
3511 rm -f conftest.$ac_objext
3512 if { (ac_try="$ac_compile"
3513 case "(($ac_try" in
3514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3515   *) ac_try_echo=$ac_try;;
3516 esac
3517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3518   (eval "$ac_compile") 2>conftest.er1
3519   ac_status=$?
3520   grep -v '^ *+' conftest.er1 >conftest.err
3521   rm -f conftest.er1
3522   cat conftest.err >&5
3523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3524   (exit $ac_status); } && {
3525          test -z "$ac_c_werror_flag" ||
3526          test ! -s conftest.err
3527        } && test -s conftest.$ac_objext; then
3528   ac_cv_prog_cc_g=yes
3529 else
3530   echo "$as_me: failed program was:" >&5
3531 sed 's/^/| /' conftest.$ac_ext >&5
3532
3533         CFLAGS=""
3534       cat >conftest.$ac_ext <<_ACEOF
3535 /* confdefs.h.  */
3536 _ACEOF
3537 cat confdefs.h >>conftest.$ac_ext
3538 cat >>conftest.$ac_ext <<_ACEOF
3539 /* end confdefs.h.  */
3540
3541 int
3542 main ()
3543 {
3544
3545   ;
3546   return 0;
3547 }
3548 _ACEOF
3549 rm -f conftest.$ac_objext
3550 if { (ac_try="$ac_compile"
3551 case "(($ac_try" in
3552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3553   *) ac_try_echo=$ac_try;;
3554 esac
3555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3556   (eval "$ac_compile") 2>conftest.er1
3557   ac_status=$?
3558   grep -v '^ *+' conftest.er1 >conftest.err
3559   rm -f conftest.er1
3560   cat conftest.err >&5
3561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3562   (exit $ac_status); } && {
3563          test -z "$ac_c_werror_flag" ||
3564          test ! -s conftest.err
3565        } && test -s conftest.$ac_objext; then
3566   :
3567 else
3568   echo "$as_me: failed program was:" >&5
3569 sed 's/^/| /' conftest.$ac_ext >&5
3570
3571         ac_c_werror_flag=$ac_save_c_werror_flag
3572          CFLAGS="-g"
3573          cat >conftest.$ac_ext <<_ACEOF
3574 /* confdefs.h.  */
3575 _ACEOF
3576 cat confdefs.h >>conftest.$ac_ext
3577 cat >>conftest.$ac_ext <<_ACEOF
3578 /* end confdefs.h.  */
3579
3580 int
3581 main ()
3582 {
3583
3584   ;
3585   return 0;
3586 }
3587 _ACEOF
3588 rm -f conftest.$ac_objext
3589 if { (ac_try="$ac_compile"
3590 case "(($ac_try" in
3591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3592   *) ac_try_echo=$ac_try;;
3593 esac
3594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3595   (eval "$ac_compile") 2>conftest.er1
3596   ac_status=$?
3597   grep -v '^ *+' conftest.er1 >conftest.err
3598   rm -f conftest.er1
3599   cat conftest.err >&5
3600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3601   (exit $ac_status); } && {
3602          test -z "$ac_c_werror_flag" ||
3603          test ! -s conftest.err
3604        } && test -s conftest.$ac_objext; then
3605   ac_cv_prog_cc_g=yes
3606 else
3607   echo "$as_me: failed program was:" >&5
3608 sed 's/^/| /' conftest.$ac_ext >&5
3609
3610         
3611 fi
3612
3613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3614 fi
3615
3616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3617 fi
3618
3619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3620    ac_c_werror_flag=$ac_save_c_werror_flag
3621 fi
3622 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3623 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3624 if test "$ac_test_CFLAGS" = set; then
3625   CFLAGS=$ac_save_CFLAGS
3626 elif test $ac_cv_prog_cc_g = yes; then
3627   if test "$GCC" = yes; then
3628     CFLAGS="-g -O2"
3629   else
3630     CFLAGS="-g"
3631   fi
3632 else
3633   if test "$GCC" = yes; then
3634     CFLAGS="-O2"
3635   else
3636     CFLAGS=
3637   fi
3638 fi
3639 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3640 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3641 if test "${ac_cv_prog_cc_c89+set}" = set; then
3642   echo $ECHO_N "(cached) $ECHO_C" >&6
3643 else
3644   ac_cv_prog_cc_c89=no
3645 ac_save_CC=$CC
3646 cat >conftest.$ac_ext <<_ACEOF
3647 /* confdefs.h.  */
3648 _ACEOF
3649 cat confdefs.h >>conftest.$ac_ext
3650 cat >>conftest.$ac_ext <<_ACEOF
3651 /* end confdefs.h.  */
3652 #include <stdarg.h>
3653 #include <stdio.h>
3654 #include <sys/types.h>
3655 #include <sys/stat.h>
3656 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3657 struct buf { int x; };
3658 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3659 static char *e (p, i)
3660      char **p;
3661      int i;
3662 {
3663   return p[i];
3664 }
3665 static char *f (char * (*g) (char **, int), char **p, ...)
3666 {
3667   char *s;
3668   va_list v;
3669   va_start (v,p);
3670   s = g (p, va_arg (v,int));
3671   va_end (v);
3672   return s;
3673 }
3674
3675 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3676    function prototypes and stuff, but not '\xHH' hex character constants.
3677    These don't provoke an error unfortunately, instead are silently treated
3678    as 'x'.  The following induces an error, until -std is added to get
3679    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3680    array size at least.  It's necessary to write '\x00'==0 to get something
3681    that's true only with -std.  */
3682 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3683
3684 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3685    inside strings and character constants.  */
3686 #define FOO(x) 'x'
3687 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3688
3689 int test (int i, double x);
3690 struct s1 {int (*f) (int a);};
3691 struct s2 {int (*f) (double a);};
3692 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3693 int argc;
3694 char **argv;
3695 int
3696 main ()
3697 {
3698 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3699   ;
3700   return 0;
3701 }
3702 _ACEOF
3703 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3704         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3705 do
3706   CC="$ac_save_CC $ac_arg"
3707   rm -f conftest.$ac_objext
3708 if { (ac_try="$ac_compile"
3709 case "(($ac_try" in
3710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3711   *) ac_try_echo=$ac_try;;
3712 esac
3713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3714   (eval "$ac_compile") 2>conftest.er1
3715   ac_status=$?
3716   grep -v '^ *+' conftest.er1 >conftest.err
3717   rm -f conftest.er1
3718   cat conftest.err >&5
3719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3720   (exit $ac_status); } && {
3721          test -z "$ac_c_werror_flag" ||
3722          test ! -s conftest.err
3723        } && test -s conftest.$ac_objext; then
3724   ac_cv_prog_cc_c89=$ac_arg
3725 else
3726   echo "$as_me: failed program was:" >&5
3727 sed 's/^/| /' conftest.$ac_ext >&5
3728
3729         
3730 fi
3731
3732 rm -f core conftest.err conftest.$ac_objext 
3733   test "x$ac_cv_prog_cc_c89" != "xno" && break
3734 done
3735 rm -f conftest.$ac_ext
3736 CC=$ac_save_CC
3737
3738 fi
3739 # AC_CACHE_VAL
3740 case "x$ac_cv_prog_cc_c89" in
3741   x)
3742     { echo "$as_me:$LINENO: result: none needed" >&5
3743 echo "${ECHO_T}none needed" >&6; } ;;
3744   xno)
3745     { echo "$as_me:$LINENO: result: unsupported" >&5
3746 echo "${ECHO_T}unsupported" >&6; } ;;
3747   *)
3748     CC="$CC $ac_cv_prog_cc_c89"
3749     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3750 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3751 esac
3752
3753
3754 ac_ext=c
3755 ac_cpp='$CPP $CPPFLAGS'
3756 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3757 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3758 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3759
3760 depcc="$CC"   am_compiler_list=
3761
3762 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3763 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3764 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3765   echo $ECHO_N "(cached) $ECHO_C" >&6
3766 else
3767   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3768   # We make a subdir and do the tests there.  Otherwise we can end up
3769   # making bogus files that we don't know about and never remove.  For
3770   # instance it was reported that on HP-UX the gcc test will end up
3771   # making a dummy file named `D' -- because `-MD' means `put the output
3772   # in D'.
3773   mkdir conftest.dir
3774   # Copy depcomp to subdir because otherwise we won't find it if we're
3775   # using a relative directory.
3776   cp "$am_depcomp" conftest.dir
3777   cd conftest.dir
3778   # We will build objects and dependencies in a subdirectory because
3779   # it helps to detect inapplicable dependency modes.  For instance
3780   # both Tru64's cc and ICC support -MD to output dependencies as a
3781   # side effect of compilation, but ICC will put the dependencies in
3782   # the current directory while Tru64 will put them in the object
3783   # directory.
3784   mkdir sub
3785
3786   am_cv_CC_dependencies_compiler_type=none
3787   if test "$am_compiler_list" = ""; then
3788      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3789   fi
3790   for depmode in $am_compiler_list; do
3791     # Setup a source with many dependencies, because some compilers
3792     # like to wrap large dependency lists on column 80 (with \), and
3793     # we should not choose a depcomp mode which is confused by this.
3794     #
3795     # We need to recreate these files for each test, as the compiler may
3796     # overwrite some of them when testing with obscure command lines.
3797     # This happens at least with the AIX C compiler.
3798     : > sub/conftest.c
3799     for i in 1 2 3 4 5 6; do
3800       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3801       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3802       # Solaris 8's {/usr,}/bin/sh.
3803       touch sub/conftst$i.h
3804     done
3805     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3806
3807     case $depmode in
3808     nosideeffect)
3809       # after this tag, mechanisms are not by side-effect, so they'll
3810       # only be used when explicitly requested
3811       if test "x$enable_dependency_tracking" = xyes; then
3812         continue
3813       else
3814         break
3815       fi
3816       ;;
3817     none) break ;;
3818     esac
3819     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3820     # mode.  It turns out that the SunPro C++ compiler does not properly
3821     # handle `-M -o', and we need to detect this.
3822     if depmode=$depmode \
3823        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3824        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3825        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3826          >/dev/null 2>conftest.err &&
3827        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3828        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3829        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3830        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3831       # icc doesn't choke on unknown options, it will just issue warnings
3832       # or remarks (even with -Werror).  So we grep stderr for any message
3833       # that says an option was ignored or not supported.
3834       # When given -MP, icc 7.0 and 7.1 complain thusly:
3835       #   icc: Command line warning: ignoring option '-M'; no argument required
3836       # The diagnosis changed in icc 8.0:
3837       #   icc: Command line remark: option '-MP' not supported
3838       if (grep 'ignoring option' conftest.err ||
3839           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3840         am_cv_CC_dependencies_compiler_type=$depmode
3841         break
3842       fi
3843     fi
3844   done
3845
3846   cd ..
3847   rm -rf conftest.dir
3848 else
3849   am_cv_CC_dependencies_compiler_type=none
3850 fi
3851
3852 fi
3853 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3854 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3855 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3856
3857  if 
3858   test "x$enable_dependency_tracking" != xno \
3859   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3860   am__fastdepCC_TRUE=
3861   am__fastdepCC_FALSE='#'
3862 else
3863   am__fastdepCC_TRUE='#'
3864   am__fastdepCC_FALSE=
3865 fi
3866
3867
3868
3869
3870   TCPW_MSG="no"
3871   
3872 # Check whether --with-tcp-wrappers was given.
3873 if test "${with_tcp_wrappers+set}" = set; then
3874   withval=$with_tcp_wrappers; with_tcpw=$withval
3875 else
3876   $with_tcpw=yes
3877 fi
3878
3879         if test "x$with_tcpw" != "xno" ; then
3880             saved_LIBS="$LIBS"
3881             saved_LDFLAGS="$LDFLAGS"
3882             saved_CPPFLAGS="$CPPFLAGS"
3883             if test -n "${with_tcpw}" -a "${with_tcpw}" != "yes"; then
3884                 if test -d "${with_tcpw}/lib"; then
3885                     if test -n "${need_dash_r}"; then
3886                         LDFLAGS="-L${with_tcpw}/lib -R${with_tcpw}/lib ${LDFLAGS}"
3887                     else
3888                         LDFLAGS="-L${with_tcpw}/lib ${LDFLAGS}"
3889                     fi
3890                 else
3891                     if test -n "${need_dash_r}"; then
3892                         LDFLAGS="-L${with_tcpw} -R${with_tcpw} ${LDFLAGS}"
3893                     else
3894                         LDFLAGS="-L${with_tcpw} ${LDFLAGS}"
3895                     fi
3896                 fi
3897                 if test -d "${with_tcpw}/include"; then
3898                     CPPFLAGS="-I${with_tcpw}/include ${CPPFLAGS}"
3899                 else
3900                     CPPFLAGS="-I${with_tcpw} ${CPPFLAGS}"
3901                 fi
3902             fi
3903             LIBWRAP="-lwrap"
3904             LIBS="$LIBWRAP $LIBS"
3905             { echo "$as_me:$LINENO: checking for libwrap" >&5
3906 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
3907             cat >conftest.$ac_ext <<_ACEOF
3908 /* confdefs.h.  */
3909 _ACEOF
3910 cat confdefs.h >>conftest.$ac_ext
3911 cat >>conftest.$ac_ext <<_ACEOF
3912 /* end confdefs.h.  */
3913
3914                 #include <tcpd.h>
3915                 int deny_severity = 0, allow_severity = 0;
3916                 
3917 int
3918 main ()
3919 {
3920 hosts_access(0);
3921   ;
3922   return 0;
3923 }
3924 _ACEOF
3925 rm -f conftest.$ac_objext conftest$ac_exeext
3926 if { (ac_try="$ac_link"
3927 case "(($ac_try" in
3928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3929   *) ac_try_echo=$ac_try;;
3930 esac
3931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3932   (eval "$ac_link") 2>conftest.er1
3933   ac_status=$?
3934   grep -v '^ *+' conftest.er1 >conftest.err
3935   rm -f conftest.er1
3936   cat conftest.err >&5
3937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3938   (exit $ac_status); } && {
3939          test -z "$ac_c_werror_flag" ||
3940          test ! -s conftest.err
3941        } && test -s conftest$ac_exeext &&
3942        $as_test_x conftest$ac_exeext; then
3943   
3944                 { echo "$as_me:$LINENO: result: yes" >&5
3945 echo "${ECHO_T}yes" >&6; }
3946                 
3947                 
3948 cat >>confdefs.h <<\_ACEOF
3949 @%:@define LIBWRAP 1
3950 _ACEOF
3951
3952                 
3953 cat >>confdefs.h <<\_ACEOF
3954 @%:@define HAVE_LIBWRAP 1
3955 _ACEOF
3956
3957                 
3958 cat >>confdefs.h <<\_ACEOF
3959 @%:@define HAVE_TCP_WRAPPER 1
3960 _ACEOF
3961
3962                 TCPW_MSG="yes"
3963                 
3964 else
3965   echo "$as_me: failed program was:" >&5
3966 sed 's/^/| /' conftest.$ac_ext >&5
3967
3968         
3969                 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
3970 echo "$as_me: error: *** libwrap missing" >&2;}
3971    { (exit 1); exit 1; }; }
3972                 
3973             
3974 fi
3975
3976 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3977       conftest$ac_exeext conftest.$ac_ext
3978             LIBS="$saved_LIBS"
3979         fi
3980   
3981   
3982   
3983
3984
3985
3986 ac_config_headers="$ac_config_headers support/include/config.h"
3987
3988
3989 # Checks for programs.
3990 ac_ext=cpp
3991 ac_cpp='$CXXCPP $CPPFLAGS'
3992 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3993 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3994 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3995 if test -z "$CXX"; then
3996   if test -n "$CCC"; then
3997     CXX=$CCC
3998   else
3999     if test -n "$ac_tool_prefix"; then
4000   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4001   do
4002     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4003 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4004 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4006 if test "${ac_cv_prog_CXX+set}" = set; then
4007   echo $ECHO_N "(cached) $ECHO_C" >&6
4008 else
4009   if test -n "$CXX"; then
4010   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4011 else
4012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4013 for as_dir in $PATH
4014 do
4015   IFS=$as_save_IFS
4016   test -z "$as_dir" && as_dir=.
4017   for ac_exec_ext in '' $ac_executable_extensions; do
4018   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4019     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4020     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4021     break 2
4022   fi
4023 done
4024 done
4025 IFS=$as_save_IFS
4026
4027 fi
4028 fi
4029 CXX=$ac_cv_prog_CXX
4030 if test -n "$CXX"; then
4031   { echo "$as_me:$LINENO: result: $CXX" >&5
4032 echo "${ECHO_T}$CXX" >&6; }
4033 else
4034   { echo "$as_me:$LINENO: result: no" >&5
4035 echo "${ECHO_T}no" >&6; }
4036 fi
4037
4038
4039     test -n "$CXX" && break
4040   done
4041 fi
4042 if test -z "$CXX"; then
4043   ac_ct_CXX=$CXX
4044   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4045 do
4046   # Extract the first word of "$ac_prog", so it can be a program name with args.
4047 set dummy $ac_prog; ac_word=$2
4048 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4050 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4051   echo $ECHO_N "(cached) $ECHO_C" >&6
4052 else
4053   if test -n "$ac_ct_CXX"; then
4054   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4055 else
4056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4057 for as_dir in $PATH
4058 do
4059   IFS=$as_save_IFS
4060   test -z "$as_dir" && as_dir=.
4061   for ac_exec_ext in '' $ac_executable_extensions; do
4062   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4063     ac_cv_prog_ac_ct_CXX="$ac_prog"
4064     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4065     break 2
4066   fi
4067 done
4068 done
4069 IFS=$as_save_IFS
4070
4071 fi
4072 fi
4073 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4074 if test -n "$ac_ct_CXX"; then
4075   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4076 echo "${ECHO_T}$ac_ct_CXX" >&6; }
4077 else
4078   { echo "$as_me:$LINENO: result: no" >&5
4079 echo "${ECHO_T}no" >&6; }
4080 fi
4081
4082
4083   test -n "$ac_ct_CXX" && break
4084 done
4085
4086   if test "x$ac_ct_CXX" = x; then
4087     CXX="g++"
4088   else
4089     case $cross_compiling:$ac_tool_warned in
4090 yes:)
4091 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4092 whose name does not start with the host triplet.  If you think this
4093 configuration is useful to you, please write to autoconf@gnu.org." >&5
4094 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4095 whose name does not start with the host triplet.  If you think this
4096 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4097 ac_tool_warned=yes ;;
4098 esac
4099     CXX=$ac_ct_CXX
4100   fi
4101 fi
4102
4103   fi
4104 fi
4105 # Provide some information about the compiler.
4106 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4107 ac_compiler=`set X $ac_compile; echo $2`
4108 { (ac_try="$ac_compiler --version >&5"
4109 case "(($ac_try" in
4110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4111   *) ac_try_echo=$ac_try;;
4112 esac
4113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4114   (eval "$ac_compiler --version >&5") 2>&5
4115   ac_status=$?
4116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117   (exit $ac_status); }
4118 { (ac_try="$ac_compiler -v >&5"
4119 case "(($ac_try" in
4120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4121   *) ac_try_echo=$ac_try;;
4122 esac
4123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4124   (eval "$ac_compiler -v >&5") 2>&5
4125   ac_status=$?
4126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4127   (exit $ac_status); }
4128 { (ac_try="$ac_compiler -V >&5"
4129 case "(($ac_try" in
4130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4131   *) ac_try_echo=$ac_try;;
4132 esac
4133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4134   (eval "$ac_compiler -V >&5") 2>&5
4135   ac_status=$?
4136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4137   (exit $ac_status); }
4138
4139 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4140 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
4141 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4142   echo $ECHO_N "(cached) $ECHO_C" >&6
4143 else
4144   cat >conftest.$ac_ext <<_ACEOF
4145 /* confdefs.h.  */
4146 _ACEOF
4147 cat confdefs.h >>conftest.$ac_ext
4148 cat >>conftest.$ac_ext <<_ACEOF
4149 /* end confdefs.h.  */
4150
4151 int
4152 main ()
4153 {
4154 #ifndef __GNUC__
4155        choke me
4156 #endif
4157
4158   ;
4159   return 0;
4160 }
4161 _ACEOF
4162 rm -f conftest.$ac_objext
4163 if { (ac_try="$ac_compile"
4164 case "(($ac_try" in
4165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4166   *) ac_try_echo=$ac_try;;
4167 esac
4168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4169   (eval "$ac_compile") 2>conftest.er1
4170   ac_status=$?
4171   grep -v '^ *+' conftest.er1 >conftest.err
4172   rm -f conftest.er1
4173   cat conftest.err >&5
4174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4175   (exit $ac_status); } && {
4176          test -z "$ac_cxx_werror_flag" ||
4177          test ! -s conftest.err
4178        } && test -s conftest.$ac_objext; then
4179   ac_compiler_gnu=yes
4180 else
4181   echo "$as_me: failed program was:" >&5
4182 sed 's/^/| /' conftest.$ac_ext >&5
4183
4184         ac_compiler_gnu=no
4185 fi
4186
4187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4188 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4189
4190 fi
4191 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4192 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
4193 GXX=`test $ac_compiler_gnu = yes && echo yes`
4194 ac_test_CXXFLAGS=${CXXFLAGS+set}
4195 ac_save_CXXFLAGS=$CXXFLAGS
4196 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4197 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
4198 if test "${ac_cv_prog_cxx_g+set}" = set; then
4199   echo $ECHO_N "(cached) $ECHO_C" >&6
4200 else
4201   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4202    ac_cxx_werror_flag=yes
4203    ac_cv_prog_cxx_g=no
4204    CXXFLAGS="-g"
4205    cat >conftest.$ac_ext <<_ACEOF
4206 /* confdefs.h.  */
4207 _ACEOF
4208 cat confdefs.h >>conftest.$ac_ext
4209 cat >>conftest.$ac_ext <<_ACEOF
4210 /* end confdefs.h.  */
4211
4212 int
4213 main ()
4214 {
4215
4216   ;
4217   return 0;
4218 }
4219 _ACEOF
4220 rm -f conftest.$ac_objext
4221 if { (ac_try="$ac_compile"
4222 case "(($ac_try" in
4223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4224   *) ac_try_echo=$ac_try;;
4225 esac
4226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4227   (eval "$ac_compile") 2>conftest.er1
4228   ac_status=$?
4229   grep -v '^ *+' conftest.er1 >conftest.err
4230   rm -f conftest.er1
4231   cat conftest.err >&5
4232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233   (exit $ac_status); } && {
4234          test -z "$ac_cxx_werror_flag" ||
4235          test ! -s conftest.err
4236        } && test -s conftest.$ac_objext; then
4237   ac_cv_prog_cxx_g=yes
4238 else
4239   echo "$as_me: failed program was:" >&5
4240 sed 's/^/| /' conftest.$ac_ext >&5
4241
4242         CXXFLAGS=""
4243       cat >conftest.$ac_ext <<_ACEOF
4244 /* confdefs.h.  */
4245 _ACEOF
4246 cat confdefs.h >>conftest.$ac_ext
4247 cat >>conftest.$ac_ext <<_ACEOF
4248 /* end confdefs.h.  */
4249
4250 int
4251 main ()
4252 {
4253
4254   ;
4255   return 0;
4256 }
4257 _ACEOF
4258 rm -f conftest.$ac_objext
4259 if { (ac_try="$ac_compile"
4260 case "(($ac_try" in
4261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4262   *) ac_try_echo=$ac_try;;
4263 esac
4264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4265   (eval "$ac_compile") 2>conftest.er1
4266   ac_status=$?
4267   grep -v '^ *+' conftest.er1 >conftest.err
4268   rm -f conftest.er1
4269   cat conftest.err >&5
4270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4271   (exit $ac_status); } && {
4272          test -z "$ac_cxx_werror_flag" ||
4273          test ! -s conftest.err
4274        } && test -s conftest.$ac_objext; then
4275   :
4276 else
4277   echo "$as_me: failed program was:" >&5
4278 sed 's/^/| /' conftest.$ac_ext >&5
4279
4280         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4281          CXXFLAGS="-g"
4282          cat >conftest.$ac_ext <<_ACEOF
4283 /* confdefs.h.  */
4284 _ACEOF
4285 cat confdefs.h >>conftest.$ac_ext
4286 cat >>conftest.$ac_ext <<_ACEOF
4287 /* end confdefs.h.  */
4288
4289 int
4290 main ()
4291 {
4292
4293   ;
4294   return 0;
4295 }
4296 _ACEOF
4297 rm -f conftest.$ac_objext
4298 if { (ac_try="$ac_compile"
4299 case "(($ac_try" in
4300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4301   *) ac_try_echo=$ac_try;;
4302 esac
4303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4304   (eval "$ac_compile") 2>conftest.er1
4305   ac_status=$?
4306   grep -v '^ *+' conftest.er1 >conftest.err
4307   rm -f conftest.er1
4308   cat conftest.err >&5
4309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4310   (exit $ac_status); } && {
4311          test -z "$ac_cxx_werror_flag" ||
4312          test ! -s conftest.err
4313        } && test -s conftest.$ac_objext; then
4314   ac_cv_prog_cxx_g=yes
4315 else
4316   echo "$as_me: failed program was:" >&5
4317 sed 's/^/| /' conftest.$ac_ext >&5
4318
4319         
4320 fi
4321
4322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4323 fi
4324
4325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4326 fi
4327
4328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4329    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4330 fi
4331 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4332 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4333 if test "$ac_test_CXXFLAGS" = set; then
4334   CXXFLAGS=$ac_save_CXXFLAGS
4335 elif test $ac_cv_prog_cxx_g = yes; then
4336   if test "$GXX" = yes; then
4337     CXXFLAGS="-g -O2"
4338   else
4339     CXXFLAGS="-g"
4340   fi
4341 else
4342   if test "$GXX" = yes; then
4343     CXXFLAGS="-O2"
4344   else
4345     CXXFLAGS=
4346   fi
4347 fi
4348 ac_ext=c
4349 ac_cpp='$CPP $CPPFLAGS'
4350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4353
4354 depcc="$CXX"  am_compiler_list=
4355
4356 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4357 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4358 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4359   echo $ECHO_N "(cached) $ECHO_C" >&6
4360 else
4361   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4362   # We make a subdir and do the tests there.  Otherwise we can end up
4363   # making bogus files that we don't know about and never remove.  For
4364   # instance it was reported that on HP-UX the gcc test will end up
4365   # making a dummy file named `D' -- because `-MD' means `put the output
4366   # in D'.
4367   mkdir conftest.dir
4368   # Copy depcomp to subdir because otherwise we won't find it if we're
4369   # using a relative directory.
4370   cp "$am_depcomp" conftest.dir
4371   cd conftest.dir
4372   # We will build objects and dependencies in a subdirectory because
4373   # it helps to detect inapplicable dependency modes.  For instance
4374   # both Tru64's cc and ICC support -MD to output dependencies as a
4375   # side effect of compilation, but ICC will put the dependencies in
4376   # the current directory while Tru64 will put them in the object
4377   # directory.
4378   mkdir sub
4379
4380   am_cv_CXX_dependencies_compiler_type=none
4381   if test "$am_compiler_list" = ""; then
4382      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4383   fi
4384   for depmode in $am_compiler_list; do
4385     # Setup a source with many dependencies, because some compilers
4386     # like to wrap large dependency lists on column 80 (with \), and
4387     # we should not choose a depcomp mode which is confused by this.
4388     #
4389     # We need to recreate these files for each test, as the compiler may
4390     # overwrite some of them when testing with obscure command lines.
4391     # This happens at least with the AIX C compiler.
4392     : > sub/conftest.c
4393     for i in 1 2 3 4 5 6; do
4394       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4395       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4396       # Solaris 8's {/usr,}/bin/sh.
4397       touch sub/conftst$i.h
4398     done
4399     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4400
4401     case $depmode in
4402     nosideeffect)
4403       # after this tag, mechanisms are not by side-effect, so they'll
4404       # only be used when explicitly requested
4405       if test "x$enable_dependency_tracking" = xyes; then
4406         continue
4407       else
4408         break
4409       fi
4410       ;;
4411     none) break ;;
4412     esac
4413     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4414     # mode.  It turns out that the SunPro C++ compiler does not properly
4415     # handle `-M -o', and we need to detect this.
4416     if depmode=$depmode \
4417        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4418        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4419        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4420          >/dev/null 2>conftest.err &&
4421        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4422        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4423        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4424        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4425       # icc doesn't choke on unknown options, it will just issue warnings
4426       # or remarks (even with -Werror).  So we grep stderr for any message
4427       # that says an option was ignored or not supported.
4428       # When given -MP, icc 7.0 and 7.1 complain thusly:
4429       #   icc: Command line warning: ignoring option '-M'; no argument required
4430       # The diagnosis changed in icc 8.0:
4431       #   icc: Command line remark: option '-MP' not supported
4432       if (grep 'ignoring option' conftest.err ||
4433           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4434         am_cv_CXX_dependencies_compiler_type=$depmode
4435         break
4436       fi
4437     fi
4438   done
4439
4440   cd ..
4441   rm -rf conftest.dir
4442 else
4443   am_cv_CXX_dependencies_compiler_type=none
4444 fi
4445
4446 fi
4447 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4448 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
4449 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4450
4451  if 
4452   test "x$enable_dependency_tracking" != xno \
4453   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4454   am__fastdepCXX_TRUE=
4455   am__fastdepCXX_FALSE='#'
4456 else
4457   am__fastdepCXX_TRUE='#'
4458   am__fastdepCXX_FALSE=
4459 fi
4460
4461
4462 ac_ext=c
4463 ac_cpp='$CPP $CPPFLAGS'
4464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4467 if test -n "$ac_tool_prefix"; then
4468   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4469 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4470 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4472 if test "${ac_cv_prog_CC+set}" = set; then
4473   echo $ECHO_N "(cached) $ECHO_C" >&6
4474 else
4475   if test -n "$CC"; then
4476   ac_cv_prog_CC="$CC" # Let the user override the test.
4477 else
4478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4479 for as_dir in $PATH
4480 do
4481   IFS=$as_save_IFS
4482   test -z "$as_dir" && as_dir=.
4483   for ac_exec_ext in '' $ac_executable_extensions; do
4484   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4485     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4486     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4487     break 2
4488   fi
4489 done
4490 done
4491 IFS=$as_save_IFS
4492
4493 fi
4494 fi
4495 CC=$ac_cv_prog_CC
4496 if test -n "$CC"; then
4497   { echo "$as_me:$LINENO: result: $CC" >&5
4498 echo "${ECHO_T}$CC" >&6; }
4499 else
4500   { echo "$as_me:$LINENO: result: no" >&5
4501 echo "${ECHO_T}no" >&6; }
4502 fi
4503
4504
4505 fi
4506 if test -z "$ac_cv_prog_CC"; then
4507   ac_ct_CC=$CC
4508   # Extract the first word of "gcc", so it can be a program name with args.
4509 set dummy gcc; ac_word=$2
4510 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4512 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4513   echo $ECHO_N "(cached) $ECHO_C" >&6
4514 else
4515   if test -n "$ac_ct_CC"; then
4516   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4517 else
4518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4519 for as_dir in $PATH
4520 do
4521   IFS=$as_save_IFS
4522   test -z "$as_dir" && as_dir=.
4523   for ac_exec_ext in '' $ac_executable_extensions; do
4524   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4525     ac_cv_prog_ac_ct_CC="gcc"
4526     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4527     break 2
4528   fi
4529 done
4530 done
4531 IFS=$as_save_IFS
4532
4533 fi
4534 fi
4535 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4536 if test -n "$ac_ct_CC"; then
4537   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4538 echo "${ECHO_T}$ac_ct_CC" >&6; }
4539 else
4540   { echo "$as_me:$LINENO: result: no" >&5
4541 echo "${ECHO_T}no" >&6; }
4542 fi
4543
4544   if test "x$ac_ct_CC" = x; then
4545     CC=""
4546   else
4547     case $cross_compiling:$ac_tool_warned in
4548 yes:)
4549 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4550 whose name does not start with the host triplet.  If you think this
4551 configuration is useful to you, please write to autoconf@gnu.org." >&5
4552 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4553 whose name does not start with the host triplet.  If you think this
4554 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4555 ac_tool_warned=yes ;;
4556 esac
4557     CC=$ac_ct_CC
4558   fi
4559 else
4560   CC="$ac_cv_prog_CC"
4561 fi
4562
4563 if test -z "$CC"; then
4564           if test -n "$ac_tool_prefix"; then
4565     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4566 set dummy ${ac_tool_prefix}cc; ac_word=$2
4567 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4568 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4569 if test "${ac_cv_prog_CC+set}" = set; then
4570   echo $ECHO_N "(cached) $ECHO_C" >&6
4571 else
4572   if test -n "$CC"; then
4573   ac_cv_prog_CC="$CC" # Let the user override the test.
4574 else
4575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4576 for as_dir in $PATH
4577 do
4578   IFS=$as_save_IFS
4579   test -z "$as_dir" && as_dir=.
4580   for ac_exec_ext in '' $ac_executable_extensions; do
4581   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4582     ac_cv_prog_CC="${ac_tool_prefix}cc"
4583     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4584     break 2
4585   fi
4586 done
4587 done
4588 IFS=$as_save_IFS
4589
4590 fi
4591 fi
4592 CC=$ac_cv_prog_CC
4593 if test -n "$CC"; then
4594   { echo "$as_me:$LINENO: result: $CC" >&5
4595 echo "${ECHO_T}$CC" >&6; }
4596 else
4597   { echo "$as_me:$LINENO: result: no" >&5
4598 echo "${ECHO_T}no" >&6; }
4599 fi
4600
4601
4602   fi
4603 fi
4604 if test -z "$CC"; then
4605   # Extract the first word of "cc", so it can be a program name with args.
4606 set dummy cc; ac_word=$2
4607 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4609 if test "${ac_cv_prog_CC+set}" = set; then
4610   echo $ECHO_N "(cached) $ECHO_C" >&6
4611 else
4612   if test -n "$CC"; then
4613   ac_cv_prog_CC="$CC" # Let the user override the test.
4614 else
4615   ac_prog_rejected=no
4616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4617 for as_dir in $PATH
4618 do
4619   IFS=$as_save_IFS
4620   test -z "$as_dir" && as_dir=.
4621   for ac_exec_ext in '' $ac_executable_extensions; do
4622   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4623     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4624        ac_prog_rejected=yes
4625        continue
4626      fi
4627     ac_cv_prog_CC="cc"
4628     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4629     break 2
4630   fi
4631 done
4632 done
4633 IFS=$as_save_IFS
4634
4635 if test $ac_prog_rejected = yes; then
4636   # We found a bogon in the path, so make sure we never use it.
4637   set dummy $ac_cv_prog_CC
4638   shift
4639   if test $@%:@ != 0; then
4640     # We chose a different compiler from the bogus one.
4641     # However, it has the same basename, so the bogon will be chosen
4642     # first if we set CC to just the basename; use the full file name.
4643     shift
4644     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4645   fi
4646 fi
4647 fi
4648 fi
4649 CC=$ac_cv_prog_CC
4650 if test -n "$CC"; then
4651   { echo "$as_me:$LINENO: result: $CC" >&5
4652 echo "${ECHO_T}$CC" >&6; }
4653 else
4654   { echo "$as_me:$LINENO: result: no" >&5
4655 echo "${ECHO_T}no" >&6; }
4656 fi
4657
4658
4659 fi
4660 if test -z "$CC"; then
4661   if test -n "$ac_tool_prefix"; then
4662   for ac_prog in cl.exe
4663   do
4664     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4665 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4666 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4668 if test "${ac_cv_prog_CC+set}" = set; then
4669   echo $ECHO_N "(cached) $ECHO_C" >&6
4670 else
4671   if test -n "$CC"; then
4672   ac_cv_prog_CC="$CC" # Let the user override the test.
4673 else
4674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4675 for as_dir in $PATH
4676 do
4677   IFS=$as_save_IFS
4678   test -z "$as_dir" && as_dir=.
4679   for ac_exec_ext in '' $ac_executable_extensions; do
4680   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4681     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4682     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4683     break 2
4684   fi
4685 done
4686 done
4687 IFS=$as_save_IFS
4688
4689 fi
4690 fi
4691 CC=$ac_cv_prog_CC
4692 if test -n "$CC"; then
4693   { echo "$as_me:$LINENO: result: $CC" >&5
4694 echo "${ECHO_T}$CC" >&6; }
4695 else
4696   { echo "$as_me:$LINENO: result: no" >&5
4697 echo "${ECHO_T}no" >&6; }
4698 fi
4699
4700
4701     test -n "$CC" && break
4702   done
4703 fi
4704 if test -z "$CC"; then
4705   ac_ct_CC=$CC
4706   for ac_prog in cl.exe
4707 do
4708   # Extract the first word of "$ac_prog", so it can be a program name with args.
4709 set dummy $ac_prog; ac_word=$2
4710 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4711 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4712 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4713   echo $ECHO_N "(cached) $ECHO_C" >&6
4714 else
4715   if test -n "$ac_ct_CC"; then
4716   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4717 else
4718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4719 for as_dir in $PATH
4720 do
4721   IFS=$as_save_IFS
4722   test -z "$as_dir" && as_dir=.
4723   for ac_exec_ext in '' $ac_executable_extensions; do
4724   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4725     ac_cv_prog_ac_ct_CC="$ac_prog"
4726     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4727     break 2
4728   fi
4729 done
4730 done
4731 IFS=$as_save_IFS
4732
4733 fi
4734 fi
4735 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4736 if test -n "$ac_ct_CC"; then
4737   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4738 echo "${ECHO_T}$ac_ct_CC" >&6; }
4739 else
4740   { echo "$as_me:$LINENO: result: no" >&5
4741 echo "${ECHO_T}no" >&6; }
4742 fi
4743
4744
4745   test -n "$ac_ct_CC" && break
4746 done
4747
4748   if test "x$ac_ct_CC" = x; then
4749     CC=""
4750   else
4751     case $cross_compiling:$ac_tool_warned in
4752 yes:)
4753 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4754 whose name does not start with the host triplet.  If you think this
4755 configuration is useful to you, please write to autoconf@gnu.org." >&5
4756 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4757 whose name does not start with the host triplet.  If you think this
4758 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4759 ac_tool_warned=yes ;;
4760 esac
4761     CC=$ac_ct_CC
4762   fi
4763 fi
4764
4765 fi
4766
4767
4768 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4769 See \`config.log' for more details." >&5
4770 echo "$as_me: error: no acceptable C compiler found in \$PATH
4771 See \`config.log' for more details." >&2;}
4772    { (exit 1); exit 1; }; }
4773
4774 # Provide some information about the compiler.
4775 echo "$as_me:$LINENO: checking for C compiler version" >&5
4776 ac_compiler=`set X $ac_compile; echo $2`
4777 { (ac_try="$ac_compiler --version >&5"
4778 case "(($ac_try" in
4779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4780   *) ac_try_echo=$ac_try;;
4781 esac
4782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4783   (eval "$ac_compiler --version >&5") 2>&5
4784   ac_status=$?
4785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4786   (exit $ac_status); }
4787 { (ac_try="$ac_compiler -v >&5"
4788 case "(($ac_try" in
4789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4790   *) ac_try_echo=$ac_try;;
4791 esac
4792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4793   (eval "$ac_compiler -v >&5") 2>&5
4794   ac_status=$?
4795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4796   (exit $ac_status); }
4797 { (ac_try="$ac_compiler -V >&5"
4798 case "(($ac_try" in
4799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4800   *) ac_try_echo=$ac_try;;
4801 esac
4802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4803   (eval "$ac_compiler -V >&5") 2>&5
4804   ac_status=$?
4805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4806   (exit $ac_status); }
4807
4808 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4809 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4810 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4811   echo $ECHO_N "(cached) $ECHO_C" >&6
4812 else
4813   cat >conftest.$ac_ext <<_ACEOF
4814 /* confdefs.h.  */
4815 _ACEOF
4816 cat confdefs.h >>conftest.$ac_ext
4817 cat >>conftest.$ac_ext <<_ACEOF
4818 /* end confdefs.h.  */
4819
4820 int
4821 main ()
4822 {
4823 #ifndef __GNUC__
4824        choke me
4825 #endif
4826
4827   ;
4828   return 0;
4829 }
4830 _ACEOF
4831 rm -f conftest.$ac_objext
4832 if { (ac_try="$ac_compile"
4833 case "(($ac_try" in
4834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4835   *) ac_try_echo=$ac_try;;
4836 esac
4837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4838   (eval "$ac_compile") 2>conftest.er1
4839   ac_status=$?
4840   grep -v '^ *+' conftest.er1 >conftest.err
4841   rm -f conftest.er1
4842   cat conftest.err >&5
4843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4844   (exit $ac_status); } && {
4845          test -z "$ac_c_werror_flag" ||
4846          test ! -s conftest.err
4847        } && test -s conftest.$ac_objext; then
4848   ac_compiler_gnu=yes
4849 else
4850   echo "$as_me: failed program was:" >&5
4851 sed 's/^/| /' conftest.$ac_ext >&5
4852
4853         ac_compiler_gnu=no
4854 fi
4855
4856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4857 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4858
4859 fi
4860 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4861 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4862 GCC=`test $ac_compiler_gnu = yes && echo yes`
4863 ac_test_CFLAGS=${CFLAGS+set}
4864 ac_save_CFLAGS=$CFLAGS
4865 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4866 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
4867 if test "${ac_cv_prog_cc_g+set}" = set; then
4868   echo $ECHO_N "(cached) $ECHO_C" >&6
4869 else
4870   ac_save_c_werror_flag=$ac_c_werror_flag
4871    ac_c_werror_flag=yes
4872    ac_cv_prog_cc_g=no
4873    CFLAGS="-g"
4874    cat >conftest.$ac_ext <<_ACEOF
4875 /* confdefs.h.  */
4876 _ACEOF
4877 cat confdefs.h >>conftest.$ac_ext
4878 cat >>conftest.$ac_ext <<_ACEOF
4879 /* end confdefs.h.  */
4880
4881 int
4882 main ()
4883 {
4884
4885   ;
4886   return 0;
4887 }
4888 _ACEOF
4889 rm -f conftest.$ac_objext
4890 if { (ac_try="$ac_compile"
4891 case "(($ac_try" in
4892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4893   *) ac_try_echo=$ac_try;;
4894 esac
4895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4896   (eval "$ac_compile") 2>conftest.er1
4897   ac_status=$?
4898   grep -v '^ *+' conftest.er1 >conftest.err
4899   rm -f conftest.er1
4900   cat conftest.err >&5
4901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4902   (exit $ac_status); } && {
4903          test -z "$ac_c_werror_flag" ||
4904          test ! -s conftest.err
4905        } && test -s conftest.$ac_objext; then
4906   ac_cv_prog_cc_g=yes
4907 else
4908   echo "$as_me: failed program was:" >&5
4909 sed 's/^/| /' conftest.$ac_ext >&5
4910
4911         CFLAGS=""
4912       cat >conftest.$ac_ext <<_ACEOF
4913 /* confdefs.h.  */
4914 _ACEOF
4915 cat confdefs.h >>conftest.$ac_ext
4916 cat >>conftest.$ac_ext <<_ACEOF
4917 /* end confdefs.h.  */
4918
4919 int
4920 main ()
4921 {
4922
4923   ;
4924   return 0;
4925 }
4926 _ACEOF
4927 rm -f conftest.$ac_objext
4928 if { (ac_try="$ac_compile"
4929 case "(($ac_try" in
4930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4931   *) ac_try_echo=$ac_try;;
4932 esac
4933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4934   (eval "$ac_compile") 2>conftest.er1
4935   ac_status=$?
4936   grep -v '^ *+' conftest.er1 >conftest.err
4937   rm -f conftest.er1
4938   cat conftest.err >&5
4939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4940   (exit $ac_status); } && {
4941          test -z "$ac_c_werror_flag" ||
4942          test ! -s conftest.err
4943        } && test -s conftest.$ac_objext; then
4944   :
4945 else
4946   echo "$as_me: failed program was:" >&5
4947 sed 's/^/| /' conftest.$ac_ext >&5
4948
4949         ac_c_werror_flag=$ac_save_c_werror_flag
4950          CFLAGS="-g"
4951          cat >conftest.$ac_ext <<_ACEOF
4952 /* confdefs.h.  */
4953 _ACEOF
4954 cat confdefs.h >>conftest.$ac_ext
4955 cat >>conftest.$ac_ext <<_ACEOF
4956 /* end confdefs.h.  */
4957
4958 int
4959 main ()
4960 {
4961
4962   ;
4963   return 0;
4964 }
4965 _ACEOF
4966 rm -f conftest.$ac_objext
4967 if { (ac_try="$ac_compile"
4968 case "(($ac_try" in
4969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4970   *) ac_try_echo=$ac_try;;
4971 esac
4972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4973   (eval "$ac_compile") 2>conftest.er1
4974   ac_status=$?
4975   grep -v '^ *+' conftest.er1 >conftest.err
4976   rm -f conftest.er1
4977   cat conftest.err >&5
4978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4979   (exit $ac_status); } && {
4980          test -z "$ac_c_werror_flag" ||
4981          test ! -s conftest.err
4982        } && test -s conftest.$ac_objext; then
4983   ac_cv_prog_cc_g=yes
4984 else
4985   echo "$as_me: failed program was:" >&5
4986 sed 's/^/| /' conftest.$ac_ext >&5
4987
4988         
4989 fi
4990
4991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4992 fi
4993
4994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4995 fi
4996
4997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4998    ac_c_werror_flag=$ac_save_c_werror_flag
4999 fi
5000 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5001 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5002 if test "$ac_test_CFLAGS" = set; then
5003   CFLAGS=$ac_save_CFLAGS
5004 elif test $ac_cv_prog_cc_g = yes; then
5005   if test "$GCC" = yes; then
5006     CFLAGS="-g -O2"
5007   else
5008     CFLAGS="-g"
5009   fi
5010 else
5011   if test "$GCC" = yes; then
5012     CFLAGS="-O2"
5013   else
5014     CFLAGS=
5015   fi
5016 fi
5017 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5018 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5019 if test "${ac_cv_prog_cc_c89+set}" = set; then
5020   echo $ECHO_N "(cached) $ECHO_C" >&6
5021 else
5022   ac_cv_prog_cc_c89=no
5023 ac_save_CC=$CC
5024 cat >conftest.$ac_ext <<_ACEOF
5025 /* confdefs.h.  */
5026 _ACEOF
5027 cat confdefs.h >>conftest.$ac_ext
5028 cat >>conftest.$ac_ext <<_ACEOF
5029 /* end confdefs.h.  */
5030 #include <stdarg.h>
5031 #include <stdio.h>
5032 #include <sys/types.h>
5033 #include <sys/stat.h>
5034 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5035 struct buf { int x; };
5036 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5037 static char *e (p, i)
5038      char **p;
5039      int i;
5040 {
5041   return p[i];
5042 }
5043 static char *f (char * (*g) (char **, int), char **p, ...)
5044 {
5045   char *s;
5046   va_list v;
5047   va_start (v,p);
5048   s = g (p, va_arg (v,int));
5049   va_end (v);
5050   return s;
5051 }
5052
5053 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5054    function prototypes and stuff, but not '\xHH' hex character constants.
5055    These don't provoke an error unfortunately, instead are silently treated
5056    as 'x'.  The following induces an error, until -std is added to get
5057    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5058    array size at least.  It's necessary to write '\x00'==0 to get something
5059    that's true only with -std.  */
5060 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5061
5062 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5063    inside strings and character constants.  */
5064 #define FOO(x) 'x'
5065 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5066
5067 int test (int i, double x);
5068 struct s1 {int (*f) (int a);};
5069 struct s2 {int (*f) (double a);};
5070 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5071 int argc;
5072 char **argv;
5073 int
5074 main ()
5075 {
5076 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5077   ;
5078   return 0;
5079 }
5080 _ACEOF
5081 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5082         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5083 do
5084   CC="$ac_save_CC $ac_arg"
5085   rm -f conftest.$ac_objext
5086 if { (ac_try="$ac_compile"
5087 case "(($ac_try" in
5088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5089   *) ac_try_echo=$ac_try;;
5090 esac
5091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5092   (eval "$ac_compile") 2>conftest.er1
5093   ac_status=$?
5094   grep -v '^ *+' conftest.er1 >conftest.err
5095   rm -f conftest.er1
5096   cat conftest.err >&5
5097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5098   (exit $ac_status); } && {
5099          test -z "$ac_c_werror_flag" ||
5100          test ! -s conftest.err
5101        } && test -s conftest.$ac_objext; then
5102   ac_cv_prog_cc_c89=$ac_arg
5103 else
5104   echo "$as_me: failed program was:" >&5
5105 sed 's/^/| /' conftest.$ac_ext >&5
5106
5107         
5108 fi
5109
5110 rm -f core conftest.err conftest.$ac_objext 
5111   test "x$ac_cv_prog_cc_c89" != "xno" && break
5112 done
5113 rm -f conftest.$ac_ext
5114 CC=$ac_save_CC
5115
5116 fi
5117 # AC_CACHE_VAL
5118 case "x$ac_cv_prog_cc_c89" in
5119   x)
5120     { echo "$as_me:$LINENO: result: none needed" >&5
5121 echo "${ECHO_T}none needed" >&6; } ;;
5122   xno)
5123     { echo "$as_me:$LINENO: result: unsupported" >&5
5124 echo "${ECHO_T}unsupported" >&6; } ;;
5125   *)
5126     CC="$CC $ac_cv_prog_cc_c89"
5127     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5128 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5129 esac
5130
5131
5132 ac_ext=c
5133 ac_cpp='$CPP $CPPFLAGS'
5134 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5135 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5136 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5137
5138 depcc="$CC"   am_compiler_list=
5139
5140 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5141 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5142 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5143   echo $ECHO_N "(cached) $ECHO_C" >&6
5144 else
5145   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5146   # We make a subdir and do the tests there.  Otherwise we can end up
5147   # making bogus files that we don't know about and never remove.  For
5148   # instance it was reported that on HP-UX the gcc test will end up
5149   # making a dummy file named `D' -- because `-MD' means `put the output
5150   # in D'.
5151   mkdir conftest.dir
5152   # Copy depcomp to subdir because otherwise we won't find it if we're
5153   # using a relative directory.
5154   cp "$am_depcomp" conftest.dir
5155   cd conftest.dir
5156   # We will build objects and dependencies in a subdirectory because
5157   # it helps to detect inapplicable dependency modes.  For instance
5158   # both Tru64's cc and ICC support -MD to output dependencies as a
5159   # side effect of compilation, but ICC will put the dependencies in
5160   # the current directory while Tru64 will put them in the object
5161   # directory.
5162   mkdir sub
5163
5164   am_cv_CC_dependencies_compiler_type=none
5165   if test "$am_compiler_list" = ""; then
5166      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5167   fi
5168   for depmode in $am_compiler_list; do
5169     # Setup a source with many dependencies, because some compilers
5170     # like to wrap large dependency lists on column 80 (with \), and
5171     # we should not choose a depcomp mode which is confused by this.
5172     #
5173     # We need to recreate these files for each test, as the compiler may
5174     # overwrite some of them when testing with obscure command lines.
5175     # This happens at least with the AIX C compiler.
5176     : > sub/conftest.c
5177     for i in 1 2 3 4 5 6; do
5178       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5179       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5180       # Solaris 8's {/usr,}/bin/sh.
5181       touch sub/conftst$i.h
5182     done
5183     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5184
5185     case $depmode in
5186     nosideeffect)
5187       # after this tag, mechanisms are not by side-effect, so they'll
5188       # only be used when explicitly requested
5189       if test "x$enable_dependency_tracking" = xyes; then
5190         continue
5191       else
5192         break
5193       fi
5194       ;;
5195     none) break ;;
5196     esac
5197     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5198     # mode.  It turns out that the SunPro C++ compiler does not properly
5199     # handle `-M -o', and we need to detect this.
5200     if depmode=$depmode \
5201        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5202        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5203        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5204          >/dev/null 2>conftest.err &&
5205        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5206        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5207        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5208        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5209       # icc doesn't choke on unknown options, it will just issue warnings
5210       # or remarks (even with -Werror).  So we grep stderr for any message
5211       # that says an option was ignored or not supported.
5212       # When given -MP, icc 7.0 and 7.1 complain thusly:
5213       #   icc: Command line warning: ignoring option '-M'; no argument required
5214       # The diagnosis changed in icc 8.0:
5215       #   icc: Command line remark: option '-MP' not supported
5216       if (grep 'ignoring option' conftest.err ||
5217           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5218         am_cv_CC_dependencies_compiler_type=$depmode
5219         break
5220       fi
5221     fi
5222   done
5223
5224   cd ..
5225   rm -rf conftest.dir
5226 else
5227   am_cv_CC_dependencies_compiler_type=none
5228 fi
5229
5230 fi
5231 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5232 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
5233 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5234
5235  if 
5236   test "x$enable_dependency_tracking" != xno \
5237   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5238   am__fastdepCC_TRUE=
5239   am__fastdepCC_FALSE='#'
5240 else
5241   am__fastdepCC_TRUE='#'
5242   am__fastdepCC_FALSE=
5243 fi
5244
5245
5246 ac_ext=c
5247 ac_cpp='$CPP $CPPFLAGS'
5248 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5249 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5250 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5251 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5252 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5253 # On Suns, sometimes $CPP names a directory.
5254 if test -n "$CPP" && test -d "$CPP"; then
5255   CPP=
5256 fi
5257 if test -z "$CPP"; then
5258   if test "${ac_cv_prog_CPP+set}" = set; then
5259   echo $ECHO_N "(cached) $ECHO_C" >&6
5260 else
5261       # Double quotes because CPP needs to be expanded
5262     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5263     do
5264       ac_preproc_ok=false
5265 for ac_c_preproc_warn_flag in '' yes
5266 do
5267   # Use a header file that comes with gcc, so configuring glibc
5268   # with a fresh cross-compiler works.
5269   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5270   # <limits.h> exists even on freestanding compilers.
5271   # On the NeXT, cc -E runs the code through the compiler's parser,
5272   # not just through cpp. "Syntax error" is here to catch this case.
5273   cat >conftest.$ac_ext <<_ACEOF
5274 /* confdefs.h.  */
5275 _ACEOF
5276 cat confdefs.h >>conftest.$ac_ext
5277 cat >>conftest.$ac_ext <<_ACEOF
5278 /* end confdefs.h.  */
5279 @%:@ifdef __STDC__
5280 @%:@ include <limits.h>
5281 @%:@else
5282 @%:@ include <assert.h>
5283 @%:@endif
5284                      Syntax error
5285 _ACEOF
5286 if { (ac_try="$ac_cpp conftest.$ac_ext"
5287 case "(($ac_try" in
5288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5289   *) ac_try_echo=$ac_try;;
5290 esac
5291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5292   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5293   ac_status=$?
5294   grep -v '^ *+' conftest.er1 >conftest.err
5295   rm -f conftest.er1
5296   cat conftest.err >&5
5297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5298   (exit $ac_status); } >/dev/null && {
5299          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5300          test ! -s conftest.err
5301        }; then
5302   :
5303 else
5304   echo "$as_me: failed program was:" >&5
5305 sed 's/^/| /' conftest.$ac_ext >&5
5306
5307   # Broken: fails on valid input.
5308 continue
5309 fi
5310
5311 rm -f conftest.err conftest.$ac_ext
5312
5313   # OK, works on sane cases.  Now check whether nonexistent headers
5314   # can be detected and how.
5315   cat >conftest.$ac_ext <<_ACEOF
5316 /* confdefs.h.  */
5317 _ACEOF
5318 cat confdefs.h >>conftest.$ac_ext
5319 cat >>conftest.$ac_ext <<_ACEOF
5320 /* end confdefs.h.  */
5321 @%:@include <ac_nonexistent.h>
5322 _ACEOF
5323 if { (ac_try="$ac_cpp conftest.$ac_ext"
5324 case "(($ac_try" in
5325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5326   *) ac_try_echo=$ac_try;;
5327 esac
5328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5329   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5330   ac_status=$?
5331   grep -v '^ *+' conftest.er1 >conftest.err
5332   rm -f conftest.er1
5333   cat conftest.err >&5
5334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5335   (exit $ac_status); } >/dev/null && {
5336          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5337          test ! -s conftest.err
5338        }; then
5339   # Broken: success on invalid input.
5340 continue
5341 else
5342   echo "$as_me: failed program was:" >&5
5343 sed 's/^/| /' conftest.$ac_ext >&5
5344
5345   # Passes both tests.
5346 ac_preproc_ok=:
5347 break
5348 fi
5349
5350 rm -f conftest.err conftest.$ac_ext
5351
5352 done
5353 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5354 rm -f conftest.err conftest.$ac_ext
5355 if $ac_preproc_ok; then
5356   break
5357 fi
5358
5359     done
5360     ac_cv_prog_CPP=$CPP
5361   
5362 fi
5363   CPP=$ac_cv_prog_CPP
5364 else
5365   ac_cv_prog_CPP=$CPP
5366 fi
5367 { echo "$as_me:$LINENO: result: $CPP" >&5
5368 echo "${ECHO_T}$CPP" >&6; }
5369 ac_preproc_ok=false
5370 for ac_c_preproc_warn_flag in '' yes
5371 do
5372   # Use a header file that comes with gcc, so configuring glibc
5373   # with a fresh cross-compiler works.
5374   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5375   # <limits.h> exists even on freestanding compilers.
5376   # On the NeXT, cc -E runs the code through the compiler's parser,
5377   # not just through cpp. "Syntax error" is here to catch this case.
5378   cat >conftest.$ac_ext <<_ACEOF
5379 /* confdefs.h.  */
5380 _ACEOF
5381 cat confdefs.h >>conftest.$ac_ext
5382 cat >>conftest.$ac_ext <<_ACEOF
5383 /* end confdefs.h.  */
5384 @%:@ifdef __STDC__
5385 @%:@ include <limits.h>
5386 @%:@else
5387 @%:@ include <assert.h>
5388 @%:@endif
5389                      Syntax error
5390 _ACEOF
5391 if { (ac_try="$ac_cpp conftest.$ac_ext"
5392 case "(($ac_try" in
5393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5394   *) ac_try_echo=$ac_try;;
5395 esac
5396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5397   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5398   ac_status=$?
5399   grep -v '^ *+' conftest.er1 >conftest.err
5400   rm -f conftest.er1
5401   cat conftest.err >&5
5402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5403   (exit $ac_status); } >/dev/null && {
5404          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5405          test ! -s conftest.err
5406        }; then
5407   :
5408 else
5409   echo "$as_me: failed program was:" >&5
5410 sed 's/^/| /' conftest.$ac_ext >&5
5411
5412   # Broken: fails on valid input.
5413 continue
5414 fi
5415
5416 rm -f conftest.err conftest.$ac_ext
5417
5418   # OK, works on sane cases.  Now check whether nonexistent headers
5419   # can be detected and how.
5420   cat >conftest.$ac_ext <<_ACEOF
5421 /* confdefs.h.  */
5422 _ACEOF
5423 cat confdefs.h >>conftest.$ac_ext
5424 cat >>conftest.$ac_ext <<_ACEOF
5425 /* end confdefs.h.  */
5426 @%:@include <ac_nonexistent.h>
5427 _ACEOF
5428 if { (ac_try="$ac_cpp conftest.$ac_ext"
5429 case "(($ac_try" in
5430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5431   *) ac_try_echo=$ac_try;;
5432 esac
5433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5434   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5435   ac_status=$?
5436   grep -v '^ *+' conftest.er1 >conftest.err
5437   rm -f conftest.er1
5438   cat conftest.err >&5
5439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5440   (exit $ac_status); } >/dev/null && {
5441          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5442          test ! -s conftest.err
5443        }; then
5444   # Broken: success on invalid input.
5445 continue
5446 else
5447   echo "$as_me: failed program was:" >&5
5448 sed 's/^/| /' conftest.$ac_ext >&5
5449
5450   # Passes both tests.
5451 ac_preproc_ok=:
5452 break
5453 fi
5454
5455 rm -f conftest.err conftest.$ac_ext
5456
5457 done
5458 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5459 rm -f conftest.err conftest.$ac_ext
5460 if $ac_preproc_ok; then
5461   :
5462 else
5463   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5464 See \`config.log' for more details." >&5
5465 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5466 See \`config.log' for more details." >&2;}
5467    { (exit 1); exit 1; }; }
5468 fi
5469
5470 ac_ext=c
5471 ac_cpp='$CPP $CPPFLAGS'
5472 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5473 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5474 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5475
5476 # Find a good install program.  We prefer a C program (faster),
5477 # so one script is as good as another.  But avoid the broken or
5478 # incompatible versions:
5479 # SysV /etc/install, /usr/sbin/install
5480 # SunOS /usr/etc/install
5481 # IRIX /sbin/install
5482 # AIX /bin/install
5483 # AmigaOS /C/install, which installs bootblocks on floppy discs
5484 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5485 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5486 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5487 # OS/2's system install, which has a completely different semantic
5488 # ./install, which can be erroneously created by make from ./install.sh.
5489 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5490 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
5491 if test -z "$INSTALL"; then
5492 if test "${ac_cv_path_install+set}" = set; then
5493   echo $ECHO_N "(cached) $ECHO_C" >&6
5494 else
5495   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5496 for as_dir in $PATH
5497 do
5498   IFS=$as_save_IFS
5499   test -z "$as_dir" && as_dir=.
5500   # Account for people who put trailing slashes in PATH elements.
5501 case $as_dir/ in
5502   ./ | .// | /cC/* | \
5503   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5504   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5505   /usr/ucb/* ) ;;
5506   *)
5507     # OSF1 and SCO ODT 3.0 have their own names for install.
5508     # Don't use installbsd from OSF since it installs stuff as root
5509     # by default.
5510     for ac_prog in ginstall scoinst install; do
5511       for ac_exec_ext in '' $ac_executable_extensions; do
5512         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5513           if test $ac_prog = install &&
5514             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5515             # AIX install.  It has an incompatible calling convention.
5516             :
5517           elif test $ac_prog = install &&
5518             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5519             # program-specific install script used by HP pwplus--don't use.
5520             :
5521           else
5522             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5523             break 3
5524           fi
5525         fi
5526       done
5527     done
5528     ;;
5529 esac
5530 done
5531 IFS=$as_save_IFS
5532
5533
5534 fi
5535   if test "${ac_cv_path_install+set}" = set; then
5536     INSTALL=$ac_cv_path_install
5537   else
5538     # As a last resort, use the slow shell script.  Don't cache a
5539     # value for INSTALL within a source directory, because that will
5540     # break other packages using the cache if that directory is
5541     # removed, or if the value is a relative name.
5542     INSTALL=$ac_install_sh
5543   fi
5544 fi
5545 { echo "$as_me:$LINENO: result: $INSTALL" >&5
5546 echo "${ECHO_T}$INSTALL" >&6; }
5547
5548 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5549 # It thinks the first close brace ends the variable substitution.
5550 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5551
5552 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5553
5554 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5555
5556 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5557 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5558 LN_S=$as_ln_s
5559 if test "$LN_S" = "ln -s"; then
5560   { echo "$as_me:$LINENO: result: yes" >&5
5561 echo "${ECHO_T}yes" >&6; }
5562 else
5563   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5564 echo "${ECHO_T}no, using $LN_S" >&6; }
5565 fi
5566
5567 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5568 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
5569 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5570 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
5571   echo $ECHO_N "(cached) $ECHO_C" >&6
5572 else
5573   cat >conftest.make <<\_ACEOF
5574 SHELL = /bin/sh
5575 all:
5576         @echo '@@@%%%=$(MAKE)=@@@%%%'
5577 _ACEOF
5578 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5579 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5580   *@@@%%%=?*=@@@%%%*)
5581     eval ac_cv_prog_make_${ac_make}_set=yes;;
5582   *)
5583     eval ac_cv_prog_make_${ac_make}_set=no;;
5584 esac
5585 rm -f conftest.make
5586 fi
5587 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5588   { echo "$as_me:$LINENO: result: yes" >&5
5589 echo "${ECHO_T}yes" >&6; }
5590   SET_MAKE=
5591 else
5592   { echo "$as_me:$LINENO: result: no" >&5
5593 echo "${ECHO_T}no" >&6; }
5594   SET_MAKE="MAKE=${MAKE-make}"
5595 fi
5596
5597 # Check whether --enable-shared was given.
5598 if test "${enable_shared+set}" = set; then
5599   enableval=$enable_shared; p=${PACKAGE-default}
5600     case $enableval in
5601     yes) enable_shared=yes ;;
5602     no) enable_shared=no ;;
5603     *)
5604       enable_shared=no
5605       # Look at the argument we got.  We use all the common list separators.
5606       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5607       for pkg in $enableval; do
5608         IFS="$lt_save_ifs"
5609         if test "X$pkg" = "X$p"; then
5610           enable_shared=yes
5611         fi
5612       done
5613       IFS="$lt_save_ifs"
5614       ;;
5615     esac
5616 else
5617   enable_shared=yes
5618 fi
5619
5620
5621 # Check whether --enable-static was given.
5622 if test "${enable_static+set}" = set; then
5623   enableval=$enable_static; p=${PACKAGE-default}
5624     case $enableval in
5625     yes) enable_static=yes ;;
5626     no) enable_static=no ;;
5627     *)
5628      enable_static=no
5629       # Look at the argument we got.  We use all the common list separators.
5630       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5631       for pkg in $enableval; do
5632         IFS="$lt_save_ifs"
5633         if test "X$pkg" = "X$p"; then
5634           enable_static=yes
5635         fi
5636       done
5637       IFS="$lt_save_ifs"
5638       ;;
5639     esac
5640 else
5641   enable_static=yes
5642 fi
5643
5644
5645 # Check whether --enable-fast-install was given.
5646 if test "${enable_fast_install+set}" = set; then
5647   enableval=$enable_fast_install; p=${PACKAGE-default}
5648     case $enableval in
5649     yes) enable_fast_install=yes ;;
5650     no) enable_fast_install=no ;;
5651     *)
5652       enable_fast_install=no
5653       # Look at the argument we got.  We use all the common list separators.
5654       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5655       for pkg in $enableval; do
5656         IFS="$lt_save_ifs"
5657         if test "X$pkg" = "X$p"; then
5658           enable_fast_install=yes
5659         fi
5660       done
5661       IFS="$lt_save_ifs"
5662       ;;
5663     esac
5664 else
5665   enable_fast_install=yes
5666 fi
5667
5668
5669 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5670 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5671 if test "${lt_cv_path_SED+set}" = set; then
5672   echo $ECHO_N "(cached) $ECHO_C" >&6
5673 else
5674   # Loop through the user's path and test for sed and gsed.
5675 # Then use that list of sed's as ones to test for truncation.
5676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5677 for as_dir in $PATH
5678 do
5679   IFS=$as_save_IFS
5680   test -z "$as_dir" && as_dir=.
5681   for lt_ac_prog in sed gsed; do
5682     for ac_exec_ext in '' $ac_executable_extensions; do
5683       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5684         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5685       fi
5686     done
5687   done
5688 done
5689 lt_ac_max=0
5690 lt_ac_count=0
5691 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5692 # along with /bin/sed that truncates output.
5693 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5694   test ! -f $lt_ac_sed && continue
5695   cat /dev/null > conftest.in
5696   lt_ac_count=0
5697   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5698   # Check for GNU sed and select it if it is found.
5699   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5700     lt_cv_path_SED=$lt_ac_sed
5701     break
5702   fi
5703   while true; do
5704     cat conftest.in conftest.in >conftest.tmp
5705     mv conftest.tmp conftest.in
5706     cp conftest.in conftest.nl
5707     echo >>conftest.nl
5708     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5709     cmp -s conftest.out conftest.nl || break
5710     # 10000 chars as input seems more than enough
5711     test $lt_ac_count -gt 10 && break
5712     lt_ac_count=`expr $lt_ac_count + 1`
5713     if test $lt_ac_count -gt $lt_ac_max; then
5714       lt_ac_max=$lt_ac_count
5715       lt_cv_path_SED=$lt_ac_sed
5716     fi
5717   done
5718 done
5719
5720 fi
5721
5722 SED=$lt_cv_path_SED
5723 { echo "$as_me:$LINENO: result: $SED" >&5
5724 echo "${ECHO_T}$SED" >&6; }
5725
5726 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5727 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5728 if test "${ac_cv_path_GREP+set}" = set; then
5729   echo $ECHO_N "(cached) $ECHO_C" >&6
5730 else
5731   # Extract the first word of "grep ggrep" to use in msg output
5732 if test -z "$GREP"; then
5733 set dummy grep ggrep; ac_prog_name=$2
5734 if test "${ac_cv_path_GREP+set}" = set; then
5735   echo $ECHO_N "(cached) $ECHO_C" >&6
5736 else
5737   ac_path_GREP_found=false
5738 # Loop through the user's path and test for each of PROGNAME-LIST
5739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5740 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5741 do
5742   IFS=$as_save_IFS
5743   test -z "$as_dir" && as_dir=.
5744   for ac_prog in grep ggrep; do
5745   for ac_exec_ext in '' $ac_executable_extensions; do
5746     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5747     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5748     # Check for GNU ac_path_GREP and select it if it is found.
5749   # Check for GNU $ac_path_GREP
5750 case `"$ac_path_GREP" --version 2>&1` in
5751 *GNU*)
5752   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5753 *)
5754   ac_count=0
5755   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5756   while :
5757   do
5758     cat "conftest.in" "conftest.in" >"conftest.tmp"
5759     mv "conftest.tmp" "conftest.in"
5760     cp "conftest.in" "conftest.nl"
5761     echo 'GREP' >> "conftest.nl"
5762     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5763     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5764     ac_count=`expr $ac_count + 1`
5765     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5766       # Best one so far, save it but keep looking for a better one
5767       ac_cv_path_GREP="$ac_path_GREP"
5768       ac_path_GREP_max=$ac_count
5769     fi
5770     # 10*(2^10) chars as input seems more than enough
5771     test $ac_count -gt 10 && break
5772   done
5773   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5774 esac
5775
5776
5777     $ac_path_GREP_found && break 3
5778   done
5779 done
5780
5781 done
5782 IFS=$as_save_IFS
5783
5784
5785 fi
5786
5787 GREP="$ac_cv_path_GREP"
5788 if test -z "$GREP"; then
5789   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5790 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5791    { (exit 1); exit 1; }; }
5792 fi
5793
5794 else
5795   ac_cv_path_GREP=$GREP
5796 fi
5797
5798
5799 fi
5800 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5801 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5802  GREP="$ac_cv_path_GREP"
5803  
5804
5805 { echo "$as_me:$LINENO: checking for egrep" >&5
5806 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5807 if test "${ac_cv_path_EGREP+set}" = set; then
5808   echo $ECHO_N "(cached) $ECHO_C" >&6
5809 else
5810   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5811    then ac_cv_path_EGREP="$GREP -E"
5812    else
5813      # Extract the first word of "egrep" to use in msg output
5814 if test -z "$EGREP"; then
5815 set dummy egrep; ac_prog_name=$2
5816 if test "${ac_cv_path_EGREP+set}" = set; then
5817   echo $ECHO_N "(cached) $ECHO_C" >&6
5818 else
5819   ac_path_EGREP_found=false
5820 # Loop through the user's path and test for each of PROGNAME-LIST
5821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5822 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5823 do
5824   IFS=$as_save_IFS
5825   test -z "$as_dir" && as_dir=.
5826   for ac_prog in egrep; do
5827   for ac_exec_ext in '' $ac_executable_extensions; do
5828     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5829     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5830     # Check for GNU ac_path_EGREP and select it if it is found.
5831   # Check for GNU $ac_path_EGREP
5832 case `"$ac_path_EGREP" --version 2>&1` in
5833 *GNU*)
5834   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5835 *)
5836   ac_count=0
5837   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5838   while :
5839   do
5840     cat "conftest.in" "conftest.in" >"conftest.tmp"
5841     mv "conftest.tmp" "conftest.in"
5842     cp "conftest.in" "conftest.nl"
5843     echo 'EGREP' >> "conftest.nl"
5844     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5845     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5846     ac_count=`expr $ac_count + 1`
5847     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5848       # Best one so far, save it but keep looking for a better one
5849       ac_cv_path_EGREP="$ac_path_EGREP"
5850       ac_path_EGREP_max=$ac_count
5851     fi
5852     # 10*(2^10) chars as input seems more than enough
5853     test $ac_count -gt 10 && break
5854   done
5855   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5856 esac
5857
5858
5859     $ac_path_EGREP_found && break 3
5860   done
5861 done
5862
5863 done
5864 IFS=$as_save_IFS
5865
5866
5867 fi
5868
5869 EGREP="$ac_cv_path_EGREP"
5870 if test -z "$EGREP"; then
5871   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5872 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5873    { (exit 1); exit 1; }; }
5874 fi
5875
5876 else
5877   ac_cv_path_EGREP=$EGREP
5878 fi
5879
5880
5881    fi
5882 fi
5883 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5884 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5885  EGREP="$ac_cv_path_EGREP"
5886  
5887
5888
5889 # Check whether --with-gnu-ld was given.
5890 if test "${with_gnu_ld+set}" = set; then
5891   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5892 else
5893   with_gnu_ld=no
5894 fi
5895
5896 ac_prog=ld
5897 if test "$GCC" = yes; then
5898   # Check if gcc -print-prog-name=ld gives a path.
5899   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5900 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5901   case $host in
5902   *-*-mingw*)
5903     # gcc leaves a trailing carriage return which upsets mingw
5904     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5905   *)
5906     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5907   esac
5908   case $ac_prog in
5909     # Accept absolute paths.
5910     [\\/]* | ?:[\\/]*)
5911       re_direlt='/[^/][^/]*/\.\./'
5912       # Canonicalize the pathname of ld
5913       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5914       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5915         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5916       done
5917       test -z "$LD" && LD="$ac_prog"
5918       ;;
5919   "")
5920     # If it fails, then pretend we aren't using GCC.
5921     ac_prog=ld
5922     ;;
5923   *)
5924     # If it is relative, then search for the first ld in PATH.
5925     with_gnu_ld=unknown
5926     ;;
5927   esac
5928 elif test "$with_gnu_ld" = yes; then
5929   { echo "$as_me:$LINENO: checking for GNU ld" >&5
5930 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5931 else
5932   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5933 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5934 fi
5935 if test "${lt_cv_path_LD+set}" = set; then
5936   echo $ECHO_N "(cached) $ECHO_C" >&6
5937 else
5938   if test -z "$LD"; then
5939   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5940   for ac_dir in $PATH; do
5941     IFS="$lt_save_ifs"
5942     test -z "$ac_dir" && ac_dir=.
5943     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5944       lt_cv_path_LD="$ac_dir/$ac_prog"
5945       # Check to see if the program is GNU ld.  I'd rather use --version,
5946       # but apparently some variants of GNU ld only accept -v.
5947       # Break only if it was the GNU/non-GNU ld that we prefer.
5948       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5949       *GNU* | *'with BFD'*)
5950         test "$with_gnu_ld" != no && break
5951         ;;
5952       *)
5953         test "$with_gnu_ld" != yes && break
5954         ;;
5955       esac
5956     fi
5957   done
5958   IFS="$lt_save_ifs"
5959 else
5960   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5961 fi
5962 fi
5963
5964 LD="$lt_cv_path_LD"
5965 if test -n "$LD"; then
5966   { echo "$as_me:$LINENO: result: $LD" >&5
5967 echo "${ECHO_T}$LD" >&6; }
5968 else
5969   { echo "$as_me:$LINENO: result: no" >&5
5970 echo "${ECHO_T}no" >&6; }
5971 fi
5972 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5973 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5974    { (exit 1); exit 1; }; }
5975 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5976 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5977 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5978   echo $ECHO_N "(cached) $ECHO_C" >&6
5979 else
5980   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5981 case `$LD -v 2>&1 </dev/null` in
5982 *GNU* | *'with BFD'*)
5983   lt_cv_prog_gnu_ld=yes
5984   ;;
5985 *)
5986   lt_cv_prog_gnu_ld=no
5987   ;;
5988 esac
5989 fi
5990 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5991 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5992 with_gnu_ld=$lt_cv_prog_gnu_ld
5993
5994
5995 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5996 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
5997 if test "${lt_cv_ld_reload_flag+set}" = set; then
5998   echo $ECHO_N "(cached) $ECHO_C" >&6
5999 else
6000   lt_cv_ld_reload_flag='-r'
6001 fi
6002 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6003 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6004 reload_flag=$lt_cv_ld_reload_flag
6005 case $reload_flag in
6006 "" | " "*) ;;
6007 *) reload_flag=" $reload_flag" ;;
6008 esac
6009 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6010 case $host_os in
6011   darwin*)
6012     if test "$GCC" = yes; then
6013       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6014     else
6015       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6016     fi
6017     ;;
6018 esac
6019
6020 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6021 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6022 if test "${lt_cv_path_NM+set}" = set; then
6023   echo $ECHO_N "(cached) $ECHO_C" >&6
6024 else
6025   if test -n "$NM"; then
6026   # Let the user override the test.
6027   lt_cv_path_NM="$NM"
6028 else
6029   lt_nm_to_check="${ac_tool_prefix}nm"
6030   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 
6031     lt_nm_to_check="$lt_nm_to_check nm"
6032   fi
6033   for lt_tmp_nm in $lt_nm_to_check; do
6034     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6035     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6036       IFS="$lt_save_ifs"
6037       test -z "$ac_dir" && ac_dir=.
6038       tmp_nm="$ac_dir/$lt_tmp_nm"
6039       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6040         # Check to see if the nm accepts a BSD-compat flag.
6041         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6042         #   nm: unknown option "B" ignored
6043         # Tru64's nm complains that /dev/null is an invalid object file
6044         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6045         */dev/null* | *'Invalid file or object type'*)
6046           lt_cv_path_NM="$tmp_nm -B"
6047           break
6048           ;;
6049         *)
6050           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6051           */dev/null*)
6052             lt_cv_path_NM="$tmp_nm -p"
6053             break
6054             ;;
6055           *)
6056             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6057             continue # so that we can try to find one that supports BSD flags
6058             ;;
6059           esac
6060           ;;
6061         esac
6062       fi
6063     done
6064     IFS="$lt_save_ifs"
6065   done
6066   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6067 fi
6068 fi
6069 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6070 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6071 NM="$lt_cv_path_NM"
6072
6073 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6074 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
6075 if test "${lt_cv_deplibs_check_method+set}" = set; then
6076   echo $ECHO_N "(cached) $ECHO_C" >&6
6077 else
6078   lt_cv_file_magic_cmd='$MAGIC_CMD'
6079 lt_cv_file_magic_test_file=
6080 lt_cv_deplibs_check_method='unknown'
6081 # Need to set the preceding variable on all platforms that support
6082 # interlibrary dependencies.
6083 # 'none' -- dependencies not supported.
6084 # `unknown' -- same as none, but documents that we really don't know.
6085 # 'pass_all' -- all dependencies passed with no checks.
6086 # 'test_compile' -- check by making test program.
6087 # 'file_magic [[regex]]' -- check by looking for files in library path
6088 # which responds to the $file_magic_cmd with a given extended regex.
6089 # If you have `file' or equivalent on your system and you're not sure
6090 # whether `pass_all' will *always* work, you probably want this one.
6091
6092 case $host_os in
6093 aix4* | aix5*)
6094   lt_cv_deplibs_check_method=pass_all
6095   ;;
6096
6097 beos*)
6098   lt_cv_deplibs_check_method=pass_all
6099   ;;
6100
6101 bsdi[45]*)
6102   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6103   lt_cv_file_magic_cmd='/usr/bin/file -L'
6104   lt_cv_file_magic_test_file=/shlib/libc.so
6105   ;;
6106
6107 cygwin*)
6108   # func_win32_libid is a shell function defined in ltmain.sh
6109   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6110   lt_cv_file_magic_cmd='func_win32_libid'
6111   ;;
6112
6113 mingw* | pw32*)
6114   # Base MSYS/MinGW do not provide the 'file' command needed by
6115   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6116   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6117   lt_cv_file_magic_cmd='$OBJDUMP -f'
6118   ;;
6119
6120 darwin* | rhapsody*)
6121   lt_cv_deplibs_check_method=pass_all
6122   ;;
6123
6124 freebsd* | dragonfly*)
6125   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6126     case $host_cpu in
6127     i*86 )
6128       # Not sure whether the presence of OpenBSD here was a mistake.
6129       # Let's accept both of them until this is cleared up.
6130       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6131       lt_cv_file_magic_cmd=/usr/bin/file
6132       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6133       ;;
6134     esac
6135   else
6136     lt_cv_deplibs_check_method=pass_all
6137   fi
6138   ;;
6139
6140 gnu*)
6141   lt_cv_deplibs_check_method=pass_all
6142   ;;
6143
6144 hpux10.20* | hpux11*)
6145   lt_cv_file_magic_cmd=/usr/bin/file
6146   case $host_cpu in
6147   ia64*)
6148     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6149     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6150     ;;
6151   hppa*64*)
6152     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]'
6153     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6154     ;;
6155   *)
6156     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6157     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6158     ;;
6159   esac
6160   ;;
6161
6162 interix3*)
6163   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6164   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6165   ;;
6166
6167 irix5* | irix6* | nonstopux*)
6168   case $LD in
6169   *-32|*"-32 ") libmagic=32-bit;;
6170   *-n32|*"-n32 ") libmagic=N32;;
6171   *-64|*"-64 ") libmagic=64-bit;;
6172   *) libmagic=never-match;;
6173   esac
6174   lt_cv_deplibs_check_method=pass_all
6175   ;;
6176
6177 # This must be Linux ELF.
6178 linux* | k*bsd*-gnu)
6179   lt_cv_deplibs_check_method=pass_all
6180   ;;
6181
6182 netbsd* | netbsdelf*-gnu)
6183   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6184     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6185   else
6186     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6187   fi
6188   ;;
6189
6190 newos6*)
6191   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6192   lt_cv_file_magic_cmd=/usr/bin/file
6193   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6194   ;;
6195
6196 nto-qnx*)
6197   lt_cv_deplibs_check_method=unknown
6198   ;;
6199
6200 openbsd*)
6201   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6202     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6203   else
6204     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6205   fi
6206   ;;
6207
6208 osf3* | osf4* | osf5*)
6209   lt_cv_deplibs_check_method=pass_all
6210   ;;
6211
6212 solaris*)
6213   lt_cv_deplibs_check_method=pass_all
6214   ;;
6215
6216 sysv4 | sysv4.3*)
6217   case $host_vendor in
6218   motorola)
6219     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]'
6220     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6221     ;;
6222   ncr)
6223     lt_cv_deplibs_check_method=pass_all
6224     ;;
6225   sequent)
6226     lt_cv_file_magic_cmd='/bin/file'
6227     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6228     ;;
6229   sni)
6230     lt_cv_file_magic_cmd='/bin/file'
6231     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6232     lt_cv_file_magic_test_file=/lib/libc.so
6233     ;;
6234   siemens)
6235     lt_cv_deplibs_check_method=pass_all
6236     ;;
6237   pc)
6238     lt_cv_deplibs_check_method=pass_all
6239     ;;
6240   esac
6241   ;;
6242
6243 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6244   lt_cv_deplibs_check_method=pass_all
6245   ;;
6246 esac
6247
6248 fi
6249 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6250 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6251 file_magic_cmd=$lt_cv_file_magic_cmd
6252 deplibs_check_method=$lt_cv_deplibs_check_method
6253 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6254
6255
6256
6257
6258 # If no C compiler was specified, use CC.
6259 LTCC=${LTCC-"$CC"}
6260
6261 # If no C compiler flags were specified, use CFLAGS.
6262 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6263
6264 # Allow CC to be a program name with arguments.
6265 compiler=$CC
6266
6267 # Check whether --enable-libtool-lock was given.
6268 if test "${enable_libtool_lock+set}" = set; then
6269   enableval=$enable_libtool_lock; 
6270 fi
6271
6272 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6273
6274 # Some flags need to be propagated to the compiler or linker for good
6275 # libtool support.
6276 case $host in
6277 ia64-*-hpux*)
6278   # Find out which ABI we are using.
6279   echo 'int i;' > conftest.$ac_ext
6280   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6281   (eval $ac_compile) 2>&5
6282   ac_status=$?
6283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6284   (exit $ac_status); }; then
6285     case `/usr/bin/file conftest.$ac_objext` in
6286     *ELF-32*)
6287       HPUX_IA64_MODE="32"
6288       ;;
6289     *ELF-64*)
6290       HPUX_IA64_MODE="64"
6291       ;;
6292     esac
6293   fi
6294   rm -rf conftest*
6295   ;;
6296 *-*-irix6*)
6297   # Find out which ABI we are using.
6298   echo '#line __oline__ "configure"' > conftest.$ac_ext
6299   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6300   (eval $ac_compile) 2>&5
6301   ac_status=$?
6302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6303   (exit $ac_status); }; then
6304    if test "$lt_cv_prog_gnu_ld" = yes; then
6305     case `/usr/bin/file conftest.$ac_objext` in
6306     *32-bit*)
6307       LD="${LD-ld} -melf32bsmip"
6308       ;;
6309     *N32*)
6310       LD="${LD-ld} -melf32bmipn32"
6311       ;;
6312     *64-bit*)
6313       LD="${LD-ld} -melf64bmip"
6314       ;;
6315     esac
6316    else
6317     case `/usr/bin/file conftest.$ac_objext` in
6318     *32-bit*)
6319       LD="${LD-ld} -32"
6320       ;;
6321     *N32*)
6322       LD="${LD-ld} -n32"
6323       ;;
6324     *64-bit*)
6325       LD="${LD-ld} -64"
6326       ;;
6327     esac
6328    fi
6329   fi
6330   rm -rf conftest*
6331   ;;
6332
6333 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6334   # Find out which ABI we are using.
6335   echo 'int i;' > conftest.$ac_ext
6336   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6337   (eval $ac_compile) 2>&5
6338   ac_status=$?
6339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6340   (exit $ac_status); }; then
6341     case `/usr/bin/file conftest.o` in
6342     *32-bit*)
6343       case $host in
6344         x86_64-*linux*)
6345           LD="${LD-ld} -m elf_i386"
6346           ;;
6347         ppc64-*linux*|powerpc64-*linux*)
6348           LD="${LD-ld} -m elf32ppclinux"
6349           ;;
6350         s390x-*linux*)
6351           LD="${LD-ld} -m elf_s390"
6352           ;;
6353         sparc64-*linux*)
6354           LD="${LD-ld} -m elf32_sparc"
6355           ;;
6356       esac
6357       ;;
6358     *64-bit*)
6359       case $host in
6360         x86_64-*linux*)
6361           LD="${LD-ld} -m elf_x86_64"
6362           ;;
6363         ppc*-*linux*|powerpc*-*linux*)
6364           LD="${LD-ld} -m elf64ppc"
6365           ;;
6366         s390*-*linux*)
6367           LD="${LD-ld} -m elf64_s390"
6368           ;;
6369         sparc*-*linux*)
6370           LD="${LD-ld} -m elf64_sparc"
6371           ;;
6372       esac
6373       ;;
6374     esac
6375   fi
6376   rm -rf conftest*
6377   ;;
6378
6379 *-*-sco3.2v5*)
6380   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6381   SAVE_CFLAGS="$CFLAGS"
6382   CFLAGS="$CFLAGS -belf"
6383   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6384 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
6385 if test "${lt_cv_cc_needs_belf+set}" = set; then
6386   echo $ECHO_N "(cached) $ECHO_C" >&6
6387 else
6388   ac_ext=c
6389 ac_cpp='$CPP $CPPFLAGS'
6390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6393
6394      cat >conftest.$ac_ext <<_ACEOF
6395 /* confdefs.h.  */
6396 _ACEOF
6397 cat confdefs.h >>conftest.$ac_ext
6398 cat >>conftest.$ac_ext <<_ACEOF
6399 /* end confdefs.h.  */
6400
6401 int
6402 main ()
6403 {
6404
6405   ;
6406   return 0;
6407 }
6408 _ACEOF
6409 rm -f conftest.$ac_objext conftest$ac_exeext
6410 if { (ac_try="$ac_link"
6411 case "(($ac_try" in
6412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6413   *) ac_try_echo=$ac_try;;
6414 esac
6415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6416   (eval "$ac_link") 2>conftest.er1
6417   ac_status=$?
6418   grep -v '^ *+' conftest.er1 >conftest.err
6419   rm -f conftest.er1
6420   cat conftest.err >&5
6421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6422   (exit $ac_status); } && {
6423          test -z "$ac_c_werror_flag" ||
6424          test ! -s conftest.err
6425        } && test -s conftest$ac_exeext &&
6426        $as_test_x conftest$ac_exeext; then
6427   lt_cv_cc_needs_belf=yes
6428 else
6429   echo "$as_me: failed program was:" >&5
6430 sed 's/^/| /' conftest.$ac_ext >&5
6431
6432         lt_cv_cc_needs_belf=no
6433 fi
6434
6435 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6436       conftest$ac_exeext conftest.$ac_ext
6437      ac_ext=c
6438 ac_cpp='$CPP $CPPFLAGS'
6439 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6440 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6441 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6442
6443 fi
6444 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6445 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6446   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6447     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6448     CFLAGS="$SAVE_CFLAGS"
6449   fi
6450   ;;
6451 sparc*-*solaris*)
6452   # Find out which ABI we are using.
6453   echo 'int i;' > conftest.$ac_ext
6454   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6455   (eval $ac_compile) 2>&5
6456   ac_status=$?
6457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6458   (exit $ac_status); }; then
6459     case `/usr/bin/file conftest.o` in
6460     *64-bit*)
6461       case $lt_cv_prog_gnu_ld in
6462       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6463       *)    LD="${LD-ld} -64" ;;
6464       esac
6465       ;;
6466     esac
6467   fi
6468   rm -rf conftest*
6469   ;;
6470
6471
6472 esac
6473
6474 need_locks="$enable_libtool_lock"
6475
6476
6477
6478 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6479 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6480 if test "${ac_cv_header_stdc+set}" = set; then
6481   echo $ECHO_N "(cached) $ECHO_C" >&6
6482 else
6483   cat >conftest.$ac_ext <<_ACEOF
6484 /* confdefs.h.  */
6485 _ACEOF
6486 cat confdefs.h >>conftest.$ac_ext
6487 cat >>conftest.$ac_ext <<_ACEOF
6488 /* end confdefs.h.  */
6489 #include <stdlib.h>
6490 #include <stdarg.h>
6491 #include <string.h>
6492 #include <float.h>
6493
6494 int
6495 main ()
6496 {
6497
6498   ;
6499   return 0;
6500 }
6501 _ACEOF
6502 rm -f conftest.$ac_objext
6503 if { (ac_try="$ac_compile"
6504 case "(($ac_try" in
6505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6506   *) ac_try_echo=$ac_try;;
6507 esac
6508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6509   (eval "$ac_compile") 2>conftest.er1
6510   ac_status=$?
6511   grep -v '^ *+' conftest.er1 >conftest.err
6512   rm -f conftest.er1
6513   cat conftest.err >&5
6514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6515   (exit $ac_status); } && {
6516          test -z "$ac_c_werror_flag" ||
6517          test ! -s conftest.err
6518        } && test -s conftest.$ac_objext; then
6519   ac_cv_header_stdc=yes
6520 else
6521   echo "$as_me: failed program was:" >&5
6522 sed 's/^/| /' conftest.$ac_ext >&5
6523
6524         ac_cv_header_stdc=no
6525 fi
6526
6527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6528
6529 if test $ac_cv_header_stdc = yes; then
6530   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6531   cat >conftest.$ac_ext <<_ACEOF
6532 /* confdefs.h.  */
6533 _ACEOF
6534 cat confdefs.h >>conftest.$ac_ext
6535 cat >>conftest.$ac_ext <<_ACEOF
6536 /* end confdefs.h.  */
6537 #include <string.h>
6538
6539 _ACEOF
6540 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6541   $EGREP "memchr" >/dev/null 2>&1; then
6542   :
6543 else
6544   ac_cv_header_stdc=no
6545 fi
6546 rm -f conftest*
6547
6548 fi
6549
6550 if test $ac_cv_header_stdc = yes; then
6551   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6552   cat >conftest.$ac_ext <<_ACEOF
6553 /* confdefs.h.  */
6554 _ACEOF
6555 cat confdefs.h >>conftest.$ac_ext
6556 cat >>conftest.$ac_ext <<_ACEOF
6557 /* end confdefs.h.  */
6558 #include <stdlib.h>
6559
6560 _ACEOF
6561 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6562   $EGREP "free" >/dev/null 2>&1; then
6563   :
6564 else
6565   ac_cv_header_stdc=no
6566 fi
6567 rm -f conftest*
6568
6569 fi
6570
6571 if test $ac_cv_header_stdc = yes; then
6572   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6573   if test "$cross_compiling" = yes; then
6574   :
6575 else
6576   cat >conftest.$ac_ext <<_ACEOF
6577 /* confdefs.h.  */
6578 _ACEOF
6579 cat confdefs.h >>conftest.$ac_ext
6580 cat >>conftest.$ac_ext <<_ACEOF
6581 /* end confdefs.h.  */
6582 #include <ctype.h>
6583 #include <stdlib.h>
6584 #if ((' ' & 0x0FF) == 0x020)
6585 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6586 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6587 #else
6588 # define ISLOWER(c) \
6589                    (('a' <= (c) && (c) <= 'i') \
6590                      || ('j' <= (c) && (c) <= 'r') \
6591                      || ('s' <= (c) && (c) <= 'z'))
6592 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6593 #endif
6594
6595 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6596 int
6597 main ()
6598 {
6599   int i;
6600   for (i = 0; i < 256; i++)
6601     if (XOR (islower (i), ISLOWER (i))
6602         || toupper (i) != TOUPPER (i))
6603       return 2;
6604   return 0;
6605 }
6606 _ACEOF
6607 rm -f conftest$ac_exeext
6608 if { (ac_try="$ac_link"
6609 case "(($ac_try" in
6610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6611   *) ac_try_echo=$ac_try;;
6612 esac
6613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6614   (eval "$ac_link") 2>&5
6615   ac_status=$?
6616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6617   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6618   { (case "(($ac_try" in
6619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6620   *) ac_try_echo=$ac_try;;
6621 esac
6622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6623   (eval "$ac_try") 2>&5
6624   ac_status=$?
6625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6626   (exit $ac_status); }; }; then
6627   :
6628 else
6629   echo "$as_me: program exited with status $ac_status" >&5
6630 echo "$as_me: failed program was:" >&5
6631 sed 's/^/| /' conftest.$ac_ext >&5
6632
6633 ( exit $ac_status )
6634 ac_cv_header_stdc=no
6635 fi
6636 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6637 fi
6638
6639
6640 fi
6641 fi
6642 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6643 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6644 if test $ac_cv_header_stdc = yes; then
6645   
6646 cat >>confdefs.h <<\_ACEOF
6647 @%:@define STDC_HEADERS 1
6648 _ACEOF
6649
6650 fi
6651
6652 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6663                   inttypes.h stdint.h unistd.h
6664 do
6665 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6666 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6667 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6668 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6669   echo $ECHO_N "(cached) $ECHO_C" >&6
6670 else
6671   cat >conftest.$ac_ext <<_ACEOF
6672 /* confdefs.h.  */
6673 _ACEOF
6674 cat confdefs.h >>conftest.$ac_ext
6675 cat >>conftest.$ac_ext <<_ACEOF
6676 /* end confdefs.h.  */
6677 $ac_includes_default
6678
6679 @%:@include <$ac_header>
6680 _ACEOF
6681 rm -f conftest.$ac_objext
6682 if { (ac_try="$ac_compile"
6683 case "(($ac_try" in
6684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6685   *) ac_try_echo=$ac_try;;
6686 esac
6687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6688   (eval "$ac_compile") 2>conftest.er1
6689   ac_status=$?
6690   grep -v '^ *+' conftest.er1 >conftest.err
6691   rm -f conftest.er1
6692   cat conftest.err >&5
6693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6694   (exit $ac_status); } && {
6695          test -z "$ac_c_werror_flag" ||
6696          test ! -s conftest.err
6697        } && test -s conftest.$ac_objext; then
6698   eval "$as_ac_Header=yes"
6699 else
6700   echo "$as_me: failed program was:" >&5
6701 sed 's/^/| /' conftest.$ac_ext >&5
6702
6703         eval "$as_ac_Header=no"
6704 fi
6705
6706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6707 fi
6708 ac_res=`eval echo '${'$as_ac_Header'}'`
6709                { echo "$as_me:$LINENO: result: $ac_res" >&5
6710 echo "${ECHO_T}$ac_res" >&6; }
6711 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6712   cat >>confdefs.h <<_ACEOF
6713 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6714 _ACEOF
6715  
6716 fi
6717
6718 done
6719
6720
6721
6722 for ac_header in dlfcn.h
6723 do
6724 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6725 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6726   { echo "$as_me:$LINENO: checking for $ac_header" >&5
6727 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6728 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6729   echo $ECHO_N "(cached) $ECHO_C" >&6
6730 fi
6731 ac_res=`eval echo '${'$as_ac_Header'}'`
6732                { echo "$as_me:$LINENO: result: $ac_res" >&5
6733 echo "${ECHO_T}$ac_res" >&6; }
6734 else
6735   # Is the header compilable?
6736 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6737 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6738 cat >conftest.$ac_ext <<_ACEOF
6739 /* confdefs.h.  */
6740 _ACEOF
6741 cat confdefs.h >>conftest.$ac_ext
6742 cat >>conftest.$ac_ext <<_ACEOF
6743 /* end confdefs.h.  */
6744 $ac_includes_default
6745 @%:@include <$ac_header>
6746 _ACEOF
6747 rm -f conftest.$ac_objext
6748 if { (ac_try="$ac_compile"
6749 case "(($ac_try" in
6750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6751   *) ac_try_echo=$ac_try;;
6752 esac
6753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6754   (eval "$ac_compile") 2>conftest.er1
6755   ac_status=$?
6756   grep -v '^ *+' conftest.er1 >conftest.err
6757   rm -f conftest.er1
6758   cat conftest.err >&5
6759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6760   (exit $ac_status); } && {
6761          test -z "$ac_c_werror_flag" ||
6762          test ! -s conftest.err
6763        } && test -s conftest.$ac_objext; then
6764   ac_header_compiler=yes
6765 else
6766   echo "$as_me: failed program was:" >&5
6767 sed 's/^/| /' conftest.$ac_ext >&5
6768
6769         ac_header_compiler=no
6770 fi
6771
6772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6773 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6774 echo "${ECHO_T}$ac_header_compiler" >&6; }
6775
6776 # Is the header present?
6777 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6778 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6779 cat >conftest.$ac_ext <<_ACEOF
6780 /* confdefs.h.  */
6781 _ACEOF
6782 cat confdefs.h >>conftest.$ac_ext
6783 cat >>conftest.$ac_ext <<_ACEOF
6784 /* end confdefs.h.  */
6785 @%:@include <$ac_header>
6786 _ACEOF
6787 if { (ac_try="$ac_cpp conftest.$ac_ext"
6788 case "(($ac_try" in
6789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6790   *) ac_try_echo=$ac_try;;
6791 esac
6792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6793   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6794   ac_status=$?
6795   grep -v '^ *+' conftest.er1 >conftest.err
6796   rm -f conftest.er1
6797   cat conftest.err >&5
6798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6799   (exit $ac_status); } >/dev/null && {
6800          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6801          test ! -s conftest.err
6802        }; then
6803   ac_header_preproc=yes
6804 else
6805   echo "$as_me: failed program was:" >&5
6806 sed 's/^/| /' conftest.$ac_ext >&5
6807
6808   ac_header_preproc=no
6809 fi
6810
6811 rm -f conftest.err conftest.$ac_ext
6812 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6813 echo "${ECHO_T}$ac_header_preproc" >&6; }
6814
6815 # So?  What about this header?
6816 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6817   yes:no: )
6818     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6819 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6820     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6821 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6822     ac_header_preproc=yes
6823     ;;
6824   no:yes:* )
6825     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6826 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6827     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6828 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6829     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6830 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6831     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6832 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6833     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6834 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6835     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6836 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6837     ( cat <<\_ASBOX
6838 @%:@@%:@ ------------------------------- @%:@@%:@
6839 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
6840 @%:@@%:@ ------------------------------- @%:@@%:@
6841 _ASBOX
6842      ) | sed "s/^/$as_me: WARNING:     /" >&2
6843     ;;
6844 esac
6845 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6846 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6847 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6848   echo $ECHO_N "(cached) $ECHO_C" >&6
6849 else
6850   eval "$as_ac_Header=\$ac_header_preproc"
6851 fi
6852 ac_res=`eval echo '${'$as_ac_Header'}'`
6853                { echo "$as_me:$LINENO: result: $ac_res" >&5
6854 echo "${ECHO_T}$ac_res" >&6; }
6855
6856 fi
6857 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6858   cat >>confdefs.h <<_ACEOF
6859 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6860 _ACEOF
6861  
6862 fi
6863
6864 done
6865
6866
6867
6868 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6869     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6870     (test "X$CXX" != "Xg++"))) ; then
6871   ac_ext=cpp
6872 ac_cpp='$CXXCPP $CPPFLAGS'
6873 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6874 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6875 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6876 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6877 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
6878 if test -z "$CXXCPP"; then
6879   if test "${ac_cv_prog_CXXCPP+set}" = set; then
6880   echo $ECHO_N "(cached) $ECHO_C" >&6
6881 else
6882       # Double quotes because CXXCPP needs to be expanded
6883     for CXXCPP in "$CXX -E" "/lib/cpp"
6884     do
6885       ac_preproc_ok=false
6886 for ac_cxx_preproc_warn_flag in '' yes
6887 do
6888   # Use a header file that comes with gcc, so configuring glibc
6889   # with a fresh cross-compiler works.
6890   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6891   # <limits.h> exists even on freestanding compilers.
6892   # On the NeXT, cc -E runs the code through the compiler's parser,
6893   # not just through cpp. "Syntax error" is here to catch this case.
6894   cat >conftest.$ac_ext <<_ACEOF
6895 /* confdefs.h.  */
6896 _ACEOF
6897 cat confdefs.h >>conftest.$ac_ext
6898 cat >>conftest.$ac_ext <<_ACEOF
6899 /* end confdefs.h.  */
6900 @%:@ifdef __STDC__
6901 @%:@ include <limits.h>
6902 @%:@else
6903 @%:@ include <assert.h>
6904 @%:@endif
6905                      Syntax error
6906 _ACEOF
6907 if { (ac_try="$ac_cpp conftest.$ac_ext"
6908 case "(($ac_try" in
6909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6910   *) ac_try_echo=$ac_try;;
6911 esac
6912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6913   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6914   ac_status=$?
6915   grep -v '^ *+' conftest.er1 >conftest.err
6916   rm -f conftest.er1
6917   cat conftest.err >&5
6918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6919   (exit $ac_status); } >/dev/null && {
6920          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6921          test ! -s conftest.err
6922        }; then
6923   :
6924 else
6925   echo "$as_me: failed program was:" >&5
6926 sed 's/^/| /' conftest.$ac_ext >&5
6927
6928   # Broken: fails on valid input.
6929 continue
6930 fi
6931
6932 rm -f conftest.err conftest.$ac_ext
6933
6934   # OK, works on sane cases.  Now check whether nonexistent headers
6935   # can be detected and how.
6936   cat >conftest.$ac_ext <<_ACEOF
6937 /* confdefs.h.  */
6938 _ACEOF
6939 cat confdefs.h >>conftest.$ac_ext
6940 cat >>conftest.$ac_ext <<_ACEOF
6941 /* end confdefs.h.  */
6942 @%:@include <ac_nonexistent.h>
6943 _ACEOF
6944 if { (ac_try="$ac_cpp conftest.$ac_ext"
6945 case "(($ac_try" in
6946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6947   *) ac_try_echo=$ac_try;;
6948 esac
6949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6950   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6951   ac_status=$?
6952   grep -v '^ *+' conftest.er1 >conftest.err
6953   rm -f conftest.er1
6954   cat conftest.err >&5
6955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6956   (exit $ac_status); } >/dev/null && {
6957          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6958          test ! -s conftest.err
6959        }; then
6960   # Broken: success on invalid input.
6961 continue
6962 else
6963   echo "$as_me: failed program was:" >&5
6964 sed 's/^/| /' conftest.$ac_ext >&5
6965
6966   # Passes both tests.
6967 ac_preproc_ok=:
6968 break
6969 fi
6970
6971 rm -f conftest.err conftest.$ac_ext
6972
6973 done
6974 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6975 rm -f conftest.err conftest.$ac_ext
6976 if $ac_preproc_ok; then
6977   break
6978 fi
6979
6980     done
6981     ac_cv_prog_CXXCPP=$CXXCPP
6982   
6983 fi
6984   CXXCPP=$ac_cv_prog_CXXCPP
6985 else
6986   ac_cv_prog_CXXCPP=$CXXCPP
6987 fi
6988 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
6989 echo "${ECHO_T}$CXXCPP" >&6; }
6990 ac_preproc_ok=false
6991 for ac_cxx_preproc_warn_flag in '' yes
6992 do
6993   # Use a header file that comes with gcc, so configuring glibc
6994   # with a fresh cross-compiler works.
6995   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6996   # <limits.h> exists even on freestanding compilers.
6997   # On the NeXT, cc -E runs the code through the compiler's parser,
6998   # not just through cpp. "Syntax error" is here to catch this case.
6999   cat >conftest.$ac_ext <<_ACEOF
7000 /* confdefs.h.  */
7001 _ACEOF
7002 cat confdefs.h >>conftest.$ac_ext
7003 cat >>conftest.$ac_ext <<_ACEOF
7004 /* end confdefs.h.  */
7005 @%:@ifdef __STDC__
7006 @%:@ include <limits.h>
7007 @%:@else
7008 @%:@ include <assert.h>
7009 @%:@endif
7010                      Syntax error
7011 _ACEOF
7012 if { (ac_try="$ac_cpp conftest.$ac_ext"
7013 case "(($ac_try" in
7014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7015   *) ac_try_echo=$ac_try;;
7016 esac
7017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7018   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7019   ac_status=$?
7020   grep -v '^ *+' conftest.er1 >conftest.err
7021   rm -f conftest.er1
7022   cat conftest.err >&5
7023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7024   (exit $ac_status); } >/dev/null && {
7025          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7026          test ! -s conftest.err
7027        }; then
7028   :
7029 else
7030   echo "$as_me: failed program was:" >&5
7031 sed 's/^/| /' conftest.$ac_ext >&5
7032
7033   # Broken: fails on valid input.
7034 continue
7035 fi
7036
7037 rm -f conftest.err conftest.$ac_ext
7038
7039   # OK, works on sane cases.  Now check whether nonexistent headers
7040   # can be detected and how.
7041   cat >conftest.$ac_ext <<_ACEOF
7042 /* confdefs.h.  */
7043 _ACEOF
7044 cat confdefs.h >>conftest.$ac_ext
7045 cat >>conftest.$ac_ext <<_ACEOF
7046 /* end confdefs.h.  */
7047 @%:@include <ac_nonexistent.h>
7048 _ACEOF
7049 if { (ac_try="$ac_cpp conftest.$ac_ext"
7050 case "(($ac_try" in
7051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7052   *) ac_try_echo=$ac_try;;
7053 esac
7054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7055   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7056   ac_status=$?
7057   grep -v '^ *+' conftest.er1 >conftest.err
7058   rm -f conftest.er1
7059   cat conftest.err >&5
7060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7061   (exit $ac_status); } >/dev/null && {
7062          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7063          test ! -s conftest.err
7064        }; then
7065   # Broken: success on invalid input.
7066 continue
7067 else
7068   echo "$as_me: failed program was:" >&5
7069 sed 's/^/| /' conftest.$ac_ext >&5
7070
7071   # Passes both tests.
7072 ac_preproc_ok=:
7073 break
7074 fi
7075
7076 rm -f conftest.err conftest.$ac_ext
7077
7078 done
7079 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7080 rm -f conftest.err conftest.$ac_ext
7081 if $ac_preproc_ok; then
7082   :
7083 else
7084   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7085 See \`config.log' for more details." >&5
7086 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7087 See \`config.log' for more details." >&2;}
7088    { (exit 1); exit 1; }; }
7089 fi
7090
7091 ac_ext=cpp
7092 ac_cpp='$CXXCPP $CPPFLAGS'
7093 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7094 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7095 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7096
7097 fi
7098
7099
7100 ac_ext=f
7101 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7102 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7103 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7104 if test -n "$ac_tool_prefix"; then
7105   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
7106   do
7107     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7108 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7109 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7110 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7111 if test "${ac_cv_prog_F77+set}" = set; then
7112   echo $ECHO_N "(cached) $ECHO_C" >&6
7113 else
7114   if test -n "$F77"; then
7115   ac_cv_prog_F77="$F77" # Let the user override the test.
7116 else
7117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7118 for as_dir in $PATH
7119 do
7120   IFS=$as_save_IFS
7121   test -z "$as_dir" && as_dir=.
7122   for ac_exec_ext in '' $ac_executable_extensions; do
7123   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7124     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7125     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7126     break 2
7127   fi
7128 done
7129 done
7130 IFS=$as_save_IFS
7131
7132 fi
7133 fi
7134 F77=$ac_cv_prog_F77
7135 if test -n "$F77"; then
7136   { echo "$as_me:$LINENO: result: $F77" >&5
7137 echo "${ECHO_T}$F77" >&6; }
7138 else
7139   { echo "$as_me:$LINENO: result: no" >&5
7140 echo "${ECHO_T}no" >&6; }
7141 fi
7142
7143
7144     test -n "$F77" && break
7145   done
7146 fi
7147 if test -z "$F77"; then
7148   ac_ct_F77=$F77
7149   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
7150 do
7151   # Extract the first word of "$ac_prog", so it can be a program name with args.
7152 set dummy $ac_prog; ac_word=$2
7153 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7154 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7155 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7156   echo $ECHO_N "(cached) $ECHO_C" >&6
7157 else
7158   if test -n "$ac_ct_F77"; then
7159   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7160 else
7161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7162 for as_dir in $PATH
7163 do
7164   IFS=$as_save_IFS
7165   test -z "$as_dir" && as_dir=.
7166   for ac_exec_ext in '' $ac_executable_extensions; do
7167   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7168     ac_cv_prog_ac_ct_F77="$ac_prog"
7169     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7170     break 2
7171   fi
7172 done
7173 done
7174 IFS=$as_save_IFS
7175
7176 fi
7177 fi
7178 ac_ct_F77=$ac_cv_prog_ac_ct_F77
7179 if test -n "$ac_ct_F77"; then
7180   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7181 echo "${ECHO_T}$ac_ct_F77" >&6; }
7182 else
7183   { echo "$as_me:$LINENO: result: no" >&5
7184 echo "${ECHO_T}no" >&6; }
7185 fi
7186
7187
7188   test -n "$ac_ct_F77" && break
7189 done
7190
7191   if test "x$ac_ct_F77" = x; then
7192     F77=""
7193   else
7194     case $cross_compiling:$ac_tool_warned in
7195 yes:)
7196 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7197 whose name does not start with the host triplet.  If you think this
7198 configuration is useful to you, please write to autoconf@gnu.org." >&5
7199 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7200 whose name does not start with the host triplet.  If you think this
7201 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7202 ac_tool_warned=yes ;;
7203 esac
7204     F77=$ac_ct_F77
7205   fi
7206 fi
7207
7208
7209 # Provide some information about the compiler.
7210 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
7211 ac_compiler=`set X $ac_compile; echo $2`
7212 { (ac_try="$ac_compiler --version >&5"
7213 case "(($ac_try" in
7214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7215   *) ac_try_echo=$ac_try;;
7216 esac
7217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7218   (eval "$ac_compiler --version >&5") 2>&5
7219   ac_status=$?
7220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7221   (exit $ac_status); }
7222 { (ac_try="$ac_compiler -v >&5"
7223 case "(($ac_try" in
7224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7225   *) ac_try_echo=$ac_try;;
7226 esac
7227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7228   (eval "$ac_compiler -v >&5") 2>&5
7229   ac_status=$?
7230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7231   (exit $ac_status); }
7232 { (ac_try="$ac_compiler -V >&5"
7233 case "(($ac_try" in
7234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7235   *) ac_try_echo=$ac_try;;
7236 esac
7237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7238   (eval "$ac_compiler -V >&5") 2>&5
7239   ac_status=$?
7240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7241   (exit $ac_status); }
7242 rm -f a.out
7243
7244 # If we don't use `.F' as extension, the preprocessor is not run on the
7245 # input file.  (Note that this only needs to work for GNU compilers.)
7246 ac_save_ext=$ac_ext
7247 ac_ext=F
7248 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7249 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
7250 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7251   echo $ECHO_N "(cached) $ECHO_C" >&6
7252 else
7253   cat >conftest.$ac_ext <<_ACEOF
7254       program main
7255 #ifndef __GNUC__
7256        choke me
7257 #endif
7258
7259       end
7260 _ACEOF
7261 rm -f conftest.$ac_objext
7262 if { (ac_try="$ac_compile"
7263 case "(($ac_try" in
7264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7265   *) ac_try_echo=$ac_try;;
7266 esac
7267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7268   (eval "$ac_compile") 2>conftest.er1
7269   ac_status=$?
7270   grep -v '^ *+' conftest.er1 >conftest.err
7271   rm -f conftest.er1
7272   cat conftest.err >&5
7273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7274   (exit $ac_status); } && {
7275          test -z "$ac_f77_werror_flag" ||
7276          test ! -s conftest.err
7277        } && test -s conftest.$ac_objext; then
7278   ac_compiler_gnu=yes
7279 else
7280   echo "$as_me: failed program was:" >&5
7281 sed 's/^/| /' conftest.$ac_ext >&5
7282
7283         ac_compiler_gnu=no
7284 fi
7285
7286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7287 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7288
7289 fi
7290 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7291 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
7292 ac_ext=$ac_save_ext
7293 ac_test_FFLAGS=${FFLAGS+set}
7294 ac_save_FFLAGS=$FFLAGS
7295 FFLAGS=
7296 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7297 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
7298 if test "${ac_cv_prog_f77_g+set}" = set; then
7299   echo $ECHO_N "(cached) $ECHO_C" >&6
7300 else
7301   FFLAGS=-g
7302 cat >conftest.$ac_ext <<_ACEOF
7303       program main
7304
7305       end
7306 _ACEOF
7307 rm -f conftest.$ac_objext
7308 if { (ac_try="$ac_compile"
7309 case "(($ac_try" in
7310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7311   *) ac_try_echo=$ac_try;;
7312 esac
7313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7314   (eval "$ac_compile") 2>conftest.er1
7315   ac_status=$?
7316   grep -v '^ *+' conftest.er1 >conftest.err
7317   rm -f conftest.er1
7318   cat conftest.err >&5
7319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7320   (exit $ac_status); } && {
7321          test -z "$ac_f77_werror_flag" ||
7322          test ! -s conftest.err
7323        } && test -s conftest.$ac_objext; then
7324   ac_cv_prog_f77_g=yes
7325 else
7326   echo "$as_me: failed program was:" >&5
7327 sed 's/^/| /' conftest.$ac_ext >&5
7328
7329         ac_cv_prog_f77_g=no
7330 fi
7331
7332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7333
7334 fi
7335 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7336 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
7337 if test "$ac_test_FFLAGS" = set; then
7338   FFLAGS=$ac_save_FFLAGS
7339 elif test $ac_cv_prog_f77_g = yes; then
7340   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7341     FFLAGS="-g -O2"
7342   else
7343     FFLAGS="-g"
7344   fi
7345 else
7346   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7347     FFLAGS="-O2"
7348   else
7349     FFLAGS=
7350   fi
7351 fi
7352
7353 G77=`test $ac_compiler_gnu = yes && echo yes`
7354 ac_ext=c
7355 ac_cpp='$CPP $CPPFLAGS'
7356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7359
7360
7361
7362 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7363
7364 # find the maximum length of command line arguments
7365 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7366 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
7367 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7368   echo $ECHO_N "(cached) $ECHO_C" >&6
7369 else
7370     i=0
7371   teststring="ABCD"
7372
7373   case $build_os in
7374   msdosdjgpp*)
7375     # On DJGPP, this test can blow up pretty badly due to problems in libc
7376     # (any single argument exceeding 2000 bytes causes a buffer overrun
7377     # during glob expansion).  Even if it were fixed, the result of this
7378     # check would be larger than it should be.
7379     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7380     ;;
7381
7382   gnu*)
7383     # Under GNU Hurd, this test is not required because there is
7384     # no limit to the length of command line arguments.
7385     # Libtool will interpret -1 as no limit whatsoever
7386     lt_cv_sys_max_cmd_len=-1;
7387     ;;
7388
7389   cygwin* | mingw*)
7390     # On Win9x/ME, this test blows up -- it succeeds, but takes
7391     # about 5 minutes as the teststring grows exponentially.
7392     # Worse, since 9x/ME are not pre-emptively multitasking,
7393     # you end up with a "frozen" computer, even though with patience
7394     # the test eventually succeeds (with a max line length of 256k).
7395     # Instead, let's just punt: use the minimum linelength reported by
7396     # all of the supported platforms: 8192 (on NT/2K/XP).
7397     lt_cv_sys_max_cmd_len=8192;
7398     ;;
7399
7400   amigaos*)
7401     # On AmigaOS with pdksh, this test takes hours, literally.
7402     # So we just punt and use a minimum line length of 8192.
7403     lt_cv_sys_max_cmd_len=8192;
7404     ;;
7405
7406   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7407     # This has been around since 386BSD, at least.  Likely further.
7408     if test -x /sbin/sysctl; then
7409       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7410     elif test -x /usr/sbin/sysctl; then
7411       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7412     else
7413       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7414     fi
7415     # And add a safety zone
7416     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7417     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7418     ;;
7419
7420   interix*)
7421     # We know the value 262144 and hardcode it with a safety zone (like BSD)
7422     lt_cv_sys_max_cmd_len=196608
7423     ;;
7424
7425   osf*)
7426     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7427     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7428     # nice to cause kernel panics so lets avoid the loop below.
7429     # First set a reasonable default.
7430     lt_cv_sys_max_cmd_len=16384
7431     #
7432     if test -x /sbin/sysconfig; then
7433       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7434         *1*) lt_cv_sys_max_cmd_len=-1 ;;
7435       esac
7436     fi
7437     ;;
7438   sco3.2v5*)
7439     lt_cv_sys_max_cmd_len=102400
7440     ;;
7441   sysv5* | sco5v6* | sysv4.2uw2*)
7442     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7443     if test -n "$kargmax"; then
7444       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
7445     else
7446       lt_cv_sys_max_cmd_len=32768
7447     fi
7448     ;;
7449   *)
7450     # If test is not a shell built-in, we'll probably end up computing a
7451     # maximum length that is only half of the actual maximum length, but
7452     # we can't tell.
7453     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7454     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7455                = "XX$teststring") >/dev/null 2>&1 &&
7456             new_result=`expr "X$teststring" : ".*" 2>&1` &&
7457             lt_cv_sys_max_cmd_len=$new_result &&
7458             test $i != 17 # 1/2 MB should be enough
7459     do
7460       i=`expr $i + 1`
7461       teststring=$teststring$teststring
7462     done
7463     teststring=
7464     # Add a significant safety factor because C++ compilers can tack on massive
7465     # amounts of additional arguments before passing them to the linker.
7466     # It appears as though 1/2 is a usable value.
7467     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7468     ;;
7469   esac
7470
7471 fi
7472
7473 if test -n $lt_cv_sys_max_cmd_len ; then
7474   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7475 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
7476 else
7477   { echo "$as_me:$LINENO: result: none" >&5
7478 echo "${ECHO_T}none" >&6; }
7479 fi
7480
7481
7482
7483
7484 # Check for command to grab the raw symbol name followed by C symbol from nm.
7485 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7486 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
7487 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7488   echo $ECHO_N "(cached) $ECHO_C" >&6
7489 else
7490   
7491 # These are sane defaults that work on at least a few old systems.
7492 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7493
7494 # Character class describing NM global symbol codes.
7495 symcode='[BCDEGRST]'
7496
7497 # Regexp to match symbols that can be accessed directly from C.
7498 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7499
7500 # Transform an extracted symbol line into a proper C declaration
7501 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7502
7503 # Transform an extracted symbol line into symbol name and symbol address
7504 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'"
7505
7506 # Define system-specific variables.
7507 case $host_os in
7508 aix*)
7509   symcode='[BCDT]'
7510   ;;
7511 cygwin* | mingw* | pw32*)
7512   symcode='[ABCDGISTW]'
7513   ;;
7514 hpux*) # Its linker distinguishes data from code symbols
7515   if test "$host_cpu" = ia64; then
7516     symcode='[ABCDEGRST]'
7517   fi
7518   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7519   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'"
7520   ;;
7521 linux* | k*bsd*-gnu)
7522   if test "$host_cpu" = ia64; then
7523     symcode='[ABCDGIRSTW]'
7524     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7525     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'"
7526   fi
7527   ;;
7528 irix* | nonstopux*)
7529   symcode='[BCDEGRST]'
7530   ;;
7531 osf*)
7532   symcode='[BCDEGQRST]'
7533   ;;
7534 solaris*)
7535   symcode='[BDRT]'
7536   ;;
7537 sco3.2v5*)
7538   symcode='[DT]'
7539   ;;
7540 sysv4.2uw2*)
7541   symcode='[DT]'
7542   ;;
7543 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7544   symcode='[ABDT]'
7545   ;;
7546 sysv4)
7547   symcode='[DFNSTU]'
7548   ;;
7549 esac
7550
7551 # Handle CRLF in mingw tool chain
7552 opt_cr=
7553 case $build_os in
7554 mingw*)
7555   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7556   ;;
7557 esac
7558
7559 # If we're using GNU nm, then use its standard symbol codes.
7560 case `$NM -V 2>&1` in
7561 *GNU* | *'with BFD'*)
7562   symcode='[ABCDGIRSTW]' ;;
7563 esac
7564
7565 # Try without a prefix undercore, then with it.
7566 for ac_symprfx in "" "_"; do
7567
7568   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7569   symxfrm="\\1 $ac_symprfx\\2 \\2"
7570
7571   # Write the raw and C identifiers.
7572   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7573
7574   # Check to see that the pipe works correctly.
7575   pipe_works=no
7576
7577   rm -f conftest*
7578   cat > conftest.$ac_ext <<EOF
7579 #ifdef __cplusplus
7580 extern "C" {
7581 #endif
7582 char nm_test_var;
7583 void nm_test_func(){}
7584 #ifdef __cplusplus
7585 }
7586 #endif
7587 int main(){nm_test_var='a';nm_test_func();return(0);}
7588 EOF
7589
7590   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7591   (eval $ac_compile) 2>&5
7592   ac_status=$?
7593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7594   (exit $ac_status); }; then
7595     # Now try to grab the symbols.
7596     nlist=conftest.nm
7597     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7598   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7599   ac_status=$?
7600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7601   (exit $ac_status); } && test -s "$nlist"; then
7602       # Try sorting and uniquifying the output.
7603       if sort "$nlist" | uniq > "$nlist"T; then
7604         mv -f "$nlist"T "$nlist"
7605       else
7606         rm -f "$nlist"T
7607       fi
7608
7609       # Make sure that we snagged all the symbols we need.
7610       if grep ' nm_test_var$' "$nlist" >/dev/null; then
7611         if grep ' nm_test_func$' "$nlist" >/dev/null; then
7612           cat <<EOF > conftest.$ac_ext
7613 #ifdef __cplusplus
7614 extern "C" {
7615 #endif
7616
7617 EOF
7618           # Now generate the symbol file.
7619           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7620
7621           cat <<EOF >> conftest.$ac_ext
7622 #if defined (__STDC__) && __STDC__
7623 # define lt_ptr_t void *
7624 #else
7625 # define lt_ptr_t char *
7626 # define const
7627 #endif
7628
7629 /* The mapping between symbol names and symbols. */
7630 const struct {
7631   const char *name;
7632   lt_ptr_t address;
7633 }
7634 lt_preloaded_symbols[] =
7635 {
7636 EOF
7637           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7638           cat <<\EOF >> conftest.$ac_ext
7639   {0, (lt_ptr_t) 0}
7640 };
7641
7642 #ifdef __cplusplus
7643 }
7644 #endif
7645 EOF
7646           # Now try linking the two files.
7647           mv conftest.$ac_objext conftstm.$ac_objext
7648           lt_save_LIBS="$LIBS"
7649           lt_save_CFLAGS="$CFLAGS"
7650           LIBS="conftstm.$ac_objext"
7651           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7652           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7653   (eval $ac_link) 2>&5
7654   ac_status=$?
7655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7656   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7657             pipe_works=yes
7658           fi
7659           LIBS="$lt_save_LIBS"
7660           CFLAGS="$lt_save_CFLAGS"
7661         else
7662           echo "cannot find nm_test_func in $nlist" >&5
7663         fi
7664       else
7665         echo "cannot find nm_test_var in $nlist" >&5
7666       fi
7667     else
7668       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7669     fi
7670   else
7671     echo "$progname: failed program was:" >&5
7672     cat conftest.$ac_ext >&5
7673   fi
7674   rm -f conftest* conftst*
7675
7676   # Do not use the global_symbol_pipe unless it works.
7677   if test "$pipe_works" = yes; then
7678     break
7679   else
7680     lt_cv_sys_global_symbol_pipe=
7681   fi
7682 done
7683
7684 fi
7685
7686 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7687   lt_cv_sys_global_symbol_to_cdecl=
7688 fi
7689 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7690   { echo "$as_me:$LINENO: result: failed" >&5
7691 echo "${ECHO_T}failed" >&6; }
7692 else
7693   { echo "$as_me:$LINENO: result: ok" >&5
7694 echo "${ECHO_T}ok" >&6; }
7695 fi
7696
7697 { echo "$as_me:$LINENO: checking for objdir" >&5
7698 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7699 if test "${lt_cv_objdir+set}" = set; then
7700   echo $ECHO_N "(cached) $ECHO_C" >&6
7701 else
7702   rm -f .libs 2>/dev/null
7703 mkdir .libs 2>/dev/null
7704 if test -d .libs; then
7705   lt_cv_objdir=.libs
7706 else
7707   # MS-DOS does not allow filenames that begin with a dot.
7708   lt_cv_objdir=_libs
7709 fi
7710 rmdir .libs 2>/dev/null
7711 fi
7712 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7713 echo "${ECHO_T}$lt_cv_objdir" >&6; }
7714 objdir=$lt_cv_objdir
7715
7716
7717
7718
7719
7720 case $host_os in
7721 aix3*)
7722   # AIX sometimes has problems with the GCC collect2 program.  For some
7723   # reason, if we set the COLLECT_NAMES environment variable, the problems
7724   # vanish in a puff of smoke.
7725   if test "X${COLLECT_NAMES+set}" != Xset; then
7726     COLLECT_NAMES=
7727     export COLLECT_NAMES
7728   fi
7729   ;;
7730 esac
7731
7732 # Sed substitution that helps us do robust quoting.  It backslashifies
7733 # metacharacters that are still active within double-quoted strings.
7734 Xsed='sed -e 1s/^X//'
7735 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7736
7737 # Same as above, but do not quote variable references.
7738 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7739
7740 # Sed substitution to delay expansion of an escaped shell variable in a
7741 # double_quote_subst'ed string.
7742 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7743
7744 # Sed substitution to avoid accidental globbing in evaled expressions
7745 no_glob_subst='s/\*/\\\*/g'
7746
7747 # Constants:
7748 rm="rm -f"
7749
7750 # Global variables:
7751 default_ofile=libtool
7752 can_build_shared=yes
7753
7754 # All known linkers require a `.a' archive for static linking (except MSVC,
7755 # which needs '.lib').
7756 libext=a
7757 ltmain="$ac_aux_dir/ltmain.sh"
7758 ofile="$default_ofile"
7759 with_gnu_ld="$lt_cv_prog_gnu_ld"
7760
7761 if test -n "$ac_tool_prefix"; then
7762   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7763 set dummy ${ac_tool_prefix}ar; ac_word=$2
7764 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7766 if test "${ac_cv_prog_AR+set}" = set; then
7767   echo $ECHO_N "(cached) $ECHO_C" >&6
7768 else
7769   if test -n "$AR"; then
7770   ac_cv_prog_AR="$AR" # Let the user override the test.
7771 else
7772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7773 for as_dir in $PATH
7774 do
7775   IFS=$as_save_IFS
7776   test -z "$as_dir" && as_dir=.
7777   for ac_exec_ext in '' $ac_executable_extensions; do
7778   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7779     ac_cv_prog_AR="${ac_tool_prefix}ar"
7780     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7781     break 2
7782   fi
7783 done
7784 done
7785 IFS=$as_save_IFS
7786
7787 fi
7788 fi
7789 AR=$ac_cv_prog_AR
7790 if test -n "$AR"; then
7791   { echo "$as_me:$LINENO: result: $AR" >&5
7792 echo "${ECHO_T}$AR" >&6; }
7793 else
7794   { echo "$as_me:$LINENO: result: no" >&5
7795 echo "${ECHO_T}no" >&6; }
7796 fi
7797
7798
7799 fi
7800 if test -z "$ac_cv_prog_AR"; then
7801   ac_ct_AR=$AR
7802   # Extract the first word of "ar", so it can be a program name with args.
7803 set dummy ar; ac_word=$2
7804 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7806 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7807   echo $ECHO_N "(cached) $ECHO_C" >&6
7808 else
7809   if test -n "$ac_ct_AR"; then
7810   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7811 else
7812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7813 for as_dir in $PATH
7814 do
7815   IFS=$as_save_IFS
7816   test -z "$as_dir" && as_dir=.
7817   for ac_exec_ext in '' $ac_executable_extensions; do
7818   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7819     ac_cv_prog_ac_ct_AR="ar"
7820     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7821     break 2
7822   fi
7823 done
7824 done
7825 IFS=$as_save_IFS
7826
7827 fi
7828 fi
7829 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7830 if test -n "$ac_ct_AR"; then
7831   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7832 echo "${ECHO_T}$ac_ct_AR" >&6; }
7833 else
7834   { echo "$as_me:$LINENO: result: no" >&5
7835 echo "${ECHO_T}no" >&6; }
7836 fi
7837
7838   if test "x$ac_ct_AR" = x; then
7839     AR="false"
7840   else
7841     case $cross_compiling:$ac_tool_warned in
7842 yes:)
7843 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7844 whose name does not start with the host triplet.  If you think this
7845 configuration is useful to you, please write to autoconf@gnu.org." >&5
7846 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7847 whose name does not start with the host triplet.  If you think this
7848 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7849 ac_tool_warned=yes ;;
7850 esac
7851     AR=$ac_ct_AR
7852   fi
7853 else
7854   AR="$ac_cv_prog_AR"
7855 fi
7856
7857 if test -n "$ac_tool_prefix"; then
7858   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7859 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7860 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7862 if test "${ac_cv_prog_RANLIB+set}" = set; then
7863   echo $ECHO_N "(cached) $ECHO_C" >&6
7864 else
7865   if test -n "$RANLIB"; then
7866   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7867 else
7868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7869 for as_dir in $PATH
7870 do
7871   IFS=$as_save_IFS
7872   test -z "$as_dir" && as_dir=.
7873   for ac_exec_ext in '' $ac_executable_extensions; do
7874   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7875     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7876     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7877     break 2
7878   fi
7879 done
7880 done
7881 IFS=$as_save_IFS
7882
7883 fi
7884 fi
7885 RANLIB=$ac_cv_prog_RANLIB
7886 if test -n "$RANLIB"; then
7887   { echo "$as_me:$LINENO: result: $RANLIB" >&5
7888 echo "${ECHO_T}$RANLIB" >&6; }
7889 else
7890   { echo "$as_me:$LINENO: result: no" >&5
7891 echo "${ECHO_T}no" >&6; }
7892 fi
7893
7894
7895 fi
7896 if test -z "$ac_cv_prog_RANLIB"; then
7897   ac_ct_RANLIB=$RANLIB
7898   # Extract the first word of "ranlib", so it can be a program name with args.
7899 set dummy ranlib; ac_word=$2
7900 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7901 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7902 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7903   echo $ECHO_N "(cached) $ECHO_C" >&6
7904 else
7905   if test -n "$ac_ct_RANLIB"; then
7906   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7907 else
7908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7909 for as_dir in $PATH
7910 do
7911   IFS=$as_save_IFS
7912   test -z "$as_dir" && as_dir=.
7913   for ac_exec_ext in '' $ac_executable_extensions; do
7914   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7915     ac_cv_prog_ac_ct_RANLIB="ranlib"
7916     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7917     break 2
7918   fi
7919 done
7920 done
7921 IFS=$as_save_IFS
7922
7923 fi
7924 fi
7925 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7926 if test -n "$ac_ct_RANLIB"; then
7927   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7928 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7929 else
7930   { echo "$as_me:$LINENO: result: no" >&5
7931 echo "${ECHO_T}no" >&6; }
7932 fi
7933
7934   if test "x$ac_ct_RANLIB" = x; then
7935     RANLIB=":"
7936   else
7937     case $cross_compiling:$ac_tool_warned in
7938 yes:)
7939 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7940 whose name does not start with the host triplet.  If you think this
7941 configuration is useful to you, please write to autoconf@gnu.org." >&5
7942 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7943 whose name does not start with the host triplet.  If you think this
7944 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7945 ac_tool_warned=yes ;;
7946 esac
7947     RANLIB=$ac_ct_RANLIB
7948   fi
7949 else
7950   RANLIB="$ac_cv_prog_RANLIB"
7951 fi
7952
7953 if test -n "$ac_tool_prefix"; then
7954   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7955 set dummy ${ac_tool_prefix}strip; ac_word=$2
7956 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7958 if test "${ac_cv_prog_STRIP+set}" = set; then
7959   echo $ECHO_N "(cached) $ECHO_C" >&6
7960 else
7961   if test -n "$STRIP"; then
7962   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7963 else
7964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7965 for as_dir in $PATH
7966 do
7967   IFS=$as_save_IFS
7968   test -z "$as_dir" && as_dir=.
7969   for ac_exec_ext in '' $ac_executable_extensions; do
7970   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7971     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7972     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7973     break 2
7974   fi
7975 done
7976 done
7977 IFS=$as_save_IFS
7978
7979 fi
7980 fi
7981 STRIP=$ac_cv_prog_STRIP
7982 if test -n "$STRIP"; then
7983   { echo "$as_me:$LINENO: result: $STRIP" >&5
7984 echo "${ECHO_T}$STRIP" >&6; }
7985 else
7986   { echo "$as_me:$LINENO: result: no" >&5
7987 echo "${ECHO_T}no" >&6; }
7988 fi
7989
7990
7991 fi
7992 if test -z "$ac_cv_prog_STRIP"; then
7993   ac_ct_STRIP=$STRIP
7994   # Extract the first word of "strip", so it can be a program name with args.
7995 set dummy strip; ac_word=$2
7996 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7998 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7999   echo $ECHO_N "(cached) $ECHO_C" >&6
8000 else
8001   if test -n "$ac_ct_STRIP"; then
8002   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8003 else
8004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8005 for as_dir in $PATH
8006 do
8007   IFS=$as_save_IFS
8008   test -z "$as_dir" && as_dir=.
8009   for ac_exec_ext in '' $ac_executable_extensions; do
8010   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8011     ac_cv_prog_ac_ct_STRIP="strip"
8012     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8013     break 2
8014   fi
8015 done
8016 done
8017 IFS=$as_save_IFS
8018
8019 fi
8020 fi
8021 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8022 if test -n "$ac_ct_STRIP"; then
8023   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8024 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
8025 else
8026   { echo "$as_me:$LINENO: result: no" >&5
8027 echo "${ECHO_T}no" >&6; }
8028 fi
8029
8030   if test "x$ac_ct_STRIP" = x; then
8031     STRIP=":"
8032   else
8033     case $cross_compiling:$ac_tool_warned in
8034 yes:)
8035 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8036 whose name does not start with the host triplet.  If you think this
8037 configuration is useful to you, please write to autoconf@gnu.org." >&5
8038 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8039 whose name does not start with the host triplet.  If you think this
8040 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8041 ac_tool_warned=yes ;;
8042 esac
8043     STRIP=$ac_ct_STRIP
8044   fi
8045 else
8046   STRIP="$ac_cv_prog_STRIP"
8047 fi
8048
8049
8050 old_CC="$CC"
8051 old_CFLAGS="$CFLAGS"
8052
8053 # Set sane defaults for various variables
8054 test -z "$AR" && AR=ar
8055 test -z "$AR_FLAGS" && AR_FLAGS=cru
8056 test -z "$AS" && AS=as
8057 test -z "$CC" && CC=cc
8058 test -z "$LTCC" && LTCC=$CC
8059 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8060 test -z "$DLLTOOL" && DLLTOOL=dlltool
8061 test -z "$LD" && LD=ld
8062 test -z "$LN_S" && LN_S="ln -s"
8063 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8064 test -z "$NM" && NM=nm
8065 test -z "$SED" && SED=sed
8066 test -z "$OBJDUMP" && OBJDUMP=objdump
8067 test -z "$RANLIB" && RANLIB=:
8068 test -z "$STRIP" && STRIP=:
8069 test -z "$ac_objext" && ac_objext=o
8070
8071 # Determine commands to create old-style static archives.
8072 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8073 old_postinstall_cmds='chmod 644 $oldlib'
8074 old_postuninstall_cmds=
8075
8076 if test -n "$RANLIB"; then
8077   case $host_os in
8078   openbsd*)
8079     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8080     ;;
8081   *)
8082     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8083     ;;
8084   esac
8085   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8086 fi
8087
8088 for cc_temp in $compiler""; do
8089   case $cc_temp in
8090     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8091     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8092     \-*) ;;
8093     *) break;;
8094   esac
8095 done
8096 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8097
8098
8099 # Only perform the check for file, if the check method requires it
8100 case $deplibs_check_method in
8101 file_magic*)
8102   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8103     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8104 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
8105 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8106   echo $ECHO_N "(cached) $ECHO_C" >&6
8107 else
8108   case $MAGIC_CMD in
8109 [\\/*] |  ?:[\\/]*)
8110   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8111   ;;
8112 *)
8113   lt_save_MAGIC_CMD="$MAGIC_CMD"
8114   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8115   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8116   for ac_dir in $ac_dummy; do
8117     IFS="$lt_save_ifs"
8118     test -z "$ac_dir" && ac_dir=.
8119     if test -f $ac_dir/${ac_tool_prefix}file; then
8120       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8121       if test -n "$file_magic_test_file"; then
8122         case $deplibs_check_method in
8123         "file_magic "*)
8124           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8125           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8126           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8127             $EGREP "$file_magic_regex" > /dev/null; then
8128             :
8129           else
8130             cat <<EOF 1>&2
8131
8132 *** Warning: the command libtool uses to detect shared libraries,
8133 *** $file_magic_cmd, produces output that libtool cannot recognize.
8134 *** The result is that libtool may fail to recognize shared libraries
8135 *** as such.  This will affect the creation of libtool libraries that
8136 *** depend on shared libraries, but programs linked with such libtool
8137 *** libraries will work regardless of this problem.  Nevertheless, you
8138 *** may want to report the problem to your system manager and/or to
8139 *** bug-libtool@gnu.org
8140
8141 EOF
8142           fi ;;
8143         esac
8144       fi
8145       break
8146     fi
8147   done
8148   IFS="$lt_save_ifs"
8149   MAGIC_CMD="$lt_save_MAGIC_CMD"
8150   ;;
8151 esac
8152 fi
8153
8154 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8155 if test -n "$MAGIC_CMD"; then
8156   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8157 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8158 else
8159   { echo "$as_me:$LINENO: result: no" >&5
8160 echo "${ECHO_T}no" >&6; }
8161 fi
8162
8163 if test -z "$lt_cv_path_MAGIC_CMD"; then
8164   if test -n "$ac_tool_prefix"; then
8165     { echo "$as_me:$LINENO: checking for file" >&5
8166 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
8167 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8168   echo $ECHO_N "(cached) $ECHO_C" >&6
8169 else
8170   case $MAGIC_CMD in
8171 [\\/*] |  ?:[\\/]*)
8172   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8173   ;;
8174 *)
8175   lt_save_MAGIC_CMD="$MAGIC_CMD"
8176   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8177   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8178   for ac_dir in $ac_dummy; do
8179     IFS="$lt_save_ifs"
8180     test -z "$ac_dir" && ac_dir=.
8181     if test -f $ac_dir/file; then
8182       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8183       if test -n "$file_magic_test_file"; then
8184         case $deplibs_check_method in
8185         "file_magic "*)
8186           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8187           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8188           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8189             $EGREP "$file_magic_regex" > /dev/null; then
8190             :
8191           else
8192             cat <<EOF 1>&2
8193
8194 *** Warning: the command libtool uses to detect shared libraries,
8195 *** $file_magic_cmd, produces output that libtool cannot recognize.
8196 *** The result is that libtool may fail to recognize shared libraries
8197 *** as such.  This will affect the creation of libtool libraries that
8198 *** depend on shared libraries, but programs linked with such libtool
8199 *** libraries will work regardless of this problem.  Nevertheless, you
8200 *** may want to report the problem to your system manager and/or to
8201 *** bug-libtool@gnu.org
8202
8203 EOF
8204           fi ;;
8205         esac
8206       fi
8207       break
8208     fi
8209   done
8210   IFS="$lt_save_ifs"
8211   MAGIC_CMD="$lt_save_MAGIC_CMD"
8212   ;;
8213 esac
8214 fi
8215
8216 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8217 if test -n "$MAGIC_CMD"; then
8218   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8219 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8220 else
8221   { echo "$as_me:$LINENO: result: no" >&5
8222 echo "${ECHO_T}no" >&6; }
8223 fi
8224
8225   else
8226     MAGIC_CMD=:
8227   fi
8228 fi
8229
8230   fi
8231   ;;
8232 esac
8233
8234 enable_dlopen=no
8235 enable_win32_dll=no
8236
8237 # Check whether --enable-libtool-lock was given.
8238 if test "${enable_libtool_lock+set}" = set; then
8239   enableval=$enable_libtool_lock; 
8240 fi
8241
8242 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8243
8244
8245 # Check whether --with-pic was given.
8246 if test "${with_pic+set}" = set; then
8247   withval=$with_pic; pic_mode="$withval"
8248 else
8249   pic_mode=default
8250 fi
8251
8252 test -z "$pic_mode" && pic_mode=default
8253
8254 # Use C for the default configuration in the libtool script
8255 tagname=
8256 lt_save_CC="$CC"
8257 ac_ext=c
8258 ac_cpp='$CPP $CPPFLAGS'
8259 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8260 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8261 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8262
8263
8264 # Source file extension for C test sources.
8265 ac_ext=c
8266
8267 # Object file extension for compiled C test sources.
8268 objext=o
8269 objext=$objext
8270
8271 # Code to be used in simple compile tests
8272 lt_simple_compile_test_code="int some_variable = 0;\n"
8273
8274 # Code to be used in simple link tests
8275 lt_simple_link_test_code='int main(){return(0);}\n'
8276
8277
8278 # If no C compiler was specified, use CC.
8279 LTCC=${LTCC-"$CC"}
8280
8281 # If no C compiler flags were specified, use CFLAGS.
8282 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8283
8284 # Allow CC to be a program name with arguments.
8285 compiler=$CC
8286
8287
8288 # save warnings/boilerplate of simple test code
8289 ac_outfile=conftest.$ac_objext
8290 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8291 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8292 _lt_compiler_boilerplate=`cat conftest.err`
8293 $rm conftest*
8294
8295 ac_outfile=conftest.$ac_objext
8296 printf "$lt_simple_link_test_code" >conftest.$ac_ext
8297 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8298 _lt_linker_boilerplate=`cat conftest.err`
8299 $rm conftest*
8300
8301
8302 ## CAVEAT EMPTOR:
8303 ## There is no encapsulation within the following macros, do not change
8304 ## the running order or otherwise move them around unless you know exactly
8305 ## what you are doing...
8306
8307 lt_prog_compiler_no_builtin_flag=
8308
8309 if test "$GCC" = yes; then
8310   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8311
8312   
8313 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8314 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
8315 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8316   echo $ECHO_N "(cached) $ECHO_C" >&6
8317 else
8318   lt_cv_prog_compiler_rtti_exceptions=no
8319   ac_outfile=conftest.$ac_objext
8320    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8321    lt_compiler_flag="-fno-rtti -fno-exceptions"
8322    # Insert the option either (1) after the last *FLAGS variable, or
8323    # (2) before a word containing "conftest.", or (3) at the end.
8324    # Note that $ac_compile itself does not contain backslashes and begins
8325    # with a dollar sign (not a hyphen), so the echo should work correctly.
8326    # The option is referenced via a variable to avoid confusing sed.
8327    lt_compile=`echo "$ac_compile" | $SED \
8328    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8329    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8330    -e 's:$: $lt_compiler_flag:'`
8331    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
8332    (eval "$lt_compile" 2>conftest.err)
8333    ac_status=$?
8334    cat conftest.err >&5
8335    echo "$as_me:__oline__: \$? = $ac_status" >&5
8336    if (exit $ac_status) && test -s "$ac_outfile"; then
8337      # The compiler can only warn and ignore the option if not recognized
8338      # So say no if there are warnings other than the usual output.
8339      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8340      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8341      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8342        lt_cv_prog_compiler_rtti_exceptions=yes
8343      fi
8344    fi
8345    $rm conftest*
8346
8347 fi
8348 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8349 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8350
8351 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8352     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8353 else
8354     :
8355 fi
8356
8357 fi
8358
8359 lt_prog_compiler_wl=
8360 lt_prog_compiler_pic=
8361 lt_prog_compiler_static=
8362
8363 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8364 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
8365  
8366   if test "$GCC" = yes; then
8367     lt_prog_compiler_wl='-Wl,'
8368     lt_prog_compiler_static='-static'
8369
8370     case $host_os in
8371       aix*)
8372       # All AIX code is PIC.
8373       if test "$host_cpu" = ia64; then
8374         # AIX 5 now supports IA64 processor
8375         lt_prog_compiler_static='-Bstatic'
8376       fi
8377       ;;
8378
8379     amigaos*)
8380       # FIXME: we need at least 68020 code to build shared libraries, but
8381       # adding the `-m68020' flag to GCC prevents building anything better,
8382       # like `-m68040'.
8383       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8384       ;;
8385
8386     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8387       # PIC is the default for these OSes.
8388       ;;
8389
8390     mingw* | pw32* | os2*)
8391       # This hack is so that the source file can tell whether it is being
8392       # built for inclusion in a dll (and should export symbols for example).
8393       lt_prog_compiler_pic='-DDLL_EXPORT'
8394       ;;
8395
8396     darwin* | rhapsody*)
8397       # PIC is the default on this platform
8398       # Common symbols not allowed in MH_DYLIB files
8399       lt_prog_compiler_pic='-fno-common'
8400       ;;
8401
8402     interix3*)
8403       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8404       # Instead, we relocate shared libraries at runtime.
8405       ;;
8406
8407     msdosdjgpp*)
8408       # Just because we use GCC doesn't mean we suddenly get shared libraries
8409       # on systems that don't support them.
8410       lt_prog_compiler_can_build_shared=no
8411       enable_shared=no
8412       ;;
8413
8414     sysv4*MP*)
8415       if test -d /usr/nec; then
8416         lt_prog_compiler_pic=-Kconform_pic
8417       fi
8418       ;;
8419
8420     hpux*)
8421       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8422       # not for PA HP-UX.
8423       case $host_cpu in
8424       hppa*64*|ia64*)
8425         # +Z the default
8426         ;;
8427       *)
8428         lt_prog_compiler_pic='-fPIC'
8429         ;;
8430       esac
8431       ;;
8432
8433     *)
8434       lt_prog_compiler_pic='-fPIC'
8435       ;;
8436     esac
8437   else
8438     # PORTME Check for flag to pass linker flags through the system compiler.
8439     case $host_os in
8440     aix*)
8441       lt_prog_compiler_wl='-Wl,'
8442       if test "$host_cpu" = ia64; then
8443         # AIX 5 now supports IA64 processor
8444         lt_prog_compiler_static='-Bstatic'
8445       else
8446         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8447       fi
8448       ;;
8449       darwin*)
8450         # PIC is the default on this platform
8451         # Common symbols not allowed in MH_DYLIB files
8452        case $cc_basename in
8453          xlc*)
8454          lt_prog_compiler_pic='-qnocommon'
8455          lt_prog_compiler_wl='-Wl,'
8456          ;;
8457        esac
8458        ;;
8459
8460     mingw* | pw32* | os2*)
8461       # This hack is so that the source file can tell whether it is being
8462       # built for inclusion in a dll (and should export symbols for example).
8463       lt_prog_compiler_pic='-DDLL_EXPORT'
8464       ;;
8465
8466     hpux9* | hpux10* | hpux11*)
8467       lt_prog_compiler_wl='-Wl,'
8468       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8469       # not for PA HP-UX.
8470       case $host_cpu in
8471       hppa*64*|ia64*)
8472         # +Z the default
8473         ;;
8474       *)
8475         lt_prog_compiler_pic='+Z'
8476         ;;
8477       esac
8478       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8479       lt_prog_compiler_static='${wl}-a ${wl}archive'
8480       ;;
8481
8482     irix5* | irix6* | nonstopux*)
8483       lt_prog_compiler_wl='-Wl,'
8484       # PIC (with -KPIC) is the default.
8485       lt_prog_compiler_static='-non_shared'
8486       ;;
8487
8488     newsos6)
8489       lt_prog_compiler_pic='-KPIC'
8490       lt_prog_compiler_static='-Bstatic'
8491       ;;
8492
8493     linux* | k*bsd*-gnu)
8494       case $cc_basename in
8495       icc* | ecc*)
8496         lt_prog_compiler_wl='-Wl,'
8497         lt_prog_compiler_pic='-KPIC'
8498         lt_prog_compiler_static='-static'
8499         ;;
8500       pgcc* | pgf77* | pgf90* | pgf95*)
8501         # Portland Group compilers (*not* the Pentium gcc compiler,
8502         # which looks to be a dead project)
8503         lt_prog_compiler_wl='-Wl,'
8504         lt_prog_compiler_pic='-fpic'
8505         lt_prog_compiler_static='-Bstatic'
8506         ;;
8507       ccc*)
8508         lt_prog_compiler_wl='-Wl,'
8509         # All Alpha code is PIC.
8510         lt_prog_compiler_static='-non_shared'
8511         ;;
8512       esac
8513       ;;
8514
8515     osf3* | osf4* | osf5*)
8516       lt_prog_compiler_wl='-Wl,'
8517       # All OSF/1 code is PIC.
8518       lt_prog_compiler_static='-non_shared'
8519       ;;
8520
8521     solaris*)
8522       lt_prog_compiler_pic='-KPIC'
8523       lt_prog_compiler_static='-Bstatic'
8524       case $cc_basename in
8525       f77* | f90* | f95*)
8526         lt_prog_compiler_wl='-Qoption ld ';;
8527       *)
8528         lt_prog_compiler_wl='-Wl,';;
8529       esac
8530       ;;
8531
8532     sunos4*)
8533       lt_prog_compiler_wl='-Qoption ld '
8534       lt_prog_compiler_pic='-PIC'
8535       lt_prog_compiler_static='-Bstatic'
8536       ;;
8537
8538     sysv4 | sysv4.2uw2* | sysv4.3*)
8539       lt_prog_compiler_wl='-Wl,'
8540       lt_prog_compiler_pic='-KPIC'
8541       lt_prog_compiler_static='-Bstatic'
8542       ;;
8543
8544     sysv4*MP*)
8545       if test -d /usr/nec ;then
8546         lt_prog_compiler_pic='-Kconform_pic'
8547         lt_prog_compiler_static='-Bstatic'
8548       fi
8549       ;;
8550
8551     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8552       lt_prog_compiler_wl='-Wl,'
8553       lt_prog_compiler_pic='-KPIC'
8554       lt_prog_compiler_static='-Bstatic'
8555       ;;
8556
8557     unicos*)
8558       lt_prog_compiler_wl='-Wl,'
8559       lt_prog_compiler_can_build_shared=no
8560       ;;
8561
8562     uts4*)
8563       lt_prog_compiler_pic='-pic'
8564       lt_prog_compiler_static='-Bstatic'
8565       ;;
8566
8567     *)
8568       lt_prog_compiler_can_build_shared=no
8569       ;;
8570     esac
8571   fi
8572
8573 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8574 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8575
8576 #
8577 # Check to make sure the PIC flag actually works.
8578 #
8579 if test -n "$lt_prog_compiler_pic"; then
8580   
8581 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8582 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
8583 if test "${lt_prog_compiler_pic_works+set}" = set; then
8584   echo $ECHO_N "(cached) $ECHO_C" >&6
8585 else
8586   lt_prog_compiler_pic_works=no
8587   ac_outfile=conftest.$ac_objext
8588    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8589    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8590    # Insert the option either (1) after the last *FLAGS variable, or
8591    # (2) before a word containing "conftest.", or (3) at the end.
8592    # Note that $ac_compile itself does not contain backslashes and begins
8593    # with a dollar sign (not a hyphen), so the echo should work correctly.
8594    # The option is referenced via a variable to avoid confusing sed.
8595    lt_compile=`echo "$ac_compile" | $SED \
8596    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8597    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8598    -e 's:$: $lt_compiler_flag:'`
8599    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
8600    (eval "$lt_compile" 2>conftest.err)
8601    ac_status=$?
8602    cat conftest.err >&5
8603    echo "$as_me:__oline__: \$? = $ac_status" >&5
8604    if (exit $ac_status) && test -s "$ac_outfile"; then
8605      # The compiler can only warn and ignore the option if not recognized
8606      # So say no if there are warnings other than the usual output.
8607      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8608      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8609      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8610        lt_prog_compiler_pic_works=yes
8611      fi
8612    fi
8613    $rm conftest*
8614
8615 fi
8616 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8617 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
8618
8619 if test x"$lt_prog_compiler_pic_works" = xyes; then
8620     case $lt_prog_compiler_pic in
8621      "" | " "*) ;;
8622      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8623      esac
8624 else
8625     lt_prog_compiler_pic=
8626      lt_prog_compiler_can_build_shared=no
8627 fi
8628
8629 fi
8630 case $host_os in
8631   # For platforms which do not support PIC, -DPIC is meaningless:
8632   *djgpp*)
8633     lt_prog_compiler_pic=
8634     ;;
8635   *)
8636     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8637     ;;
8638 esac
8639
8640 #
8641 # Check to make sure the static flag actually works.
8642 #
8643 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8644 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8645 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
8646 if test "${lt_prog_compiler_static_works+set}" = set; then
8647   echo $ECHO_N "(cached) $ECHO_C" >&6
8648 else
8649   lt_prog_compiler_static_works=no
8650    save_LDFLAGS="$LDFLAGS"
8651    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8652    printf "$lt_simple_link_test_code" > conftest.$ac_ext
8653    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8654      # The linker can only warn and ignore the option if not recognized
8655      # So say no if there are warnings
8656      if test -s conftest.err; then
8657        # Append any errors to the config.log.
8658        cat conftest.err 1>&5
8659        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8660        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8661        if diff conftest.exp conftest.er2 >/dev/null; then
8662          lt_prog_compiler_static_works=yes
8663        fi
8664      else
8665        lt_prog_compiler_static_works=yes
8666      fi
8667    fi
8668    $rm conftest*
8669    LDFLAGS="$save_LDFLAGS"
8670
8671 fi
8672 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8673 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
8674
8675 if test x"$lt_prog_compiler_static_works" = xyes; then
8676     :
8677 else
8678     lt_prog_compiler_static=
8679 fi
8680
8681
8682 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8683 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8684 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8685   echo $ECHO_N "(cached) $ECHO_C" >&6
8686 else
8687   lt_cv_prog_compiler_c_o=no
8688    $rm -r conftest 2>/dev/null
8689    mkdir conftest
8690    cd conftest
8691    mkdir out
8692    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8693
8694    lt_compiler_flag="-o out/conftest2.$ac_objext"
8695    # Insert the option either (1) after the last *FLAGS variable, or
8696    # (2) before a word containing "conftest.", or (3) at the end.
8697    # Note that $ac_compile itself does not contain backslashes and begins
8698    # with a dollar sign (not a hyphen), so the echo should work correctly.
8699    lt_compile=`echo "$ac_compile" | $SED \
8700    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8701    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8702    -e 's:$: $lt_compiler_flag:'`
8703    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
8704    (eval "$lt_compile" 2>out/conftest.err)
8705    ac_status=$?
8706    cat out/conftest.err >&5
8707    echo "$as_me:__oline__: \$? = $ac_status" >&5
8708    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8709    then
8710      # The compiler can only warn and ignore the option if not recognized
8711      # So say no if there are warnings
8712      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8713      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8714      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8715        lt_cv_prog_compiler_c_o=yes
8716      fi
8717    fi
8718    chmod u+w . 2>&5
8719    $rm conftest*
8720    # SGI C++ compiler will create directory out/ii_files/ for
8721    # template instantiation
8722    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8723    $rm out/* && rmdir out
8724    cd ..
8725    rmdir conftest
8726    $rm conftest*
8727
8728 fi
8729 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8730 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8731
8732
8733 hard_links="nottested"
8734 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8735   # do not overwrite the value of need_locks provided by the user
8736   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8737 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8738   hard_links=yes
8739   $rm conftest*
8740   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8741   touch conftest.a
8742   ln conftest.a conftest.b 2>&5 || hard_links=no
8743   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8744   { echo "$as_me:$LINENO: result: $hard_links" >&5
8745 echo "${ECHO_T}$hard_links" >&6; }
8746   if test "$hard_links" = no; then
8747     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8748 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8749     need_locks=warn
8750   fi
8751 else
8752   need_locks=no
8753 fi
8754
8755 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8756 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8757
8758   runpath_var=
8759   allow_undefined_flag=
8760   enable_shared_with_static_runtimes=no
8761   archive_cmds=
8762   archive_expsym_cmds=
8763   old_archive_From_new_cmds=
8764   old_archive_from_expsyms_cmds=
8765   export_dynamic_flag_spec=
8766   whole_archive_flag_spec=
8767   thread_safe_flag_spec=
8768   hardcode_libdir_flag_spec=
8769   hardcode_libdir_flag_spec_ld=
8770   hardcode_libdir_separator=
8771   hardcode_direct=no
8772   hardcode_minus_L=no
8773   hardcode_shlibpath_var=unsupported
8774   link_all_deplibs=unknown
8775   hardcode_automatic=no
8776   module_cmds=
8777   module_expsym_cmds=
8778   always_export_symbols=no
8779   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8780   # include_expsyms should be a list of space-separated symbols to be *always*
8781   # included in the symbol list
8782   include_expsyms=
8783   # exclude_expsyms can be an extended regexp of symbols to exclude
8784   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8785   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8786   # as well as any symbol that contains `d'.
8787   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8788   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8789   # platforms (ab)use it in PIC code, but their linkers get confused if
8790   # the symbol is explicitly referenced.  Since portable code cannot
8791   # rely on this symbol name, it's probably fine to never include it in
8792   # preloaded symbol tables.
8793   extract_expsyms_cmds=
8794   # Just being paranoid about ensuring that cc_basename is set.
8795   for cc_temp in $compiler""; do
8796   case $cc_temp in
8797     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8798     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8799     \-*) ;;
8800     *) break;;
8801   esac
8802 done
8803 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8804
8805   case $host_os in
8806   cygwin* | mingw* | pw32*)
8807     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8808     # When not using gcc, we currently assume that we are using
8809     # Microsoft Visual C++.
8810     if test "$GCC" != yes; then
8811       with_gnu_ld=no
8812     fi
8813     ;;
8814   interix*)
8815     # we just hope/assume this is gcc and not c89 (= MSVC++)
8816     with_gnu_ld=yes
8817     ;;
8818   openbsd*)
8819     with_gnu_ld=no
8820     ;;
8821   esac
8822
8823   ld_shlibs=yes
8824   if test "$with_gnu_ld" = yes; then
8825     # If archive_cmds runs LD, not CC, wlarc should be empty
8826     wlarc='${wl}'
8827
8828     # Set some defaults for GNU ld with shared library support. These
8829     # are reset later if shared libraries are not supported. Putting them
8830     # here allows them to be overridden if necessary.
8831     runpath_var=LD_RUN_PATH
8832     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8833     export_dynamic_flag_spec='${wl}--export-dynamic'
8834     # ancient GNU ld didn't support --whole-archive et. al.
8835     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8836         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8837       else
8838         whole_archive_flag_spec=
8839     fi
8840     supports_anon_versioning=no
8841     case `$LD -v 2>/dev/null` in
8842       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8843       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8844       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8845       *\ 2.11.*) ;; # other 2.11 versions
8846       *) supports_anon_versioning=yes ;;
8847     esac
8848
8849     # See if GNU ld supports shared libraries.
8850     case $host_os in
8851     aix3* | aix4* | aix5*)
8852       # On AIX/PPC, the GNU linker is very broken
8853       if test "$host_cpu" != ia64; then
8854         ld_shlibs=no
8855         cat <<EOF 1>&2
8856
8857 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8858 *** to be unable to reliably create shared libraries on AIX.
8859 *** Therefore, libtool is disabling shared libraries support.  If you
8860 *** really care for shared libraries, you may want to modify your PATH
8861 *** so that a non-GNU linker is found, and then restart.
8862
8863 EOF
8864       fi
8865       ;;
8866
8867     amigaos*)
8868       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)'
8869       hardcode_libdir_flag_spec='-L$libdir'
8870       hardcode_minus_L=yes
8871
8872       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8873       # that the semantics of dynamic libraries on AmigaOS, at least up
8874       # to version 4, is to share data among multiple programs linked
8875       # with the same dynamic library.  Since this doesn't match the
8876       # behavior of shared libraries on other platforms, we can't use
8877       # them.
8878       ld_shlibs=no
8879       ;;
8880
8881     beos*)
8882       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8883         allow_undefined_flag=unsupported
8884         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8885         # support --undefined.  This deserves some investigation.  FIXME
8886         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8887       else
8888         ld_shlibs=no
8889       fi
8890       ;;
8891
8892     cygwin* | mingw* | pw32*)
8893       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8894       # as there is no search path for DLLs.
8895       hardcode_libdir_flag_spec='-L$libdir'
8896       allow_undefined_flag=unsupported
8897       always_export_symbols=no
8898       enable_shared_with_static_runtimes=yes
8899       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8900
8901       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8902         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8903         # If the export-symbols file already is a .def file (1st line
8904         # is EXPORTS), use it as is; otherwise, prepend...
8905         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8906           cp $export_symbols $output_objdir/$soname.def;
8907         else
8908           echo EXPORTS > $output_objdir/$soname.def;
8909           cat $export_symbols >> $output_objdir/$soname.def;
8910         fi~
8911         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8912       else
8913         ld_shlibs=no
8914       fi
8915       ;;
8916
8917     interix3*)
8918       hardcode_direct=no
8919       hardcode_shlibpath_var=no
8920       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8921       export_dynamic_flag_spec='${wl}-E'
8922       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8923       # Instead, shared libraries are loaded at an image base (0x10000000 by
8924       # default) and relocated if they conflict, which is a slow very memory
8925       # consuming and fragmenting process.  To avoid this, we pick a random,
8926       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8927       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8928       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8929       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'
8930       ;;
8931
8932     linux* | k*bsd*-gnu)
8933       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8934         tmp_addflag=
8935         case $cc_basename,$host_cpu in
8936         pgcc*)                          # Portland Group C compiler
8937           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'
8938           tmp_addflag=' $pic_flag'
8939           ;;
8940         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8941           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'
8942           tmp_addflag=' $pic_flag -Mnomain' ;;
8943         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8944           tmp_addflag=' -i_dynamic' ;;
8945         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8946           tmp_addflag=' -i_dynamic -nofor_main' ;;
8947         ifc* | ifort*)                  # Intel Fortran compiler
8948           tmp_addflag=' -nofor_main' ;;
8949         esac
8950         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8951
8952         if test $supports_anon_versioning = yes; then
8953           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8954   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8955   $echo "local: *; };" >> $output_objdir/$libname.ver~
8956           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8957         fi
8958         link_all_deplibs=no
8959       else
8960         ld_shlibs=no
8961       fi
8962       ;;
8963
8964     netbsd* | netbsdelf*-gnu)
8965       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8966         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8967         wlarc=
8968       else
8969         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8970         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8971       fi
8972       ;;
8973
8974     solaris*)
8975       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8976         ld_shlibs=no
8977         cat <<EOF 1>&2
8978
8979 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8980 *** create shared libraries on Solaris systems.  Therefore, libtool
8981 *** is disabling shared libraries support.  We urge you to upgrade GNU
8982 *** binutils to release 2.9.1 or newer.  Another option is to modify
8983 *** your PATH or compiler configuration so that the native linker is
8984 *** used, and then restart.
8985
8986 EOF
8987       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8988         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8989         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8990       else
8991         ld_shlibs=no
8992       fi
8993       ;;
8994
8995     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8996       case `$LD -v 2>&1` in
8997         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 
8998         ld_shlibs=no
8999         cat <<_LT_EOF 1>&2
9000
9001 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9002 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9003 *** is disabling shared libraries support.  We urge you to upgrade GNU
9004 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9005 *** your PATH or compiler configuration so that the native linker is
9006 *** used, and then restart.
9007
9008 _LT_EOF
9009         ;;
9010         *)
9011           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9012             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9013             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9014             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9015           else
9016             ld_shlibs=no
9017           fi
9018         ;;
9019       esac
9020       ;;
9021
9022     sunos4*)
9023       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9024       wlarc=
9025       hardcode_direct=yes
9026       hardcode_shlibpath_var=no
9027       ;;
9028
9029     *)
9030       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9031         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9032         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9033       else
9034         ld_shlibs=no
9035       fi
9036       ;;
9037     esac
9038
9039     if test "$ld_shlibs" = no; then
9040       runpath_var=
9041       hardcode_libdir_flag_spec=
9042       export_dynamic_flag_spec=
9043       whole_archive_flag_spec=
9044     fi
9045   else
9046     # PORTME fill in a description of your system's linker (not GNU ld)
9047     case $host_os in
9048     aix3*)
9049       allow_undefined_flag=unsupported
9050       always_export_symbols=yes
9051       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'
9052       # Note: this linker hardcodes the directories in LIBPATH if there
9053       # are no directories specified by -L.
9054       hardcode_minus_L=yes
9055       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9056         # Neither direct hardcoding nor static linking is supported with a
9057         # broken collect2.
9058         hardcode_direct=unsupported
9059       fi
9060       ;;
9061
9062     aix4* | aix5*)
9063       if test "$host_cpu" = ia64; then
9064         # On IA64, the linker does run time linking by default, so we don't
9065         # have to do anything special.
9066         aix_use_runtimelinking=no
9067         exp_sym_flag='-Bexport'
9068         no_entry_flag=""
9069       else
9070         # If we're using GNU nm, then we don't want the "-C" option.
9071         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9072         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9073           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'
9074         else
9075           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'
9076         fi
9077         aix_use_runtimelinking=no
9078
9079         # Test if we are trying to use run time linking or normal
9080         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9081         # need to do runtime linking.
9082         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9083           for ld_flag in $LDFLAGS; do
9084           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9085             aix_use_runtimelinking=yes
9086             break
9087           fi
9088           done
9089           ;;
9090         esac
9091
9092         exp_sym_flag='-bexport'
9093         no_entry_flag='-bnoentry'
9094       fi
9095
9096       # When large executables or shared objects are built, AIX ld can
9097       # have problems creating the table of contents.  If linking a library
9098       # or program results in "error TOC overflow" add -mminimal-toc to
9099       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9100       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9101
9102       archive_cmds=''
9103       hardcode_direct=yes
9104       hardcode_libdir_separator=':'
9105       link_all_deplibs=yes
9106
9107       if test "$GCC" = yes; then
9108         case $host_os in aix4.[012]|aix4.[012].*)
9109         # We only want to do this on AIX 4.2 and lower, the check
9110         # below for broken collect2 doesn't work under 4.3+
9111           collect2name=`${CC} -print-prog-name=collect2`
9112           if test -f "$collect2name" && \
9113            strings "$collect2name" | grep resolve_lib_name >/dev/null
9114           then
9115           # We have reworked collect2
9116           hardcode_direct=yes
9117           else
9118           # We have old collect2
9119           hardcode_direct=unsupported
9120           # It fails to find uninstalled libraries when the uninstalled
9121           # path is not listed in the libpath.  Setting hardcode_minus_L
9122           # to unsupported forces relinking
9123           hardcode_minus_L=yes
9124           hardcode_libdir_flag_spec='-L$libdir'
9125           hardcode_libdir_separator=
9126           fi
9127           ;;
9128         esac
9129         shared_flag='-shared'
9130         if test "$aix_use_runtimelinking" = yes; then
9131           shared_flag="$shared_flag "'${wl}-G'
9132         fi
9133       else
9134         # not using gcc
9135         if test "$host_cpu" = ia64; then
9136         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9137         # chokes on -Wl,-G. The following line is correct:
9138           shared_flag='-G'
9139         else
9140           if test "$aix_use_runtimelinking" = yes; then
9141             shared_flag='${wl}-G'
9142           else
9143             shared_flag='${wl}-bM:SRE'
9144           fi
9145         fi
9146       fi
9147
9148       # It seems that -bexpall does not export symbols beginning with
9149       # underscore (_), so it is better to generate a list of symbols to export.
9150       always_export_symbols=yes
9151       if test "$aix_use_runtimelinking" = yes; then
9152         # Warning - without using the other runtime loading flags (-brtl),
9153         # -berok will link without error, but may produce a broken library.
9154         allow_undefined_flag='-berok'
9155        # Determine the default libpath from the value encoded in an empty executable.
9156        cat >conftest.$ac_ext <<_ACEOF
9157 /* confdefs.h.  */
9158 _ACEOF
9159 cat confdefs.h >>conftest.$ac_ext
9160 cat >>conftest.$ac_ext <<_ACEOF
9161 /* end confdefs.h.  */
9162
9163 int
9164 main ()
9165 {
9166
9167   ;
9168   return 0;
9169 }
9170 _ACEOF
9171 rm -f conftest.$ac_objext conftest$ac_exeext
9172 if { (ac_try="$ac_link"
9173 case "(($ac_try" in
9174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9175   *) ac_try_echo=$ac_try;;
9176 esac
9177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9178   (eval "$ac_link") 2>conftest.er1
9179   ac_status=$?
9180   grep -v '^ *+' conftest.er1 >conftest.err
9181   rm -f conftest.er1
9182   cat conftest.err >&5
9183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9184   (exit $ac_status); } && {
9185          test -z "$ac_c_werror_flag" ||
9186          test ! -s conftest.err
9187        } && test -s conftest$ac_exeext &&
9188        $as_test_x conftest$ac_exeext; then
9189   
9190 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9191 }'`
9192 # Check for a 64-bit object if we didn't find anything.
9193 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9194 }'`; fi
9195 else
9196   echo "$as_me: failed program was:" >&5
9197 sed 's/^/| /' conftest.$ac_ext >&5
9198
9199         
9200 fi
9201
9202 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9203       conftest$ac_exeext conftest.$ac_ext
9204 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9205
9206        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9207         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"
9208        else
9209         if test "$host_cpu" = ia64; then
9210           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9211           allow_undefined_flag="-z nodefs"
9212           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"
9213         else
9214          # Determine the default libpath from the value encoded in an empty executable.
9215          cat >conftest.$ac_ext <<_ACEOF
9216 /* confdefs.h.  */
9217 _ACEOF
9218 cat confdefs.h >>conftest.$ac_ext
9219 cat >>conftest.$ac_ext <<_ACEOF
9220 /* end confdefs.h.  */
9221
9222 int
9223 main ()
9224 {
9225
9226   ;
9227   return 0;
9228 }
9229 _ACEOF
9230 rm -f conftest.$ac_objext conftest$ac_exeext
9231 if { (ac_try="$ac_link"
9232 case "(($ac_try" in
9233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9234   *) ac_try_echo=$ac_try;;
9235 esac
9236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9237   (eval "$ac_link") 2>conftest.er1
9238   ac_status=$?
9239   grep -v '^ *+' conftest.er1 >conftest.err
9240   rm -f conftest.er1
9241   cat conftest.err >&5
9242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9243   (exit $ac_status); } && {
9244          test -z "$ac_c_werror_flag" ||
9245          test ! -s conftest.err
9246        } && test -s conftest$ac_exeext &&
9247        $as_test_x conftest$ac_exeext; then
9248   
9249 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9250 }'`
9251 # Check for a 64-bit object if we didn't find anything.
9252 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9253 }'`; fi
9254 else
9255   echo "$as_me: failed program was:" >&5
9256 sed 's/^/| /' conftest.$ac_ext >&5
9257
9258         
9259 fi
9260
9261 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9262       conftest$ac_exeext conftest.$ac_ext
9263 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9264
9265          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9266           # Warning - without using the other run time loading flags,
9267           # -berok will link without error, but may produce a broken library.
9268           no_undefined_flag=' ${wl}-bernotok'
9269           allow_undefined_flag=' ${wl}-berok'
9270           # Exported symbols can be pulled into shared objects from archives
9271           whole_archive_flag_spec='$convenience'
9272           archive_cmds_need_lc=yes
9273           # This is similar to how AIX traditionally builds its shared libraries.
9274           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'
9275         fi
9276       fi
9277       ;;
9278
9279     amigaos*)
9280       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)'
9281       hardcode_libdir_flag_spec='-L$libdir'
9282       hardcode_minus_L=yes
9283       # see comment about different semantics on the GNU ld section
9284       ld_shlibs=no
9285       ;;
9286
9287     bsdi[45]*)
9288       export_dynamic_flag_spec=-rdynamic
9289       ;;
9290
9291     cygwin* | mingw* | pw32*)
9292       # When not using gcc, we currently assume that we are using
9293       # Microsoft Visual C++.
9294       # hardcode_libdir_flag_spec is actually meaningless, as there is
9295       # no search path for DLLs.
9296       hardcode_libdir_flag_spec=' '
9297       allow_undefined_flag=unsupported
9298       # Tell ltmain to make .lib files, not .a files.
9299       libext=lib
9300       # Tell ltmain to make .dll files, not .so files.
9301       shrext_cmds=".dll"
9302       # FIXME: Setting linknames here is a bad hack.
9303       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9304       # The linker will automatically build a .lib file if we build a DLL.
9305       old_archive_From_new_cmds='true'
9306       # FIXME: Should let the user specify the lib program.
9307       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9308       fix_srcfile_path='`cygpath -w "$srcfile"`'
9309       enable_shared_with_static_runtimes=yes
9310       ;;
9311
9312     darwin* | rhapsody*)
9313       case $host_os in
9314         rhapsody* | darwin1.[012])
9315          allow_undefined_flag='${wl}-undefined ${wl}suppress'
9316          ;;
9317        *) # Darwin 1.3 on
9318          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9319            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9320          else
9321            case ${MACOSX_DEPLOYMENT_TARGET} in
9322              10.[012])
9323                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9324                ;;
9325              10.*)
9326                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9327                ;;
9328            esac
9329          fi
9330          ;;
9331       esac
9332       archive_cmds_need_lc=no
9333       hardcode_direct=no
9334       hardcode_automatic=yes
9335       hardcode_shlibpath_var=unsupported
9336       whole_archive_flag_spec=''
9337       link_all_deplibs=yes
9338     if test "$GCC" = yes ; then
9339         output_verbose_link_cmd='echo'
9340         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9341       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9342       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9343       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}'
9344       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}'
9345     else
9346       case $cc_basename in
9347         xlc*)
9348          output_verbose_link_cmd='echo'
9349          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9350          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9351           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9352          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9353           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}'
9354           ;;
9355        *)
9356          ld_shlibs=no
9357           ;;
9358       esac
9359     fi
9360       ;;
9361
9362     dgux*)
9363       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9364       hardcode_libdir_flag_spec='-L$libdir'
9365       hardcode_shlibpath_var=no
9366       ;;
9367
9368     freebsd1*)
9369       ld_shlibs=no
9370       ;;
9371
9372     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9373     # support.  Future versions do this automatically, but an explicit c++rt0.o
9374     # does not break anything, and helps significantly (at the cost of a little
9375     # extra space).
9376     freebsd2.2*)
9377       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9378       hardcode_libdir_flag_spec='-R$libdir'
9379       hardcode_direct=yes
9380       hardcode_shlibpath_var=no
9381       ;;
9382
9383     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9384     freebsd2*)
9385       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9386       hardcode_direct=yes
9387       hardcode_minus_L=yes
9388       hardcode_shlibpath_var=no
9389       ;;
9390
9391     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9392     freebsd* | dragonfly*)
9393       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9394       hardcode_libdir_flag_spec='-R$libdir'
9395       hardcode_direct=yes
9396       hardcode_shlibpath_var=no
9397       ;;
9398
9399     hpux9*)
9400       if test "$GCC" = yes; then
9401         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'
9402       else
9403         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'
9404       fi
9405       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9406       hardcode_libdir_separator=:
9407       hardcode_direct=yes
9408
9409       # hardcode_minus_L: Not really in the search PATH,
9410       # but as the default location of the library.
9411       hardcode_minus_L=yes
9412       export_dynamic_flag_spec='${wl}-E'
9413       ;;
9414
9415     hpux10*)
9416       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9417         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9418       else
9419         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9420       fi
9421       if test "$with_gnu_ld" = no; then
9422         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9423         hardcode_libdir_separator=:
9424
9425         hardcode_direct=yes
9426         export_dynamic_flag_spec='${wl}-E'
9427
9428         # hardcode_minus_L: Not really in the search PATH,
9429         # but as the default location of the library.
9430         hardcode_minus_L=yes
9431       fi
9432       ;;
9433
9434     hpux11*)
9435       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9436         case $host_cpu in
9437         hppa*64*)
9438           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9439           ;;
9440         ia64*)
9441           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9442           ;;
9443         *)
9444           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9445           ;;
9446         esac
9447       else
9448         case $host_cpu in
9449         hppa*64*)
9450           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9451           ;;
9452         ia64*)
9453           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9454           ;;
9455         *)
9456           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9457           ;;
9458         esac
9459       fi
9460       if test "$with_gnu_ld" = no; then
9461         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9462         hardcode_libdir_separator=:
9463
9464         case $host_cpu in
9465         hppa*64*|ia64*)
9466           hardcode_libdir_flag_spec_ld='+b $libdir'
9467           hardcode_direct=no
9468           hardcode_shlibpath_var=no
9469           ;;
9470         *)
9471           hardcode_direct=yes
9472           export_dynamic_flag_spec='${wl}-E'
9473
9474           # hardcode_minus_L: Not really in the search PATH,
9475           # but as the default location of the library.
9476           hardcode_minus_L=yes
9477           ;;
9478         esac
9479       fi
9480       ;;
9481
9482     irix5* | irix6* | nonstopux*)
9483       if test "$GCC" = yes; then
9484         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'
9485       else
9486         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'
9487         hardcode_libdir_flag_spec_ld='-rpath $libdir'
9488       fi
9489       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9490       hardcode_libdir_separator=:
9491       link_all_deplibs=yes
9492       ;;
9493
9494     netbsd* | netbsdelf*-gnu)
9495       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9496         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9497       else
9498         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9499       fi
9500       hardcode_libdir_flag_spec='-R$libdir'
9501       hardcode_direct=yes
9502       hardcode_shlibpath_var=no
9503       ;;
9504
9505     newsos6)
9506       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9507       hardcode_direct=yes
9508       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9509       hardcode_libdir_separator=:
9510       hardcode_shlibpath_var=no
9511       ;;
9512
9513     openbsd*)
9514       hardcode_direct=yes
9515       hardcode_shlibpath_var=no
9516       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9517         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9518         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9519         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9520         export_dynamic_flag_spec='${wl}-E'
9521       else
9522        case $host_os in
9523          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9524            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9525            hardcode_libdir_flag_spec='-R$libdir'
9526            ;;
9527          *)
9528            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9529            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9530            ;;
9531        esac
9532       fi
9533       ;;
9534
9535     os2*)
9536       hardcode_libdir_flag_spec='-L$libdir'
9537       hardcode_minus_L=yes
9538       allow_undefined_flag=unsupported
9539       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'
9540       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9541       ;;
9542
9543     osf3*)
9544       if test "$GCC" = yes; then
9545         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9546         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'
9547       else
9548         allow_undefined_flag=' -expect_unresolved \*'
9549         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'
9550       fi
9551       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9552       hardcode_libdir_separator=:
9553       ;;
9554
9555     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9556       if test "$GCC" = yes; then
9557         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9558         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'
9559         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9560       else
9561         allow_undefined_flag=' -expect_unresolved \*'
9562         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'
9563         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9564         $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'
9565
9566         # Both c and cxx compiler support -rpath directly
9567         hardcode_libdir_flag_spec='-rpath $libdir'
9568       fi
9569       hardcode_libdir_separator=:
9570       ;;
9571
9572     solaris*)
9573       no_undefined_flag=' -z text'
9574       if test "$GCC" = yes; then
9575         wlarc='${wl}'
9576         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9577         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9578           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9579       else
9580         wlarc=''
9581         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9582         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9583         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9584       fi
9585       hardcode_libdir_flag_spec='-R$libdir'
9586       hardcode_shlibpath_var=no
9587       case $host_os in
9588       solaris2.[0-5] | solaris2.[0-5].*) ;;
9589       *)
9590         # The compiler driver will combine linker options so we
9591         # cannot just pass the convience library names through
9592         # without $wl, iff we do not link with $LD.
9593         # Luckily, gcc supports the same syntax we need for Sun Studio.
9594         # Supported since Solaris 2.6 (maybe 2.5.1?)
9595         case $wlarc in
9596         '')
9597           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9598         *)
9599           whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
9600         esac ;;
9601       esac
9602       link_all_deplibs=yes
9603       ;;
9604
9605     sunos4*)
9606       if test "x$host_vendor" = xsequent; then
9607         # Use $CC to link under sequent, because it throws in some extra .o
9608         # files that make .init and .fini sections work.
9609         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9610       else
9611         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9612       fi
9613       hardcode_libdir_flag_spec='-L$libdir'
9614       hardcode_direct=yes
9615       hardcode_minus_L=yes
9616       hardcode_shlibpath_var=no
9617       ;;
9618
9619     sysv4)
9620       case $host_vendor in
9621         sni)
9622           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9623           hardcode_direct=yes # is this really true???
9624         ;;
9625         siemens)
9626           ## LD is ld it makes a PLAMLIB
9627           ## CC just makes a GrossModule.
9628           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9629           reload_cmds='$CC -r -o $output$reload_objs'
9630           hardcode_direct=no
9631         ;;
9632         motorola)
9633           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9634           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9635         ;;
9636       esac
9637       runpath_var='LD_RUN_PATH'
9638       hardcode_shlibpath_var=no
9639       ;;
9640
9641     sysv4.3*)
9642       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9643       hardcode_shlibpath_var=no
9644       export_dynamic_flag_spec='-Bexport'
9645       ;;
9646
9647     sysv4*MP*)
9648       if test -d /usr/nec; then
9649         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9650         hardcode_shlibpath_var=no
9651         runpath_var=LD_RUN_PATH
9652         hardcode_runpath_var=yes
9653         ld_shlibs=yes
9654       fi
9655       ;;
9656
9657     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9658       no_undefined_flag='${wl}-z,text'
9659       archive_cmds_need_lc=no
9660       hardcode_shlibpath_var=no
9661       runpath_var='LD_RUN_PATH'
9662
9663       if test "$GCC" = yes; then
9664         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9665         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9666       else
9667         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9668         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9669       fi
9670       ;;
9671
9672     sysv5* | sco3.2v5* | sco5v6*)
9673       # Note: We can NOT use -z defs as we might desire, because we do not
9674       # link with -lc, and that would cause any symbols used from libc to
9675       # always be unresolved, which means just about no library would
9676       # ever link correctly.  If we're not using GNU ld we use -z text
9677       # though, which does catch some bad symbols but isn't as heavy-handed
9678       # as -z defs.
9679       no_undefined_flag='${wl}-z,text'
9680       allow_undefined_flag='${wl}-z,nodefs'
9681       archive_cmds_need_lc=no
9682       hardcode_shlibpath_var=no
9683       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9684       hardcode_libdir_separator=':'
9685       link_all_deplibs=yes
9686       export_dynamic_flag_spec='${wl}-Bexport'
9687       runpath_var='LD_RUN_PATH'
9688
9689       if test "$GCC" = yes; then
9690         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9691         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9692       else
9693         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9694         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9695       fi
9696       ;;
9697
9698     uts4*)
9699       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9700       hardcode_libdir_flag_spec='-L$libdir'
9701       hardcode_shlibpath_var=no
9702       ;;
9703
9704     *)
9705       ld_shlibs=no
9706       ;;
9707     esac
9708   fi
9709
9710 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9711 echo "${ECHO_T}$ld_shlibs" >&6; }
9712 test "$ld_shlibs" = no && can_build_shared=no
9713
9714 #
9715 # Do we need to explicitly link libc?
9716 #
9717 case "x$archive_cmds_need_lc" in
9718 x|xyes)
9719   # Assume -lc should be added
9720   archive_cmds_need_lc=yes
9721
9722   if test "$enable_shared" = yes && test "$GCC" = yes; then
9723     case $archive_cmds in
9724     *'~'*)
9725       # FIXME: we may have to deal with multi-command sequences.
9726       ;;
9727     '$CC '*)
9728       # Test whether the compiler implicitly links with -lc since on some
9729       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9730       # to ld, don't add -lc before -lgcc.
9731       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9732 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9733       $rm conftest*
9734       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9735
9736       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9737   (eval $ac_compile) 2>&5
9738   ac_status=$?
9739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9740   (exit $ac_status); } 2>conftest.err; then
9741         soname=conftest
9742         lib=conftest
9743         libobjs=conftest.$ac_objext
9744         deplibs=
9745         wl=$lt_prog_compiler_wl
9746         pic_flag=$lt_prog_compiler_pic
9747         compiler_flags=-v
9748         linker_flags=-v
9749         verstring=
9750         output_objdir=.
9751         libname=conftest
9752         lt_save_allow_undefined_flag=$allow_undefined_flag
9753         allow_undefined_flag=
9754         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9755   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9756   ac_status=$?
9757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9758   (exit $ac_status); }
9759         then
9760           archive_cmds_need_lc=no
9761         else
9762           archive_cmds_need_lc=yes
9763         fi
9764         allow_undefined_flag=$lt_save_allow_undefined_flag
9765       else
9766         cat conftest.err 1>&5
9767       fi
9768       $rm conftest*
9769       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9770 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9771       ;;
9772     esac
9773   fi
9774   ;;
9775 esac
9776
9777 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9778 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9779 library_names_spec=
9780 libname_spec='lib$name'
9781 soname_spec=
9782 shrext_cmds=".so"
9783 postinstall_cmds=
9784 postuninstall_cmds=
9785 finish_cmds=
9786 finish_eval=
9787 shlibpath_var=
9788 shlibpath_overrides_runpath=unknown
9789 version_type=none
9790 dynamic_linker="$host_os ld.so"
9791 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9792 if test "$GCC" = yes; then
9793   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9794   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9795     # if the path contains ";" then we assume it to be the separator
9796     # otherwise default to the standard path separator (i.e. ":") - it is
9797     # assumed that no part of a normal pathname contains ";" but that should
9798     # okay in the real world where ";" in dirpaths is itself problematic.
9799     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9800   else
9801     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9802   fi
9803 else
9804   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9805 fi
9806 need_lib_prefix=unknown
9807 hardcode_into_libs=no
9808
9809 # when you set need_version to no, make sure it does not cause -set_version
9810 # flags to be left without arguments
9811 need_version=unknown
9812
9813 case $host_os in
9814 aix3*)
9815   version_type=linux
9816   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9817   shlibpath_var=LIBPATH
9818
9819   # AIX 3 has no versioning support, so we append a major version to the name.
9820   soname_spec='${libname}${release}${shared_ext}$major'
9821   ;;
9822
9823 aix4* | aix5*)
9824   version_type=linux
9825   need_lib_prefix=no
9826   need_version=no
9827   hardcode_into_libs=yes
9828   if test "$host_cpu" = ia64; then
9829     # AIX 5 supports IA64
9830     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9831     shlibpath_var=LD_LIBRARY_PATH
9832   else
9833     # With GCC up to 2.95.x, collect2 would create an import file
9834     # for dependence libraries.  The import file would start with
9835     # the line `#! .'.  This would cause the generated library to
9836     # depend on `.', always an invalid library.  This was fixed in
9837     # development snapshots of GCC prior to 3.0.
9838     case $host_os in
9839       aix4 | aix4.[01] | aix4.[01].*)
9840       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9841            echo ' yes '
9842            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9843         :
9844       else
9845         can_build_shared=no
9846       fi
9847       ;;
9848     esac
9849     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9850     # soname into executable. Probably we can add versioning support to
9851     # collect2, so additional links can be useful in future.
9852     if test "$aix_use_runtimelinking" = yes; then
9853       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9854       # instead of lib<name>.a to let people know that these are not
9855       # typical AIX shared libraries.
9856       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9857     else
9858       # We preserve .a as extension for shared libraries through AIX4.2
9859       # and later when we are not doing run time linking.
9860       library_names_spec='${libname}${release}.a $libname.a'
9861       soname_spec='${libname}${release}${shared_ext}$major'
9862     fi
9863     shlibpath_var=LIBPATH
9864   fi
9865   ;;
9866
9867 amigaos*)
9868   library_names_spec='$libname.ixlibrary $libname.a'
9869   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9870   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'
9871   ;;
9872
9873 beos*)
9874   library_names_spec='${libname}${shared_ext}'
9875   dynamic_linker="$host_os ld.so"
9876   shlibpath_var=LIBRARY_PATH
9877   ;;
9878
9879 bsdi[45]*)
9880   version_type=linux
9881   need_version=no
9882   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9883   soname_spec='${libname}${release}${shared_ext}$major'
9884   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9885   shlibpath_var=LD_LIBRARY_PATH
9886   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9887   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9888   # the default ld.so.conf also contains /usr/contrib/lib and
9889   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9890   # libtool to hard-code these into programs
9891   ;;
9892
9893 cygwin* | mingw* | pw32*)
9894   version_type=windows
9895   shrext_cmds=".dll"
9896   need_version=no
9897   need_lib_prefix=no
9898
9899   case $GCC,$host_os in
9900   yes,cygwin* | yes,mingw* | yes,pw32*)
9901     library_names_spec='$libname.dll.a'
9902     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9903     postinstall_cmds='base_file=`basename \${file}`~
9904       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9905       dldir=$destdir/`dirname \$dlpath`~
9906       test -d \$dldir || mkdir -p \$dldir~
9907       $install_prog $dir/$dlname \$dldir/$dlname~
9908       chmod a+x \$dldir/$dlname'
9909     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9910       dlpath=$dir/\$dldll~
9911        $rm \$dlpath'
9912     shlibpath_overrides_runpath=yes
9913
9914     case $host_os in
9915     cygwin*)
9916       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9917       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9918       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9919       ;;
9920     mingw*)
9921       # MinGW DLLs use traditional 'lib' prefix
9922       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9923       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9924       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9925         # It is most probably a Windows format PATH printed by
9926         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9927         # path with ; separators, and with drive letters. We can handle the
9928         # drive letters (cygwin fileutils understands them), so leave them,
9929         # especially as we might pass files found there to a mingw objdump,
9930         # which wouldn't understand a cygwinified path. Ahh.
9931         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9932       else
9933         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9934       fi
9935       ;;
9936     pw32*)
9937       # pw32 DLLs use 'pw' prefix rather than 'lib'
9938       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9939       ;;
9940     esac
9941     ;;
9942
9943   *)
9944     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9945     ;;
9946   esac
9947   dynamic_linker='Win32 ld.exe'
9948   # FIXME: first we should search . and the directory the executable is in
9949   shlibpath_var=PATH
9950   ;;
9951
9952 darwin* | rhapsody*)
9953   dynamic_linker="$host_os dyld"
9954   version_type=darwin
9955   need_lib_prefix=no
9956   need_version=no
9957   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9958   soname_spec='${libname}${release}${major}$shared_ext'
9959   shlibpath_overrides_runpath=yes
9960   shlibpath_var=DYLD_LIBRARY_PATH
9961   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9962   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9963   if test "$GCC" = yes; then
9964     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
9965   else
9966     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9967   fi
9968   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9969   ;;
9970
9971 dgux*)
9972   version_type=linux
9973   need_lib_prefix=no
9974   need_version=no
9975   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9976   soname_spec='${libname}${release}${shared_ext}$major'
9977   shlibpath_var=LD_LIBRARY_PATH
9978   ;;
9979
9980 freebsd1*)
9981   dynamic_linker=no
9982   ;;
9983
9984 freebsd* | dragonfly*)
9985   # DragonFly does not have aout.  When/if they implement a new
9986   # versioning mechanism, adjust this.
9987   if test -x /usr/bin/objformat; then
9988     objformat=`/usr/bin/objformat`
9989   else
9990     case $host_os in
9991     freebsd[123]*) objformat=aout ;;
9992     *) objformat=elf ;;
9993     esac
9994   fi
9995   version_type=freebsd-$objformat
9996   case $version_type in
9997     freebsd-elf*)
9998       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9999       need_version=no
10000       need_lib_prefix=no
10001       ;;
10002     freebsd-*)
10003       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10004       need_version=yes
10005       ;;
10006   esac
10007   shlibpath_var=LD_LIBRARY_PATH
10008   case $host_os in
10009   freebsd2*)
10010     shlibpath_overrides_runpath=yes
10011     ;;
10012   freebsd3.[01]* | freebsdelf3.[01]*)
10013     shlibpath_overrides_runpath=yes
10014     hardcode_into_libs=yes
10015     ;;
10016   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10017   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10018     shlibpath_overrides_runpath=no
10019     hardcode_into_libs=yes
10020     ;;
10021   freebsd*) # from 4.6 on
10022     shlibpath_overrides_runpath=yes
10023     hardcode_into_libs=yes
10024     ;;
10025   esac
10026   ;;
10027
10028 gnu*)
10029   version_type=linux
10030   need_lib_prefix=no
10031   need_version=no
10032   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10033   soname_spec='${libname}${release}${shared_ext}$major'
10034   shlibpath_var=LD_LIBRARY_PATH
10035   hardcode_into_libs=yes
10036   ;;
10037
10038 hpux9* | hpux10* | hpux11*)
10039   # Give a soname corresponding to the major version so that dld.sl refuses to
10040   # link against other versions.
10041   version_type=sunos
10042   need_lib_prefix=no
10043   need_version=no
10044   case $host_cpu in
10045   ia64*)
10046     shrext_cmds='.so'
10047     hardcode_into_libs=yes
10048     dynamic_linker="$host_os dld.so"
10049     shlibpath_var=LD_LIBRARY_PATH
10050     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10051     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10052     soname_spec='${libname}${release}${shared_ext}$major'
10053     if test "X$HPUX_IA64_MODE" = X32; then
10054       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10055     else
10056       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10057     fi
10058     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10059     ;;
10060    hppa*64*)
10061      shrext_cmds='.sl'
10062      hardcode_into_libs=yes
10063      dynamic_linker="$host_os dld.sl"
10064      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10065      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10066      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10067      soname_spec='${libname}${release}${shared_ext}$major'
10068      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10069      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10070      ;;
10071    *)
10072     shrext_cmds='.sl'
10073     dynamic_linker="$host_os dld.sl"
10074     shlibpath_var=SHLIB_PATH
10075     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10076     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10077     soname_spec='${libname}${release}${shared_ext}$major'
10078     ;;
10079   esac
10080   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10081   postinstall_cmds='chmod 555 $lib'
10082   ;;
10083
10084 interix3*)
10085   version_type=linux
10086   need_lib_prefix=no
10087   need_version=no
10088   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10089   soname_spec='${libname}${release}${shared_ext}$major'
10090   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10091   shlibpath_var=LD_LIBRARY_PATH
10092   shlibpath_overrides_runpath=no
10093   hardcode_into_libs=yes
10094   ;;
10095
10096 irix5* | irix6* | nonstopux*)
10097   case $host_os in
10098     nonstopux*) version_type=nonstopux ;;
10099     *)
10100         if test "$lt_cv_prog_gnu_ld" = yes; then
10101                 version_type=linux
10102         else
10103                 version_type=irix
10104         fi ;;
10105   esac
10106   need_lib_prefix=no
10107   need_version=no
10108   soname_spec='${libname}${release}${shared_ext}$major'
10109   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10110   case $host_os in
10111   irix5* | nonstopux*)
10112     libsuff= shlibsuff=
10113     ;;
10114   *)
10115     case $LD in # libtool.m4 will add one of these switches to LD
10116     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10117       libsuff= shlibsuff= libmagic=32-bit;;
10118     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10119       libsuff=32 shlibsuff=N32 libmagic=N32;;
10120     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10121       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10122     *) libsuff= shlibsuff= libmagic=never-match;;
10123     esac
10124     ;;
10125   esac
10126   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10127   shlibpath_overrides_runpath=no
10128   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10129   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10130   hardcode_into_libs=yes
10131   ;;
10132
10133 # No shared lib support for Linux oldld, aout, or coff.
10134 linux*oldld* | linux*aout* | linux*coff*)
10135   dynamic_linker=no
10136   ;;
10137
10138 # This must be Linux ELF.
10139 linux* | k*bsd*-gnu)
10140   version_type=linux
10141   need_lib_prefix=no
10142   need_version=no
10143   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10144   soname_spec='${libname}${release}${shared_ext}$major'
10145   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10146   shlibpath_var=LD_LIBRARY_PATH
10147   shlibpath_overrides_runpath=no
10148   # This implies no fast_install, which is unacceptable.
10149   # Some rework will be needed to allow for fast_install
10150   # before this can be enabled.
10151   hardcode_into_libs=yes
10152
10153   # Append ld.so.conf contents to the search path
10154   if test -f /etc/ld.so.conf; then
10155     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
10156     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10157   fi
10158
10159   # We used to test for /lib/ld.so.1 and disable shared libraries on
10160   # powerpc, because MkLinux only supported shared libraries with the
10161   # GNU dynamic linker.  Since this was broken with cross compilers,
10162   # most powerpc-linux boxes support dynamic linking these days and
10163   # people can always --disable-shared, the test was removed, and we
10164   # assume the GNU/Linux dynamic linker is in use.
10165   dynamic_linker='GNU/Linux ld.so'
10166   ;;
10167
10168 netbsdelf*-gnu)
10169   version_type=linux
10170   need_lib_prefix=no
10171   need_version=no
10172   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10173   soname_spec='${libname}${release}${shared_ext}$major'
10174   shlibpath_var=LD_LIBRARY_PATH
10175   shlibpath_overrides_runpath=no
10176   hardcode_into_libs=yes
10177   dynamic_linker='NetBSD ld.elf_so'
10178   ;;
10179
10180 netbsd*)
10181   version_type=sunos
10182   need_lib_prefix=no
10183   need_version=no
10184   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10185     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10186     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10187     dynamic_linker='NetBSD (a.out) ld.so'
10188   else
10189     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10190     soname_spec='${libname}${release}${shared_ext}$major'
10191     dynamic_linker='NetBSD ld.elf_so'
10192   fi
10193   shlibpath_var=LD_LIBRARY_PATH
10194   shlibpath_overrides_runpath=yes
10195   hardcode_into_libs=yes
10196   ;;
10197
10198 newsos6)
10199   version_type=linux
10200   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10201   shlibpath_var=LD_LIBRARY_PATH
10202   shlibpath_overrides_runpath=yes
10203   ;;
10204
10205 nto-qnx*)
10206   version_type=linux
10207   need_lib_prefix=no
10208   need_version=no
10209   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10210   soname_spec='${libname}${release}${shared_ext}$major'
10211   shlibpath_var=LD_LIBRARY_PATH
10212   shlibpath_overrides_runpath=yes
10213   ;;
10214
10215 openbsd*)
10216   version_type=sunos
10217   sys_lib_dlsearch_path_spec="/usr/lib"
10218   need_lib_prefix=no
10219   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10220   case $host_os in
10221     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10222     *)                         need_version=no  ;;
10223   esac
10224   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10225   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10226   shlibpath_var=LD_LIBRARY_PATH
10227   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10228     case $host_os in
10229       openbsd2.[89] | openbsd2.[89].*)
10230         shlibpath_overrides_runpath=no
10231         ;;
10232       *)
10233         shlibpath_overrides_runpath=yes
10234         ;;
10235       esac
10236   else
10237     shlibpath_overrides_runpath=yes
10238   fi
10239   ;;
10240
10241 os2*)
10242   libname_spec='$name'
10243   shrext_cmds=".dll"
10244   need_lib_prefix=no
10245   library_names_spec='$libname${shared_ext} $libname.a'
10246   dynamic_linker='OS/2 ld.exe'
10247   shlibpath_var=LIBPATH
10248   ;;
10249
10250 osf3* | osf4* | osf5*)
10251   version_type=osf
10252   need_lib_prefix=no
10253   need_version=no
10254   soname_spec='${libname}${release}${shared_ext}$major'
10255   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10256   shlibpath_var=LD_LIBRARY_PATH
10257   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10258   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10259   ;;
10260
10261 solaris*)
10262   version_type=linux
10263   need_lib_prefix=no
10264   need_version=no
10265   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10266   soname_spec='${libname}${release}${shared_ext}$major'
10267   shlibpath_var=LD_LIBRARY_PATH
10268   shlibpath_overrides_runpath=yes
10269   hardcode_into_libs=yes
10270   # ldd complains unless libraries are executable
10271   postinstall_cmds='chmod +x $lib'
10272   ;;
10273
10274 sunos4*)
10275   version_type=sunos
10276   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10277   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10278   shlibpath_var=LD_LIBRARY_PATH
10279   shlibpath_overrides_runpath=yes
10280   if test "$with_gnu_ld" = yes; then
10281     need_lib_prefix=no
10282   fi
10283   need_version=yes
10284   ;;
10285
10286 sysv4 | sysv4.3*)
10287   version_type=linux
10288   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10289   soname_spec='${libname}${release}${shared_ext}$major'
10290   shlibpath_var=LD_LIBRARY_PATH
10291   case $host_vendor in
10292     sni)
10293       shlibpath_overrides_runpath=no
10294       need_lib_prefix=no
10295       export_dynamic_flag_spec='${wl}-Blargedynsym'
10296       runpath_var=LD_RUN_PATH
10297       ;;
10298     siemens)
10299       need_lib_prefix=no
10300       ;;
10301     motorola)
10302       need_lib_prefix=no
10303       need_version=no
10304       shlibpath_overrides_runpath=no
10305       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10306       ;;
10307   esac
10308   ;;
10309
10310 sysv4*MP*)
10311   if test -d /usr/nec ;then
10312     version_type=linux
10313     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10314     soname_spec='$libname${shared_ext}.$major'
10315     shlibpath_var=LD_LIBRARY_PATH
10316   fi
10317   ;;
10318
10319 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10320   version_type=freebsd-elf
10321   need_lib_prefix=no
10322   need_version=no
10323   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10324   soname_spec='${libname}${release}${shared_ext}$major'
10325   shlibpath_var=LD_LIBRARY_PATH
10326   hardcode_into_libs=yes
10327   if test "$with_gnu_ld" = yes; then
10328     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10329     shlibpath_overrides_runpath=no
10330   else
10331     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10332     shlibpath_overrides_runpath=yes
10333     case $host_os in
10334       sco3.2v5*)
10335         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10336         ;;
10337     esac
10338   fi
10339   sys_lib_dlsearch_path_spec='/usr/lib'
10340   ;;
10341
10342 uts4*)
10343   version_type=linux
10344   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10345   soname_spec='${libname}${release}${shared_ext}$major'
10346   shlibpath_var=LD_LIBRARY_PATH
10347   ;;
10348
10349 *)
10350   dynamic_linker=no
10351   ;;
10352 esac
10353 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10354 echo "${ECHO_T}$dynamic_linker" >&6; }
10355 test "$dynamic_linker" = no && can_build_shared=no
10356
10357 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10358 if test "$GCC" = yes; then
10359   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10360 fi
10361
10362 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10363 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10364 hardcode_action=
10365 if test -n "$hardcode_libdir_flag_spec" || \
10366    test -n "$runpath_var" || \
10367    test "X$hardcode_automatic" = "Xyes" ; then
10368
10369   # We can hardcode non-existant directories.
10370   if test "$hardcode_direct" != no &&
10371      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10372      # have to relink, otherwise we might link with an installed library
10373      # when we should be linking with a yet-to-be-installed one
10374      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10375      test "$hardcode_minus_L" != no; then
10376     # Linking always hardcodes the temporary library directory.
10377     hardcode_action=relink
10378   else
10379     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10380     hardcode_action=immediate
10381   fi
10382 else
10383   # We cannot hardcode anything, or else we can only hardcode existing
10384   # directories.
10385   hardcode_action=unsupported
10386 fi
10387 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
10388 echo "${ECHO_T}$hardcode_action" >&6; }
10389
10390 if test "$hardcode_action" = relink; then
10391   # Fast installation is not supported
10392   enable_fast_install=no
10393 elif test "$shlibpath_overrides_runpath" = yes ||
10394      test "$enable_shared" = no; then
10395   # Fast installation is not necessary
10396   enable_fast_install=needless
10397 fi
10398
10399 striplib=
10400 old_striplib=
10401 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10402 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10403 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10404   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10405   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10406   { echo "$as_me:$LINENO: result: yes" >&5
10407 echo "${ECHO_T}yes" >&6; }
10408 else
10409 # FIXME - insert some real tests, host_os isn't really good enough
10410   case $host_os in
10411    darwin*)
10412        if test -n "$STRIP" ; then
10413          striplib="$STRIP -x"
10414          { echo "$as_me:$LINENO: result: yes" >&5
10415 echo "${ECHO_T}yes" >&6; }
10416        else
10417   { echo "$as_me:$LINENO: result: no" >&5
10418 echo "${ECHO_T}no" >&6; }
10419 fi
10420        ;;
10421    *)
10422   { echo "$as_me:$LINENO: result: no" >&5
10423 echo "${ECHO_T}no" >&6; }
10424     ;;
10425   esac
10426 fi
10427
10428 if test "x$enable_dlopen" != xyes; then
10429   enable_dlopen=unknown
10430   enable_dlopen_self=unknown
10431   enable_dlopen_self_static=unknown
10432 else
10433   lt_cv_dlopen=no
10434   lt_cv_dlopen_libs=
10435
10436   case $host_os in
10437   beos*)
10438     lt_cv_dlopen="load_add_on"
10439     lt_cv_dlopen_libs=
10440     lt_cv_dlopen_self=yes
10441     ;;
10442
10443   mingw* | pw32*)
10444     lt_cv_dlopen="LoadLibrary"
10445     lt_cv_dlopen_libs=
10446    ;;
10447
10448   cygwin*)
10449     lt_cv_dlopen="dlopen"
10450     lt_cv_dlopen_libs=
10451    ;;
10452
10453   darwin*)
10454   # if libdl is installed we need to link against it
10455     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10456 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10457 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10458   echo $ECHO_N "(cached) $ECHO_C" >&6
10459 else
10460   ac_check_lib_save_LIBS=$LIBS
10461 LIBS="-ldl  $LIBS"
10462 cat >conftest.$ac_ext <<_ACEOF
10463 /* confdefs.h.  */
10464 _ACEOF
10465 cat confdefs.h >>conftest.$ac_ext
10466 cat >>conftest.$ac_ext <<_ACEOF
10467 /* end confdefs.h.  */
10468
10469 /* Override any GCC internal prototype to avoid an error.
10470    Use char because int might match the return type of a GCC
10471    builtin and then its argument prototype would still apply.  */
10472 #ifdef __cplusplus
10473 extern "C"
10474 #endif
10475 char dlopen ();
10476 int
10477 main ()
10478 {
10479 return dlopen ();
10480   ;
10481   return 0;
10482 }
10483 _ACEOF
10484 rm -f conftest.$ac_objext conftest$ac_exeext
10485 if { (ac_try="$ac_link"
10486 case "(($ac_try" in
10487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10488   *) ac_try_echo=$ac_try;;
10489 esac
10490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10491   (eval "$ac_link") 2>conftest.er1
10492   ac_status=$?
10493   grep -v '^ *+' conftest.er1 >conftest.err
10494   rm -f conftest.er1
10495   cat conftest.err >&5
10496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10497   (exit $ac_status); } && {
10498          test -z "$ac_c_werror_flag" ||
10499          test ! -s conftest.err
10500        } && test -s conftest$ac_exeext &&
10501        $as_test_x conftest$ac_exeext; then
10502   ac_cv_lib_dl_dlopen=yes
10503 else
10504   echo "$as_me: failed program was:" >&5
10505 sed 's/^/| /' conftest.$ac_ext >&5
10506
10507         ac_cv_lib_dl_dlopen=no
10508 fi
10509
10510 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10511       conftest$ac_exeext conftest.$ac_ext
10512 LIBS=$ac_check_lib_save_LIBS
10513 fi
10514 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10515 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10516 if test $ac_cv_lib_dl_dlopen = yes; then
10517   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10518 else
10519   
10520     lt_cv_dlopen="dyld"
10521     lt_cv_dlopen_libs=
10522     lt_cv_dlopen_self=yes
10523     
10524 fi
10525
10526    ;;
10527
10528   *)
10529     { echo "$as_me:$LINENO: checking for shl_load" >&5
10530 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10531 if test "${ac_cv_func_shl_load+set}" = set; then
10532   echo $ECHO_N "(cached) $ECHO_C" >&6
10533 else
10534   cat >conftest.$ac_ext <<_ACEOF
10535 /* confdefs.h.  */
10536 _ACEOF
10537 cat confdefs.h >>conftest.$ac_ext
10538 cat >>conftest.$ac_ext <<_ACEOF
10539 /* end confdefs.h.  */
10540 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10541    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10542 #define shl_load innocuous_shl_load
10543
10544 /* System header to define __stub macros and hopefully few prototypes,
10545     which can conflict with char shl_load (); below.
10546     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10547     <limits.h> exists even on freestanding compilers.  */
10548
10549 #ifdef __STDC__
10550 # include <limits.h>
10551 #else
10552 # include <assert.h>
10553 #endif
10554
10555 #undef shl_load
10556
10557 /* Override any GCC internal prototype to avoid an error.
10558    Use char because int might match the return type of a GCC
10559    builtin and then its argument prototype would still apply.  */
10560 #ifdef __cplusplus
10561 extern "C"
10562 #endif
10563 char shl_load ();
10564 /* The GNU C library defines this for functions which it implements
10565     to always fail with ENOSYS.  Some functions are actually named
10566     something starting with __ and the normal name is an alias.  */
10567 #if defined __stub_shl_load || defined __stub___shl_load
10568 choke me
10569 #endif
10570
10571 int
10572 main ()
10573 {
10574 return shl_load ();
10575   ;
10576   return 0;
10577 }
10578 _ACEOF
10579 rm -f conftest.$ac_objext conftest$ac_exeext
10580 if { (ac_try="$ac_link"
10581 case "(($ac_try" in
10582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10583   *) ac_try_echo=$ac_try;;
10584 esac
10585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10586   (eval "$ac_link") 2>conftest.er1
10587   ac_status=$?
10588   grep -v '^ *+' conftest.er1 >conftest.err
10589   rm -f conftest.er1
10590   cat conftest.err >&5
10591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10592   (exit $ac_status); } && {
10593          test -z "$ac_c_werror_flag" ||
10594          test ! -s conftest.err
10595        } && test -s conftest$ac_exeext &&
10596        $as_test_x conftest$ac_exeext; then
10597   ac_cv_func_shl_load=yes
10598 else
10599   echo "$as_me: failed program was:" >&5
10600 sed 's/^/| /' conftest.$ac_ext >&5
10601
10602         ac_cv_func_shl_load=no
10603 fi
10604
10605 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10606       conftest$ac_exeext conftest.$ac_ext
10607 fi
10608 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10609 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10610 if test $ac_cv_func_shl_load = yes; then
10611   lt_cv_dlopen="shl_load"
10612 else
10613   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10614 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10615 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10616   echo $ECHO_N "(cached) $ECHO_C" >&6
10617 else
10618   ac_check_lib_save_LIBS=$LIBS
10619 LIBS="-ldld  $LIBS"
10620 cat >conftest.$ac_ext <<_ACEOF
10621 /* confdefs.h.  */
10622 _ACEOF
10623 cat confdefs.h >>conftest.$ac_ext
10624 cat >>conftest.$ac_ext <<_ACEOF
10625 /* end confdefs.h.  */
10626
10627 /* Override any GCC internal prototype to avoid an error.
10628    Use char because int might match the return type of a GCC
10629    builtin and then its argument prototype would still apply.  */
10630 #ifdef __cplusplus
10631 extern "C"
10632 #endif
10633 char shl_load ();
10634 int
10635 main ()
10636 {
10637 return shl_load ();
10638   ;
10639   return 0;
10640 }
10641 _ACEOF
10642 rm -f conftest.$ac_objext conftest$ac_exeext
10643 if { (ac_try="$ac_link"
10644 case "(($ac_try" in
10645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10646   *) ac_try_echo=$ac_try;;
10647 esac
10648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10649   (eval "$ac_link") 2>conftest.er1
10650   ac_status=$?
10651   grep -v '^ *+' conftest.er1 >conftest.err
10652   rm -f conftest.er1
10653   cat conftest.err >&5
10654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10655   (exit $ac_status); } && {
10656          test -z "$ac_c_werror_flag" ||
10657          test ! -s conftest.err
10658        } && test -s conftest$ac_exeext &&
10659        $as_test_x conftest$ac_exeext; then
10660   ac_cv_lib_dld_shl_load=yes
10661 else
10662   echo "$as_me: failed program was:" >&5
10663 sed 's/^/| /' conftest.$ac_ext >&5
10664
10665         ac_cv_lib_dld_shl_load=no
10666 fi
10667
10668 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10669       conftest$ac_exeext conftest.$ac_ext
10670 LIBS=$ac_check_lib_save_LIBS
10671 fi
10672 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10673 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10674 if test $ac_cv_lib_dld_shl_load = yes; then
10675   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10676 else
10677   { echo "$as_me:$LINENO: checking for dlopen" >&5
10678 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10679 if test "${ac_cv_func_dlopen+set}" = set; then
10680   echo $ECHO_N "(cached) $ECHO_C" >&6
10681 else
10682   cat >conftest.$ac_ext <<_ACEOF
10683 /* confdefs.h.  */
10684 _ACEOF
10685 cat confdefs.h >>conftest.$ac_ext
10686 cat >>conftest.$ac_ext <<_ACEOF
10687 /* end confdefs.h.  */
10688 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10689    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10690 #define dlopen innocuous_dlopen
10691
10692 /* System header to define __stub macros and hopefully few prototypes,
10693     which can conflict with char dlopen (); below.
10694     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10695     <limits.h> exists even on freestanding compilers.  */
10696
10697 #ifdef __STDC__
10698 # include <limits.h>
10699 #else
10700 # include <assert.h>
10701 #endif
10702
10703 #undef dlopen
10704
10705 /* Override any GCC internal prototype to avoid an error.
10706    Use char because int might match the return type of a GCC
10707    builtin and then its argument prototype would still apply.  */
10708 #ifdef __cplusplus
10709 extern "C"
10710 #endif
10711 char dlopen ();
10712 /* The GNU C library defines this for functions which it implements
10713     to always fail with ENOSYS.  Some functions are actually named
10714     something starting with __ and the normal name is an alias.  */
10715 #if defined __stub_dlopen || defined __stub___dlopen
10716 choke me
10717 #endif
10718
10719 int
10720 main ()
10721 {
10722 return dlopen ();
10723   ;
10724   return 0;
10725 }
10726 _ACEOF
10727 rm -f conftest.$ac_objext conftest$ac_exeext
10728 if { (ac_try="$ac_link"
10729 case "(($ac_try" in
10730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10731   *) ac_try_echo=$ac_try;;
10732 esac
10733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10734   (eval "$ac_link") 2>conftest.er1
10735   ac_status=$?
10736   grep -v '^ *+' conftest.er1 >conftest.err
10737   rm -f conftest.er1
10738   cat conftest.err >&5
10739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10740   (exit $ac_status); } && {
10741          test -z "$ac_c_werror_flag" ||
10742          test ! -s conftest.err
10743        } && test -s conftest$ac_exeext &&
10744        $as_test_x conftest$ac_exeext; then
10745   ac_cv_func_dlopen=yes
10746 else
10747   echo "$as_me: failed program was:" >&5
10748 sed 's/^/| /' conftest.$ac_ext >&5
10749
10750         ac_cv_func_dlopen=no
10751 fi
10752
10753 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10754       conftest$ac_exeext conftest.$ac_ext
10755 fi
10756 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10757 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10758 if test $ac_cv_func_dlopen = yes; then
10759   lt_cv_dlopen="dlopen"
10760 else
10761   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10762 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10763 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10764   echo $ECHO_N "(cached) $ECHO_C" >&6
10765 else
10766   ac_check_lib_save_LIBS=$LIBS
10767 LIBS="-ldl  $LIBS"
10768 cat >conftest.$ac_ext <<_ACEOF
10769 /* confdefs.h.  */
10770 _ACEOF
10771 cat confdefs.h >>conftest.$ac_ext
10772 cat >>conftest.$ac_ext <<_ACEOF
10773 /* end confdefs.h.  */
10774
10775 /* Override any GCC internal prototype to avoid an error.
10776    Use char because int might match the return type of a GCC
10777    builtin and then its argument prototype would still apply.  */
10778 #ifdef __cplusplus
10779 extern "C"
10780 #endif
10781 char dlopen ();
10782 int
10783 main ()
10784 {
10785 return dlopen ();
10786   ;
10787   return 0;
10788 }
10789 _ACEOF
10790 rm -f conftest.$ac_objext conftest$ac_exeext
10791 if { (ac_try="$ac_link"
10792 case "(($ac_try" in
10793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10794   *) ac_try_echo=$ac_try;;
10795 esac
10796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10797   (eval "$ac_link") 2>conftest.er1
10798   ac_status=$?
10799   grep -v '^ *+' conftest.er1 >conftest.err
10800   rm -f conftest.er1
10801   cat conftest.err >&5
10802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10803   (exit $ac_status); } && {
10804          test -z "$ac_c_werror_flag" ||
10805          test ! -s conftest.err
10806        } && test -s conftest$ac_exeext &&
10807        $as_test_x conftest$ac_exeext; then
10808   ac_cv_lib_dl_dlopen=yes
10809 else
10810   echo "$as_me: failed program was:" >&5
10811 sed 's/^/| /' conftest.$ac_ext >&5
10812
10813         ac_cv_lib_dl_dlopen=no
10814 fi
10815
10816 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10817       conftest$ac_exeext conftest.$ac_ext
10818 LIBS=$ac_check_lib_save_LIBS
10819 fi
10820 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10821 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10822 if test $ac_cv_lib_dl_dlopen = yes; then
10823   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10824 else
10825   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10826 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10827 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10828   echo $ECHO_N "(cached) $ECHO_C" >&6
10829 else
10830   ac_check_lib_save_LIBS=$LIBS
10831 LIBS="-lsvld  $LIBS"
10832 cat >conftest.$ac_ext <<_ACEOF
10833 /* confdefs.h.  */
10834 _ACEOF
10835 cat confdefs.h >>conftest.$ac_ext
10836 cat >>conftest.$ac_ext <<_ACEOF
10837 /* end confdefs.h.  */
10838
10839 /* Override any GCC internal prototype to avoid an error.
10840    Use char because int might match the return type of a GCC
10841    builtin and then its argument prototype would still apply.  */
10842 #ifdef __cplusplus
10843 extern "C"
10844 #endif
10845 char dlopen ();
10846 int
10847 main ()
10848 {
10849 return dlopen ();
10850   ;
10851   return 0;
10852 }
10853 _ACEOF
10854 rm -f conftest.$ac_objext conftest$ac_exeext
10855 if { (ac_try="$ac_link"
10856 case "(($ac_try" in
10857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10858   *) ac_try_echo=$ac_try;;
10859 esac
10860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10861   (eval "$ac_link") 2>conftest.er1
10862   ac_status=$?
10863   grep -v '^ *+' conftest.er1 >conftest.err
10864   rm -f conftest.er1
10865   cat conftest.err >&5
10866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10867   (exit $ac_status); } && {
10868          test -z "$ac_c_werror_flag" ||
10869          test ! -s conftest.err
10870        } && test -s conftest$ac_exeext &&
10871        $as_test_x conftest$ac_exeext; then
10872   ac_cv_lib_svld_dlopen=yes
10873 else
10874   echo "$as_me: failed program was:" >&5
10875 sed 's/^/| /' conftest.$ac_ext >&5
10876
10877         ac_cv_lib_svld_dlopen=no
10878 fi
10879
10880 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10881       conftest$ac_exeext conftest.$ac_ext
10882 LIBS=$ac_check_lib_save_LIBS
10883 fi
10884 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10885 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10886 if test $ac_cv_lib_svld_dlopen = yes; then
10887   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10888 else
10889   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10890 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10891 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10892   echo $ECHO_N "(cached) $ECHO_C" >&6
10893 else
10894   ac_check_lib_save_LIBS=$LIBS
10895 LIBS="-ldld  $LIBS"
10896 cat >conftest.$ac_ext <<_ACEOF
10897 /* confdefs.h.  */
10898 _ACEOF
10899 cat confdefs.h >>conftest.$ac_ext
10900 cat >>conftest.$ac_ext <<_ACEOF
10901 /* end confdefs.h.  */
10902
10903 /* Override any GCC internal prototype to avoid an error.
10904    Use char because int might match the return type of a GCC
10905    builtin and then its argument prototype would still apply.  */
10906 #ifdef __cplusplus
10907 extern "C"
10908 #endif
10909 char dld_link ();
10910 int
10911 main ()
10912 {
10913 return dld_link ();
10914   ;
10915   return 0;
10916 }
10917 _ACEOF
10918 rm -f conftest.$ac_objext conftest$ac_exeext
10919 if { (ac_try="$ac_link"
10920 case "(($ac_try" in
10921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10922   *) ac_try_echo=$ac_try;;
10923 esac
10924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10925   (eval "$ac_link") 2>conftest.er1
10926   ac_status=$?
10927   grep -v '^ *+' conftest.er1 >conftest.err
10928   rm -f conftest.er1
10929   cat conftest.err >&5
10930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10931   (exit $ac_status); } && {
10932          test -z "$ac_c_werror_flag" ||
10933          test ! -s conftest.err
10934        } && test -s conftest$ac_exeext &&
10935        $as_test_x conftest$ac_exeext; then
10936   ac_cv_lib_dld_dld_link=yes
10937 else
10938   echo "$as_me: failed program was:" >&5
10939 sed 's/^/| /' conftest.$ac_ext >&5
10940
10941         ac_cv_lib_dld_dld_link=no
10942 fi
10943
10944 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10945       conftest$ac_exeext conftest.$ac_ext
10946 LIBS=$ac_check_lib_save_LIBS
10947 fi
10948 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10949 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10950 if test $ac_cv_lib_dld_dld_link = yes; then
10951   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10952 fi
10953
10954               
10955 fi
10956
10957             
10958 fi
10959
10960           
10961 fi
10962
10963         
10964 fi
10965
10966       
10967 fi
10968
10969     ;;
10970   esac
10971
10972   if test "x$lt_cv_dlopen" != xno; then
10973     enable_dlopen=yes
10974   else
10975     enable_dlopen=no
10976   fi
10977
10978   case $lt_cv_dlopen in
10979   dlopen)
10980     save_CPPFLAGS="$CPPFLAGS"
10981     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10982
10983     save_LDFLAGS="$LDFLAGS"
10984     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10985
10986     save_LIBS="$LIBS"
10987     LIBS="$lt_cv_dlopen_libs $LIBS"
10988
10989     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10990 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10991 if test "${lt_cv_dlopen_self+set}" = set; then
10992   echo $ECHO_N "(cached) $ECHO_C" >&6
10993 else
10994           if test "$cross_compiling" = yes; then :
10995   lt_cv_dlopen_self=cross
10996 else
10997   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10998   lt_status=$lt_dlunknown
10999   cat > conftest.$ac_ext <<EOF
11000 #line __oline__ "configure"
11001 #include "confdefs.h"
11002
11003 #if HAVE_DLFCN_H
11004 #include <dlfcn.h>
11005 #endif
11006
11007 #include <stdio.h>
11008
11009 #ifdef RTLD_GLOBAL
11010 #  define LT_DLGLOBAL           RTLD_GLOBAL
11011 #else
11012 #  ifdef DL_GLOBAL
11013 #    define LT_DLGLOBAL         DL_GLOBAL
11014 #  else
11015 #    define LT_DLGLOBAL         0
11016 #  endif
11017 #endif
11018
11019 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11020    find out it does not work in some platform. */
11021 #ifndef LT_DLLAZY_OR_NOW
11022 #  ifdef RTLD_LAZY
11023 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11024 #  else
11025 #    ifdef DL_LAZY
11026 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11027 #    else
11028 #      ifdef RTLD_NOW
11029 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11030 #      else
11031 #        ifdef DL_NOW
11032 #          define LT_DLLAZY_OR_NOW      DL_NOW
11033 #        else
11034 #          define LT_DLLAZY_OR_NOW      0
11035 #        endif
11036 #      endif
11037 #    endif
11038 #  endif
11039 #endif
11040
11041 #ifdef __cplusplus
11042 extern "C" void exit (int);
11043 #endif
11044
11045 void fnord() { int i=42;}
11046 int main ()
11047 {
11048   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11049   int status = $lt_dlunknown;
11050
11051   if (self)
11052     {
11053       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11054       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11055       /* dlclose (self); */
11056     }
11057   else
11058     puts (dlerror ());
11059
11060     exit (status);
11061 }
11062 EOF
11063   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11064   (eval $ac_link) 2>&5
11065   ac_status=$?
11066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11067   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11068     (./conftest; exit; ) >&5 2>/dev/null
11069     lt_status=$?
11070     case x$lt_status in
11071       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11072       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11073       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11074     esac
11075   else :
11076     # compilation failed
11077     lt_cv_dlopen_self=no
11078   fi
11079 fi
11080 rm -fr conftest*
11081
11082     
11083 fi
11084 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11085 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
11086
11087     if test "x$lt_cv_dlopen_self" = xyes; then
11088       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11089       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11090 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
11091 if test "${lt_cv_dlopen_self_static+set}" = set; then
11092   echo $ECHO_N "(cached) $ECHO_C" >&6
11093 else
11094           if test "$cross_compiling" = yes; then :
11095   lt_cv_dlopen_self_static=cross
11096 else
11097   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11098   lt_status=$lt_dlunknown
11099   cat > conftest.$ac_ext <<EOF
11100 #line __oline__ "configure"
11101 #include "confdefs.h"
11102
11103 #if HAVE_DLFCN_H
11104 #include <dlfcn.h>
11105 #endif
11106
11107 #include <stdio.h>
11108
11109 #ifdef RTLD_GLOBAL
11110 #  define LT_DLGLOBAL           RTLD_GLOBAL
11111 #else
11112 #  ifdef DL_GLOBAL
11113 #    define LT_DLGLOBAL         DL_GLOBAL
11114 #  else
11115 #    define LT_DLGLOBAL         0
11116 #  endif
11117 #endif
11118
11119 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11120    find out it does not work in some platform. */
11121 #ifndef LT_DLLAZY_OR_NOW
11122 #  ifdef RTLD_LAZY
11123 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11124 #  else
11125 #    ifdef DL_LAZY
11126 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11127 #    else
11128 #      ifdef RTLD_NOW
11129 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11130 #      else
11131 #        ifdef DL_NOW
11132 #          define LT_DLLAZY_OR_NOW      DL_NOW
11133 #        else
11134 #          define LT_DLLAZY_OR_NOW      0
11135 #        endif
11136 #      endif
11137 #    endif
11138 #  endif
11139 #endif
11140
11141 #ifdef __cplusplus
11142 extern "C" void exit (int);
11143 #endif
11144
11145 void fnord() { int i=42;}
11146 int main ()
11147 {
11148   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11149   int status = $lt_dlunknown;
11150
11151   if (self)
11152     {
11153       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11154       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11155       /* dlclose (self); */
11156     }
11157   else
11158     puts (dlerror ());
11159
11160     exit (status);
11161 }
11162 EOF
11163   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11164   (eval $ac_link) 2>&5
11165   ac_status=$?
11166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11167   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11168     (./conftest; exit; ) >&5 2>/dev/null
11169     lt_status=$?
11170     case x$lt_status in
11171       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11172       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11173       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11174     esac
11175   else :
11176     # compilation failed
11177     lt_cv_dlopen_self_static=no
11178   fi
11179 fi
11180 rm -fr conftest*
11181
11182       
11183 fi
11184 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11185 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
11186     fi
11187
11188     CPPFLAGS="$save_CPPFLAGS"
11189     LDFLAGS="$save_LDFLAGS"
11190     LIBS="$save_LIBS"
11191     ;;
11192   esac
11193
11194   case $lt_cv_dlopen_self in
11195   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11196   *) enable_dlopen_self=unknown ;;
11197   esac
11198
11199   case $lt_cv_dlopen_self_static in
11200   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11201   *) enable_dlopen_self_static=unknown ;;
11202   esac
11203 fi
11204
11205
11206 # Report which library types will actually be built
11207 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11208 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11209 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
11210 echo "${ECHO_T}$can_build_shared" >&6; }
11211
11212 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11213 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11214 test "$can_build_shared" = "no" && enable_shared=no
11215
11216 # On AIX, shared libraries and static libraries use the same namespace, and
11217 # are all built from PIC.
11218 case $host_os in
11219 aix3*)
11220   test "$enable_shared" = yes && enable_static=no
11221   if test -n "$RANLIB"; then
11222     archive_cmds="$archive_cmds~\$RANLIB \$lib"
11223     postinstall_cmds='$RANLIB $lib'
11224   fi
11225   ;;
11226
11227 aix4* | aix5*)
11228   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11229     test "$enable_shared" = yes && enable_static=no
11230   fi
11231     ;;
11232 esac
11233 { echo "$as_me:$LINENO: result: $enable_shared" >&5
11234 echo "${ECHO_T}$enable_shared" >&6; }
11235
11236 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11237 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11238 # Make sure either enable_shared or enable_static is yes.
11239 test "$enable_shared" = yes || enable_static=yes
11240 { echo "$as_me:$LINENO: result: $enable_static" >&5
11241 echo "${ECHO_T}$enable_static" >&6; }
11242
11243 # The else clause should only fire when bootstrapping the
11244 # libtool distribution, otherwise you forgot to ship ltmain.sh
11245 # with your package, and you will get complaints that there are
11246 # no rules to generate ltmain.sh.
11247 if test -f "$ltmain"; then
11248   # See if we are running on zsh, and set the options which allow our commands through
11249   # without removal of \ escapes.
11250   if test -n "${ZSH_VERSION+set}" ; then
11251     setopt NO_GLOB_SUBST
11252   fi
11253   # Now quote all the things that may contain metacharacters while being
11254   # careful not to overquote the AC_SUBSTed values.  We take copies of the
11255   # variables and quote the copies for generation of the libtool script.
11256   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
11257     SED SHELL STRIP \
11258     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11259     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11260     deplibs_check_method reload_flag reload_cmds need_locks \
11261     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11262     lt_cv_sys_global_symbol_to_c_name_address \
11263     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11264     old_postinstall_cmds old_postuninstall_cmds \
11265     compiler \
11266     CC \
11267     LD \
11268     lt_prog_compiler_wl \
11269     lt_prog_compiler_pic \
11270     lt_prog_compiler_static \
11271     lt_prog_compiler_no_builtin_flag \
11272     export_dynamic_flag_spec \
11273     thread_safe_flag_spec \
11274     whole_archive_flag_spec \
11275     enable_shared_with_static_runtimes \
11276     old_archive_cmds \
11277     old_archive_from_new_cmds \
11278     predep_objects \
11279     postdep_objects \
11280     predeps \
11281     postdeps \
11282     compiler_lib_search_path \
11283     archive_cmds \
11284     archive_expsym_cmds \
11285     postinstall_cmds \
11286     postuninstall_cmds \
11287     old_archive_from_expsyms_cmds \
11288     allow_undefined_flag \
11289     no_undefined_flag \
11290     export_symbols_cmds \
11291     hardcode_libdir_flag_spec \
11292     hardcode_libdir_flag_spec_ld \
11293     hardcode_libdir_separator \
11294     hardcode_automatic \
11295     module_cmds \
11296     module_expsym_cmds \
11297     lt_cv_prog_compiler_c_o \
11298     exclude_expsyms \
11299     include_expsyms; do
11300
11301     case $var in
11302     old_archive_cmds | \
11303     old_archive_from_new_cmds | \
11304     archive_cmds | \
11305     archive_expsym_cmds | \
11306     module_cmds | \
11307     module_expsym_cmds | \
11308     old_archive_from_expsyms_cmds | \
11309     export_symbols_cmds | \
11310     extract_expsyms_cmds | reload_cmds | finish_cmds | \
11311     postinstall_cmds | postuninstall_cmds | \
11312     old_postinstall_cmds | old_postuninstall_cmds | \
11313     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11314       # Double-quote double-evaled strings.
11315       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11316       ;;
11317     *)
11318       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11319       ;;
11320     esac
11321   done
11322
11323   case $lt_echo in
11324   *'\$0 --fallback-echo"')
11325     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11326     ;;
11327   esac
11328
11329 cfgfile="${ofile}T"
11330   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11331   $rm -f "$cfgfile"
11332   { echo "$as_me:$LINENO: creating $ofile" >&5
11333 echo "$as_me: creating $ofile" >&6;}
11334
11335   cat <<__EOF__ >> "$cfgfile"
11336 #! $SHELL
11337
11338 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11339 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11340 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11341 #
11342 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11343 # Free Software Foundation, Inc.
11344 #
11345 # This file is part of GNU Libtool:
11346 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11347 #
11348 # This program is free software; you can redistribute it and/or modify
11349 # it under the terms of the GNU General Public License as published by
11350 # the Free Software Foundation; either version 2 of the License, or
11351 # (at your option) any later version.
11352 #
11353 # This program is distributed in the hope that it will be useful, but
11354 # WITHOUT ANY WARRANTY; without even the implied warranty of
11355 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11356 # General Public License for more details.
11357 #
11358 # You should have received a copy of the GNU General Public License
11359 # along with this program; if not, write to the Free Software
11360 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11361 #
11362 # As a special exception to the GNU General Public License, if you
11363 # distribute this file as part of a program that contains a
11364 # configuration script generated by Autoconf, you may include it under
11365 # the same distribution terms that you use for the rest of that program.
11366
11367 # A sed program that does not truncate output.
11368 SED=$lt_SED
11369
11370 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11371 Xsed="$SED -e 1s/^X//"
11372
11373 # The HP-UX ksh and POSIX shell print the target directory to stdout
11374 # if CDPATH is set.
11375 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11376
11377 # The names of the tagged configurations supported by this script.
11378 available_tags=
11379
11380 # ### BEGIN LIBTOOL CONFIG
11381
11382 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11383
11384 # Shell to use when invoking shell scripts.
11385 SHELL=$lt_SHELL
11386
11387 # Whether or not to build shared libraries.
11388 build_libtool_libs=$enable_shared
11389
11390 # Whether or not to build static libraries.
11391 build_old_libs=$enable_static
11392
11393 # Whether or not to add -lc for building shared libraries.
11394 build_libtool_need_lc=$archive_cmds_need_lc
11395
11396 # Whether or not to disallow shared libs when runtime libs are static
11397 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11398
11399 # Whether or not to optimize for fast installation.
11400 fast_install=$enable_fast_install
11401
11402 # The host system.
11403 host_alias=$host_alias
11404 host=$host
11405 host_os=$host_os
11406
11407 # The build system.
11408 build_alias=$build_alias
11409 build=$build
11410 build_os=$build_os
11411
11412 # An echo program that does not interpret backslashes.
11413 echo=$lt_echo
11414
11415 # The archiver.
11416 AR=$lt_AR
11417 AR_FLAGS=$lt_AR_FLAGS
11418
11419 # A C compiler.
11420 LTCC=$lt_LTCC
11421
11422 # LTCC compiler flags.
11423 LTCFLAGS=$lt_LTCFLAGS
11424
11425 # A language-specific compiler.
11426 CC=$lt_compiler
11427
11428 # Is the compiler the GNU C compiler?
11429 with_gcc=$GCC
11430
11431 # An ERE matcher.
11432 EGREP=$lt_EGREP
11433
11434 # The linker used to build libraries.
11435 LD=$lt_LD
11436
11437 # Whether we need hard or soft links.
11438 LN_S=$lt_LN_S
11439
11440 # A BSD-compatible nm program.
11441 NM=$lt_NM
11442
11443 # A symbol stripping program
11444 STRIP=$lt_STRIP
11445
11446 # Used to examine libraries when file_magic_cmd begins "file"
11447 MAGIC_CMD=$MAGIC_CMD
11448
11449 # Used on cygwin: DLL creation program.
11450 DLLTOOL="$DLLTOOL"
11451
11452 # Used on cygwin: object dumper.
11453 OBJDUMP="$OBJDUMP"
11454
11455 # Used on cygwin: assembler.
11456 AS="$AS"
11457
11458 # The name of the directory that contains temporary libtool files.
11459 objdir=$objdir
11460
11461 # How to create reloadable object files.
11462 reload_flag=$lt_reload_flag
11463 reload_cmds=$lt_reload_cmds
11464
11465 # How to pass a linker flag through the compiler.
11466 wl=$lt_lt_prog_compiler_wl
11467
11468 # Object file suffix (normally "o").
11469 objext="$ac_objext"
11470
11471 # Old archive suffix (normally "a").
11472 libext="$libext"
11473
11474 # Shared library suffix (normally ".so").
11475 shrext_cmds='$shrext_cmds'
11476
11477 # Executable file suffix (normally "").
11478 exeext="$exeext"
11479
11480 # Additional compiler flags for building library objects.
11481 pic_flag=$lt_lt_prog_compiler_pic
11482 pic_mode=$pic_mode
11483
11484 # What is the maximum length of a command?
11485 max_cmd_len=$lt_cv_sys_max_cmd_len
11486
11487 # Does compiler simultaneously support -c and -o options?
11488 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11489
11490 # Must we lock files when doing compilation?
11491 need_locks=$lt_need_locks
11492
11493 # Do we need the lib prefix for modules?
11494 need_lib_prefix=$need_lib_prefix
11495
11496 # Do we need a version for libraries?
11497 need_version=$need_version
11498
11499 # Whether dlopen is supported.
11500 dlopen_support=$enable_dlopen
11501
11502 # Whether dlopen of programs is supported.
11503 dlopen_self=$enable_dlopen_self
11504
11505 # Whether dlopen of statically linked programs is supported.
11506 dlopen_self_static=$enable_dlopen_self_static
11507
11508 # Compiler flag to prevent dynamic linking.
11509 link_static_flag=$lt_lt_prog_compiler_static
11510
11511 # Compiler flag to turn off builtin functions.
11512 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11513
11514 # Compiler flag to allow reflexive dlopens.
11515 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11516
11517 # Compiler flag to generate shared objects directly from archives.
11518 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11519
11520 # Compiler flag to generate thread-safe objects.
11521 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11522
11523 # Library versioning type.
11524 version_type=$version_type
11525
11526 # Format of library name prefix.
11527 libname_spec=$lt_libname_spec
11528
11529 # List of archive names.  First name is the real one, the rest are links.
11530 # The last name is the one that the linker finds with -lNAME.
11531 library_names_spec=$lt_library_names_spec
11532
11533 # The coded name of the library, if different from the real name.
11534 soname_spec=$lt_soname_spec
11535
11536 # Commands used to build and install an old-style archive.
11537 RANLIB=$lt_RANLIB
11538 old_archive_cmds=$lt_old_archive_cmds
11539 old_postinstall_cmds=$lt_old_postinstall_cmds
11540 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11541
11542 # Create an old-style archive from a shared archive.
11543 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11544
11545 # Create a temporary old-style archive to link instead of a shared archive.
11546 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11547
11548 # Commands used to build and install a shared archive.
11549 archive_cmds=$lt_archive_cmds
11550 archive_expsym_cmds=$lt_archive_expsym_cmds
11551 postinstall_cmds=$lt_postinstall_cmds
11552 postuninstall_cmds=$lt_postuninstall_cmds
11553
11554 # Commands used to build a loadable module (assumed same as above if empty)
11555 module_cmds=$lt_module_cmds
11556 module_expsym_cmds=$lt_module_expsym_cmds
11557
11558 # Commands to strip libraries.
11559 old_striplib=$lt_old_striplib
11560 striplib=$lt_striplib
11561
11562 # Dependencies to place before the objects being linked to create a
11563 # shared library.
11564 predep_objects=$lt_predep_objects
11565
11566 # Dependencies to place after the objects being linked to create a
11567 # shared library.
11568 postdep_objects=$lt_postdep_objects
11569
11570 # Dependencies to place before the objects being linked to create a
11571 # shared library.
11572 predeps=$lt_predeps
11573
11574 # Dependencies to place after the objects being linked to create a
11575 # shared library.
11576 postdeps=$lt_postdeps
11577
11578 # The library search path used internally by the compiler when linking
11579 # a shared library.
11580 compiler_lib_search_path=$lt_compiler_lib_search_path
11581
11582 # Method to check whether dependent libraries are shared objects.
11583 deplibs_check_method=$lt_deplibs_check_method
11584
11585 # Command to use when deplibs_check_method == file_magic.
11586 file_magic_cmd=$lt_file_magic_cmd
11587
11588 # Flag that allows shared libraries with undefined symbols to be built.
11589 allow_undefined_flag=$lt_allow_undefined_flag
11590
11591 # Flag that forces no undefined symbols.
11592 no_undefined_flag=$lt_no_undefined_flag
11593
11594 # Commands used to finish a libtool library installation in a directory.
11595 finish_cmds=$lt_finish_cmds
11596
11597 # Same as above, but a single script fragment to be evaled but not shown.
11598 finish_eval=$lt_finish_eval
11599
11600 # Take the output of nm and produce a listing of raw symbols and C names.
11601 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11602
11603 # Transform the output of nm in a proper C declaration
11604 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11605
11606 # Transform the output of nm in a C name address pair
11607 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11608
11609 # This is the shared library runtime path variable.
11610 runpath_var=$runpath_var
11611
11612 # This is the shared library path variable.
11613 shlibpath_var=$shlibpath_var
11614
11615 # Is shlibpath searched before the hard-coded library search path?
11616 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11617
11618 # How to hardcode a shared library path into an executable.
11619 hardcode_action=$hardcode_action
11620
11621 # Whether we should hardcode library paths into libraries.
11622 hardcode_into_libs=$hardcode_into_libs
11623
11624 # Flag to hardcode \$libdir into a binary during linking.
11625 # This must work even if \$libdir does not exist.
11626 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11627
11628 # If ld is used when linking, flag to hardcode \$libdir into
11629 # a binary during linking. This must work even if \$libdir does
11630 # not exist.
11631 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11632
11633 # Whether we need a single -rpath flag with a separated argument.
11634 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11635
11636 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11637 # resulting binary.
11638 hardcode_direct=$hardcode_direct
11639
11640 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11641 # resulting binary.
11642 hardcode_minus_L=$hardcode_minus_L
11643
11644 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11645 # the resulting binary.
11646 hardcode_shlibpath_var=$hardcode_shlibpath_var
11647
11648 # Set to yes if building a shared library automatically hardcodes DIR into the library
11649 # and all subsequent libraries and executables linked against it.
11650 hardcode_automatic=$hardcode_automatic
11651
11652 # Variables whose values should be saved in libtool wrapper scripts and
11653 # restored at relink time.
11654 variables_saved_for_relink="$variables_saved_for_relink"
11655
11656 # Whether libtool must link a program against all its dependency libraries.
11657 link_all_deplibs=$link_all_deplibs
11658
11659 # Compile-time system search path for libraries
11660 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11661
11662 # Run-time system search path for libraries
11663 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11664
11665 # Fix the shell variable \$srcfile for the compiler.
11666 fix_srcfile_path="$fix_srcfile_path"
11667
11668 # Set to yes if exported symbols are required.
11669 always_export_symbols=$always_export_symbols
11670
11671 # The commands to list exported symbols.
11672 export_symbols_cmds=$lt_export_symbols_cmds
11673
11674 # The commands to extract the exported symbol list from a shared archive.
11675 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11676
11677 # Symbols that should not be listed in the preloaded symbols.
11678 exclude_expsyms=$lt_exclude_expsyms
11679
11680 # Symbols that must always be exported.
11681 include_expsyms=$lt_include_expsyms
11682
11683 # ### END LIBTOOL CONFIG
11684
11685 __EOF__
11686
11687
11688   case $host_os in
11689   aix3*)
11690     cat <<\EOF >> "$cfgfile"
11691
11692 # AIX sometimes has problems with the GCC collect2 program.  For some
11693 # reason, if we set the COLLECT_NAMES environment variable, the problems
11694 # vanish in a puff of smoke.
11695 if test "X${COLLECT_NAMES+set}" != Xset; then
11696   COLLECT_NAMES=
11697   export COLLECT_NAMES
11698 fi
11699 EOF
11700     ;;
11701   esac
11702
11703   # We use sed instead of cat because bash on DJGPP gets confused if
11704   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11705   # text mode, it properly converts lines to CR/LF.  This bash problem
11706   # is reportedly fixed, but why not run on old versions too?
11707   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11708
11709   mv -f "$cfgfile" "$ofile" || \
11710     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11711   chmod +x "$ofile"
11712
11713 else
11714   # If there is no Makefile yet, we rely on a make rule to execute
11715   # `config.status --recheck' to rerun these tests and create the
11716   # libtool script then.
11717   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11718   if test -f "$ltmain_in"; then
11719     test -f Makefile && make "$ltmain"
11720   fi
11721 fi
11722
11723
11724 ac_ext=c
11725 ac_cpp='$CPP $CPPFLAGS'
11726 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11727 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11728 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11729
11730 CC="$lt_save_CC"
11731
11732
11733 # Check whether --with-tags was given.
11734 if test "${with_tags+set}" = set; then
11735   withval=$with_tags; tagnames="$withval"
11736 fi
11737
11738
11739 if test -f "$ltmain" && test -n "$tagnames"; then
11740   if test ! -f "${ofile}"; then
11741     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11742 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11743   fi
11744
11745   if test -z "$LTCC"; then
11746     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11747     if test -z "$LTCC"; then
11748       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11749 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11750     else
11751       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11752 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11753     fi
11754   fi
11755   if test -z "$LTCFLAGS"; then
11756     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11757   fi
11758
11759   # Extract list of available tagged configurations in $ofile.
11760   # Note that this assumes the entire list is on one line.
11761   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11762
11763   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11764   for tagname in $tagnames; do
11765     IFS="$lt_save_ifs"
11766     # Check whether tagname contains only valid characters
11767     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11768     "") ;;
11769     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11770 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11771    { (exit 1); exit 1; }; }
11772         ;;
11773     esac
11774
11775     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11776     then
11777       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11778 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11779    { (exit 1); exit 1; }; }
11780     fi
11781
11782     # Update the list of available tags.
11783     if test -n "$tagname"; then
11784       echo appending configuration tag \"$tagname\" to $ofile
11785
11786       case $tagname in
11787       CXX)
11788         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11789             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11790             (test "X$CXX" != "Xg++"))) ; then
11791           ac_ext=cpp
11792 ac_cpp='$CXXCPP $CPPFLAGS'
11793 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11794 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11795 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11796
11797
11798
11799
11800 archive_cmds_need_lc_CXX=no
11801 allow_undefined_flag_CXX=
11802 always_export_symbols_CXX=no
11803 archive_expsym_cmds_CXX=
11804 export_dynamic_flag_spec_CXX=
11805 hardcode_direct_CXX=no
11806 hardcode_libdir_flag_spec_CXX=
11807 hardcode_libdir_flag_spec_ld_CXX=
11808 hardcode_libdir_separator_CXX=
11809 hardcode_minus_L_CXX=no
11810 hardcode_shlibpath_var_CXX=unsupported
11811 hardcode_automatic_CXX=no
11812 module_cmds_CXX=
11813 module_expsym_cmds_CXX=
11814 link_all_deplibs_CXX=unknown
11815 old_archive_cmds_CXX=$old_archive_cmds
11816 no_undefined_flag_CXX=
11817 whole_archive_flag_spec_CXX=
11818 enable_shared_with_static_runtimes_CXX=no
11819
11820 # Dependencies to place before and after the object being linked:
11821 predep_objects_CXX=
11822 postdep_objects_CXX=
11823 predeps_CXX=
11824 postdeps_CXX=
11825 compiler_lib_search_path_CXX=
11826
11827 # Source file extension for C++ test sources.
11828 ac_ext=cpp
11829
11830 # Object file extension for compiled C++ test sources.
11831 objext=o
11832 objext_CXX=$objext
11833
11834 # Code to be used in simple compile tests
11835 lt_simple_compile_test_code="int some_variable = 0;\n"
11836
11837 # Code to be used in simple link tests
11838 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
11839
11840 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11841
11842 # If no C compiler was specified, use CC.
11843 LTCC=${LTCC-"$CC"}
11844
11845 # If no C compiler flags were specified, use CFLAGS.
11846 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11847
11848 # Allow CC to be a program name with arguments.
11849 compiler=$CC
11850
11851
11852 # save warnings/boilerplate of simple test code
11853 ac_outfile=conftest.$ac_objext
11854 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11855 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11856 _lt_compiler_boilerplate=`cat conftest.err`
11857 $rm conftest*
11858
11859 ac_outfile=conftest.$ac_objext
11860 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11861 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11862 _lt_linker_boilerplate=`cat conftest.err`
11863 $rm conftest*
11864
11865
11866 # Allow CC to be a program name with arguments.
11867 lt_save_CC=$CC
11868 lt_save_LD=$LD
11869 lt_save_GCC=$GCC
11870 GCC=$GXX
11871 lt_save_with_gnu_ld=$with_gnu_ld
11872 lt_save_path_LD=$lt_cv_path_LD
11873 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11874   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11875 else
11876   $as_unset lt_cv_prog_gnu_ld
11877 fi
11878 if test -n "${lt_cv_path_LDCXX+set}"; then
11879   lt_cv_path_LD=$lt_cv_path_LDCXX
11880 else
11881   $as_unset lt_cv_path_LD
11882 fi
11883 test -z "${LDCXX+set}" || LD=$LDCXX
11884 CC=${CXX-"c++"}
11885 compiler=$CC
11886 compiler_CXX=$CC
11887 for cc_temp in $compiler""; do
11888   case $cc_temp in
11889     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11890     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11891     \-*) ;;
11892     *) break;;
11893   esac
11894 done
11895 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11896
11897
11898 # We don't want -fno-exception wen compiling C++ code, so set the
11899 # no_builtin_flag separately
11900 if test "$GXX" = yes; then
11901   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11902 else
11903   lt_prog_compiler_no_builtin_flag_CXX=
11904 fi
11905
11906 if test "$GXX" = yes; then
11907   # Set up default GNU C++ configuration
11908
11909   
11910 # Check whether --with-gnu-ld was given.
11911 if test "${with_gnu_ld+set}" = set; then
11912   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11913 else
11914   with_gnu_ld=no
11915 fi
11916
11917 ac_prog=ld
11918 if test "$GCC" = yes; then
11919   # Check if gcc -print-prog-name=ld gives a path.
11920   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11921 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11922   case $host in
11923   *-*-mingw*)
11924     # gcc leaves a trailing carriage return which upsets mingw
11925     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11926   *)
11927     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11928   esac
11929   case $ac_prog in
11930     # Accept absolute paths.
11931     [\\/]* | ?:[\\/]*)
11932       re_direlt='/[^/][^/]*/\.\./'
11933       # Canonicalize the pathname of ld
11934       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11935       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11936         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11937       done
11938       test -z "$LD" && LD="$ac_prog"
11939       ;;
11940   "")
11941     # If it fails, then pretend we aren't using GCC.
11942     ac_prog=ld
11943     ;;
11944   *)
11945     # If it is relative, then search for the first ld in PATH.
11946     with_gnu_ld=unknown
11947     ;;
11948   esac
11949 elif test "$with_gnu_ld" = yes; then
11950   { echo "$as_me:$LINENO: checking for GNU ld" >&5
11951 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11952 else
11953   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11954 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11955 fi
11956 if test "${lt_cv_path_LD+set}" = set; then
11957   echo $ECHO_N "(cached) $ECHO_C" >&6
11958 else
11959   if test -z "$LD"; then
11960   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11961   for ac_dir in $PATH; do
11962     IFS="$lt_save_ifs"
11963     test -z "$ac_dir" && ac_dir=.
11964     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11965       lt_cv_path_LD="$ac_dir/$ac_prog"
11966       # Check to see if the program is GNU ld.  I'd rather use --version,
11967       # but apparently some variants of GNU ld only accept -v.
11968       # Break only if it was the GNU/non-GNU ld that we prefer.
11969       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11970       *GNU* | *'with BFD'*)
11971         test "$with_gnu_ld" != no && break
11972         ;;
11973       *)
11974         test "$with_gnu_ld" != yes && break
11975         ;;
11976       esac
11977     fi
11978   done
11979   IFS="$lt_save_ifs"
11980 else
11981   lt_cv_path_LD="$LD" # Let the user override the test with a path.
11982 fi
11983 fi
11984
11985 LD="$lt_cv_path_LD"
11986 if test -n "$LD"; then
11987   { echo "$as_me:$LINENO: result: $LD" >&5
11988 echo "${ECHO_T}$LD" >&6; }
11989 else
11990   { echo "$as_me:$LINENO: result: no" >&5
11991 echo "${ECHO_T}no" >&6; }
11992 fi
11993 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11994 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11995    { (exit 1); exit 1; }; }
11996 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11997 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11998 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11999   echo $ECHO_N "(cached) $ECHO_C" >&6
12000 else
12001   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12002 case `$LD -v 2>&1 </dev/null` in
12003 *GNU* | *'with BFD'*)
12004   lt_cv_prog_gnu_ld=yes
12005   ;;
12006 *)
12007   lt_cv_prog_gnu_ld=no
12008   ;;
12009 esac
12010 fi
12011 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12012 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12013 with_gnu_ld=$lt_cv_prog_gnu_ld
12014
12015
12016
12017   # Check if GNU C++ uses GNU ld as the underlying linker, since the
12018   # archiving commands below assume that GNU ld is being used.
12019   if test "$with_gnu_ld" = yes; then
12020     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12021     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'
12022
12023     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12024     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12025
12026     # If archive_cmds runs LD, not CC, wlarc should be empty
12027     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12028     #     investigate it a little bit more. (MM)
12029     wlarc='${wl}'
12030
12031     # ancient GNU ld didn't support --whole-archive et. al.
12032     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
12033         grep 'no-whole-archive' > /dev/null; then
12034       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12035     else
12036       whole_archive_flag_spec_CXX=
12037     fi
12038   else
12039     with_gnu_ld=no
12040     wlarc=
12041
12042     # A generic and very simple default shared library creation
12043     # command for GNU C++ for the case where it uses the native
12044     # linker, instead of GNU ld.  If possible, this setting should
12045     # overridden to take advantage of the native linker features on
12046     # the platform it is being used on.
12047     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12048   fi
12049
12050   # Commands to make compiler produce verbose output that lists
12051   # what "hidden" libraries, object files and flags are used when
12052   # linking a shared library.
12053   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12054
12055 else
12056   GXX=no
12057   with_gnu_ld=no
12058   wlarc=
12059 fi
12060
12061 # PORTME: fill in a description of your system's C++ link characteristics
12062 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12063 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12064 ld_shlibs_CXX=yes
12065 case $host_os in
12066   aix3*)
12067     # FIXME: insert proper C++ library support
12068     ld_shlibs_CXX=no
12069     ;;
12070   aix4* | aix5*)
12071     if test "$host_cpu" = ia64; then
12072       # On IA64, the linker does run time linking by default, so we don't
12073       # have to do anything special.
12074       aix_use_runtimelinking=no
12075       exp_sym_flag='-Bexport'
12076       no_entry_flag=""
12077     else
12078       aix_use_runtimelinking=no
12079
12080       # Test if we are trying to use run time linking or normal
12081       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12082       # need to do runtime linking.
12083       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12084         for ld_flag in $LDFLAGS; do
12085           case $ld_flag in
12086           *-brtl*)
12087             aix_use_runtimelinking=yes
12088             break
12089             ;;
12090           esac
12091         done
12092         ;;
12093       esac
12094
12095       exp_sym_flag='-bexport'
12096       no_entry_flag='-bnoentry'
12097     fi
12098
12099     # When large executables or shared objects are built, AIX ld can
12100     # have problems creating the table of contents.  If linking a library
12101     # or program results in "error TOC overflow" add -mminimal-toc to
12102     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12103     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12104
12105     archive_cmds_CXX=''
12106     hardcode_direct_CXX=yes
12107     hardcode_libdir_separator_CXX=':'
12108     link_all_deplibs_CXX=yes
12109
12110     if test "$GXX" = yes; then
12111       case $host_os in aix4.[012]|aix4.[012].*)
12112       # We only want to do this on AIX 4.2 and lower, the check
12113       # below for broken collect2 doesn't work under 4.3+
12114         collect2name=`${CC} -print-prog-name=collect2`
12115         if test -f "$collect2name" && \
12116            strings "$collect2name" | grep resolve_lib_name >/dev/null
12117         then
12118           # We have reworked collect2
12119           hardcode_direct_CXX=yes
12120         else
12121           # We have old collect2
12122           hardcode_direct_CXX=unsupported
12123           # It fails to find uninstalled libraries when the uninstalled
12124           # path is not listed in the libpath.  Setting hardcode_minus_L
12125           # to unsupported forces relinking
12126           hardcode_minus_L_CXX=yes
12127           hardcode_libdir_flag_spec_CXX='-L$libdir'
12128           hardcode_libdir_separator_CXX=
12129         fi
12130         ;;
12131       esac
12132       shared_flag='-shared'
12133       if test "$aix_use_runtimelinking" = yes; then
12134         shared_flag="$shared_flag "'${wl}-G'
12135       fi
12136     else
12137       # not using gcc
12138       if test "$host_cpu" = ia64; then
12139         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12140         # chokes on -Wl,-G. The following line is correct:
12141         shared_flag='-G'
12142       else
12143         if test "$aix_use_runtimelinking" = yes; then
12144           shared_flag='${wl}-G'
12145         else
12146           shared_flag='${wl}-bM:SRE'
12147         fi
12148       fi
12149     fi
12150
12151     # It seems that -bexpall does not export symbols beginning with
12152     # underscore (_), so it is better to generate a list of symbols to export.
12153     always_export_symbols_CXX=yes
12154     if test "$aix_use_runtimelinking" = yes; then
12155       # Warning - without using the other runtime loading flags (-brtl),
12156       # -berok will link without error, but may produce a broken library.
12157       allow_undefined_flag_CXX='-berok'
12158       # Determine the default libpath from the value encoded in an empty executable.
12159       cat >conftest.$ac_ext <<_ACEOF
12160 /* confdefs.h.  */
12161 _ACEOF
12162 cat confdefs.h >>conftest.$ac_ext
12163 cat >>conftest.$ac_ext <<_ACEOF
12164 /* end confdefs.h.  */
12165
12166 int
12167 main ()
12168 {
12169
12170   ;
12171   return 0;
12172 }
12173 _ACEOF
12174 rm -f conftest.$ac_objext conftest$ac_exeext
12175 if { (ac_try="$ac_link"
12176 case "(($ac_try" in
12177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12178   *) ac_try_echo=$ac_try;;
12179 esac
12180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12181   (eval "$ac_link") 2>conftest.er1
12182   ac_status=$?
12183   grep -v '^ *+' conftest.er1 >conftest.err
12184   rm -f conftest.er1
12185   cat conftest.err >&5
12186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12187   (exit $ac_status); } && {
12188          test -z "$ac_cxx_werror_flag" ||
12189          test ! -s conftest.err
12190        } && test -s conftest$ac_exeext &&
12191        $as_test_x conftest$ac_exeext; then
12192   
12193 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12194 }'`
12195 # Check for a 64-bit object if we didn't find anything.
12196 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12197 }'`; fi
12198 else
12199   echo "$as_me: failed program was:" >&5
12200 sed 's/^/| /' conftest.$ac_ext >&5
12201
12202         
12203 fi
12204
12205 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12206       conftest$ac_exeext conftest.$ac_ext
12207 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12208
12209       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12210
12211       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"
12212      else
12213       if test "$host_cpu" = ia64; then
12214         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12215         allow_undefined_flag_CXX="-z nodefs"
12216         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"
12217       else
12218         # Determine the default libpath from the value encoded in an empty executable.
12219         cat >conftest.$ac_ext <<_ACEOF
12220 /* confdefs.h.  */
12221 _ACEOF
12222 cat confdefs.h >>conftest.$ac_ext
12223 cat >>conftest.$ac_ext <<_ACEOF
12224 /* end confdefs.h.  */
12225
12226 int
12227 main ()
12228 {
12229
12230   ;
12231   return 0;
12232 }
12233 _ACEOF
12234 rm -f conftest.$ac_objext conftest$ac_exeext
12235 if { (ac_try="$ac_link"
12236 case "(($ac_try" in
12237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12238   *) ac_try_echo=$ac_try;;
12239 esac
12240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12241   (eval "$ac_link") 2>conftest.er1
12242   ac_status=$?
12243   grep -v '^ *+' conftest.er1 >conftest.err
12244   rm -f conftest.er1
12245   cat conftest.err >&5
12246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12247   (exit $ac_status); } && {
12248          test -z "$ac_cxx_werror_flag" ||
12249          test ! -s conftest.err
12250        } && test -s conftest$ac_exeext &&
12251        $as_test_x conftest$ac_exeext; then
12252   
12253 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12254 }'`
12255 # Check for a 64-bit object if we didn't find anything.
12256 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12257 }'`; fi
12258 else
12259   echo "$as_me: failed program was:" >&5
12260 sed 's/^/| /' conftest.$ac_ext >&5
12261
12262         
12263 fi
12264
12265 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12266       conftest$ac_exeext conftest.$ac_ext
12267 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12268
12269         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12270         # Warning - without using the other run time loading flags,
12271         # -berok will link without error, but may produce a broken library.
12272         no_undefined_flag_CXX=' ${wl}-bernotok'
12273         allow_undefined_flag_CXX=' ${wl}-berok'
12274         # Exported symbols can be pulled into shared objects from archives
12275         whole_archive_flag_spec_CXX='$convenience'
12276         archive_cmds_need_lc_CXX=yes
12277         # This is similar to how AIX traditionally builds its shared libraries.
12278         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'
12279       fi
12280     fi
12281     ;;
12282
12283   beos*)
12284     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12285       allow_undefined_flag_CXX=unsupported
12286       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12287       # support --undefined.  This deserves some investigation.  FIXME
12288       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12289     else
12290       ld_shlibs_CXX=no
12291     fi
12292     ;;
12293
12294   chorus*)
12295     case $cc_basename in
12296       *)
12297         # FIXME: insert proper C++ library support
12298         ld_shlibs_CXX=no
12299         ;;
12300     esac
12301     ;;
12302
12303   cygwin* | mingw* | pw32*)
12304     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12305     # as there is no search path for DLLs.
12306     hardcode_libdir_flag_spec_CXX='-L$libdir'
12307     allow_undefined_flag_CXX=unsupported
12308     always_export_symbols_CXX=no
12309     enable_shared_with_static_runtimes_CXX=yes
12310
12311     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12312       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'
12313       # If the export-symbols file already is a .def file (1st line
12314       # is EXPORTS), use it as is; otherwise, prepend...
12315       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12316         cp $export_symbols $output_objdir/$soname.def;
12317       else
12318         echo EXPORTS > $output_objdir/$soname.def;
12319         cat $export_symbols >> $output_objdir/$soname.def;
12320       fi~
12321       $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'
12322     else
12323       ld_shlibs_CXX=no
12324     fi
12325   ;;
12326       darwin* | rhapsody*)
12327         case $host_os in
12328         rhapsody* | darwin1.[012])
12329          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12330          ;;
12331        *) # Darwin 1.3 on
12332          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12333            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12334          else
12335            case ${MACOSX_DEPLOYMENT_TARGET} in
12336              10.[012])
12337                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12338                ;;
12339              10.*)
12340                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12341                ;;
12342            esac
12343          fi
12344          ;;
12345         esac
12346       archive_cmds_need_lc_CXX=no
12347       hardcode_direct_CXX=no
12348       hardcode_automatic_CXX=yes
12349       hardcode_shlibpath_var_CXX=unsupported
12350       whole_archive_flag_spec_CXX=''
12351       link_all_deplibs_CXX=yes
12352
12353     if test "$GXX" = yes ; then
12354       lt_int_apple_cc_single_mod=no
12355       output_verbose_link_cmd='echo'
12356       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
12357        lt_int_apple_cc_single_mod=yes
12358       fi
12359       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12360        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12361       else
12362           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'
12363         fi
12364         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12365         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12366           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12367             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}'
12368           else
12369             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}'
12370           fi
12371             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}'
12372       else
12373       case $cc_basename in
12374         xlc*)
12375          output_verbose_link_cmd='echo'
12376           archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12377           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12378           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12379           archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12380           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}'
12381           ;;
12382        *)
12383          ld_shlibs_CXX=no
12384           ;;
12385       esac
12386       fi
12387         ;;
12388
12389   dgux*)
12390     case $cc_basename in
12391       ec++*)
12392         # FIXME: insert proper C++ library support
12393         ld_shlibs_CXX=no
12394         ;;
12395       ghcx*)
12396         # Green Hills C++ Compiler
12397         # FIXME: insert proper C++ library support
12398         ld_shlibs_CXX=no
12399         ;;
12400       *)
12401         # FIXME: insert proper C++ library support
12402         ld_shlibs_CXX=no
12403         ;;
12404     esac
12405     ;;
12406   freebsd[12]*)
12407     # C++ shared libraries reported to be fairly broken before switch to ELF
12408     ld_shlibs_CXX=no
12409     ;;
12410   freebsd-elf*)
12411     archive_cmds_need_lc_CXX=no
12412     ;;
12413   freebsd* | dragonfly*)
12414     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12415     # conventions
12416     ld_shlibs_CXX=yes
12417     ;;
12418   gnu*)
12419     ;;
12420   hpux9*)
12421     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12422     hardcode_libdir_separator_CXX=:
12423     export_dynamic_flag_spec_CXX='${wl}-E'
12424     hardcode_direct_CXX=yes
12425     hardcode_minus_L_CXX=yes # Not in the search PATH,
12426                                 # but as the default
12427                                 # location of the library.
12428
12429     case $cc_basename in
12430     CC*)
12431       # FIXME: insert proper C++ library support
12432       ld_shlibs_CXX=no
12433       ;;
12434     aCC*)
12435       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'
12436       # Commands to make compiler produce verbose output that lists
12437       # what "hidden" libraries, object files and flags are used when
12438       # linking a shared library.
12439       #
12440       # There doesn't appear to be a way to prevent this compiler from
12441       # explicitly linking system object files so we need to strip them
12442       # from the output so that they don't get included in the library
12443       # dependencies.
12444       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'
12445       ;;
12446     *)
12447       if test "$GXX" = yes; then
12448         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'
12449       else
12450         # FIXME: insert proper C++ library support
12451         ld_shlibs_CXX=no
12452       fi
12453       ;;
12454     esac
12455     ;;
12456   hpux10*|hpux11*)
12457     if test $with_gnu_ld = no; then
12458       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12459       hardcode_libdir_separator_CXX=:
12460
12461       case $host_cpu in
12462       hppa*64*|ia64*)
12463         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
12464         ;;
12465       *)
12466         export_dynamic_flag_spec_CXX='${wl}-E'
12467         ;;
12468       esac
12469     fi
12470     case $host_cpu in
12471     hppa*64*|ia64*)
12472       hardcode_direct_CXX=no
12473       hardcode_shlibpath_var_CXX=no
12474       ;;
12475     *)
12476       hardcode_direct_CXX=yes
12477       hardcode_minus_L_CXX=yes # Not in the search PATH,
12478                                               # but as the default
12479                                               # location of the library.
12480       ;;
12481     esac
12482
12483     case $cc_basename in
12484       CC*)
12485         # FIXME: insert proper C++ library support
12486         ld_shlibs_CXX=no
12487         ;;
12488       aCC*)
12489         case $host_cpu in
12490         hppa*64*)
12491           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12492           ;;
12493         ia64*)
12494           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12495           ;;
12496         *)
12497           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12498           ;;
12499         esac
12500         # Commands to make compiler produce verbose output that lists
12501         # what "hidden" libraries, object files and flags are used when
12502         # linking a shared library.
12503         #
12504         # There doesn't appear to be a way to prevent this compiler from
12505         # explicitly linking system object files so we need to strip them
12506         # from the output so that they don't get included in the library
12507         # dependencies.
12508         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'
12509         ;;
12510       *)
12511         if test "$GXX" = yes; then
12512           if test $with_gnu_ld = no; then
12513             case $host_cpu in
12514             hppa*64*)
12515               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12516               ;;
12517             ia64*)
12518               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12519               ;;
12520             *)
12521               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'
12522               ;;
12523             esac
12524           fi
12525         else
12526           # FIXME: insert proper C++ library support
12527           ld_shlibs_CXX=no
12528         fi
12529         ;;
12530     esac
12531     ;;
12532   interix3*)
12533     hardcode_direct_CXX=no
12534     hardcode_shlibpath_var_CXX=no
12535     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12536     export_dynamic_flag_spec_CXX='${wl}-E'
12537     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12538     # Instead, shared libraries are loaded at an image base (0x10000000 by
12539     # default) and relocated if they conflict, which is a slow very memory
12540     # consuming and fragmenting process.  To avoid this, we pick a random,
12541     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12542     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12543     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'
12544     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'
12545     ;;
12546   irix5* | irix6*)
12547     case $cc_basename in
12548       CC*)
12549         # SGI C++
12550         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'
12551
12552         # Archives containing C++ object files must be created using
12553         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12554         # necessary to make sure instantiated templates are included
12555         # in the archive.
12556         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12557         ;;
12558       *)
12559         if test "$GXX" = yes; then
12560           if test "$with_gnu_ld" = no; then
12561             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'
12562           else
12563             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'
12564           fi
12565         fi
12566         link_all_deplibs_CXX=yes
12567         ;;
12568     esac
12569     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12570     hardcode_libdir_separator_CXX=:
12571     ;;
12572   linux* | k*bsd*-gnu)
12573     case $cc_basename in
12574       KCC*)
12575         # Kuck and Associates, Inc. (KAI) C++ Compiler
12576
12577         # KCC will only create a shared library if the output file
12578         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12579         # to its proper name (with version) after linking.
12580         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'
12581         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'
12582         # Commands to make compiler produce verbose output that lists
12583         # what "hidden" libraries, object files and flags are used when
12584         # linking a shared library.
12585         #
12586         # There doesn't appear to be a way to prevent this compiler from
12587         # explicitly linking system object files so we need to strip them
12588         # from the output so that they don't get included in the library
12589         # dependencies.
12590         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'
12591
12592         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12593         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12594
12595         # Archives containing C++ object files must be created using
12596         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12597         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12598         ;;
12599       icpc*)
12600         # Intel C++
12601         with_gnu_ld=yes
12602         # version 8.0 and above of icpc choke on multiply defined symbols
12603         # if we add $predep_objects and $postdep_objects, however 7.1 and
12604         # earlier do not add the objects themselves.
12605         case `$CC -V 2>&1` in
12606         *"Version 7."*)
12607           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12608           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'
12609           ;;
12610         *)  # Version 8.0 or newer
12611           tmp_idyn=
12612           case $host_cpu in
12613             ia64*) tmp_idyn=' -i_dynamic';;
12614           esac
12615           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12616           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'
12617           ;;
12618         esac
12619         archive_cmds_need_lc_CXX=no
12620         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12621         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12622         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12623         ;;
12624       pgCC*)
12625         # Portland Group C++ compiler
12626         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12627         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'
12628
12629         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12630         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12631         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'
12632         ;;
12633       cxx*)
12634         # Compaq C++
12635         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12636         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'
12637
12638         runpath_var=LD_RUN_PATH
12639         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12640         hardcode_libdir_separator_CXX=:
12641
12642         # Commands to make compiler produce verbose output that lists
12643         # what "hidden" libraries, object files and flags are used when
12644         # linking a shared library.
12645         #
12646         # There doesn't appear to be a way to prevent this compiler from
12647         # explicitly linking system object files so we need to strip them
12648         # from the output so that they don't get included in the library
12649         # dependencies.
12650         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'
12651         ;;
12652     esac
12653     ;;
12654   lynxos*)
12655     # FIXME: insert proper C++ library support
12656     ld_shlibs_CXX=no
12657     ;;
12658   m88k*)
12659     # FIXME: insert proper C++ library support
12660     ld_shlibs_CXX=no
12661     ;;
12662   mvs*)
12663     case $cc_basename in
12664       cxx*)
12665         # FIXME: insert proper C++ library support
12666         ld_shlibs_CXX=no
12667         ;;
12668       *)
12669         # FIXME: insert proper C++ library support
12670         ld_shlibs_CXX=no
12671         ;;
12672     esac
12673     ;;
12674   netbsd* | netbsdelf*-gnu)
12675     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12676       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12677       wlarc=
12678       hardcode_libdir_flag_spec_CXX='-R$libdir'
12679       hardcode_direct_CXX=yes
12680       hardcode_shlibpath_var_CXX=no
12681     fi
12682     # Workaround some broken pre-1.5 toolchains
12683     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12684     ;;
12685   openbsd2*)
12686     # C++ shared libraries are fairly broken
12687     ld_shlibs_CXX=no
12688     ;;
12689   openbsd*)
12690     hardcode_direct_CXX=yes
12691     hardcode_shlibpath_var_CXX=no
12692     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12693     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12694     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12695       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12696       export_dynamic_flag_spec_CXX='${wl}-E'
12697       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12698     fi
12699     output_verbose_link_cmd='echo'
12700     ;;
12701   osf3*)
12702     case $cc_basename in
12703       KCC*)
12704         # Kuck and Associates, Inc. (KAI) C++ Compiler
12705
12706         # KCC will only create a shared library if the output file
12707         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12708         # to its proper name (with version) after linking.
12709         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'
12710
12711         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12712         hardcode_libdir_separator_CXX=:
12713
12714         # Archives containing C++ object files must be created using
12715         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12716         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12717
12718         ;;
12719       RCC*)
12720         # Rational C++ 2.4.1
12721         # FIXME: insert proper C++ library support
12722         ld_shlibs_CXX=no
12723         ;;
12724       cxx*)
12725         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12726         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'
12727
12728         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12729         hardcode_libdir_separator_CXX=:
12730
12731         # Commands to make compiler produce verbose output that lists
12732         # what "hidden" libraries, object files and flags are used when
12733         # linking a shared library.
12734         #
12735         # There doesn't appear to be a way to prevent this compiler from
12736         # explicitly linking system object files so we need to strip them
12737         # from the output so that they don't get included in the library
12738         # dependencies.
12739         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'
12740         ;;
12741       *)
12742         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12743           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12744           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'
12745
12746           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12747           hardcode_libdir_separator_CXX=:
12748
12749           # Commands to make compiler produce verbose output that lists
12750           # what "hidden" libraries, object files and flags are used when
12751           # linking a shared library.
12752           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12753
12754         else
12755           # FIXME: insert proper C++ library support
12756           ld_shlibs_CXX=no
12757         fi
12758         ;;
12759     esac
12760     ;;
12761   osf4* | osf5*)
12762     case $cc_basename in
12763       KCC*)
12764         # Kuck and Associates, Inc. (KAI) C++ Compiler
12765
12766         # KCC will only create a shared library if the output file
12767         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12768         # to its proper name (with version) after linking.
12769         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'
12770
12771         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12772         hardcode_libdir_separator_CXX=:
12773
12774         # Archives containing C++ object files must be created using
12775         # the KAI C++ compiler.
12776         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12777         ;;
12778       RCC*)
12779         # Rational C++ 2.4.1
12780         # FIXME: insert proper C++ library support
12781         ld_shlibs_CXX=no
12782         ;;
12783       cxx*)
12784         allow_undefined_flag_CXX=' -expect_unresolved \*'
12785         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'
12786         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12787           echo "-hidden">> $lib.exp~
12788           $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~
12789           $rm $lib.exp'
12790
12791         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12792         hardcode_libdir_separator_CXX=:
12793
12794         # Commands to make compiler produce verbose output that lists
12795         # what "hidden" libraries, object files and flags are used when
12796         # linking a shared library.
12797         #
12798         # There doesn't appear to be a way to prevent this compiler from
12799         # explicitly linking system object files so we need to strip them
12800         # from the output so that they don't get included in the library
12801         # dependencies.
12802         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'
12803         ;;
12804       *)
12805         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12806           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12807          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'
12808
12809           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12810           hardcode_libdir_separator_CXX=:
12811
12812           # Commands to make compiler produce verbose output that lists
12813           # what "hidden" libraries, object files and flags are used when
12814           # linking a shared library.
12815           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12816
12817         else
12818           # FIXME: insert proper C++ library support
12819           ld_shlibs_CXX=no
12820         fi
12821         ;;
12822     esac
12823     ;;
12824   psos*)
12825     # FIXME: insert proper C++ library support
12826     ld_shlibs_CXX=no
12827     ;;
12828   sunos4*)
12829     case $cc_basename in
12830       CC*)
12831         # Sun C++ 4.x
12832         # FIXME: insert proper C++ library support
12833         ld_shlibs_CXX=no
12834         ;;
12835       lcc*)
12836         # Lucid
12837         # FIXME: insert proper C++ library support
12838         ld_shlibs_CXX=no
12839         ;;
12840       *)
12841         # FIXME: insert proper C++ library support
12842         ld_shlibs_CXX=no
12843         ;;
12844     esac
12845     ;;
12846   solaris*)
12847     case $cc_basename in
12848       CC*)
12849         # Sun C++ 4.2, 5.x and Centerline C++
12850         archive_cmds_need_lc_CXX=yes
12851         no_undefined_flag_CXX=' -zdefs'
12852         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12853         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12854         $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'
12855
12856         hardcode_libdir_flag_spec_CXX='-R$libdir'
12857         hardcode_shlibpath_var_CXX=no
12858         case $host_os in
12859           solaris2.[0-5] | solaris2.[0-5].*) ;;
12860           *)
12861             # The C++ compiler is used as linker so we must use $wl
12862             # flag to pass the commands to the underlying system
12863             # linker. We must also pass each convience library through
12864             # to the system linker between allextract/defaultextract.
12865             # The C++ compiler will combine linker options so we
12866             # cannot just pass the convience library names through
12867             # without $wl.
12868             # Supported since Solaris 2.6 (maybe 2.5.1?)
12869             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
12870             ;;
12871         esac
12872         link_all_deplibs_CXX=yes
12873
12874         output_verbose_link_cmd='echo'
12875
12876         # Archives containing C++ object files must be created using
12877         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12878         # necessary to make sure instantiated templates are included
12879         # in the archive.
12880         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12881         ;;
12882       gcx*)
12883         # Green Hills C++ Compiler
12884         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12885
12886         # The C++ compiler must be used to create the archive.
12887         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12888         ;;
12889       *)
12890         # GNU C++ compiler with Solaris linker
12891         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12892           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12893           if $CC --version | grep -v '^2\.7' > /dev/null; then
12894             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12895             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12896                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12897
12898             # Commands to make compiler produce verbose output that lists
12899             # what "hidden" libraries, object files and flags are used when
12900             # linking a shared library.
12901             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12902           else
12903             # g++ 2.7 appears to require `-G' NOT `-shared' on this
12904             # platform.
12905             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12906             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12907                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12908
12909             # Commands to make compiler produce verbose output that lists
12910             # what "hidden" libraries, object files and flags are used when
12911             # linking a shared library.
12912             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12913           fi
12914
12915           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12916         fi
12917         ;;
12918     esac
12919     ;;
12920   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12921     no_undefined_flag_CXX='${wl}-z,text'
12922     archive_cmds_need_lc_CXX=no
12923     hardcode_shlibpath_var_CXX=no
12924     runpath_var='LD_RUN_PATH'
12925
12926     case $cc_basename in
12927       CC*)
12928         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12929         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12930         ;;
12931       *)
12932         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12933         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12934         ;;
12935     esac
12936     ;;
12937   sysv5* | sco3.2v5* | sco5v6*)
12938     # Note: We can NOT use -z defs as we might desire, because we do not
12939     # link with -lc, and that would cause any symbols used from libc to
12940     # always be unresolved, which means just about no library would
12941     # ever link correctly.  If we're not using GNU ld we use -z text
12942     # though, which does catch some bad symbols but isn't as heavy-handed
12943     # as -z defs.
12944     # For security reasons, it is highly recommended that you always
12945     # use absolute paths for naming shared libraries, and exclude the
12946     # DT_RUNPATH tag from executables and libraries.  But doing so
12947     # requires that you compile everything twice, which is a pain.
12948     # So that behaviour is only enabled if SCOABSPATH is set to a
12949     # non-empty value in the environment.  Most likely only useful for
12950     # creating official distributions of packages.
12951     # This is a hack until libtool officially supports absolute path
12952     # names for shared libraries.
12953     no_undefined_flag_CXX='${wl}-z,text'
12954     allow_undefined_flag_CXX='${wl}-z,nodefs'
12955     archive_cmds_need_lc_CXX=no
12956     hardcode_shlibpath_var_CXX=no
12957     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12958     hardcode_libdir_separator_CXX=':'
12959     link_all_deplibs_CXX=yes
12960     export_dynamic_flag_spec_CXX='${wl}-Bexport'
12961     runpath_var='LD_RUN_PATH'
12962
12963     case $cc_basename in
12964       CC*)
12965         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12966         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12967         ;;
12968       *)
12969         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12970         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12971         ;;
12972     esac
12973     ;;
12974   tandem*)
12975     case $cc_basename in
12976       NCC*)
12977         # NonStop-UX NCC 3.20
12978         # FIXME: insert proper C++ library support
12979         ld_shlibs_CXX=no
12980         ;;
12981       *)
12982         # FIXME: insert proper C++ library support
12983         ld_shlibs_CXX=no
12984         ;;
12985     esac
12986     ;;
12987   vxworks*)
12988     # FIXME: insert proper C++ library support
12989     ld_shlibs_CXX=no
12990     ;;
12991   *)
12992     # FIXME: insert proper C++ library support
12993     ld_shlibs_CXX=no
12994     ;;
12995 esac
12996 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12997 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12998 test "$ld_shlibs_CXX" = no && can_build_shared=no
12999
13000 GCC_CXX="$GXX"
13001 LD_CXX="$LD"
13002
13003 ## CAVEAT EMPTOR:
13004 ## There is no encapsulation within the following macros, do not change
13005 ## the running order or otherwise move them around unless you know exactly
13006 ## what you are doing...
13007
13008 cat > conftest.$ac_ext <<EOF
13009 class Foo
13010 {
13011 public:
13012   Foo (void) { a = 0; }
13013 private:
13014   int a;
13015 };
13016 EOF
13017
13018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13019   (eval $ac_compile) 2>&5
13020   ac_status=$?
13021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13022   (exit $ac_status); }; then
13023   # Parse the compiler output and extract the necessary
13024   # objects, libraries and library flags.
13025
13026   # Sentinel used to keep track of whether or not we are before
13027   # the conftest object file.
13028   pre_test_object_deps_done=no
13029
13030   # The `*' in the case matches for architectures that use `case' in
13031   # $output_verbose_cmd can trigger glob expansion during the loop
13032   # eval without this substitution.
13033   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
13034
13035   for p in `eval $output_verbose_link_cmd`; do
13036     case $p in
13037
13038     -L* | -R* | -l*)
13039        # Some compilers place space between "-{L,R}" and the path.
13040        # Remove the space.
13041        if test $p = "-L" \
13042           || test $p = "-R"; then
13043          prev=$p
13044          continue
13045        else
13046          prev=
13047        fi
13048
13049        if test "$pre_test_object_deps_done" = no; then
13050          case $p in
13051          -L* | -R*)
13052            # Internal compiler library paths should come after those
13053            # provided the user.  The postdeps already come after the
13054            # user supplied libs so there is no need to process them.
13055            if test -z "$compiler_lib_search_path_CXX"; then
13056              compiler_lib_search_path_CXX="${prev}${p}"
13057            else
13058              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13059            fi
13060            ;;
13061          # The "-l" case would never come before the object being
13062          # linked, so don't bother handling this case.
13063          esac
13064        else
13065          if test -z "$postdeps_CXX"; then
13066            postdeps_CXX="${prev}${p}"
13067          else
13068            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13069          fi
13070        fi
13071        ;;
13072
13073     *.$objext)
13074        # This assumes that the test object file only shows up
13075        # once in the compiler output.
13076        if test "$p" = "conftest.$objext"; then
13077          pre_test_object_deps_done=yes
13078          continue
13079        fi
13080
13081        if test "$pre_test_object_deps_done" = no; then
13082          if test -z "$predep_objects_CXX"; then
13083            predep_objects_CXX="$p"
13084          else
13085            predep_objects_CXX="$predep_objects_CXX $p"
13086          fi
13087        else
13088          if test -z "$postdep_objects_CXX"; then
13089            postdep_objects_CXX="$p"
13090          else
13091            postdep_objects_CXX="$postdep_objects_CXX $p"
13092          fi
13093        fi
13094        ;;
13095
13096     *) ;; # Ignore the rest.
13097
13098     esac
13099   done
13100
13101   # Clean up.
13102   rm -f a.out a.exe
13103 else
13104   echo "libtool.m4: error: problem compiling CXX test program"
13105 fi
13106
13107 $rm -f confest.$objext
13108
13109 # PORTME: override above test on systems where it is broken
13110 case $host_os in
13111 interix3*)
13112   # Interix 3.5 installs completely hosed .la files for C++, so rather than
13113   # hack all around it, let's just trust "g++" to DTRT.
13114   predep_objects_CXX=
13115   postdep_objects_CXX=
13116   postdeps_CXX=
13117   ;;
13118
13119 solaris*)
13120   case $cc_basename in
13121   CC*)
13122     # Adding this requires a known-good setup of shared libraries for
13123     # Sun compiler versions before 5.6, else PIC objects from an old
13124     # archive will be linked into the output, leading to subtle bugs.
13125     postdeps_CXX='-lCstd -lCrun'
13126     ;;
13127   esac
13128   ;;
13129 esac
13130
13131
13132 case " $postdeps_CXX " in
13133 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13134 esac
13135
13136 lt_prog_compiler_wl_CXX=
13137 lt_prog_compiler_pic_CXX=
13138 lt_prog_compiler_static_CXX=
13139
13140 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13141 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13142  
13143   # C++ specific cases for pic, static, wl, etc.
13144   if test "$GXX" = yes; then
13145     lt_prog_compiler_wl_CXX='-Wl,'
13146     lt_prog_compiler_static_CXX='-static'
13147
13148     case $host_os in
13149     aix*)
13150       # All AIX code is PIC.
13151       if test "$host_cpu" = ia64; then
13152         # AIX 5 now supports IA64 processor
13153         lt_prog_compiler_static_CXX='-Bstatic'
13154       fi
13155       ;;
13156     amigaos*)
13157       # FIXME: we need at least 68020 code to build shared libraries, but
13158       # adding the `-m68020' flag to GCC prevents building anything better,
13159       # like `-m68040'.
13160       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13161       ;;
13162     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13163       # PIC is the default for these OSes.
13164       ;;
13165     mingw* | os2* | pw32*)
13166       # This hack is so that the source file can tell whether it is being
13167       # built for inclusion in a dll (and should export symbols for example).
13168       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13169       ;;
13170     darwin* | rhapsody*)
13171       # PIC is the default on this platform
13172       # Common symbols not allowed in MH_DYLIB files
13173       lt_prog_compiler_pic_CXX='-fno-common'
13174       ;;
13175     *djgpp*)
13176       # DJGPP does not support shared libraries at all
13177       lt_prog_compiler_pic_CXX=
13178       ;;
13179     interix3*)
13180       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13181       # Instead, we relocate shared libraries at runtime.
13182       ;;
13183     sysv4*MP*)
13184       if test -d /usr/nec; then
13185         lt_prog_compiler_pic_CXX=-Kconform_pic
13186       fi
13187       ;;
13188     hpux*)
13189       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13190       # not for PA HP-UX.
13191       case $host_cpu in
13192       hppa*64*|ia64*)
13193         ;;
13194       *)
13195         lt_prog_compiler_pic_CXX='-fPIC'
13196         ;;
13197       esac
13198       ;;
13199     *)
13200       lt_prog_compiler_pic_CXX='-fPIC'
13201       ;;
13202     esac
13203   else
13204     case $host_os in
13205       aix4* | aix5*)
13206         # All AIX code is PIC.
13207         if test "$host_cpu" = ia64; then
13208           # AIX 5 now supports IA64 processor
13209           lt_prog_compiler_static_CXX='-Bstatic'
13210         else
13211           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13212         fi
13213         ;;
13214       chorus*)
13215         case $cc_basename in
13216         cxch68*)
13217           # Green Hills C++ Compiler
13218           # _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"
13219           ;;
13220         esac
13221         ;;
13222        darwin*)
13223          # PIC is the default on this platform
13224          # Common symbols not allowed in MH_DYLIB files
13225          case $cc_basename in
13226            xlc*)
13227            lt_prog_compiler_pic_CXX='-qnocommon'
13228            lt_prog_compiler_wl_CXX='-Wl,'
13229            ;;
13230          esac
13231        ;;
13232       dgux*)
13233         case $cc_basename in
13234           ec++*)
13235             lt_prog_compiler_pic_CXX='-KPIC'
13236             ;;
13237           ghcx*)
13238             # Green Hills C++ Compiler
13239             lt_prog_compiler_pic_CXX='-pic'
13240             ;;
13241           *)
13242             ;;
13243         esac
13244         ;;
13245       freebsd* | dragonfly*)
13246         # FreeBSD uses GNU C++
13247         ;;
13248       hpux9* | hpux10* | hpux11*)
13249         case $cc_basename in
13250           CC*)
13251             lt_prog_compiler_wl_CXX='-Wl,'
13252             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13253             if test "$host_cpu" != ia64; then
13254               lt_prog_compiler_pic_CXX='+Z'
13255             fi
13256             ;;
13257           aCC*)
13258             lt_prog_compiler_wl_CXX='-Wl,'
13259             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13260             case $host_cpu in
13261             hppa*64*|ia64*)
13262               # +Z the default
13263               ;;
13264             *)
13265               lt_prog_compiler_pic_CXX='+Z'
13266               ;;
13267             esac
13268             ;;
13269           *)
13270             ;;
13271         esac
13272         ;;
13273       interix*)
13274         # This is c89, which is MS Visual C++ (no shared libs)
13275         # Anyone wants to do a port?
13276         ;;
13277       irix5* | irix6* | nonstopux*)
13278         case $cc_basename in
13279           CC*)
13280             lt_prog_compiler_wl_CXX='-Wl,'
13281             lt_prog_compiler_static_CXX='-non_shared'
13282             # CC pic flag -KPIC is the default.
13283             ;;
13284           *)
13285             ;;
13286         esac
13287         ;;
13288       linux* | k*bsd*-gnu)
13289         case $cc_basename in
13290           KCC*)
13291             # KAI C++ Compiler
13292             lt_prog_compiler_wl_CXX='--backend -Wl,'
13293             lt_prog_compiler_pic_CXX='-fPIC'
13294             ;;
13295           icpc* | ecpc*)
13296             # Intel C++
13297             lt_prog_compiler_wl_CXX='-Wl,'
13298             lt_prog_compiler_pic_CXX='-KPIC'
13299             lt_prog_compiler_static_CXX='-static'
13300             ;;
13301           pgCC*)
13302             # Portland Group C++ compiler.
13303             lt_prog_compiler_wl_CXX='-Wl,'
13304             lt_prog_compiler_pic_CXX='-fpic'
13305             lt_prog_compiler_static_CXX='-Bstatic'
13306             ;;
13307           cxx*)
13308             # Compaq C++
13309             # Make sure the PIC flag is empty.  It appears that all Alpha
13310             # Linux and Compaq Tru64 Unix objects are PIC.
13311             lt_prog_compiler_pic_CXX=
13312             lt_prog_compiler_static_CXX='-non_shared'
13313             ;;
13314           *)
13315             ;;
13316         esac
13317         ;;
13318       lynxos*)
13319         ;;
13320       m88k*)
13321         ;;
13322       mvs*)
13323         case $cc_basename in
13324           cxx*)
13325             lt_prog_compiler_pic_CXX='-W c,exportall'
13326             ;;
13327           *)
13328             ;;
13329         esac
13330         ;;
13331       netbsd* | netbsdelf*-gnu)
13332         ;;
13333       osf3* | osf4* | osf5*)
13334         case $cc_basename in
13335           KCC*)
13336             lt_prog_compiler_wl_CXX='--backend -Wl,'
13337             ;;
13338           RCC*)
13339             # Rational C++ 2.4.1
13340             lt_prog_compiler_pic_CXX='-pic'
13341             ;;
13342           cxx*)
13343             # Digital/Compaq C++
13344             lt_prog_compiler_wl_CXX='-Wl,'
13345             # Make sure the PIC flag is empty.  It appears that all Alpha
13346             # Linux and Compaq Tru64 Unix objects are PIC.
13347             lt_prog_compiler_pic_CXX=
13348             lt_prog_compiler_static_CXX='-non_shared'
13349             ;;
13350           *)
13351             ;;
13352         esac
13353         ;;
13354       psos*)
13355         ;;
13356       solaris*)
13357         case $cc_basename in
13358           CC*)
13359             # Sun C++ 4.2, 5.x and Centerline C++
13360             lt_prog_compiler_pic_CXX='-KPIC'
13361             lt_prog_compiler_static_CXX='-Bstatic'
13362             lt_prog_compiler_wl_CXX='-Qoption ld '
13363             ;;
13364           gcx*)
13365             # Green Hills C++ Compiler
13366             lt_prog_compiler_pic_CXX='-PIC'
13367             ;;
13368           *)
13369             ;;
13370         esac
13371         ;;
13372       sunos4*)
13373         case $cc_basename in
13374           CC*)
13375             # Sun C++ 4.x
13376             lt_prog_compiler_pic_CXX='-pic'
13377             lt_prog_compiler_static_CXX='-Bstatic'
13378             ;;
13379           lcc*)
13380             # Lucid
13381             lt_prog_compiler_pic_CXX='-pic'
13382             ;;
13383           *)
13384             ;;
13385         esac
13386         ;;
13387       tandem*)
13388         case $cc_basename in
13389           NCC*)
13390             # NonStop-UX NCC 3.20
13391             lt_prog_compiler_pic_CXX='-KPIC'
13392             ;;
13393           *)
13394             ;;
13395         esac
13396         ;;
13397       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13398         case $cc_basename in
13399           CC*)
13400             lt_prog_compiler_wl_CXX='-Wl,'
13401             lt_prog_compiler_pic_CXX='-KPIC'
13402             lt_prog_compiler_static_CXX='-Bstatic'
13403             ;;
13404         esac
13405         ;;
13406       vxworks*)
13407         ;;
13408       *)
13409         lt_prog_compiler_can_build_shared_CXX=no
13410         ;;
13411     esac
13412   fi
13413
13414 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13415 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
13416
13417 #
13418 # Check to make sure the PIC flag actually works.
13419 #
13420 if test -n "$lt_prog_compiler_pic_CXX"; then
13421   
13422 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13423 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
13424 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13425   echo $ECHO_N "(cached) $ECHO_C" >&6
13426 else
13427   lt_prog_compiler_pic_works_CXX=no
13428   ac_outfile=conftest.$ac_objext
13429    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13430    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13431    # Insert the option either (1) after the last *FLAGS variable, or
13432    # (2) before a word containing "conftest.", or (3) at the end.
13433    # Note that $ac_compile itself does not contain backslashes and begins
13434    # with a dollar sign (not a hyphen), so the echo should work correctly.
13435    # The option is referenced via a variable to avoid confusing sed.
13436    lt_compile=`echo "$ac_compile" | $SED \
13437    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13438    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13439    -e 's:$: $lt_compiler_flag:'`
13440    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
13441    (eval "$lt_compile" 2>conftest.err)
13442    ac_status=$?
13443    cat conftest.err >&5
13444    echo "$as_me:__oline__: \$? = $ac_status" >&5
13445    if (exit $ac_status) && test -s "$ac_outfile"; then
13446      # The compiler can only warn and ignore the option if not recognized
13447      # So say no if there are warnings other than the usual output.
13448      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13449      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13450      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13451        lt_prog_compiler_pic_works_CXX=yes
13452      fi
13453    fi
13454    $rm conftest*
13455
13456 fi
13457 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13458 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
13459
13460 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13461     case $lt_prog_compiler_pic_CXX in
13462      "" | " "*) ;;
13463      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13464      esac
13465 else
13466     lt_prog_compiler_pic_CXX=
13467      lt_prog_compiler_can_build_shared_CXX=no
13468 fi
13469
13470 fi
13471 case $host_os in
13472   # For platforms which do not support PIC, -DPIC is meaningless:
13473   *djgpp*)
13474     lt_prog_compiler_pic_CXX=
13475     ;;
13476   *)
13477     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13478     ;;
13479 esac
13480
13481 #
13482 # Check to make sure the static flag actually works.
13483 #
13484 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13485 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13486 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13487 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
13488   echo $ECHO_N "(cached) $ECHO_C" >&6
13489 else
13490   lt_prog_compiler_static_works_CXX=no
13491    save_LDFLAGS="$LDFLAGS"
13492    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13493    printf "$lt_simple_link_test_code" > conftest.$ac_ext
13494    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13495      # The linker can only warn and ignore the option if not recognized
13496      # So say no if there are warnings
13497      if test -s conftest.err; then
13498        # Append any errors to the config.log.
13499        cat conftest.err 1>&5
13500        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13501        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13502        if diff conftest.exp conftest.er2 >/dev/null; then
13503          lt_prog_compiler_static_works_CXX=yes
13504        fi
13505      else
13506        lt_prog_compiler_static_works_CXX=yes
13507      fi
13508    fi
13509    $rm conftest*
13510    LDFLAGS="$save_LDFLAGS"
13511
13512 fi
13513 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
13514 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
13515
13516 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
13517     :
13518 else
13519     lt_prog_compiler_static_CXX=
13520 fi
13521
13522
13523 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13524 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13525 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13526   echo $ECHO_N "(cached) $ECHO_C" >&6
13527 else
13528   lt_cv_prog_compiler_c_o_CXX=no
13529    $rm -r conftest 2>/dev/null
13530    mkdir conftest
13531    cd conftest
13532    mkdir out
13533    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13534
13535    lt_compiler_flag="-o out/conftest2.$ac_objext"
13536    # Insert the option either (1) after the last *FLAGS variable, or
13537    # (2) before a word containing "conftest.", or (3) at the end.
13538    # Note that $ac_compile itself does not contain backslashes and begins
13539    # with a dollar sign (not a hyphen), so the echo should work correctly.
13540    lt_compile=`echo "$ac_compile" | $SED \
13541    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13542    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13543    -e 's:$: $lt_compiler_flag:'`
13544    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
13545    (eval "$lt_compile" 2>out/conftest.err)
13546    ac_status=$?
13547    cat out/conftest.err >&5
13548    echo "$as_me:__oline__: \$? = $ac_status" >&5
13549    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13550    then
13551      # The compiler can only warn and ignore the option if not recognized
13552      # So say no if there are warnings
13553      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13554      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13555      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13556        lt_cv_prog_compiler_c_o_CXX=yes
13557      fi
13558    fi
13559    chmod u+w . 2>&5
13560    $rm conftest*
13561    # SGI C++ compiler will create directory out/ii_files/ for
13562    # template instantiation
13563    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13564    $rm out/* && rmdir out
13565    cd ..
13566    rmdir conftest
13567    $rm conftest*
13568
13569 fi
13570 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13571 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
13572
13573
13574 hard_links="nottested"
13575 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13576   # do not overwrite the value of need_locks provided by the user
13577   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13578 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13579   hard_links=yes
13580   $rm conftest*
13581   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13582   touch conftest.a
13583   ln conftest.a conftest.b 2>&5 || hard_links=no
13584   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13585   { echo "$as_me:$LINENO: result: $hard_links" >&5
13586 echo "${ECHO_T}$hard_links" >&6; }
13587   if test "$hard_links" = no; then
13588     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13589 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13590     need_locks=warn
13591   fi
13592 else
13593   need_locks=no
13594 fi
13595
13596 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13597 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13598
13599   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13600   case $host_os in
13601   aix4* | aix5*)
13602     # If we're using GNU nm, then we don't want the "-C" option.
13603     # -C means demangle to AIX nm, but means don't demangle with GNU nm
13604     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13605       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'
13606     else
13607       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'
13608     fi
13609     ;;
13610   pw32*)
13611     export_symbols_cmds_CXX="$ltdll_cmds"
13612   ;;
13613   cygwin* | mingw*)
13614     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'
13615   ;;
13616   linux* | k*bsd*-gnu)
13617     link_all_deplibs_CXX=no
13618   ;;
13619   *)
13620     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13621   ;;
13622   esac
13623
13624 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13625 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13626 test "$ld_shlibs_CXX" = no && can_build_shared=no
13627
13628 #
13629 # Do we need to explicitly link libc?
13630 #
13631 case "x$archive_cmds_need_lc_CXX" in
13632 x|xyes)
13633   # Assume -lc should be added
13634   archive_cmds_need_lc_CXX=yes
13635
13636   if test "$enable_shared" = yes && test "$GCC" = yes; then
13637     case $archive_cmds_CXX in
13638     *'~'*)
13639       # FIXME: we may have to deal with multi-command sequences.
13640       ;;
13641     '$CC '*)
13642       # Test whether the compiler implicitly links with -lc since on some
13643       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13644       # to ld, don't add -lc before -lgcc.
13645       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13646 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13647       $rm conftest*
13648       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13649
13650       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13651   (eval $ac_compile) 2>&5
13652   ac_status=$?
13653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13654   (exit $ac_status); } 2>conftest.err; then
13655         soname=conftest
13656         lib=conftest
13657         libobjs=conftest.$ac_objext
13658         deplibs=
13659         wl=$lt_prog_compiler_wl_CXX
13660         pic_flag=$lt_prog_compiler_pic_CXX
13661         compiler_flags=-v
13662         linker_flags=-v
13663         verstring=
13664         output_objdir=.
13665         libname=conftest
13666         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13667         allow_undefined_flag_CXX=
13668         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13669   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13670   ac_status=$?
13671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13672   (exit $ac_status); }
13673         then
13674           archive_cmds_need_lc_CXX=no
13675         else
13676           archive_cmds_need_lc_CXX=yes
13677         fi
13678         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13679       else
13680         cat conftest.err 1>&5
13681       fi
13682       $rm conftest*
13683       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13684 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13685       ;;
13686     esac
13687   fi
13688   ;;
13689 esac
13690
13691 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13692 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13693 library_names_spec=
13694 libname_spec='lib$name'
13695 soname_spec=
13696 shrext_cmds=".so"
13697 postinstall_cmds=
13698 postuninstall_cmds=
13699 finish_cmds=
13700 finish_eval=
13701 shlibpath_var=
13702 shlibpath_overrides_runpath=unknown
13703 version_type=none
13704 dynamic_linker="$host_os ld.so"
13705 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13706 if test "$GCC" = yes; then
13707   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13708   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13709     # if the path contains ";" then we assume it to be the separator
13710     # otherwise default to the standard path separator (i.e. ":") - it is
13711     # assumed that no part of a normal pathname contains ";" but that should
13712     # okay in the real world where ";" in dirpaths is itself problematic.
13713     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13714   else
13715     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13716   fi
13717 else
13718   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13719 fi
13720 need_lib_prefix=unknown
13721 hardcode_into_libs=no
13722
13723 # when you set need_version to no, make sure it does not cause -set_version
13724 # flags to be left without arguments
13725 need_version=unknown
13726
13727 case $host_os in
13728 aix3*)
13729   version_type=linux
13730   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13731   shlibpath_var=LIBPATH
13732
13733   # AIX 3 has no versioning support, so we append a major version to the name.
13734   soname_spec='${libname}${release}${shared_ext}$major'
13735   ;;
13736
13737 aix4* | aix5*)
13738   version_type=linux
13739   need_lib_prefix=no
13740   need_version=no
13741   hardcode_into_libs=yes
13742   if test "$host_cpu" = ia64; then
13743     # AIX 5 supports IA64
13744     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13745     shlibpath_var=LD_LIBRARY_PATH
13746   else
13747     # With GCC up to 2.95.x, collect2 would create an import file
13748     # for dependence libraries.  The import file would start with
13749     # the line `#! .'.  This would cause the generated library to
13750     # depend on `.', always an invalid library.  This was fixed in
13751     # development snapshots of GCC prior to 3.0.
13752     case $host_os in
13753       aix4 | aix4.[01] | aix4.[01].*)
13754       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13755            echo ' yes '
13756            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13757         :
13758       else
13759         can_build_shared=no
13760       fi
13761       ;;
13762     esac
13763     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13764     # soname into executable. Probably we can add versioning support to
13765     # collect2, so additional links can be useful in future.
13766     if test "$aix_use_runtimelinking" = yes; then
13767       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13768       # instead of lib<name>.a to let people know that these are not
13769       # typical AIX shared libraries.
13770       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13771     else
13772       # We preserve .a as extension for shared libraries through AIX4.2
13773       # and later when we are not doing run time linking.
13774       library_names_spec='${libname}${release}.a $libname.a'
13775       soname_spec='${libname}${release}${shared_ext}$major'
13776     fi
13777     shlibpath_var=LIBPATH
13778   fi
13779   ;;
13780
13781 amigaos*)
13782   library_names_spec='$libname.ixlibrary $libname.a'
13783   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13784   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'
13785   ;;
13786
13787 beos*)
13788   library_names_spec='${libname}${shared_ext}'
13789   dynamic_linker="$host_os ld.so"
13790   shlibpath_var=LIBRARY_PATH
13791   ;;
13792
13793 bsdi[45]*)
13794   version_type=linux
13795   need_version=no
13796   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13797   soname_spec='${libname}${release}${shared_ext}$major'
13798   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13799   shlibpath_var=LD_LIBRARY_PATH
13800   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13801   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13802   # the default ld.so.conf also contains /usr/contrib/lib and
13803   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13804   # libtool to hard-code these into programs
13805   ;;
13806
13807 cygwin* | mingw* | pw32*)
13808   version_type=windows
13809   shrext_cmds=".dll"
13810   need_version=no
13811   need_lib_prefix=no
13812
13813   case $GCC,$host_os in
13814   yes,cygwin* | yes,mingw* | yes,pw32*)
13815     library_names_spec='$libname.dll.a'
13816     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13817     postinstall_cmds='base_file=`basename \${file}`~
13818       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13819       dldir=$destdir/`dirname \$dlpath`~
13820       test -d \$dldir || mkdir -p \$dldir~
13821       $install_prog $dir/$dlname \$dldir/$dlname~
13822       chmod a+x \$dldir/$dlname'
13823     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13824       dlpath=$dir/\$dldll~
13825        $rm \$dlpath'
13826     shlibpath_overrides_runpath=yes
13827
13828     case $host_os in
13829     cygwin*)
13830       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13831       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13832       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13833       ;;
13834     mingw*)
13835       # MinGW DLLs use traditional 'lib' prefix
13836       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13837       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13838       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13839         # It is most probably a Windows format PATH printed by
13840         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13841         # path with ; separators, and with drive letters. We can handle the
13842         # drive letters (cygwin fileutils understands them), so leave them,
13843         # especially as we might pass files found there to a mingw objdump,
13844         # which wouldn't understand a cygwinified path. Ahh.
13845         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13846       else
13847         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13848       fi
13849       ;;
13850     pw32*)
13851       # pw32 DLLs use 'pw' prefix rather than 'lib'
13852       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13853       ;;
13854     esac
13855     ;;
13856
13857   *)
13858     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13859     ;;
13860   esac
13861   dynamic_linker='Win32 ld.exe'
13862   # FIXME: first we should search . and the directory the executable is in
13863   shlibpath_var=PATH
13864   ;;
13865
13866 darwin* | rhapsody*)
13867   dynamic_linker="$host_os dyld"
13868   version_type=darwin
13869   need_lib_prefix=no
13870   need_version=no
13871   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13872   soname_spec='${libname}${release}${major}$shared_ext'
13873   shlibpath_overrides_runpath=yes
13874   shlibpath_var=DYLD_LIBRARY_PATH
13875   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13876   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13877   if test "$GCC" = yes; then
13878     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
13879   else
13880     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13881   fi
13882   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13883   ;;
13884
13885 dgux*)
13886   version_type=linux
13887   need_lib_prefix=no
13888   need_version=no
13889   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13890   soname_spec='${libname}${release}${shared_ext}$major'
13891   shlibpath_var=LD_LIBRARY_PATH
13892   ;;
13893
13894 freebsd1*)
13895   dynamic_linker=no
13896   ;;
13897
13898 freebsd* | dragonfly*)
13899   # DragonFly does not have aout.  When/if they implement a new
13900   # versioning mechanism, adjust this.
13901   if test -x /usr/bin/objformat; then
13902     objformat=`/usr/bin/objformat`
13903   else
13904     case $host_os in
13905     freebsd[123]*) objformat=aout ;;
13906     *) objformat=elf ;;
13907     esac
13908   fi
13909   version_type=freebsd-$objformat
13910   case $version_type in
13911     freebsd-elf*)
13912       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13913       need_version=no
13914       need_lib_prefix=no
13915       ;;
13916     freebsd-*)
13917       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13918       need_version=yes
13919       ;;
13920   esac
13921   shlibpath_var=LD_LIBRARY_PATH
13922   case $host_os in
13923   freebsd2*)
13924     shlibpath_overrides_runpath=yes
13925     ;;
13926   freebsd3.[01]* | freebsdelf3.[01]*)
13927     shlibpath_overrides_runpath=yes
13928     hardcode_into_libs=yes
13929     ;;
13930   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13931   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13932     shlibpath_overrides_runpath=no
13933     hardcode_into_libs=yes
13934     ;;
13935   freebsd*) # from 4.6 on
13936     shlibpath_overrides_runpath=yes
13937     hardcode_into_libs=yes
13938     ;;
13939   esac
13940   ;;
13941
13942 gnu*)
13943   version_type=linux
13944   need_lib_prefix=no
13945   need_version=no
13946   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13947   soname_spec='${libname}${release}${shared_ext}$major'
13948   shlibpath_var=LD_LIBRARY_PATH
13949   hardcode_into_libs=yes
13950   ;;
13951
13952 hpux9* | hpux10* | hpux11*)
13953   # Give a soname corresponding to the major version so that dld.sl refuses to
13954   # link against other versions.
13955   version_type=sunos
13956   need_lib_prefix=no
13957   need_version=no
13958   case $host_cpu in
13959   ia64*)
13960     shrext_cmds='.so'
13961     hardcode_into_libs=yes
13962     dynamic_linker="$host_os dld.so"
13963     shlibpath_var=LD_LIBRARY_PATH
13964     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13965     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13966     soname_spec='${libname}${release}${shared_ext}$major'
13967     if test "X$HPUX_IA64_MODE" = X32; then
13968       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13969     else
13970       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13971     fi
13972     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13973     ;;
13974    hppa*64*)
13975      shrext_cmds='.sl'
13976      hardcode_into_libs=yes
13977      dynamic_linker="$host_os dld.sl"
13978      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13979      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13980      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13981      soname_spec='${libname}${release}${shared_ext}$major'
13982      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13983      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13984      ;;
13985    *)
13986     shrext_cmds='.sl'
13987     dynamic_linker="$host_os dld.sl"
13988     shlibpath_var=SHLIB_PATH
13989     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13990     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13991     soname_spec='${libname}${release}${shared_ext}$major'
13992     ;;
13993   esac
13994   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13995   postinstall_cmds='chmod 555 $lib'
13996   ;;
13997
13998 interix3*)
13999   version_type=linux
14000   need_lib_prefix=no
14001   need_version=no
14002   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14003   soname_spec='${libname}${release}${shared_ext}$major'
14004   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14005   shlibpath_var=LD_LIBRARY_PATH
14006   shlibpath_overrides_runpath=no
14007   hardcode_into_libs=yes
14008   ;;
14009
14010 irix5* | irix6* | nonstopux*)
14011   case $host_os in
14012     nonstopux*) version_type=nonstopux ;;
14013     *)
14014         if test "$lt_cv_prog_gnu_ld" = yes; then
14015                 version_type=linux
14016         else
14017                 version_type=irix
14018         fi ;;
14019   esac
14020   need_lib_prefix=no
14021   need_version=no
14022   soname_spec='${libname}${release}${shared_ext}$major'
14023   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14024   case $host_os in
14025   irix5* | nonstopux*)
14026     libsuff= shlibsuff=
14027     ;;
14028   *)
14029     case $LD in # libtool.m4 will add one of these switches to LD
14030     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14031       libsuff= shlibsuff= libmagic=32-bit;;
14032     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14033       libsuff=32 shlibsuff=N32 libmagic=N32;;
14034     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14035       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14036     *) libsuff= shlibsuff= libmagic=never-match;;
14037     esac
14038     ;;
14039   esac
14040   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14041   shlibpath_overrides_runpath=no
14042   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14043   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14044   hardcode_into_libs=yes
14045   ;;
14046
14047 # No shared lib support for Linux oldld, aout, or coff.
14048 linux*oldld* | linux*aout* | linux*coff*)
14049   dynamic_linker=no
14050   ;;
14051
14052 # This must be Linux ELF.
14053 linux* | k*bsd*-gnu)
14054   version_type=linux
14055   need_lib_prefix=no
14056   need_version=no
14057   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14058   soname_spec='${libname}${release}${shared_ext}$major'
14059   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14060   shlibpath_var=LD_LIBRARY_PATH
14061   shlibpath_overrides_runpath=no
14062   # This implies no fast_install, which is unacceptable.
14063   # Some rework will be needed to allow for fast_install
14064   # before this can be enabled.
14065   hardcode_into_libs=yes
14066
14067   # Append ld.so.conf contents to the search path
14068   if test -f /etc/ld.so.conf; then
14069     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14070     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14071   fi
14072
14073   # We used to test for /lib/ld.so.1 and disable shared libraries on
14074   # powerpc, because MkLinux only supported shared libraries with the
14075   # GNU dynamic linker.  Since this was broken with cross compilers,
14076   # most powerpc-linux boxes support dynamic linking these days and
14077   # people can always --disable-shared, the test was removed, and we
14078   # assume the GNU/Linux dynamic linker is in use.
14079   dynamic_linker='GNU/Linux ld.so'
14080   ;;
14081
14082 netbsdelf*-gnu)
14083   version_type=linux
14084   need_lib_prefix=no
14085   need_version=no
14086   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14087   soname_spec='${libname}${release}${shared_ext}$major'
14088   shlibpath_var=LD_LIBRARY_PATH
14089   shlibpath_overrides_runpath=no
14090   hardcode_into_libs=yes
14091   dynamic_linker='NetBSD ld.elf_so'
14092   ;;
14093
14094 netbsd*)
14095   version_type=sunos
14096   need_lib_prefix=no
14097   need_version=no
14098   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14099     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14100     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14101     dynamic_linker='NetBSD (a.out) ld.so'
14102   else
14103     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14104     soname_spec='${libname}${release}${shared_ext}$major'
14105     dynamic_linker='NetBSD ld.elf_so'
14106   fi
14107   shlibpath_var=LD_LIBRARY_PATH
14108   shlibpath_overrides_runpath=yes
14109   hardcode_into_libs=yes
14110   ;;
14111
14112 newsos6)
14113   version_type=linux
14114   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14115   shlibpath_var=LD_LIBRARY_PATH
14116   shlibpath_overrides_runpath=yes
14117   ;;
14118
14119 nto-qnx*)
14120   version_type=linux
14121   need_lib_prefix=no
14122   need_version=no
14123   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14124   soname_spec='${libname}${release}${shared_ext}$major'
14125   shlibpath_var=LD_LIBRARY_PATH
14126   shlibpath_overrides_runpath=yes
14127   ;;
14128
14129 openbsd*)
14130   version_type=sunos
14131   sys_lib_dlsearch_path_spec="/usr/lib"
14132   need_lib_prefix=no
14133   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14134   case $host_os in
14135     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14136     *)                         need_version=no  ;;
14137   esac
14138   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14139   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14140   shlibpath_var=LD_LIBRARY_PATH
14141   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14142     case $host_os in
14143       openbsd2.[89] | openbsd2.[89].*)
14144         shlibpath_overrides_runpath=no
14145         ;;
14146       *)
14147         shlibpath_overrides_runpath=yes
14148         ;;
14149       esac
14150   else
14151     shlibpath_overrides_runpath=yes
14152   fi
14153   ;;
14154
14155 os2*)
14156   libname_spec='$name'
14157   shrext_cmds=".dll"
14158   need_lib_prefix=no
14159   library_names_spec='$libname${shared_ext} $libname.a'
14160   dynamic_linker='OS/2 ld.exe'
14161   shlibpath_var=LIBPATH
14162   ;;
14163
14164 osf3* | osf4* | osf5*)
14165   version_type=osf
14166   need_lib_prefix=no
14167   need_version=no
14168   soname_spec='${libname}${release}${shared_ext}$major'
14169   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14170   shlibpath_var=LD_LIBRARY_PATH
14171   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14172   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14173   ;;
14174
14175 solaris*)
14176   version_type=linux
14177   need_lib_prefix=no
14178   need_version=no
14179   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14180   soname_spec='${libname}${release}${shared_ext}$major'
14181   shlibpath_var=LD_LIBRARY_PATH
14182   shlibpath_overrides_runpath=yes
14183   hardcode_into_libs=yes
14184   # ldd complains unless libraries are executable
14185   postinstall_cmds='chmod +x $lib'
14186   ;;
14187
14188 sunos4*)
14189   version_type=sunos
14190   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14191   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14192   shlibpath_var=LD_LIBRARY_PATH
14193   shlibpath_overrides_runpath=yes
14194   if test "$with_gnu_ld" = yes; then
14195     need_lib_prefix=no
14196   fi
14197   need_version=yes
14198   ;;
14199
14200 sysv4 | sysv4.3*)
14201   version_type=linux
14202   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14203   soname_spec='${libname}${release}${shared_ext}$major'
14204   shlibpath_var=LD_LIBRARY_PATH
14205   case $host_vendor in
14206     sni)
14207       shlibpath_overrides_runpath=no
14208       need_lib_prefix=no
14209       export_dynamic_flag_spec='${wl}-Blargedynsym'
14210       runpath_var=LD_RUN_PATH
14211       ;;
14212     siemens)
14213       need_lib_prefix=no
14214       ;;
14215     motorola)
14216       need_lib_prefix=no
14217       need_version=no
14218       shlibpath_overrides_runpath=no
14219       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14220       ;;
14221   esac
14222   ;;
14223
14224 sysv4*MP*)
14225   if test -d /usr/nec ;then
14226     version_type=linux
14227     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14228     soname_spec='$libname${shared_ext}.$major'
14229     shlibpath_var=LD_LIBRARY_PATH
14230   fi
14231   ;;
14232
14233 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14234   version_type=freebsd-elf
14235   need_lib_prefix=no
14236   need_version=no
14237   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14238   soname_spec='${libname}${release}${shared_ext}$major'
14239   shlibpath_var=LD_LIBRARY_PATH
14240   hardcode_into_libs=yes
14241   if test "$with_gnu_ld" = yes; then
14242     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14243     shlibpath_overrides_runpath=no
14244   else
14245     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14246     shlibpath_overrides_runpath=yes
14247     case $host_os in
14248       sco3.2v5*)
14249         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14250         ;;
14251     esac
14252   fi
14253   sys_lib_dlsearch_path_spec='/usr/lib'
14254   ;;
14255
14256 uts4*)
14257   version_type=linux
14258   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14259   soname_spec='${libname}${release}${shared_ext}$major'
14260   shlibpath_var=LD_LIBRARY_PATH
14261   ;;
14262
14263 *)
14264   dynamic_linker=no
14265   ;;
14266 esac
14267 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14268 echo "${ECHO_T}$dynamic_linker" >&6; }
14269 test "$dynamic_linker" = no && can_build_shared=no
14270
14271 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14272 if test "$GCC" = yes; then
14273   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14274 fi
14275
14276 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14277 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
14278 hardcode_action_CXX=
14279 if test -n "$hardcode_libdir_flag_spec_CXX" || \
14280    test -n "$runpath_var_CXX" || \
14281    test "X$hardcode_automatic_CXX" = "Xyes" ; then
14282
14283   # We can hardcode non-existant directories.
14284   if test "$hardcode_direct_CXX" != no &&
14285      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14286      # have to relink, otherwise we might link with an installed library
14287      # when we should be linking with a yet-to-be-installed one
14288      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14289      test "$hardcode_minus_L_CXX" != no; then
14290     # Linking always hardcodes the temporary library directory.
14291     hardcode_action_CXX=relink
14292   else
14293     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14294     hardcode_action_CXX=immediate
14295   fi
14296 else
14297   # We cannot hardcode anything, or else we can only hardcode existing
14298   # directories.
14299   hardcode_action_CXX=unsupported
14300 fi
14301 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14302 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
14303
14304 if test "$hardcode_action_CXX" = relink; then
14305   # Fast installation is not supported
14306   enable_fast_install=no
14307 elif test "$shlibpath_overrides_runpath" = yes ||
14308      test "$enable_shared" = no; then
14309   # Fast installation is not necessary
14310   enable_fast_install=needless
14311 fi
14312
14313
14314 # The else clause should only fire when bootstrapping the
14315 # libtool distribution, otherwise you forgot to ship ltmain.sh
14316 # with your package, and you will get complaints that there are
14317 # no rules to generate ltmain.sh.
14318 if test -f "$ltmain"; then
14319   # See if we are running on zsh, and set the options which allow our commands through
14320   # without removal of \ escapes.
14321   if test -n "${ZSH_VERSION+set}" ; then
14322     setopt NO_GLOB_SUBST
14323   fi
14324   # Now quote all the things that may contain metacharacters while being
14325   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14326   # variables and quote the copies for generation of the libtool script.
14327   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14328     SED SHELL STRIP \
14329     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14330     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14331     deplibs_check_method reload_flag reload_cmds need_locks \
14332     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14333     lt_cv_sys_global_symbol_to_c_name_address \
14334     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14335     old_postinstall_cmds old_postuninstall_cmds \
14336     compiler_CXX \
14337     CC_CXX \
14338     LD_CXX \
14339     lt_prog_compiler_wl_CXX \
14340     lt_prog_compiler_pic_CXX \
14341     lt_prog_compiler_static_CXX \
14342     lt_prog_compiler_no_builtin_flag_CXX \
14343     export_dynamic_flag_spec_CXX \
14344     thread_safe_flag_spec_CXX \
14345     whole_archive_flag_spec_CXX \
14346     enable_shared_with_static_runtimes_CXX \
14347     old_archive_cmds_CXX \
14348     old_archive_from_new_cmds_CXX \
14349     predep_objects_CXX \
14350     postdep_objects_CXX \
14351     predeps_CXX \
14352     postdeps_CXX \
14353     compiler_lib_search_path_CXX \
14354     archive_cmds_CXX \
14355     archive_expsym_cmds_CXX \
14356     postinstall_cmds_CXX \
14357     postuninstall_cmds_CXX \
14358     old_archive_from_expsyms_cmds_CXX \
14359     allow_undefined_flag_CXX \
14360     no_undefined_flag_CXX \
14361     export_symbols_cmds_CXX \
14362     hardcode_libdir_flag_spec_CXX \
14363     hardcode_libdir_flag_spec_ld_CXX \
14364     hardcode_libdir_separator_CXX \
14365     hardcode_automatic_CXX \
14366     module_cmds_CXX \
14367     module_expsym_cmds_CXX \
14368     lt_cv_prog_compiler_c_o_CXX \
14369     exclude_expsyms_CXX \
14370     include_expsyms_CXX; do
14371
14372     case $var in
14373     old_archive_cmds_CXX | \
14374     old_archive_from_new_cmds_CXX | \
14375     archive_cmds_CXX | \
14376     archive_expsym_cmds_CXX | \
14377     module_cmds_CXX | \
14378     module_expsym_cmds_CXX | \
14379     old_archive_from_expsyms_cmds_CXX | \
14380     export_symbols_cmds_CXX | \
14381     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14382     postinstall_cmds | postuninstall_cmds | \
14383     old_postinstall_cmds | old_postuninstall_cmds | \
14384     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14385       # Double-quote double-evaled strings.
14386       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14387       ;;
14388     *)
14389       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14390       ;;
14391     esac
14392   done
14393
14394   case $lt_echo in
14395   *'\$0 --fallback-echo"')
14396     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14397     ;;
14398   esac
14399
14400 cfgfile="$ofile"
14401
14402   cat <<__EOF__ >> "$cfgfile"
14403 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14404
14405 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14406
14407 # Shell to use when invoking shell scripts.
14408 SHELL=$lt_SHELL
14409
14410 # Whether or not to build shared libraries.
14411 build_libtool_libs=$enable_shared
14412
14413 # Whether or not to build static libraries.
14414 build_old_libs=$enable_static
14415
14416 # Whether or not to add -lc for building shared libraries.
14417 build_libtool_need_lc=$archive_cmds_need_lc_CXX
14418
14419 # Whether or not to disallow shared libs when runtime libs are static
14420 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14421
14422 # Whether or not to optimize for fast installation.
14423 fast_install=$enable_fast_install
14424
14425 # The host system.
14426 host_alias=$host_alias
14427 host=$host
14428 host_os=$host_os
14429
14430 # The build system.
14431 build_alias=$build_alias
14432 build=$build
14433 build_os=$build_os
14434
14435 # An echo program that does not interpret backslashes.
14436 echo=$lt_echo
14437
14438 # The archiver.
14439 AR=$lt_AR
14440 AR_FLAGS=$lt_AR_FLAGS
14441
14442 # A C compiler.
14443 LTCC=$lt_LTCC
14444
14445 # LTCC compiler flags.
14446 LTCFLAGS=$lt_LTCFLAGS
14447
14448 # A language-specific compiler.
14449 CC=$lt_compiler_CXX
14450
14451 # Is the compiler the GNU C compiler?
14452 with_gcc=$GCC_CXX
14453
14454 # An ERE matcher.
14455 EGREP=$lt_EGREP
14456
14457 # The linker used to build libraries.
14458 LD=$lt_LD_CXX
14459
14460 # Whether we need hard or soft links.
14461 LN_S=$lt_LN_S
14462
14463 # A BSD-compatible nm program.
14464 NM=$lt_NM
14465
14466 # A symbol stripping program
14467 STRIP=$lt_STRIP
14468
14469 # Used to examine libraries when file_magic_cmd begins "file"
14470 MAGIC_CMD=$MAGIC_CMD
14471
14472 # Used on cygwin: DLL creation program.
14473 DLLTOOL="$DLLTOOL"
14474
14475 # Used on cygwin: object dumper.
14476 OBJDUMP="$OBJDUMP"
14477
14478 # Used on cygwin: assembler.
14479 AS="$AS"
14480
14481 # The name of the directory that contains temporary libtool files.
14482 objdir=$objdir
14483
14484 # How to create reloadable object files.
14485 reload_flag=$lt_reload_flag
14486 reload_cmds=$lt_reload_cmds
14487
14488 # How to pass a linker flag through the compiler.
14489 wl=$lt_lt_prog_compiler_wl_CXX
14490
14491 # Object file suffix (normally "o").
14492 objext="$ac_objext"
14493
14494 # Old archive suffix (normally "a").
14495 libext="$libext"
14496
14497 # Shared library suffix (normally ".so").
14498 shrext_cmds='$shrext_cmds'
14499
14500 # Executable file suffix (normally "").
14501 exeext="$exeext"
14502
14503 # Additional compiler flags for building library objects.
14504 pic_flag=$lt_lt_prog_compiler_pic_CXX
14505 pic_mode=$pic_mode
14506
14507 # What is the maximum length of a command?
14508 max_cmd_len=$lt_cv_sys_max_cmd_len
14509
14510 # Does compiler simultaneously support -c and -o options?
14511 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14512
14513 # Must we lock files when doing compilation?
14514 need_locks=$lt_need_locks
14515
14516 # Do we need the lib prefix for modules?
14517 need_lib_prefix=$need_lib_prefix
14518
14519 # Do we need a version for libraries?
14520 need_version=$need_version
14521
14522 # Whether dlopen is supported.
14523 dlopen_support=$enable_dlopen
14524
14525 # Whether dlopen of programs is supported.
14526 dlopen_self=$enable_dlopen_self
14527
14528 # Whether dlopen of statically linked programs is supported.
14529 dlopen_self_static=$enable_dlopen_self_static
14530
14531 # Compiler flag to prevent dynamic linking.
14532 link_static_flag=$lt_lt_prog_compiler_static_CXX
14533
14534 # Compiler flag to turn off builtin functions.
14535 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14536
14537 # Compiler flag to allow reflexive dlopens.
14538 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14539
14540 # Compiler flag to generate shared objects directly from archives.
14541 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14542
14543 # Compiler flag to generate thread-safe objects.
14544 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14545
14546 # Library versioning type.
14547 version_type=$version_type
14548
14549 # Format of library name prefix.
14550 libname_spec=$lt_libname_spec
14551
14552 # List of archive names.  First name is the real one, the rest are links.
14553 # The last name is the one that the linker finds with -lNAME.
14554 library_names_spec=$lt_library_names_spec
14555
14556 # The coded name of the library, if different from the real name.
14557 soname_spec=$lt_soname_spec
14558
14559 # Commands used to build and install an old-style archive.
14560 RANLIB=$lt_RANLIB
14561 old_archive_cmds=$lt_old_archive_cmds_CXX
14562 old_postinstall_cmds=$lt_old_postinstall_cmds
14563 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14564
14565 # Create an old-style archive from a shared archive.
14566 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14567
14568 # Create a temporary old-style archive to link instead of a shared archive.
14569 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14570
14571 # Commands used to build and install a shared archive.
14572 archive_cmds=$lt_archive_cmds_CXX
14573 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14574 postinstall_cmds=$lt_postinstall_cmds
14575 postuninstall_cmds=$lt_postuninstall_cmds
14576
14577 # Commands used to build a loadable module (assumed same as above if empty)
14578 module_cmds=$lt_module_cmds_CXX
14579 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14580
14581 # Commands to strip libraries.
14582 old_striplib=$lt_old_striplib
14583 striplib=$lt_striplib
14584
14585 # Dependencies to place before the objects being linked to create a
14586 # shared library.
14587 predep_objects=$lt_predep_objects_CXX
14588
14589 # Dependencies to place after the objects being linked to create a
14590 # shared library.
14591 postdep_objects=$lt_postdep_objects_CXX
14592
14593 # Dependencies to place before the objects being linked to create a
14594 # shared library.
14595 predeps=$lt_predeps_CXX
14596
14597 # Dependencies to place after the objects being linked to create a
14598 # shared library.
14599 postdeps=$lt_postdeps_CXX
14600
14601 # The library search path used internally by the compiler when linking
14602 # a shared library.
14603 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14604
14605 # Method to check whether dependent libraries are shared objects.
14606 deplibs_check_method=$lt_deplibs_check_method
14607
14608 # Command to use when deplibs_check_method == file_magic.
14609 file_magic_cmd=$lt_file_magic_cmd
14610
14611 # Flag that allows shared libraries with undefined symbols to be built.
14612 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14613
14614 # Flag that forces no undefined symbols.
14615 no_undefined_flag=$lt_no_undefined_flag_CXX
14616
14617 # Commands used to finish a libtool library installation in a directory.
14618 finish_cmds=$lt_finish_cmds
14619
14620 # Same as above, but a single script fragment to be evaled but not shown.
14621 finish_eval=$lt_finish_eval
14622
14623 # Take the output of nm and produce a listing of raw symbols and C names.
14624 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14625
14626 # Transform the output of nm in a proper C declaration
14627 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14628
14629 # Transform the output of nm in a C name address pair
14630 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14631
14632 # This is the shared library runtime path variable.
14633 runpath_var=$runpath_var
14634
14635 # This is the shared library path variable.
14636 shlibpath_var=$shlibpath_var
14637
14638 # Is shlibpath searched before the hard-coded library search path?
14639 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14640
14641 # How to hardcode a shared library path into an executable.
14642 hardcode_action=$hardcode_action_CXX
14643
14644 # Whether we should hardcode library paths into libraries.
14645 hardcode_into_libs=$hardcode_into_libs
14646
14647 # Flag to hardcode \$libdir into a binary during linking.
14648 # This must work even if \$libdir does not exist.
14649 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14650
14651 # If ld is used when linking, flag to hardcode \$libdir into
14652 # a binary during linking. This must work even if \$libdir does
14653 # not exist.
14654 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14655
14656 # Whether we need a single -rpath flag with a separated argument.
14657 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14658
14659 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14660 # resulting binary.
14661 hardcode_direct=$hardcode_direct_CXX
14662
14663 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14664 # resulting binary.
14665 hardcode_minus_L=$hardcode_minus_L_CXX
14666
14667 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14668 # the resulting binary.
14669 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14670
14671 # Set to yes if building a shared library automatically hardcodes DIR into the library
14672 # and all subsequent libraries and executables linked against it.
14673 hardcode_automatic=$hardcode_automatic_CXX
14674
14675 # Variables whose values should be saved in libtool wrapper scripts and
14676 # restored at relink time.
14677 variables_saved_for_relink="$variables_saved_for_relink"
14678
14679 # Whether libtool must link a program against all its dependency libraries.
14680 link_all_deplibs=$link_all_deplibs_CXX
14681
14682 # Compile-time system search path for libraries
14683 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14684
14685 # Run-time system search path for libraries
14686 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14687
14688 # Fix the shell variable \$srcfile for the compiler.
14689 fix_srcfile_path="$fix_srcfile_path_CXX"
14690
14691 # Set to yes if exported symbols are required.
14692 always_export_symbols=$always_export_symbols_CXX
14693
14694 # The commands to list exported symbols.
14695 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14696
14697 # The commands to extract the exported symbol list from a shared archive.
14698 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14699
14700 # Symbols that should not be listed in the preloaded symbols.
14701 exclude_expsyms=$lt_exclude_expsyms_CXX
14702
14703 # Symbols that must always be exported.
14704 include_expsyms=$lt_include_expsyms_CXX
14705
14706 # ### END LIBTOOL TAG CONFIG: $tagname
14707
14708 __EOF__
14709
14710
14711 else
14712   # If there is no Makefile yet, we rely on a make rule to execute
14713   # `config.status --recheck' to rerun these tests and create the
14714   # libtool script then.
14715   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14716   if test -f "$ltmain_in"; then
14717     test -f Makefile && make "$ltmain"
14718   fi
14719 fi
14720
14721
14722 ac_ext=c
14723 ac_cpp='$CPP $CPPFLAGS'
14724 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14725 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14726 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14727
14728 CC=$lt_save_CC
14729 LDCXX=$LD
14730 LD=$lt_save_LD
14731 GCC=$lt_save_GCC
14732 with_gnu_ldcxx=$with_gnu_ld
14733 with_gnu_ld=$lt_save_with_gnu_ld
14734 lt_cv_path_LDCXX=$lt_cv_path_LD
14735 lt_cv_path_LD=$lt_save_path_LD
14736 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14737 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14738
14739         else
14740           tagname=""
14741         fi
14742         ;;
14743
14744       F77)
14745         if test -n "$F77" && test "X$F77" != "Xno"; then
14746           
14747 ac_ext=f
14748 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14749 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14750 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14751
14752
14753 archive_cmds_need_lc_F77=no
14754 allow_undefined_flag_F77=
14755 always_export_symbols_F77=no
14756 archive_expsym_cmds_F77=
14757 export_dynamic_flag_spec_F77=
14758 hardcode_direct_F77=no
14759 hardcode_libdir_flag_spec_F77=
14760 hardcode_libdir_flag_spec_ld_F77=
14761 hardcode_libdir_separator_F77=
14762 hardcode_minus_L_F77=no
14763 hardcode_automatic_F77=no
14764 module_cmds_F77=
14765 module_expsym_cmds_F77=
14766 link_all_deplibs_F77=unknown
14767 old_archive_cmds_F77=$old_archive_cmds
14768 no_undefined_flag_F77=
14769 whole_archive_flag_spec_F77=
14770 enable_shared_with_static_runtimes_F77=no
14771
14772 # Source file extension for f77 test sources.
14773 ac_ext=f
14774
14775 # Object file extension for compiled f77 test sources.
14776 objext=o
14777 objext_F77=$objext
14778
14779 # Code to be used in simple compile tests
14780 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
14781
14782 # Code to be used in simple link tests
14783 lt_simple_link_test_code="      program t\n      end\n"
14784
14785 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14786
14787 # If no C compiler was specified, use CC.
14788 LTCC=${LTCC-"$CC"}
14789
14790 # If no C compiler flags were specified, use CFLAGS.
14791 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14792
14793 # Allow CC to be a program name with arguments.
14794 compiler=$CC
14795
14796
14797 # save warnings/boilerplate of simple test code
14798 ac_outfile=conftest.$ac_objext
14799 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14800 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14801 _lt_compiler_boilerplate=`cat conftest.err`
14802 $rm conftest*
14803
14804 ac_outfile=conftest.$ac_objext
14805 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14806 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14807 _lt_linker_boilerplate=`cat conftest.err`
14808 $rm conftest*
14809
14810
14811 # Allow CC to be a program name with arguments.
14812 lt_save_CC="$CC"
14813 CC=${F77-"f77"}
14814 compiler=$CC
14815 compiler_F77=$CC
14816 for cc_temp in $compiler""; do
14817   case $cc_temp in
14818     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14819     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14820     \-*) ;;
14821     *) break;;
14822   esac
14823 done
14824 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14825
14826
14827 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14828 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14829 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14830 echo "${ECHO_T}$can_build_shared" >&6; }
14831
14832 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14833 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14834 test "$can_build_shared" = "no" && enable_shared=no
14835
14836 # On AIX, shared libraries and static libraries use the same namespace, and
14837 # are all built from PIC.
14838 case $host_os in
14839 aix3*)
14840   test "$enable_shared" = yes && enable_static=no
14841   if test -n "$RANLIB"; then
14842     archive_cmds="$archive_cmds~\$RANLIB \$lib"
14843     postinstall_cmds='$RANLIB $lib'
14844   fi
14845   ;;
14846 aix4* | aix5*)
14847   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14848     test "$enable_shared" = yes && enable_static=no
14849   fi
14850   ;;
14851 esac
14852 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14853 echo "${ECHO_T}$enable_shared" >&6; }
14854
14855 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14856 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14857 # Make sure either enable_shared or enable_static is yes.
14858 test "$enable_shared" = yes || enable_static=yes
14859 { echo "$as_me:$LINENO: result: $enable_static" >&5
14860 echo "${ECHO_T}$enable_static" >&6; }
14861
14862 GCC_F77="$G77"
14863 LD_F77="$LD"
14864
14865 lt_prog_compiler_wl_F77=
14866 lt_prog_compiler_pic_F77=
14867 lt_prog_compiler_static_F77=
14868
14869 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14870 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14871  
14872   if test "$GCC" = yes; then
14873     lt_prog_compiler_wl_F77='-Wl,'
14874     lt_prog_compiler_static_F77='-static'
14875
14876     case $host_os in
14877       aix*)
14878       # All AIX code is PIC.
14879       if test "$host_cpu" = ia64; then
14880         # AIX 5 now supports IA64 processor
14881         lt_prog_compiler_static_F77='-Bstatic'
14882       fi
14883       ;;
14884
14885     amigaos*)
14886       # FIXME: we need at least 68020 code to build shared libraries, but
14887       # adding the `-m68020' flag to GCC prevents building anything better,
14888       # like `-m68040'.
14889       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14890       ;;
14891
14892     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14893       # PIC is the default for these OSes.
14894       ;;
14895
14896     mingw* | pw32* | os2*)
14897       # This hack is so that the source file can tell whether it is being
14898       # built for inclusion in a dll (and should export symbols for example).
14899       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14900       ;;
14901
14902     darwin* | rhapsody*)
14903       # PIC is the default on this platform
14904       # Common symbols not allowed in MH_DYLIB files
14905       lt_prog_compiler_pic_F77='-fno-common'
14906       ;;
14907
14908     interix3*)
14909       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14910       # Instead, we relocate shared libraries at runtime.
14911       ;;
14912
14913     msdosdjgpp*)
14914       # Just because we use GCC doesn't mean we suddenly get shared libraries
14915       # on systems that don't support them.
14916       lt_prog_compiler_can_build_shared_F77=no
14917       enable_shared=no
14918       ;;
14919
14920     sysv4*MP*)
14921       if test -d /usr/nec; then
14922         lt_prog_compiler_pic_F77=-Kconform_pic
14923       fi
14924       ;;
14925
14926     hpux*)
14927       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14928       # not for PA HP-UX.
14929       case $host_cpu in
14930       hppa*64*|ia64*)
14931         # +Z the default
14932         ;;
14933       *)
14934         lt_prog_compiler_pic_F77='-fPIC'
14935         ;;
14936       esac
14937       ;;
14938
14939     *)
14940       lt_prog_compiler_pic_F77='-fPIC'
14941       ;;
14942     esac
14943   else
14944     # PORTME Check for flag to pass linker flags through the system compiler.
14945     case $host_os in
14946     aix*)
14947       lt_prog_compiler_wl_F77='-Wl,'
14948       if test "$host_cpu" = ia64; then
14949         # AIX 5 now supports IA64 processor
14950         lt_prog_compiler_static_F77='-Bstatic'
14951       else
14952         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14953       fi
14954       ;;
14955       darwin*)
14956         # PIC is the default on this platform
14957         # Common symbols not allowed in MH_DYLIB files
14958        case $cc_basename in
14959          xlc*)
14960          lt_prog_compiler_pic_F77='-qnocommon'
14961          lt_prog_compiler_wl_F77='-Wl,'
14962          ;;
14963        esac
14964        ;;
14965
14966     mingw* | pw32* | os2*)
14967       # This hack is so that the source file can tell whether it is being
14968       # built for inclusion in a dll (and should export symbols for example).
14969       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14970       ;;
14971
14972     hpux9* | hpux10* | hpux11*)
14973       lt_prog_compiler_wl_F77='-Wl,'
14974       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14975       # not for PA HP-UX.
14976       case $host_cpu in
14977       hppa*64*|ia64*)
14978         # +Z the default
14979         ;;
14980       *)
14981         lt_prog_compiler_pic_F77='+Z'
14982         ;;
14983       esac
14984       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14985       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14986       ;;
14987
14988     irix5* | irix6* | nonstopux*)
14989       lt_prog_compiler_wl_F77='-Wl,'
14990       # PIC (with -KPIC) is the default.
14991       lt_prog_compiler_static_F77='-non_shared'
14992       ;;
14993
14994     newsos6)
14995       lt_prog_compiler_pic_F77='-KPIC'
14996       lt_prog_compiler_static_F77='-Bstatic'
14997       ;;
14998
14999     linux* | k*bsd*-gnu)
15000       case $cc_basename in
15001       icc* | ecc*)
15002         lt_prog_compiler_wl_F77='-Wl,'
15003         lt_prog_compiler_pic_F77='-KPIC'
15004         lt_prog_compiler_static_F77='-static'
15005         ;;
15006       pgcc* | pgf77* | pgf90* | pgf95*)
15007         # Portland Group compilers (*not* the Pentium gcc compiler,
15008         # which looks to be a dead project)
15009         lt_prog_compiler_wl_F77='-Wl,'
15010         lt_prog_compiler_pic_F77='-fpic'
15011         lt_prog_compiler_static_F77='-Bstatic'
15012         ;;
15013       ccc*)
15014         lt_prog_compiler_wl_F77='-Wl,'
15015         # All Alpha code is PIC.
15016         lt_prog_compiler_static_F77='-non_shared'
15017         ;;
15018       esac
15019       ;;
15020
15021     osf3* | osf4* | osf5*)
15022       lt_prog_compiler_wl_F77='-Wl,'
15023       # All OSF/1 code is PIC.
15024       lt_prog_compiler_static_F77='-non_shared'
15025       ;;
15026
15027     solaris*)
15028       lt_prog_compiler_pic_F77='-KPIC'
15029       lt_prog_compiler_static_F77='-Bstatic'
15030       case $cc_basename in
15031       f77* | f90* | f95*)
15032         lt_prog_compiler_wl_F77='-Qoption ld ';;
15033       *)
15034         lt_prog_compiler_wl_F77='-Wl,';;
15035       esac
15036       ;;
15037
15038     sunos4*)
15039       lt_prog_compiler_wl_F77='-Qoption ld '
15040       lt_prog_compiler_pic_F77='-PIC'
15041       lt_prog_compiler_static_F77='-Bstatic'
15042       ;;
15043
15044     sysv4 | sysv4.2uw2* | sysv4.3*)
15045       lt_prog_compiler_wl_F77='-Wl,'
15046       lt_prog_compiler_pic_F77='-KPIC'
15047       lt_prog_compiler_static_F77='-Bstatic'
15048       ;;
15049
15050     sysv4*MP*)
15051       if test -d /usr/nec ;then
15052         lt_prog_compiler_pic_F77='-Kconform_pic'
15053         lt_prog_compiler_static_F77='-Bstatic'
15054       fi
15055       ;;
15056
15057     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15058       lt_prog_compiler_wl_F77='-Wl,'
15059       lt_prog_compiler_pic_F77='-KPIC'
15060       lt_prog_compiler_static_F77='-Bstatic'
15061       ;;
15062
15063     unicos*)
15064       lt_prog_compiler_wl_F77='-Wl,'
15065       lt_prog_compiler_can_build_shared_F77=no
15066       ;;
15067
15068     uts4*)
15069       lt_prog_compiler_pic_F77='-pic'
15070       lt_prog_compiler_static_F77='-Bstatic'
15071       ;;
15072
15073     *)
15074       lt_prog_compiler_can_build_shared_F77=no
15075       ;;
15076     esac
15077   fi
15078
15079 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15080 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
15081
15082 #
15083 # Check to make sure the PIC flag actually works.
15084 #
15085 if test -n "$lt_prog_compiler_pic_F77"; then
15086   
15087 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15088 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
15089 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15090   echo $ECHO_N "(cached) $ECHO_C" >&6
15091 else
15092   lt_prog_compiler_pic_works_F77=no
15093   ac_outfile=conftest.$ac_objext
15094    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15095    lt_compiler_flag="$lt_prog_compiler_pic_F77"
15096    # Insert the option either (1) after the last *FLAGS variable, or
15097    # (2) before a word containing "conftest.", or (3) at the end.
15098    # Note that $ac_compile itself does not contain backslashes and begins
15099    # with a dollar sign (not a hyphen), so the echo should work correctly.
15100    # The option is referenced via a variable to avoid confusing sed.
15101    lt_compile=`echo "$ac_compile" | $SED \
15102    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15103    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15104    -e 's:$: $lt_compiler_flag:'`
15105    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
15106    (eval "$lt_compile" 2>conftest.err)
15107    ac_status=$?
15108    cat conftest.err >&5
15109    echo "$as_me:__oline__: \$? = $ac_status" >&5
15110    if (exit $ac_status) && test -s "$ac_outfile"; then
15111      # The compiler can only warn and ignore the option if not recognized
15112      # So say no if there are warnings other than the usual output.
15113      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15114      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15115      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15116        lt_prog_compiler_pic_works_F77=yes
15117      fi
15118    fi
15119    $rm conftest*
15120
15121 fi
15122 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15123 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
15124
15125 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
15126     case $lt_prog_compiler_pic_F77 in
15127      "" | " "*) ;;
15128      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15129      esac
15130 else
15131     lt_prog_compiler_pic_F77=
15132      lt_prog_compiler_can_build_shared_F77=no
15133 fi
15134
15135 fi
15136 case $host_os in
15137   # For platforms which do not support PIC, -DPIC is meaningless:
15138   *djgpp*)
15139     lt_prog_compiler_pic_F77=
15140     ;;
15141   *)
15142     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15143     ;;
15144 esac
15145
15146 #
15147 # Check to make sure the static flag actually works.
15148 #
15149 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
15150 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15151 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15152 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
15153   echo $ECHO_N "(cached) $ECHO_C" >&6
15154 else
15155   lt_prog_compiler_static_works_F77=no
15156    save_LDFLAGS="$LDFLAGS"
15157    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15158    printf "$lt_simple_link_test_code" > conftest.$ac_ext
15159    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15160      # The linker can only warn and ignore the option if not recognized
15161      # So say no if there are warnings
15162      if test -s conftest.err; then
15163        # Append any errors to the config.log.
15164        cat conftest.err 1>&5
15165        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15166        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15167        if diff conftest.exp conftest.er2 >/dev/null; then
15168          lt_prog_compiler_static_works_F77=yes
15169        fi
15170      else
15171        lt_prog_compiler_static_works_F77=yes
15172      fi
15173    fi
15174    $rm conftest*
15175    LDFLAGS="$save_LDFLAGS"
15176
15177 fi
15178 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
15179 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
15180
15181 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
15182     :
15183 else
15184     lt_prog_compiler_static_F77=
15185 fi
15186
15187
15188 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15189 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15190 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15191   echo $ECHO_N "(cached) $ECHO_C" >&6
15192 else
15193   lt_cv_prog_compiler_c_o_F77=no
15194    $rm -r conftest 2>/dev/null
15195    mkdir conftest
15196    cd conftest
15197    mkdir out
15198    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15199
15200    lt_compiler_flag="-o out/conftest2.$ac_objext"
15201    # Insert the option either (1) after the last *FLAGS variable, or
15202    # (2) before a word containing "conftest.", or (3) at the end.
15203    # Note that $ac_compile itself does not contain backslashes and begins
15204    # with a dollar sign (not a hyphen), so the echo should work correctly.
15205    lt_compile=`echo "$ac_compile" | $SED \
15206    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15207    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15208    -e 's:$: $lt_compiler_flag:'`
15209    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
15210    (eval "$lt_compile" 2>out/conftest.err)
15211    ac_status=$?
15212    cat out/conftest.err >&5
15213    echo "$as_me:__oline__: \$? = $ac_status" >&5
15214    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15215    then
15216      # The compiler can only warn and ignore the option if not recognized
15217      # So say no if there are warnings
15218      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15219      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15220      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15221        lt_cv_prog_compiler_c_o_F77=yes
15222      fi
15223    fi
15224    chmod u+w . 2>&5
15225    $rm conftest*
15226    # SGI C++ compiler will create directory out/ii_files/ for
15227    # template instantiation
15228    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15229    $rm out/* && rmdir out
15230    cd ..
15231    rmdir conftest
15232    $rm conftest*
15233
15234 fi
15235 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15236 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
15237
15238
15239 hard_links="nottested"
15240 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15241   # do not overwrite the value of need_locks provided by the user
15242   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15243 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15244   hard_links=yes
15245   $rm conftest*
15246   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15247   touch conftest.a
15248   ln conftest.a conftest.b 2>&5 || hard_links=no
15249   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15250   { echo "$as_me:$LINENO: result: $hard_links" >&5
15251 echo "${ECHO_T}$hard_links" >&6; }
15252   if test "$hard_links" = no; then
15253     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15254 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15255     need_locks=warn
15256   fi
15257 else
15258   need_locks=no
15259 fi
15260
15261 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15262 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15263
15264   runpath_var=
15265   allow_undefined_flag_F77=
15266   enable_shared_with_static_runtimes_F77=no
15267   archive_cmds_F77=
15268   archive_expsym_cmds_F77=
15269   old_archive_From_new_cmds_F77=
15270   old_archive_from_expsyms_cmds_F77=
15271   export_dynamic_flag_spec_F77=
15272   whole_archive_flag_spec_F77=
15273   thread_safe_flag_spec_F77=
15274   hardcode_libdir_flag_spec_F77=
15275   hardcode_libdir_flag_spec_ld_F77=
15276   hardcode_libdir_separator_F77=
15277   hardcode_direct_F77=no
15278   hardcode_minus_L_F77=no
15279   hardcode_shlibpath_var_F77=unsupported
15280   link_all_deplibs_F77=unknown
15281   hardcode_automatic_F77=no
15282   module_cmds_F77=
15283   module_expsym_cmds_F77=
15284   always_export_symbols_F77=no
15285   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15286   # include_expsyms should be a list of space-separated symbols to be *always*
15287   # included in the symbol list
15288   include_expsyms_F77=
15289   # exclude_expsyms can be an extended regexp of symbols to exclude
15290   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15291   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15292   # as well as any symbol that contains `d'.
15293   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15294   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15295   # platforms (ab)use it in PIC code, but their linkers get confused if
15296   # the symbol is explicitly referenced.  Since portable code cannot
15297   # rely on this symbol name, it's probably fine to never include it in
15298   # preloaded symbol tables.
15299   extract_expsyms_cmds=
15300   # Just being paranoid about ensuring that cc_basename is set.
15301   for cc_temp in $compiler""; do
15302   case $cc_temp in
15303     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15304     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15305     \-*) ;;
15306     *) break;;
15307   esac
15308 done
15309 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15310
15311   case $host_os in
15312   cygwin* | mingw* | pw32*)
15313     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15314     # When not using gcc, we currently assume that we are using
15315     # Microsoft Visual C++.
15316     if test "$GCC" != yes; then
15317       with_gnu_ld=no
15318     fi
15319     ;;
15320   interix*)
15321     # we just hope/assume this is gcc and not c89 (= MSVC++)
15322     with_gnu_ld=yes
15323     ;;
15324   openbsd*)
15325     with_gnu_ld=no
15326     ;;
15327   esac
15328
15329   ld_shlibs_F77=yes
15330   if test "$with_gnu_ld" = yes; then
15331     # If archive_cmds runs LD, not CC, wlarc should be empty
15332     wlarc='${wl}'
15333
15334     # Set some defaults for GNU ld with shared library support. These
15335     # are reset later if shared libraries are not supported. Putting them
15336     # here allows them to be overridden if necessary.
15337     runpath_var=LD_RUN_PATH
15338     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15339     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15340     # ancient GNU ld didn't support --whole-archive et. al.
15341     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15342         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15343       else
15344         whole_archive_flag_spec_F77=
15345     fi
15346     supports_anon_versioning=no
15347     case `$LD -v 2>/dev/null` in
15348       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15349       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15350       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15351       *\ 2.11.*) ;; # other 2.11 versions
15352       *) supports_anon_versioning=yes ;;
15353     esac
15354
15355     # See if GNU ld supports shared libraries.
15356     case $host_os in
15357     aix3* | aix4* | aix5*)
15358       # On AIX/PPC, the GNU linker is very broken
15359       if test "$host_cpu" != ia64; then
15360         ld_shlibs_F77=no
15361         cat <<EOF 1>&2
15362
15363 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15364 *** to be unable to reliably create shared libraries on AIX.
15365 *** Therefore, libtool is disabling shared libraries support.  If you
15366 *** really care for shared libraries, you may want to modify your PATH
15367 *** so that a non-GNU linker is found, and then restart.
15368
15369 EOF
15370       fi
15371       ;;
15372
15373     amigaos*)
15374       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)'
15375       hardcode_libdir_flag_spec_F77='-L$libdir'
15376       hardcode_minus_L_F77=yes
15377
15378       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15379       # that the semantics of dynamic libraries on AmigaOS, at least up
15380       # to version 4, is to share data among multiple programs linked
15381       # with the same dynamic library.  Since this doesn't match the
15382       # behavior of shared libraries on other platforms, we can't use
15383       # them.
15384       ld_shlibs_F77=no
15385       ;;
15386
15387     beos*)
15388       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15389         allow_undefined_flag_F77=unsupported
15390         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15391         # support --undefined.  This deserves some investigation.  FIXME
15392         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15393       else
15394         ld_shlibs_F77=no
15395       fi
15396       ;;
15397
15398     cygwin* | mingw* | pw32*)
15399       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15400       # as there is no search path for DLLs.
15401       hardcode_libdir_flag_spec_F77='-L$libdir'
15402       allow_undefined_flag_F77=unsupported
15403       always_export_symbols_F77=no
15404       enable_shared_with_static_runtimes_F77=yes
15405       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15406
15407       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15408         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15409         # If the export-symbols file already is a .def file (1st line
15410         # is EXPORTS), use it as is; otherwise, prepend...
15411         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15412           cp $export_symbols $output_objdir/$soname.def;
15413         else
15414           echo EXPORTS > $output_objdir/$soname.def;
15415           cat $export_symbols >> $output_objdir/$soname.def;
15416         fi~
15417         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15418       else
15419         ld_shlibs_F77=no
15420       fi
15421       ;;
15422
15423     interix3*)
15424       hardcode_direct_F77=no
15425       hardcode_shlibpath_var_F77=no
15426       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15427       export_dynamic_flag_spec_F77='${wl}-E'
15428       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15429       # Instead, shared libraries are loaded at an image base (0x10000000 by
15430       # default) and relocated if they conflict, which is a slow very memory
15431       # consuming and fragmenting process.  To avoid this, we pick a random,
15432       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15433       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15434       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'
15435       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'
15436       ;;
15437
15438     linux* | k*bsd*-gnu)
15439       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15440         tmp_addflag=
15441         case $cc_basename,$host_cpu in
15442         pgcc*)                          # Portland Group C compiler
15443           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'
15444           tmp_addflag=' $pic_flag'
15445           ;;
15446         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
15447           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'
15448           tmp_addflag=' $pic_flag -Mnomain' ;;
15449         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
15450           tmp_addflag=' -i_dynamic' ;;
15451         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
15452           tmp_addflag=' -i_dynamic -nofor_main' ;;
15453         ifc* | ifort*)                  # Intel Fortran compiler
15454           tmp_addflag=' -nofor_main' ;;
15455         esac
15456         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15457
15458         if test $supports_anon_versioning = yes; then
15459           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15460   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15461   $echo "local: *; };" >> $output_objdir/$libname.ver~
15462           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15463         fi
15464         link_all_deplibs_F77=no
15465       else
15466         ld_shlibs_F77=no
15467       fi
15468       ;;
15469
15470     netbsd* | netbsdelf*-gnu)
15471       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15472         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15473         wlarc=
15474       else
15475         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15476         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15477       fi
15478       ;;
15479
15480     solaris*)
15481       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15482         ld_shlibs_F77=no
15483         cat <<EOF 1>&2
15484
15485 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15486 *** create shared libraries on Solaris systems.  Therefore, libtool
15487 *** is disabling shared libraries support.  We urge you to upgrade GNU
15488 *** binutils to release 2.9.1 or newer.  Another option is to modify
15489 *** your PATH or compiler configuration so that the native linker is
15490 *** used, and then restart.
15491
15492 EOF
15493       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15494         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15495         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15496       else
15497         ld_shlibs_F77=no
15498       fi
15499       ;;
15500
15501     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15502       case `$LD -v 2>&1` in
15503         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 
15504         ld_shlibs_F77=no
15505         cat <<_LT_EOF 1>&2
15506
15507 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15508 *** reliably create shared libraries on SCO systems.  Therefore, libtool
15509 *** is disabling shared libraries support.  We urge you to upgrade GNU
15510 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15511 *** your PATH or compiler configuration so that the native linker is
15512 *** used, and then restart.
15513
15514 _LT_EOF
15515         ;;
15516         *)
15517           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15518             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15519             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15520             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15521           else
15522             ld_shlibs_F77=no
15523           fi
15524         ;;
15525       esac
15526       ;;
15527
15528     sunos4*)
15529       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15530       wlarc=
15531       hardcode_direct_F77=yes
15532       hardcode_shlibpath_var_F77=no
15533       ;;
15534
15535     *)
15536       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15537         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15538         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15539       else
15540         ld_shlibs_F77=no
15541       fi
15542       ;;
15543     esac
15544
15545     if test "$ld_shlibs_F77" = no; then
15546       runpath_var=
15547       hardcode_libdir_flag_spec_F77=
15548       export_dynamic_flag_spec_F77=
15549       whole_archive_flag_spec_F77=
15550     fi
15551   else
15552     # PORTME fill in a description of your system's linker (not GNU ld)
15553     case $host_os in
15554     aix3*)
15555       allow_undefined_flag_F77=unsupported
15556       always_export_symbols_F77=yes
15557       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'
15558       # Note: this linker hardcodes the directories in LIBPATH if there
15559       # are no directories specified by -L.
15560       hardcode_minus_L_F77=yes
15561       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15562         # Neither direct hardcoding nor static linking is supported with a
15563         # broken collect2.
15564         hardcode_direct_F77=unsupported
15565       fi
15566       ;;
15567
15568     aix4* | aix5*)
15569       if test "$host_cpu" = ia64; then
15570         # On IA64, the linker does run time linking by default, so we don't
15571         # have to do anything special.
15572         aix_use_runtimelinking=no
15573         exp_sym_flag='-Bexport'
15574         no_entry_flag=""
15575       else
15576         # If we're using GNU nm, then we don't want the "-C" option.
15577         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15578         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15579           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'
15580         else
15581           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'
15582         fi
15583         aix_use_runtimelinking=no
15584
15585         # Test if we are trying to use run time linking or normal
15586         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15587         # need to do runtime linking.
15588         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15589           for ld_flag in $LDFLAGS; do
15590           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15591             aix_use_runtimelinking=yes
15592             break
15593           fi
15594           done
15595           ;;
15596         esac
15597
15598         exp_sym_flag='-bexport'
15599         no_entry_flag='-bnoentry'
15600       fi
15601
15602       # When large executables or shared objects are built, AIX ld can
15603       # have problems creating the table of contents.  If linking a library
15604       # or program results in "error TOC overflow" add -mminimal-toc to
15605       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15606       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15607
15608       archive_cmds_F77=''
15609       hardcode_direct_F77=yes
15610       hardcode_libdir_separator_F77=':'
15611       link_all_deplibs_F77=yes
15612
15613       if test "$GCC" = yes; then
15614         case $host_os in aix4.[012]|aix4.[012].*)
15615         # We only want to do this on AIX 4.2 and lower, the check
15616         # below for broken collect2 doesn't work under 4.3+
15617           collect2name=`${CC} -print-prog-name=collect2`
15618           if test -f "$collect2name" && \
15619            strings "$collect2name" | grep resolve_lib_name >/dev/null
15620           then
15621           # We have reworked collect2
15622           hardcode_direct_F77=yes
15623           else
15624           # We have old collect2
15625           hardcode_direct_F77=unsupported
15626           # It fails to find uninstalled libraries when the uninstalled
15627           # path is not listed in the libpath.  Setting hardcode_minus_L
15628           # to unsupported forces relinking
15629           hardcode_minus_L_F77=yes
15630           hardcode_libdir_flag_spec_F77='-L$libdir'
15631           hardcode_libdir_separator_F77=
15632           fi
15633           ;;
15634         esac
15635         shared_flag='-shared'
15636         if test "$aix_use_runtimelinking" = yes; then
15637           shared_flag="$shared_flag "'${wl}-G'
15638         fi
15639       else
15640         # not using gcc
15641         if test "$host_cpu" = ia64; then
15642         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15643         # chokes on -Wl,-G. The following line is correct:
15644           shared_flag='-G'
15645         else
15646           if test "$aix_use_runtimelinking" = yes; then
15647             shared_flag='${wl}-G'
15648           else
15649             shared_flag='${wl}-bM:SRE'
15650           fi
15651         fi
15652       fi
15653
15654       # It seems that -bexpall does not export symbols beginning with
15655       # underscore (_), so it is better to generate a list of symbols to export.
15656       always_export_symbols_F77=yes
15657       if test "$aix_use_runtimelinking" = yes; then
15658         # Warning - without using the other runtime loading flags (-brtl),
15659         # -berok will link without error, but may produce a broken library.
15660         allow_undefined_flag_F77='-berok'
15661        # Determine the default libpath from the value encoded in an empty executable.
15662        cat >conftest.$ac_ext <<_ACEOF
15663       program main
15664
15665       end
15666 _ACEOF
15667 rm -f conftest.$ac_objext conftest$ac_exeext
15668 if { (ac_try="$ac_link"
15669 case "(($ac_try" in
15670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15671   *) ac_try_echo=$ac_try;;
15672 esac
15673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15674   (eval "$ac_link") 2>conftest.er1
15675   ac_status=$?
15676   grep -v '^ *+' conftest.er1 >conftest.err
15677   rm -f conftest.er1
15678   cat conftest.err >&5
15679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15680   (exit $ac_status); } && {
15681          test -z "$ac_f77_werror_flag" ||
15682          test ! -s conftest.err
15683        } && test -s conftest$ac_exeext &&
15684        $as_test_x conftest$ac_exeext; then
15685   
15686 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15687 }'`
15688 # Check for a 64-bit object if we didn't find anything.
15689 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15690 }'`; fi
15691 else
15692   echo "$as_me: failed program was:" >&5
15693 sed 's/^/| /' conftest.$ac_ext >&5
15694
15695         
15696 fi
15697
15698 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15699       conftest$ac_exeext conftest.$ac_ext
15700 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15701
15702        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15703         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"
15704        else
15705         if test "$host_cpu" = ia64; then
15706           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15707           allow_undefined_flag_F77="-z nodefs"
15708           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"
15709         else
15710          # Determine the default libpath from the value encoded in an empty executable.
15711          cat >conftest.$ac_ext <<_ACEOF
15712       program main
15713
15714       end
15715 _ACEOF
15716 rm -f conftest.$ac_objext conftest$ac_exeext
15717 if { (ac_try="$ac_link"
15718 case "(($ac_try" in
15719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15720   *) ac_try_echo=$ac_try;;
15721 esac
15722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15723   (eval "$ac_link") 2>conftest.er1
15724   ac_status=$?
15725   grep -v '^ *+' conftest.er1 >conftest.err
15726   rm -f conftest.er1
15727   cat conftest.err >&5
15728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15729   (exit $ac_status); } && {
15730          test -z "$ac_f77_werror_flag" ||
15731          test ! -s conftest.err
15732        } && test -s conftest$ac_exeext &&
15733        $as_test_x conftest$ac_exeext; then
15734   
15735 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15736 }'`
15737 # Check for a 64-bit object if we didn't find anything.
15738 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15739 }'`; fi
15740 else
15741   echo "$as_me: failed program was:" >&5
15742 sed 's/^/| /' conftest.$ac_ext >&5
15743
15744         
15745 fi
15746
15747 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15748       conftest$ac_exeext conftest.$ac_ext
15749 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15750
15751          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15752           # Warning - without using the other run time loading flags,
15753           # -berok will link without error, but may produce a broken library.
15754           no_undefined_flag_F77=' ${wl}-bernotok'
15755           allow_undefined_flag_F77=' ${wl}-berok'
15756           # Exported symbols can be pulled into shared objects from archives
15757           whole_archive_flag_spec_F77='$convenience'
15758           archive_cmds_need_lc_F77=yes
15759           # This is similar to how AIX traditionally builds its shared libraries.
15760           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'
15761         fi
15762       fi
15763       ;;
15764
15765     amigaos*)
15766       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)'
15767       hardcode_libdir_flag_spec_F77='-L$libdir'
15768       hardcode_minus_L_F77=yes
15769       # see comment about different semantics on the GNU ld section
15770       ld_shlibs_F77=no
15771       ;;
15772
15773     bsdi[45]*)
15774       export_dynamic_flag_spec_F77=-rdynamic
15775       ;;
15776
15777     cygwin* | mingw* | pw32*)
15778       # When not using gcc, we currently assume that we are using
15779       # Microsoft Visual C++.
15780       # hardcode_libdir_flag_spec is actually meaningless, as there is
15781       # no search path for DLLs.
15782       hardcode_libdir_flag_spec_F77=' '
15783       allow_undefined_flag_F77=unsupported
15784       # Tell ltmain to make .lib files, not .a files.
15785       libext=lib
15786       # Tell ltmain to make .dll files, not .so files.
15787       shrext_cmds=".dll"
15788       # FIXME: Setting linknames here is a bad hack.
15789       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15790       # The linker will automatically build a .lib file if we build a DLL.
15791       old_archive_From_new_cmds_F77='true'
15792       # FIXME: Should let the user specify the lib program.
15793       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15794       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15795       enable_shared_with_static_runtimes_F77=yes
15796       ;;
15797
15798     darwin* | rhapsody*)
15799       case $host_os in
15800         rhapsody* | darwin1.[012])
15801          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15802          ;;
15803        *) # Darwin 1.3 on
15804          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15805            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15806          else
15807            case ${MACOSX_DEPLOYMENT_TARGET} in
15808              10.[012])
15809                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15810                ;;
15811              10.*)
15812                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15813                ;;
15814            esac
15815          fi
15816          ;;
15817       esac
15818       archive_cmds_need_lc_F77=no
15819       hardcode_direct_F77=no
15820       hardcode_automatic_F77=yes
15821       hardcode_shlibpath_var_F77=unsupported
15822       whole_archive_flag_spec_F77=''
15823       link_all_deplibs_F77=yes
15824     if test "$GCC" = yes ; then
15825         output_verbose_link_cmd='echo'
15826         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15827       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15828       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15829       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}'
15830       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}'
15831     else
15832       case $cc_basename in
15833         xlc*)
15834          output_verbose_link_cmd='echo'
15835          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15836          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15837           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15838          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15839           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}'
15840           ;;
15841        *)
15842          ld_shlibs_F77=no
15843           ;;
15844       esac
15845     fi
15846       ;;
15847
15848     dgux*)
15849       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15850       hardcode_libdir_flag_spec_F77='-L$libdir'
15851       hardcode_shlibpath_var_F77=no
15852       ;;
15853
15854     freebsd1*)
15855       ld_shlibs_F77=no
15856       ;;
15857
15858     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15859     # support.  Future versions do this automatically, but an explicit c++rt0.o
15860     # does not break anything, and helps significantly (at the cost of a little
15861     # extra space).
15862     freebsd2.2*)
15863       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15864       hardcode_libdir_flag_spec_F77='-R$libdir'
15865       hardcode_direct_F77=yes
15866       hardcode_shlibpath_var_F77=no
15867       ;;
15868
15869     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15870     freebsd2*)
15871       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15872       hardcode_direct_F77=yes
15873       hardcode_minus_L_F77=yes
15874       hardcode_shlibpath_var_F77=no
15875       ;;
15876
15877     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15878     freebsd* | dragonfly*)
15879       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15880       hardcode_libdir_flag_spec_F77='-R$libdir'
15881       hardcode_direct_F77=yes
15882       hardcode_shlibpath_var_F77=no
15883       ;;
15884
15885     hpux9*)
15886       if test "$GCC" = yes; then
15887         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'
15888       else
15889         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'
15890       fi
15891       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15892       hardcode_libdir_separator_F77=:
15893       hardcode_direct_F77=yes
15894
15895       # hardcode_minus_L: Not really in the search PATH,
15896       # but as the default location of the library.
15897       hardcode_minus_L_F77=yes
15898       export_dynamic_flag_spec_F77='${wl}-E'
15899       ;;
15900
15901     hpux10*)
15902       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15903         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15904       else
15905         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15906       fi
15907       if test "$with_gnu_ld" = no; then
15908         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15909         hardcode_libdir_separator_F77=:
15910
15911         hardcode_direct_F77=yes
15912         export_dynamic_flag_spec_F77='${wl}-E'
15913
15914         # hardcode_minus_L: Not really in the search PATH,
15915         # but as the default location of the library.
15916         hardcode_minus_L_F77=yes
15917       fi
15918       ;;
15919
15920     hpux11*)
15921       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15922         case $host_cpu in
15923         hppa*64*)
15924           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15925           ;;
15926         ia64*)
15927           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15928           ;;
15929         *)
15930           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15931           ;;
15932         esac
15933       else
15934         case $host_cpu in
15935         hppa*64*)
15936           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15937           ;;
15938         ia64*)
15939           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15940           ;;
15941         *)
15942           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15943           ;;
15944         esac
15945       fi
15946       if test "$with_gnu_ld" = no; then
15947         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15948         hardcode_libdir_separator_F77=:
15949
15950         case $host_cpu in
15951         hppa*64*|ia64*)
15952           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15953           hardcode_direct_F77=no
15954           hardcode_shlibpath_var_F77=no
15955           ;;
15956         *)
15957           hardcode_direct_F77=yes
15958           export_dynamic_flag_spec_F77='${wl}-E'
15959
15960           # hardcode_minus_L: Not really in the search PATH,
15961           # but as the default location of the library.
15962           hardcode_minus_L_F77=yes
15963           ;;
15964         esac
15965       fi
15966       ;;
15967
15968     irix5* | irix6* | nonstopux*)
15969       if test "$GCC" = yes; then
15970         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'
15971       else
15972         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'
15973         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15974       fi
15975       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15976       hardcode_libdir_separator_F77=:
15977       link_all_deplibs_F77=yes
15978       ;;
15979
15980     netbsd* | netbsdelf*-gnu)
15981       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15982         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15983       else
15984         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15985       fi
15986       hardcode_libdir_flag_spec_F77='-R$libdir'
15987       hardcode_direct_F77=yes
15988       hardcode_shlibpath_var_F77=no
15989       ;;
15990
15991     newsos6)
15992       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15993       hardcode_direct_F77=yes
15994       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15995       hardcode_libdir_separator_F77=:
15996       hardcode_shlibpath_var_F77=no
15997       ;;
15998
15999     openbsd*)
16000       hardcode_direct_F77=yes
16001       hardcode_shlibpath_var_F77=no
16002       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16003         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16004         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16005         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16006         export_dynamic_flag_spec_F77='${wl}-E'
16007       else
16008        case $host_os in
16009          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16010            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16011            hardcode_libdir_flag_spec_F77='-R$libdir'
16012            ;;
16013          *)
16014            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16015            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16016            ;;
16017        esac
16018       fi
16019       ;;
16020
16021     os2*)
16022       hardcode_libdir_flag_spec_F77='-L$libdir'
16023       hardcode_minus_L_F77=yes
16024       allow_undefined_flag_F77=unsupported
16025       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'
16026       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16027       ;;
16028
16029     osf3*)
16030       if test "$GCC" = yes; then
16031         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16032         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'
16033       else
16034         allow_undefined_flag_F77=' -expect_unresolved \*'
16035         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'
16036       fi
16037       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16038       hardcode_libdir_separator_F77=:
16039       ;;
16040
16041     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16042       if test "$GCC" = yes; then
16043         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16044         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'
16045         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16046       else
16047         allow_undefined_flag_F77=' -expect_unresolved \*'
16048         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'
16049         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~
16050         $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'
16051
16052         # Both c and cxx compiler support -rpath directly
16053         hardcode_libdir_flag_spec_F77='-rpath $libdir'
16054       fi
16055       hardcode_libdir_separator_F77=:
16056       ;;
16057
16058     solaris*)
16059       no_undefined_flag_F77=' -z text'
16060       if test "$GCC" = yes; then
16061         wlarc='${wl}'
16062         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16063         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16064           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16065       else
16066         wlarc=''
16067         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16068         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16069         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16070       fi
16071       hardcode_libdir_flag_spec_F77='-R$libdir'
16072       hardcode_shlibpath_var_F77=no
16073       case $host_os in
16074       solaris2.[0-5] | solaris2.[0-5].*) ;;
16075       *)
16076         # The compiler driver will combine linker options so we
16077         # cannot just pass the convience library names through
16078         # without $wl, iff we do not link with $LD.
16079         # Luckily, gcc supports the same syntax we need for Sun Studio.
16080         # Supported since Solaris 2.6 (maybe 2.5.1?)
16081         case $wlarc in
16082         '')
16083           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
16084         *)
16085           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
16086         esac ;;
16087       esac
16088       link_all_deplibs_F77=yes
16089       ;;
16090
16091     sunos4*)
16092       if test "x$host_vendor" = xsequent; then
16093         # Use $CC to link under sequent, because it throws in some extra .o
16094         # files that make .init and .fini sections work.
16095         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16096       else
16097         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16098       fi
16099       hardcode_libdir_flag_spec_F77='-L$libdir'
16100       hardcode_direct_F77=yes
16101       hardcode_minus_L_F77=yes
16102       hardcode_shlibpath_var_F77=no
16103       ;;
16104
16105     sysv4)
16106       case $host_vendor in
16107         sni)
16108           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16109           hardcode_direct_F77=yes # is this really true???
16110         ;;
16111         siemens)
16112           ## LD is ld it makes a PLAMLIB
16113           ## CC just makes a GrossModule.
16114           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16115           reload_cmds_F77='$CC -r -o $output$reload_objs'
16116           hardcode_direct_F77=no
16117         ;;
16118         motorola)
16119           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16120           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16121         ;;
16122       esac
16123       runpath_var='LD_RUN_PATH'
16124       hardcode_shlibpath_var_F77=no
16125       ;;
16126
16127     sysv4.3*)
16128       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16129       hardcode_shlibpath_var_F77=no
16130       export_dynamic_flag_spec_F77='-Bexport'
16131       ;;
16132
16133     sysv4*MP*)
16134       if test -d /usr/nec; then
16135         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16136         hardcode_shlibpath_var_F77=no
16137         runpath_var=LD_RUN_PATH
16138         hardcode_runpath_var=yes
16139         ld_shlibs_F77=yes
16140       fi
16141       ;;
16142
16143     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16144       no_undefined_flag_F77='${wl}-z,text'
16145       archive_cmds_need_lc_F77=no
16146       hardcode_shlibpath_var_F77=no
16147       runpath_var='LD_RUN_PATH'
16148
16149       if test "$GCC" = yes; then
16150         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16151         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16152       else
16153         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16154         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16155       fi
16156       ;;
16157
16158     sysv5* | sco3.2v5* | sco5v6*)
16159       # Note: We can NOT use -z defs as we might desire, because we do not
16160       # link with -lc, and that would cause any symbols used from libc to
16161       # always be unresolved, which means just about no library would
16162       # ever link correctly.  If we're not using GNU ld we use -z text
16163       # though, which does catch some bad symbols but isn't as heavy-handed
16164       # as -z defs.
16165       no_undefined_flag_F77='${wl}-z,text'
16166       allow_undefined_flag_F77='${wl}-z,nodefs'
16167       archive_cmds_need_lc_F77=no
16168       hardcode_shlibpath_var_F77=no
16169       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16170       hardcode_libdir_separator_F77=':'
16171       link_all_deplibs_F77=yes
16172       export_dynamic_flag_spec_F77='${wl}-Bexport'
16173       runpath_var='LD_RUN_PATH'
16174
16175       if test "$GCC" = yes; then
16176         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16177         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16178       else
16179         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16180         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16181       fi
16182       ;;
16183
16184     uts4*)
16185       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16186       hardcode_libdir_flag_spec_F77='-L$libdir'
16187       hardcode_shlibpath_var_F77=no
16188       ;;
16189
16190     *)
16191       ld_shlibs_F77=no
16192       ;;
16193     esac
16194   fi
16195
16196 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16197 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
16198 test "$ld_shlibs_F77" = no && can_build_shared=no
16199
16200 #
16201 # Do we need to explicitly link libc?
16202 #
16203 case "x$archive_cmds_need_lc_F77" in
16204 x|xyes)
16205   # Assume -lc should be added
16206   archive_cmds_need_lc_F77=yes
16207
16208   if test "$enable_shared" = yes && test "$GCC" = yes; then
16209     case $archive_cmds_F77 in
16210     *'~'*)
16211       # FIXME: we may have to deal with multi-command sequences.
16212       ;;
16213     '$CC '*)
16214       # Test whether the compiler implicitly links with -lc since on some
16215       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16216       # to ld, don't add -lc before -lgcc.
16217       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16218 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16219       $rm conftest*
16220       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16221
16222       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16223   (eval $ac_compile) 2>&5
16224   ac_status=$?
16225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16226   (exit $ac_status); } 2>conftest.err; then
16227         soname=conftest
16228         lib=conftest
16229         libobjs=conftest.$ac_objext
16230         deplibs=
16231         wl=$lt_prog_compiler_wl_F77
16232         pic_flag=$lt_prog_compiler_pic_F77
16233         compiler_flags=-v
16234         linker_flags=-v
16235         verstring=
16236         output_objdir=.
16237         libname=conftest
16238         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16239         allow_undefined_flag_F77=
16240         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16241   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16242   ac_status=$?
16243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16244   (exit $ac_status); }
16245         then
16246           archive_cmds_need_lc_F77=no
16247         else
16248           archive_cmds_need_lc_F77=yes
16249         fi
16250         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16251       else
16252         cat conftest.err 1>&5
16253       fi
16254       $rm conftest*
16255       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16256 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
16257       ;;
16258     esac
16259   fi
16260   ;;
16261 esac
16262
16263 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16264 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16265 library_names_spec=
16266 libname_spec='lib$name'
16267 soname_spec=
16268 shrext_cmds=".so"
16269 postinstall_cmds=
16270 postuninstall_cmds=
16271 finish_cmds=
16272 finish_eval=
16273 shlibpath_var=
16274 shlibpath_overrides_runpath=unknown
16275 version_type=none
16276 dynamic_linker="$host_os ld.so"
16277 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16278 if test "$GCC" = yes; then
16279   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16280   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16281     # if the path contains ";" then we assume it to be the separator
16282     # otherwise default to the standard path separator (i.e. ":") - it is
16283     # assumed that no part of a normal pathname contains ";" but that should
16284     # okay in the real world where ";" in dirpaths is itself problematic.
16285     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16286   else
16287     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16288   fi
16289 else
16290   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16291 fi
16292 need_lib_prefix=unknown
16293 hardcode_into_libs=no
16294
16295 # when you set need_version to no, make sure it does not cause -set_version
16296 # flags to be left without arguments
16297 need_version=unknown
16298
16299 case $host_os in
16300 aix3*)
16301   version_type=linux
16302   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16303   shlibpath_var=LIBPATH
16304
16305   # AIX 3 has no versioning support, so we append a major version to the name.
16306   soname_spec='${libname}${release}${shared_ext}$major'
16307   ;;
16308
16309 aix4* | aix5*)
16310   version_type=linux
16311   need_lib_prefix=no
16312   need_version=no
16313   hardcode_into_libs=yes
16314   if test "$host_cpu" = ia64; then
16315     # AIX 5 supports IA64
16316     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16317     shlibpath_var=LD_LIBRARY_PATH
16318   else
16319     # With GCC up to 2.95.x, collect2 would create an import file
16320     # for dependence libraries.  The import file would start with
16321     # the line `#! .'.  This would cause the generated library to
16322     # depend on `.', always an invalid library.  This was fixed in
16323     # development snapshots of GCC prior to 3.0.
16324     case $host_os in
16325       aix4 | aix4.[01] | aix4.[01].*)
16326       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16327            echo ' yes '
16328            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16329         :
16330       else
16331         can_build_shared=no
16332       fi
16333       ;;
16334     esac
16335     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16336     # soname into executable. Probably we can add versioning support to
16337     # collect2, so additional links can be useful in future.
16338     if test "$aix_use_runtimelinking" = yes; then
16339       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16340       # instead of lib<name>.a to let people know that these are not
16341       # typical AIX shared libraries.
16342       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16343     else
16344       # We preserve .a as extension for shared libraries through AIX4.2
16345       # and later when we are not doing run time linking.
16346       library_names_spec='${libname}${release}.a $libname.a'
16347       soname_spec='${libname}${release}${shared_ext}$major'
16348     fi
16349     shlibpath_var=LIBPATH
16350   fi
16351   ;;
16352
16353 amigaos*)
16354   library_names_spec='$libname.ixlibrary $libname.a'
16355   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16356   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'
16357   ;;
16358
16359 beos*)
16360   library_names_spec='${libname}${shared_ext}'
16361   dynamic_linker="$host_os ld.so"
16362   shlibpath_var=LIBRARY_PATH
16363   ;;
16364
16365 bsdi[45]*)
16366   version_type=linux
16367   need_version=no
16368   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16369   soname_spec='${libname}${release}${shared_ext}$major'
16370   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16371   shlibpath_var=LD_LIBRARY_PATH
16372   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16373   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16374   # the default ld.so.conf also contains /usr/contrib/lib and
16375   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16376   # libtool to hard-code these into programs
16377   ;;
16378
16379 cygwin* | mingw* | pw32*)
16380   version_type=windows
16381   shrext_cmds=".dll"
16382   need_version=no
16383   need_lib_prefix=no
16384
16385   case $GCC,$host_os in
16386   yes,cygwin* | yes,mingw* | yes,pw32*)
16387     library_names_spec='$libname.dll.a'
16388     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16389     postinstall_cmds='base_file=`basename \${file}`~
16390       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16391       dldir=$destdir/`dirname \$dlpath`~
16392       test -d \$dldir || mkdir -p \$dldir~
16393       $install_prog $dir/$dlname \$dldir/$dlname~
16394       chmod a+x \$dldir/$dlname'
16395     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16396       dlpath=$dir/\$dldll~
16397        $rm \$dlpath'
16398     shlibpath_overrides_runpath=yes
16399
16400     case $host_os in
16401     cygwin*)
16402       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16403       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16404       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16405       ;;
16406     mingw*)
16407       # MinGW DLLs use traditional 'lib' prefix
16408       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16409       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16410       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16411         # It is most probably a Windows format PATH printed by
16412         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16413         # path with ; separators, and with drive letters. We can handle the
16414         # drive letters (cygwin fileutils understands them), so leave them,
16415         # especially as we might pass files found there to a mingw objdump,
16416         # which wouldn't understand a cygwinified path. Ahh.
16417         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16418       else
16419         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16420       fi
16421       ;;
16422     pw32*)
16423       # pw32 DLLs use 'pw' prefix rather than 'lib'
16424       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16425       ;;
16426     esac
16427     ;;
16428
16429   *)
16430     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16431     ;;
16432   esac
16433   dynamic_linker='Win32 ld.exe'
16434   # FIXME: first we should search . and the directory the executable is in
16435   shlibpath_var=PATH
16436   ;;
16437
16438 darwin* | rhapsody*)
16439   dynamic_linker="$host_os dyld"
16440   version_type=darwin
16441   need_lib_prefix=no
16442   need_version=no
16443   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16444   soname_spec='${libname}${release}${major}$shared_ext'
16445   shlibpath_overrides_runpath=yes
16446   shlibpath_var=DYLD_LIBRARY_PATH
16447   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16448   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16449   if test "$GCC" = yes; then
16450     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
16451   else
16452     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16453   fi
16454   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16455   ;;
16456
16457 dgux*)
16458   version_type=linux
16459   need_lib_prefix=no
16460   need_version=no
16461   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16462   soname_spec='${libname}${release}${shared_ext}$major'
16463   shlibpath_var=LD_LIBRARY_PATH
16464   ;;
16465
16466 freebsd1*)
16467   dynamic_linker=no
16468   ;;
16469
16470 freebsd* | dragonfly*)
16471   # DragonFly does not have aout.  When/if they implement a new
16472   # versioning mechanism, adjust this.
16473   if test -x /usr/bin/objformat; then
16474     objformat=`/usr/bin/objformat`
16475   else
16476     case $host_os in
16477     freebsd[123]*) objformat=aout ;;
16478     *) objformat=elf ;;
16479     esac
16480   fi
16481   version_type=freebsd-$objformat
16482   case $version_type in
16483     freebsd-elf*)
16484       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16485       need_version=no
16486       need_lib_prefix=no
16487       ;;
16488     freebsd-*)
16489       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16490       need_version=yes
16491       ;;
16492   esac
16493   shlibpath_var=LD_LIBRARY_PATH
16494   case $host_os in
16495   freebsd2*)
16496     shlibpath_overrides_runpath=yes
16497     ;;
16498   freebsd3.[01]* | freebsdelf3.[01]*)
16499     shlibpath_overrides_runpath=yes
16500     hardcode_into_libs=yes
16501     ;;
16502   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16503   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16504     shlibpath_overrides_runpath=no
16505     hardcode_into_libs=yes
16506     ;;
16507   freebsd*) # from 4.6 on
16508     shlibpath_overrides_runpath=yes
16509     hardcode_into_libs=yes
16510     ;;
16511   esac
16512   ;;
16513
16514 gnu*)
16515   version_type=linux
16516   need_lib_prefix=no
16517   need_version=no
16518   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16519   soname_spec='${libname}${release}${shared_ext}$major'
16520   shlibpath_var=LD_LIBRARY_PATH
16521   hardcode_into_libs=yes
16522   ;;
16523
16524 hpux9* | hpux10* | hpux11*)
16525   # Give a soname corresponding to the major version so that dld.sl refuses to
16526   # link against other versions.
16527   version_type=sunos
16528   need_lib_prefix=no
16529   need_version=no
16530   case $host_cpu in
16531   ia64*)
16532     shrext_cmds='.so'
16533     hardcode_into_libs=yes
16534     dynamic_linker="$host_os dld.so"
16535     shlibpath_var=LD_LIBRARY_PATH
16536     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16537     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16538     soname_spec='${libname}${release}${shared_ext}$major'
16539     if test "X$HPUX_IA64_MODE" = X32; then
16540       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16541     else
16542       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16543     fi
16544     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16545     ;;
16546    hppa*64*)
16547      shrext_cmds='.sl'
16548      hardcode_into_libs=yes
16549      dynamic_linker="$host_os dld.sl"
16550      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16551      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16552      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16553      soname_spec='${libname}${release}${shared_ext}$major'
16554      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16555      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16556      ;;
16557    *)
16558     shrext_cmds='.sl'
16559     dynamic_linker="$host_os dld.sl"
16560     shlibpath_var=SHLIB_PATH
16561     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16562     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16563     soname_spec='${libname}${release}${shared_ext}$major'
16564     ;;
16565   esac
16566   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16567   postinstall_cmds='chmod 555 $lib'
16568   ;;
16569
16570 interix3*)
16571   version_type=linux
16572   need_lib_prefix=no
16573   need_version=no
16574   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16575   soname_spec='${libname}${release}${shared_ext}$major'
16576   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16577   shlibpath_var=LD_LIBRARY_PATH
16578   shlibpath_overrides_runpath=no
16579   hardcode_into_libs=yes
16580   ;;
16581
16582 irix5* | irix6* | nonstopux*)
16583   case $host_os in
16584     nonstopux*) version_type=nonstopux ;;
16585     *)
16586         if test "$lt_cv_prog_gnu_ld" = yes; then
16587                 version_type=linux
16588         else
16589                 version_type=irix
16590         fi ;;
16591   esac
16592   need_lib_prefix=no
16593   need_version=no
16594   soname_spec='${libname}${release}${shared_ext}$major'
16595   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16596   case $host_os in
16597   irix5* | nonstopux*)
16598     libsuff= shlibsuff=
16599     ;;
16600   *)
16601     case $LD in # libtool.m4 will add one of these switches to LD
16602     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16603       libsuff= shlibsuff= libmagic=32-bit;;
16604     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16605       libsuff=32 shlibsuff=N32 libmagic=N32;;
16606     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16607       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16608     *) libsuff= shlibsuff= libmagic=never-match;;
16609     esac
16610     ;;
16611   esac
16612   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16613   shlibpath_overrides_runpath=no
16614   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16615   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16616   hardcode_into_libs=yes
16617   ;;
16618
16619 # No shared lib support for Linux oldld, aout, or coff.
16620 linux*oldld* | linux*aout* | linux*coff*)
16621   dynamic_linker=no
16622   ;;
16623
16624 # This must be Linux ELF.
16625 linux* | k*bsd*-gnu)
16626   version_type=linux
16627   need_lib_prefix=no
16628   need_version=no
16629   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16630   soname_spec='${libname}${release}${shared_ext}$major'
16631   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16632   shlibpath_var=LD_LIBRARY_PATH
16633   shlibpath_overrides_runpath=no
16634   # This implies no fast_install, which is unacceptable.
16635   # Some rework will be needed to allow for fast_install
16636   # before this can be enabled.
16637   hardcode_into_libs=yes
16638
16639   # Append ld.so.conf contents to the search path
16640   if test -f /etc/ld.so.conf; then
16641     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16642     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16643   fi
16644
16645   # We used to test for /lib/ld.so.1 and disable shared libraries on
16646   # powerpc, because MkLinux only supported shared libraries with the
16647   # GNU dynamic linker.  Since this was broken with cross compilers,
16648   # most powerpc-linux boxes support dynamic linking these days and
16649   # people can always --disable-shared, the test was removed, and we
16650   # assume the GNU/Linux dynamic linker is in use.
16651   dynamic_linker='GNU/Linux ld.so'
16652   ;;
16653
16654 netbsdelf*-gnu)
16655   version_type=linux
16656   need_lib_prefix=no
16657   need_version=no
16658   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16659   soname_spec='${libname}${release}${shared_ext}$major'
16660   shlibpath_var=LD_LIBRARY_PATH
16661   shlibpath_overrides_runpath=no
16662   hardcode_into_libs=yes
16663   dynamic_linker='NetBSD ld.elf_so'
16664   ;;
16665
16666 netbsd*)
16667   version_type=sunos
16668   need_lib_prefix=no
16669   need_version=no
16670   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16671     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16672     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16673     dynamic_linker='NetBSD (a.out) ld.so'
16674   else
16675     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16676     soname_spec='${libname}${release}${shared_ext}$major'
16677     dynamic_linker='NetBSD ld.elf_so'
16678   fi
16679   shlibpath_var=LD_LIBRARY_PATH
16680   shlibpath_overrides_runpath=yes
16681   hardcode_into_libs=yes
16682   ;;
16683
16684 newsos6)
16685   version_type=linux
16686   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16687   shlibpath_var=LD_LIBRARY_PATH
16688   shlibpath_overrides_runpath=yes
16689   ;;
16690
16691 nto-qnx*)
16692   version_type=linux
16693   need_lib_prefix=no
16694   need_version=no
16695   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16696   soname_spec='${libname}${release}${shared_ext}$major'
16697   shlibpath_var=LD_LIBRARY_PATH
16698   shlibpath_overrides_runpath=yes
16699   ;;
16700
16701 openbsd*)
16702   version_type=sunos
16703   sys_lib_dlsearch_path_spec="/usr/lib"
16704   need_lib_prefix=no
16705   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16706   case $host_os in
16707     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16708     *)                         need_version=no  ;;
16709   esac
16710   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16711   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16712   shlibpath_var=LD_LIBRARY_PATH
16713   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16714     case $host_os in
16715       openbsd2.[89] | openbsd2.[89].*)
16716         shlibpath_overrides_runpath=no
16717         ;;
16718       *)
16719         shlibpath_overrides_runpath=yes
16720         ;;
16721       esac
16722   else
16723     shlibpath_overrides_runpath=yes
16724   fi
16725   ;;
16726
16727 os2*)
16728   libname_spec='$name'
16729   shrext_cmds=".dll"
16730   need_lib_prefix=no
16731   library_names_spec='$libname${shared_ext} $libname.a'
16732   dynamic_linker='OS/2 ld.exe'
16733   shlibpath_var=LIBPATH
16734   ;;
16735
16736 osf3* | osf4* | osf5*)
16737   version_type=osf
16738   need_lib_prefix=no
16739   need_version=no
16740   soname_spec='${libname}${release}${shared_ext}$major'
16741   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16742   shlibpath_var=LD_LIBRARY_PATH
16743   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16744   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16745   ;;
16746
16747 solaris*)
16748   version_type=linux
16749   need_lib_prefix=no
16750   need_version=no
16751   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16752   soname_spec='${libname}${release}${shared_ext}$major'
16753   shlibpath_var=LD_LIBRARY_PATH
16754   shlibpath_overrides_runpath=yes
16755   hardcode_into_libs=yes
16756   # ldd complains unless libraries are executable
16757   postinstall_cmds='chmod +x $lib'
16758   ;;
16759
16760 sunos4*)
16761   version_type=sunos
16762   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16763   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16764   shlibpath_var=LD_LIBRARY_PATH
16765   shlibpath_overrides_runpath=yes
16766   if test "$with_gnu_ld" = yes; then
16767     need_lib_prefix=no
16768   fi
16769   need_version=yes
16770   ;;
16771
16772 sysv4 | sysv4.3*)
16773   version_type=linux
16774   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16775   soname_spec='${libname}${release}${shared_ext}$major'
16776   shlibpath_var=LD_LIBRARY_PATH
16777   case $host_vendor in
16778     sni)
16779       shlibpath_overrides_runpath=no
16780       need_lib_prefix=no
16781       export_dynamic_flag_spec='${wl}-Blargedynsym'
16782       runpath_var=LD_RUN_PATH
16783       ;;
16784     siemens)
16785       need_lib_prefix=no
16786       ;;
16787     motorola)
16788       need_lib_prefix=no
16789       need_version=no
16790       shlibpath_overrides_runpath=no
16791       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16792       ;;
16793   esac
16794   ;;
16795
16796 sysv4*MP*)
16797   if test -d /usr/nec ;then
16798     version_type=linux
16799     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16800     soname_spec='$libname${shared_ext}.$major'
16801     shlibpath_var=LD_LIBRARY_PATH
16802   fi
16803   ;;
16804
16805 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16806   version_type=freebsd-elf
16807   need_lib_prefix=no
16808   need_version=no
16809   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16810   soname_spec='${libname}${release}${shared_ext}$major'
16811   shlibpath_var=LD_LIBRARY_PATH
16812   hardcode_into_libs=yes
16813   if test "$with_gnu_ld" = yes; then
16814     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16815     shlibpath_overrides_runpath=no
16816   else
16817     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16818     shlibpath_overrides_runpath=yes
16819     case $host_os in
16820       sco3.2v5*)
16821         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16822         ;;
16823     esac
16824   fi
16825   sys_lib_dlsearch_path_spec='/usr/lib'
16826   ;;
16827
16828 uts4*)
16829   version_type=linux
16830   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16831   soname_spec='${libname}${release}${shared_ext}$major'
16832   shlibpath_var=LD_LIBRARY_PATH
16833   ;;
16834
16835 *)
16836   dynamic_linker=no
16837   ;;
16838 esac
16839 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16840 echo "${ECHO_T}$dynamic_linker" >&6; }
16841 test "$dynamic_linker" = no && can_build_shared=no
16842
16843 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16844 if test "$GCC" = yes; then
16845   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16846 fi
16847
16848 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16849 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16850 hardcode_action_F77=
16851 if test -n "$hardcode_libdir_flag_spec_F77" || \
16852    test -n "$runpath_var_F77" || \
16853    test "X$hardcode_automatic_F77" = "Xyes" ; then
16854
16855   # We can hardcode non-existant directories.
16856   if test "$hardcode_direct_F77" != no &&
16857      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16858      # have to relink, otherwise we might link with an installed library
16859      # when we should be linking with a yet-to-be-installed one
16860      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16861      test "$hardcode_minus_L_F77" != no; then
16862     # Linking always hardcodes the temporary library directory.
16863     hardcode_action_F77=relink
16864   else
16865     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16866     hardcode_action_F77=immediate
16867   fi
16868 else
16869   # We cannot hardcode anything, or else we can only hardcode existing
16870   # directories.
16871   hardcode_action_F77=unsupported
16872 fi
16873 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16874 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16875
16876 if test "$hardcode_action_F77" = relink; then
16877   # Fast installation is not supported
16878   enable_fast_install=no
16879 elif test "$shlibpath_overrides_runpath" = yes ||
16880      test "$enable_shared" = no; then
16881   # Fast installation is not necessary
16882   enable_fast_install=needless
16883 fi
16884
16885
16886 # The else clause should only fire when bootstrapping the
16887 # libtool distribution, otherwise you forgot to ship ltmain.sh
16888 # with your package, and you will get complaints that there are
16889 # no rules to generate ltmain.sh.
16890 if test -f "$ltmain"; then
16891   # See if we are running on zsh, and set the options which allow our commands through
16892   # without removal of \ escapes.
16893   if test -n "${ZSH_VERSION+set}" ; then
16894     setopt NO_GLOB_SUBST
16895   fi
16896   # Now quote all the things that may contain metacharacters while being
16897   # careful not to overquote the AC_SUBSTed values.  We take copies of the
16898   # variables and quote the copies for generation of the libtool script.
16899   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16900     SED SHELL STRIP \
16901     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16902     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16903     deplibs_check_method reload_flag reload_cmds need_locks \
16904     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16905     lt_cv_sys_global_symbol_to_c_name_address \
16906     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16907     old_postinstall_cmds old_postuninstall_cmds \
16908     compiler_F77 \
16909     CC_F77 \
16910     LD_F77 \
16911     lt_prog_compiler_wl_F77 \
16912     lt_prog_compiler_pic_F77 \
16913     lt_prog_compiler_static_F77 \
16914     lt_prog_compiler_no_builtin_flag_F77 \
16915     export_dynamic_flag_spec_F77 \
16916     thread_safe_flag_spec_F77 \
16917     whole_archive_flag_spec_F77 \
16918     enable_shared_with_static_runtimes_F77 \
16919     old_archive_cmds_F77 \
16920     old_archive_from_new_cmds_F77 \
16921     predep_objects_F77 \
16922     postdep_objects_F77 \
16923     predeps_F77 \
16924     postdeps_F77 \
16925     compiler_lib_search_path_F77 \
16926     archive_cmds_F77 \
16927     archive_expsym_cmds_F77 \
16928     postinstall_cmds_F77 \
16929     postuninstall_cmds_F77 \
16930     old_archive_from_expsyms_cmds_F77 \
16931     allow_undefined_flag_F77 \
16932     no_undefined_flag_F77 \
16933     export_symbols_cmds_F77 \
16934     hardcode_libdir_flag_spec_F77 \
16935     hardcode_libdir_flag_spec_ld_F77 \
16936     hardcode_libdir_separator_F77 \
16937     hardcode_automatic_F77 \
16938     module_cmds_F77 \
16939     module_expsym_cmds_F77 \
16940     lt_cv_prog_compiler_c_o_F77 \
16941     exclude_expsyms_F77 \
16942     include_expsyms_F77; do
16943
16944     case $var in
16945     old_archive_cmds_F77 | \
16946     old_archive_from_new_cmds_F77 | \
16947     archive_cmds_F77 | \
16948     archive_expsym_cmds_F77 | \
16949     module_cmds_F77 | \
16950     module_expsym_cmds_F77 | \
16951     old_archive_from_expsyms_cmds_F77 | \
16952     export_symbols_cmds_F77 | \
16953     extract_expsyms_cmds | reload_cmds | finish_cmds | \
16954     postinstall_cmds | postuninstall_cmds | \
16955     old_postinstall_cmds | old_postuninstall_cmds | \
16956     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16957       # Double-quote double-evaled strings.
16958       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16959       ;;
16960     *)
16961       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16962       ;;
16963     esac
16964   done
16965
16966   case $lt_echo in
16967   *'\$0 --fallback-echo"')
16968     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16969     ;;
16970   esac
16971
16972 cfgfile="$ofile"
16973
16974   cat <<__EOF__ >> "$cfgfile"
16975 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16976
16977 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16978
16979 # Shell to use when invoking shell scripts.
16980 SHELL=$lt_SHELL
16981
16982 # Whether or not to build shared libraries.
16983 build_libtool_libs=$enable_shared
16984
16985 # Whether or not to build static libraries.
16986 build_old_libs=$enable_static
16987
16988 # Whether or not to add -lc for building shared libraries.
16989 build_libtool_need_lc=$archive_cmds_need_lc_F77
16990
16991 # Whether or not to disallow shared libs when runtime libs are static
16992 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16993
16994 # Whether or not to optimize for fast installation.
16995 fast_install=$enable_fast_install
16996
16997 # The host system.
16998 host_alias=$host_alias
16999 host=$host
17000 host_os=$host_os
17001
17002 # The build system.
17003 build_alias=$build_alias
17004 build=$build
17005 build_os=$build_os
17006
17007 # An echo program that does not interpret backslashes.
17008 echo=$lt_echo
17009
17010 # The archiver.
17011 AR=$lt_AR
17012 AR_FLAGS=$lt_AR_FLAGS
17013
17014 # A C compiler.
17015 LTCC=$lt_LTCC
17016
17017 # LTCC compiler flags.
17018 LTCFLAGS=$lt_LTCFLAGS
17019
17020 # A language-specific compiler.
17021 CC=$lt_compiler_F77
17022
17023 # Is the compiler the GNU C compiler?
17024 with_gcc=$GCC_F77
17025
17026 # An ERE matcher.
17027 EGREP=$lt_EGREP
17028
17029 # The linker used to build libraries.
17030 LD=$lt_LD_F77
17031
17032 # Whether we need hard or soft links.
17033 LN_S=$lt_LN_S
17034
17035 # A BSD-compatible nm program.
17036 NM=$lt_NM
17037
17038 # A symbol stripping program
17039 STRIP=$lt_STRIP
17040
17041 # Used to examine libraries when file_magic_cmd begins "file"
17042 MAGIC_CMD=$MAGIC_CMD
17043
17044 # Used on cygwin: DLL creation program.
17045 DLLTOOL="$DLLTOOL"
17046
17047 # Used on cygwin: object dumper.
17048 OBJDUMP="$OBJDUMP"
17049
17050 # Used on cygwin: assembler.
17051 AS="$AS"
17052
17053 # The name of the directory that contains temporary libtool files.
17054 objdir=$objdir
17055
17056 # How to create reloadable object files.
17057 reload_flag=$lt_reload_flag
17058 reload_cmds=$lt_reload_cmds
17059
17060 # How to pass a linker flag through the compiler.
17061 wl=$lt_lt_prog_compiler_wl_F77
17062
17063 # Object file suffix (normally "o").
17064 objext="$ac_objext"
17065
17066 # Old archive suffix (normally "a").
17067 libext="$libext"
17068
17069 # Shared library suffix (normally ".so").
17070 shrext_cmds='$shrext_cmds'
17071
17072 # Executable file suffix (normally "").
17073 exeext="$exeext"
17074
17075 # Additional compiler flags for building library objects.
17076 pic_flag=$lt_lt_prog_compiler_pic_F77
17077 pic_mode=$pic_mode
17078
17079 # What is the maximum length of a command?
17080 max_cmd_len=$lt_cv_sys_max_cmd_len
17081
17082 # Does compiler simultaneously support -c and -o options?
17083 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17084
17085 # Must we lock files when doing compilation?
17086 need_locks=$lt_need_locks
17087
17088 # Do we need the lib prefix for modules?
17089 need_lib_prefix=$need_lib_prefix
17090
17091 # Do we need a version for libraries?
17092 need_version=$need_version
17093
17094 # Whether dlopen is supported.
17095 dlopen_support=$enable_dlopen
17096
17097 # Whether dlopen of programs is supported.
17098 dlopen_self=$enable_dlopen_self
17099
17100 # Whether dlopen of statically linked programs is supported.
17101 dlopen_self_static=$enable_dlopen_self_static
17102
17103 # Compiler flag to prevent dynamic linking.
17104 link_static_flag=$lt_lt_prog_compiler_static_F77
17105
17106 # Compiler flag to turn off builtin functions.
17107 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17108
17109 # Compiler flag to allow reflexive dlopens.
17110 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17111
17112 # Compiler flag to generate shared objects directly from archives.
17113 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17114
17115 # Compiler flag to generate thread-safe objects.
17116 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17117
17118 # Library versioning type.
17119 version_type=$version_type
17120
17121 # Format of library name prefix.
17122 libname_spec=$lt_libname_spec
17123
17124 # List of archive names.  First name is the real one, the rest are links.
17125 # The last name is the one that the linker finds with -lNAME.
17126 library_names_spec=$lt_library_names_spec
17127
17128 # The coded name of the library, if different from the real name.
17129 soname_spec=$lt_soname_spec
17130
17131 # Commands used to build and install an old-style archive.
17132 RANLIB=$lt_RANLIB
17133 old_archive_cmds=$lt_old_archive_cmds_F77
17134 old_postinstall_cmds=$lt_old_postinstall_cmds
17135 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17136
17137 # Create an old-style archive from a shared archive.
17138 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17139
17140 # Create a temporary old-style archive to link instead of a shared archive.
17141 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17142
17143 # Commands used to build and install a shared archive.
17144 archive_cmds=$lt_archive_cmds_F77
17145 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17146 postinstall_cmds=$lt_postinstall_cmds
17147 postuninstall_cmds=$lt_postuninstall_cmds
17148
17149 # Commands used to build a loadable module (assumed same as above if empty)
17150 module_cmds=$lt_module_cmds_F77
17151 module_expsym_cmds=$lt_module_expsym_cmds_F77
17152
17153 # Commands to strip libraries.
17154 old_striplib=$lt_old_striplib
17155 striplib=$lt_striplib
17156
17157 # Dependencies to place before the objects being linked to create a
17158 # shared library.
17159 predep_objects=$lt_predep_objects_F77
17160
17161 # Dependencies to place after the objects being linked to create a
17162 # shared library.
17163 postdep_objects=$lt_postdep_objects_F77
17164
17165 # Dependencies to place before the objects being linked to create a
17166 # shared library.
17167 predeps=$lt_predeps_F77
17168
17169 # Dependencies to place after the objects being linked to create a
17170 # shared library.
17171 postdeps=$lt_postdeps_F77
17172
17173 # The library search path used internally by the compiler when linking
17174 # a shared library.
17175 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17176
17177 # Method to check whether dependent libraries are shared objects.
17178 deplibs_check_method=$lt_deplibs_check_method
17179
17180 # Command to use when deplibs_check_method == file_magic.
17181 file_magic_cmd=$lt_file_magic_cmd
17182
17183 # Flag that allows shared libraries with undefined symbols to be built.
17184 allow_undefined_flag=$lt_allow_undefined_flag_F77
17185
17186 # Flag that forces no undefined symbols.
17187 no_undefined_flag=$lt_no_undefined_flag_F77
17188
17189 # Commands used to finish a libtool library installation in a directory.
17190 finish_cmds=$lt_finish_cmds
17191
17192 # Same as above, but a single script fragment to be evaled but not shown.
17193 finish_eval=$lt_finish_eval
17194
17195 # Take the output of nm and produce a listing of raw symbols and C names.
17196 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17197
17198 # Transform the output of nm in a proper C declaration
17199 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17200
17201 # Transform the output of nm in a C name address pair
17202 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17203
17204 # This is the shared library runtime path variable.
17205 runpath_var=$runpath_var
17206
17207 # This is the shared library path variable.
17208 shlibpath_var=$shlibpath_var
17209
17210 # Is shlibpath searched before the hard-coded library search path?
17211 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17212
17213 # How to hardcode a shared library path into an executable.
17214 hardcode_action=$hardcode_action_F77
17215
17216 # Whether we should hardcode library paths into libraries.
17217 hardcode_into_libs=$hardcode_into_libs
17218
17219 # Flag to hardcode \$libdir into a binary during linking.
17220 # This must work even if \$libdir does not exist.
17221 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17222
17223 # If ld is used when linking, flag to hardcode \$libdir into
17224 # a binary during linking. This must work even if \$libdir does
17225 # not exist.
17226 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17227
17228 # Whether we need a single -rpath flag with a separated argument.
17229 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17230
17231 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17232 # resulting binary.
17233 hardcode_direct=$hardcode_direct_F77
17234
17235 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17236 # resulting binary.
17237 hardcode_minus_L=$hardcode_minus_L_F77
17238
17239 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17240 # the resulting binary.
17241 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17242
17243 # Set to yes if building a shared library automatically hardcodes DIR into the library
17244 # and all subsequent libraries and executables linked against it.
17245 hardcode_automatic=$hardcode_automatic_F77
17246
17247 # Variables whose values should be saved in libtool wrapper scripts and
17248 # restored at relink time.
17249 variables_saved_for_relink="$variables_saved_for_relink"
17250
17251 # Whether libtool must link a program against all its dependency libraries.
17252 link_all_deplibs=$link_all_deplibs_F77
17253
17254 # Compile-time system search path for libraries
17255 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17256
17257 # Run-time system search path for libraries
17258 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17259
17260 # Fix the shell variable \$srcfile for the compiler.
17261 fix_srcfile_path="$fix_srcfile_path_F77"
17262
17263 # Set to yes if exported symbols are required.
17264 always_export_symbols=$always_export_symbols_F77
17265
17266 # The commands to list exported symbols.
17267 export_symbols_cmds=$lt_export_symbols_cmds_F77
17268
17269 # The commands to extract the exported symbol list from a shared archive.
17270 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17271
17272 # Symbols that should not be listed in the preloaded symbols.
17273 exclude_expsyms=$lt_exclude_expsyms_F77
17274
17275 # Symbols that must always be exported.
17276 include_expsyms=$lt_include_expsyms_F77
17277
17278 # ### END LIBTOOL TAG CONFIG: $tagname
17279
17280 __EOF__
17281
17282
17283 else
17284   # If there is no Makefile yet, we rely on a make rule to execute
17285   # `config.status --recheck' to rerun these tests and create the
17286   # libtool script then.
17287   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17288   if test -f "$ltmain_in"; then
17289     test -f Makefile && make "$ltmain"
17290   fi
17291 fi
17292
17293
17294 ac_ext=c
17295 ac_cpp='$CPP $CPPFLAGS'
17296 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17297 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17298 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17299
17300 CC="$lt_save_CC"
17301
17302         else
17303           tagname=""
17304         fi
17305         ;;
17306
17307       GCJ)
17308         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17309           
17310
17311 # Source file extension for Java test sources.
17312 ac_ext=java
17313
17314 # Object file extension for compiled Java test sources.
17315 objext=o
17316 objext_GCJ=$objext
17317
17318 # Code to be used in simple compile tests
17319 lt_simple_compile_test_code="class foo {}\n"
17320
17321 # Code to be used in simple link tests
17322 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
17323
17324 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17325
17326 # If no C compiler was specified, use CC.
17327 LTCC=${LTCC-"$CC"}
17328
17329 # If no C compiler flags were specified, use CFLAGS.
17330 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17331
17332 # Allow CC to be a program name with arguments.
17333 compiler=$CC
17334
17335
17336 # save warnings/boilerplate of simple test code
17337 ac_outfile=conftest.$ac_objext
17338 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17339 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17340 _lt_compiler_boilerplate=`cat conftest.err`
17341 $rm conftest*
17342
17343 ac_outfile=conftest.$ac_objext
17344 printf "$lt_simple_link_test_code" >conftest.$ac_ext
17345 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17346 _lt_linker_boilerplate=`cat conftest.err`
17347 $rm conftest*
17348
17349
17350 # Allow CC to be a program name with arguments.
17351 lt_save_CC="$CC"
17352 CC=${GCJ-"gcj"}
17353 compiler=$CC
17354 compiler_GCJ=$CC
17355 for cc_temp in $compiler""; do
17356   case $cc_temp in
17357     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17358     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17359     \-*) ;;
17360     *) break;;
17361   esac
17362 done
17363 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17364
17365
17366 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17367 archive_cmds_need_lc_GCJ=no
17368
17369 old_archive_cmds_GCJ=$old_archive_cmds
17370
17371 ## CAVEAT EMPTOR:
17372 ## There is no encapsulation within the following macros, do not change
17373 ## the running order or otherwise move them around unless you know exactly
17374 ## what you are doing...
17375
17376 lt_prog_compiler_no_builtin_flag_GCJ=
17377
17378 if test "$GCC" = yes; then
17379   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17380
17381   
17382 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17383 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
17384 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17385   echo $ECHO_N "(cached) $ECHO_C" >&6
17386 else
17387   lt_cv_prog_compiler_rtti_exceptions=no
17388   ac_outfile=conftest.$ac_objext
17389    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17390    lt_compiler_flag="-fno-rtti -fno-exceptions"
17391    # Insert the option either (1) after the last *FLAGS variable, or
17392    # (2) before a word containing "conftest.", or (3) at the end.
17393    # Note that $ac_compile itself does not contain backslashes and begins
17394    # with a dollar sign (not a hyphen), so the echo should work correctly.
17395    # The option is referenced via a variable to avoid confusing sed.
17396    lt_compile=`echo "$ac_compile" | $SED \
17397    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17398    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17399    -e 's:$: $lt_compiler_flag:'`
17400    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
17401    (eval "$lt_compile" 2>conftest.err)
17402    ac_status=$?
17403    cat conftest.err >&5
17404    echo "$as_me:__oline__: \$? = $ac_status" >&5
17405    if (exit $ac_status) && test -s "$ac_outfile"; then
17406      # The compiler can only warn and ignore the option if not recognized
17407      # So say no if there are warnings other than the usual output.
17408      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17409      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17410      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17411        lt_cv_prog_compiler_rtti_exceptions=yes
17412      fi
17413    fi
17414    $rm conftest*
17415
17416 fi
17417 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17418 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17419
17420 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17421     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17422 else
17423     :
17424 fi
17425
17426 fi
17427
17428 lt_prog_compiler_wl_GCJ=
17429 lt_prog_compiler_pic_GCJ=
17430 lt_prog_compiler_static_GCJ=
17431
17432 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17433 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
17434  
17435   if test "$GCC" = yes; then
17436     lt_prog_compiler_wl_GCJ='-Wl,'
17437     lt_prog_compiler_static_GCJ='-static'
17438
17439     case $host_os in
17440       aix*)
17441       # All AIX code is PIC.
17442       if test "$host_cpu" = ia64; then
17443         # AIX 5 now supports IA64 processor
17444         lt_prog_compiler_static_GCJ='-Bstatic'
17445       fi
17446       ;;
17447
17448     amigaos*)
17449       # FIXME: we need at least 68020 code to build shared libraries, but
17450       # adding the `-m68020' flag to GCC prevents building anything better,
17451       # like `-m68040'.
17452       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17453       ;;
17454
17455     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17456       # PIC is the default for these OSes.
17457       ;;
17458
17459     mingw* | pw32* | os2*)
17460       # This hack is so that the source file can tell whether it is being
17461       # built for inclusion in a dll (and should export symbols for example).
17462       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17463       ;;
17464
17465     darwin* | rhapsody*)
17466       # PIC is the default on this platform
17467       # Common symbols not allowed in MH_DYLIB files
17468       lt_prog_compiler_pic_GCJ='-fno-common'
17469       ;;
17470
17471     interix3*)
17472       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17473       # Instead, we relocate shared libraries at runtime.
17474       ;;
17475
17476     msdosdjgpp*)
17477       # Just because we use GCC doesn't mean we suddenly get shared libraries
17478       # on systems that don't support them.
17479       lt_prog_compiler_can_build_shared_GCJ=no
17480       enable_shared=no
17481       ;;
17482
17483     sysv4*MP*)
17484       if test -d /usr/nec; then
17485         lt_prog_compiler_pic_GCJ=-Kconform_pic
17486       fi
17487       ;;
17488
17489     hpux*)
17490       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17491       # not for PA HP-UX.
17492       case $host_cpu in
17493       hppa*64*|ia64*)
17494         # +Z the default
17495         ;;
17496       *)
17497         lt_prog_compiler_pic_GCJ='-fPIC'
17498         ;;
17499       esac
17500       ;;
17501
17502     *)
17503       lt_prog_compiler_pic_GCJ='-fPIC'
17504       ;;
17505     esac
17506   else
17507     # PORTME Check for flag to pass linker flags through the system compiler.
17508     case $host_os in
17509     aix*)
17510       lt_prog_compiler_wl_GCJ='-Wl,'
17511       if test "$host_cpu" = ia64; then
17512         # AIX 5 now supports IA64 processor
17513         lt_prog_compiler_static_GCJ='-Bstatic'
17514       else
17515         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17516       fi
17517       ;;
17518       darwin*)
17519         # PIC is the default on this platform
17520         # Common symbols not allowed in MH_DYLIB files
17521        case $cc_basename in
17522          xlc*)
17523          lt_prog_compiler_pic_GCJ='-qnocommon'
17524          lt_prog_compiler_wl_GCJ='-Wl,'
17525          ;;
17526        esac
17527        ;;
17528
17529     mingw* | pw32* | os2*)
17530       # This hack is so that the source file can tell whether it is being
17531       # built for inclusion in a dll (and should export symbols for example).
17532       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17533       ;;
17534
17535     hpux9* | hpux10* | hpux11*)
17536       lt_prog_compiler_wl_GCJ='-Wl,'
17537       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17538       # not for PA HP-UX.
17539       case $host_cpu in
17540       hppa*64*|ia64*)
17541         # +Z the default
17542         ;;
17543       *)
17544         lt_prog_compiler_pic_GCJ='+Z'
17545         ;;
17546       esac
17547       # Is there a better lt_prog_compiler_static that works with the bundled CC?
17548       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17549       ;;
17550
17551     irix5* | irix6* | nonstopux*)
17552       lt_prog_compiler_wl_GCJ='-Wl,'
17553       # PIC (with -KPIC) is the default.
17554       lt_prog_compiler_static_GCJ='-non_shared'
17555       ;;
17556
17557     newsos6)
17558       lt_prog_compiler_pic_GCJ='-KPIC'
17559       lt_prog_compiler_static_GCJ='-Bstatic'
17560       ;;
17561
17562     linux* | k*bsd*-gnu)
17563       case $cc_basename in
17564       icc* | ecc*)
17565         lt_prog_compiler_wl_GCJ='-Wl,'
17566         lt_prog_compiler_pic_GCJ='-KPIC'
17567         lt_prog_compiler_static_GCJ='-static'
17568         ;;
17569       pgcc* | pgf77* | pgf90* | pgf95*)
17570         # Portland Group compilers (*not* the Pentium gcc compiler,
17571         # which looks to be a dead project)
17572         lt_prog_compiler_wl_GCJ='-Wl,'
17573         lt_prog_compiler_pic_GCJ='-fpic'
17574         lt_prog_compiler_static_GCJ='-Bstatic'
17575         ;;
17576       ccc*)
17577         lt_prog_compiler_wl_GCJ='-Wl,'
17578         # All Alpha code is PIC.
17579         lt_prog_compiler_static_GCJ='-non_shared'
17580         ;;
17581       esac
17582       ;;
17583
17584     osf3* | osf4* | osf5*)
17585       lt_prog_compiler_wl_GCJ='-Wl,'
17586       # All OSF/1 code is PIC.
17587       lt_prog_compiler_static_GCJ='-non_shared'
17588       ;;
17589
17590     solaris*)
17591       lt_prog_compiler_pic_GCJ='-KPIC'
17592       lt_prog_compiler_static_GCJ='-Bstatic'
17593       case $cc_basename in
17594       f77* | f90* | f95*)
17595         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17596       *)
17597         lt_prog_compiler_wl_GCJ='-Wl,';;
17598       esac
17599       ;;
17600
17601     sunos4*)
17602       lt_prog_compiler_wl_GCJ='-Qoption ld '
17603       lt_prog_compiler_pic_GCJ='-PIC'
17604       lt_prog_compiler_static_GCJ='-Bstatic'
17605       ;;
17606
17607     sysv4 | sysv4.2uw2* | sysv4.3*)
17608       lt_prog_compiler_wl_GCJ='-Wl,'
17609       lt_prog_compiler_pic_GCJ='-KPIC'
17610       lt_prog_compiler_static_GCJ='-Bstatic'
17611       ;;
17612
17613     sysv4*MP*)
17614       if test -d /usr/nec ;then
17615         lt_prog_compiler_pic_GCJ='-Kconform_pic'
17616         lt_prog_compiler_static_GCJ='-Bstatic'
17617       fi
17618       ;;
17619
17620     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17621       lt_prog_compiler_wl_GCJ='-Wl,'
17622       lt_prog_compiler_pic_GCJ='-KPIC'
17623       lt_prog_compiler_static_GCJ='-Bstatic'
17624       ;;
17625
17626     unicos*)
17627       lt_prog_compiler_wl_GCJ='-Wl,'
17628       lt_prog_compiler_can_build_shared_GCJ=no
17629       ;;
17630
17631     uts4*)
17632       lt_prog_compiler_pic_GCJ='-pic'
17633       lt_prog_compiler_static_GCJ='-Bstatic'
17634       ;;
17635
17636     *)
17637       lt_prog_compiler_can_build_shared_GCJ=no
17638       ;;
17639     esac
17640   fi
17641
17642 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17643 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17644
17645 #
17646 # Check to make sure the PIC flag actually works.
17647 #
17648 if test -n "$lt_prog_compiler_pic_GCJ"; then
17649   
17650 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17651 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17652 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17653   echo $ECHO_N "(cached) $ECHO_C" >&6
17654 else
17655   lt_prog_compiler_pic_works_GCJ=no
17656   ac_outfile=conftest.$ac_objext
17657    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17658    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17659    # Insert the option either (1) after the last *FLAGS variable, or
17660    # (2) before a word containing "conftest.", or (3) at the end.
17661    # Note that $ac_compile itself does not contain backslashes and begins
17662    # with a dollar sign (not a hyphen), so the echo should work correctly.
17663    # The option is referenced via a variable to avoid confusing sed.
17664    lt_compile=`echo "$ac_compile" | $SED \
17665    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17666    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17667    -e 's:$: $lt_compiler_flag:'`
17668    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
17669    (eval "$lt_compile" 2>conftest.err)
17670    ac_status=$?
17671    cat conftest.err >&5
17672    echo "$as_me:__oline__: \$? = $ac_status" >&5
17673    if (exit $ac_status) && test -s "$ac_outfile"; then
17674      # The compiler can only warn and ignore the option if not recognized
17675      # So say no if there are warnings other than the usual output.
17676      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17677      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17678      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17679        lt_prog_compiler_pic_works_GCJ=yes
17680      fi
17681    fi
17682    $rm conftest*
17683
17684 fi
17685 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17686 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
17687
17688 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17689     case $lt_prog_compiler_pic_GCJ in
17690      "" | " "*) ;;
17691      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17692      esac
17693 else
17694     lt_prog_compiler_pic_GCJ=
17695      lt_prog_compiler_can_build_shared_GCJ=no
17696 fi
17697
17698 fi
17699 case $host_os in
17700   # For platforms which do not support PIC, -DPIC is meaningless:
17701   *djgpp*)
17702     lt_prog_compiler_pic_GCJ=
17703     ;;
17704   *)
17705     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17706     ;;
17707 esac
17708
17709 #
17710 # Check to make sure the static flag actually works.
17711 #
17712 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17713 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17714 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17715 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17716   echo $ECHO_N "(cached) $ECHO_C" >&6
17717 else
17718   lt_prog_compiler_static_works_GCJ=no
17719    save_LDFLAGS="$LDFLAGS"
17720    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17721    printf "$lt_simple_link_test_code" > conftest.$ac_ext
17722    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17723      # The linker can only warn and ignore the option if not recognized
17724      # So say no if there are warnings
17725      if test -s conftest.err; then
17726        # Append any errors to the config.log.
17727        cat conftest.err 1>&5
17728        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17729        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17730        if diff conftest.exp conftest.er2 >/dev/null; then
17731          lt_prog_compiler_static_works_GCJ=yes
17732        fi
17733      else
17734        lt_prog_compiler_static_works_GCJ=yes
17735      fi
17736    fi
17737    $rm conftest*
17738    LDFLAGS="$save_LDFLAGS"
17739
17740 fi
17741 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17742 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
17743
17744 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17745     :
17746 else
17747     lt_prog_compiler_static_GCJ=
17748 fi
17749
17750
17751 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17752 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17753 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17754   echo $ECHO_N "(cached) $ECHO_C" >&6
17755 else
17756   lt_cv_prog_compiler_c_o_GCJ=no
17757    $rm -r conftest 2>/dev/null
17758    mkdir conftest
17759    cd conftest
17760    mkdir out
17761    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17762
17763    lt_compiler_flag="-o out/conftest2.$ac_objext"
17764    # Insert the option either (1) after the last *FLAGS variable, or
17765    # (2) before a word containing "conftest.", or (3) at the end.
17766    # Note that $ac_compile itself does not contain backslashes and begins
17767    # with a dollar sign (not a hyphen), so the echo should work correctly.
17768    lt_compile=`echo "$ac_compile" | $SED \
17769    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17770    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17771    -e 's:$: $lt_compiler_flag:'`
17772    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
17773    (eval "$lt_compile" 2>out/conftest.err)
17774    ac_status=$?
17775    cat out/conftest.err >&5
17776    echo "$as_me:__oline__: \$? = $ac_status" >&5
17777    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17778    then
17779      # The compiler can only warn and ignore the option if not recognized
17780      # So say no if there are warnings
17781      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17782      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17783      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17784        lt_cv_prog_compiler_c_o_GCJ=yes
17785      fi
17786    fi
17787    chmod u+w . 2>&5
17788    $rm conftest*
17789    # SGI C++ compiler will create directory out/ii_files/ for
17790    # template instantiation
17791    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17792    $rm out/* && rmdir out
17793    cd ..
17794    rmdir conftest
17795    $rm conftest*
17796
17797 fi
17798 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17799 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17800
17801
17802 hard_links="nottested"
17803 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17804   # do not overwrite the value of need_locks provided by the user
17805   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17806 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17807   hard_links=yes
17808   $rm conftest*
17809   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17810   touch conftest.a
17811   ln conftest.a conftest.b 2>&5 || hard_links=no
17812   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17813   { echo "$as_me:$LINENO: result: $hard_links" >&5
17814 echo "${ECHO_T}$hard_links" >&6; }
17815   if test "$hard_links" = no; then
17816     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17817 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17818     need_locks=warn
17819   fi
17820 else
17821   need_locks=no
17822 fi
17823
17824 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17825 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17826
17827   runpath_var=
17828   allow_undefined_flag_GCJ=
17829   enable_shared_with_static_runtimes_GCJ=no
17830   archive_cmds_GCJ=
17831   archive_expsym_cmds_GCJ=
17832   old_archive_From_new_cmds_GCJ=
17833   old_archive_from_expsyms_cmds_GCJ=
17834   export_dynamic_flag_spec_GCJ=
17835   whole_archive_flag_spec_GCJ=
17836   thread_safe_flag_spec_GCJ=
17837   hardcode_libdir_flag_spec_GCJ=
17838   hardcode_libdir_flag_spec_ld_GCJ=
17839   hardcode_libdir_separator_GCJ=
17840   hardcode_direct_GCJ=no
17841   hardcode_minus_L_GCJ=no
17842   hardcode_shlibpath_var_GCJ=unsupported
17843   link_all_deplibs_GCJ=unknown
17844   hardcode_automatic_GCJ=no
17845   module_cmds_GCJ=
17846   module_expsym_cmds_GCJ=
17847   always_export_symbols_GCJ=no
17848   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17849   # include_expsyms should be a list of space-separated symbols to be *always*
17850   # included in the symbol list
17851   include_expsyms_GCJ=
17852   # exclude_expsyms can be an extended regexp of symbols to exclude
17853   # it will be wrapped by ` (' and `)$', so one must not match beginning or
17854   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17855   # as well as any symbol that contains `d'.
17856   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17857   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17858   # platforms (ab)use it in PIC code, but their linkers get confused if
17859   # the symbol is explicitly referenced.  Since portable code cannot
17860   # rely on this symbol name, it's probably fine to never include it in
17861   # preloaded symbol tables.
17862   extract_expsyms_cmds=
17863   # Just being paranoid about ensuring that cc_basename is set.
17864   for cc_temp in $compiler""; do
17865   case $cc_temp in
17866     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17867     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17868     \-*) ;;
17869     *) break;;
17870   esac
17871 done
17872 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17873
17874   case $host_os in
17875   cygwin* | mingw* | pw32*)
17876     # FIXME: the MSVC++ port hasn't been tested in a loooong time
17877     # When not using gcc, we currently assume that we are using
17878     # Microsoft Visual C++.
17879     if test "$GCC" != yes; then
17880       with_gnu_ld=no
17881     fi
17882     ;;
17883   interix*)
17884     # we just hope/assume this is gcc and not c89 (= MSVC++)
17885     with_gnu_ld=yes
17886     ;;
17887   openbsd*)
17888     with_gnu_ld=no
17889     ;;
17890   esac
17891
17892   ld_shlibs_GCJ=yes
17893   if test "$with_gnu_ld" = yes; then
17894     # If archive_cmds runs LD, not CC, wlarc should be empty
17895     wlarc='${wl}'
17896
17897     # Set some defaults for GNU ld with shared library support. These
17898     # are reset later if shared libraries are not supported. Putting them
17899     # here allows them to be overridden if necessary.
17900     runpath_var=LD_RUN_PATH
17901     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17902     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17903     # ancient GNU ld didn't support --whole-archive et. al.
17904     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17905         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17906       else
17907         whole_archive_flag_spec_GCJ=
17908     fi
17909     supports_anon_versioning=no
17910     case `$LD -v 2>/dev/null` in
17911       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17912       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17913       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17914       *\ 2.11.*) ;; # other 2.11 versions
17915       *) supports_anon_versioning=yes ;;
17916     esac
17917
17918     # See if GNU ld supports shared libraries.
17919     case $host_os in
17920     aix3* | aix4* | aix5*)
17921       # On AIX/PPC, the GNU linker is very broken
17922       if test "$host_cpu" != ia64; then
17923         ld_shlibs_GCJ=no
17924         cat <<EOF 1>&2
17925
17926 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17927 *** to be unable to reliably create shared libraries on AIX.
17928 *** Therefore, libtool is disabling shared libraries support.  If you
17929 *** really care for shared libraries, you may want to modify your PATH
17930 *** so that a non-GNU linker is found, and then restart.
17931
17932 EOF
17933       fi
17934       ;;
17935
17936     amigaos*)
17937       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)'
17938       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17939       hardcode_minus_L_GCJ=yes
17940
17941       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17942       # that the semantics of dynamic libraries on AmigaOS, at least up
17943       # to version 4, is to share data among multiple programs linked
17944       # with the same dynamic library.  Since this doesn't match the
17945       # behavior of shared libraries on other platforms, we can't use
17946       # them.
17947       ld_shlibs_GCJ=no
17948       ;;
17949
17950     beos*)
17951       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17952         allow_undefined_flag_GCJ=unsupported
17953         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17954         # support --undefined.  This deserves some investigation.  FIXME
17955         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17956       else
17957         ld_shlibs_GCJ=no
17958       fi
17959       ;;
17960
17961     cygwin* | mingw* | pw32*)
17962       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17963       # as there is no search path for DLLs.
17964       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17965       allow_undefined_flag_GCJ=unsupported
17966       always_export_symbols_GCJ=no
17967       enable_shared_with_static_runtimes_GCJ=yes
17968       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17969
17970       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17971         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17972         # If the export-symbols file already is a .def file (1st line
17973         # is EXPORTS), use it as is; otherwise, prepend...
17974         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17975           cp $export_symbols $output_objdir/$soname.def;
17976         else
17977           echo EXPORTS > $output_objdir/$soname.def;
17978           cat $export_symbols >> $output_objdir/$soname.def;
17979         fi~
17980         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17981       else
17982         ld_shlibs_GCJ=no
17983       fi
17984       ;;
17985
17986     interix3*)
17987       hardcode_direct_GCJ=no
17988       hardcode_shlibpath_var_GCJ=no
17989       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17990       export_dynamic_flag_spec_GCJ='${wl}-E'
17991       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17992       # Instead, shared libraries are loaded at an image base (0x10000000 by
17993       # default) and relocated if they conflict, which is a slow very memory
17994       # consuming and fragmenting process.  To avoid this, we pick a random,
17995       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17996       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17997       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'
17998       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'
17999       ;;
18000
18001     linux* | k*bsd*-gnu)
18002       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18003         tmp_addflag=
18004         case $cc_basename,$host_cpu in
18005         pgcc*)                          # Portland Group C compiler
18006           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'
18007           tmp_addflag=' $pic_flag'
18008           ;;
18009         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
18010           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'
18011           tmp_addflag=' $pic_flag -Mnomain' ;;
18012         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
18013           tmp_addflag=' -i_dynamic' ;;
18014         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
18015           tmp_addflag=' -i_dynamic -nofor_main' ;;
18016         ifc* | ifort*)                  # Intel Fortran compiler
18017           tmp_addflag=' -nofor_main' ;;
18018         esac
18019         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18020
18021         if test $supports_anon_versioning = yes; then
18022           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18023   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18024   $echo "local: *; };" >> $output_objdir/$libname.ver~
18025           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18026         fi
18027         link_all_deplibs_GCJ=no
18028       else
18029         ld_shlibs_GCJ=no
18030       fi
18031       ;;
18032
18033     netbsd* | netbsdelf*-gnu)
18034       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18035         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18036         wlarc=
18037       else
18038         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18039         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18040       fi
18041       ;;
18042
18043     solaris*)
18044       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18045         ld_shlibs_GCJ=no
18046         cat <<EOF 1>&2
18047
18048 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
18049 *** create shared libraries on Solaris systems.  Therefore, libtool
18050 *** is disabling shared libraries support.  We urge you to upgrade GNU
18051 *** binutils to release 2.9.1 or newer.  Another option is to modify
18052 *** your PATH or compiler configuration so that the native linker is
18053 *** used, and then restart.
18054
18055 EOF
18056       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18057         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18058         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18059       else
18060         ld_shlibs_GCJ=no
18061       fi
18062       ;;
18063
18064     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18065       case `$LD -v 2>&1` in
18066         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 
18067         ld_shlibs_GCJ=no
18068         cat <<_LT_EOF 1>&2
18069
18070 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18071 *** reliably create shared libraries on SCO systems.  Therefore, libtool
18072 *** is disabling shared libraries support.  We urge you to upgrade GNU
18073 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
18074 *** your PATH or compiler configuration so that the native linker is
18075 *** used, and then restart.
18076
18077 _LT_EOF
18078         ;;
18079         *)
18080           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18081             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
18082             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
18083             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
18084           else
18085             ld_shlibs_GCJ=no
18086           fi
18087         ;;
18088       esac
18089       ;;
18090
18091     sunos4*)
18092       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18093       wlarc=
18094       hardcode_direct_GCJ=yes
18095       hardcode_shlibpath_var_GCJ=no
18096       ;;
18097
18098     *)
18099       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18100         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18101         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18102       else
18103         ld_shlibs_GCJ=no
18104       fi
18105       ;;
18106     esac
18107
18108     if test "$ld_shlibs_GCJ" = no; then
18109       runpath_var=
18110       hardcode_libdir_flag_spec_GCJ=
18111       export_dynamic_flag_spec_GCJ=
18112       whole_archive_flag_spec_GCJ=
18113     fi
18114   else
18115     # PORTME fill in a description of your system's linker (not GNU ld)
18116     case $host_os in
18117     aix3*)
18118       allow_undefined_flag_GCJ=unsupported
18119       always_export_symbols_GCJ=yes
18120       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'
18121       # Note: this linker hardcodes the directories in LIBPATH if there
18122       # are no directories specified by -L.
18123       hardcode_minus_L_GCJ=yes
18124       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18125         # Neither direct hardcoding nor static linking is supported with a
18126         # broken collect2.
18127         hardcode_direct_GCJ=unsupported
18128       fi
18129       ;;
18130
18131     aix4* | aix5*)
18132       if test "$host_cpu" = ia64; then
18133         # On IA64, the linker does run time linking by default, so we don't
18134         # have to do anything special.
18135         aix_use_runtimelinking=no
18136         exp_sym_flag='-Bexport'
18137         no_entry_flag=""
18138       else
18139         # If we're using GNU nm, then we don't want the "-C" option.
18140         # -C means demangle to AIX nm, but means don't demangle with GNU nm
18141         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18142           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'
18143         else
18144           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'
18145         fi
18146         aix_use_runtimelinking=no
18147
18148         # Test if we are trying to use run time linking or normal
18149         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18150         # need to do runtime linking.
18151         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18152           for ld_flag in $LDFLAGS; do
18153           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18154             aix_use_runtimelinking=yes
18155             break
18156           fi
18157           done
18158           ;;
18159         esac
18160
18161         exp_sym_flag='-bexport'
18162         no_entry_flag='-bnoentry'
18163       fi
18164
18165       # When large executables or shared objects are built, AIX ld can
18166       # have problems creating the table of contents.  If linking a library
18167       # or program results in "error TOC overflow" add -mminimal-toc to
18168       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18169       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18170
18171       archive_cmds_GCJ=''
18172       hardcode_direct_GCJ=yes
18173       hardcode_libdir_separator_GCJ=':'
18174       link_all_deplibs_GCJ=yes
18175
18176       if test "$GCC" = yes; then
18177         case $host_os in aix4.[012]|aix4.[012].*)
18178         # We only want to do this on AIX 4.2 and lower, the check
18179         # below for broken collect2 doesn't work under 4.3+
18180           collect2name=`${CC} -print-prog-name=collect2`
18181           if test -f "$collect2name" && \
18182            strings "$collect2name" | grep resolve_lib_name >/dev/null
18183           then
18184           # We have reworked collect2
18185           hardcode_direct_GCJ=yes
18186           else
18187           # We have old collect2
18188           hardcode_direct_GCJ=unsupported
18189           # It fails to find uninstalled libraries when the uninstalled
18190           # path is not listed in the libpath.  Setting hardcode_minus_L
18191           # to unsupported forces relinking
18192           hardcode_minus_L_GCJ=yes
18193           hardcode_libdir_flag_spec_GCJ='-L$libdir'
18194           hardcode_libdir_separator_GCJ=
18195           fi
18196           ;;
18197         esac
18198         shared_flag='-shared'
18199         if test "$aix_use_runtimelinking" = yes; then
18200           shared_flag="$shared_flag "'${wl}-G'
18201         fi
18202       else
18203         # not using gcc
18204         if test "$host_cpu" = ia64; then
18205         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18206         # chokes on -Wl,-G. The following line is correct:
18207           shared_flag='-G'
18208         else
18209           if test "$aix_use_runtimelinking" = yes; then
18210             shared_flag='${wl}-G'
18211           else
18212             shared_flag='${wl}-bM:SRE'
18213           fi
18214         fi
18215       fi
18216
18217       # It seems that -bexpall does not export symbols beginning with
18218       # underscore (_), so it is better to generate a list of symbols to export.
18219       always_export_symbols_GCJ=yes
18220       if test "$aix_use_runtimelinking" = yes; then
18221         # Warning - without using the other runtime loading flags (-brtl),
18222         # -berok will link without error, but may produce a broken library.
18223         allow_undefined_flag_GCJ='-berok'
18224        # Determine the default libpath from the value encoded in an empty executable.
18225        cat >conftest.$ac_ext <<_ACEOF
18226 /* confdefs.h.  */
18227 _ACEOF
18228 cat confdefs.h >>conftest.$ac_ext
18229 cat >>conftest.$ac_ext <<_ACEOF
18230 /* end confdefs.h.  */
18231
18232 int
18233 main ()
18234 {
18235
18236   ;
18237   return 0;
18238 }
18239 _ACEOF
18240 rm -f conftest.$ac_objext conftest$ac_exeext
18241 if { (ac_try="$ac_link"
18242 case "(($ac_try" in
18243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18244   *) ac_try_echo=$ac_try;;
18245 esac
18246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18247   (eval "$ac_link") 2>conftest.er1
18248   ac_status=$?
18249   grep -v '^ *+' conftest.er1 >conftest.err
18250   rm -f conftest.er1
18251   cat conftest.err >&5
18252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18253   (exit $ac_status); } && {
18254          test -z "$ac_c_werror_flag" ||
18255          test ! -s conftest.err
18256        } && test -s conftest$ac_exeext &&
18257        $as_test_x conftest$ac_exeext; then
18258   
18259 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18260 }'`
18261 # Check for a 64-bit object if we didn't find anything.
18262 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18263 }'`; fi
18264 else
18265   echo "$as_me: failed program was:" >&5
18266 sed 's/^/| /' conftest.$ac_ext >&5
18267
18268         
18269 fi
18270
18271 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18272       conftest$ac_exeext conftest.$ac_ext
18273 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18274
18275        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18276         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"
18277        else
18278         if test "$host_cpu" = ia64; then
18279           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18280           allow_undefined_flag_GCJ="-z nodefs"
18281           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"
18282         else
18283          # Determine the default libpath from the value encoded in an empty executable.
18284          cat >conftest.$ac_ext <<_ACEOF
18285 /* confdefs.h.  */
18286 _ACEOF
18287 cat confdefs.h >>conftest.$ac_ext
18288 cat >>conftest.$ac_ext <<_ACEOF
18289 /* end confdefs.h.  */
18290
18291 int
18292 main ()
18293 {
18294
18295   ;
18296   return 0;
18297 }
18298 _ACEOF
18299 rm -f conftest.$ac_objext conftest$ac_exeext
18300 if { (ac_try="$ac_link"
18301 case "(($ac_try" in
18302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18303   *) ac_try_echo=$ac_try;;
18304 esac
18305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18306   (eval "$ac_link") 2>conftest.er1
18307   ac_status=$?
18308   grep -v '^ *+' conftest.er1 >conftest.err
18309   rm -f conftest.er1
18310   cat conftest.err >&5
18311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18312   (exit $ac_status); } && {
18313          test -z "$ac_c_werror_flag" ||
18314          test ! -s conftest.err
18315        } && test -s conftest$ac_exeext &&
18316        $as_test_x conftest$ac_exeext; then
18317   
18318 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18319 }'`
18320 # Check for a 64-bit object if we didn't find anything.
18321 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18322 }'`; fi
18323 else
18324   echo "$as_me: failed program was:" >&5
18325 sed 's/^/| /' conftest.$ac_ext >&5
18326
18327         
18328 fi
18329
18330 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18331       conftest$ac_exeext conftest.$ac_ext
18332 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18333
18334          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18335           # Warning - without using the other run time loading flags,
18336           # -berok will link without error, but may produce a broken library.
18337           no_undefined_flag_GCJ=' ${wl}-bernotok'
18338           allow_undefined_flag_GCJ=' ${wl}-berok'
18339           # Exported symbols can be pulled into shared objects from archives
18340           whole_archive_flag_spec_GCJ='$convenience'
18341           archive_cmds_need_lc_GCJ=yes
18342           # This is similar to how AIX traditionally builds its shared libraries.
18343           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'
18344         fi
18345       fi
18346       ;;
18347
18348     amigaos*)
18349       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)'
18350       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18351       hardcode_minus_L_GCJ=yes
18352       # see comment about different semantics on the GNU ld section
18353       ld_shlibs_GCJ=no
18354       ;;
18355
18356     bsdi[45]*)
18357       export_dynamic_flag_spec_GCJ=-rdynamic
18358       ;;
18359
18360     cygwin* | mingw* | pw32*)
18361       # When not using gcc, we currently assume that we are using
18362       # Microsoft Visual C++.
18363       # hardcode_libdir_flag_spec is actually meaningless, as there is
18364       # no search path for DLLs.
18365       hardcode_libdir_flag_spec_GCJ=' '
18366       allow_undefined_flag_GCJ=unsupported
18367       # Tell ltmain to make .lib files, not .a files.
18368       libext=lib
18369       # Tell ltmain to make .dll files, not .so files.
18370       shrext_cmds=".dll"
18371       # FIXME: Setting linknames here is a bad hack.
18372       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18373       # The linker will automatically build a .lib file if we build a DLL.
18374       old_archive_From_new_cmds_GCJ='true'
18375       # FIXME: Should let the user specify the lib program.
18376       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
18377       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18378       enable_shared_with_static_runtimes_GCJ=yes
18379       ;;
18380
18381     darwin* | rhapsody*)
18382       case $host_os in
18383         rhapsody* | darwin1.[012])
18384          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18385          ;;
18386        *) # Darwin 1.3 on
18387          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18388            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18389          else
18390            case ${MACOSX_DEPLOYMENT_TARGET} in
18391              10.[012])
18392                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18393                ;;
18394              10.*)
18395                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18396                ;;
18397            esac
18398          fi
18399          ;;
18400       esac
18401       archive_cmds_need_lc_GCJ=no
18402       hardcode_direct_GCJ=no
18403       hardcode_automatic_GCJ=yes
18404       hardcode_shlibpath_var_GCJ=unsupported
18405       whole_archive_flag_spec_GCJ=''
18406       link_all_deplibs_GCJ=yes
18407     if test "$GCC" = yes ; then
18408         output_verbose_link_cmd='echo'
18409         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18410       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18411       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18412       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}'
18413       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}'
18414     else
18415       case $cc_basename in
18416         xlc*)
18417          output_verbose_link_cmd='echo'
18418          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
18419          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18420           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18421          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18422           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}'
18423           ;;
18424        *)
18425          ld_shlibs_GCJ=no
18426           ;;
18427       esac
18428     fi
18429       ;;
18430
18431     dgux*)
18432       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18433       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18434       hardcode_shlibpath_var_GCJ=no
18435       ;;
18436
18437     freebsd1*)
18438       ld_shlibs_GCJ=no
18439       ;;
18440
18441     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18442     # support.  Future versions do this automatically, but an explicit c++rt0.o
18443     # does not break anything, and helps significantly (at the cost of a little
18444     # extra space).
18445     freebsd2.2*)
18446       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18447       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18448       hardcode_direct_GCJ=yes
18449       hardcode_shlibpath_var_GCJ=no
18450       ;;
18451
18452     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18453     freebsd2*)
18454       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18455       hardcode_direct_GCJ=yes
18456       hardcode_minus_L_GCJ=yes
18457       hardcode_shlibpath_var_GCJ=no
18458       ;;
18459
18460     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18461     freebsd* | dragonfly*)
18462       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18463       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18464       hardcode_direct_GCJ=yes
18465       hardcode_shlibpath_var_GCJ=no
18466       ;;
18467
18468     hpux9*)
18469       if test "$GCC" = yes; then
18470         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'
18471       else
18472         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'
18473       fi
18474       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18475       hardcode_libdir_separator_GCJ=:
18476       hardcode_direct_GCJ=yes
18477
18478       # hardcode_minus_L: Not really in the search PATH,
18479       # but as the default location of the library.
18480       hardcode_minus_L_GCJ=yes
18481       export_dynamic_flag_spec_GCJ='${wl}-E'
18482       ;;
18483
18484     hpux10*)
18485       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18486         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18487       else
18488         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18489       fi
18490       if test "$with_gnu_ld" = no; then
18491         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18492         hardcode_libdir_separator_GCJ=:
18493
18494         hardcode_direct_GCJ=yes
18495         export_dynamic_flag_spec_GCJ='${wl}-E'
18496
18497         # hardcode_minus_L: Not really in the search PATH,
18498         # but as the default location of the library.
18499         hardcode_minus_L_GCJ=yes
18500       fi
18501       ;;
18502
18503     hpux11*)
18504       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18505         case $host_cpu in
18506         hppa*64*)
18507           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18508           ;;
18509         ia64*)
18510           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18511           ;;
18512         *)
18513           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18514           ;;
18515         esac
18516       else
18517         case $host_cpu in
18518         hppa*64*)
18519           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18520           ;;
18521         ia64*)
18522           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18523           ;;
18524         *)
18525           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18526           ;;
18527         esac
18528       fi
18529       if test "$with_gnu_ld" = no; then
18530         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18531         hardcode_libdir_separator_GCJ=:
18532
18533         case $host_cpu in
18534         hppa*64*|ia64*)
18535           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18536           hardcode_direct_GCJ=no
18537           hardcode_shlibpath_var_GCJ=no
18538           ;;
18539         *)
18540           hardcode_direct_GCJ=yes
18541           export_dynamic_flag_spec_GCJ='${wl}-E'
18542
18543           # hardcode_minus_L: Not really in the search PATH,
18544           # but as the default location of the library.
18545           hardcode_minus_L_GCJ=yes
18546           ;;
18547         esac
18548       fi
18549       ;;
18550
18551     irix5* | irix6* | nonstopux*)
18552       if test "$GCC" = yes; then
18553         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'
18554       else
18555         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'
18556         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18557       fi
18558       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18559       hardcode_libdir_separator_GCJ=:
18560       link_all_deplibs_GCJ=yes
18561       ;;
18562
18563     netbsd* | netbsdelf*-gnu)
18564       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18565         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18566       else
18567         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18568       fi
18569       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18570       hardcode_direct_GCJ=yes
18571       hardcode_shlibpath_var_GCJ=no
18572       ;;
18573
18574     newsos6)
18575       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18576       hardcode_direct_GCJ=yes
18577       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18578       hardcode_libdir_separator_GCJ=:
18579       hardcode_shlibpath_var_GCJ=no
18580       ;;
18581
18582     openbsd*)
18583       hardcode_direct_GCJ=yes
18584       hardcode_shlibpath_var_GCJ=no
18585       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18586         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18587         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18588         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18589         export_dynamic_flag_spec_GCJ='${wl}-E'
18590       else
18591        case $host_os in
18592          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18593            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18594            hardcode_libdir_flag_spec_GCJ='-R$libdir'
18595            ;;
18596          *)
18597            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18598            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18599            ;;
18600        esac
18601       fi
18602       ;;
18603
18604     os2*)
18605       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18606       hardcode_minus_L_GCJ=yes
18607       allow_undefined_flag_GCJ=unsupported
18608       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'
18609       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18610       ;;
18611
18612     osf3*)
18613       if test "$GCC" = yes; then
18614         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18615         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'
18616       else
18617         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18618         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'
18619       fi
18620       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18621       hardcode_libdir_separator_GCJ=:
18622       ;;
18623
18624     osf4* | osf5*)      # as osf3* with the addition of -msym flag
18625       if test "$GCC" = yes; then
18626         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18627         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'
18628         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18629       else
18630         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18631         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'
18632         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~
18633         $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'
18634
18635         # Both c and cxx compiler support -rpath directly
18636         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18637       fi
18638       hardcode_libdir_separator_GCJ=:
18639       ;;
18640
18641     solaris*)
18642       no_undefined_flag_GCJ=' -z text'
18643       if test "$GCC" = yes; then
18644         wlarc='${wl}'
18645         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18646         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18647           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18648       else
18649         wlarc=''
18650         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18651         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18652         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18653       fi
18654       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18655       hardcode_shlibpath_var_GCJ=no
18656       case $host_os in
18657       solaris2.[0-5] | solaris2.[0-5].*) ;;
18658       *)
18659         # The compiler driver will combine linker options so we
18660         # cannot just pass the convience library names through
18661         # without $wl, iff we do not link with $LD.
18662         # Luckily, gcc supports the same syntax we need for Sun Studio.
18663         # Supported since Solaris 2.6 (maybe 2.5.1?)
18664         case $wlarc in
18665         '')
18666           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
18667         *)
18668           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
18669         esac ;;
18670       esac
18671       link_all_deplibs_GCJ=yes
18672       ;;
18673
18674     sunos4*)
18675       if test "x$host_vendor" = xsequent; then
18676         # Use $CC to link under sequent, because it throws in some extra .o
18677         # files that make .init and .fini sections work.
18678         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18679       else
18680         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18681       fi
18682       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18683       hardcode_direct_GCJ=yes
18684       hardcode_minus_L_GCJ=yes
18685       hardcode_shlibpath_var_GCJ=no
18686       ;;
18687
18688     sysv4)
18689       case $host_vendor in
18690         sni)
18691           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18692           hardcode_direct_GCJ=yes # is this really true???
18693         ;;
18694         siemens)
18695           ## LD is ld it makes a PLAMLIB
18696           ## CC just makes a GrossModule.
18697           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18698           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18699           hardcode_direct_GCJ=no
18700         ;;
18701         motorola)
18702           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18703           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18704         ;;
18705       esac
18706       runpath_var='LD_RUN_PATH'
18707       hardcode_shlibpath_var_GCJ=no
18708       ;;
18709
18710     sysv4.3*)
18711       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18712       hardcode_shlibpath_var_GCJ=no
18713       export_dynamic_flag_spec_GCJ='-Bexport'
18714       ;;
18715
18716     sysv4*MP*)
18717       if test -d /usr/nec; then
18718         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18719         hardcode_shlibpath_var_GCJ=no
18720         runpath_var=LD_RUN_PATH
18721         hardcode_runpath_var=yes
18722         ld_shlibs_GCJ=yes
18723       fi
18724       ;;
18725
18726     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
18727       no_undefined_flag_GCJ='${wl}-z,text'
18728       archive_cmds_need_lc_GCJ=no
18729       hardcode_shlibpath_var_GCJ=no
18730       runpath_var='LD_RUN_PATH'
18731
18732       if test "$GCC" = yes; then
18733         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18734         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18735       else
18736         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18737         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18738       fi
18739       ;;
18740
18741     sysv5* | sco3.2v5* | sco5v6*)
18742       # Note: We can NOT use -z defs as we might desire, because we do not
18743       # link with -lc, and that would cause any symbols used from libc to
18744       # always be unresolved, which means just about no library would
18745       # ever link correctly.  If we're not using GNU ld we use -z text
18746       # though, which does catch some bad symbols but isn't as heavy-handed
18747       # as -z defs.
18748       no_undefined_flag_GCJ='${wl}-z,text'
18749       allow_undefined_flag_GCJ='${wl}-z,nodefs'
18750       archive_cmds_need_lc_GCJ=no
18751       hardcode_shlibpath_var_GCJ=no
18752       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18753       hardcode_libdir_separator_GCJ=':'
18754       link_all_deplibs_GCJ=yes
18755       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18756       runpath_var='LD_RUN_PATH'
18757
18758       if test "$GCC" = yes; then
18759         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18760         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18761       else
18762         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18763         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18764       fi
18765       ;;
18766
18767     uts4*)
18768       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18769       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18770       hardcode_shlibpath_var_GCJ=no
18771       ;;
18772
18773     *)
18774       ld_shlibs_GCJ=no
18775       ;;
18776     esac
18777   fi
18778
18779 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18780 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18781 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18782
18783 #
18784 # Do we need to explicitly link libc?
18785 #
18786 case "x$archive_cmds_need_lc_GCJ" in
18787 x|xyes)
18788   # Assume -lc should be added
18789   archive_cmds_need_lc_GCJ=yes
18790
18791   if test "$enable_shared" = yes && test "$GCC" = yes; then
18792     case $archive_cmds_GCJ in
18793     *'~'*)
18794       # FIXME: we may have to deal with multi-command sequences.
18795       ;;
18796     '$CC '*)
18797       # Test whether the compiler implicitly links with -lc since on some
18798       # systems, -lgcc has to come before -lc. If gcc already passes -lc
18799       # to ld, don't add -lc before -lgcc.
18800       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18801 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18802       $rm conftest*
18803       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18804
18805       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18806   (eval $ac_compile) 2>&5
18807   ac_status=$?
18808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18809   (exit $ac_status); } 2>conftest.err; then
18810         soname=conftest
18811         lib=conftest
18812         libobjs=conftest.$ac_objext
18813         deplibs=
18814         wl=$lt_prog_compiler_wl_GCJ
18815         pic_flag=$lt_prog_compiler_pic_GCJ
18816         compiler_flags=-v
18817         linker_flags=-v
18818         verstring=
18819         output_objdir=.
18820         libname=conftest
18821         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18822         allow_undefined_flag_GCJ=
18823         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18824   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18825   ac_status=$?
18826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18827   (exit $ac_status); }
18828         then
18829           archive_cmds_need_lc_GCJ=no
18830         else
18831           archive_cmds_need_lc_GCJ=yes
18832         fi
18833         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18834       else
18835         cat conftest.err 1>&5
18836       fi
18837       $rm conftest*
18838       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18839 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18840       ;;
18841     esac
18842   fi
18843   ;;
18844 esac
18845
18846 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18847 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18848 library_names_spec=
18849 libname_spec='lib$name'
18850 soname_spec=
18851 shrext_cmds=".so"
18852 postinstall_cmds=
18853 postuninstall_cmds=
18854 finish_cmds=
18855 finish_eval=
18856 shlibpath_var=
18857 shlibpath_overrides_runpath=unknown
18858 version_type=none
18859 dynamic_linker="$host_os ld.so"
18860 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18861 if test "$GCC" = yes; then
18862   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18863   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18864     # if the path contains ";" then we assume it to be the separator
18865     # otherwise default to the standard path separator (i.e. ":") - it is
18866     # assumed that no part of a normal pathname contains ";" but that should
18867     # okay in the real world where ";" in dirpaths is itself problematic.
18868     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18869   else
18870     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18871   fi
18872 else
18873   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18874 fi
18875 need_lib_prefix=unknown
18876 hardcode_into_libs=no
18877
18878 # when you set need_version to no, make sure it does not cause -set_version
18879 # flags to be left without arguments
18880 need_version=unknown
18881
18882 case $host_os in
18883 aix3*)
18884   version_type=linux
18885   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18886   shlibpath_var=LIBPATH
18887
18888   # AIX 3 has no versioning support, so we append a major version to the name.
18889   soname_spec='${libname}${release}${shared_ext}$major'
18890   ;;
18891
18892 aix4* | aix5*)
18893   version_type=linux
18894   need_lib_prefix=no
18895   need_version=no
18896   hardcode_into_libs=yes
18897   if test "$host_cpu" = ia64; then
18898     # AIX 5 supports IA64
18899     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18900     shlibpath_var=LD_LIBRARY_PATH
18901   else
18902     # With GCC up to 2.95.x, collect2 would create an import file
18903     # for dependence libraries.  The import file would start with
18904     # the line `#! .'.  This would cause the generated library to
18905     # depend on `.', always an invalid library.  This was fixed in
18906     # development snapshots of GCC prior to 3.0.
18907     case $host_os in
18908       aix4 | aix4.[01] | aix4.[01].*)
18909       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18910            echo ' yes '
18911            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18912         :
18913       else
18914         can_build_shared=no
18915       fi
18916       ;;
18917     esac
18918     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18919     # soname into executable. Probably we can add versioning support to
18920     # collect2, so additional links can be useful in future.
18921     if test "$aix_use_runtimelinking" = yes; then
18922       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18923       # instead of lib<name>.a to let people know that these are not
18924       # typical AIX shared libraries.
18925       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18926     else
18927       # We preserve .a as extension for shared libraries through AIX4.2
18928       # and later when we are not doing run time linking.
18929       library_names_spec='${libname}${release}.a $libname.a'
18930       soname_spec='${libname}${release}${shared_ext}$major'
18931     fi
18932     shlibpath_var=LIBPATH
18933   fi
18934   ;;
18935
18936 amigaos*)
18937   library_names_spec='$libname.ixlibrary $libname.a'
18938   # Create ${libname}_ixlibrary.a entries in /sys/libs.
18939   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'
18940   ;;
18941
18942 beos*)
18943   library_names_spec='${libname}${shared_ext}'
18944   dynamic_linker="$host_os ld.so"
18945   shlibpath_var=LIBRARY_PATH
18946   ;;
18947
18948 bsdi[45]*)
18949   version_type=linux
18950   need_version=no
18951   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18952   soname_spec='${libname}${release}${shared_ext}$major'
18953   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18954   shlibpath_var=LD_LIBRARY_PATH
18955   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18956   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18957   # the default ld.so.conf also contains /usr/contrib/lib and
18958   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18959   # libtool to hard-code these into programs
18960   ;;
18961
18962 cygwin* | mingw* | pw32*)
18963   version_type=windows
18964   shrext_cmds=".dll"
18965   need_version=no
18966   need_lib_prefix=no
18967
18968   case $GCC,$host_os in
18969   yes,cygwin* | yes,mingw* | yes,pw32*)
18970     library_names_spec='$libname.dll.a'
18971     # DLL is installed to $(libdir)/../bin by postinstall_cmds
18972     postinstall_cmds='base_file=`basename \${file}`~
18973       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18974       dldir=$destdir/`dirname \$dlpath`~
18975       test -d \$dldir || mkdir -p \$dldir~
18976       $install_prog $dir/$dlname \$dldir/$dlname~
18977       chmod a+x \$dldir/$dlname'
18978     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18979       dlpath=$dir/\$dldll~
18980        $rm \$dlpath'
18981     shlibpath_overrides_runpath=yes
18982
18983     case $host_os in
18984     cygwin*)
18985       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18986       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18987       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18988       ;;
18989     mingw*)
18990       # MinGW DLLs use traditional 'lib' prefix
18991       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18992       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18993       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18994         # It is most probably a Windows format PATH printed by
18995         # mingw gcc, but we are running on Cygwin. Gcc prints its search
18996         # path with ; separators, and with drive letters. We can handle the
18997         # drive letters (cygwin fileutils understands them), so leave them,
18998         # especially as we might pass files found there to a mingw objdump,
18999         # which wouldn't understand a cygwinified path. Ahh.
19000         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19001       else
19002         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19003       fi
19004       ;;
19005     pw32*)
19006       # pw32 DLLs use 'pw' prefix rather than 'lib'
19007       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19008       ;;
19009     esac
19010     ;;
19011
19012   *)
19013     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19014     ;;
19015   esac
19016   dynamic_linker='Win32 ld.exe'
19017   # FIXME: first we should search . and the directory the executable is in
19018   shlibpath_var=PATH
19019   ;;
19020
19021 darwin* | rhapsody*)
19022   dynamic_linker="$host_os dyld"
19023   version_type=darwin
19024   need_lib_prefix=no
19025   need_version=no
19026   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19027   soname_spec='${libname}${release}${major}$shared_ext'
19028   shlibpath_overrides_runpath=yes
19029   shlibpath_var=DYLD_LIBRARY_PATH
19030   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19031   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19032   if test "$GCC" = yes; then
19033     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
19034   else
19035     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
19036   fi
19037   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19038   ;;
19039
19040 dgux*)
19041   version_type=linux
19042   need_lib_prefix=no
19043   need_version=no
19044   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19045   soname_spec='${libname}${release}${shared_ext}$major'
19046   shlibpath_var=LD_LIBRARY_PATH
19047   ;;
19048
19049 freebsd1*)
19050   dynamic_linker=no
19051   ;;
19052
19053 freebsd* | dragonfly*)
19054   # DragonFly does not have aout.  When/if they implement a new
19055   # versioning mechanism, adjust this.
19056   if test -x /usr/bin/objformat; then
19057     objformat=`/usr/bin/objformat`
19058   else
19059     case $host_os in
19060     freebsd[123]*) objformat=aout ;;
19061     *) objformat=elf ;;
19062     esac
19063   fi
19064   version_type=freebsd-$objformat
19065   case $version_type in
19066     freebsd-elf*)
19067       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19068       need_version=no
19069       need_lib_prefix=no
19070       ;;
19071     freebsd-*)
19072       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19073       need_version=yes
19074       ;;
19075   esac
19076   shlibpath_var=LD_LIBRARY_PATH
19077   case $host_os in
19078   freebsd2*)
19079     shlibpath_overrides_runpath=yes
19080     ;;
19081   freebsd3.[01]* | freebsdelf3.[01]*)
19082     shlibpath_overrides_runpath=yes
19083     hardcode_into_libs=yes
19084     ;;
19085   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19086   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19087     shlibpath_overrides_runpath=no
19088     hardcode_into_libs=yes
19089     ;;
19090   freebsd*) # from 4.6 on
19091     shlibpath_overrides_runpath=yes
19092     hardcode_into_libs=yes
19093     ;;
19094   esac
19095   ;;
19096
19097 gnu*)
19098   version_type=linux
19099   need_lib_prefix=no
19100   need_version=no
19101   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19102   soname_spec='${libname}${release}${shared_ext}$major'
19103   shlibpath_var=LD_LIBRARY_PATH
19104   hardcode_into_libs=yes
19105   ;;
19106
19107 hpux9* | hpux10* | hpux11*)
19108   # Give a soname corresponding to the major version so that dld.sl refuses to
19109   # link against other versions.
19110   version_type=sunos
19111   need_lib_prefix=no
19112   need_version=no
19113   case $host_cpu in
19114   ia64*)
19115     shrext_cmds='.so'
19116     hardcode_into_libs=yes
19117     dynamic_linker="$host_os dld.so"
19118     shlibpath_var=LD_LIBRARY_PATH
19119     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19120     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19121     soname_spec='${libname}${release}${shared_ext}$major'
19122     if test "X$HPUX_IA64_MODE" = X32; then
19123       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19124     else
19125       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19126     fi
19127     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19128     ;;
19129    hppa*64*)
19130      shrext_cmds='.sl'
19131      hardcode_into_libs=yes
19132      dynamic_linker="$host_os dld.sl"
19133      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19134      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19135      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19136      soname_spec='${libname}${release}${shared_ext}$major'
19137      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19138      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19139      ;;
19140    *)
19141     shrext_cmds='.sl'
19142     dynamic_linker="$host_os dld.sl"
19143     shlibpath_var=SHLIB_PATH
19144     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19145     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19146     soname_spec='${libname}${release}${shared_ext}$major'
19147     ;;
19148   esac
19149   # HP-UX runs *really* slowly unless shared libraries are mode 555.
19150   postinstall_cmds='chmod 555 $lib'
19151   ;;
19152
19153 interix3*)
19154   version_type=linux
19155   need_lib_prefix=no
19156   need_version=no
19157   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19158   soname_spec='${libname}${release}${shared_ext}$major'
19159   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19160   shlibpath_var=LD_LIBRARY_PATH
19161   shlibpath_overrides_runpath=no
19162   hardcode_into_libs=yes
19163   ;;
19164
19165 irix5* | irix6* | nonstopux*)
19166   case $host_os in
19167     nonstopux*) version_type=nonstopux ;;
19168     *)
19169         if test "$lt_cv_prog_gnu_ld" = yes; then
19170                 version_type=linux
19171         else
19172                 version_type=irix
19173         fi ;;
19174   esac
19175   need_lib_prefix=no
19176   need_version=no
19177   soname_spec='${libname}${release}${shared_ext}$major'
19178   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19179   case $host_os in
19180   irix5* | nonstopux*)
19181     libsuff= shlibsuff=
19182     ;;
19183   *)
19184     case $LD in # libtool.m4 will add one of these switches to LD
19185     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19186       libsuff= shlibsuff= libmagic=32-bit;;
19187     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19188       libsuff=32 shlibsuff=N32 libmagic=N32;;
19189     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19190       libsuff=64 shlibsuff=64 libmagic=64-bit;;
19191     *) libsuff= shlibsuff= libmagic=never-match;;
19192     esac
19193     ;;
19194   esac
19195   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19196   shlibpath_overrides_runpath=no
19197   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19198   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19199   hardcode_into_libs=yes
19200   ;;
19201
19202 # No shared lib support for Linux oldld, aout, or coff.
19203 linux*oldld* | linux*aout* | linux*coff*)
19204   dynamic_linker=no
19205   ;;
19206
19207 # This must be Linux ELF.
19208 linux* | k*bsd*-gnu)
19209   version_type=linux
19210   need_lib_prefix=no
19211   need_version=no
19212   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19213   soname_spec='${libname}${release}${shared_ext}$major'
19214   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19215   shlibpath_var=LD_LIBRARY_PATH
19216   shlibpath_overrides_runpath=no
19217   # This implies no fast_install, which is unacceptable.
19218   # Some rework will be needed to allow for fast_install
19219   # before this can be enabled.
19220   hardcode_into_libs=yes
19221
19222   # Append ld.so.conf contents to the search path
19223   if test -f /etc/ld.so.conf; then
19224     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
19225     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19226   fi
19227
19228   # We used to test for /lib/ld.so.1 and disable shared libraries on
19229   # powerpc, because MkLinux only supported shared libraries with the
19230   # GNU dynamic linker.  Since this was broken with cross compilers,
19231   # most powerpc-linux boxes support dynamic linking these days and
19232   # people can always --disable-shared, the test was removed, and we
19233   # assume the GNU/Linux dynamic linker is in use.
19234   dynamic_linker='GNU/Linux ld.so'
19235   ;;
19236
19237 netbsdelf*-gnu)
19238   version_type=linux
19239   need_lib_prefix=no
19240   need_version=no
19241   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19242   soname_spec='${libname}${release}${shared_ext}$major'
19243   shlibpath_var=LD_LIBRARY_PATH
19244   shlibpath_overrides_runpath=no
19245   hardcode_into_libs=yes
19246   dynamic_linker='NetBSD ld.elf_so'
19247   ;;
19248
19249 netbsd*)
19250   version_type=sunos
19251   need_lib_prefix=no
19252   need_version=no
19253   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19254     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19255     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19256     dynamic_linker='NetBSD (a.out) ld.so'
19257   else
19258     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19259     soname_spec='${libname}${release}${shared_ext}$major'
19260     dynamic_linker='NetBSD ld.elf_so'
19261   fi
19262   shlibpath_var=LD_LIBRARY_PATH
19263   shlibpath_overrides_runpath=yes
19264   hardcode_into_libs=yes
19265   ;;
19266
19267 newsos6)
19268   version_type=linux
19269   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19270   shlibpath_var=LD_LIBRARY_PATH
19271   shlibpath_overrides_runpath=yes
19272   ;;
19273
19274 nto-qnx*)
19275   version_type=linux
19276   need_lib_prefix=no
19277   need_version=no
19278   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19279   soname_spec='${libname}${release}${shared_ext}$major'
19280   shlibpath_var=LD_LIBRARY_PATH
19281   shlibpath_overrides_runpath=yes
19282   ;;
19283
19284 openbsd*)
19285   version_type=sunos
19286   sys_lib_dlsearch_path_spec="/usr/lib"
19287   need_lib_prefix=no
19288   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19289   case $host_os in
19290     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19291     *)                         need_version=no  ;;
19292   esac
19293   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19294   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19295   shlibpath_var=LD_LIBRARY_PATH
19296   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19297     case $host_os in
19298       openbsd2.[89] | openbsd2.[89].*)
19299         shlibpath_overrides_runpath=no
19300         ;;
19301       *)
19302         shlibpath_overrides_runpath=yes
19303         ;;
19304       esac
19305   else
19306     shlibpath_overrides_runpath=yes
19307   fi
19308   ;;
19309
19310 os2*)
19311   libname_spec='$name'
19312   shrext_cmds=".dll"
19313   need_lib_prefix=no
19314   library_names_spec='$libname${shared_ext} $libname.a'
19315   dynamic_linker='OS/2 ld.exe'
19316   shlibpath_var=LIBPATH
19317   ;;
19318
19319 osf3* | osf4* | osf5*)
19320   version_type=osf
19321   need_lib_prefix=no
19322   need_version=no
19323   soname_spec='${libname}${release}${shared_ext}$major'
19324   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19325   shlibpath_var=LD_LIBRARY_PATH
19326   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19327   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19328   ;;
19329
19330 solaris*)
19331   version_type=linux
19332   need_lib_prefix=no
19333   need_version=no
19334   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19335   soname_spec='${libname}${release}${shared_ext}$major'
19336   shlibpath_var=LD_LIBRARY_PATH
19337   shlibpath_overrides_runpath=yes
19338   hardcode_into_libs=yes
19339   # ldd complains unless libraries are executable
19340   postinstall_cmds='chmod +x $lib'
19341   ;;
19342
19343 sunos4*)
19344   version_type=sunos
19345   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19346   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19347   shlibpath_var=LD_LIBRARY_PATH
19348   shlibpath_overrides_runpath=yes
19349   if test "$with_gnu_ld" = yes; then
19350     need_lib_prefix=no
19351   fi
19352   need_version=yes
19353   ;;
19354
19355 sysv4 | sysv4.3*)
19356   version_type=linux
19357   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19358   soname_spec='${libname}${release}${shared_ext}$major'
19359   shlibpath_var=LD_LIBRARY_PATH
19360   case $host_vendor in
19361     sni)
19362       shlibpath_overrides_runpath=no
19363       need_lib_prefix=no
19364       export_dynamic_flag_spec='${wl}-Blargedynsym'
19365       runpath_var=LD_RUN_PATH
19366       ;;
19367     siemens)
19368       need_lib_prefix=no
19369       ;;
19370     motorola)
19371       need_lib_prefix=no
19372       need_version=no
19373       shlibpath_overrides_runpath=no
19374       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19375       ;;
19376   esac
19377   ;;
19378
19379 sysv4*MP*)
19380   if test -d /usr/nec ;then
19381     version_type=linux
19382     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19383     soname_spec='$libname${shared_ext}.$major'
19384     shlibpath_var=LD_LIBRARY_PATH
19385   fi
19386   ;;
19387
19388 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19389   version_type=freebsd-elf
19390   need_lib_prefix=no
19391   need_version=no
19392   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19393   soname_spec='${libname}${release}${shared_ext}$major'
19394   shlibpath_var=LD_LIBRARY_PATH
19395   hardcode_into_libs=yes
19396   if test "$with_gnu_ld" = yes; then
19397     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19398     shlibpath_overrides_runpath=no
19399   else
19400     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19401     shlibpath_overrides_runpath=yes
19402     case $host_os in
19403       sco3.2v5*)
19404         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19405         ;;
19406     esac
19407   fi
19408   sys_lib_dlsearch_path_spec='/usr/lib'
19409   ;;
19410
19411 uts4*)
19412   version_type=linux
19413   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19414   soname_spec='${libname}${release}${shared_ext}$major'
19415   shlibpath_var=LD_LIBRARY_PATH
19416   ;;
19417
19418 *)
19419   dynamic_linker=no
19420   ;;
19421 esac
19422 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19423 echo "${ECHO_T}$dynamic_linker" >&6; }
19424 test "$dynamic_linker" = no && can_build_shared=no
19425
19426 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19427 if test "$GCC" = yes; then
19428   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19429 fi
19430
19431 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19432 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
19433 hardcode_action_GCJ=
19434 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19435    test -n "$runpath_var_GCJ" || \
19436    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19437
19438   # We can hardcode non-existant directories.
19439   if test "$hardcode_direct_GCJ" != no &&
19440      # If the only mechanism to avoid hardcoding is shlibpath_var, we
19441      # have to relink, otherwise we might link with an installed library
19442      # when we should be linking with a yet-to-be-installed one
19443      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19444      test "$hardcode_minus_L_GCJ" != no; then
19445     # Linking always hardcodes the temporary library directory.
19446     hardcode_action_GCJ=relink
19447   else
19448     # We can link without hardcoding, and we can hardcode nonexisting dirs.
19449     hardcode_action_GCJ=immediate
19450   fi
19451 else
19452   # We cannot hardcode anything, or else we can only hardcode existing
19453   # directories.
19454   hardcode_action_GCJ=unsupported
19455 fi
19456 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19457 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
19458
19459 if test "$hardcode_action_GCJ" = relink; then
19460   # Fast installation is not supported
19461   enable_fast_install=no
19462 elif test "$shlibpath_overrides_runpath" = yes ||
19463      test "$enable_shared" = no; then
19464   # Fast installation is not necessary
19465   enable_fast_install=needless
19466 fi
19467
19468
19469 # The else clause should only fire when bootstrapping the
19470 # libtool distribution, otherwise you forgot to ship ltmain.sh
19471 # with your package, and you will get complaints that there are
19472 # no rules to generate ltmain.sh.
19473 if test -f "$ltmain"; then
19474   # See if we are running on zsh, and set the options which allow our commands through
19475   # without removal of \ escapes.
19476   if test -n "${ZSH_VERSION+set}" ; then
19477     setopt NO_GLOB_SUBST
19478   fi
19479   # Now quote all the things that may contain metacharacters while being
19480   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19481   # variables and quote the copies for generation of the libtool script.
19482   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19483     SED SHELL STRIP \
19484     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19485     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19486     deplibs_check_method reload_flag reload_cmds need_locks \
19487     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19488     lt_cv_sys_global_symbol_to_c_name_address \
19489     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19490     old_postinstall_cmds old_postuninstall_cmds \
19491     compiler_GCJ \
19492     CC_GCJ \
19493     LD_GCJ \
19494     lt_prog_compiler_wl_GCJ \
19495     lt_prog_compiler_pic_GCJ \
19496     lt_prog_compiler_static_GCJ \
19497     lt_prog_compiler_no_builtin_flag_GCJ \
19498     export_dynamic_flag_spec_GCJ \
19499     thread_safe_flag_spec_GCJ \
19500     whole_archive_flag_spec_GCJ \
19501     enable_shared_with_static_runtimes_GCJ \
19502     old_archive_cmds_GCJ \
19503     old_archive_from_new_cmds_GCJ \
19504     predep_objects_GCJ \
19505     postdep_objects_GCJ \
19506     predeps_GCJ \
19507     postdeps_GCJ \
19508     compiler_lib_search_path_GCJ \
19509     archive_cmds_GCJ \
19510     archive_expsym_cmds_GCJ \
19511     postinstall_cmds_GCJ \
19512     postuninstall_cmds_GCJ \
19513     old_archive_from_expsyms_cmds_GCJ \
19514     allow_undefined_flag_GCJ \
19515     no_undefined_flag_GCJ \
19516     export_symbols_cmds_GCJ \
19517     hardcode_libdir_flag_spec_GCJ \
19518     hardcode_libdir_flag_spec_ld_GCJ \
19519     hardcode_libdir_separator_GCJ \
19520     hardcode_automatic_GCJ \
19521     module_cmds_GCJ \
19522     module_expsym_cmds_GCJ \
19523     lt_cv_prog_compiler_c_o_GCJ \
19524     exclude_expsyms_GCJ \
19525     include_expsyms_GCJ; do
19526
19527     case $var in
19528     old_archive_cmds_GCJ | \
19529     old_archive_from_new_cmds_GCJ | \
19530     archive_cmds_GCJ | \
19531     archive_expsym_cmds_GCJ | \
19532     module_cmds_GCJ | \
19533     module_expsym_cmds_GCJ | \
19534     old_archive_from_expsyms_cmds_GCJ | \
19535     export_symbols_cmds_GCJ | \
19536     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19537     postinstall_cmds | postuninstall_cmds | \
19538     old_postinstall_cmds | old_postuninstall_cmds | \
19539     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19540       # Double-quote double-evaled strings.
19541       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19542       ;;
19543     *)
19544       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19545       ;;
19546     esac
19547   done
19548
19549   case $lt_echo in
19550   *'\$0 --fallback-echo"')
19551     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19552     ;;
19553   esac
19554
19555 cfgfile="$ofile"
19556
19557   cat <<__EOF__ >> "$cfgfile"
19558 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19559
19560 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19561
19562 # Shell to use when invoking shell scripts.
19563 SHELL=$lt_SHELL
19564
19565 # Whether or not to build shared libraries.
19566 build_libtool_libs=$enable_shared
19567
19568 # Whether or not to build static libraries.
19569 build_old_libs=$enable_static
19570
19571 # Whether or not to add -lc for building shared libraries.
19572 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19573
19574 # Whether or not to disallow shared libs when runtime libs are static
19575 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19576
19577 # Whether or not to optimize for fast installation.
19578 fast_install=$enable_fast_install
19579
19580 # The host system.
19581 host_alias=$host_alias
19582 host=$host
19583 host_os=$host_os
19584
19585 # The build system.
19586 build_alias=$build_alias
19587 build=$build
19588 build_os=$build_os
19589
19590 # An echo program that does not interpret backslashes.
19591 echo=$lt_echo
19592
19593 # The archiver.
19594 AR=$lt_AR
19595 AR_FLAGS=$lt_AR_FLAGS
19596
19597 # A C compiler.
19598 LTCC=$lt_LTCC
19599
19600 # LTCC compiler flags.
19601 LTCFLAGS=$lt_LTCFLAGS
19602
19603 # A language-specific compiler.
19604 CC=$lt_compiler_GCJ
19605
19606 # Is the compiler the GNU C compiler?
19607 with_gcc=$GCC_GCJ
19608
19609 # An ERE matcher.
19610 EGREP=$lt_EGREP
19611
19612 # The linker used to build libraries.
19613 LD=$lt_LD_GCJ
19614
19615 # Whether we need hard or soft links.
19616 LN_S=$lt_LN_S
19617
19618 # A BSD-compatible nm program.
19619 NM=$lt_NM
19620
19621 # A symbol stripping program
19622 STRIP=$lt_STRIP
19623
19624 # Used to examine libraries when file_magic_cmd begins "file"
19625 MAGIC_CMD=$MAGIC_CMD
19626
19627 # Used on cygwin: DLL creation program.
19628 DLLTOOL="$DLLTOOL"
19629
19630 # Used on cygwin: object dumper.
19631 OBJDUMP="$OBJDUMP"
19632
19633 # Used on cygwin: assembler.
19634 AS="$AS"
19635
19636 # The name of the directory that contains temporary libtool files.
19637 objdir=$objdir
19638
19639 # How to create reloadable object files.
19640 reload_flag=$lt_reload_flag
19641 reload_cmds=$lt_reload_cmds
19642
19643 # How to pass a linker flag through the compiler.
19644 wl=$lt_lt_prog_compiler_wl_GCJ
19645
19646 # Object file suffix (normally "o").
19647 objext="$ac_objext"
19648
19649 # Old archive suffix (normally "a").
19650 libext="$libext"
19651
19652 # Shared library suffix (normally ".so").
19653 shrext_cmds='$shrext_cmds'
19654
19655 # Executable file suffix (normally "").
19656 exeext="$exeext"
19657
19658 # Additional compiler flags for building library objects.
19659 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19660 pic_mode=$pic_mode
19661
19662 # What is the maximum length of a command?
19663 max_cmd_len=$lt_cv_sys_max_cmd_len
19664
19665 # Does compiler simultaneously support -c and -o options?
19666 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19667
19668 # Must we lock files when doing compilation?
19669 need_locks=$lt_need_locks
19670
19671 # Do we need the lib prefix for modules?
19672 need_lib_prefix=$need_lib_prefix
19673
19674 # Do we need a version for libraries?
19675 need_version=$need_version
19676
19677 # Whether dlopen is supported.
19678 dlopen_support=$enable_dlopen
19679
19680 # Whether dlopen of programs is supported.
19681 dlopen_self=$enable_dlopen_self
19682
19683 # Whether dlopen of statically linked programs is supported.
19684 dlopen_self_static=$enable_dlopen_self_static
19685
19686 # Compiler flag to prevent dynamic linking.
19687 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19688
19689 # Compiler flag to turn off builtin functions.
19690 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19691
19692 # Compiler flag to allow reflexive dlopens.
19693 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19694
19695 # Compiler flag to generate shared objects directly from archives.
19696 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19697
19698 # Compiler flag to generate thread-safe objects.
19699 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19700
19701 # Library versioning type.
19702 version_type=$version_type
19703
19704 # Format of library name prefix.
19705 libname_spec=$lt_libname_spec
19706
19707 # List of archive names.  First name is the real one, the rest are links.
19708 # The last name is the one that the linker finds with -lNAME.
19709 library_names_spec=$lt_library_names_spec
19710
19711 # The coded name of the library, if different from the real name.
19712 soname_spec=$lt_soname_spec
19713
19714 # Commands used to build and install an old-style archive.
19715 RANLIB=$lt_RANLIB
19716 old_archive_cmds=$lt_old_archive_cmds_GCJ
19717 old_postinstall_cmds=$lt_old_postinstall_cmds
19718 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19719
19720 # Create an old-style archive from a shared archive.
19721 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19722
19723 # Create a temporary old-style archive to link instead of a shared archive.
19724 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19725
19726 # Commands used to build and install a shared archive.
19727 archive_cmds=$lt_archive_cmds_GCJ
19728 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19729 postinstall_cmds=$lt_postinstall_cmds
19730 postuninstall_cmds=$lt_postuninstall_cmds
19731
19732 # Commands used to build a loadable module (assumed same as above if empty)
19733 module_cmds=$lt_module_cmds_GCJ
19734 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19735
19736 # Commands to strip libraries.
19737 old_striplib=$lt_old_striplib
19738 striplib=$lt_striplib
19739
19740 # Dependencies to place before the objects being linked to create a
19741 # shared library.
19742 predep_objects=$lt_predep_objects_GCJ
19743
19744 # Dependencies to place after the objects being linked to create a
19745 # shared library.
19746 postdep_objects=$lt_postdep_objects_GCJ
19747
19748 # Dependencies to place before the objects being linked to create a
19749 # shared library.
19750 predeps=$lt_predeps_GCJ
19751
19752 # Dependencies to place after the objects being linked to create a
19753 # shared library.
19754 postdeps=$lt_postdeps_GCJ
19755
19756 # The library search path used internally by the compiler when linking
19757 # a shared library.
19758 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19759
19760 # Method to check whether dependent libraries are shared objects.
19761 deplibs_check_method=$lt_deplibs_check_method
19762
19763 # Command to use when deplibs_check_method == file_magic.
19764 file_magic_cmd=$lt_file_magic_cmd
19765
19766 # Flag that allows shared libraries with undefined symbols to be built.
19767 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19768
19769 # Flag that forces no undefined symbols.
19770 no_undefined_flag=$lt_no_undefined_flag_GCJ
19771
19772 # Commands used to finish a libtool library installation in a directory.
19773 finish_cmds=$lt_finish_cmds
19774
19775 # Same as above, but a single script fragment to be evaled but not shown.
19776 finish_eval=$lt_finish_eval
19777
19778 # Take the output of nm and produce a listing of raw symbols and C names.
19779 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19780
19781 # Transform the output of nm in a proper C declaration
19782 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19783
19784 # Transform the output of nm in a C name address pair
19785 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19786
19787 # This is the shared library runtime path variable.
19788 runpath_var=$runpath_var
19789
19790 # This is the shared library path variable.
19791 shlibpath_var=$shlibpath_var
19792
19793 # Is shlibpath searched before the hard-coded library search path?
19794 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19795
19796 # How to hardcode a shared library path into an executable.
19797 hardcode_action=$hardcode_action_GCJ
19798
19799 # Whether we should hardcode library paths into libraries.
19800 hardcode_into_libs=$hardcode_into_libs
19801
19802 # Flag to hardcode \$libdir into a binary during linking.
19803 # This must work even if \$libdir does not exist.
19804 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19805
19806 # If ld is used when linking, flag to hardcode \$libdir into
19807 # a binary during linking. This must work even if \$libdir does
19808 # not exist.
19809 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19810
19811 # Whether we need a single -rpath flag with a separated argument.
19812 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19813
19814 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19815 # resulting binary.
19816 hardcode_direct=$hardcode_direct_GCJ
19817
19818 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19819 # resulting binary.
19820 hardcode_minus_L=$hardcode_minus_L_GCJ
19821
19822 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19823 # the resulting binary.
19824 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19825
19826 # Set to yes if building a shared library automatically hardcodes DIR into the library
19827 # and all subsequent libraries and executables linked against it.
19828 hardcode_automatic=$hardcode_automatic_GCJ
19829
19830 # Variables whose values should be saved in libtool wrapper scripts and
19831 # restored at relink time.
19832 variables_saved_for_relink="$variables_saved_for_relink"
19833
19834 # Whether libtool must link a program against all its dependency libraries.
19835 link_all_deplibs=$link_all_deplibs_GCJ
19836
19837 # Compile-time system search path for libraries
19838 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19839
19840 # Run-time system search path for libraries
19841 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19842
19843 # Fix the shell variable \$srcfile for the compiler.
19844 fix_srcfile_path="$fix_srcfile_path_GCJ"
19845
19846 # Set to yes if exported symbols are required.
19847 always_export_symbols=$always_export_symbols_GCJ
19848
19849 # The commands to list exported symbols.
19850 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19851
19852 # The commands to extract the exported symbol list from a shared archive.
19853 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19854
19855 # Symbols that should not be listed in the preloaded symbols.
19856 exclude_expsyms=$lt_exclude_expsyms_GCJ
19857
19858 # Symbols that must always be exported.
19859 include_expsyms=$lt_include_expsyms_GCJ
19860
19861 # ### END LIBTOOL TAG CONFIG: $tagname
19862
19863 __EOF__
19864
19865
19866 else
19867   # If there is no Makefile yet, we rely on a make rule to execute
19868   # `config.status --recheck' to rerun these tests and create the
19869   # libtool script then.
19870   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19871   if test -f "$ltmain_in"; then
19872     test -f Makefile && make "$ltmain"
19873   fi
19874 fi
19875
19876
19877 ac_ext=c
19878 ac_cpp='$CPP $CPPFLAGS'
19879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19882
19883 CC="$lt_save_CC"
19884
19885         else
19886           tagname=""
19887         fi
19888         ;;
19889
19890       RC)
19891         
19892
19893 # Source file extension for RC test sources.
19894 ac_ext=rc
19895
19896 # Object file extension for compiled RC test sources.
19897 objext=o
19898 objext_RC=$objext
19899
19900 # Code to be used in simple compile tests
19901 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19902
19903 # Code to be used in simple link tests
19904 lt_simple_link_test_code="$lt_simple_compile_test_code"
19905
19906 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19907
19908 # If no C compiler was specified, use CC.
19909 LTCC=${LTCC-"$CC"}
19910
19911 # If no C compiler flags were specified, use CFLAGS.
19912 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19913
19914 # Allow CC to be a program name with arguments.
19915 compiler=$CC
19916
19917
19918 # save warnings/boilerplate of simple test code
19919 ac_outfile=conftest.$ac_objext
19920 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19921 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19922 _lt_compiler_boilerplate=`cat conftest.err`
19923 $rm conftest*
19924
19925 ac_outfile=conftest.$ac_objext
19926 printf "$lt_simple_link_test_code" >conftest.$ac_ext
19927 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19928 _lt_linker_boilerplate=`cat conftest.err`
19929 $rm conftest*
19930
19931
19932 # Allow CC to be a program name with arguments.
19933 lt_save_CC="$CC"
19934 CC=${RC-"windres"}
19935 compiler=$CC
19936 compiler_RC=$CC
19937 for cc_temp in $compiler""; do
19938   case $cc_temp in
19939     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19940     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19941     \-*) ;;
19942     *) break;;
19943   esac
19944 done
19945 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19946
19947 lt_cv_prog_compiler_c_o_RC=yes
19948
19949 # The else clause should only fire when bootstrapping the
19950 # libtool distribution, otherwise you forgot to ship ltmain.sh
19951 # with your package, and you will get complaints that there are
19952 # no rules to generate ltmain.sh.
19953 if test -f "$ltmain"; then
19954   # See if we are running on zsh, and set the options which allow our commands through
19955   # without removal of \ escapes.
19956   if test -n "${ZSH_VERSION+set}" ; then
19957     setopt NO_GLOB_SUBST
19958   fi
19959   # Now quote all the things that may contain metacharacters while being
19960   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19961   # variables and quote the copies for generation of the libtool script.
19962   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19963     SED SHELL STRIP \
19964     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19965     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19966     deplibs_check_method reload_flag reload_cmds need_locks \
19967     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19968     lt_cv_sys_global_symbol_to_c_name_address \
19969     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19970     old_postinstall_cmds old_postuninstall_cmds \
19971     compiler_RC \
19972     CC_RC \
19973     LD_RC \
19974     lt_prog_compiler_wl_RC \
19975     lt_prog_compiler_pic_RC \
19976     lt_prog_compiler_static_RC \
19977     lt_prog_compiler_no_builtin_flag_RC \
19978     export_dynamic_flag_spec_RC \
19979     thread_safe_flag_spec_RC \
19980     whole_archive_flag_spec_RC \
19981     enable_shared_with_static_runtimes_RC \
19982     old_archive_cmds_RC \
19983     old_archive_from_new_cmds_RC \
19984     predep_objects_RC \
19985     postdep_objects_RC \
19986     predeps_RC \
19987     postdeps_RC \
19988     compiler_lib_search_path_RC \
19989     archive_cmds_RC \
19990     archive_expsym_cmds_RC \
19991     postinstall_cmds_RC \
19992     postuninstall_cmds_RC \
19993     old_archive_from_expsyms_cmds_RC \
19994     allow_undefined_flag_RC \
19995     no_undefined_flag_RC \
19996     export_symbols_cmds_RC \
19997     hardcode_libdir_flag_spec_RC \
19998     hardcode_libdir_flag_spec_ld_RC \
19999     hardcode_libdir_separator_RC \
20000     hardcode_automatic_RC \
20001     module_cmds_RC \
20002     module_expsym_cmds_RC \
20003     lt_cv_prog_compiler_c_o_RC \
20004     exclude_expsyms_RC \
20005     include_expsyms_RC; do
20006
20007     case $var in
20008     old_archive_cmds_RC | \
20009     old_archive_from_new_cmds_RC | \
20010     archive_cmds_RC | \
20011     archive_expsym_cmds_RC | \
20012     module_cmds_RC | \
20013     module_expsym_cmds_RC | \
20014     old_archive_from_expsyms_cmds_RC | \
20015     export_symbols_cmds_RC | \
20016     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20017     postinstall_cmds | postuninstall_cmds | \
20018     old_postinstall_cmds | old_postuninstall_cmds | \
20019     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20020       # Double-quote double-evaled strings.
20021       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20022       ;;
20023     *)
20024       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20025       ;;
20026     esac
20027   done
20028
20029   case $lt_echo in
20030   *'\$0 --fallback-echo"')
20031     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20032     ;;
20033   esac
20034
20035 cfgfile="$ofile"
20036
20037   cat <<__EOF__ >> "$cfgfile"
20038 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20039
20040 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20041
20042 # Shell to use when invoking shell scripts.
20043 SHELL=$lt_SHELL
20044
20045 # Whether or not to build shared libraries.
20046 build_libtool_libs=$enable_shared
20047
20048 # Whether or not to build static libraries.
20049 build_old_libs=$enable_static
20050
20051 # Whether or not to add -lc for building shared libraries.
20052 build_libtool_need_lc=$archive_cmds_need_lc_RC
20053
20054 # Whether or not to disallow shared libs when runtime libs are static
20055 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20056
20057 # Whether or not to optimize for fast installation.
20058 fast_install=$enable_fast_install
20059
20060 # The host system.
20061 host_alias=$host_alias
20062 host=$host
20063 host_os=$host_os
20064
20065 # The build system.
20066 build_alias=$build_alias
20067 build=$build
20068 build_os=$build_os
20069
20070 # An echo program that does not interpret backslashes.
20071 echo=$lt_echo
20072
20073 # The archiver.
20074 AR=$lt_AR
20075 AR_FLAGS=$lt_AR_FLAGS
20076
20077 # A C compiler.
20078 LTCC=$lt_LTCC
20079
20080 # LTCC compiler flags.
20081 LTCFLAGS=$lt_LTCFLAGS
20082
20083 # A language-specific compiler.
20084 CC=$lt_compiler_RC
20085
20086 # Is the compiler the GNU C compiler?
20087 with_gcc=$GCC_RC
20088
20089 # An ERE matcher.
20090 EGREP=$lt_EGREP
20091
20092 # The linker used to build libraries.
20093 LD=$lt_LD_RC
20094
20095 # Whether we need hard or soft links.
20096 LN_S=$lt_LN_S
20097
20098 # A BSD-compatible nm program.
20099 NM=$lt_NM
20100
20101 # A symbol stripping program
20102 STRIP=$lt_STRIP
20103
20104 # Used to examine libraries when file_magic_cmd begins "file"
20105 MAGIC_CMD=$MAGIC_CMD
20106
20107 # Used on cygwin: DLL creation program.
20108 DLLTOOL="$DLLTOOL"
20109
20110 # Used on cygwin: object dumper.
20111 OBJDUMP="$OBJDUMP"
20112
20113 # Used on cygwin: assembler.
20114 AS="$AS"
20115
20116 # The name of the directory that contains temporary libtool files.
20117 objdir=$objdir
20118
20119 # How to create reloadable object files.
20120 reload_flag=$lt_reload_flag
20121 reload_cmds=$lt_reload_cmds
20122
20123 # How to pass a linker flag through the compiler.
20124 wl=$lt_lt_prog_compiler_wl_RC
20125
20126 # Object file suffix (normally "o").
20127 objext="$ac_objext"
20128
20129 # Old archive suffix (normally "a").
20130 libext="$libext"
20131
20132 # Shared library suffix (normally ".so").
20133 shrext_cmds='$shrext_cmds'
20134
20135 # Executable file suffix (normally "").
20136 exeext="$exeext"
20137
20138 # Additional compiler flags for building library objects.
20139 pic_flag=$lt_lt_prog_compiler_pic_RC
20140 pic_mode=$pic_mode
20141
20142 # What is the maximum length of a command?
20143 max_cmd_len=$lt_cv_sys_max_cmd_len
20144
20145 # Does compiler simultaneously support -c and -o options?
20146 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20147
20148 # Must we lock files when doing compilation?
20149 need_locks=$lt_need_locks
20150
20151 # Do we need the lib prefix for modules?
20152 need_lib_prefix=$need_lib_prefix
20153
20154 # Do we need a version for libraries?
20155 need_version=$need_version
20156
20157 # Whether dlopen is supported.
20158 dlopen_support=$enable_dlopen
20159
20160 # Whether dlopen of programs is supported.
20161 dlopen_self=$enable_dlopen_self
20162
20163 # Whether dlopen of statically linked programs is supported.
20164 dlopen_self_static=$enable_dlopen_self_static
20165
20166 # Compiler flag to prevent dynamic linking.
20167 link_static_flag=$lt_lt_prog_compiler_static_RC
20168
20169 # Compiler flag to turn off builtin functions.
20170 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20171
20172 # Compiler flag to allow reflexive dlopens.
20173 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20174
20175 # Compiler flag to generate shared objects directly from archives.
20176 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20177
20178 # Compiler flag to generate thread-safe objects.
20179 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20180
20181 # Library versioning type.
20182 version_type=$version_type
20183
20184 # Format of library name prefix.
20185 libname_spec=$lt_libname_spec
20186
20187 # List of archive names.  First name is the real one, the rest are links.
20188 # The last name is the one that the linker finds with -lNAME.
20189 library_names_spec=$lt_library_names_spec
20190
20191 # The coded name of the library, if different from the real name.
20192 soname_spec=$lt_soname_spec
20193
20194 # Commands used to build and install an old-style archive.
20195 RANLIB=$lt_RANLIB
20196 old_archive_cmds=$lt_old_archive_cmds_RC
20197 old_postinstall_cmds=$lt_old_postinstall_cmds
20198 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20199
20200 # Create an old-style archive from a shared archive.
20201 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20202
20203 # Create a temporary old-style archive to link instead of a shared archive.
20204 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20205
20206 # Commands used to build and install a shared archive.
20207 archive_cmds=$lt_archive_cmds_RC
20208 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20209 postinstall_cmds=$lt_postinstall_cmds
20210 postuninstall_cmds=$lt_postuninstall_cmds
20211
20212 # Commands used to build a loadable module (assumed same as above if empty)
20213 module_cmds=$lt_module_cmds_RC
20214 module_expsym_cmds=$lt_module_expsym_cmds_RC
20215
20216 # Commands to strip libraries.
20217 old_striplib=$lt_old_striplib
20218 striplib=$lt_striplib
20219
20220 # Dependencies to place before the objects being linked to create a
20221 # shared library.
20222 predep_objects=$lt_predep_objects_RC
20223
20224 # Dependencies to place after the objects being linked to create a
20225 # shared library.
20226 postdep_objects=$lt_postdep_objects_RC
20227
20228 # Dependencies to place before the objects being linked to create a
20229 # shared library.
20230 predeps=$lt_predeps_RC
20231
20232 # Dependencies to place after the objects being linked to create a
20233 # shared library.
20234 postdeps=$lt_postdeps_RC
20235
20236 # The library search path used internally by the compiler when linking
20237 # a shared library.
20238 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20239
20240 # Method to check whether dependent libraries are shared objects.
20241 deplibs_check_method=$lt_deplibs_check_method
20242
20243 # Command to use when deplibs_check_method == file_magic.
20244 file_magic_cmd=$lt_file_magic_cmd
20245
20246 # Flag that allows shared libraries with undefined symbols to be built.
20247 allow_undefined_flag=$lt_allow_undefined_flag_RC
20248
20249 # Flag that forces no undefined symbols.
20250 no_undefined_flag=$lt_no_undefined_flag_RC
20251
20252 # Commands used to finish a libtool library installation in a directory.
20253 finish_cmds=$lt_finish_cmds
20254
20255 # Same as above, but a single script fragment to be evaled but not shown.
20256 finish_eval=$lt_finish_eval
20257
20258 # Take the output of nm and produce a listing of raw symbols and C names.
20259 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20260
20261 # Transform the output of nm in a proper C declaration
20262 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20263
20264 # Transform the output of nm in a C name address pair
20265 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20266
20267 # This is the shared library runtime path variable.
20268 runpath_var=$runpath_var
20269
20270 # This is the shared library path variable.
20271 shlibpath_var=$shlibpath_var
20272
20273 # Is shlibpath searched before the hard-coded library search path?
20274 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20275
20276 # How to hardcode a shared library path into an executable.
20277 hardcode_action=$hardcode_action_RC
20278
20279 # Whether we should hardcode library paths into libraries.
20280 hardcode_into_libs=$hardcode_into_libs
20281
20282 # Flag to hardcode \$libdir into a binary during linking.
20283 # This must work even if \$libdir does not exist.
20284 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20285
20286 # If ld is used when linking, flag to hardcode \$libdir into
20287 # a binary during linking. This must work even if \$libdir does
20288 # not exist.
20289 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20290
20291 # Whether we need a single -rpath flag with a separated argument.
20292 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20293
20294 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20295 # resulting binary.
20296 hardcode_direct=$hardcode_direct_RC
20297
20298 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20299 # resulting binary.
20300 hardcode_minus_L=$hardcode_minus_L_RC
20301
20302 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20303 # the resulting binary.
20304 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20305
20306 # Set to yes if building a shared library automatically hardcodes DIR into the library
20307 # and all subsequent libraries and executables linked against it.
20308 hardcode_automatic=$hardcode_automatic_RC
20309
20310 # Variables whose values should be saved in libtool wrapper scripts and
20311 # restored at relink time.
20312 variables_saved_for_relink="$variables_saved_for_relink"
20313
20314 # Whether libtool must link a program against all its dependency libraries.
20315 link_all_deplibs=$link_all_deplibs_RC
20316
20317 # Compile-time system search path for libraries
20318 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20319
20320 # Run-time system search path for libraries
20321 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20322
20323 # Fix the shell variable \$srcfile for the compiler.
20324 fix_srcfile_path="$fix_srcfile_path_RC"
20325
20326 # Set to yes if exported symbols are required.
20327 always_export_symbols=$always_export_symbols_RC
20328
20329 # The commands to list exported symbols.
20330 export_symbols_cmds=$lt_export_symbols_cmds_RC
20331
20332 # The commands to extract the exported symbol list from a shared archive.
20333 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20334
20335 # Symbols that should not be listed in the preloaded symbols.
20336 exclude_expsyms=$lt_exclude_expsyms_RC
20337
20338 # Symbols that must always be exported.
20339 include_expsyms=$lt_include_expsyms_RC
20340
20341 # ### END LIBTOOL TAG CONFIG: $tagname
20342
20343 __EOF__
20344
20345
20346 else
20347   # If there is no Makefile yet, we rely on a make rule to execute
20348   # `config.status --recheck' to rerun these tests and create the
20349   # libtool script then.
20350   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20351   if test -f "$ltmain_in"; then
20352     test -f Makefile && make "$ltmain"
20353   fi
20354 fi
20355
20356
20357 ac_ext=c
20358 ac_cpp='$CPP $CPPFLAGS'
20359 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20360 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20361 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20362
20363 CC="$lt_save_CC"
20364
20365         ;;
20366
20367       *)
20368         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20369 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20370    { (exit 1); exit 1; }; }
20371         ;;
20372       esac
20373
20374       # Append the new tag name to the list of available tags.
20375       if test -n "$tagname" ; then
20376       available_tags="$available_tags $tagname"
20377     fi
20378     fi
20379   done
20380   IFS="$lt_save_ifs"
20381
20382   # Now substitute the updated list of available tags.
20383   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20384     mv "${ofile}T" "$ofile"
20385     chmod +x "$ofile"
20386   else
20387     rm -f "${ofile}T"
20388     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20389 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20390    { (exit 1); exit 1; }; }
20391   fi
20392 fi
20393
20394
20395
20396 # This can be used to rebuild libtool when needed
20397 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20398
20399 # Always use our own libtool.
20400 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20401
20402 # Prevent multiple expansion
20403
20404
20405
20406
20407
20408
20409
20410
20411
20412
20413
20414   
20415
20416   
20417
20418
20419   
20420        
20421        
20422
20423
20424 if test "x$cross_compiling" = "xno"; then
20425         CC_FOR_BUILD=${CC_FOR_BUILD-${CC-gcc}}
20426 else
20427         CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
20428 fi
20429
20430
20431
20432 if test -n "$ac_tool_prefix"; then
20433   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
20434 set dummy ${ac_tool_prefix}ar; ac_word=$2
20435 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20436 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20437 if test "${ac_cv_prog_AR+set}" = set; then
20438   echo $ECHO_N "(cached) $ECHO_C" >&6
20439 else
20440   if test -n "$AR"; then
20441   ac_cv_prog_AR="$AR" # Let the user override the test.
20442 else
20443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20444 for as_dir in $PATH
20445 do
20446   IFS=$as_save_IFS
20447   test -z "$as_dir" && as_dir=.
20448   for ac_exec_ext in '' $ac_executable_extensions; do
20449   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20450     ac_cv_prog_AR="${ac_tool_prefix}ar"
20451     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20452     break 2
20453   fi
20454 done
20455 done
20456 IFS=$as_save_IFS
20457
20458 fi
20459 fi
20460 AR=$ac_cv_prog_AR
20461 if test -n "$AR"; then
20462   { echo "$as_me:$LINENO: result: $AR" >&5
20463 echo "${ECHO_T}$AR" >&6; }
20464 else
20465   { echo "$as_me:$LINENO: result: no" >&5
20466 echo "${ECHO_T}no" >&6; }
20467 fi
20468
20469
20470 fi
20471 if test -z "$ac_cv_prog_AR"; then
20472   ac_ct_AR=$AR
20473   # Extract the first word of "ar", so it can be a program name with args.
20474 set dummy ar; ac_word=$2
20475 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20476 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20477 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
20478   echo $ECHO_N "(cached) $ECHO_C" >&6
20479 else
20480   if test -n "$ac_ct_AR"; then
20481   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
20482 else
20483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20484 for as_dir in $PATH
20485 do
20486   IFS=$as_save_IFS
20487   test -z "$as_dir" && as_dir=.
20488   for ac_exec_ext in '' $ac_executable_extensions; do
20489   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20490     ac_cv_prog_ac_ct_AR="ar"
20491     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20492     break 2
20493   fi
20494 done
20495 done
20496 IFS=$as_save_IFS
20497
20498 fi
20499 fi
20500 ac_ct_AR=$ac_cv_prog_ac_ct_AR
20501 if test -n "$ac_ct_AR"; then
20502   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
20503 echo "${ECHO_T}$ac_ct_AR" >&6; }
20504 else
20505   { echo "$as_me:$LINENO: result: no" >&5
20506 echo "${ECHO_T}no" >&6; }
20507 fi
20508
20509   if test "x$ac_ct_AR" = x; then
20510     AR=""
20511   else
20512     case $cross_compiling:$ac_tool_warned in
20513 yes:)
20514 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20515 whose name does not start with the host triplet.  If you think this
20516 configuration is useful to you, please write to autoconf@gnu.org." >&5
20517 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20518 whose name does not start with the host triplet.  If you think this
20519 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20520 ac_tool_warned=yes ;;
20521 esac
20522     AR=$ac_ct_AR
20523   fi
20524 else
20525   AR="$ac_cv_prog_AR"
20526 fi
20527
20528 if test -n "$ac_tool_prefix"; then
20529   # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
20530 set dummy ${ac_tool_prefix}ld; ac_word=$2
20531 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20533 if test "${ac_cv_prog_LD+set}" = set; then
20534   echo $ECHO_N "(cached) $ECHO_C" >&6
20535 else
20536   if test -n "$LD"; then
20537   ac_cv_prog_LD="$LD" # Let the user override the test.
20538 else
20539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20540 for as_dir in $PATH
20541 do
20542   IFS=$as_save_IFS
20543   test -z "$as_dir" && as_dir=.
20544   for ac_exec_ext in '' $ac_executable_extensions; do
20545   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20546     ac_cv_prog_LD="${ac_tool_prefix}ld"
20547     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20548     break 2
20549   fi
20550 done
20551 done
20552 IFS=$as_save_IFS
20553
20554 fi
20555 fi
20556 LD=$ac_cv_prog_LD
20557 if test -n "$LD"; then
20558   { echo "$as_me:$LINENO: result: $LD" >&5
20559 echo "${ECHO_T}$LD" >&6; }
20560 else
20561   { echo "$as_me:$LINENO: result: no" >&5
20562 echo "${ECHO_T}no" >&6; }
20563 fi
20564
20565
20566 fi
20567 if test -z "$ac_cv_prog_LD"; then
20568   ac_ct_LD=$LD
20569   # Extract the first word of "ld", so it can be a program name with args.
20570 set dummy ld; ac_word=$2
20571 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20572 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20573 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
20574   echo $ECHO_N "(cached) $ECHO_C" >&6
20575 else
20576   if test -n "$ac_ct_LD"; then
20577   ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
20578 else
20579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20580 for as_dir in $PATH
20581 do
20582   IFS=$as_save_IFS
20583   test -z "$as_dir" && as_dir=.
20584   for ac_exec_ext in '' $ac_executable_extensions; do
20585   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20586     ac_cv_prog_ac_ct_LD="ld"
20587     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20588     break 2
20589   fi
20590 done
20591 done
20592 IFS=$as_save_IFS
20593
20594 fi
20595 fi
20596 ac_ct_LD=$ac_cv_prog_ac_ct_LD
20597 if test -n "$ac_ct_LD"; then
20598   { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
20599 echo "${ECHO_T}$ac_ct_LD" >&6; }
20600 else
20601   { echo "$as_me:$LINENO: result: no" >&5
20602 echo "${ECHO_T}no" >&6; }
20603 fi
20604
20605   if test "x$ac_ct_LD" = x; then
20606     LD=""
20607   else
20608     case $cross_compiling:$ac_tool_warned in
20609 yes:)
20610 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20611 whose name does not start with the host triplet.  If you think this
20612 configuration is useful to you, please write to autoconf@gnu.org." >&5
20613 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20614 whose name does not start with the host triplet.  If you think this
20615 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20616 ac_tool_warned=yes ;;
20617 esac
20618     LD=$ac_ct_LD
20619   fi
20620 else
20621   LD="$ac_cv_prog_LD"
20622 fi
20623
20624
20625 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20626 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20627 if test "${ac_cv_header_stdc+set}" = set; then
20628   echo $ECHO_N "(cached) $ECHO_C" >&6
20629 else
20630   cat >conftest.$ac_ext <<_ACEOF
20631 /* confdefs.h.  */
20632 _ACEOF
20633 cat confdefs.h >>conftest.$ac_ext
20634 cat >>conftest.$ac_ext <<_ACEOF
20635 /* end confdefs.h.  */
20636 #include <stdlib.h>
20637 #include <stdarg.h>
20638 #include <string.h>
20639 #include <float.h>
20640
20641 int
20642 main ()
20643 {
20644
20645   ;
20646   return 0;
20647 }
20648 _ACEOF
20649 rm -f conftest.$ac_objext
20650 if { (ac_try="$ac_compile"
20651 case "(($ac_try" in
20652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20653   *) ac_try_echo=$ac_try;;
20654 esac
20655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20656   (eval "$ac_compile") 2>conftest.er1
20657   ac_status=$?
20658   grep -v '^ *+' conftest.er1 >conftest.err
20659   rm -f conftest.er1
20660   cat conftest.err >&5
20661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20662   (exit $ac_status); } && {
20663          test -z "$ac_c_werror_flag" ||
20664          test ! -s conftest.err
20665        } && test -s conftest.$ac_objext; then
20666   ac_cv_header_stdc=yes
20667 else
20668   echo "$as_me: failed program was:" >&5
20669 sed 's/^/| /' conftest.$ac_ext >&5
20670
20671         ac_cv_header_stdc=no
20672 fi
20673
20674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20675
20676 if test $ac_cv_header_stdc = yes; then
20677   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20678   cat >conftest.$ac_ext <<_ACEOF
20679 /* confdefs.h.  */
20680 _ACEOF
20681 cat confdefs.h >>conftest.$ac_ext
20682 cat >>conftest.$ac_ext <<_ACEOF
20683 /* end confdefs.h.  */
20684 #include <string.h>
20685
20686 _ACEOF
20687 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20688   $EGREP "memchr" >/dev/null 2>&1; then
20689   :
20690 else
20691   ac_cv_header_stdc=no
20692 fi
20693 rm -f conftest*
20694
20695 fi
20696
20697 if test $ac_cv_header_stdc = yes; then
20698   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20699   cat >conftest.$ac_ext <<_ACEOF
20700 /* confdefs.h.  */
20701 _ACEOF
20702 cat confdefs.h >>conftest.$ac_ext
20703 cat >>conftest.$ac_ext <<_ACEOF
20704 /* end confdefs.h.  */
20705 #include <stdlib.h>
20706
20707 _ACEOF
20708 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20709   $EGREP "free" >/dev/null 2>&1; then
20710   :
20711 else
20712   ac_cv_header_stdc=no
20713 fi
20714 rm -f conftest*
20715
20716 fi
20717
20718 if test $ac_cv_header_stdc = yes; then
20719   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20720   if test "$cross_compiling" = yes; then
20721   :
20722 else
20723   cat >conftest.$ac_ext <<_ACEOF
20724 /* confdefs.h.  */
20725 _ACEOF
20726 cat confdefs.h >>conftest.$ac_ext
20727 cat >>conftest.$ac_ext <<_ACEOF
20728 /* end confdefs.h.  */
20729 #include <ctype.h>
20730 #include <stdlib.h>
20731 #if ((' ' & 0x0FF) == 0x020)
20732 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20733 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20734 #else
20735 # define ISLOWER(c) \
20736                    (('a' <= (c) && (c) <= 'i') \
20737                      || ('j' <= (c) && (c) <= 'r') \
20738                      || ('s' <= (c) && (c) <= 'z'))
20739 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20740 #endif
20741
20742 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20743 int
20744 main ()
20745 {
20746   int i;
20747   for (i = 0; i < 256; i++)
20748     if (XOR (islower (i), ISLOWER (i))
20749         || toupper (i) != TOUPPER (i))
20750       return 2;
20751   return 0;
20752 }
20753 _ACEOF
20754 rm -f conftest$ac_exeext
20755 if { (ac_try="$ac_link"
20756 case "(($ac_try" in
20757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20758   *) ac_try_echo=$ac_try;;
20759 esac
20760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20761   (eval "$ac_link") 2>&5
20762   ac_status=$?
20763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20764   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20765   { (case "(($ac_try" in
20766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20767   *) ac_try_echo=$ac_try;;
20768 esac
20769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20770   (eval "$ac_try") 2>&5
20771   ac_status=$?
20772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20773   (exit $ac_status); }; }; then
20774   :
20775 else
20776   echo "$as_me: program exited with status $ac_status" >&5
20777 echo "$as_me: failed program was:" >&5
20778 sed 's/^/| /' conftest.$ac_ext >&5
20779
20780 ( exit $ac_status )
20781 ac_cv_header_stdc=no
20782 fi
20783 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20784 fi
20785
20786
20787 fi
20788 fi
20789 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20790 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20791 if test $ac_cv_header_stdc = yes; then
20792   
20793 cat >>confdefs.h <<\_ACEOF
20794 @%:@define STDC_HEADERS 1
20795 _ACEOF
20796
20797 fi
20798
20799
20800   { echo "$as_me:$LINENO: checking for GNU libc2" >&5
20801 echo $ECHO_N "checking for GNU libc2... $ECHO_C" >&6; }
20802   if test "${knfsd_cv_glibc2+set}" = set; then
20803   echo $ECHO_N "(cached) $ECHO_C" >&6
20804 else
20805   cat >conftest.$ac_ext <<_ACEOF
20806 /* confdefs.h.  */
20807 _ACEOF
20808 cat confdefs.h >>conftest.$ac_ext
20809 cat >>conftest.$ac_ext <<_ACEOF
20810 /* end confdefs.h.  */
20811
20812       #include <features.h>
20813       #if !defined(__GLIBC__)
20814       # error Nope
20815       #endif
20816       
20817 _ACEOF
20818 if { (ac_try="$ac_cpp conftest.$ac_ext"
20819 case "(($ac_try" in
20820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20821   *) ac_try_echo=$ac_try;;
20822 esac
20823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20824   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20825   ac_status=$?
20826   grep -v '^ *+' conftest.er1 >conftest.err
20827   rm -f conftest.er1
20828   cat conftest.err >&5
20829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20830   (exit $ac_status); } >/dev/null && {
20831          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20832          test ! -s conftest.err
20833        }; then
20834   knfsd_cv_glibc2=yes
20835 else
20836   echo "$as_me: failed program was:" >&5
20837 sed 's/^/| /' conftest.$ac_ext >&5
20838
20839   knfsd_cv_glibc2=no
20840 fi
20841
20842 rm -f conftest.err conftest.$ac_ext
20843 fi
20844
20845   { echo "$as_me:$LINENO: result: $knfsd_cv_glibc2" >&5
20846 echo "${ECHO_T}$knfsd_cv_glibc2" >&6; }
20847   if test $knfsd_cv_glibc2 = yes; then
20848     CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
20849     CPPFLAGS_FOR_BUILD="$CPPFLAGS_FOR_BUILD -D_GNU_SOURCE"
20850   fi
20851
20852
20853   { echo "$as_me:$LINENO: checking for BSD signal semantics" >&5
20854 echo $ECHO_N "checking for BSD signal semantics... $ECHO_C" >&6; }
20855   if test "${knfsd_cv_bsd_signals+set}" = set; then
20856   echo $ECHO_N "(cached) $ECHO_C" >&6
20857 else
20858   if test "$cross_compiling" = yes; then
20859   
20860       case "$host_os" in
20861         *linux*) knfsd_cv_bsd_signals=no;;
20862         *bsd*)   knfsd_cv_bsd_signals=yes;;
20863         *)       { { echo "$as_me:$LINENO: error: unable to guess signal semantics for $host_os; please set knfsd_cv_bsd_signals" >&5
20864 echo "$as_me: error: unable to guess signal semantics for $host_os; please set knfsd_cv_bsd_signals" >&2;}
20865    { (exit 1); exit 1; }; };;
20866       esac
20867     
20868 else
20869   cat >conftest.$ac_ext <<_ACEOF
20870 /* confdefs.h.  */
20871 _ACEOF
20872 cat confdefs.h >>conftest.$ac_ext
20873 cat >>conftest.$ac_ext <<_ACEOF
20874 /* end confdefs.h.  */
20875
20876         #include <signal.h>
20877         #include <unistd.h>
20878         #include <sys/wait.h>
20879
20880         static int counter = 0;
20881         static RETSIGTYPE handler(int num) { counter++; }
20882
20883         int main()
20884         {
20885                 int     s;
20886                 if ((s = fork()) < 0) return 1;
20887                 if (s != 0) {
20888                         if (wait(&s) < 0) return 1;
20889                         return WIFSIGNALED(s)? 1 : 0;
20890                 }
20891
20892                 signal(SIGHUP, handler);
20893                 kill(getpid(), SIGHUP); kill(getpid(), SIGHUP);
20894                 return (counter == 2)? 0 : 1;
20895         }
20896     
20897 _ACEOF
20898 rm -f conftest$ac_exeext
20899 if { (ac_try="$ac_link"
20900 case "(($ac_try" in
20901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20902   *) ac_try_echo=$ac_try;;
20903 esac
20904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20905   (eval "$ac_link") 2>&5
20906   ac_status=$?
20907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20908   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20909   { (case "(($ac_try" in
20910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20911   *) ac_try_echo=$ac_try;;
20912 esac
20913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20914   (eval "$ac_try") 2>&5
20915   ac_status=$?
20916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20917   (exit $ac_status); }; }; then
20918   knfsd_cv_bsd_signals=yes
20919 else
20920   echo "$as_me: program exited with status $ac_status" >&5
20921 echo "$as_me: failed program was:" >&5
20922 sed 's/^/| /' conftest.$ac_ext >&5
20923
20924 ( exit $ac_status )
20925 knfsd_cv_bsd_signals=no
20926 fi
20927 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20928 fi
20929
20930
20931 fi
20932      { echo "$as_me:$LINENO: result: $knfsd_cv_bsd_signals" >&5
20933 echo "${ECHO_T}$knfsd_cv_bsd_signals" >&6; }
20934     test $knfsd_cv_bsd_signals = yes && 
20935 cat >>confdefs.h <<\_ACEOF
20936 @%:@define HAVE_BSD_SIGNALS 1
20937 _ACEOF
20938
20939
20940
20941 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
20942 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
20943 if test "${ac_cv_func_gethostbyname+set}" = set; then
20944   echo $ECHO_N "(cached) $ECHO_C" >&6
20945 else
20946   cat >conftest.$ac_ext <<_ACEOF
20947 /* confdefs.h.  */
20948 _ACEOF
20949 cat confdefs.h >>conftest.$ac_ext
20950 cat >>conftest.$ac_ext <<_ACEOF
20951 /* end confdefs.h.  */
20952 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
20953    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20954 #define gethostbyname innocuous_gethostbyname
20955
20956 /* System header to define __stub macros and hopefully few prototypes,
20957     which can conflict with char gethostbyname (); below.
20958     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20959     <limits.h> exists even on freestanding compilers.  */
20960
20961 #ifdef __STDC__
20962 # include <limits.h>
20963 #else
20964 # include <assert.h>
20965 #endif
20966
20967 #undef gethostbyname
20968
20969 /* Override any GCC internal prototype to avoid an error.
20970    Use char because int might match the return type of a GCC
20971    builtin and then its argument prototype would still apply.  */
20972 #ifdef __cplusplus
20973 extern "C"
20974 #endif
20975 char gethostbyname ();
20976 /* The GNU C library defines this for functions which it implements
20977     to always fail with ENOSYS.  Some functions are actually named
20978     something starting with __ and the normal name is an alias.  */
20979 #if defined __stub_gethostbyname || defined __stub___gethostbyname
20980 choke me
20981 #endif
20982
20983 int
20984 main ()
20985 {
20986 return gethostbyname ();
20987   ;
20988   return 0;
20989 }
20990 _ACEOF
20991 rm -f conftest.$ac_objext conftest$ac_exeext
20992 if { (ac_try="$ac_link"
20993 case "(($ac_try" in
20994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20995   *) ac_try_echo=$ac_try;;
20996 esac
20997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20998   (eval "$ac_link") 2>conftest.er1
20999   ac_status=$?
21000   grep -v '^ *+' conftest.er1 >conftest.err
21001   rm -f conftest.er1
21002   cat conftest.err >&5
21003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21004   (exit $ac_status); } && {
21005          test -z "$ac_c_werror_flag" ||
21006          test ! -s conftest.err
21007        } && test -s conftest$ac_exeext &&
21008        $as_test_x conftest$ac_exeext; then
21009   ac_cv_func_gethostbyname=yes
21010 else
21011   echo "$as_me: failed program was:" >&5
21012 sed 's/^/| /' conftest.$ac_ext >&5
21013
21014         ac_cv_func_gethostbyname=no
21015 fi
21016
21017 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21018       conftest$ac_exeext conftest.$ac_ext
21019 fi
21020 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
21021 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
21022 if test $ac_cv_func_gethostbyname = yes; then
21023   :
21024 else
21025   { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
21026 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
21027 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
21028   echo $ECHO_N "(cached) $ECHO_C" >&6
21029 else
21030   ac_check_lib_save_LIBS=$LIBS
21031 LIBS="-lnsl  $LIBS"
21032 cat >conftest.$ac_ext <<_ACEOF
21033 /* confdefs.h.  */
21034 _ACEOF
21035 cat confdefs.h >>conftest.$ac_ext
21036 cat >>conftest.$ac_ext <<_ACEOF
21037 /* end confdefs.h.  */
21038
21039 /* Override any GCC internal prototype to avoid an error.
21040    Use char because int might match the return type of a GCC
21041    builtin and then its argument prototype would still apply.  */
21042 #ifdef __cplusplus
21043 extern "C"
21044 #endif
21045 char gethostbyname ();
21046 int
21047 main ()
21048 {
21049 return gethostbyname ();
21050   ;
21051   return 0;
21052 }
21053 _ACEOF
21054 rm -f conftest.$ac_objext conftest$ac_exeext
21055 if { (ac_try="$ac_link"
21056 case "(($ac_try" in
21057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21058   *) ac_try_echo=$ac_try;;
21059 esac
21060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21061   (eval "$ac_link") 2>conftest.er1
21062   ac_status=$?
21063   grep -v '^ *+' conftest.er1 >conftest.err
21064   rm -f conftest.er1
21065   cat conftest.err >&5
21066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21067   (exit $ac_status); } && {
21068          test -z "$ac_c_werror_flag" ||
21069          test ! -s conftest.err
21070        } && test -s conftest$ac_exeext &&
21071        $as_test_x conftest$ac_exeext; then
21072   ac_cv_lib_nsl_gethostbyname=yes
21073 else
21074   echo "$as_me: failed program was:" >&5
21075 sed 's/^/| /' conftest.$ac_ext >&5
21076
21077         ac_cv_lib_nsl_gethostbyname=no
21078 fi
21079
21080 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21081       conftest$ac_exeext conftest.$ac_ext
21082 LIBS=$ac_check_lib_save_LIBS
21083 fi
21084 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
21085 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
21086 if test $ac_cv_lib_nsl_gethostbyname = yes; then
21087   LIBNSL="-lnsl"
21088 fi
21089
21090 fi
21091
21092
21093
21094 { echo "$as_me:$LINENO: checking for connect" >&5
21095 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
21096 if test "${ac_cv_func_connect+set}" = set; then
21097   echo $ECHO_N "(cached) $ECHO_C" >&6
21098 else
21099   cat >conftest.$ac_ext <<_ACEOF
21100 /* confdefs.h.  */
21101 _ACEOF
21102 cat confdefs.h >>conftest.$ac_ext
21103 cat >>conftest.$ac_ext <<_ACEOF
21104 /* end confdefs.h.  */
21105 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
21106    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21107 #define connect innocuous_connect
21108
21109 /* System header to define __stub macros and hopefully few prototypes,
21110     which can conflict with char connect (); below.
21111     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21112     <limits.h> exists even on freestanding compilers.  */
21113
21114 #ifdef __STDC__
21115 # include <limits.h>
21116 #else
21117 # include <assert.h>
21118 #endif
21119
21120 #undef connect
21121
21122 /* Override any GCC internal prototype to avoid an error.
21123    Use char because int might match the return type of a GCC
21124    builtin and then its argument prototype would still apply.  */
21125 #ifdef __cplusplus
21126 extern "C"
21127 #endif
21128 char connect ();
21129 /* The GNU C library defines this for functions which it implements
21130     to always fail with ENOSYS.  Some functions are actually named
21131     something starting with __ and the normal name is an alias.  */
21132 #if defined __stub_connect || defined __stub___connect
21133 choke me
21134 #endif
21135
21136 int
21137 main ()
21138 {
21139 return connect ();
21140   ;
21141   return 0;
21142 }
21143 _ACEOF
21144 rm -f conftest.$ac_objext conftest$ac_exeext
21145 if { (ac_try="$ac_link"
21146 case "(($ac_try" in
21147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21148   *) ac_try_echo=$ac_try;;
21149 esac
21150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21151   (eval "$ac_link") 2>conftest.er1
21152   ac_status=$?
21153   grep -v '^ *+' conftest.er1 >conftest.err
21154   rm -f conftest.er1
21155   cat conftest.err >&5
21156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21157   (exit $ac_status); } && {
21158          test -z "$ac_c_werror_flag" ||
21159          test ! -s conftest.err
21160        } && test -s conftest$ac_exeext &&
21161        $as_test_x conftest$ac_exeext; then
21162   ac_cv_func_connect=yes
21163 else
21164   echo "$as_me: failed program was:" >&5
21165 sed 's/^/| /' conftest.$ac_ext >&5
21166
21167         ac_cv_func_connect=no
21168 fi
21169
21170 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21171       conftest$ac_exeext conftest.$ac_ext
21172 fi
21173 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
21174 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
21175 if test $ac_cv_func_connect = yes; then
21176   :
21177 else
21178   { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
21179 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
21180 if test "${ac_cv_lib_socket_connect+set}" = set; then
21181   echo $ECHO_N "(cached) $ECHO_C" >&6
21182 else
21183   ac_check_lib_save_LIBS=$LIBS
21184 LIBS="-lsocket $LIBNSL $LIBS"
21185 cat >conftest.$ac_ext <<_ACEOF
21186 /* confdefs.h.  */
21187 _ACEOF
21188 cat confdefs.h >>conftest.$ac_ext
21189 cat >>conftest.$ac_ext <<_ACEOF
21190 /* end confdefs.h.  */
21191
21192 /* Override any GCC internal prototype to avoid an error.
21193    Use char because int might match the return type of a GCC
21194    builtin and then its argument prototype would still apply.  */
21195 #ifdef __cplusplus
21196 extern "C"
21197 #endif
21198 char connect ();
21199 int
21200 main ()
21201 {
21202 return connect ();
21203   ;
21204   return 0;
21205 }
21206 _ACEOF
21207 rm -f conftest.$ac_objext conftest$ac_exeext
21208 if { (ac_try="$ac_link"
21209 case "(($ac_try" in
21210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21211   *) ac_try_echo=$ac_try;;
21212 esac
21213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21214   (eval "$ac_link") 2>conftest.er1
21215   ac_status=$?
21216   grep -v '^ *+' conftest.er1 >conftest.err
21217   rm -f conftest.er1
21218   cat conftest.err >&5
21219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21220   (exit $ac_status); } && {
21221          test -z "$ac_c_werror_flag" ||
21222          test ! -s conftest.err
21223        } && test -s conftest$ac_exeext &&
21224        $as_test_x conftest$ac_exeext; then
21225   ac_cv_lib_socket_connect=yes
21226 else
21227   echo "$as_me: failed program was:" >&5
21228 sed 's/^/| /' conftest.$ac_ext >&5
21229
21230         ac_cv_lib_socket_connect=no
21231 fi
21232
21233 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21234       conftest$ac_exeext conftest.$ac_ext
21235 LIBS=$ac_check_lib_save_LIBS
21236 fi
21237 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
21238 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
21239 if test $ac_cv_lib_socket_connect = yes; then
21240   LIBSOCKET="-lsocket"
21241 else
21242   { { echo "$as_me:$LINENO: error: Function 'socket' not found." >&5
21243 echo "$as_me: error: Function 'socket' not found." >&2;}
21244    { (exit 1); exit 1; }; }
21245 fi
21246
21247 fi
21248
21249
21250 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
21251 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
21252 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
21253   echo $ECHO_N "(cached) $ECHO_C" >&6
21254 else
21255   ac_check_lib_save_LIBS=$LIBS
21256 LIBS="-lcrypt  $LIBS"
21257 cat >conftest.$ac_ext <<_ACEOF
21258 /* confdefs.h.  */
21259 _ACEOF
21260 cat confdefs.h >>conftest.$ac_ext
21261 cat >>conftest.$ac_ext <<_ACEOF
21262 /* end confdefs.h.  */
21263
21264 /* Override any GCC internal prototype to avoid an error.
21265    Use char because int might match the return type of a GCC
21266    builtin and then its argument prototype would still apply.  */
21267 #ifdef __cplusplus
21268 extern "C"
21269 #endif
21270 char crypt ();
21271 int
21272 main ()
21273 {
21274 return crypt ();
21275   ;
21276   return 0;
21277 }
21278 _ACEOF
21279 rm -f conftest.$ac_objext conftest$ac_exeext
21280 if { (ac_try="$ac_link"
21281 case "(($ac_try" in
21282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21283   *) ac_try_echo=$ac_try;;
21284 esac
21285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21286   (eval "$ac_link") 2>conftest.er1
21287   ac_status=$?
21288   grep -v '^ *+' conftest.er1 >conftest.err
21289   rm -f conftest.er1
21290   cat conftest.err >&5
21291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21292   (exit $ac_status); } && {
21293          test -z "$ac_c_werror_flag" ||
21294          test ! -s conftest.err
21295        } && test -s conftest$ac_exeext &&
21296        $as_test_x conftest$ac_exeext; then
21297   ac_cv_lib_crypt_crypt=yes
21298 else
21299   echo "$as_me: failed program was:" >&5
21300 sed 's/^/| /' conftest.$ac_ext >&5
21301
21302         ac_cv_lib_crypt_crypt=no
21303 fi
21304
21305 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21306       conftest$ac_exeext conftest.$ac_ext
21307 LIBS=$ac_check_lib_save_LIBS
21308 fi
21309 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
21310 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
21311 if test $ac_cv_lib_crypt_crypt = yes; then
21312   LIBCRYPT="-lcrypt"
21313 fi
21314
21315 if test "$enable_nfsv4" = yes; then
21316     { echo "$as_me:$LINENO: checking for event_dispatch in -levent" >&5
21317 echo $ECHO_N "checking for event_dispatch in -levent... $ECHO_C" >&6; }
21318 if test "${ac_cv_lib_event_event_dispatch+set}" = set; then
21319   echo $ECHO_N "(cached) $ECHO_C" >&6
21320 else
21321   ac_check_lib_save_LIBS=$LIBS
21322 LIBS="-levent  $LIBS"
21323 cat >conftest.$ac_ext <<_ACEOF
21324 /* confdefs.h.  */
21325 _ACEOF
21326 cat confdefs.h >>conftest.$ac_ext
21327 cat >>conftest.$ac_ext <<_ACEOF
21328 /* end confdefs.h.  */
21329
21330 /* Override any GCC internal prototype to avoid an error.
21331    Use char because int might match the return type of a GCC
21332    builtin and then its argument prototype would still apply.  */
21333 #ifdef __cplusplus
21334 extern "C"
21335 #endif
21336 char event_dispatch ();
21337 int
21338 main ()
21339 {
21340 return event_dispatch ();
21341   ;
21342   return 0;
21343 }
21344 _ACEOF
21345 rm -f conftest.$ac_objext conftest$ac_exeext
21346 if { (ac_try="$ac_link"
21347 case "(($ac_try" in
21348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21349   *) ac_try_echo=$ac_try;;
21350 esac
21351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21352   (eval "$ac_link") 2>conftest.er1
21353   ac_status=$?
21354   grep -v '^ *+' conftest.er1 >conftest.err
21355   rm -f conftest.er1
21356   cat conftest.err >&5
21357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21358   (exit $ac_status); } && {
21359          test -z "$ac_c_werror_flag" ||
21360          test ! -s conftest.err
21361        } && test -s conftest$ac_exeext &&
21362        $as_test_x conftest$ac_exeext; then
21363   ac_cv_lib_event_event_dispatch=yes
21364 else
21365   echo "$as_me: failed program was:" >&5
21366 sed 's/^/| /' conftest.$ac_ext >&5
21367
21368         ac_cv_lib_event_event_dispatch=no
21369 fi
21370
21371 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21372       conftest$ac_exeext conftest.$ac_ext
21373 LIBS=$ac_check_lib_save_LIBS
21374 fi
21375 { echo "$as_me:$LINENO: result: $ac_cv_lib_event_event_dispatch" >&5
21376 echo "${ECHO_T}$ac_cv_lib_event_event_dispatch" >&6; }
21377 if test $ac_cv_lib_event_event_dispatch = yes; then
21378   libevent=1
21379 else
21380   { { echo "$as_me:$LINENO: error: libevent needed for nfsv4 support" >&5
21381 echo "$as_me: error: libevent needed for nfsv4 support" >&2;}
21382    { (exit 1); exit 1; }; }
21383 fi
21384
21385     { echo "$as_me:$LINENO: checking for nfs4_init_name_mapping in -lnfsidmap" >&5
21386 echo $ECHO_N "checking for nfs4_init_name_mapping in -lnfsidmap... $ECHO_C" >&6; }
21387 if test "${ac_cv_lib_nfsidmap_nfs4_init_name_mapping+set}" = set; then
21388   echo $ECHO_N "(cached) $ECHO_C" >&6
21389 else
21390   ac_check_lib_save_LIBS=$LIBS
21391 LIBS="-lnfsidmap  $LIBS"
21392 cat >conftest.$ac_ext <<_ACEOF
21393 /* confdefs.h.  */
21394 _ACEOF
21395 cat confdefs.h >>conftest.$ac_ext
21396 cat >>conftest.$ac_ext <<_ACEOF
21397 /* end confdefs.h.  */
21398
21399 /* Override any GCC internal prototype to avoid an error.
21400    Use char because int might match the return type of a GCC
21401    builtin and then its argument prototype would still apply.  */
21402 #ifdef __cplusplus
21403 extern "C"
21404 #endif
21405 char nfs4_init_name_mapping ();
21406 int
21407 main ()
21408 {
21409 return nfs4_init_name_mapping ();
21410   ;
21411   return 0;
21412 }
21413 _ACEOF
21414 rm -f conftest.$ac_objext conftest$ac_exeext
21415 if { (ac_try="$ac_link"
21416 case "(($ac_try" in
21417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21418   *) ac_try_echo=$ac_try;;
21419 esac
21420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21421   (eval "$ac_link") 2>conftest.er1
21422   ac_status=$?
21423   grep -v '^ *+' conftest.er1 >conftest.err
21424   rm -f conftest.er1
21425   cat conftest.err >&5
21426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21427   (exit $ac_status); } && {
21428          test -z "$ac_c_werror_flag" ||
21429          test ! -s conftest.err
21430        } && test -s conftest$ac_exeext &&
21431        $as_test_x conftest$ac_exeext; then
21432   ac_cv_lib_nfsidmap_nfs4_init_name_mapping=yes
21433 else
21434   echo "$as_me: failed program was:" >&5
21435 sed 's/^/| /' conftest.$ac_ext >&5
21436
21437         ac_cv_lib_nfsidmap_nfs4_init_name_mapping=no
21438 fi
21439
21440 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21441       conftest$ac_exeext conftest.$ac_ext
21442 LIBS=$ac_check_lib_save_LIBS
21443 fi
21444 { echo "$as_me:$LINENO: result: $ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&5
21445 echo "${ECHO_T}$ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&6; }
21446 if test $ac_cv_lib_nfsidmap_nfs4_init_name_mapping = yes; then
21447   libnfsidmap=1
21448 else
21449   { { echo "$as_me:$LINENO: error: libnfsidmap needed for nfsv4 support" >&5
21450 echo "$as_me: error: libnfsidmap needed for nfsv4 support" >&2;}
21451    { (exit 1); exit 1; }; }
21452 fi
21453
21454     
21455 for ac_header in event.h
21456 do
21457 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21458 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21459   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21460 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21461 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21462   echo $ECHO_N "(cached) $ECHO_C" >&6
21463 fi
21464 ac_res=`eval echo '${'$as_ac_Header'}'`
21465                { echo "$as_me:$LINENO: result: $ac_res" >&5
21466 echo "${ECHO_T}$ac_res" >&6; }
21467 else
21468   # Is the header compilable?
21469 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21470 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21471 cat >conftest.$ac_ext <<_ACEOF
21472 /* confdefs.h.  */
21473 _ACEOF
21474 cat confdefs.h >>conftest.$ac_ext
21475 cat >>conftest.$ac_ext <<_ACEOF
21476 /* end confdefs.h.  */
21477 $ac_includes_default
21478 @%:@include <$ac_header>
21479 _ACEOF
21480 rm -f conftest.$ac_objext
21481 if { (ac_try="$ac_compile"
21482 case "(($ac_try" in
21483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21484   *) ac_try_echo=$ac_try;;
21485 esac
21486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21487   (eval "$ac_compile") 2>conftest.er1
21488   ac_status=$?
21489   grep -v '^ *+' conftest.er1 >conftest.err
21490   rm -f conftest.er1
21491   cat conftest.err >&5
21492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21493   (exit $ac_status); } && {
21494          test -z "$ac_c_werror_flag" ||
21495          test ! -s conftest.err
21496        } && test -s conftest.$ac_objext; then
21497   ac_header_compiler=yes
21498 else
21499   echo "$as_me: failed program was:" >&5
21500 sed 's/^/| /' conftest.$ac_ext >&5
21501
21502         ac_header_compiler=no
21503 fi
21504
21505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21506 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21507 echo "${ECHO_T}$ac_header_compiler" >&6; }
21508
21509 # Is the header present?
21510 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21511 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21512 cat >conftest.$ac_ext <<_ACEOF
21513 /* confdefs.h.  */
21514 _ACEOF
21515 cat confdefs.h >>conftest.$ac_ext
21516 cat >>conftest.$ac_ext <<_ACEOF
21517 /* end confdefs.h.  */
21518 @%:@include <$ac_header>
21519 _ACEOF
21520 if { (ac_try="$ac_cpp conftest.$ac_ext"
21521 case "(($ac_try" in
21522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21523   *) ac_try_echo=$ac_try;;
21524 esac
21525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21526   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21527   ac_status=$?
21528   grep -v '^ *+' conftest.er1 >conftest.err
21529   rm -f conftest.er1
21530   cat conftest.err >&5
21531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21532   (exit $ac_status); } >/dev/null && {
21533          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21534          test ! -s conftest.err
21535        }; then
21536   ac_header_preproc=yes
21537 else
21538   echo "$as_me: failed program was:" >&5
21539 sed 's/^/| /' conftest.$ac_ext >&5
21540
21541   ac_header_preproc=no
21542 fi
21543
21544 rm -f conftest.err conftest.$ac_ext
21545 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21546 echo "${ECHO_T}$ac_header_preproc" >&6; }
21547
21548 # So?  What about this header?
21549 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21550   yes:no: )
21551     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21552 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21553     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21554 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21555     ac_header_preproc=yes
21556     ;;
21557   no:yes:* )
21558     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21559 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21560     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21561 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21562     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21563 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21564     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21565 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21566     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21567 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21568     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21569 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21570     ( cat <<\_ASBOX
21571 @%:@@%:@ ------------------------------- @%:@@%:@
21572 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
21573 @%:@@%:@ ------------------------------- @%:@@%:@
21574 _ASBOX
21575      ) | sed "s/^/$as_me: WARNING:     /" >&2
21576     ;;
21577 esac
21578 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21579 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21580 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21581   echo $ECHO_N "(cached) $ECHO_C" >&6
21582 else
21583   eval "$as_ac_Header=\$ac_header_preproc"
21584 fi
21585 ac_res=`eval echo '${'$as_ac_Header'}'`
21586                { echo "$as_me:$LINENO: result: $ac_res" >&5
21587 echo "${ECHO_T}$ac_res" >&6; }
21588
21589 fi
21590 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21591   cat >>confdefs.h <<_ACEOF
21592 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21593 _ACEOF
21594  
21595 else
21596   { { echo "$as_me:$LINENO: error: libevent needed for nfsv4 support" >&5
21597 echo "$as_me: error: libevent needed for nfsv4 support" >&2;}
21598    { (exit 1); exit 1; }; }
21599 fi
21600
21601 done
21602
21603     
21604 for ac_header in nfsidmap.h
21605 do
21606 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21607 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21608   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21609 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21610 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21611   echo $ECHO_N "(cached) $ECHO_C" >&6
21612 fi
21613 ac_res=`eval echo '${'$as_ac_Header'}'`
21614                { echo "$as_me:$LINENO: result: $ac_res" >&5
21615 echo "${ECHO_T}$ac_res" >&6; }
21616 else
21617   # Is the header compilable?
21618 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21619 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21620 cat >conftest.$ac_ext <<_ACEOF
21621 /* confdefs.h.  */
21622 _ACEOF
21623 cat confdefs.h >>conftest.$ac_ext
21624 cat >>conftest.$ac_ext <<_ACEOF
21625 /* end confdefs.h.  */
21626 $ac_includes_default
21627 @%:@include <$ac_header>
21628 _ACEOF
21629 rm -f conftest.$ac_objext
21630 if { (ac_try="$ac_compile"
21631 case "(($ac_try" in
21632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21633   *) ac_try_echo=$ac_try;;
21634 esac
21635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21636   (eval "$ac_compile") 2>conftest.er1
21637   ac_status=$?
21638   grep -v '^ *+' conftest.er1 >conftest.err
21639   rm -f conftest.er1
21640   cat conftest.err >&5
21641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21642   (exit $ac_status); } && {
21643          test -z "$ac_c_werror_flag" ||
21644          test ! -s conftest.err
21645        } && test -s conftest.$ac_objext; then
21646   ac_header_compiler=yes
21647 else
21648   echo "$as_me: failed program was:" >&5
21649 sed 's/^/| /' conftest.$ac_ext >&5
21650
21651         ac_header_compiler=no
21652 fi
21653
21654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21655 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21656 echo "${ECHO_T}$ac_header_compiler" >&6; }
21657
21658 # Is the header present?
21659 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21660 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21661 cat >conftest.$ac_ext <<_ACEOF
21662 /* confdefs.h.  */
21663 _ACEOF
21664 cat confdefs.h >>conftest.$ac_ext
21665 cat >>conftest.$ac_ext <<_ACEOF
21666 /* end confdefs.h.  */
21667 @%:@include <$ac_header>
21668 _ACEOF
21669 if { (ac_try="$ac_cpp conftest.$ac_ext"
21670 case "(($ac_try" in
21671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21672   *) ac_try_echo=$ac_try;;
21673 esac
21674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21675   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21676   ac_status=$?
21677   grep -v '^ *+' conftest.er1 >conftest.err
21678   rm -f conftest.er1
21679   cat conftest.err >&5
21680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21681   (exit $ac_status); } >/dev/null && {
21682          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21683          test ! -s conftest.err
21684        }; then
21685   ac_header_preproc=yes
21686 else
21687   echo "$as_me: failed program was:" >&5
21688 sed 's/^/| /' conftest.$ac_ext >&5
21689
21690   ac_header_preproc=no
21691 fi
21692
21693 rm -f conftest.err conftest.$ac_ext
21694 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21695 echo "${ECHO_T}$ac_header_preproc" >&6; }
21696
21697 # So?  What about this header?
21698 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21699   yes:no: )
21700     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21701 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21702     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21703 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21704     ac_header_preproc=yes
21705     ;;
21706   no:yes:* )
21707     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21708 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21709     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21710 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21711     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21712 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21713     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21714 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21715     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21716 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21717     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21718 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21719     ( cat <<\_ASBOX
21720 @%:@@%:@ ------------------------------- @%:@@%:@
21721 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
21722 @%:@@%:@ ------------------------------- @%:@@%:@
21723 _ASBOX
21724      ) | sed "s/^/$as_me: WARNING:     /" >&2
21725     ;;
21726 esac
21727 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21728 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21729 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21730   echo $ECHO_N "(cached) $ECHO_C" >&6
21731 else
21732   eval "$as_ac_Header=\$ac_header_preproc"
21733 fi
21734 ac_res=`eval echo '${'$as_ac_Header'}'`
21735                { echo "$as_me:$LINENO: result: $ac_res" >&5
21736 echo "${ECHO_T}$ac_res" >&6; }
21737
21738 fi
21739 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21740   cat >>confdefs.h <<_ACEOF
21741 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21742 _ACEOF
21743  
21744 else
21745   { { echo "$as_me:$LINENO: error: libnfsidmap needed for nfsv4 support" >&5
21746 echo "$as_me: error: libnfsidmap needed for nfsv4 support" >&2;}
21747    { (exit 1); exit 1; }; }
21748 fi
21749
21750 done
21751
21752             if test "$enable_gss" = yes; then
21753      
21754
21755 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
21756         if test -n "$ac_tool_prefix"; then
21757   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
21758 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
21759 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21760 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21761 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
21762   echo $ECHO_N "(cached) $ECHO_C" >&6
21763 else
21764   case $PKG_CONFIG in
21765   [\\/]* | ?:[\\/]*)
21766   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21767   ;;
21768   *)
21769   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21770 for as_dir in $PATH
21771 do
21772   IFS=$as_save_IFS
21773   test -z "$as_dir" && as_dir=.
21774   for ac_exec_ext in '' $ac_executable_extensions; do
21775   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21776     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21777     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21778     break 2
21779   fi
21780 done
21781 done
21782 IFS=$as_save_IFS
21783
21784   ;;
21785 esac
21786 fi
21787 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21788 if test -n "$PKG_CONFIG"; then
21789   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
21790 echo "${ECHO_T}$PKG_CONFIG" >&6; }
21791 else
21792   { echo "$as_me:$LINENO: result: no" >&5
21793 echo "${ECHO_T}no" >&6; }
21794 fi
21795
21796
21797 fi
21798 if test -z "$ac_cv_path_PKG_CONFIG"; then
21799   ac_pt_PKG_CONFIG=$PKG_CONFIG
21800   # Extract the first word of "pkg-config", so it can be a program name with args.
21801 set dummy pkg-config; ac_word=$2
21802 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21803 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21804 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
21805   echo $ECHO_N "(cached) $ECHO_C" >&6
21806 else
21807   case $ac_pt_PKG_CONFIG in
21808   [\\/]* | ?:[\\/]*)
21809   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
21810   ;;
21811   *)
21812   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21813 for as_dir in $PATH
21814 do
21815   IFS=$as_save_IFS
21816   test -z "$as_dir" && as_dir=.
21817   for ac_exec_ext in '' $ac_executable_extensions; do
21818   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21819     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21820     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21821     break 2
21822   fi
21823 done
21824 done
21825 IFS=$as_save_IFS
21826
21827   ;;
21828 esac
21829 fi
21830 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
21831 if test -n "$ac_pt_PKG_CONFIG"; then
21832   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
21833 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
21834 else
21835   { echo "$as_me:$LINENO: result: no" >&5
21836 echo "${ECHO_T}no" >&6; }
21837 fi
21838
21839   if test "x$ac_pt_PKG_CONFIG" = x; then
21840     PKG_CONFIG=""
21841   else
21842     case $cross_compiling:$ac_tool_warned in
21843 yes:)
21844 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
21845 whose name does not start with the host triplet.  If you think this
21846 configuration is useful to you, please write to autoconf@gnu.org." >&5
21847 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
21848 whose name does not start with the host triplet.  If you think this
21849 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
21850 ac_tool_warned=yes ;;
21851 esac
21852     PKG_CONFIG=$ac_pt_PKG_CONFIG
21853   fi
21854 else
21855   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
21856 fi
21857
21858 fi
21859 if test -n "$PKG_CONFIG"; then
21860         _pkg_min_version=0.9.0
21861         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
21862 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
21863         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
21864                 { echo "$as_me:$LINENO: result: yes" >&5
21865 echo "${ECHO_T}yes" >&6; }
21866         else
21867                 { echo "$as_me:$LINENO: result: no" >&5
21868 echo "${ECHO_T}no" >&6; }
21869                 PKG_CONFIG=""
21870         fi
21871                 
21872 fi
21873
21874 pkg_failed=no
21875 { echo "$as_me:$LINENO: checking for RPCSECGSS" >&5
21876 echo $ECHO_N "checking for RPCSECGSS... $ECHO_C" >&6; }
21877
21878 if test -n "$PKG_CONFIG"; then
21879     if test -n "$RPCSECGSS_CFLAGS"; then
21880         pkg_cv_RPCSECGSS_CFLAGS="$RPCSECGSS_CFLAGS"
21881     else
21882         if test -n "$PKG_CONFIG" && \
21883     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"librpcsecgss >= 0.10\"") >&5
21884   ($PKG_CONFIG --exists --print-errors "librpcsecgss >= 0.10") 2>&5
21885   ac_status=$?
21886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21887   (exit $ac_status); }; then
21888   pkg_cv_RPCSECGSS_CFLAGS=`$PKG_CONFIG --cflags "librpcsecgss >= 0.10" 2>/dev/null`
21889 else
21890   pkg_failed=yes
21891 fi
21892     fi
21893 else
21894         pkg_failed=untried
21895 fi
21896 if test -n "$PKG_CONFIG"; then
21897     if test -n "$RPCSECGSS_LIBS"; then
21898         pkg_cv_RPCSECGSS_LIBS="$RPCSECGSS_LIBS"
21899     else
21900         if test -n "$PKG_CONFIG" && \
21901     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"librpcsecgss >= 0.10\"") >&5
21902   ($PKG_CONFIG --exists --print-errors "librpcsecgss >= 0.10") 2>&5
21903   ac_status=$?
21904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21905   (exit $ac_status); }; then
21906   pkg_cv_RPCSECGSS_LIBS=`$PKG_CONFIG --libs "librpcsecgss >= 0.10" 2>/dev/null`
21907 else
21908   pkg_failed=yes
21909 fi
21910     fi
21911 else
21912         pkg_failed=untried
21913 fi
21914
21915
21916
21917 if test $pkg_failed = yes; then
21918         
21919 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21920         _pkg_short_errors_supported=yes
21921 else
21922         _pkg_short_errors_supported=no
21923 fi
21924         if test $_pkg_short_errors_supported = yes; then
21925                 RPCSECGSS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "librpcsecgss >= 0.10"`
21926         else 
21927                 RPCSECGSS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "librpcsecgss >= 0.10"`
21928         fi
21929         # Put the nasty error message in config.log where it belongs
21930         echo "$RPCSECGSS_PKG_ERRORS" >&5
21931
21932         { echo "$as_me:$LINENO: result: no" >&5
21933 echo "${ECHO_T}no" >&6; }
21934                 { { 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
21935 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;}
21936    { (exit 1); exit 1; }; }
21937       
21938      
21939 elif test $pkg_failed = untried; then
21940         { { 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
21941 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;}
21942    { (exit 1); exit 1; }; }
21943       
21944      
21945 else
21946         RPCSECGSS_CFLAGS=$pkg_cv_RPCSECGSS_CFLAGS
21947         RPCSECGSS_LIBS=$pkg_cv_RPCSECGSS_LIBS
21948         { echo "$as_me:$LINENO: result: yes" >&5
21949 echo "${ECHO_T}yes" >&6; }
21950         :
21951 fi
21952     
21953 pkg_failed=no
21954 { echo "$as_me:$LINENO: checking for GSSAPI" >&5
21955 echo $ECHO_N "checking for GSSAPI... $ECHO_C" >&6; }
21956
21957 if test -n "$PKG_CONFIG"; then
21958     if test -n "$GSSAPI_CFLAGS"; then
21959         pkg_cv_GSSAPI_CFLAGS="$GSSAPI_CFLAGS"
21960     else
21961         if test -n "$PKG_CONFIG" && \
21962     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgssapi >= 0.9\"") >&5
21963   ($PKG_CONFIG --exists --print-errors "libgssapi >= 0.9") 2>&5
21964   ac_status=$?
21965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21966   (exit $ac_status); }; then
21967   pkg_cv_GSSAPI_CFLAGS=`$PKG_CONFIG --cflags "libgssapi >= 0.9" 2>/dev/null`
21968 else
21969   pkg_failed=yes
21970 fi
21971     fi
21972 else
21973         pkg_failed=untried
21974 fi
21975 if test -n "$PKG_CONFIG"; then
21976     if test -n "$GSSAPI_LIBS"; then
21977         pkg_cv_GSSAPI_LIBS="$GSSAPI_LIBS"
21978     else
21979         if test -n "$PKG_CONFIG" && \
21980     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgssapi >= 0.9\"") >&5
21981   ($PKG_CONFIG --exists --print-errors "libgssapi >= 0.9") 2>&5
21982   ac_status=$?
21983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21984   (exit $ac_status); }; then
21985   pkg_cv_GSSAPI_LIBS=`$PKG_CONFIG --libs "libgssapi >= 0.9" 2>/dev/null`
21986 else
21987   pkg_failed=yes
21988 fi
21989     fi
21990 else
21991         pkg_failed=untried
21992 fi
21993
21994
21995
21996 if test $pkg_failed = yes; then
21997         
21998 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21999         _pkg_short_errors_supported=yes
22000 else
22001         _pkg_short_errors_supported=no
22002 fi
22003         if test $_pkg_short_errors_supported = yes; then
22004                 GSSAPI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgssapi >= 0.9"`
22005         else 
22006                 GSSAPI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgssapi >= 0.9"`
22007         fi
22008         # Put the nasty error message in config.log where it belongs
22009         echo "$GSSAPI_PKG_ERRORS" >&5
22010
22011         { { echo "$as_me:$LINENO: error: Package requirements (libgssapi >= 0.9) were not met:
22012
22013 $GSSAPI_PKG_ERRORS
22014
22015 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22016 installed software in a non-standard prefix.
22017
22018 Alternatively, you may set the environment variables GSSAPI_CFLAGS
22019 and GSSAPI_LIBS to avoid the need to call pkg-config.
22020 See the pkg-config man page for more details.
22021 " >&5
22022 echo "$as_me: error: Package requirements (libgssapi >= 0.9) were not met:
22023
22024 $GSSAPI_PKG_ERRORS
22025
22026 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22027 installed software in a non-standard prefix.
22028
22029 Alternatively, you may set the environment variables GSSAPI_CFLAGS
22030 and GSSAPI_LIBS to avoid the need to call pkg-config.
22031 See the pkg-config man page for more details.
22032 " >&2;}
22033    { (exit 1); exit 1; }; }
22034 elif test $pkg_failed = untried; then
22035         { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
22036 is in your PATH or set the PKG_CONFIG environment variable to the full
22037 path to pkg-config.
22038
22039 Alternatively, you may set the environment variables GSSAPI_CFLAGS
22040 and GSSAPI_LIBS to avoid the need to call pkg-config.
22041 See the pkg-config man page for more details.
22042
22043 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
22044 See \`config.log' for more details." >&5
22045 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
22046 is in your PATH or set the PKG_CONFIG environment variable to the full
22047 path to pkg-config.
22048
22049 Alternatively, you may set the environment variables GSSAPI_CFLAGS
22050 and GSSAPI_LIBS to avoid the need to call pkg-config.
22051 See the pkg-config man page for more details.
22052
22053 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
22054 See \`config.log' for more details." >&2;}
22055    { (exit 1); exit 1; }; }
22056 else
22057         GSSAPI_CFLAGS=$pkg_cv_GSSAPI_CFLAGS
22058         GSSAPI_LIBS=$pkg_cv_GSSAPI_LIBS
22059         { echo "$as_me:$LINENO: result: yes" >&5
22060 echo "${ECHO_T}yes" >&6; }
22061         :
22062 fi
22063     fi
22064
22065 fi
22066 if test "$knfsd_cv_glibc2" = no; then
22067     { echo "$as_me:$LINENO: checking for daemon in -lbsd" >&5
22068 echo $ECHO_N "checking for daemon in -lbsd... $ECHO_C" >&6; }
22069 if test "${ac_cv_lib_bsd_daemon+set}" = set; then
22070   echo $ECHO_N "(cached) $ECHO_C" >&6
22071 else
22072   ac_check_lib_save_LIBS=$LIBS
22073 LIBS="-lbsd  $LIBS"
22074 cat >conftest.$ac_ext <<_ACEOF
22075 /* confdefs.h.  */
22076 _ACEOF
22077 cat confdefs.h >>conftest.$ac_ext
22078 cat >>conftest.$ac_ext <<_ACEOF
22079 /* end confdefs.h.  */
22080
22081 /* Override any GCC internal prototype to avoid an error.
22082    Use char because int might match the return type of a GCC
22083    builtin and then its argument prototype would still apply.  */
22084 #ifdef __cplusplus
22085 extern "C"
22086 #endif
22087 char daemon ();
22088 int
22089 main ()
22090 {
22091 return daemon ();
22092   ;
22093   return 0;
22094 }
22095 _ACEOF
22096 rm -f conftest.$ac_objext conftest$ac_exeext
22097 if { (ac_try="$ac_link"
22098 case "(($ac_try" in
22099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22100   *) ac_try_echo=$ac_try;;
22101 esac
22102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22103   (eval "$ac_link") 2>conftest.er1
22104   ac_status=$?
22105   grep -v '^ *+' conftest.er1 >conftest.err
22106   rm -f conftest.er1
22107   cat conftest.err >&5
22108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22109   (exit $ac_status); } && {
22110          test -z "$ac_c_werror_flag" ||
22111          test ! -s conftest.err
22112        } && test -s conftest$ac_exeext &&
22113        $as_test_x conftest$ac_exeext; then
22114   ac_cv_lib_bsd_daemon=yes
22115 else
22116   echo "$as_me: failed program was:" >&5
22117 sed 's/^/| /' conftest.$ac_ext >&5
22118
22119         ac_cv_lib_bsd_daemon=no
22120 fi
22121
22122 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22123       conftest$ac_exeext conftest.$ac_ext
22124 LIBS=$ac_check_lib_save_LIBS
22125 fi
22126 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_daemon" >&5
22127 echo "${ECHO_T}$ac_cv_lib_bsd_daemon" >&6; }
22128 if test $ac_cv_lib_bsd_daemon = yes; then
22129   LIBBSD="-lbsd"
22130 fi
22131
22132 fi
22133 { echo "$as_me:$LINENO: checking for blkid_get_cache in -lblkid" >&5
22134 echo $ECHO_N "checking for blkid_get_cache in -lblkid... $ECHO_C" >&6; }
22135 if test "${ac_cv_lib_blkid_blkid_get_cache+set}" = set; then
22136   echo $ECHO_N "(cached) $ECHO_C" >&6
22137 else
22138   ac_check_lib_save_LIBS=$LIBS
22139 LIBS="-lblkid  $LIBS"
22140 cat >conftest.$ac_ext <<_ACEOF
22141 /* confdefs.h.  */
22142 _ACEOF
22143 cat confdefs.h >>conftest.$ac_ext
22144 cat >>conftest.$ac_ext <<_ACEOF
22145 /* end confdefs.h.  */
22146
22147 /* Override any GCC internal prototype to avoid an error.
22148    Use char because int might match the return type of a GCC
22149    builtin and then its argument prototype would still apply.  */
22150 #ifdef __cplusplus
22151 extern "C"
22152 #endif
22153 char blkid_get_cache ();
22154 int
22155 main ()
22156 {
22157 return blkid_get_cache ();
22158   ;
22159   return 0;
22160 }
22161 _ACEOF
22162 rm -f conftest.$ac_objext conftest$ac_exeext
22163 if { (ac_try="$ac_link"
22164 case "(($ac_try" in
22165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22166   *) ac_try_echo=$ac_try;;
22167 esac
22168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22169   (eval "$ac_link") 2>conftest.er1
22170   ac_status=$?
22171   grep -v '^ *+' conftest.er1 >conftest.err
22172   rm -f conftest.er1
22173   cat conftest.err >&5
22174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22175   (exit $ac_status); } && {
22176          test -z "$ac_c_werror_flag" ||
22177          test ! -s conftest.err
22178        } && test -s conftest$ac_exeext &&
22179        $as_test_x conftest$ac_exeext; then
22180   ac_cv_lib_blkid_blkid_get_cache=yes
22181 else
22182   echo "$as_me: failed program was:" >&5
22183 sed 's/^/| /' conftest.$ac_ext >&5
22184
22185         ac_cv_lib_blkid_blkid_get_cache=no
22186 fi
22187
22188 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22189       conftest$ac_exeext conftest.$ac_ext
22190 LIBS=$ac_check_lib_save_LIBS
22191 fi
22192 { echo "$as_me:$LINENO: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
22193 echo "${ECHO_T}$ac_cv_lib_blkid_blkid_get_cache" >&6; }
22194 if test $ac_cv_lib_blkid_blkid_get_cache = yes; then
22195   LIBBLKID="-lblkid"
22196 else
22197   { { echo "$as_me:$LINENO: error: libblkid needed" >&5
22198 echo "$as_me: error: libblkid needed" >&2;}
22199    { (exit 1); exit 1; }; }
22200 fi
22201
22202 if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
22203   { echo "$as_me:$LINENO: checking for blkid/blkid.h" >&5
22204 echo $ECHO_N "checking for blkid/blkid.h... $ECHO_C" >&6; }
22205 if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
22206   echo $ECHO_N "(cached) $ECHO_C" >&6
22207 fi
22208 { echo "$as_me:$LINENO: result: $ac_cv_header_blkid_blkid_h" >&5
22209 echo "${ECHO_T}$ac_cv_header_blkid_blkid_h" >&6; }
22210 else
22211   # Is the header compilable?
22212 { echo "$as_me:$LINENO: checking blkid/blkid.h usability" >&5
22213 echo $ECHO_N "checking blkid/blkid.h usability... $ECHO_C" >&6; }
22214 cat >conftest.$ac_ext <<_ACEOF
22215 /* confdefs.h.  */
22216 _ACEOF
22217 cat confdefs.h >>conftest.$ac_ext
22218 cat >>conftest.$ac_ext <<_ACEOF
22219 /* end confdefs.h.  */
22220 $ac_includes_default
22221 @%:@include <blkid/blkid.h>
22222 _ACEOF
22223 rm -f conftest.$ac_objext
22224 if { (ac_try="$ac_compile"
22225 case "(($ac_try" in
22226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22227   *) ac_try_echo=$ac_try;;
22228 esac
22229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22230   (eval "$ac_compile") 2>conftest.er1
22231   ac_status=$?
22232   grep -v '^ *+' conftest.er1 >conftest.err
22233   rm -f conftest.er1
22234   cat conftest.err >&5
22235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22236   (exit $ac_status); } && {
22237          test -z "$ac_c_werror_flag" ||
22238          test ! -s conftest.err
22239        } && test -s conftest.$ac_objext; then
22240   ac_header_compiler=yes
22241 else
22242   echo "$as_me: failed program was:" >&5
22243 sed 's/^/| /' conftest.$ac_ext >&5
22244
22245         ac_header_compiler=no
22246 fi
22247
22248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22249 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22250 echo "${ECHO_T}$ac_header_compiler" >&6; }
22251
22252 # Is the header present?
22253 { echo "$as_me:$LINENO: checking blkid/blkid.h presence" >&5
22254 echo $ECHO_N "checking blkid/blkid.h presence... $ECHO_C" >&6; }
22255 cat >conftest.$ac_ext <<_ACEOF
22256 /* confdefs.h.  */
22257 _ACEOF
22258 cat confdefs.h >>conftest.$ac_ext
22259 cat >>conftest.$ac_ext <<_ACEOF
22260 /* end confdefs.h.  */
22261 @%:@include <blkid/blkid.h>
22262 _ACEOF
22263 if { (ac_try="$ac_cpp conftest.$ac_ext"
22264 case "(($ac_try" in
22265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22266   *) ac_try_echo=$ac_try;;
22267 esac
22268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22269   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22270   ac_status=$?
22271   grep -v '^ *+' conftest.er1 >conftest.err
22272   rm -f conftest.er1
22273   cat conftest.err >&5
22274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22275   (exit $ac_status); } >/dev/null && {
22276          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22277          test ! -s conftest.err
22278        }; then
22279   ac_header_preproc=yes
22280 else
22281   echo "$as_me: failed program was:" >&5
22282 sed 's/^/| /' conftest.$ac_ext >&5
22283
22284   ac_header_preproc=no
22285 fi
22286
22287 rm -f conftest.err conftest.$ac_ext
22288 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22289 echo "${ECHO_T}$ac_header_preproc" >&6; }
22290
22291 # So?  What about this header?
22292 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22293   yes:no: )
22294     { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: accepted by the compiler, rejected by the preprocessor!" >&5
22295 echo "$as_me: WARNING: blkid/blkid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22296     { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: proceeding with the compiler's result" >&5
22297 echo "$as_me: WARNING: blkid/blkid.h: proceeding with the compiler's result" >&2;}
22298     ac_header_preproc=yes
22299     ;;
22300   no:yes:* )
22301     { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: present but cannot be compiled" >&5
22302 echo "$as_me: WARNING: blkid/blkid.h: present but cannot be compiled" >&2;}
22303     { echo "$as_me:$LINENO: WARNING: blkid/blkid.h:     check for missing prerequisite headers?" >&5
22304 echo "$as_me: WARNING: blkid/blkid.h:     check for missing prerequisite headers?" >&2;}
22305     { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: see the Autoconf documentation" >&5
22306 echo "$as_me: WARNING: blkid/blkid.h: see the Autoconf documentation" >&2;}
22307     { echo "$as_me:$LINENO: WARNING: blkid/blkid.h:     section \"Present But Cannot Be Compiled\"" >&5
22308 echo "$as_me: WARNING: blkid/blkid.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22309     { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: proceeding with the preprocessor's result" >&5
22310 echo "$as_me: WARNING: blkid/blkid.h: proceeding with the preprocessor's result" >&2;}
22311     { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: in the future, the compiler will take precedence" >&5
22312 echo "$as_me: WARNING: blkid/blkid.h: in the future, the compiler will take precedence" >&2;}
22313     ( cat <<\_ASBOX
22314 @%:@@%:@ ------------------------------- @%:@@%:@
22315 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
22316 @%:@@%:@ ------------------------------- @%:@@%:@
22317 _ASBOX
22318      ) | sed "s/^/$as_me: WARNING:     /" >&2
22319     ;;
22320 esac
22321 { echo "$as_me:$LINENO: checking for blkid/blkid.h" >&5
22322 echo $ECHO_N "checking for blkid/blkid.h... $ECHO_C" >&6; }
22323 if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
22324   echo $ECHO_N "(cached) $ECHO_C" >&6
22325 else
22326   ac_cv_header_blkid_blkid_h=$ac_header_preproc
22327 fi
22328 { echo "$as_me:$LINENO: result: $ac_cv_header_blkid_blkid_h" >&5
22329 echo "${ECHO_T}$ac_cv_header_blkid_blkid_h" >&6; }
22330
22331 fi
22332 if test $ac_cv_header_blkid_blkid_h = yes; then
22333   :
22334 else
22335   { { echo "$as_me:$LINENO: error: Cannot file libblkid header file blkid/blkid.h" >&5
22336 echo "$as_me: error: Cannot file libblkid header file blkid/blkid.h" >&2;}
22337    { (exit 1); exit 1; }; }
22338 fi
22339
22340
22341
22342
22343
22344
22345
22346 if test "$enable_gss" = yes; then
22347     
22348 for ac_header in nfsidmap.h
22349 do
22350 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22351 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22352   { echo "$as_me:$LINENO: checking for $ac_header" >&5
22353 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22354 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22355   echo $ECHO_N "(cached) $ECHO_C" >&6
22356 fi
22357 ac_res=`eval echo '${'$as_ac_Header'}'`
22358                { echo "$as_me:$LINENO: result: $ac_res" >&5
22359 echo "${ECHO_T}$ac_res" >&6; }
22360 else
22361   # Is the header compilable?
22362 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22363 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22364 cat >conftest.$ac_ext <<_ACEOF
22365 /* confdefs.h.  */
22366 _ACEOF
22367 cat confdefs.h >>conftest.$ac_ext
22368 cat >>conftest.$ac_ext <<_ACEOF
22369 /* end confdefs.h.  */
22370 $ac_includes_default
22371 @%:@include <$ac_header>
22372 _ACEOF
22373 rm -f conftest.$ac_objext
22374 if { (ac_try="$ac_compile"
22375 case "(($ac_try" in
22376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22377   *) ac_try_echo=$ac_try;;
22378 esac
22379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22380   (eval "$ac_compile") 2>conftest.er1
22381   ac_status=$?
22382   grep -v '^ *+' conftest.er1 >conftest.err
22383   rm -f conftest.er1
22384   cat conftest.err >&5
22385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22386   (exit $ac_status); } && {
22387          test -z "$ac_c_werror_flag" ||
22388          test ! -s conftest.err
22389        } && test -s conftest.$ac_objext; then
22390   ac_header_compiler=yes
22391 else
22392   echo "$as_me: failed program was:" >&5
22393 sed 's/^/| /' conftest.$ac_ext >&5
22394
22395         ac_header_compiler=no
22396 fi
22397
22398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22399 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22400 echo "${ECHO_T}$ac_header_compiler" >&6; }
22401
22402 # Is the header present?
22403 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22404 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22405 cat >conftest.$ac_ext <<_ACEOF
22406 /* confdefs.h.  */
22407 _ACEOF
22408 cat confdefs.h >>conftest.$ac_ext
22409 cat >>conftest.$ac_ext <<_ACEOF
22410 /* end confdefs.h.  */
22411 @%:@include <$ac_header>
22412 _ACEOF
22413 if { (ac_try="$ac_cpp conftest.$ac_ext"
22414 case "(($ac_try" in
22415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22416   *) ac_try_echo=$ac_try;;
22417 esac
22418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22419   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22420   ac_status=$?
22421   grep -v '^ *+' conftest.er1 >conftest.err
22422   rm -f conftest.er1
22423   cat conftest.err >&5
22424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22425   (exit $ac_status); } >/dev/null && {
22426          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22427          test ! -s conftest.err
22428        }; then
22429   ac_header_preproc=yes
22430 else
22431   echo "$as_me: failed program was:" >&5
22432 sed 's/^/| /' conftest.$ac_ext >&5
22433
22434   ac_header_preproc=no
22435 fi
22436
22437 rm -f conftest.err conftest.$ac_ext
22438 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22439 echo "${ECHO_T}$ac_header_preproc" >&6; }
22440
22441 # So?  What about this header?
22442 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22443   yes:no: )
22444     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22445 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22446     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22447 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22448     ac_header_preproc=yes
22449     ;;
22450   no:yes:* )
22451     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22452 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22453     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22454 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22455     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22456 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22457     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22458 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22459     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22460 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22461     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22462 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22463     ( cat <<\_ASBOX
22464 @%:@@%:@ ------------------------------- @%:@@%:@
22465 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
22466 @%:@@%:@ ------------------------------- @%:@@%:@
22467 _ASBOX
22468      ) | sed "s/^/$as_me: WARNING:     /" >&2
22469     ;;
22470 esac
22471 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22472 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22473 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22474   echo $ECHO_N "(cached) $ECHO_C" >&6
22475 else
22476   eval "$as_ac_Header=\$ac_header_preproc"
22477 fi
22478 ac_res=`eval echo '${'$as_ac_Header'}'`
22479                { echo "$as_me:$LINENO: result: $ac_res" >&5
22480 echo "${ECHO_T}$ac_res" >&6; }
22481
22482 fi
22483 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22484   cat >>confdefs.h <<_ACEOF
22485 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22486 _ACEOF
22487  
22488 else
22489   { { echo "$as_me:$LINENO: error: libnfsidmap needed for gss support" >&5
22490 echo "$as_me: error: libnfsidmap needed for gss support" >&2;}
22491    { (exit 1); exit 1; }; }
22492 fi
22493
22494 done
22495
22496   
22497 for ac_header in spkm3.h
22498 do
22499 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22500 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22501   { echo "$as_me:$LINENO: checking for $ac_header" >&5
22502 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22503 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22504   echo $ECHO_N "(cached) $ECHO_C" >&6
22505 fi
22506 ac_res=`eval echo '${'$as_ac_Header'}'`
22507                { echo "$as_me:$LINENO: result: $ac_res" >&5
22508 echo "${ECHO_T}$ac_res" >&6; }
22509 else
22510   # Is the header compilable?
22511 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22512 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22513 cat >conftest.$ac_ext <<_ACEOF
22514 /* confdefs.h.  */
22515 _ACEOF
22516 cat confdefs.h >>conftest.$ac_ext
22517 cat >>conftest.$ac_ext <<_ACEOF
22518 /* end confdefs.h.  */
22519 $ac_includes_default
22520 @%:@include <$ac_header>
22521 _ACEOF
22522 rm -f conftest.$ac_objext
22523 if { (ac_try="$ac_compile"
22524 case "(($ac_try" in
22525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22526   *) ac_try_echo=$ac_try;;
22527 esac
22528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22529   (eval "$ac_compile") 2>conftest.er1
22530   ac_status=$?
22531   grep -v '^ *+' conftest.er1 >conftest.err
22532   rm -f conftest.er1
22533   cat conftest.err >&5
22534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22535   (exit $ac_status); } && {
22536          test -z "$ac_c_werror_flag" ||
22537          test ! -s conftest.err
22538        } && test -s conftest.$ac_objext; then
22539   ac_header_compiler=yes
22540 else
22541   echo "$as_me: failed program was:" >&5
22542 sed 's/^/| /' conftest.$ac_ext >&5
22543
22544         ac_header_compiler=no
22545 fi
22546
22547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22548 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22549 echo "${ECHO_T}$ac_header_compiler" >&6; }
22550
22551 # Is the header present?
22552 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22553 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22554 cat >conftest.$ac_ext <<_ACEOF
22555 /* confdefs.h.  */
22556 _ACEOF
22557 cat confdefs.h >>conftest.$ac_ext
22558 cat >>conftest.$ac_ext <<_ACEOF
22559 /* end confdefs.h.  */
22560 @%:@include <$ac_header>
22561 _ACEOF
22562 if { (ac_try="$ac_cpp conftest.$ac_ext"
22563 case "(($ac_try" in
22564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22565   *) ac_try_echo=$ac_try;;
22566 esac
22567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22568   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22569   ac_status=$?
22570   grep -v '^ *+' conftest.er1 >conftest.err
22571   rm -f conftest.er1
22572   cat conftest.err >&5
22573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22574   (exit $ac_status); } >/dev/null && {
22575          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22576          test ! -s conftest.err
22577        }; then
22578   ac_header_preproc=yes
22579 else
22580   echo "$as_me: failed program was:" >&5
22581 sed 's/^/| /' conftest.$ac_ext >&5
22582
22583   ac_header_preproc=no
22584 fi
22585
22586 rm -f conftest.err conftest.$ac_ext
22587 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22588 echo "${ECHO_T}$ac_header_preproc" >&6; }
22589
22590 # So?  What about this header?
22591 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22592   yes:no: )
22593     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22594 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22595     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22596 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22597     ac_header_preproc=yes
22598     ;;
22599   no:yes:* )
22600     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22601 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22602     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22603 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22604     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22605 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22606     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22607 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22608     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22609 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22610     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22611 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22612     ( cat <<\_ASBOX
22613 @%:@@%:@ ------------------------------- @%:@@%:@
22614 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
22615 @%:@@%:@ ------------------------------- @%:@@%:@
22616 _ASBOX
22617      ) | sed "s/^/$as_me: WARNING:     /" >&2
22618     ;;
22619 esac
22620 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22621 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22622 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22623   echo $ECHO_N "(cached) $ECHO_C" >&6
22624 else
22625   eval "$as_ac_Header=\$ac_header_preproc"
22626 fi
22627 ac_res=`eval echo '${'$as_ac_Header'}'`
22628                { echo "$as_me:$LINENO: result: $ac_res" >&5
22629 echo "${ECHO_T}$ac_res" >&6; }
22630
22631 fi
22632 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22633   cat >>confdefs.h <<_ACEOF
22634 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22635 _ACEOF
22636  
22637 else
22638   { echo "$as_me:$LINENO: WARNING: could not locate SPKM3 header; will not have SPKM3 support" >&5
22639 echo "$as_me: WARNING: could not locate SPKM3 header; will not have SPKM3 support" >&2;}
22640 fi
22641
22642 done
22643
22644     { echo "$as_me:$LINENO: checking for nfs4_set_debug in -lnfsidmap" >&5
22645 echo $ECHO_N "checking for nfs4_set_debug in -lnfsidmap... $ECHO_C" >&6; }
22646 if test "${ac_cv_lib_nfsidmap_nfs4_set_debug+set}" = set; then
22647   echo $ECHO_N "(cached) $ECHO_C" >&6
22648 else
22649   ac_check_lib_save_LIBS=$LIBS
22650 LIBS="-lnfsidmap  $LIBS"
22651 cat >conftest.$ac_ext <<_ACEOF
22652 /* confdefs.h.  */
22653 _ACEOF
22654 cat confdefs.h >>conftest.$ac_ext
22655 cat >>conftest.$ac_ext <<_ACEOF
22656 /* end confdefs.h.  */
22657
22658 /* Override any GCC internal prototype to avoid an error.
22659    Use char because int might match the return type of a GCC
22660    builtin and then its argument prototype would still apply.  */
22661 #ifdef __cplusplus
22662 extern "C"
22663 #endif
22664 char nfs4_set_debug ();
22665 int
22666 main ()
22667 {
22668 return nfs4_set_debug ();
22669   ;
22670   return 0;
22671 }
22672 _ACEOF
22673 rm -f conftest.$ac_objext conftest$ac_exeext
22674 if { (ac_try="$ac_link"
22675 case "(($ac_try" in
22676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22677   *) ac_try_echo=$ac_try;;
22678 esac
22679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22680   (eval "$ac_link") 2>conftest.er1
22681   ac_status=$?
22682   grep -v '^ *+' conftest.er1 >conftest.err
22683   rm -f conftest.er1
22684   cat conftest.err >&5
22685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22686   (exit $ac_status); } && {
22687          test -z "$ac_c_werror_flag" ||
22688          test ! -s conftest.err
22689        } && test -s conftest$ac_exeext &&
22690        $as_test_x conftest$ac_exeext; then
22691   ac_cv_lib_nfsidmap_nfs4_set_debug=yes
22692 else
22693   echo "$as_me: failed program was:" >&5
22694 sed 's/^/| /' conftest.$ac_ext >&5
22695
22696         ac_cv_lib_nfsidmap_nfs4_set_debug=no
22697 fi
22698
22699 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22700       conftest$ac_exeext conftest.$ac_ext
22701 LIBS=$ac_check_lib_save_LIBS
22702 fi
22703 { echo "$as_me:$LINENO: result: $ac_cv_lib_nfsidmap_nfs4_set_debug" >&5
22704 echo "${ECHO_T}$ac_cv_lib_nfsidmap_nfs4_set_debug" >&6; }
22705 if test $ac_cv_lib_nfsidmap_nfs4_set_debug = yes; then
22706   
22707 cat >>confdefs.h <<\_ACEOF
22708 @%:@define HAVE_NFS4_SET_DEBUG 1
22709 _ACEOF
22710
22711 fi
22712
22713
22714     
22715   { echo "$as_me:$LINENO: checking for Kerberos v5" >&5
22716 echo $ECHO_N "checking for Kerberos v5... $ECHO_C" >&6; }
22717   
22718 # Check whether --with-krb5 was given.
22719 if test "${with_krb5+set}" = set; then
22720   withval=$with_krb5;  case "$withval" in
22721     yes|no)
22722        krb5_with=""
22723        ;;
22724     *)
22725        krb5_with="$withval"
22726        ;;
22727     esac 
22728   
22729 fi
22730
22731
22732   for dir in $krb5_with /usr /usr/kerberos /usr/local /usr/local/krb5 \
22733              /usr/krb5 /usr/heimdal /usr/local/heimdal /usr/athena ; do
22734             K5CONFIG=""
22735     if test -f $dir/bin/krb5-config; then
22736       K5CONFIG=$dir/bin/krb5-config
22737     elif test -f "/usr/kerberos/bin/krb5-config"; then
22738       K5CONFIG="/usr/kerberos/bin/krb5-config"
22739     elif test -f "/usr/lib/mit/bin/krb5-config"; then
22740       K5CONFIG="/usr/lib/mit/bin/krb5-config"
22741     fi
22742     if test "$K5CONFIG" != ""; then
22743       KRBCFLAGS=`$K5CONFIG --cflags`
22744       KRBLIBS=`$K5CONFIG --libs gssapi`
22745       K5VERS=`$K5CONFIG --version | head -n 1 | awk '{split($(4),v,"."); if (v@<:@"3"@:>@ == "") v@<:@"3"@:>@ = "0"; print v@<:@"1"@:>@v@<:@"2"@:>@v@<:@"3"@:>@ }'`
22746       
22747 cat >>confdefs.h <<_ACEOF
22748 @%:@define KRB5_VERSION $K5VERS
22749 _ACEOF
22750
22751       if test -f $dir/include/gssapi/gssapi_krb5.h -a \
22752                 \( -f $dir/lib/libgssapi_krb5.a -o \
22753                    -f $dir/lib/libgssapi_krb5.so \) ; then
22754          
22755 cat >>confdefs.h <<\_ACEOF
22756 @%:@define HAVE_KRB5 1
22757 _ACEOF
22758
22759          KRBDIR="$dir"
22760                      if test $K5VERS -le 131; then
22761            
22762 cat >>confdefs.h <<\_ACEOF
22763 @%:@define USE_GSS_KRB5_CCACHE_NAME 1
22764 _ACEOF
22765
22766          fi
22767          gssapi_lib=gssapi_krb5
22768          break
22769                   elif test \( -f $dir/include/heim_err.h -o\
22770                  -f $dir/include/heimdal/heim_err.h \) -a \
22771                 -f $dir/lib/libroken.a; then
22772          
22773 cat >>confdefs.h <<\_ACEOF
22774 @%:@define HAVE_HEIMDAL 1
22775 _ACEOF
22776
22777          KRBDIR="$dir"
22778          gssapi_lib=gssapi
22779         break
22780       fi
22781     fi
22782   done
22783     if test "x$KRBDIR" = "x"; then
22784     if test "x$krb5_with" = "x"; then
22785       { { echo "$as_me:$LINENO: error: Kerberos v5 with GSS support not found: consider --disable-gss or --with-krb5=" >&5
22786 echo "$as_me: error: Kerberos v5 with GSS support not found: consider --disable-gss or --with-krb5=" >&2;}
22787    { (exit 1); exit 1; }; }
22788     else
22789       { { echo "$as_me:$LINENO: error: Kerberos v5 with GSS support not found at $krb5_with" >&5
22790 echo "$as_me: error: Kerberos v5 with GSS support not found at $krb5_with" >&2;}
22791    { (exit 1); exit 1; }; }
22792     fi
22793   fi
22794   { echo "$as_me:$LINENO: result: $KRBDIR" >&5
22795 echo "${ECHO_T}$KRBDIR" >&6; }
22796
22797     echo "The current KRBDIR is $KRBDIR"
22798   if test "$KRBDIR/lib" = "/lib" -o "$KRBDIR/lib" = "/usr/lib" \
22799        -o "$KRBDIR/lib" = "//lib" -o "$KRBDIR/lib" = "/usr//lib" ; then
22800     KRBLDFLAGS="";
22801   elif /sbin/ldconfig -p | grep > /dev/null "=> $KRBDIR/lib/"; then
22802     KRBLDFLAGS="";
22803   else
22804     KRBLDFLAGS="-Wl,-rpath=$KRBDIR/lib"
22805   fi
22806
22807     as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_export_lucid_sec_context" | $as_tr_sh`
22808 { echo "$as_me:$LINENO: checking for gss_krb5_export_lucid_sec_context in -l$gssapi_lib" >&5
22809 echo $ECHO_N "checking for gss_krb5_export_lucid_sec_context in -l$gssapi_lib... $ECHO_C" >&6; }
22810 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
22811   echo $ECHO_N "(cached) $ECHO_C" >&6
22812 else
22813   ac_check_lib_save_LIBS=$LIBS
22814 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
22815 cat >conftest.$ac_ext <<_ACEOF
22816 /* confdefs.h.  */
22817 _ACEOF
22818 cat confdefs.h >>conftest.$ac_ext
22819 cat >>conftest.$ac_ext <<_ACEOF
22820 /* end confdefs.h.  */
22821
22822 /* Override any GCC internal prototype to avoid an error.
22823    Use char because int might match the return type of a GCC
22824    builtin and then its argument prototype would still apply.  */
22825 #ifdef __cplusplus
22826 extern "C"
22827 #endif
22828 char gss_krb5_export_lucid_sec_context ();
22829 int
22830 main ()
22831 {
22832 return gss_krb5_export_lucid_sec_context ();
22833   ;
22834   return 0;
22835 }
22836 _ACEOF
22837 rm -f conftest.$ac_objext conftest$ac_exeext
22838 if { (ac_try="$ac_link"
22839 case "(($ac_try" in
22840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22841   *) ac_try_echo=$ac_try;;
22842 esac
22843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22844   (eval "$ac_link") 2>conftest.er1
22845   ac_status=$?
22846   grep -v '^ *+' conftest.er1 >conftest.err
22847   rm -f conftest.er1
22848   cat conftest.err >&5
22849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22850   (exit $ac_status); } && {
22851          test -z "$ac_c_werror_flag" ||
22852          test ! -s conftest.err
22853        } && test -s conftest$ac_exeext &&
22854        $as_test_x conftest$ac_exeext; then
22855   eval "$as_ac_Lib=yes"
22856 else
22857   echo "$as_me: failed program was:" >&5
22858 sed 's/^/| /' conftest.$ac_ext >&5
22859
22860         eval "$as_ac_Lib=no"
22861 fi
22862
22863 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22864       conftest$ac_exeext conftest.$ac_ext
22865 LIBS=$ac_check_lib_save_LIBS
22866 fi
22867 ac_res=`eval echo '${'$as_ac_Lib'}'`
22868                { echo "$as_me:$LINENO: result: $ac_res" >&5
22869 echo "${ECHO_T}$ac_res" >&6; }
22870 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
22871   
22872 cat >>confdefs.h <<\_ACEOF
22873 @%:@define HAVE_LUCID_CONTEXT_SUPPORT 1
22874 _ACEOF
22875
22876 fi
22877
22878   as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_set_allowable_enctypes" | $as_tr_sh`
22879 { echo "$as_me:$LINENO: checking for gss_krb5_set_allowable_enctypes in -l$gssapi_lib" >&5
22880 echo $ECHO_N "checking for gss_krb5_set_allowable_enctypes in -l$gssapi_lib... $ECHO_C" >&6; }
22881 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
22882   echo $ECHO_N "(cached) $ECHO_C" >&6
22883 else
22884   ac_check_lib_save_LIBS=$LIBS
22885 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
22886 cat >conftest.$ac_ext <<_ACEOF
22887 /* confdefs.h.  */
22888 _ACEOF
22889 cat confdefs.h >>conftest.$ac_ext
22890 cat >>conftest.$ac_ext <<_ACEOF
22891 /* end confdefs.h.  */
22892
22893 /* Override any GCC internal prototype to avoid an error.
22894    Use char because int might match the return type of a GCC
22895    builtin and then its argument prototype would still apply.  */
22896 #ifdef __cplusplus
22897 extern "C"
22898 #endif
22899 char gss_krb5_set_allowable_enctypes ();
22900 int
22901 main ()
22902 {
22903 return gss_krb5_set_allowable_enctypes ();
22904   ;
22905   return 0;
22906 }
22907 _ACEOF
22908 rm -f conftest.$ac_objext conftest$ac_exeext
22909 if { (ac_try="$ac_link"
22910 case "(($ac_try" in
22911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22912   *) ac_try_echo=$ac_try;;
22913 esac
22914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22915   (eval "$ac_link") 2>conftest.er1
22916   ac_status=$?
22917   grep -v '^ *+' conftest.er1 >conftest.err
22918   rm -f conftest.er1
22919   cat conftest.err >&5
22920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22921   (exit $ac_status); } && {
22922          test -z "$ac_c_werror_flag" ||
22923          test ! -s conftest.err
22924        } && test -s conftest$ac_exeext &&
22925        $as_test_x conftest$ac_exeext; then
22926   eval "$as_ac_Lib=yes"
22927 else
22928   echo "$as_me: failed program was:" >&5
22929 sed 's/^/| /' conftest.$ac_ext >&5
22930
22931         eval "$as_ac_Lib=no"
22932 fi
22933
22934 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22935       conftest$ac_exeext conftest.$ac_ext
22936 LIBS=$ac_check_lib_save_LIBS
22937 fi
22938 ac_res=`eval echo '${'$as_ac_Lib'}'`
22939                { echo "$as_me:$LINENO: result: $ac_res" >&5
22940 echo "${ECHO_T}$ac_res" >&6; }
22941 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
22942   
22943 cat >>confdefs.h <<\_ACEOF
22944 @%:@define HAVE_SET_ALLOWABLE_ENCTYPES 1
22945 _ACEOF
22946
22947 fi
22948
22949   as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_ccache_name" | $as_tr_sh`
22950 { echo "$as_me:$LINENO: checking for gss_krb5_ccache_name in -l$gssapi_lib" >&5
22951 echo $ECHO_N "checking for gss_krb5_ccache_name in -l$gssapi_lib... $ECHO_C" >&6; }
22952 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
22953   echo $ECHO_N "(cached) $ECHO_C" >&6
22954 else
22955   ac_check_lib_save_LIBS=$LIBS
22956 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
22957 cat >conftest.$ac_ext <<_ACEOF
22958 /* confdefs.h.  */
22959 _ACEOF
22960 cat confdefs.h >>conftest.$ac_ext
22961 cat >>conftest.$ac_ext <<_ACEOF
22962 /* end confdefs.h.  */
22963
22964 /* Override any GCC internal prototype to avoid an error.
22965    Use char because int might match the return type of a GCC
22966    builtin and then its argument prototype would still apply.  */
22967 #ifdef __cplusplus
22968 extern "C"
22969 #endif
22970 char gss_krb5_ccache_name ();
22971 int
22972 main ()
22973 {
22974 return gss_krb5_ccache_name ();
22975   ;
22976   return 0;
22977 }
22978 _ACEOF
22979 rm -f conftest.$ac_objext conftest$ac_exeext
22980 if { (ac_try="$ac_link"
22981 case "(($ac_try" in
22982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22983   *) ac_try_echo=$ac_try;;
22984 esac
22985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22986   (eval "$ac_link") 2>conftest.er1
22987   ac_status=$?
22988   grep -v '^ *+' conftest.er1 >conftest.err
22989   rm -f conftest.er1
22990   cat conftest.err >&5
22991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22992   (exit $ac_status); } && {
22993          test -z "$ac_c_werror_flag" ||
22994          test ! -s conftest.err
22995        } && test -s conftest$ac_exeext &&
22996        $as_test_x conftest$ac_exeext; then
22997   eval "$as_ac_Lib=yes"
22998 else
22999   echo "$as_me: failed program was:" >&5
23000 sed 's/^/| /' conftest.$ac_ext >&5
23001
23002         eval "$as_ac_Lib=no"
23003 fi
23004
23005 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23006       conftest$ac_exeext conftest.$ac_ext
23007 LIBS=$ac_check_lib_save_LIBS
23008 fi
23009 ac_res=`eval echo '${'$as_ac_Lib'}'`
23010                { echo "$as_me:$LINENO: result: $ac_res" >&5
23011 echo "${ECHO_T}$ac_res" >&6; }
23012 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23013   
23014 cat >>confdefs.h <<\_ACEOF
23015 @%:@define HAVE_GSS_KRB5_CCACHE_NAME 1
23016 _ACEOF
23017
23018 fi
23019
23020
23021     if test "x$krb5_with" != "x" -a "$krb5_with" != "$KRBDIR"; then
23022     { echo "$as_me:$LINENO: WARNING: Using $KRBDIR instead of requested value of $krb5_with for Kerberos!" >&5
23023 echo "$as_me: WARNING: Using $KRBDIR instead of requested value of $krb5_with for Kerberos!" >&2;}
23024   fi
23025
23026   
23027   
23028   
23029   
23030   
23031
23032
23033
23034       { echo "$as_me:$LINENO: checking for authgss_create_default in -lrpcsecgss" >&5
23035 echo $ECHO_N "checking for authgss_create_default in -lrpcsecgss... $ECHO_C" >&6; }
23036 if test "${ac_cv_lib_rpcsecgss_authgss_create_default+set}" = set; then
23037   echo $ECHO_N "(cached) $ECHO_C" >&6
23038 else
23039   ac_check_lib_save_LIBS=$LIBS
23040 LIBS="-lrpcsecgss -lgssapi -ldl $LIBS"
23041 cat >conftest.$ac_ext <<_ACEOF
23042 /* confdefs.h.  */
23043 _ACEOF
23044 cat confdefs.h >>conftest.$ac_ext
23045 cat >>conftest.$ac_ext <<_ACEOF
23046 /* end confdefs.h.  */
23047
23048 /* Override any GCC internal prototype to avoid an error.
23049    Use char because int might match the return type of a GCC
23050    builtin and then its argument prototype would still apply.  */
23051 #ifdef __cplusplus
23052 extern "C"
23053 #endif
23054 char authgss_create_default ();
23055 int
23056 main ()
23057 {
23058 return authgss_create_default ();
23059   ;
23060   return 0;
23061 }
23062 _ACEOF
23063 rm -f conftest.$ac_objext conftest$ac_exeext
23064 if { (ac_try="$ac_link"
23065 case "(($ac_try" in
23066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23067   *) ac_try_echo=$ac_try;;
23068 esac
23069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23070   (eval "$ac_link") 2>conftest.er1
23071   ac_status=$?
23072   grep -v '^ *+' conftest.er1 >conftest.err
23073   rm -f conftest.er1
23074   cat conftest.err >&5
23075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23076   (exit $ac_status); } && {
23077          test -z "$ac_c_werror_flag" ||
23078          test ! -s conftest.err
23079        } && test -s conftest$ac_exeext &&
23080        $as_test_x conftest$ac_exeext; then
23081   ac_cv_lib_rpcsecgss_authgss_create_default=yes
23082 else
23083   echo "$as_me: failed program was:" >&5
23084 sed 's/^/| /' conftest.$ac_ext >&5
23085
23086         ac_cv_lib_rpcsecgss_authgss_create_default=no
23087 fi
23088
23089 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23090       conftest$ac_exeext conftest.$ac_ext
23091 LIBS=$ac_check_lib_save_LIBS
23092 fi
23093 { echo "$as_me:$LINENO: result: $ac_cv_lib_rpcsecgss_authgss_create_default" >&5
23094 echo "${ECHO_T}$ac_cv_lib_rpcsecgss_authgss_create_default" >&6; }
23095 if test $ac_cv_lib_rpcsecgss_authgss_create_default = yes; then
23096   librpcsecgss=1
23097 else
23098   { { echo "$as_me:$LINENO: error: librpcsecgss needed for nfsv4 support" >&5
23099 echo "$as_me: error: librpcsecgss needed for nfsv4 support" >&2;}
23100    { (exit 1); exit 1; }; }
23101 fi
23102
23103   { echo "$as_me:$LINENO: checking for authgss_set_debug_level in -lrpcsecgss" >&5
23104 echo $ECHO_N "checking for authgss_set_debug_level in -lrpcsecgss... $ECHO_C" >&6; }
23105 if test "${ac_cv_lib_rpcsecgss_authgss_set_debug_level+set}" = set; then
23106   echo $ECHO_N "(cached) $ECHO_C" >&6
23107 else
23108   ac_check_lib_save_LIBS=$LIBS
23109 LIBS="-lrpcsecgss -lgssapi -ldl $LIBS"
23110 cat >conftest.$ac_ext <<_ACEOF
23111 /* confdefs.h.  */
23112 _ACEOF
23113 cat confdefs.h >>conftest.$ac_ext
23114 cat >>conftest.$ac_ext <<_ACEOF
23115 /* end confdefs.h.  */
23116
23117 /* Override any GCC internal prototype to avoid an error.
23118    Use char because int might match the return type of a GCC
23119    builtin and then its argument prototype would still apply.  */
23120 #ifdef __cplusplus
23121 extern "C"
23122 #endif
23123 char authgss_set_debug_level ();
23124 int
23125 main ()
23126 {
23127 return authgss_set_debug_level ();
23128   ;
23129   return 0;
23130 }
23131 _ACEOF
23132 rm -f conftest.$ac_objext conftest$ac_exeext
23133 if { (ac_try="$ac_link"
23134 case "(($ac_try" in
23135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23136   *) ac_try_echo=$ac_try;;
23137 esac
23138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23139   (eval "$ac_link") 2>conftest.er1
23140   ac_status=$?
23141   grep -v '^ *+' conftest.er1 >conftest.err
23142   rm -f conftest.er1
23143   cat conftest.err >&5
23144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23145   (exit $ac_status); } && {
23146          test -z "$ac_c_werror_flag" ||
23147          test ! -s conftest.err
23148        } && test -s conftest$ac_exeext &&
23149        $as_test_x conftest$ac_exeext; then
23150   ac_cv_lib_rpcsecgss_authgss_set_debug_level=yes
23151 else
23152   echo "$as_me: failed program was:" >&5
23153 sed 's/^/| /' conftest.$ac_ext >&5
23154
23155         ac_cv_lib_rpcsecgss_authgss_set_debug_level=no
23156 fi
23157
23158 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23159       conftest$ac_exeext conftest.$ac_ext
23160 LIBS=$ac_check_lib_save_LIBS
23161 fi
23162 { echo "$as_me:$LINENO: result: $ac_cv_lib_rpcsecgss_authgss_set_debug_level" >&5
23163 echo "${ECHO_T}$ac_cv_lib_rpcsecgss_authgss_set_debug_level" >&6; }
23164 if test $ac_cv_lib_rpcsecgss_authgss_set_debug_level = yes; then
23165   
23166 cat >>confdefs.h <<\_ACEOF
23167 @%:@define HAVE_AUTHGSS_SET_DEBUG_LEVEL 1
23168 _ACEOF
23169
23170 fi
23171
23172
23173 fi
23174
23175
23176
23177
23178
23179
23180
23181
23182
23183
23184
23185
23186
23187
23188
23189
23190
23191
23192
23193
23194
23195
23196
23197
23198 for ac_header in arpa/inet.h fcntl.h libintl.h limits.h \
23199                  malloc.h memory.h netdb.h netinet/in.h paths.h \
23200                  stdlib.h string.h sys/file.h sys/ioctl.h sys/mount.h \
23201                  sys/param.h sys/socket.h sys/time.h sys/vfs.h \
23202                  syslog.h unistd.h com_err.h et/com_err.h \
23203                  ifaddrs.h
23204 do
23205 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23206 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23207   { echo "$as_me:$LINENO: checking for $ac_header" >&5
23208 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23209 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23210   echo $ECHO_N "(cached) $ECHO_C" >&6
23211 fi
23212 ac_res=`eval echo '${'$as_ac_Header'}'`
23213                { echo "$as_me:$LINENO: result: $ac_res" >&5
23214 echo "${ECHO_T}$ac_res" >&6; }
23215 else
23216   # Is the header compilable?
23217 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23218 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23219 cat >conftest.$ac_ext <<_ACEOF
23220 /* confdefs.h.  */
23221 _ACEOF
23222 cat confdefs.h >>conftest.$ac_ext
23223 cat >>conftest.$ac_ext <<_ACEOF
23224 /* end confdefs.h.  */
23225 $ac_includes_default
23226 @%:@include <$ac_header>
23227 _ACEOF
23228 rm -f conftest.$ac_objext
23229 if { (ac_try="$ac_compile"
23230 case "(($ac_try" in
23231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23232   *) ac_try_echo=$ac_try;;
23233 esac
23234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23235   (eval "$ac_compile") 2>conftest.er1
23236   ac_status=$?
23237   grep -v '^ *+' conftest.er1 >conftest.err
23238   rm -f conftest.er1
23239   cat conftest.err >&5
23240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23241   (exit $ac_status); } && {
23242          test -z "$ac_c_werror_flag" ||
23243          test ! -s conftest.err
23244        } && test -s conftest.$ac_objext; then
23245   ac_header_compiler=yes
23246 else
23247   echo "$as_me: failed program was:" >&5
23248 sed 's/^/| /' conftest.$ac_ext >&5
23249
23250         ac_header_compiler=no
23251 fi
23252
23253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23254 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23255 echo "${ECHO_T}$ac_header_compiler" >&6; }
23256
23257 # Is the header present?
23258 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23259 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23260 cat >conftest.$ac_ext <<_ACEOF
23261 /* confdefs.h.  */
23262 _ACEOF
23263 cat confdefs.h >>conftest.$ac_ext
23264 cat >>conftest.$ac_ext <<_ACEOF
23265 /* end confdefs.h.  */
23266 @%:@include <$ac_header>
23267 _ACEOF
23268 if { (ac_try="$ac_cpp conftest.$ac_ext"
23269 case "(($ac_try" in
23270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23271   *) ac_try_echo=$ac_try;;
23272 esac
23273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23274   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23275   ac_status=$?
23276   grep -v '^ *+' conftest.er1 >conftest.err
23277   rm -f conftest.er1
23278   cat conftest.err >&5
23279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23280   (exit $ac_status); } >/dev/null && {
23281          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23282          test ! -s conftest.err
23283        }; then
23284   ac_header_preproc=yes
23285 else
23286   echo "$as_me: failed program was:" >&5
23287 sed 's/^/| /' conftest.$ac_ext >&5
23288
23289   ac_header_preproc=no
23290 fi
23291
23292 rm -f conftest.err conftest.$ac_ext
23293 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23294 echo "${ECHO_T}$ac_header_preproc" >&6; }
23295
23296 # So?  What about this header?
23297 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23298   yes:no: )
23299     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23300 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23301     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23302 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23303     ac_header_preproc=yes
23304     ;;
23305   no:yes:* )
23306     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23307 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23308     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23309 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23310     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23311 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23312     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23313 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23314     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23315 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23316     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23317 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23318     ( cat <<\_ASBOX
23319 @%:@@%:@ ------------------------------- @%:@@%:@
23320 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
23321 @%:@@%:@ ------------------------------- @%:@@%:@
23322 _ASBOX
23323      ) | sed "s/^/$as_me: WARNING:     /" >&2
23324     ;;
23325 esac
23326 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23327 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23328 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23329   echo $ECHO_N "(cached) $ECHO_C" >&6
23330 else
23331   eval "$as_ac_Header=\$ac_header_preproc"
23332 fi
23333 ac_res=`eval echo '${'$as_ac_Header'}'`
23334                { echo "$as_me:$LINENO: result: $ac_res" >&5
23335 echo "${ECHO_T}$ac_res" >&6; }
23336
23337 fi
23338 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23339   cat >>confdefs.h <<_ACEOF
23340 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23341 _ACEOF
23342  
23343 fi
23344
23345 done
23346
23347
23348 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
23349 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
23350 if test "${ac_cv_c_const+set}" = set; then
23351   echo $ECHO_N "(cached) $ECHO_C" >&6
23352 else
23353   cat >conftest.$ac_ext <<_ACEOF
23354 /* confdefs.h.  */
23355 _ACEOF
23356 cat confdefs.h >>conftest.$ac_ext
23357 cat >>conftest.$ac_ext <<_ACEOF
23358 /* end confdefs.h.  */
23359
23360 int
23361 main ()
23362 {
23363 /* FIXME: Include the comments suggested by Paul. */
23364 #ifndef __cplusplus
23365   /* Ultrix mips cc rejects this.  */
23366   typedef int charset[2];
23367   const charset cs;
23368   /* SunOS 4.1.1 cc rejects this.  */
23369   char const *const *pcpcc;
23370   char **ppc;
23371   /* NEC SVR4.0.2 mips cc rejects this.  */
23372   struct point {int x, y;};
23373   static struct point const zero = {0,0};
23374   /* AIX XL C 1.02.0.0 rejects this.
23375      It does not let you subtract one const X* pointer from another in
23376      an arm of an if-expression whose if-part is not a constant
23377      expression */
23378   const char *g = "string";
23379   pcpcc = &g + (g ? g-g : 0);
23380   /* HPUX 7.0 cc rejects these. */
23381   ++pcpcc;
23382   ppc = (char**) pcpcc;
23383   pcpcc = (char const *const *) ppc;
23384   { /* SCO 3.2v4 cc rejects this.  */
23385     char *t;
23386     char const *s = 0 ? (char *) 0 : (char const *) 0;
23387
23388     *t++ = 0;
23389     if (s) return 0;
23390   }
23391   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
23392     int x[] = {25, 17};
23393     const int *foo = &x[0];
23394     ++foo;
23395   }
23396   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23397     typedef const int *iptr;
23398     iptr p = 0;
23399     ++p;
23400   }
23401   { /* AIX XL C 1.02.0.0 rejects this saying
23402        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23403     struct s { int j; const int *ap[3]; };
23404     struct s *b; b->j = 5;
23405   }
23406   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23407     const int foo = 10;
23408     if (!foo) return 0;
23409   }
23410   return !cs[0] && !zero.x;
23411 #endif
23412
23413   ;
23414   return 0;
23415 }
23416 _ACEOF
23417 rm -f conftest.$ac_objext
23418 if { (ac_try="$ac_compile"
23419 case "(($ac_try" in
23420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23421   *) ac_try_echo=$ac_try;;
23422 esac
23423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23424   (eval "$ac_compile") 2>conftest.er1
23425   ac_status=$?
23426   grep -v '^ *+' conftest.er1 >conftest.err
23427   rm -f conftest.er1
23428   cat conftest.err >&5
23429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23430   (exit $ac_status); } && {
23431          test -z "$ac_c_werror_flag" ||
23432          test ! -s conftest.err
23433        } && test -s conftest.$ac_objext; then
23434   ac_cv_c_const=yes
23435 else
23436   echo "$as_me: failed program was:" >&5
23437 sed 's/^/| /' conftest.$ac_ext >&5
23438
23439         ac_cv_c_const=no
23440 fi
23441
23442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23443 fi
23444 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
23445 echo "${ECHO_T}$ac_cv_c_const" >&6; }
23446 if test $ac_cv_c_const = no; then
23447   
23448 cat >>confdefs.h <<\_ACEOF
23449 @%:@define const 
23450 _ACEOF
23451
23452 fi
23453
23454 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
23455 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
23456 if test "${ac_cv_type_uid_t+set}" = set; then
23457   echo $ECHO_N "(cached) $ECHO_C" >&6
23458 else
23459   cat >conftest.$ac_ext <<_ACEOF
23460 /* confdefs.h.  */
23461 _ACEOF
23462 cat confdefs.h >>conftest.$ac_ext
23463 cat >>conftest.$ac_ext <<_ACEOF
23464 /* end confdefs.h.  */
23465 #include <sys/types.h>
23466
23467 _ACEOF
23468 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23469   $EGREP "uid_t" >/dev/null 2>&1; then
23470   ac_cv_type_uid_t=yes
23471 else
23472   ac_cv_type_uid_t=no
23473 fi
23474 rm -f conftest*
23475
23476 fi
23477 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
23478 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
23479 if test $ac_cv_type_uid_t = no; then
23480   
23481 cat >>confdefs.h <<\_ACEOF
23482 @%:@define uid_t int
23483 _ACEOF
23484
23485   
23486 cat >>confdefs.h <<\_ACEOF
23487 @%:@define gid_t int
23488 _ACEOF
23489
23490 fi
23491
23492 { echo "$as_me:$LINENO: checking for inline" >&5
23493 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
23494 if test "${ac_cv_c_inline+set}" = set; then
23495   echo $ECHO_N "(cached) $ECHO_C" >&6
23496 else
23497   ac_cv_c_inline=no
23498 for ac_kw in inline __inline__ __inline; do
23499   cat >conftest.$ac_ext <<_ACEOF
23500 /* confdefs.h.  */
23501 _ACEOF
23502 cat confdefs.h >>conftest.$ac_ext
23503 cat >>conftest.$ac_ext <<_ACEOF
23504 /* end confdefs.h.  */
23505 #ifndef __cplusplus
23506 typedef int foo_t;
23507 static $ac_kw foo_t static_foo () {return 0; }
23508 $ac_kw foo_t foo () {return 0; }
23509 #endif
23510
23511 _ACEOF
23512 rm -f conftest.$ac_objext
23513 if { (ac_try="$ac_compile"
23514 case "(($ac_try" in
23515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23516   *) ac_try_echo=$ac_try;;
23517 esac
23518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23519   (eval "$ac_compile") 2>conftest.er1
23520   ac_status=$?
23521   grep -v '^ *+' conftest.er1 >conftest.err
23522   rm -f conftest.er1
23523   cat conftest.err >&5
23524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23525   (exit $ac_status); } && {
23526          test -z "$ac_c_werror_flag" ||
23527          test ! -s conftest.err
23528        } && test -s conftest.$ac_objext; then
23529   ac_cv_c_inline=$ac_kw
23530 else
23531   echo "$as_me: failed program was:" >&5
23532 sed 's/^/| /' conftest.$ac_ext >&5
23533
23534         
23535 fi
23536
23537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23538   test "$ac_cv_c_inline" != no && break
23539 done
23540
23541 fi
23542 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
23543 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
23544
23545
23546 case $ac_cv_c_inline in
23547   inline | yes) ;;
23548   *)
23549     case $ac_cv_c_inline in
23550       no) ac_val=;;
23551       *) ac_val=$ac_cv_c_inline;;
23552     esac
23553     cat >>confdefs.h <<_ACEOF
23554 #ifndef __cplusplus
23555 #define inline $ac_val
23556 #endif
23557 _ACEOF
23558     ;;
23559 esac
23560
23561 { echo "$as_me:$LINENO: checking for off_t" >&5
23562 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
23563 if test "${ac_cv_type_off_t+set}" = set; then
23564   echo $ECHO_N "(cached) $ECHO_C" >&6
23565 else
23566   cat >conftest.$ac_ext <<_ACEOF
23567 /* confdefs.h.  */
23568 _ACEOF
23569 cat confdefs.h >>conftest.$ac_ext
23570 cat >>conftest.$ac_ext <<_ACEOF
23571 /* end confdefs.h.  */
23572 $ac_includes_default
23573 typedef off_t ac__type_new_;
23574 int
23575 main ()
23576 {
23577 if ((ac__type_new_ *) 0)
23578   return 0;
23579 if (sizeof (ac__type_new_))
23580   return 0;
23581   ;
23582   return 0;
23583 }
23584 _ACEOF
23585 rm -f conftest.$ac_objext
23586 if { (ac_try="$ac_compile"
23587 case "(($ac_try" in
23588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23589   *) ac_try_echo=$ac_try;;
23590 esac
23591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23592   (eval "$ac_compile") 2>conftest.er1
23593   ac_status=$?
23594   grep -v '^ *+' conftest.er1 >conftest.err
23595   rm -f conftest.er1
23596   cat conftest.err >&5
23597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23598   (exit $ac_status); } && {
23599          test -z "$ac_c_werror_flag" ||
23600          test ! -s conftest.err
23601        } && test -s conftest.$ac_objext; then
23602   ac_cv_type_off_t=yes
23603 else
23604   echo "$as_me: failed program was:" >&5
23605 sed 's/^/| /' conftest.$ac_ext >&5
23606
23607         ac_cv_type_off_t=no
23608 fi
23609
23610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23611 fi
23612 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
23613 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
23614 if test $ac_cv_type_off_t = yes; then
23615   :
23616 else
23617   
23618 cat >>confdefs.h <<_ACEOF
23619 @%:@define off_t long int
23620 _ACEOF
23621
23622 fi
23623
23624 { echo "$as_me:$LINENO: checking for pid_t" >&5
23625 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
23626 if test "${ac_cv_type_pid_t+set}" = set; then
23627   echo $ECHO_N "(cached) $ECHO_C" >&6
23628 else
23629   cat >conftest.$ac_ext <<_ACEOF
23630 /* confdefs.h.  */
23631 _ACEOF
23632 cat confdefs.h >>conftest.$ac_ext
23633 cat >>conftest.$ac_ext <<_ACEOF
23634 /* end confdefs.h.  */
23635 $ac_includes_default
23636 typedef pid_t ac__type_new_;
23637 int
23638 main ()
23639 {
23640 if ((ac__type_new_ *) 0)
23641   return 0;
23642 if (sizeof (ac__type_new_))
23643   return 0;
23644   ;
23645   return 0;
23646 }
23647 _ACEOF
23648 rm -f conftest.$ac_objext
23649 if { (ac_try="$ac_compile"
23650 case "(($ac_try" in
23651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23652   *) ac_try_echo=$ac_try;;
23653 esac
23654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23655   (eval "$ac_compile") 2>conftest.er1
23656   ac_status=$?
23657   grep -v '^ *+' conftest.er1 >conftest.err
23658   rm -f conftest.er1
23659   cat conftest.err >&5
23660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23661   (exit $ac_status); } && {
23662          test -z "$ac_c_werror_flag" ||
23663          test ! -s conftest.err
23664        } && test -s conftest.$ac_objext; then
23665   ac_cv_type_pid_t=yes
23666 else
23667   echo "$as_me: failed program was:" >&5
23668 sed 's/^/| /' conftest.$ac_ext >&5
23669
23670         ac_cv_type_pid_t=no
23671 fi
23672
23673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23674 fi
23675 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
23676 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
23677 if test $ac_cv_type_pid_t = yes; then
23678   :
23679 else
23680   
23681 cat >>confdefs.h <<_ACEOF
23682 @%:@define pid_t int
23683 _ACEOF
23684
23685 fi
23686
23687 { echo "$as_me:$LINENO: checking for size_t" >&5
23688 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
23689 if test "${ac_cv_type_size_t+set}" = set; then
23690   echo $ECHO_N "(cached) $ECHO_C" >&6
23691 else
23692   cat >conftest.$ac_ext <<_ACEOF
23693 /* confdefs.h.  */
23694 _ACEOF
23695 cat confdefs.h >>conftest.$ac_ext
23696 cat >>conftest.$ac_ext <<_ACEOF
23697 /* end confdefs.h.  */
23698 $ac_includes_default
23699 typedef size_t ac__type_new_;
23700 int
23701 main ()
23702 {
23703 if ((ac__type_new_ *) 0)
23704   return 0;
23705 if (sizeof (ac__type_new_))
23706   return 0;
23707   ;
23708   return 0;
23709 }
23710 _ACEOF
23711 rm -f conftest.$ac_objext
23712 if { (ac_try="$ac_compile"
23713 case "(($ac_try" in
23714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23715   *) ac_try_echo=$ac_try;;
23716 esac
23717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23718   (eval "$ac_compile") 2>conftest.er1
23719   ac_status=$?
23720   grep -v '^ *+' conftest.er1 >conftest.err
23721   rm -f conftest.er1
23722   cat conftest.err >&5
23723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23724   (exit $ac_status); } && {
23725          test -z "$ac_c_werror_flag" ||
23726          test ! -s conftest.err
23727        } && test -s conftest.$ac_objext; then
23728   ac_cv_type_size_t=yes
23729 else
23730   echo "$as_me: failed program was:" >&5
23731 sed 's/^/| /' conftest.$ac_ext >&5
23732
23733         ac_cv_type_size_t=no
23734 fi
23735
23736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23737 fi
23738 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
23739 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23740 if test $ac_cv_type_size_t = yes; then
23741   :
23742 else
23743   
23744 cat >>confdefs.h <<_ACEOF
23745 @%:@define size_t unsigned int
23746 _ACEOF
23747
23748 fi
23749
23750 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
23751 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
23752 if test "${ac_cv_header_time+set}" = set; then
23753   echo $ECHO_N "(cached) $ECHO_C" >&6
23754 else
23755   cat >conftest.$ac_ext <<_ACEOF
23756 /* confdefs.h.  */
23757 _ACEOF
23758 cat confdefs.h >>conftest.$ac_ext
23759 cat >>conftest.$ac_ext <<_ACEOF
23760 /* end confdefs.h.  */
23761 #include <sys/types.h>
23762 #include <sys/time.h>
23763 #include <time.h>
23764
23765 int
23766 main ()
23767 {
23768 if ((struct tm *) 0)
23769 return 0;
23770   ;
23771   return 0;
23772 }
23773 _ACEOF
23774 rm -f conftest.$ac_objext
23775 if { (ac_try="$ac_compile"
23776 case "(($ac_try" in
23777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23778   *) ac_try_echo=$ac_try;;
23779 esac
23780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23781   (eval "$ac_compile") 2>conftest.er1
23782   ac_status=$?
23783   grep -v '^ *+' conftest.er1 >conftest.err
23784   rm -f conftest.er1
23785   cat conftest.err >&5
23786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23787   (exit $ac_status); } && {
23788          test -z "$ac_c_werror_flag" ||
23789          test ! -s conftest.err
23790        } && test -s conftest.$ac_objext; then
23791   ac_cv_header_time=yes
23792 else
23793   echo "$as_me: failed program was:" >&5
23794 sed 's/^/| /' conftest.$ac_ext >&5
23795
23796         ac_cv_header_time=no
23797 fi
23798
23799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23800 fi
23801 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
23802 echo "${ECHO_T}$ac_cv_header_time" >&6; }
23803 if test $ac_cv_header_time = yes; then
23804   
23805 cat >>confdefs.h <<\_ACEOF
23806 @%:@define TIME_WITH_SYS_TIME 1
23807 _ACEOF
23808
23809 fi
23810
23811 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
23812 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
23813 if test "${ac_cv_struct_tm+set}" = set; then
23814   echo $ECHO_N "(cached) $ECHO_C" >&6
23815 else
23816   cat >conftest.$ac_ext <<_ACEOF
23817 /* confdefs.h.  */
23818 _ACEOF
23819 cat confdefs.h >>conftest.$ac_ext
23820 cat >>conftest.$ac_ext <<_ACEOF
23821 /* end confdefs.h.  */
23822 #include <sys/types.h>
23823 #include <time.h>
23824
23825 int
23826 main ()
23827 {
23828 struct tm tm;
23829                                      int *p = &tm.tm_sec;
23830                                      return !p;
23831   ;
23832   return 0;
23833 }
23834 _ACEOF
23835 rm -f conftest.$ac_objext
23836 if { (ac_try="$ac_compile"
23837 case "(($ac_try" in
23838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23839   *) ac_try_echo=$ac_try;;
23840 esac
23841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23842   (eval "$ac_compile") 2>conftest.er1
23843   ac_status=$?
23844   grep -v '^ *+' conftest.er1 >conftest.err
23845   rm -f conftest.er1
23846   cat conftest.err >&5
23847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23848   (exit $ac_status); } && {
23849          test -z "$ac_c_werror_flag" ||
23850          test ! -s conftest.err
23851        } && test -s conftest.$ac_objext; then
23852   ac_cv_struct_tm=time.h
23853 else
23854   echo "$as_me: failed program was:" >&5
23855 sed 's/^/| /' conftest.$ac_ext >&5
23856
23857         ac_cv_struct_tm=sys/time.h
23858 fi
23859
23860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23861 fi
23862 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
23863 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
23864 if test $ac_cv_struct_tm = sys/time.h; then
23865   
23866 cat >>confdefs.h <<\_ACEOF
23867 @%:@define TM_IN_SYS_TIME 1
23868 _ACEOF
23869
23870 fi
23871
23872
23873 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
23874 # for constant arguments.  Useless!
23875 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
23876 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
23877 if test "${ac_cv_working_alloca_h+set}" = set; then
23878   echo $ECHO_N "(cached) $ECHO_C" >&6
23879 else
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 @%:@include <alloca.h>
23887 int
23888 main ()
23889 {
23890 char *p = (char *) alloca (2 * sizeof (int));
23891                           if (p) return 0;
23892   ;
23893   return 0;
23894 }
23895 _ACEOF
23896 rm -f conftest.$ac_objext conftest$ac_exeext
23897 if { (ac_try="$ac_link"
23898 case "(($ac_try" in
23899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23900   *) ac_try_echo=$ac_try;;
23901 esac
23902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23903   (eval "$ac_link") 2>conftest.er1
23904   ac_status=$?
23905   grep -v '^ *+' conftest.er1 >conftest.err
23906   rm -f conftest.er1
23907   cat conftest.err >&5
23908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23909   (exit $ac_status); } && {
23910          test -z "$ac_c_werror_flag" ||
23911          test ! -s conftest.err
23912        } && test -s conftest$ac_exeext &&
23913        $as_test_x conftest$ac_exeext; then
23914   ac_cv_working_alloca_h=yes
23915 else
23916   echo "$as_me: failed program was:" >&5
23917 sed 's/^/| /' conftest.$ac_ext >&5
23918
23919         ac_cv_working_alloca_h=no
23920 fi
23921
23922 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23923       conftest$ac_exeext conftest.$ac_ext
23924 fi
23925 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
23926 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
23927 if test $ac_cv_working_alloca_h = yes; then
23928   
23929 cat >>confdefs.h <<\_ACEOF
23930 @%:@define HAVE_ALLOCA_H 1
23931 _ACEOF
23932
23933 fi
23934
23935 { echo "$as_me:$LINENO: checking for alloca" >&5
23936 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
23937 if test "${ac_cv_func_alloca_works+set}" = set; then
23938   echo $ECHO_N "(cached) $ECHO_C" >&6
23939 else
23940   cat >conftest.$ac_ext <<_ACEOF
23941 /* confdefs.h.  */
23942 _ACEOF
23943 cat confdefs.h >>conftest.$ac_ext
23944 cat >>conftest.$ac_ext <<_ACEOF
23945 /* end confdefs.h.  */
23946 #ifdef __GNUC__
23947 # define alloca __builtin_alloca
23948 #else
23949 # ifdef _MSC_VER
23950 #  include <malloc.h>
23951 #  define alloca _alloca
23952 # else
23953 #  ifdef HAVE_ALLOCA_H
23954 #   include <alloca.h>
23955 #  else
23956 #   ifdef _AIX
23957  #pragma alloca
23958 #   else
23959 #    ifndef alloca /* predefined by HP cc +Olibcalls */
23960 char *alloca ();
23961 #    endif
23962 #   endif
23963 #  endif
23964 # endif
23965 #endif
23966
23967 int
23968 main ()
23969 {
23970 char *p = (char *) alloca (1);
23971                                     if (p) return 0;
23972   ;
23973   return 0;
23974 }
23975 _ACEOF
23976 rm -f conftest.$ac_objext conftest$ac_exeext
23977 if { (ac_try="$ac_link"
23978 case "(($ac_try" in
23979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23980   *) ac_try_echo=$ac_try;;
23981 esac
23982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23983   (eval "$ac_link") 2>conftest.er1
23984   ac_status=$?
23985   grep -v '^ *+' conftest.er1 >conftest.err
23986   rm -f conftest.er1
23987   cat conftest.err >&5
23988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23989   (exit $ac_status); } && {
23990          test -z "$ac_c_werror_flag" ||
23991          test ! -s conftest.err
23992        } && test -s conftest$ac_exeext &&
23993        $as_test_x conftest$ac_exeext; then
23994   ac_cv_func_alloca_works=yes
23995 else
23996   echo "$as_me: failed program was:" >&5
23997 sed 's/^/| /' conftest.$ac_ext >&5
23998
23999         ac_cv_func_alloca_works=no
24000 fi
24001
24002 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24003       conftest$ac_exeext conftest.$ac_ext
24004 fi
24005 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
24006 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
24007
24008 if test $ac_cv_func_alloca_works = yes; then
24009   
24010 cat >>confdefs.h <<\_ACEOF
24011 @%:@define HAVE_ALLOCA 1
24012 _ACEOF
24013
24014 else
24015   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
24016 # that cause trouble.  Some versions do not even contain alloca or
24017 # contain a buggy version.  If you still want to use their alloca,
24018 # use ar to extract alloca.o from them instead of compiling alloca.c.
24019
24020 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
24021
24022 cat >>confdefs.h <<\_ACEOF
24023 @%:@define C_ALLOCA 1
24024 _ACEOF
24025
24026
24027 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
24028 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
24029 if test "${ac_cv_os_cray+set}" = set; then
24030   echo $ECHO_N "(cached) $ECHO_C" >&6
24031 else
24032   cat >conftest.$ac_ext <<_ACEOF
24033 /* confdefs.h.  */
24034 _ACEOF
24035 cat confdefs.h >>conftest.$ac_ext
24036 cat >>conftest.$ac_ext <<_ACEOF
24037 /* end confdefs.h.  */
24038 #if defined CRAY && ! defined CRAY2
24039 webecray
24040 #else
24041 wenotbecray
24042 #endif
24043
24044 _ACEOF
24045 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24046   $EGREP "webecray" >/dev/null 2>&1; then
24047   ac_cv_os_cray=yes
24048 else
24049   ac_cv_os_cray=no
24050 fi
24051 rm -f conftest*
24052
24053 fi
24054 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
24055 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
24056 if test $ac_cv_os_cray = yes; then
24057   for ac_func in _getb67 GETB67 getb67; do
24058     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24059 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24060 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24061 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24062   echo $ECHO_N "(cached) $ECHO_C" >&6
24063 else
24064   cat >conftest.$ac_ext <<_ACEOF
24065 /* confdefs.h.  */
24066 _ACEOF
24067 cat confdefs.h >>conftest.$ac_ext
24068 cat >>conftest.$ac_ext <<_ACEOF
24069 /* end confdefs.h.  */
24070 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24071    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24072 #define $ac_func innocuous_$ac_func
24073
24074 /* System header to define __stub macros and hopefully few prototypes,
24075     which can conflict with char $ac_func (); below.
24076     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24077     <limits.h> exists even on freestanding compilers.  */
24078
24079 #ifdef __STDC__
24080 # include <limits.h>
24081 #else
24082 # include <assert.h>
24083 #endif
24084
24085 #undef $ac_func
24086
24087 /* Override any GCC internal prototype to avoid an error.
24088    Use char because int might match the return type of a GCC
24089    builtin and then its argument prototype would still apply.  */
24090 #ifdef __cplusplus
24091 extern "C"
24092 #endif
24093 char $ac_func ();
24094 /* The GNU C library defines this for functions which it implements
24095     to always fail with ENOSYS.  Some functions are actually named
24096     something starting with __ and the normal name is an alias.  */
24097 #if defined __stub_$ac_func || defined __stub___$ac_func
24098 choke me
24099 #endif
24100
24101 int
24102 main ()
24103 {
24104 return $ac_func ();
24105   ;
24106   return 0;
24107 }
24108 _ACEOF
24109 rm -f conftest.$ac_objext conftest$ac_exeext
24110 if { (ac_try="$ac_link"
24111 case "(($ac_try" in
24112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24113   *) ac_try_echo=$ac_try;;
24114 esac
24115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24116   (eval "$ac_link") 2>conftest.er1
24117   ac_status=$?
24118   grep -v '^ *+' conftest.er1 >conftest.err
24119   rm -f conftest.er1
24120   cat conftest.err >&5
24121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24122   (exit $ac_status); } && {
24123          test -z "$ac_c_werror_flag" ||
24124          test ! -s conftest.err
24125        } && test -s conftest$ac_exeext &&
24126        $as_test_x conftest$ac_exeext; then
24127   eval "$as_ac_var=yes"
24128 else
24129   echo "$as_me: failed program was:" >&5
24130 sed 's/^/| /' conftest.$ac_ext >&5
24131
24132         eval "$as_ac_var=no"
24133 fi
24134
24135 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24136       conftest$ac_exeext conftest.$ac_ext
24137 fi
24138 ac_res=`eval echo '${'$as_ac_var'}'`
24139                { echo "$as_me:$LINENO: result: $ac_res" >&5
24140 echo "${ECHO_T}$ac_res" >&6; }
24141 if test `eval echo '${'$as_ac_var'}'` = yes; then
24142   
24143 cat >>confdefs.h <<_ACEOF
24144 @%:@define CRAY_STACKSEG_END $ac_func
24145 _ACEOF
24146
24147     break
24148 fi
24149
24150   done
24151 fi
24152
24153 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
24154 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
24155 if test "${ac_cv_c_stack_direction+set}" = set; then
24156   echo $ECHO_N "(cached) $ECHO_C" >&6
24157 else
24158   if test "$cross_compiling" = yes; then
24159   ac_cv_c_stack_direction=0
24160 else
24161   cat >conftest.$ac_ext <<_ACEOF
24162 /* confdefs.h.  */
24163 _ACEOF
24164 cat confdefs.h >>conftest.$ac_ext
24165 cat >>conftest.$ac_ext <<_ACEOF
24166 /* end confdefs.h.  */
24167 $ac_includes_default
24168 int
24169 find_stack_direction ()
24170 {
24171   static char *addr = 0;
24172   auto char dummy;
24173   if (addr == 0)
24174     {
24175       addr = &dummy;
24176       return find_stack_direction ();
24177     }
24178   else
24179     return (&dummy > addr) ? 1 : -1;
24180 }
24181
24182 int
24183 main ()
24184 {
24185   return find_stack_direction () < 0;
24186 }
24187 _ACEOF
24188 rm -f conftest$ac_exeext
24189 if { (ac_try="$ac_link"
24190 case "(($ac_try" in
24191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24192   *) ac_try_echo=$ac_try;;
24193 esac
24194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24195   (eval "$ac_link") 2>&5
24196   ac_status=$?
24197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24198   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24199   { (case "(($ac_try" in
24200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24201   *) ac_try_echo=$ac_try;;
24202 esac
24203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24204   (eval "$ac_try") 2>&5
24205   ac_status=$?
24206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24207   (exit $ac_status); }; }; then
24208   ac_cv_c_stack_direction=1
24209 else
24210   echo "$as_me: program exited with status $ac_status" >&5
24211 echo "$as_me: failed program was:" >&5
24212 sed 's/^/| /' conftest.$ac_ext >&5
24213
24214 ( exit $ac_status )
24215 ac_cv_c_stack_direction=-1
24216 fi
24217 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24218 fi
24219
24220
24221 fi
24222 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
24223 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
24224
24225 cat >>confdefs.h <<_ACEOF
24226 @%:@define STACK_DIRECTION $ac_cv_c_stack_direction
24227 _ACEOF
24228
24229
24230 fi
24231
24232
24233
24234
24235
24236
24237 ac_header_dirent=no
24238 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
24239   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
24240 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
24241 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
24242 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24243   echo $ECHO_N "(cached) $ECHO_C" >&6
24244 else
24245   cat >conftest.$ac_ext <<_ACEOF
24246 /* confdefs.h.  */
24247 _ACEOF
24248 cat confdefs.h >>conftest.$ac_ext
24249 cat >>conftest.$ac_ext <<_ACEOF
24250 /* end confdefs.h.  */
24251 #include <sys/types.h>
24252 #include <$ac_hdr>
24253
24254 int
24255 main ()
24256 {
24257 if ((DIR *) 0)
24258 return 0;
24259   ;
24260   return 0;
24261 }
24262 _ACEOF
24263 rm -f conftest.$ac_objext
24264 if { (ac_try="$ac_compile"
24265 case "(($ac_try" in
24266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24267   *) ac_try_echo=$ac_try;;
24268 esac
24269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24270   (eval "$ac_compile") 2>conftest.er1
24271   ac_status=$?
24272   grep -v '^ *+' conftest.er1 >conftest.err
24273   rm -f conftest.er1
24274   cat conftest.err >&5
24275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24276   (exit $ac_status); } && {
24277          test -z "$ac_c_werror_flag" ||
24278          test ! -s conftest.err
24279        } && test -s conftest.$ac_objext; then
24280   eval "$as_ac_Header=yes"
24281 else
24282   echo "$as_me: failed program was:" >&5
24283 sed 's/^/| /' conftest.$ac_ext >&5
24284
24285         eval "$as_ac_Header=no"
24286 fi
24287
24288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24289 fi
24290 ac_res=`eval echo '${'$as_ac_Header'}'`
24291                { echo "$as_me:$LINENO: result: $ac_res" >&5
24292 echo "${ECHO_T}$ac_res" >&6; }
24293 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24294   cat >>confdefs.h <<_ACEOF
24295 @%:@define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
24296 _ACEOF
24297
24298 ac_header_dirent=$ac_hdr; break
24299 fi
24300
24301 done
24302 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
24303 if test $ac_header_dirent = dirent.h; then
24304   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
24305 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
24306 if test "${ac_cv_search_opendir+set}" = set; then
24307   echo $ECHO_N "(cached) $ECHO_C" >&6
24308 else
24309   ac_func_search_save_LIBS=$LIBS
24310 cat >conftest.$ac_ext <<_ACEOF
24311 /* confdefs.h.  */
24312 _ACEOF
24313 cat confdefs.h >>conftest.$ac_ext
24314 cat >>conftest.$ac_ext <<_ACEOF
24315 /* end confdefs.h.  */
24316
24317 /* Override any GCC internal prototype to avoid an error.
24318    Use char because int might match the return type of a GCC
24319    builtin and then its argument prototype would still apply.  */
24320 #ifdef __cplusplus
24321 extern "C"
24322 #endif
24323 char opendir ();
24324 int
24325 main ()
24326 {
24327 return opendir ();
24328   ;
24329   return 0;
24330 }
24331 _ACEOF
24332 for ac_lib in '' dir; do
24333   if test -z "$ac_lib"; then
24334     ac_res="none required"
24335   else
24336     ac_res=-l$ac_lib
24337     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
24338   fi
24339   rm -f conftest.$ac_objext conftest$ac_exeext
24340 if { (ac_try="$ac_link"
24341 case "(($ac_try" in
24342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24343   *) ac_try_echo=$ac_try;;
24344 esac
24345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24346   (eval "$ac_link") 2>conftest.er1
24347   ac_status=$?
24348   grep -v '^ *+' conftest.er1 >conftest.err
24349   rm -f conftest.er1
24350   cat conftest.err >&5
24351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24352   (exit $ac_status); } && {
24353          test -z "$ac_c_werror_flag" ||
24354          test ! -s conftest.err
24355        } && test -s conftest$ac_exeext &&
24356        $as_test_x conftest$ac_exeext; then
24357   ac_cv_search_opendir=$ac_res
24358 else
24359   echo "$as_me: failed program was:" >&5
24360 sed 's/^/| /' conftest.$ac_ext >&5
24361
24362         
24363 fi
24364
24365 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24366       conftest$ac_exeext 
24367   if test "${ac_cv_search_opendir+set}" = set; then
24368   break
24369 fi
24370 done
24371 if test "${ac_cv_search_opendir+set}" = set; then
24372   :
24373 else
24374   ac_cv_search_opendir=no
24375 fi
24376 rm conftest.$ac_ext
24377 LIBS=$ac_func_search_save_LIBS
24378 fi
24379 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
24380 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
24381 ac_res=$ac_cv_search_opendir
24382 if test "$ac_res" != no; then
24383   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24384   
24385 fi
24386
24387 else
24388   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
24389 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
24390 if test "${ac_cv_search_opendir+set}" = set; then
24391   echo $ECHO_N "(cached) $ECHO_C" >&6
24392 else
24393   ac_func_search_save_LIBS=$LIBS
24394 cat >conftest.$ac_ext <<_ACEOF
24395 /* confdefs.h.  */
24396 _ACEOF
24397 cat confdefs.h >>conftest.$ac_ext
24398 cat >>conftest.$ac_ext <<_ACEOF
24399 /* end confdefs.h.  */
24400
24401 /* Override any GCC internal prototype to avoid an error.
24402    Use char because int might match the return type of a GCC
24403    builtin and then its argument prototype would still apply.  */
24404 #ifdef __cplusplus
24405 extern "C"
24406 #endif
24407 char opendir ();
24408 int
24409 main ()
24410 {
24411 return opendir ();
24412   ;
24413   return 0;
24414 }
24415 _ACEOF
24416 for ac_lib in '' x; do
24417   if test -z "$ac_lib"; then
24418     ac_res="none required"
24419   else
24420     ac_res=-l$ac_lib
24421     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
24422   fi
24423   rm -f conftest.$ac_objext conftest$ac_exeext
24424 if { (ac_try="$ac_link"
24425 case "(($ac_try" in
24426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24427   *) ac_try_echo=$ac_try;;
24428 esac
24429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24430   (eval "$ac_link") 2>conftest.er1
24431   ac_status=$?
24432   grep -v '^ *+' conftest.er1 >conftest.err
24433   rm -f conftest.er1
24434   cat conftest.err >&5
24435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24436   (exit $ac_status); } && {
24437          test -z "$ac_c_werror_flag" ||
24438          test ! -s conftest.err
24439        } && test -s conftest$ac_exeext &&
24440        $as_test_x conftest$ac_exeext; then
24441   ac_cv_search_opendir=$ac_res
24442 else
24443   echo "$as_me: failed program was:" >&5
24444 sed 's/^/| /' conftest.$ac_ext >&5
24445
24446         
24447 fi
24448
24449 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24450       conftest$ac_exeext 
24451   if test "${ac_cv_search_opendir+set}" = set; then
24452   break
24453 fi
24454 done
24455 if test "${ac_cv_search_opendir+set}" = set; then
24456   :
24457 else
24458   ac_cv_search_opendir=no
24459 fi
24460 rm conftest.$ac_ext
24461 LIBS=$ac_func_search_save_LIBS
24462 fi
24463 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
24464 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
24465 ac_res=$ac_cv_search_opendir
24466 if test "$ac_res" != no; then
24467   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24468   
24469 fi
24470
24471 fi
24472
24473 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
24474 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
24475 if test "${ac_cv_func_closedir_void+set}" = set; then
24476   echo $ECHO_N "(cached) $ECHO_C" >&6
24477 else
24478   if test "$cross_compiling" = yes; then
24479   ac_cv_func_closedir_void=yes
24480 else
24481   cat >conftest.$ac_ext <<_ACEOF
24482 /* confdefs.h.  */
24483 _ACEOF
24484 cat confdefs.h >>conftest.$ac_ext
24485 cat >>conftest.$ac_ext <<_ACEOF
24486 /* end confdefs.h.  */
24487 $ac_includes_default
24488 #include <$ac_header_dirent>
24489 #ifndef __cplusplus
24490 int closedir ();
24491 #endif
24492
24493 int
24494 main ()
24495 {
24496 return closedir (opendir (".")) != 0;
24497   ;
24498   return 0;
24499 }
24500 _ACEOF
24501 rm -f conftest$ac_exeext
24502 if { (ac_try="$ac_link"
24503 case "(($ac_try" in
24504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24505   *) ac_try_echo=$ac_try;;
24506 esac
24507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24508   (eval "$ac_link") 2>&5
24509   ac_status=$?
24510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24511   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24512   { (case "(($ac_try" in
24513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24514   *) ac_try_echo=$ac_try;;
24515 esac
24516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24517   (eval "$ac_try") 2>&5
24518   ac_status=$?
24519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24520   (exit $ac_status); }; }; then
24521   ac_cv_func_closedir_void=no
24522 else
24523   echo "$as_me: program exited with status $ac_status" >&5
24524 echo "$as_me: failed program was:" >&5
24525 sed 's/^/| /' conftest.$ac_ext >&5
24526
24527 ( exit $ac_status )
24528 ac_cv_func_closedir_void=yes
24529 fi
24530 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24531 fi
24532
24533
24534 fi
24535 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
24536 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
24537 if test $ac_cv_func_closedir_void = yes; then
24538   
24539 cat >>confdefs.h <<\_ACEOF
24540 @%:@define CLOSEDIR_VOID 1
24541 _ACEOF
24542
24543 fi
24544
24545 { echo "$as_me:$LINENO: checking for error_at_line" >&5
24546 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
24547 if test "${ac_cv_lib_error_at_line+set}" = set; then
24548   echo $ECHO_N "(cached) $ECHO_C" >&6
24549 else
24550   cat >conftest.$ac_ext <<_ACEOF
24551 /* confdefs.h.  */
24552 _ACEOF
24553 cat confdefs.h >>conftest.$ac_ext
24554 cat >>conftest.$ac_ext <<_ACEOF
24555 /* end confdefs.h.  */
24556 #include <error.h>
24557 int
24558 main ()
24559 {
24560 error_at_line (0, 0, "", 0, "an error occurred");
24561   ;
24562   return 0;
24563 }
24564 _ACEOF
24565 rm -f conftest.$ac_objext conftest$ac_exeext
24566 if { (ac_try="$ac_link"
24567 case "(($ac_try" in
24568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24569   *) ac_try_echo=$ac_try;;
24570 esac
24571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24572   (eval "$ac_link") 2>conftest.er1
24573   ac_status=$?
24574   grep -v '^ *+' conftest.er1 >conftest.err
24575   rm -f conftest.er1
24576   cat conftest.err >&5
24577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24578   (exit $ac_status); } && {
24579          test -z "$ac_c_werror_flag" ||
24580          test ! -s conftest.err
24581        } && test -s conftest$ac_exeext &&
24582        $as_test_x conftest$ac_exeext; then
24583   ac_cv_lib_error_at_line=yes
24584 else
24585   echo "$as_me: failed program was:" >&5
24586 sed 's/^/| /' conftest.$ac_ext >&5
24587
24588         ac_cv_lib_error_at_line=no
24589 fi
24590
24591 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24592       conftest$ac_exeext conftest.$ac_ext
24593 fi
24594 { echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
24595 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
24596 if test $ac_cv_lib_error_at_line = no; then
24597   case " $LIB@&t@OBJS " in
24598   *" error.$ac_objext "* ) ;;
24599   *) LIB@&t@OBJS="$LIB@&t@OBJS error.$ac_objext"
24600  ;;
24601 esac
24602
24603 fi
24604
24605
24606 for ac_header in vfork.h
24607 do
24608 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24609 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24610   { echo "$as_me:$LINENO: checking for $ac_header" >&5
24611 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24612 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24613   echo $ECHO_N "(cached) $ECHO_C" >&6
24614 fi
24615 ac_res=`eval echo '${'$as_ac_Header'}'`
24616                { echo "$as_me:$LINENO: result: $ac_res" >&5
24617 echo "${ECHO_T}$ac_res" >&6; }
24618 else
24619   # Is the header compilable?
24620 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24621 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24622 cat >conftest.$ac_ext <<_ACEOF
24623 /* confdefs.h.  */
24624 _ACEOF
24625 cat confdefs.h >>conftest.$ac_ext
24626 cat >>conftest.$ac_ext <<_ACEOF
24627 /* end confdefs.h.  */
24628 $ac_includes_default
24629 @%:@include <$ac_header>
24630 _ACEOF
24631 rm -f conftest.$ac_objext
24632 if { (ac_try="$ac_compile"
24633 case "(($ac_try" in
24634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24635   *) ac_try_echo=$ac_try;;
24636 esac
24637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24638   (eval "$ac_compile") 2>conftest.er1
24639   ac_status=$?
24640   grep -v '^ *+' conftest.er1 >conftest.err
24641   rm -f conftest.er1
24642   cat conftest.err >&5
24643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24644   (exit $ac_status); } && {
24645          test -z "$ac_c_werror_flag" ||
24646          test ! -s conftest.err
24647        } && test -s conftest.$ac_objext; then
24648   ac_header_compiler=yes
24649 else
24650   echo "$as_me: failed program was:" >&5
24651 sed 's/^/| /' conftest.$ac_ext >&5
24652
24653         ac_header_compiler=no
24654 fi
24655
24656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24657 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24658 echo "${ECHO_T}$ac_header_compiler" >&6; }
24659
24660 # Is the header present?
24661 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24662 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24663 cat >conftest.$ac_ext <<_ACEOF
24664 /* confdefs.h.  */
24665 _ACEOF
24666 cat confdefs.h >>conftest.$ac_ext
24667 cat >>conftest.$ac_ext <<_ACEOF
24668 /* end confdefs.h.  */
24669 @%:@include <$ac_header>
24670 _ACEOF
24671 if { (ac_try="$ac_cpp conftest.$ac_ext"
24672 case "(($ac_try" in
24673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24674   *) ac_try_echo=$ac_try;;
24675 esac
24676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24677   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24678   ac_status=$?
24679   grep -v '^ *+' conftest.er1 >conftest.err
24680   rm -f conftest.er1
24681   cat conftest.err >&5
24682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24683   (exit $ac_status); } >/dev/null && {
24684          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24685          test ! -s conftest.err
24686        }; then
24687   ac_header_preproc=yes
24688 else
24689   echo "$as_me: failed program was:" >&5
24690 sed 's/^/| /' conftest.$ac_ext >&5
24691
24692   ac_header_preproc=no
24693 fi
24694
24695 rm -f conftest.err conftest.$ac_ext
24696 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24697 echo "${ECHO_T}$ac_header_preproc" >&6; }
24698
24699 # So?  What about this header?
24700 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24701   yes:no: )
24702     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24703 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24704     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24705 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24706     ac_header_preproc=yes
24707     ;;
24708   no:yes:* )
24709     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24710 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24711     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24712 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24713     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24714 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24715     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24716 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24717     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24718 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24719     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24720 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24721     ( cat <<\_ASBOX
24722 @%:@@%:@ ------------------------------- @%:@@%:@
24723 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
24724 @%:@@%:@ ------------------------------- @%:@@%:@
24725 _ASBOX
24726      ) | sed "s/^/$as_me: WARNING:     /" >&2
24727     ;;
24728 esac
24729 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24730 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24731 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24732   echo $ECHO_N "(cached) $ECHO_C" >&6
24733 else
24734   eval "$as_ac_Header=\$ac_header_preproc"
24735 fi
24736 ac_res=`eval echo '${'$as_ac_Header'}'`
24737                { echo "$as_me:$LINENO: result: $ac_res" >&5
24738 echo "${ECHO_T}$ac_res" >&6; }
24739
24740 fi
24741 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24742   cat >>confdefs.h <<_ACEOF
24743 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24744 _ACEOF
24745  
24746 fi
24747
24748 done
24749
24750
24751
24752 for ac_func in fork vfork
24753 do
24754 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24755 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24756 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24757 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24758   echo $ECHO_N "(cached) $ECHO_C" >&6
24759 else
24760   cat >conftest.$ac_ext <<_ACEOF
24761 /* confdefs.h.  */
24762 _ACEOF
24763 cat confdefs.h >>conftest.$ac_ext
24764 cat >>conftest.$ac_ext <<_ACEOF
24765 /* end confdefs.h.  */
24766 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24767    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24768 #define $ac_func innocuous_$ac_func
24769
24770 /* System header to define __stub macros and hopefully few prototypes,
24771     which can conflict with char $ac_func (); below.
24772     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24773     <limits.h> exists even on freestanding compilers.  */
24774
24775 #ifdef __STDC__
24776 # include <limits.h>
24777 #else
24778 # include <assert.h>
24779 #endif
24780
24781 #undef $ac_func
24782
24783 /* Override any GCC internal prototype to avoid an error.
24784    Use char because int might match the return type of a GCC
24785    builtin and then its argument prototype would still apply.  */
24786 #ifdef __cplusplus
24787 extern "C"
24788 #endif
24789 char $ac_func ();
24790 /* The GNU C library defines this for functions which it implements
24791     to always fail with ENOSYS.  Some functions are actually named
24792     something starting with __ and the normal name is an alias.  */
24793 #if defined __stub_$ac_func || defined __stub___$ac_func
24794 choke me
24795 #endif
24796
24797 int
24798 main ()
24799 {
24800 return $ac_func ();
24801   ;
24802   return 0;
24803 }
24804 _ACEOF
24805 rm -f conftest.$ac_objext conftest$ac_exeext
24806 if { (ac_try="$ac_link"
24807 case "(($ac_try" in
24808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24809   *) ac_try_echo=$ac_try;;
24810 esac
24811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24812   (eval "$ac_link") 2>conftest.er1
24813   ac_status=$?
24814   grep -v '^ *+' conftest.er1 >conftest.err
24815   rm -f conftest.er1
24816   cat conftest.err >&5
24817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24818   (exit $ac_status); } && {
24819          test -z "$ac_c_werror_flag" ||
24820          test ! -s conftest.err
24821        } && test -s conftest$ac_exeext &&
24822        $as_test_x conftest$ac_exeext; then
24823   eval "$as_ac_var=yes"
24824 else
24825   echo "$as_me: failed program was:" >&5
24826 sed 's/^/| /' conftest.$ac_ext >&5
24827
24828         eval "$as_ac_var=no"
24829 fi
24830
24831 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24832       conftest$ac_exeext conftest.$ac_ext
24833 fi
24834 ac_res=`eval echo '${'$as_ac_var'}'`
24835                { echo "$as_me:$LINENO: result: $ac_res" >&5
24836 echo "${ECHO_T}$ac_res" >&6; }
24837 if test `eval echo '${'$as_ac_var'}'` = yes; then
24838   cat >>confdefs.h <<_ACEOF
24839 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24840 _ACEOF
24841  
24842 fi
24843 done
24844
24845 if test "x$ac_cv_func_fork" = xyes; then
24846   { echo "$as_me:$LINENO: checking for working fork" >&5
24847 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
24848 if test "${ac_cv_func_fork_works+set}" = set; then
24849   echo $ECHO_N "(cached) $ECHO_C" >&6
24850 else
24851   if test "$cross_compiling" = yes; then
24852   ac_cv_func_fork_works=cross
24853 else
24854   cat >conftest.$ac_ext <<_ACEOF
24855 /* confdefs.h.  */
24856 _ACEOF
24857 cat confdefs.h >>conftest.$ac_ext
24858 cat >>conftest.$ac_ext <<_ACEOF
24859 /* end confdefs.h.  */
24860 $ac_includes_default
24861 int
24862 main ()
24863 {
24864
24865           /* By Ruediger Kuhlmann. */
24866           return fork () < 0;
24867         
24868   ;
24869   return 0;
24870 }
24871 _ACEOF
24872 rm -f conftest$ac_exeext
24873 if { (ac_try="$ac_link"
24874 case "(($ac_try" in
24875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24876   *) ac_try_echo=$ac_try;;
24877 esac
24878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24879   (eval "$ac_link") 2>&5
24880   ac_status=$?
24881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24882   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24883   { (case "(($ac_try" in
24884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24885   *) ac_try_echo=$ac_try;;
24886 esac
24887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24888   (eval "$ac_try") 2>&5
24889   ac_status=$?
24890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24891   (exit $ac_status); }; }; then
24892   ac_cv_func_fork_works=yes
24893 else
24894   echo "$as_me: program exited with status $ac_status" >&5
24895 echo "$as_me: failed program was:" >&5
24896 sed 's/^/| /' conftest.$ac_ext >&5
24897
24898 ( exit $ac_status )
24899 ac_cv_func_fork_works=no
24900 fi
24901 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24902 fi
24903
24904
24905 fi
24906 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
24907 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
24908
24909 else
24910   ac_cv_func_fork_works=$ac_cv_func_fork
24911 fi
24912 if test "x$ac_cv_func_fork_works" = xcross; then
24913   case $host in
24914     *-*-amigaos* | *-*-msdosdjgpp*)
24915       # Override, as these systems have only a dummy fork() stub
24916       ac_cv_func_fork_works=no
24917       ;;
24918     *)
24919       ac_cv_func_fork_works=yes
24920       ;;
24921   esac
24922   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
24923 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
24924 fi
24925 ac_cv_func_vfork_works=$ac_cv_func_vfork
24926 if test "x$ac_cv_func_vfork" = xyes; then
24927   { echo "$as_me:$LINENO: checking for working vfork" >&5
24928 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
24929 if test "${ac_cv_func_vfork_works+set}" = set; then
24930   echo $ECHO_N "(cached) $ECHO_C" >&6
24931 else
24932   if test "$cross_compiling" = yes; then
24933   ac_cv_func_vfork_works=cross
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 /* Thanks to Paul Eggert for this test.  */
24942 $ac_includes_default
24943 #include <sys/wait.h>
24944 #ifdef HAVE_VFORK_H
24945 # include <vfork.h>
24946 #endif
24947 /* On some sparc systems, changes by the child to local and incoming
24948    argument registers are propagated back to the parent.  The compiler
24949    is told about this with #include <vfork.h>, but some compilers
24950    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
24951    static variable whose address is put into a register that is
24952    clobbered by the vfork.  */
24953 static void
24954 #ifdef __cplusplus
24955 sparc_address_test (int arg)
24956 # else
24957 sparc_address_test (arg) int arg;
24958 #endif
24959 {
24960   static pid_t child;
24961   if (!child) {
24962     child = vfork ();
24963     if (child < 0) {
24964       perror ("vfork");
24965       _exit(2);
24966     }
24967     if (!child) {
24968       arg = getpid();
24969       write(-1, "", 0);
24970       _exit (arg);
24971     }
24972   }
24973 }
24974
24975 int
24976 main ()
24977 {
24978   pid_t parent = getpid ();
24979   pid_t child;
24980
24981   sparc_address_test (0);
24982
24983   child = vfork ();
24984
24985   if (child == 0) {
24986     /* Here is another test for sparc vfork register problems.  This
24987        test uses lots of local variables, at least as many local
24988        variables as main has allocated so far including compiler
24989        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
24990        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
24991        reuse the register of parent for one of the local variables,
24992        since it will think that parent can't possibly be used any more
24993        in this routine.  Assigning to the local variable will thus
24994        munge parent in the parent process.  */
24995     pid_t
24996       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24997       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24998     /* Convince the compiler that p..p7 are live; otherwise, it might
24999        use the same hardware register for all 8 local variables.  */
25000     if (p != p1 || p != p2 || p != p3 || p != p4
25001         || p != p5 || p != p6 || p != p7)
25002       _exit(1);
25003
25004     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
25005        from child file descriptors.  If the child closes a descriptor
25006        before it execs or exits, this munges the parent's descriptor
25007        as well.  Test for this by closing stdout in the child.  */
25008     _exit(close(fileno(stdout)) != 0);
25009   } else {
25010     int status;
25011     struct stat st;
25012
25013     while (wait(&status) != child)
25014       ;
25015     return (
25016          /* Was there some problem with vforking?  */
25017          child < 0
25018
25019          /* Did the child fail?  (This shouldn't happen.)  */
25020          || status
25021
25022          /* Did the vfork/compiler bug occur?  */
25023          || parent != getpid()
25024
25025          /* Did the file descriptor bug occur?  */
25026          || fstat(fileno(stdout), &st) != 0
25027          );
25028   }
25029 }
25030 _ACEOF
25031 rm -f conftest$ac_exeext
25032 if { (ac_try="$ac_link"
25033 case "(($ac_try" in
25034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25035   *) ac_try_echo=$ac_try;;
25036 esac
25037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25038   (eval "$ac_link") 2>&5
25039   ac_status=$?
25040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25041   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25042   { (case "(($ac_try" in
25043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25044   *) ac_try_echo=$ac_try;;
25045 esac
25046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25047   (eval "$ac_try") 2>&5
25048   ac_status=$?
25049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25050   (exit $ac_status); }; }; then
25051   ac_cv_func_vfork_works=yes
25052 else
25053   echo "$as_me: program exited with status $ac_status" >&5
25054 echo "$as_me: failed program was:" >&5
25055 sed 's/^/| /' conftest.$ac_ext >&5
25056
25057 ( exit $ac_status )
25058 ac_cv_func_vfork_works=no
25059 fi
25060 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25061 fi
25062
25063
25064 fi
25065 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
25066 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
25067
25068 fi;
25069 if test "x$ac_cv_func_fork_works" = xcross; then
25070   ac_cv_func_vfork_works=$ac_cv_func_vfork
25071   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
25072 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
25073 fi
25074
25075 if test "x$ac_cv_func_vfork_works" = xyes; then
25076   
25077 cat >>confdefs.h <<\_ACEOF
25078 @%:@define HAVE_WORKING_VFORK 1
25079 _ACEOF
25080
25081 else
25082   
25083 cat >>confdefs.h <<\_ACEOF
25084 @%:@define vfork fork
25085 _ACEOF
25086
25087 fi
25088 if test "x$ac_cv_func_fork_works" = xyes; then
25089   
25090 cat >>confdefs.h <<\_ACEOF
25091 @%:@define HAVE_WORKING_FORK 1
25092 _ACEOF
25093
25094 fi
25095
25096 { echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
25097 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6; }
25098 if test "${ac_cv_type_getgroups+set}" = set; then
25099   echo $ECHO_N "(cached) $ECHO_C" >&6
25100 else
25101   if test "$cross_compiling" = yes; then
25102   ac_cv_type_getgroups=cross
25103 else
25104   cat >conftest.$ac_ext <<_ACEOF
25105 /* confdefs.h.  */
25106 _ACEOF
25107 cat confdefs.h >>conftest.$ac_ext
25108 cat >>conftest.$ac_ext <<_ACEOF
25109 /* end confdefs.h.  */
25110 /* Thanks to Mike Rendell for this test.  */
25111 $ac_includes_default
25112 #define NGID 256
25113 #undef MAX
25114 #define MAX(x, y) ((x) > (y) ? (x) : (y))
25115
25116 int
25117 main ()
25118 {
25119   gid_t gidset[NGID];
25120   int i, n;
25121   union { gid_t gval; long int lval; }  val;
25122
25123   val.lval = -1;
25124   for (i = 0; i < NGID; i++)
25125     gidset[i] = val.gval;
25126   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
25127                  gidset);
25128   /* Exit non-zero if getgroups seems to require an array of ints.  This
25129      happens when gid_t is short int but getgroups modifies an array
25130      of ints.  */
25131   return n > 0 && gidset[n] != val.gval;
25132 }
25133 _ACEOF
25134 rm -f conftest$ac_exeext
25135 if { (ac_try="$ac_link"
25136 case "(($ac_try" in
25137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25138   *) ac_try_echo=$ac_try;;
25139 esac
25140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25141   (eval "$ac_link") 2>&5
25142   ac_status=$?
25143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25144   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25145   { (case "(($ac_try" in
25146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25147   *) ac_try_echo=$ac_try;;
25148 esac
25149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25150   (eval "$ac_try") 2>&5
25151   ac_status=$?
25152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25153   (exit $ac_status); }; }; then
25154   ac_cv_type_getgroups=gid_t
25155 else
25156   echo "$as_me: program exited with status $ac_status" >&5
25157 echo "$as_me: failed program was:" >&5
25158 sed 's/^/| /' conftest.$ac_ext >&5
25159
25160 ( exit $ac_status )
25161 ac_cv_type_getgroups=int
25162 fi
25163 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25164 fi
25165
25166
25167 if test $ac_cv_type_getgroups = cross; then
25168         cat >conftest.$ac_ext <<_ACEOF
25169 /* confdefs.h.  */
25170 _ACEOF
25171 cat confdefs.h >>conftest.$ac_ext
25172 cat >>conftest.$ac_ext <<_ACEOF
25173 /* end confdefs.h.  */
25174 #include <unistd.h>
25175
25176 _ACEOF
25177 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25178   $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
25179   ac_cv_type_getgroups=gid_t
25180 else
25181   ac_cv_type_getgroups=int
25182 fi
25183 rm -f conftest*
25184
25185 fi
25186 fi
25187 { echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
25188 echo "${ECHO_T}$ac_cv_type_getgroups" >&6; }
25189
25190 cat >>confdefs.h <<_ACEOF
25191 @%:@define GETGROUPS_T $ac_cv_type_getgroups
25192 _ACEOF
25193
25194
25195 { echo "$as_me:$LINENO: checking for getgroups" >&5
25196 echo $ECHO_N "checking for getgroups... $ECHO_C" >&6; }
25197 if test "${ac_cv_func_getgroups+set}" = set; then
25198   echo $ECHO_N "(cached) $ECHO_C" >&6
25199 else
25200   cat >conftest.$ac_ext <<_ACEOF
25201 /* confdefs.h.  */
25202 _ACEOF
25203 cat confdefs.h >>conftest.$ac_ext
25204 cat >>conftest.$ac_ext <<_ACEOF
25205 /* end confdefs.h.  */
25206 /* Define getgroups to an innocuous variant, in case <limits.h> declares getgroups.
25207    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25208 #define getgroups innocuous_getgroups
25209
25210 /* System header to define __stub macros and hopefully few prototypes,
25211     which can conflict with char getgroups (); below.
25212     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25213     <limits.h> exists even on freestanding compilers.  */
25214
25215 #ifdef __STDC__
25216 # include <limits.h>
25217 #else
25218 # include <assert.h>
25219 #endif
25220
25221 #undef getgroups
25222
25223 /* Override any GCC internal prototype to avoid an error.
25224    Use char because int might match the return type of a GCC
25225    builtin and then its argument prototype would still apply.  */
25226 #ifdef __cplusplus
25227 extern "C"
25228 #endif
25229 char getgroups ();
25230 /* The GNU C library defines this for functions which it implements
25231     to always fail with ENOSYS.  Some functions are actually named
25232     something starting with __ and the normal name is an alias.  */
25233 #if defined __stub_getgroups || defined __stub___getgroups
25234 choke me
25235 #endif
25236
25237 int
25238 main ()
25239 {
25240 return getgroups ();
25241   ;
25242   return 0;
25243 }
25244 _ACEOF
25245 rm -f conftest.$ac_objext conftest$ac_exeext
25246 if { (ac_try="$ac_link"
25247 case "(($ac_try" in
25248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25249   *) ac_try_echo=$ac_try;;
25250 esac
25251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25252   (eval "$ac_link") 2>conftest.er1
25253   ac_status=$?
25254   grep -v '^ *+' conftest.er1 >conftest.err
25255   rm -f conftest.er1
25256   cat conftest.err >&5
25257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25258   (exit $ac_status); } && {
25259          test -z "$ac_c_werror_flag" ||
25260          test ! -s conftest.err
25261        } && test -s conftest$ac_exeext &&
25262        $as_test_x conftest$ac_exeext; then
25263   ac_cv_func_getgroups=yes
25264 else
25265   echo "$as_me: failed program was:" >&5
25266 sed 's/^/| /' conftest.$ac_ext >&5
25267
25268         ac_cv_func_getgroups=no
25269 fi
25270
25271 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25272       conftest$ac_exeext conftest.$ac_ext
25273 fi
25274 { echo "$as_me:$LINENO: result: $ac_cv_func_getgroups" >&5
25275 echo "${ECHO_T}$ac_cv_func_getgroups" >&6; }
25276
25277
25278 # If we don't yet have getgroups, see if it's in -lbsd.
25279 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
25280 ac_save_LIBS=$LIBS
25281 if test $ac_cv_func_getgroups = no; then
25282   { echo "$as_me:$LINENO: checking for getgroups in -lbsd" >&5
25283 echo $ECHO_N "checking for getgroups in -lbsd... $ECHO_C" >&6; }
25284 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then
25285   echo $ECHO_N "(cached) $ECHO_C" >&6
25286 else
25287   ac_check_lib_save_LIBS=$LIBS
25288 LIBS="-lbsd  $LIBS"
25289 cat >conftest.$ac_ext <<_ACEOF
25290 /* confdefs.h.  */
25291 _ACEOF
25292 cat confdefs.h >>conftest.$ac_ext
25293 cat >>conftest.$ac_ext <<_ACEOF
25294 /* end confdefs.h.  */
25295
25296 /* Override any GCC internal prototype to avoid an error.
25297    Use char because int might match the return type of a GCC
25298    builtin and then its argument prototype would still apply.  */
25299 #ifdef __cplusplus
25300 extern "C"
25301 #endif
25302 char getgroups ();
25303 int
25304 main ()
25305 {
25306 return getgroups ();
25307   ;
25308   return 0;
25309 }
25310 _ACEOF
25311 rm -f conftest.$ac_objext conftest$ac_exeext
25312 if { (ac_try="$ac_link"
25313 case "(($ac_try" in
25314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25315   *) ac_try_echo=$ac_try;;
25316 esac
25317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25318   (eval "$ac_link") 2>conftest.er1
25319   ac_status=$?
25320   grep -v '^ *+' conftest.er1 >conftest.err
25321   rm -f conftest.er1
25322   cat conftest.err >&5
25323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25324   (exit $ac_status); } && {
25325          test -z "$ac_c_werror_flag" ||
25326          test ! -s conftest.err
25327        } && test -s conftest$ac_exeext &&
25328        $as_test_x conftest$ac_exeext; then
25329   ac_cv_lib_bsd_getgroups=yes
25330 else
25331   echo "$as_me: failed program was:" >&5
25332 sed 's/^/| /' conftest.$ac_ext >&5
25333
25334         ac_cv_lib_bsd_getgroups=no
25335 fi
25336
25337 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25338       conftest$ac_exeext conftest.$ac_ext
25339 LIBS=$ac_check_lib_save_LIBS
25340 fi
25341 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_getgroups" >&5
25342 echo "${ECHO_T}$ac_cv_lib_bsd_getgroups" >&6; }
25343 if test $ac_cv_lib_bsd_getgroups = yes; then
25344   GETGROUPS_LIB=-lbsd
25345 fi
25346
25347 fi
25348
25349 # Run the program to test the functionality of the system-supplied
25350 # getgroups function only if there is such a function.
25351 if test $ac_cv_func_getgroups = yes; then
25352   { echo "$as_me:$LINENO: checking for working getgroups" >&5
25353 echo $ECHO_N "checking for working getgroups... $ECHO_C" >&6; }
25354 if test "${ac_cv_func_getgroups_works+set}" = set; then
25355   echo $ECHO_N "(cached) $ECHO_C" >&6
25356 else
25357   if test "$cross_compiling" = yes; then
25358   ac_cv_func_getgroups_works=no
25359 else
25360   cat >conftest.$ac_ext <<_ACEOF
25361 /* confdefs.h.  */
25362 _ACEOF
25363 cat confdefs.h >>conftest.$ac_ext
25364 cat >>conftest.$ac_ext <<_ACEOF
25365 /* end confdefs.h.  */
25366 $ac_includes_default
25367 int
25368 main ()
25369 {
25370 /* On Ultrix 4.3, getgroups (0, 0) always fails.  */
25371        return getgroups (0, 0) == -1;
25372   ;
25373   return 0;
25374 }
25375 _ACEOF
25376 rm -f conftest$ac_exeext
25377 if { (ac_try="$ac_link"
25378 case "(($ac_try" in
25379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25380   *) ac_try_echo=$ac_try;;
25381 esac
25382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25383   (eval "$ac_link") 2>&5
25384   ac_status=$?
25385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25386   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25387   { (case "(($ac_try" in
25388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25389   *) ac_try_echo=$ac_try;;
25390 esac
25391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25392   (eval "$ac_try") 2>&5
25393   ac_status=$?
25394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25395   (exit $ac_status); }; }; then
25396   ac_cv_func_getgroups_works=yes
25397 else
25398   echo "$as_me: program exited with status $ac_status" >&5
25399 echo "$as_me: failed program was:" >&5
25400 sed 's/^/| /' conftest.$ac_ext >&5
25401
25402 ( exit $ac_status )
25403 ac_cv_func_getgroups_works=no
25404 fi
25405 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25406 fi
25407
25408
25409    
25410 fi
25411 { echo "$as_me:$LINENO: result: $ac_cv_func_getgroups_works" >&5
25412 echo "${ECHO_T}$ac_cv_func_getgroups_works" >&6; }
25413   if test $ac_cv_func_getgroups_works = yes; then
25414     
25415 cat >>confdefs.h <<\_ACEOF
25416 @%:@define HAVE_GETGROUPS 1
25417 _ACEOF
25418
25419   fi
25420 fi
25421 LIBS=$ac_save_LIBS
25422
25423 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
25424 # -lseq on Dynix/PTX, -lgen on Unixware.
25425 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
25426 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
25427 if test "${ac_cv_search_getmntent+set}" = set; then
25428   echo $ECHO_N "(cached) $ECHO_C" >&6
25429 else
25430   ac_func_search_save_LIBS=$LIBS
25431 cat >conftest.$ac_ext <<_ACEOF
25432 /* confdefs.h.  */
25433 _ACEOF
25434 cat confdefs.h >>conftest.$ac_ext
25435 cat >>conftest.$ac_ext <<_ACEOF
25436 /* end confdefs.h.  */
25437
25438 /* Override any GCC internal prototype to avoid an error.
25439    Use char because int might match the return type of a GCC
25440    builtin and then its argument prototype would still apply.  */
25441 #ifdef __cplusplus
25442 extern "C"
25443 #endif
25444 char getmntent ();
25445 int
25446 main ()
25447 {
25448 return getmntent ();
25449   ;
25450   return 0;
25451 }
25452 _ACEOF
25453 for ac_lib in '' sun seq gen; do
25454   if test -z "$ac_lib"; then
25455     ac_res="none required"
25456   else
25457     ac_res=-l$ac_lib
25458     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25459   fi
25460   rm -f conftest.$ac_objext conftest$ac_exeext
25461 if { (ac_try="$ac_link"
25462 case "(($ac_try" in
25463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25464   *) ac_try_echo=$ac_try;;
25465 esac
25466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25467   (eval "$ac_link") 2>conftest.er1
25468   ac_status=$?
25469   grep -v '^ *+' conftest.er1 >conftest.err
25470   rm -f conftest.er1
25471   cat conftest.err >&5
25472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25473   (exit $ac_status); } && {
25474          test -z "$ac_c_werror_flag" ||
25475          test ! -s conftest.err
25476        } && test -s conftest$ac_exeext &&
25477        $as_test_x conftest$ac_exeext; then
25478   ac_cv_search_getmntent=$ac_res
25479 else
25480   echo "$as_me: failed program was:" >&5
25481 sed 's/^/| /' conftest.$ac_ext >&5
25482
25483         
25484 fi
25485
25486 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25487       conftest$ac_exeext 
25488   if test "${ac_cv_search_getmntent+set}" = set; then
25489   break
25490 fi
25491 done
25492 if test "${ac_cv_search_getmntent+set}" = set; then
25493   :
25494 else
25495   ac_cv_search_getmntent=no
25496 fi
25497 rm conftest.$ac_ext
25498 LIBS=$ac_func_search_save_LIBS
25499 fi
25500 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
25501 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
25502 ac_res=$ac_cv_search_getmntent
25503 if test "$ac_res" != no; then
25504   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25505   ac_cv_func_getmntent=yes
25506                 
25507 cat >>confdefs.h <<\_ACEOF
25508 @%:@define HAVE_GETMNTENT 1
25509 _ACEOF
25510
25511 else
25512   ac_cv_func_getmntent=no
25513 fi
25514
25515
25516 if test $ac_cv_c_compiler_gnu = yes; then
25517     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
25518 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
25519 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
25520   echo $ECHO_N "(cached) $ECHO_C" >&6
25521 else
25522     ac_pattern="Autoconf.*'x'"
25523   cat >conftest.$ac_ext <<_ACEOF
25524 /* confdefs.h.  */
25525 _ACEOF
25526 cat confdefs.h >>conftest.$ac_ext
25527 cat >>conftest.$ac_ext <<_ACEOF
25528 /* end confdefs.h.  */
25529 #include <sgtty.h>
25530 Autoconf TIOCGETP
25531 _ACEOF
25532 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25533   $EGREP "$ac_pattern" >/dev/null 2>&1; then
25534   ac_cv_prog_gcc_traditional=yes
25535 else
25536   ac_cv_prog_gcc_traditional=no
25537 fi
25538 rm -f conftest*
25539
25540
25541   if test $ac_cv_prog_gcc_traditional = no; then
25542     cat >conftest.$ac_ext <<_ACEOF
25543 /* confdefs.h.  */
25544 _ACEOF
25545 cat confdefs.h >>conftest.$ac_ext
25546 cat >>conftest.$ac_ext <<_ACEOF
25547 /* end confdefs.h.  */
25548 #include <termio.h>
25549 Autoconf TCGETA
25550 _ACEOF
25551 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25552   $EGREP "$ac_pattern" >/dev/null 2>&1; then
25553   ac_cv_prog_gcc_traditional=yes
25554 fi
25555 rm -f conftest*
25556
25557   fi
25558 fi
25559 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
25560 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
25561   if test $ac_cv_prog_gcc_traditional = yes; then
25562     CC="$CC -traditional"
25563   fi
25564 fi
25565
25566 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
25567 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
25568 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
25569   echo $ECHO_N "(cached) $ECHO_C" >&6
25570 else
25571   rm -f conftest.sym conftest.file
25572 echo >conftest.file
25573 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
25574   if test "$cross_compiling" = yes; then
25575   ac_cv_func_lstat_dereferences_slashed_symlink=no
25576 else
25577   cat >conftest.$ac_ext <<_ACEOF
25578 /* confdefs.h.  */
25579 _ACEOF
25580 cat confdefs.h >>conftest.$ac_ext
25581 cat >>conftest.$ac_ext <<_ACEOF
25582 /* end confdefs.h.  */
25583 $ac_includes_default
25584 int
25585 main ()
25586 {
25587 struct stat sbuf;
25588      /* Linux will dereference the symlink and fail.
25589         That is better in the sense that it means we will not
25590         have to compile and use the lstat wrapper.  */
25591      return lstat ("conftest.sym/", &sbuf) == 0;
25592   ;
25593   return 0;
25594 }
25595 _ACEOF
25596 rm -f conftest$ac_exeext
25597 if { (ac_try="$ac_link"
25598 case "(($ac_try" in
25599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25600   *) ac_try_echo=$ac_try;;
25601 esac
25602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25603   (eval "$ac_link") 2>&5
25604   ac_status=$?
25605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25606   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25607   { (case "(($ac_try" in
25608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25609   *) ac_try_echo=$ac_try;;
25610 esac
25611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25612   (eval "$ac_try") 2>&5
25613   ac_status=$?
25614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25615   (exit $ac_status); }; }; then
25616   ac_cv_func_lstat_dereferences_slashed_symlink=yes
25617 else
25618   echo "$as_me: program exited with status $ac_status" >&5
25619 echo "$as_me: failed program was:" >&5
25620 sed 's/^/| /' conftest.$ac_ext >&5
25621
25622 ( exit $ac_status )
25623 ac_cv_func_lstat_dereferences_slashed_symlink=no
25624 fi
25625 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25626 fi
25627
25628
25629 else
25630   # If the `ln -s' command failed, then we probably don't even
25631   # have an lstat function.
25632   ac_cv_func_lstat_dereferences_slashed_symlink=no
25633 fi
25634 rm -f conftest.sym conftest.file
25635
25636 fi
25637 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
25638 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
25639
25640 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
25641   
25642 cat >>confdefs.h <<_ACEOF
25643 @%:@define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
25644 _ACEOF
25645
25646
25647 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
25648   case " $LIB@&t@OBJS " in
25649   *" lstat.$ac_objext "* ) ;;
25650   *) LIB@&t@OBJS="$LIB@&t@OBJS lstat.$ac_objext"
25651  ;;
25652 esac
25653
25654 fi
25655
25656 { echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
25657 echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6; }
25658 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
25659   echo $ECHO_N "(cached) $ECHO_C" >&6
25660 else
25661   if test "$cross_compiling" = yes; then
25662   ac_cv_func_lstat_empty_string_bug=yes
25663 else
25664   cat >conftest.$ac_ext <<_ACEOF
25665 /* confdefs.h.  */
25666 _ACEOF
25667 cat confdefs.h >>conftest.$ac_ext
25668 cat >>conftest.$ac_ext <<_ACEOF
25669 /* end confdefs.h.  */
25670 $ac_includes_default
25671 int
25672 main ()
25673 {
25674 struct stat sbuf;
25675   return lstat ("", &sbuf) == 0;
25676   ;
25677   return 0;
25678 }
25679 _ACEOF
25680 rm -f conftest$ac_exeext
25681 if { (ac_try="$ac_link"
25682 case "(($ac_try" in
25683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25684   *) ac_try_echo=$ac_try;;
25685 esac
25686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25687   (eval "$ac_link") 2>&5
25688   ac_status=$?
25689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25690   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25691   { (case "(($ac_try" in
25692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25693   *) ac_try_echo=$ac_try;;
25694 esac
25695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25696   (eval "$ac_try") 2>&5
25697   ac_status=$?
25698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25699   (exit $ac_status); }; }; then
25700   ac_cv_func_lstat_empty_string_bug=no
25701 else
25702   echo "$as_me: program exited with status $ac_status" >&5
25703 echo "$as_me: failed program was:" >&5
25704 sed 's/^/| /' conftest.$ac_ext >&5
25705
25706 ( exit $ac_status )
25707 ac_cv_func_lstat_empty_string_bug=yes
25708 fi
25709 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25710 fi
25711
25712
25713 fi
25714 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
25715 echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6; }
25716 if test $ac_cv_func_lstat_empty_string_bug = yes; then
25717   case " $LIB@&t@OBJS " in
25718   *" lstat.$ac_objext "* ) ;;
25719   *) LIB@&t@OBJS="$LIB@&t@OBJS lstat.$ac_objext"
25720  ;;
25721 esac
25722
25723   
25724 cat >>confdefs.h <<_ACEOF
25725 @%:@define HAVE_LSTAT_EMPTY_STRING_BUG 1
25726 _ACEOF
25727
25728 fi
25729
25730 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
25731 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
25732 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
25733   echo $ECHO_N "(cached) $ECHO_C" >&6
25734 else
25735   rm -f conftest.sym conftest.file
25736 echo >conftest.file
25737 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
25738   if test "$cross_compiling" = yes; then
25739   ac_cv_func_lstat_dereferences_slashed_symlink=no
25740 else
25741   cat >conftest.$ac_ext <<_ACEOF
25742 /* confdefs.h.  */
25743 _ACEOF
25744 cat confdefs.h >>conftest.$ac_ext
25745 cat >>conftest.$ac_ext <<_ACEOF
25746 /* end confdefs.h.  */
25747 $ac_includes_default
25748 int
25749 main ()
25750 {
25751 struct stat sbuf;
25752      /* Linux will dereference the symlink and fail.
25753         That is better in the sense that it means we will not
25754         have to compile and use the lstat wrapper.  */
25755      return lstat ("conftest.sym/", &sbuf) == 0;
25756   ;
25757   return 0;
25758 }
25759 _ACEOF
25760 rm -f conftest$ac_exeext
25761 if { (ac_try="$ac_link"
25762 case "(($ac_try" in
25763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25764   *) ac_try_echo=$ac_try;;
25765 esac
25766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25767   (eval "$ac_link") 2>&5
25768   ac_status=$?
25769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25770   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25771   { (case "(($ac_try" in
25772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25773   *) ac_try_echo=$ac_try;;
25774 esac
25775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25776   (eval "$ac_try") 2>&5
25777   ac_status=$?
25778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25779   (exit $ac_status); }; }; then
25780   ac_cv_func_lstat_dereferences_slashed_symlink=yes
25781 else
25782   echo "$as_me: program exited with status $ac_status" >&5
25783 echo "$as_me: failed program was:" >&5
25784 sed 's/^/| /' conftest.$ac_ext >&5
25785
25786 ( exit $ac_status )
25787 ac_cv_func_lstat_dereferences_slashed_symlink=no
25788 fi
25789 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25790 fi
25791
25792
25793 else
25794   # If the `ln -s' command failed, then we probably don't even
25795   # have an lstat function.
25796   ac_cv_func_lstat_dereferences_slashed_symlink=no
25797 fi
25798 rm -f conftest.sym conftest.file
25799
25800 fi
25801 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
25802 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
25803
25804 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
25805   
25806 cat >>confdefs.h <<_ACEOF
25807 @%:@define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
25808 _ACEOF
25809
25810
25811 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
25812   case " $LIB@&t@OBJS " in
25813   *" lstat.$ac_objext "* ) ;;
25814   *) LIB@&t@OBJS="$LIB@&t@OBJS lstat.$ac_objext"
25815  ;;
25816 esac
25817
25818 fi
25819
25820 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
25821 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
25822 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
25823   echo $ECHO_N "(cached) $ECHO_C" >&6
25824 else
25825   cat >conftest.$ac_ext <<_ACEOF
25826 /* confdefs.h.  */
25827 _ACEOF
25828 cat confdefs.h >>conftest.$ac_ext
25829 cat >>conftest.$ac_ext <<_ACEOF
25830 /* end confdefs.h.  */
25831 @%:@include <sys/types.h>
25832 int
25833 main ()
25834 {
25835 return makedev(0, 0);
25836   ;
25837   return 0;
25838 }
25839 _ACEOF
25840 rm -f conftest.$ac_objext conftest$ac_exeext
25841 if { (ac_try="$ac_link"
25842 case "(($ac_try" in
25843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25844   *) ac_try_echo=$ac_try;;
25845 esac
25846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25847   (eval "$ac_link") 2>conftest.er1
25848   ac_status=$?
25849   grep -v '^ *+' conftest.er1 >conftest.err
25850   rm -f conftest.er1
25851   cat conftest.err >&5
25852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25853   (exit $ac_status); } && {
25854          test -z "$ac_c_werror_flag" ||
25855          test ! -s conftest.err
25856        } && test -s conftest$ac_exeext &&
25857        $as_test_x conftest$ac_exeext; then
25858   ac_cv_header_sys_types_h_makedev=yes
25859 else
25860   echo "$as_me: failed program was:" >&5
25861 sed 's/^/| /' conftest.$ac_ext >&5
25862
25863         ac_cv_header_sys_types_h_makedev=no
25864 fi
25865
25866 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25867       conftest$ac_exeext conftest.$ac_ext
25868
25869 fi
25870 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
25871 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
25872
25873 if test $ac_cv_header_sys_types_h_makedev = no; then
25874 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
25875   { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
25876 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
25877 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
25878   echo $ECHO_N "(cached) $ECHO_C" >&6
25879 fi
25880 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
25881 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
25882 else
25883   # Is the header compilable?
25884 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
25885 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
25886 cat >conftest.$ac_ext <<_ACEOF
25887 /* confdefs.h.  */
25888 _ACEOF
25889 cat confdefs.h >>conftest.$ac_ext
25890 cat >>conftest.$ac_ext <<_ACEOF
25891 /* end confdefs.h.  */
25892 $ac_includes_default
25893 @%:@include <sys/mkdev.h>
25894 _ACEOF
25895 rm -f conftest.$ac_objext
25896 if { (ac_try="$ac_compile"
25897 case "(($ac_try" in
25898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25899   *) ac_try_echo=$ac_try;;
25900 esac
25901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25902   (eval "$ac_compile") 2>conftest.er1
25903   ac_status=$?
25904   grep -v '^ *+' conftest.er1 >conftest.err
25905   rm -f conftest.er1
25906   cat conftest.err >&5
25907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25908   (exit $ac_status); } && {
25909          test -z "$ac_c_werror_flag" ||
25910          test ! -s conftest.err
25911        } && test -s conftest.$ac_objext; then
25912   ac_header_compiler=yes
25913 else
25914   echo "$as_me: failed program was:" >&5
25915 sed 's/^/| /' conftest.$ac_ext >&5
25916
25917         ac_header_compiler=no
25918 fi
25919
25920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25921 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25922 echo "${ECHO_T}$ac_header_compiler" >&6; }
25923
25924 # Is the header present?
25925 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
25926 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
25927 cat >conftest.$ac_ext <<_ACEOF
25928 /* confdefs.h.  */
25929 _ACEOF
25930 cat confdefs.h >>conftest.$ac_ext
25931 cat >>conftest.$ac_ext <<_ACEOF
25932 /* end confdefs.h.  */
25933 @%:@include <sys/mkdev.h>
25934 _ACEOF
25935 if { (ac_try="$ac_cpp conftest.$ac_ext"
25936 case "(($ac_try" in
25937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25938   *) ac_try_echo=$ac_try;;
25939 esac
25940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25941   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25942   ac_status=$?
25943   grep -v '^ *+' conftest.er1 >conftest.err
25944   rm -f conftest.er1
25945   cat conftest.err >&5
25946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25947   (exit $ac_status); } >/dev/null && {
25948          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25949          test ! -s conftest.err
25950        }; then
25951   ac_header_preproc=yes
25952 else
25953   echo "$as_me: failed program was:" >&5
25954 sed 's/^/| /' conftest.$ac_ext >&5
25955
25956   ac_header_preproc=no
25957 fi
25958
25959 rm -f conftest.err conftest.$ac_ext
25960 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25961 echo "${ECHO_T}$ac_header_preproc" >&6; }
25962
25963 # So?  What about this header?
25964 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25965   yes:no: )
25966     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
25967 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25968     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
25969 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
25970     ac_header_preproc=yes
25971     ;;
25972   no:yes:* )
25973     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
25974 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
25975     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
25976 echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
25977     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
25978 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
25979     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
25980 echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25981     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
25982 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
25983     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
25984 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
25985     ( cat <<\_ASBOX
25986 @%:@@%:@ ------------------------------- @%:@@%:@
25987 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
25988 @%:@@%:@ ------------------------------- @%:@@%:@
25989 _ASBOX
25990      ) | sed "s/^/$as_me: WARNING:     /" >&2
25991     ;;
25992 esac
25993 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
25994 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
25995 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
25996   echo $ECHO_N "(cached) $ECHO_C" >&6
25997 else
25998   ac_cv_header_sys_mkdev_h=$ac_header_preproc
25999 fi
26000 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
26001 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
26002
26003 fi
26004 if test $ac_cv_header_sys_mkdev_h = yes; then
26005   
26006 cat >>confdefs.h <<\_ACEOF
26007 @%:@define MAJOR_IN_MKDEV 1
26008 _ACEOF
26009
26010 fi
26011
26012
26013
26014   if test $ac_cv_header_sys_mkdev_h = no; then
26015     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
26016   { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
26017 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
26018 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
26019   echo $ECHO_N "(cached) $ECHO_C" >&6
26020 fi
26021 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
26022 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
26023 else
26024   # Is the header compilable?
26025 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
26026 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
26027 cat >conftest.$ac_ext <<_ACEOF
26028 /* confdefs.h.  */
26029 _ACEOF
26030 cat confdefs.h >>conftest.$ac_ext
26031 cat >>conftest.$ac_ext <<_ACEOF
26032 /* end confdefs.h.  */
26033 $ac_includes_default
26034 @%:@include <sys/sysmacros.h>
26035 _ACEOF
26036 rm -f conftest.$ac_objext
26037 if { (ac_try="$ac_compile"
26038 case "(($ac_try" in
26039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26040   *) ac_try_echo=$ac_try;;
26041 esac
26042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26043   (eval "$ac_compile") 2>conftest.er1
26044   ac_status=$?
26045   grep -v '^ *+' conftest.er1 >conftest.err
26046   rm -f conftest.er1
26047   cat conftest.err >&5
26048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26049   (exit $ac_status); } && {
26050          test -z "$ac_c_werror_flag" ||
26051          test ! -s conftest.err
26052        } && test -s conftest.$ac_objext; then
26053   ac_header_compiler=yes
26054 else
26055   echo "$as_me: failed program was:" >&5
26056 sed 's/^/| /' conftest.$ac_ext >&5
26057
26058         ac_header_compiler=no
26059 fi
26060
26061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26062 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26063 echo "${ECHO_T}$ac_header_compiler" >&6; }
26064
26065 # Is the header present?
26066 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
26067 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
26068 cat >conftest.$ac_ext <<_ACEOF
26069 /* confdefs.h.  */
26070 _ACEOF
26071 cat confdefs.h >>conftest.$ac_ext
26072 cat >>conftest.$ac_ext <<_ACEOF
26073 /* end confdefs.h.  */
26074 @%:@include <sys/sysmacros.h>
26075 _ACEOF
26076 if { (ac_try="$ac_cpp conftest.$ac_ext"
26077 case "(($ac_try" in
26078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26079   *) ac_try_echo=$ac_try;;
26080 esac
26081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26082   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26083   ac_status=$?
26084   grep -v '^ *+' conftest.er1 >conftest.err
26085   rm -f conftest.er1
26086   cat conftest.err >&5
26087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26088   (exit $ac_status); } >/dev/null && {
26089          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26090          test ! -s conftest.err
26091        }; then
26092   ac_header_preproc=yes
26093 else
26094   echo "$as_me: failed program was:" >&5
26095 sed 's/^/| /' conftest.$ac_ext >&5
26096
26097   ac_header_preproc=no
26098 fi
26099
26100 rm -f conftest.err conftest.$ac_ext
26101 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26102 echo "${ECHO_T}$ac_header_preproc" >&6; }
26103
26104 # So?  What about this header?
26105 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26106   yes:no: )
26107     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
26108 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26109     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
26110 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
26111     ac_header_preproc=yes
26112     ;;
26113   no:yes:* )
26114     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
26115 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
26116     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
26117 echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
26118     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
26119 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
26120     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
26121 echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
26122     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
26123 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
26124     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
26125 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
26126     ( cat <<\_ASBOX
26127 @%:@@%:@ ------------------------------- @%:@@%:@
26128 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
26129 @%:@@%:@ ------------------------------- @%:@@%:@
26130 _ASBOX
26131      ) | sed "s/^/$as_me: WARNING:     /" >&2
26132     ;;
26133 esac
26134 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
26135 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
26136 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
26137   echo $ECHO_N "(cached) $ECHO_C" >&6
26138 else
26139   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
26140 fi
26141 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
26142 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
26143
26144 fi
26145 if test $ac_cv_header_sys_sysmacros_h = yes; then
26146   
26147 cat >>confdefs.h <<\_ACEOF
26148 @%:@define MAJOR_IN_SYSMACROS 1
26149 _ACEOF
26150
26151 fi
26152
26153
26154   fi
26155 fi
26156
26157 #AC_FUNC_MALLOC
26158 { echo "$as_me:$LINENO: checking for working memcmp" >&5
26159 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
26160 if test "${ac_cv_func_memcmp_working+set}" = set; then
26161   echo $ECHO_N "(cached) $ECHO_C" >&6
26162 else
26163   if test "$cross_compiling" = yes; then
26164   ac_cv_func_memcmp_working=no
26165 else
26166   cat >conftest.$ac_ext <<_ACEOF
26167 /* confdefs.h.  */
26168 _ACEOF
26169 cat confdefs.h >>conftest.$ac_ext
26170 cat >>conftest.$ac_ext <<_ACEOF
26171 /* end confdefs.h.  */
26172 $ac_includes_default
26173 int
26174 main ()
26175 {
26176
26177   /* Some versions of memcmp are not 8-bit clean.  */
26178   char c0 = '\100', c1 = '\200', c2 = '\201';
26179   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
26180     return 1;
26181
26182   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
26183      or more and with at least one buffer not starting on a 4-byte boundary.
26184      William Lewis provided this test program.   */
26185   {
26186     char foo[21];
26187     char bar[21];
26188     int i;
26189     for (i = 0; i < 4; i++)
26190       {
26191         char *a = foo + i;
26192         char *b = bar + i;
26193         strcpy (a, "--------01111111");
26194         strcpy (b, "--------10000000");
26195         if (memcmp (a, b, 16) >= 0)
26196           return 1;
26197       }
26198     return 0;
26199   }
26200
26201   ;
26202   return 0;
26203 }
26204 _ACEOF
26205 rm -f conftest$ac_exeext
26206 if { (ac_try="$ac_link"
26207 case "(($ac_try" in
26208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26209   *) ac_try_echo=$ac_try;;
26210 esac
26211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26212   (eval "$ac_link") 2>&5
26213   ac_status=$?
26214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26215   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26216   { (case "(($ac_try" in
26217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26218   *) ac_try_echo=$ac_try;;
26219 esac
26220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26221   (eval "$ac_try") 2>&5
26222   ac_status=$?
26223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26224   (exit $ac_status); }; }; then
26225   ac_cv_func_memcmp_working=yes
26226 else
26227   echo "$as_me: program exited with status $ac_status" >&5
26228 echo "$as_me: failed program was:" >&5
26229 sed 's/^/| /' conftest.$ac_ext >&5
26230
26231 ( exit $ac_status )
26232 ac_cv_func_memcmp_working=no
26233 fi
26234 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26235 fi
26236
26237
26238 fi
26239 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
26240 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
26241 test $ac_cv_func_memcmp_working = no && case " $LIB@&t@OBJS " in
26242   *" memcmp.$ac_objext "* ) ;;
26243   *) LIB@&t@OBJS="$LIB@&t@OBJS memcmp.$ac_objext"
26244  ;;
26245 esac
26246
26247
26248 #AC_FUNC_REALLOC
26249
26250
26251 for ac_header in sys/select.h sys/socket.h
26252 do
26253 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26254 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26255   { echo "$as_me:$LINENO: checking for $ac_header" >&5
26256 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26257 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26258   echo $ECHO_N "(cached) $ECHO_C" >&6
26259 fi
26260 ac_res=`eval echo '${'$as_ac_Header'}'`
26261                { echo "$as_me:$LINENO: result: $ac_res" >&5
26262 echo "${ECHO_T}$ac_res" >&6; }
26263 else
26264   # Is the header compilable?
26265 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26266 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26267 cat >conftest.$ac_ext <<_ACEOF
26268 /* confdefs.h.  */
26269 _ACEOF
26270 cat confdefs.h >>conftest.$ac_ext
26271 cat >>conftest.$ac_ext <<_ACEOF
26272 /* end confdefs.h.  */
26273 $ac_includes_default
26274 @%:@include <$ac_header>
26275 _ACEOF
26276 rm -f conftest.$ac_objext
26277 if { (ac_try="$ac_compile"
26278 case "(($ac_try" in
26279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26280   *) ac_try_echo=$ac_try;;
26281 esac
26282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26283   (eval "$ac_compile") 2>conftest.er1
26284   ac_status=$?
26285   grep -v '^ *+' conftest.er1 >conftest.err
26286   rm -f conftest.er1
26287   cat conftest.err >&5
26288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26289   (exit $ac_status); } && {
26290          test -z "$ac_c_werror_flag" ||
26291          test ! -s conftest.err
26292        } && test -s conftest.$ac_objext; then
26293   ac_header_compiler=yes
26294 else
26295   echo "$as_me: failed program was:" >&5
26296 sed 's/^/| /' conftest.$ac_ext >&5
26297
26298         ac_header_compiler=no
26299 fi
26300
26301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26302 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26303 echo "${ECHO_T}$ac_header_compiler" >&6; }
26304
26305 # Is the header present?
26306 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26307 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26308 cat >conftest.$ac_ext <<_ACEOF
26309 /* confdefs.h.  */
26310 _ACEOF
26311 cat confdefs.h >>conftest.$ac_ext
26312 cat >>conftest.$ac_ext <<_ACEOF
26313 /* end confdefs.h.  */
26314 @%:@include <$ac_header>
26315 _ACEOF
26316 if { (ac_try="$ac_cpp conftest.$ac_ext"
26317 case "(($ac_try" in
26318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26319   *) ac_try_echo=$ac_try;;
26320 esac
26321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26322   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26323   ac_status=$?
26324   grep -v '^ *+' conftest.er1 >conftest.err
26325   rm -f conftest.er1
26326   cat conftest.err >&5
26327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26328   (exit $ac_status); } >/dev/null && {
26329          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26330          test ! -s conftest.err
26331        }; then
26332   ac_header_preproc=yes
26333 else
26334   echo "$as_me: failed program was:" >&5
26335 sed 's/^/| /' conftest.$ac_ext >&5
26336
26337   ac_header_preproc=no
26338 fi
26339
26340 rm -f conftest.err conftest.$ac_ext
26341 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26342 echo "${ECHO_T}$ac_header_preproc" >&6; }
26343
26344 # So?  What about this header?
26345 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26346   yes:no: )
26347     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26348 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26349     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26350 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26351     ac_header_preproc=yes
26352     ;;
26353   no:yes:* )
26354     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26355 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26356     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26357 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26358     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26359 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26360     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26361 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26362     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26363 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26364     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26365 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26366     ( cat <<\_ASBOX
26367 @%:@@%:@ ------------------------------- @%:@@%:@
26368 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
26369 @%:@@%:@ ------------------------------- @%:@@%:@
26370 _ASBOX
26371      ) | sed "s/^/$as_me: WARNING:     /" >&2
26372     ;;
26373 esac
26374 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26375 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26376 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26377   echo $ECHO_N "(cached) $ECHO_C" >&6
26378 else
26379   eval "$as_ac_Header=\$ac_header_preproc"
26380 fi
26381 ac_res=`eval echo '${'$as_ac_Header'}'`
26382                { echo "$as_me:$LINENO: result: $ac_res" >&5
26383 echo "${ECHO_T}$ac_res" >&6; }
26384
26385 fi
26386 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26387   cat >>confdefs.h <<_ACEOF
26388 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26389 _ACEOF
26390  
26391 fi
26392
26393 done
26394
26395 { echo "$as_me:$LINENO: checking types of arguments for select" >&5
26396 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
26397 if test "${ac_cv_func_select_args+set}" = set; then
26398   echo $ECHO_N "(cached) $ECHO_C" >&6
26399 else
26400   for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
26401  for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
26402   for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
26403    cat >conftest.$ac_ext <<_ACEOF
26404 /* confdefs.h.  */
26405 _ACEOF
26406 cat confdefs.h >>conftest.$ac_ext
26407 cat >>conftest.$ac_ext <<_ACEOF
26408 /* end confdefs.h.  */
26409 $ac_includes_default
26410 #ifdef HAVE_SYS_SELECT_H
26411 # include <sys/select.h>
26412 #endif
26413 #ifdef HAVE_SYS_SOCKET_H
26414 # include <sys/socket.h>
26415 #endif
26416
26417 int
26418 main ()
26419 {
26420 extern int select ($ac_arg1,
26421                                             $ac_arg234, $ac_arg234, $ac_arg234,
26422                                             $ac_arg5);
26423   ;
26424   return 0;
26425 }
26426 _ACEOF
26427 rm -f conftest.$ac_objext
26428 if { (ac_try="$ac_compile"
26429 case "(($ac_try" in
26430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26431   *) ac_try_echo=$ac_try;;
26432 esac
26433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26434   (eval "$ac_compile") 2>conftest.er1
26435   ac_status=$?
26436   grep -v '^ *+' conftest.er1 >conftest.err
26437   rm -f conftest.er1
26438   cat conftest.err >&5
26439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26440   (exit $ac_status); } && {
26441          test -z "$ac_c_werror_flag" ||
26442          test ! -s conftest.err
26443        } && test -s conftest.$ac_objext; then
26444   ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
26445 else
26446   echo "$as_me: failed program was:" >&5
26447 sed 's/^/| /' conftest.$ac_ext >&5
26448
26449         
26450 fi
26451
26452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26453   done
26454  done
26455 done
26456 # Provide a safe default value.
26457 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
26458
26459 fi
26460 { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
26461 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
26462 ac_save_IFS=$IFS; IFS=','
26463 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
26464 IFS=$ac_save_IFS
26465 shift
26466
26467 cat >>confdefs.h <<_ACEOF
26468 @%:@define SELECT_TYPE_ARG1 $1
26469 _ACEOF
26470
26471
26472 cat >>confdefs.h <<_ACEOF
26473 @%:@define SELECT_TYPE_ARG234 ($2)
26474 _ACEOF
26475
26476
26477 cat >>confdefs.h <<_ACEOF
26478 @%:@define SELECT_TYPE_ARG5 ($3)
26479 _ACEOF
26480
26481 rm -f conftest*
26482
26483 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
26484 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
26485 if test "${ac_cv_type_signal+set}" = set; then
26486   echo $ECHO_N "(cached) $ECHO_C" >&6
26487 else
26488   cat >conftest.$ac_ext <<_ACEOF
26489 /* confdefs.h.  */
26490 _ACEOF
26491 cat confdefs.h >>conftest.$ac_ext
26492 cat >>conftest.$ac_ext <<_ACEOF
26493 /* end confdefs.h.  */
26494 #include <sys/types.h>
26495 #include <signal.h>
26496
26497 int
26498 main ()
26499 {
26500 return *(signal (0, 0)) (0) == 1;
26501   ;
26502   return 0;
26503 }
26504 _ACEOF
26505 rm -f conftest.$ac_objext
26506 if { (ac_try="$ac_compile"
26507 case "(($ac_try" in
26508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26509   *) ac_try_echo=$ac_try;;
26510 esac
26511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26512   (eval "$ac_compile") 2>conftest.er1
26513   ac_status=$?
26514   grep -v '^ *+' conftest.er1 >conftest.err
26515   rm -f conftest.er1
26516   cat conftest.err >&5
26517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26518   (exit $ac_status); } && {
26519          test -z "$ac_c_werror_flag" ||
26520          test ! -s conftest.err
26521        } && test -s conftest.$ac_objext; then
26522   ac_cv_type_signal=int
26523 else
26524   echo "$as_me: failed program was:" >&5
26525 sed 's/^/| /' conftest.$ac_ext >&5
26526
26527         ac_cv_type_signal=void
26528 fi
26529
26530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26531 fi
26532 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
26533 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
26534
26535 cat >>confdefs.h <<_ACEOF
26536 @%:@define RETSIGTYPE $ac_cv_type_signal
26537 _ACEOF
26538
26539
26540 { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
26541 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
26542 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
26543   echo $ECHO_N "(cached) $ECHO_C" >&6
26544 else
26545   if test "$cross_compiling" = yes; then
26546   ac_cv_func_stat_empty_string_bug=yes
26547 else
26548   cat >conftest.$ac_ext <<_ACEOF
26549 /* confdefs.h.  */
26550 _ACEOF
26551 cat confdefs.h >>conftest.$ac_ext
26552 cat >>conftest.$ac_ext <<_ACEOF
26553 /* end confdefs.h.  */
26554 $ac_includes_default
26555 int
26556 main ()
26557 {
26558 struct stat sbuf;
26559   return stat ("", &sbuf) == 0;
26560   ;
26561   return 0;
26562 }
26563 _ACEOF
26564 rm -f conftest$ac_exeext
26565 if { (ac_try="$ac_link"
26566 case "(($ac_try" in
26567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26568   *) ac_try_echo=$ac_try;;
26569 esac
26570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26571   (eval "$ac_link") 2>&5
26572   ac_status=$?
26573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26574   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26575   { (case "(($ac_try" in
26576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26577   *) ac_try_echo=$ac_try;;
26578 esac
26579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26580   (eval "$ac_try") 2>&5
26581   ac_status=$?
26582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26583   (exit $ac_status); }; }; then
26584   ac_cv_func_stat_empty_string_bug=no
26585 else
26586   echo "$as_me: program exited with status $ac_status" >&5
26587 echo "$as_me: failed program was:" >&5
26588 sed 's/^/| /' conftest.$ac_ext >&5
26589
26590 ( exit $ac_status )
26591 ac_cv_func_stat_empty_string_bug=yes
26592 fi
26593 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26594 fi
26595
26596
26597 fi
26598 { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
26599 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
26600 if test $ac_cv_func_stat_empty_string_bug = yes; then
26601   case " $LIB@&t@OBJS " in
26602   *" stat.$ac_objext "* ) ;;
26603   *) LIB@&t@OBJS="$LIB@&t@OBJS stat.$ac_objext"
26604  ;;
26605 esac
26606
26607   
26608 cat >>confdefs.h <<_ACEOF
26609 @%:@define HAVE_STAT_EMPTY_STRING_BUG 1
26610 _ACEOF
26611
26612 fi
26613
26614
26615 for ac_func in vprintf
26616 do
26617 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26618 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26619 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26620 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26621   echo $ECHO_N "(cached) $ECHO_C" >&6
26622 else
26623   cat >conftest.$ac_ext <<_ACEOF
26624 /* confdefs.h.  */
26625 _ACEOF
26626 cat confdefs.h >>conftest.$ac_ext
26627 cat >>conftest.$ac_ext <<_ACEOF
26628 /* end confdefs.h.  */
26629 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26630    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26631 #define $ac_func innocuous_$ac_func
26632
26633 /* System header to define __stub macros and hopefully few prototypes,
26634     which can conflict with char $ac_func (); below.
26635     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26636     <limits.h> exists even on freestanding compilers.  */
26637
26638 #ifdef __STDC__
26639 # include <limits.h>
26640 #else
26641 # include <assert.h>
26642 #endif
26643
26644 #undef $ac_func
26645
26646 /* Override any GCC internal prototype to avoid an error.
26647    Use char because int might match the return type of a GCC
26648    builtin and then its argument prototype would still apply.  */
26649 #ifdef __cplusplus
26650 extern "C"
26651 #endif
26652 char $ac_func ();
26653 /* The GNU C library defines this for functions which it implements
26654     to always fail with ENOSYS.  Some functions are actually named
26655     something starting with __ and the normal name is an alias.  */
26656 #if defined __stub_$ac_func || defined __stub___$ac_func
26657 choke me
26658 #endif
26659
26660 int
26661 main ()
26662 {
26663 return $ac_func ();
26664   ;
26665   return 0;
26666 }
26667 _ACEOF
26668 rm -f conftest.$ac_objext conftest$ac_exeext
26669 if { (ac_try="$ac_link"
26670 case "(($ac_try" in
26671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26672   *) ac_try_echo=$ac_try;;
26673 esac
26674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26675   (eval "$ac_link") 2>conftest.er1
26676   ac_status=$?
26677   grep -v '^ *+' conftest.er1 >conftest.err
26678   rm -f conftest.er1
26679   cat conftest.err >&5
26680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26681   (exit $ac_status); } && {
26682          test -z "$ac_c_werror_flag" ||
26683          test ! -s conftest.err
26684        } && test -s conftest$ac_exeext &&
26685        $as_test_x conftest$ac_exeext; then
26686   eval "$as_ac_var=yes"
26687 else
26688   echo "$as_me: failed program was:" >&5
26689 sed 's/^/| /' conftest.$ac_ext >&5
26690
26691         eval "$as_ac_var=no"
26692 fi
26693
26694 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26695       conftest$ac_exeext conftest.$ac_ext
26696 fi
26697 ac_res=`eval echo '${'$as_ac_var'}'`
26698                { echo "$as_me:$LINENO: result: $ac_res" >&5
26699 echo "${ECHO_T}$ac_res" >&6; }
26700 if test `eval echo '${'$as_ac_var'}'` = yes; then
26701   cat >>confdefs.h <<_ACEOF
26702 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26703 _ACEOF
26704  
26705 { echo "$as_me:$LINENO: checking for _doprnt" >&5
26706 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
26707 if test "${ac_cv_func__doprnt+set}" = set; then
26708   echo $ECHO_N "(cached) $ECHO_C" >&6
26709 else
26710   cat >conftest.$ac_ext <<_ACEOF
26711 /* confdefs.h.  */
26712 _ACEOF
26713 cat confdefs.h >>conftest.$ac_ext
26714 cat >>conftest.$ac_ext <<_ACEOF
26715 /* end confdefs.h.  */
26716 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
26717    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26718 #define _doprnt innocuous__doprnt
26719
26720 /* System header to define __stub macros and hopefully few prototypes,
26721     which can conflict with char _doprnt (); below.
26722     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26723     <limits.h> exists even on freestanding compilers.  */
26724
26725 #ifdef __STDC__
26726 # include <limits.h>
26727 #else
26728 # include <assert.h>
26729 #endif
26730
26731 #undef _doprnt
26732
26733 /* Override any GCC internal prototype to avoid an error.
26734    Use char because int might match the return type of a GCC
26735    builtin and then its argument prototype would still apply.  */
26736 #ifdef __cplusplus
26737 extern "C"
26738 #endif
26739 char _doprnt ();
26740 /* The GNU C library defines this for functions which it implements
26741     to always fail with ENOSYS.  Some functions are actually named
26742     something starting with __ and the normal name is an alias.  */
26743 #if defined __stub__doprnt || defined __stub____doprnt
26744 choke me
26745 #endif
26746
26747 int
26748 main ()
26749 {
26750 return _doprnt ();
26751   ;
26752   return 0;
26753 }
26754 _ACEOF
26755 rm -f conftest.$ac_objext 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>conftest.er1
26763   ac_status=$?
26764   grep -v '^ *+' conftest.er1 >conftest.err
26765   rm -f conftest.er1
26766   cat conftest.err >&5
26767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26768   (exit $ac_status); } && {
26769          test -z "$ac_c_werror_flag" ||
26770          test ! -s conftest.err
26771        } && test -s conftest$ac_exeext &&
26772        $as_test_x conftest$ac_exeext; then
26773   ac_cv_func__doprnt=yes
26774 else
26775   echo "$as_me: failed program was:" >&5
26776 sed 's/^/| /' conftest.$ac_ext >&5
26777
26778         ac_cv_func__doprnt=no
26779 fi
26780
26781 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26782       conftest$ac_exeext conftest.$ac_ext
26783 fi
26784 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
26785 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
26786 if test $ac_cv_func__doprnt = yes; then
26787   
26788 cat >>confdefs.h <<\_ACEOF
26789 @%:@define HAVE_DOPRNT 1
26790 _ACEOF
26791
26792 fi
26793
26794 fi
26795 done
26796
26797
26798
26799
26800
26801
26802
26803
26804
26805
26806
26807
26808
26809
26810
26811
26812
26813
26814
26815
26816
26817
26818
26819
26820
26821
26822
26823
26824
26825
26826
26827 for ac_func in alarm atexit dup2 fdatasync ftruncate getcwd \
26828                gethostbyaddr gethostbyname gethostname getmntent \
26829                gettimeofday hasmntopt inet_ntoa innetgr memset mkdir pathconf \
26830                realpath rmdir select socket strcasecmp strchr strdup \
26831                strerror strrchr strtol strtoul sigprocmask
26832 do
26833 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26834 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26835 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26836 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26837   echo $ECHO_N "(cached) $ECHO_C" >&6
26838 else
26839   cat >conftest.$ac_ext <<_ACEOF
26840 /* confdefs.h.  */
26841 _ACEOF
26842 cat confdefs.h >>conftest.$ac_ext
26843 cat >>conftest.$ac_ext <<_ACEOF
26844 /* end confdefs.h.  */
26845 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26846    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26847 #define $ac_func innocuous_$ac_func
26848
26849 /* System header to define __stub macros and hopefully few prototypes,
26850     which can conflict with char $ac_func (); below.
26851     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26852     <limits.h> exists even on freestanding compilers.  */
26853
26854 #ifdef __STDC__
26855 # include <limits.h>
26856 #else
26857 # include <assert.h>
26858 #endif
26859
26860 #undef $ac_func
26861
26862 /* Override any GCC internal prototype to avoid an error.
26863    Use char because int might match the return type of a GCC
26864    builtin and then its argument prototype would still apply.  */
26865 #ifdef __cplusplus
26866 extern "C"
26867 #endif
26868 char $ac_func ();
26869 /* The GNU C library defines this for functions which it implements
26870     to always fail with ENOSYS.  Some functions are actually named
26871     something starting with __ and the normal name is an alias.  */
26872 #if defined __stub_$ac_func || defined __stub___$ac_func
26873 choke me
26874 #endif
26875
26876 int
26877 main ()
26878 {
26879 return $ac_func ();
26880   ;
26881   return 0;
26882 }
26883 _ACEOF
26884 rm -f conftest.$ac_objext conftest$ac_exeext
26885 if { (ac_try="$ac_link"
26886 case "(($ac_try" in
26887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26888   *) ac_try_echo=$ac_try;;
26889 esac
26890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26891   (eval "$ac_link") 2>conftest.er1
26892   ac_status=$?
26893   grep -v '^ *+' conftest.er1 >conftest.err
26894   rm -f conftest.er1
26895   cat conftest.err >&5
26896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26897   (exit $ac_status); } && {
26898          test -z "$ac_c_werror_flag" ||
26899          test ! -s conftest.err
26900        } && test -s conftest$ac_exeext &&
26901        $as_test_x conftest$ac_exeext; then
26902   eval "$as_ac_var=yes"
26903 else
26904   echo "$as_me: failed program was:" >&5
26905 sed 's/^/| /' conftest.$ac_ext >&5
26906
26907         eval "$as_ac_var=no"
26908 fi
26909
26910 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26911       conftest$ac_exeext conftest.$ac_ext
26912 fi
26913 ac_res=`eval echo '${'$as_ac_var'}'`
26914                { echo "$as_me:$LINENO: result: $ac_res" >&5
26915 echo "${ECHO_T}$ac_res" >&6; }
26916 if test `eval echo '${'$as_ac_var'}'` = yes; then
26917   cat >>confdefs.h <<_ACEOF
26918 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26919 _ACEOF
26920  
26921 fi
26922 done
26923
26924
26925
26926 { echo "$as_me:$LINENO: checking for short" >&5
26927 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
26928 if test "${ac_cv_type_short+set}" = set; then
26929   echo $ECHO_N "(cached) $ECHO_C" >&6
26930 else
26931   cat >conftest.$ac_ext <<_ACEOF
26932 /* confdefs.h.  */
26933 _ACEOF
26934 cat confdefs.h >>conftest.$ac_ext
26935 cat >>conftest.$ac_ext <<_ACEOF
26936 /* end confdefs.h.  */
26937 $ac_includes_default
26938 typedef short ac__type_new_;
26939 int
26940 main ()
26941 {
26942 if ((ac__type_new_ *) 0)
26943   return 0;
26944 if (sizeof (ac__type_new_))
26945   return 0;
26946   ;
26947   return 0;
26948 }
26949 _ACEOF
26950 rm -f conftest.$ac_objext
26951 if { (ac_try="$ac_compile"
26952 case "(($ac_try" in
26953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26954   *) ac_try_echo=$ac_try;;
26955 esac
26956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26957   (eval "$ac_compile") 2>conftest.er1
26958   ac_status=$?
26959   grep -v '^ *+' conftest.er1 >conftest.err
26960   rm -f conftest.er1
26961   cat conftest.err >&5
26962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26963   (exit $ac_status); } && {
26964          test -z "$ac_c_werror_flag" ||
26965          test ! -s conftest.err
26966        } && test -s conftest.$ac_objext; then
26967   ac_cv_type_short=yes
26968 else
26969   echo "$as_me: failed program was:" >&5
26970 sed 's/^/| /' conftest.$ac_ext >&5
26971
26972         ac_cv_type_short=no
26973 fi
26974
26975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26976 fi
26977 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
26978 echo "${ECHO_T}$ac_cv_type_short" >&6; }
26979
26980 # The cast to long int works around a bug in the HP C Compiler
26981 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26982 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26983 # This bug is HP SR number 8606223364.
26984 { echo "$as_me:$LINENO: checking size of short" >&5
26985 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
26986 if test "${ac_cv_sizeof_short+set}" = set; then
26987   echo $ECHO_N "(cached) $ECHO_C" >&6
26988 else
26989   if test "$cross_compiling" = yes; then
26990   # Depending upon the size, compute the lo and hi bounds.
26991 cat >conftest.$ac_ext <<_ACEOF
26992 /* confdefs.h.  */
26993 _ACEOF
26994 cat confdefs.h >>conftest.$ac_ext
26995 cat >>conftest.$ac_ext <<_ACEOF
26996 /* end confdefs.h.  */
26997 $ac_includes_default
26998    typedef short ac__type_sizeof_;
26999 int
27000 main ()
27001 {
27002 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
27003 test_array @<:@0@:>@ = 0
27004
27005   ;
27006   return 0;
27007 }
27008 _ACEOF
27009 rm -f conftest.$ac_objext
27010 if { (ac_try="$ac_compile"
27011 case "(($ac_try" in
27012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27013   *) ac_try_echo=$ac_try;;
27014 esac
27015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27016   (eval "$ac_compile") 2>conftest.er1
27017   ac_status=$?
27018   grep -v '^ *+' conftest.er1 >conftest.err
27019   rm -f conftest.er1
27020   cat conftest.err >&5
27021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27022   (exit $ac_status); } && {
27023          test -z "$ac_c_werror_flag" ||
27024          test ! -s conftest.err
27025        } && test -s conftest.$ac_objext; then
27026   ac_lo=0 ac_mid=0
27027   while :; do
27028     cat >conftest.$ac_ext <<_ACEOF
27029 /* confdefs.h.  */
27030 _ACEOF
27031 cat confdefs.h >>conftest.$ac_ext
27032 cat >>conftest.$ac_ext <<_ACEOF
27033 /* end confdefs.h.  */
27034 $ac_includes_default
27035    typedef short ac__type_sizeof_;
27036 int
27037 main ()
27038 {
27039 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
27040 test_array @<:@0@:>@ = 0
27041
27042   ;
27043   return 0;
27044 }
27045 _ACEOF
27046 rm -f conftest.$ac_objext
27047 if { (ac_try="$ac_compile"
27048 case "(($ac_try" in
27049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27050   *) ac_try_echo=$ac_try;;
27051 esac
27052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27053   (eval "$ac_compile") 2>conftest.er1
27054   ac_status=$?
27055   grep -v '^ *+' conftest.er1 >conftest.err
27056   rm -f conftest.er1
27057   cat conftest.err >&5
27058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27059   (exit $ac_status); } && {
27060          test -z "$ac_c_werror_flag" ||
27061          test ! -s conftest.err
27062        } && test -s conftest.$ac_objext; then
27063   ac_hi=$ac_mid; break
27064 else
27065   echo "$as_me: failed program was:" >&5
27066 sed 's/^/| /' conftest.$ac_ext >&5
27067
27068         ac_lo=`expr $ac_mid + 1`
27069                         if test $ac_lo -le $ac_mid; then
27070                           ac_lo= ac_hi=
27071                           break
27072                         fi
27073                         ac_mid=`expr 2 '*' $ac_mid + 1`
27074 fi
27075
27076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27077   done
27078 else
27079   echo "$as_me: failed program was:" >&5
27080 sed 's/^/| /' conftest.$ac_ext >&5
27081
27082         cat >conftest.$ac_ext <<_ACEOF
27083 /* confdefs.h.  */
27084 _ACEOF
27085 cat confdefs.h >>conftest.$ac_ext
27086 cat >>conftest.$ac_ext <<_ACEOF
27087 /* end confdefs.h.  */
27088 $ac_includes_default
27089    typedef short ac__type_sizeof_;
27090 int
27091 main ()
27092 {
27093 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
27094 test_array @<:@0@:>@ = 0
27095
27096   ;
27097   return 0;
27098 }
27099 _ACEOF
27100 rm -f conftest.$ac_objext
27101 if { (ac_try="$ac_compile"
27102 case "(($ac_try" in
27103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27104   *) ac_try_echo=$ac_try;;
27105 esac
27106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27107   (eval "$ac_compile") 2>conftest.er1
27108   ac_status=$?
27109   grep -v '^ *+' conftest.er1 >conftest.err
27110   rm -f conftest.er1
27111   cat conftest.err >&5
27112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27113   (exit $ac_status); } && {
27114          test -z "$ac_c_werror_flag" ||
27115          test ! -s conftest.err
27116        } && test -s conftest.$ac_objext; then
27117   ac_hi=-1 ac_mid=-1
27118   while :; do
27119     cat >conftest.$ac_ext <<_ACEOF
27120 /* confdefs.h.  */
27121 _ACEOF
27122 cat confdefs.h >>conftest.$ac_ext
27123 cat >>conftest.$ac_ext <<_ACEOF
27124 /* end confdefs.h.  */
27125 $ac_includes_default
27126    typedef short ac__type_sizeof_;
27127 int
27128 main ()
27129 {
27130 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
27131 test_array @<:@0@:>@ = 0
27132
27133   ;
27134   return 0;
27135 }
27136 _ACEOF
27137 rm -f conftest.$ac_objext
27138 if { (ac_try="$ac_compile"
27139 case "(($ac_try" in
27140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27141   *) ac_try_echo=$ac_try;;
27142 esac
27143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27144   (eval "$ac_compile") 2>conftest.er1
27145   ac_status=$?
27146   grep -v '^ *+' conftest.er1 >conftest.err
27147   rm -f conftest.er1
27148   cat conftest.err >&5
27149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27150   (exit $ac_status); } && {
27151          test -z "$ac_c_werror_flag" ||
27152          test ! -s conftest.err
27153        } && test -s conftest.$ac_objext; then
27154   ac_lo=$ac_mid; break
27155 else
27156   echo "$as_me: failed program was:" >&5
27157 sed 's/^/| /' conftest.$ac_ext >&5
27158
27159         ac_hi=`expr '(' $ac_mid ')' - 1`
27160                         if test $ac_mid -le $ac_hi; then
27161                           ac_lo= ac_hi=
27162                           break
27163                         fi
27164                         ac_mid=`expr 2 '*' $ac_mid`
27165 fi
27166
27167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27168   done
27169 else
27170   echo "$as_me: failed program was:" >&5
27171 sed 's/^/| /' conftest.$ac_ext >&5
27172
27173         ac_lo= ac_hi=
27174 fi
27175
27176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27177 fi
27178
27179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27180 # Binary search between lo and hi bounds.
27181 while test "x$ac_lo" != "x$ac_hi"; do
27182   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27183   cat >conftest.$ac_ext <<_ACEOF
27184 /* confdefs.h.  */
27185 _ACEOF
27186 cat confdefs.h >>conftest.$ac_ext
27187 cat >>conftest.$ac_ext <<_ACEOF
27188 /* end confdefs.h.  */
27189 $ac_includes_default
27190    typedef short ac__type_sizeof_;
27191 int
27192 main ()
27193 {
27194 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
27195 test_array @<:@0@:>@ = 0
27196
27197   ;
27198   return 0;
27199 }
27200 _ACEOF
27201 rm -f conftest.$ac_objext
27202 if { (ac_try="$ac_compile"
27203 case "(($ac_try" in
27204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27205   *) ac_try_echo=$ac_try;;
27206 esac
27207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27208   (eval "$ac_compile") 2>conftest.er1
27209   ac_status=$?
27210   grep -v '^ *+' conftest.er1 >conftest.err
27211   rm -f conftest.er1
27212   cat conftest.err >&5
27213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27214   (exit $ac_status); } && {
27215          test -z "$ac_c_werror_flag" ||
27216          test ! -s conftest.err
27217        } && test -s conftest.$ac_objext; then
27218   ac_hi=$ac_mid
27219 else
27220   echo "$as_me: failed program was:" >&5
27221 sed 's/^/| /' conftest.$ac_ext >&5
27222
27223         ac_lo=`expr '(' $ac_mid ')' + 1`
27224 fi
27225
27226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27227 done
27228 case $ac_lo in
27229 ?*) ac_cv_sizeof_short=$ac_lo;;
27230 '') if test "$ac_cv_type_short" = yes; then
27231      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
27232 See \`config.log' for more details." >&5
27233 echo "$as_me: error: cannot compute sizeof (short)
27234 See \`config.log' for more details." >&2;}
27235    { (exit 77); exit 77; }; }
27236    else
27237      ac_cv_sizeof_short=0
27238    fi ;;
27239 esac
27240 else
27241   cat >conftest.$ac_ext <<_ACEOF
27242 /* confdefs.h.  */
27243 _ACEOF
27244 cat confdefs.h >>conftest.$ac_ext
27245 cat >>conftest.$ac_ext <<_ACEOF
27246 /* end confdefs.h.  */
27247 $ac_includes_default
27248    typedef short ac__type_sizeof_;
27249 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
27250 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
27251 @%:@include <stdio.h>
27252 @%:@include <stdlib.h>
27253 int
27254 main ()
27255 {
27256
27257   FILE *f = fopen ("conftest.val", "w");
27258   if (! f)
27259     return 1;
27260   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
27261     {
27262       long int i = longval ();
27263       if (i != ((long int) (sizeof (ac__type_sizeof_))))
27264         return 1;
27265       fprintf (f, "%ld\n", i);
27266     }
27267   else
27268     {
27269       unsigned long int i = ulongval ();
27270       if (i != ((long int) (sizeof (ac__type_sizeof_))))
27271         return 1;
27272       fprintf (f, "%lu\n", i);
27273     }
27274   return ferror (f) || fclose (f) != 0;
27275
27276   ;
27277   return 0;
27278 }
27279 _ACEOF
27280 rm -f conftest$ac_exeext
27281 if { (ac_try="$ac_link"
27282 case "(($ac_try" in
27283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27284   *) ac_try_echo=$ac_try;;
27285 esac
27286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27287   (eval "$ac_link") 2>&5
27288   ac_status=$?
27289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27290   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27291   { (case "(($ac_try" in
27292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27293   *) ac_try_echo=$ac_try;;
27294 esac
27295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27296   (eval "$ac_try") 2>&5
27297   ac_status=$?
27298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27299   (exit $ac_status); }; }; then
27300   ac_cv_sizeof_short=`cat conftest.val`
27301 else
27302   echo "$as_me: program exited with status $ac_status" >&5
27303 echo "$as_me: failed program was:" >&5
27304 sed 's/^/| /' conftest.$ac_ext >&5
27305
27306 ( exit $ac_status )
27307 if test "$ac_cv_type_short" = yes; then
27308      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
27309 See \`config.log' for more details." >&5
27310 echo "$as_me: error: cannot compute sizeof (short)
27311 See \`config.log' for more details." >&2;}
27312    { (exit 77); exit 77; }; }
27313    else
27314      ac_cv_sizeof_short=0
27315    fi
27316 fi
27317 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27318 fi
27319 rm -f conftest.val
27320 fi
27321 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
27322 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
27323
27324
27325
27326 cat >>confdefs.h <<_ACEOF
27327 @%:@define SIZEOF_SHORT $ac_cv_sizeof_short
27328 _ACEOF
27329
27330
27331 { echo "$as_me:$LINENO: checking for int" >&5
27332 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
27333 if test "${ac_cv_type_int+set}" = set; then
27334   echo $ECHO_N "(cached) $ECHO_C" >&6
27335 else
27336   cat >conftest.$ac_ext <<_ACEOF
27337 /* confdefs.h.  */
27338 _ACEOF
27339 cat confdefs.h >>conftest.$ac_ext
27340 cat >>conftest.$ac_ext <<_ACEOF
27341 /* end confdefs.h.  */
27342 $ac_includes_default
27343 typedef int ac__type_new_;
27344 int
27345 main ()
27346 {
27347 if ((ac__type_new_ *) 0)
27348   return 0;
27349 if (sizeof (ac__type_new_))
27350   return 0;
27351   ;
27352   return 0;
27353 }
27354 _ACEOF
27355 rm -f conftest.$ac_objext
27356 if { (ac_try="$ac_compile"
27357 case "(($ac_try" in
27358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27359   *) ac_try_echo=$ac_try;;
27360 esac
27361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27362   (eval "$ac_compile") 2>conftest.er1
27363   ac_status=$?
27364   grep -v '^ *+' conftest.er1 >conftest.err
27365   rm -f conftest.er1
27366   cat conftest.err >&5
27367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27368   (exit $ac_status); } && {
27369          test -z "$ac_c_werror_flag" ||
27370          test ! -s conftest.err
27371        } && test -s conftest.$ac_objext; then
27372   ac_cv_type_int=yes
27373 else
27374   echo "$as_me: failed program was:" >&5
27375 sed 's/^/| /' conftest.$ac_ext >&5
27376
27377         ac_cv_type_int=no
27378 fi
27379
27380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27381 fi
27382 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
27383 echo "${ECHO_T}$ac_cv_type_int" >&6; }
27384
27385 # The cast to long int works around a bug in the HP C Compiler
27386 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27387 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27388 # This bug is HP SR number 8606223364.
27389 { echo "$as_me:$LINENO: checking size of int" >&5
27390 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
27391 if test "${ac_cv_sizeof_int+set}" = set; then
27392   echo $ECHO_N "(cached) $ECHO_C" >&6
27393 else
27394   if test "$cross_compiling" = yes; then
27395   # Depending upon the size, compute the lo and hi bounds.
27396 cat >conftest.$ac_ext <<_ACEOF
27397 /* confdefs.h.  */
27398 _ACEOF
27399 cat confdefs.h >>conftest.$ac_ext
27400 cat >>conftest.$ac_ext <<_ACEOF
27401 /* end confdefs.h.  */
27402 $ac_includes_default
27403    typedef int ac__type_sizeof_;
27404 int
27405 main ()
27406 {
27407 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
27408 test_array @<:@0@:>@ = 0
27409
27410   ;
27411   return 0;
27412 }
27413 _ACEOF
27414 rm -f conftest.$ac_objext
27415 if { (ac_try="$ac_compile"
27416 case "(($ac_try" in
27417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27418   *) ac_try_echo=$ac_try;;
27419 esac
27420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27421   (eval "$ac_compile") 2>conftest.er1
27422   ac_status=$?
27423   grep -v '^ *+' conftest.er1 >conftest.err
27424   rm -f conftest.er1
27425   cat conftest.err >&5
27426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27427   (exit $ac_status); } && {
27428          test -z "$ac_c_werror_flag" ||
27429          test ! -s conftest.err
27430        } && test -s conftest.$ac_objext; then
27431   ac_lo=0 ac_mid=0
27432   while :; do
27433     cat >conftest.$ac_ext <<_ACEOF
27434 /* confdefs.h.  */
27435 _ACEOF
27436 cat confdefs.h >>conftest.$ac_ext
27437 cat >>conftest.$ac_ext <<_ACEOF
27438 /* end confdefs.h.  */
27439 $ac_includes_default
27440    typedef int ac__type_sizeof_;
27441 int
27442 main ()
27443 {
27444 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
27445 test_array @<:@0@:>@ = 0
27446
27447   ;
27448   return 0;
27449 }
27450 _ACEOF
27451 rm -f conftest.$ac_objext
27452 if { (ac_try="$ac_compile"
27453 case "(($ac_try" in
27454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27455   *) ac_try_echo=$ac_try;;
27456 esac
27457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27458   (eval "$ac_compile") 2>conftest.er1
27459   ac_status=$?
27460   grep -v '^ *+' conftest.er1 >conftest.err
27461   rm -f conftest.er1
27462   cat conftest.err >&5
27463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27464   (exit $ac_status); } && {
27465          test -z "$ac_c_werror_flag" ||
27466          test ! -s conftest.err
27467        } && test -s conftest.$ac_objext; then
27468   ac_hi=$ac_mid; break
27469 else
27470   echo "$as_me: failed program was:" >&5
27471 sed 's/^/| /' conftest.$ac_ext >&5
27472
27473         ac_lo=`expr $ac_mid + 1`
27474                         if test $ac_lo -le $ac_mid; then
27475                           ac_lo= ac_hi=
27476                           break
27477                         fi
27478                         ac_mid=`expr 2 '*' $ac_mid + 1`
27479 fi
27480
27481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27482   done
27483 else
27484   echo "$as_me: failed program was:" >&5
27485 sed 's/^/| /' conftest.$ac_ext >&5
27486
27487         cat >conftest.$ac_ext <<_ACEOF
27488 /* confdefs.h.  */
27489 _ACEOF
27490 cat confdefs.h >>conftest.$ac_ext
27491 cat >>conftest.$ac_ext <<_ACEOF
27492 /* end confdefs.h.  */
27493 $ac_includes_default
27494    typedef int ac__type_sizeof_;
27495 int
27496 main ()
27497 {
27498 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
27499 test_array @<:@0@:>@ = 0
27500
27501   ;
27502   return 0;
27503 }
27504 _ACEOF
27505 rm -f conftest.$ac_objext
27506 if { (ac_try="$ac_compile"
27507 case "(($ac_try" in
27508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27509   *) ac_try_echo=$ac_try;;
27510 esac
27511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27512   (eval "$ac_compile") 2>conftest.er1
27513   ac_status=$?
27514   grep -v '^ *+' conftest.er1 >conftest.err
27515   rm -f conftest.er1
27516   cat conftest.err >&5
27517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27518   (exit $ac_status); } && {
27519          test -z "$ac_c_werror_flag" ||
27520          test ! -s conftest.err
27521        } && test -s conftest.$ac_objext; then
27522   ac_hi=-1 ac_mid=-1
27523   while :; do
27524     cat >conftest.$ac_ext <<_ACEOF
27525 /* confdefs.h.  */
27526 _ACEOF
27527 cat confdefs.h >>conftest.$ac_ext
27528 cat >>conftest.$ac_ext <<_ACEOF
27529 /* end confdefs.h.  */
27530 $ac_includes_default
27531    typedef int ac__type_sizeof_;
27532 int
27533 main ()
27534 {
27535 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
27536 test_array @<:@0@:>@ = 0
27537
27538   ;
27539   return 0;
27540 }
27541 _ACEOF
27542 rm -f conftest.$ac_objext
27543 if { (ac_try="$ac_compile"
27544 case "(($ac_try" in
27545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27546   *) ac_try_echo=$ac_try;;
27547 esac
27548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27549   (eval "$ac_compile") 2>conftest.er1
27550   ac_status=$?
27551   grep -v '^ *+' conftest.er1 >conftest.err
27552   rm -f conftest.er1
27553   cat conftest.err >&5
27554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27555   (exit $ac_status); } && {
27556          test -z "$ac_c_werror_flag" ||
27557          test ! -s conftest.err
27558        } && test -s conftest.$ac_objext; then
27559   ac_lo=$ac_mid; break
27560 else
27561   echo "$as_me: failed program was:" >&5
27562 sed 's/^/| /' conftest.$ac_ext >&5
27563
27564         ac_hi=`expr '(' $ac_mid ')' - 1`
27565                         if test $ac_mid -le $ac_hi; then
27566                           ac_lo= ac_hi=
27567                           break
27568                         fi
27569                         ac_mid=`expr 2 '*' $ac_mid`
27570 fi
27571
27572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27573   done
27574 else
27575   echo "$as_me: failed program was:" >&5
27576 sed 's/^/| /' conftest.$ac_ext >&5
27577
27578         ac_lo= ac_hi=
27579 fi
27580
27581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27582 fi
27583
27584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27585 # Binary search between lo and hi bounds.
27586 while test "x$ac_lo" != "x$ac_hi"; do
27587   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27588   cat >conftest.$ac_ext <<_ACEOF
27589 /* confdefs.h.  */
27590 _ACEOF
27591 cat confdefs.h >>conftest.$ac_ext
27592 cat >>conftest.$ac_ext <<_ACEOF
27593 /* end confdefs.h.  */
27594 $ac_includes_default
27595    typedef int ac__type_sizeof_;
27596 int
27597 main ()
27598 {
27599 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
27600 test_array @<:@0@:>@ = 0
27601
27602   ;
27603   return 0;
27604 }
27605 _ACEOF
27606 rm -f conftest.$ac_objext
27607 if { (ac_try="$ac_compile"
27608 case "(($ac_try" in
27609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27610   *) ac_try_echo=$ac_try;;
27611 esac
27612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27613   (eval "$ac_compile") 2>conftest.er1
27614   ac_status=$?
27615   grep -v '^ *+' conftest.er1 >conftest.err
27616   rm -f conftest.er1
27617   cat conftest.err >&5
27618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27619   (exit $ac_status); } && {
27620          test -z "$ac_c_werror_flag" ||
27621          test ! -s conftest.err
27622        } && test -s conftest.$ac_objext; then
27623   ac_hi=$ac_mid
27624 else
27625   echo "$as_me: failed program was:" >&5
27626 sed 's/^/| /' conftest.$ac_ext >&5
27627
27628         ac_lo=`expr '(' $ac_mid ')' + 1`
27629 fi
27630
27631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27632 done
27633 case $ac_lo in
27634 ?*) ac_cv_sizeof_int=$ac_lo;;
27635 '') if test "$ac_cv_type_int" = yes; then
27636      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
27637 See \`config.log' for more details." >&5
27638 echo "$as_me: error: cannot compute sizeof (int)
27639 See \`config.log' for more details." >&2;}
27640    { (exit 77); exit 77; }; }
27641    else
27642      ac_cv_sizeof_int=0
27643    fi ;;
27644 esac
27645 else
27646   cat >conftest.$ac_ext <<_ACEOF
27647 /* confdefs.h.  */
27648 _ACEOF
27649 cat confdefs.h >>conftest.$ac_ext
27650 cat >>conftest.$ac_ext <<_ACEOF
27651 /* end confdefs.h.  */
27652 $ac_includes_default
27653    typedef int ac__type_sizeof_;
27654 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
27655 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
27656 @%:@include <stdio.h>
27657 @%:@include <stdlib.h>
27658 int
27659 main ()
27660 {
27661
27662   FILE *f = fopen ("conftest.val", "w");
27663   if (! f)
27664     return 1;
27665   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
27666     {
27667       long int i = longval ();
27668       if (i != ((long int) (sizeof (ac__type_sizeof_))))
27669         return 1;
27670       fprintf (f, "%ld\n", i);
27671     }
27672   else
27673     {
27674       unsigned long int i = ulongval ();
27675       if (i != ((long int) (sizeof (ac__type_sizeof_))))
27676         return 1;
27677       fprintf (f, "%lu\n", i);
27678     }
27679   return ferror (f) || fclose (f) != 0;
27680
27681   ;
27682   return 0;
27683 }
27684 _ACEOF
27685 rm -f conftest$ac_exeext
27686 if { (ac_try="$ac_link"
27687 case "(($ac_try" in
27688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27689   *) ac_try_echo=$ac_try;;
27690 esac
27691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27692   (eval "$ac_link") 2>&5
27693   ac_status=$?
27694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27695   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27696   { (case "(($ac_try" in
27697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27698   *) ac_try_echo=$ac_try;;
27699 esac
27700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27701   (eval "$ac_try") 2>&5
27702   ac_status=$?
27703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27704   (exit $ac_status); }; }; then
27705   ac_cv_sizeof_int=`cat conftest.val`
27706 else
27707   echo "$as_me: program exited with status $ac_status" >&5
27708 echo "$as_me: failed program was:" >&5
27709 sed 's/^/| /' conftest.$ac_ext >&5
27710
27711 ( exit $ac_status )
27712 if test "$ac_cv_type_int" = yes; then
27713      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
27714 See \`config.log' for more details." >&5
27715 echo "$as_me: error: cannot compute sizeof (int)
27716 See \`config.log' for more details." >&2;}
27717    { (exit 77); exit 77; }; }
27718    else
27719      ac_cv_sizeof_int=0
27720    fi
27721 fi
27722 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27723 fi
27724 rm -f conftest.val
27725 fi
27726 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
27727 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
27728
27729
27730
27731 cat >>confdefs.h <<_ACEOF
27732 @%:@define SIZEOF_INT $ac_cv_sizeof_int
27733 _ACEOF
27734
27735
27736 { echo "$as_me:$LINENO: checking for long" >&5
27737 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
27738 if test "${ac_cv_type_long+set}" = set; then
27739   echo $ECHO_N "(cached) $ECHO_C" >&6
27740 else
27741   cat >conftest.$ac_ext <<_ACEOF
27742 /* confdefs.h.  */
27743 _ACEOF
27744 cat confdefs.h >>conftest.$ac_ext
27745 cat >>conftest.$ac_ext <<_ACEOF
27746 /* end confdefs.h.  */
27747 $ac_includes_default
27748 typedef long ac__type_new_;
27749 int
27750 main ()
27751 {
27752 if ((ac__type_new_ *) 0)
27753   return 0;
27754 if (sizeof (ac__type_new_))
27755   return 0;
27756   ;
27757   return 0;
27758 }
27759 _ACEOF
27760 rm -f conftest.$ac_objext
27761 if { (ac_try="$ac_compile"
27762 case "(($ac_try" in
27763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27764   *) ac_try_echo=$ac_try;;
27765 esac
27766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27767   (eval "$ac_compile") 2>conftest.er1
27768   ac_status=$?
27769   grep -v '^ *+' conftest.er1 >conftest.err
27770   rm -f conftest.er1
27771   cat conftest.err >&5
27772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27773   (exit $ac_status); } && {
27774          test -z "$ac_c_werror_flag" ||
27775          test ! -s conftest.err
27776        } && test -s conftest.$ac_objext; then
27777   ac_cv_type_long=yes
27778 else
27779   echo "$as_me: failed program was:" >&5
27780 sed 's/^/| /' conftest.$ac_ext >&5
27781
27782         ac_cv_type_long=no
27783 fi
27784
27785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27786 fi
27787 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
27788 echo "${ECHO_T}$ac_cv_type_long" >&6; }
27789
27790 # The cast to long int works around a bug in the HP C Compiler
27791 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27792 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27793 # This bug is HP SR number 8606223364.
27794 { echo "$as_me:$LINENO: checking size of long" >&5
27795 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
27796 if test "${ac_cv_sizeof_long+set}" = set; then
27797   echo $ECHO_N "(cached) $ECHO_C" >&6
27798 else
27799   if test "$cross_compiling" = yes; then
27800   # Depending upon the size, compute the lo and hi bounds.
27801 cat >conftest.$ac_ext <<_ACEOF
27802 /* confdefs.h.  */
27803 _ACEOF
27804 cat confdefs.h >>conftest.$ac_ext
27805 cat >>conftest.$ac_ext <<_ACEOF
27806 /* end confdefs.h.  */
27807 $ac_includes_default
27808    typedef long ac__type_sizeof_;
27809 int
27810 main ()
27811 {
27812 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
27813 test_array @<:@0@:>@ = 0
27814
27815   ;
27816   return 0;
27817 }
27818 _ACEOF
27819 rm -f conftest.$ac_objext
27820 if { (ac_try="$ac_compile"
27821 case "(($ac_try" in
27822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27823   *) ac_try_echo=$ac_try;;
27824 esac
27825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27826   (eval "$ac_compile") 2>conftest.er1
27827   ac_status=$?
27828   grep -v '^ *+' conftest.er1 >conftest.err
27829   rm -f conftest.er1
27830   cat conftest.err >&5
27831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27832   (exit $ac_status); } && {
27833          test -z "$ac_c_werror_flag" ||
27834          test ! -s conftest.err
27835        } && test -s conftest.$ac_objext; then
27836   ac_lo=0 ac_mid=0
27837   while :; do
27838     cat >conftest.$ac_ext <<_ACEOF
27839 /* confdefs.h.  */
27840 _ACEOF
27841 cat confdefs.h >>conftest.$ac_ext
27842 cat >>conftest.$ac_ext <<_ACEOF
27843 /* end confdefs.h.  */
27844 $ac_includes_default
27845    typedef long ac__type_sizeof_;
27846 int
27847 main ()
27848 {
27849 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
27850 test_array @<:@0@:>@ = 0
27851
27852   ;
27853   return 0;
27854 }
27855 _ACEOF
27856 rm -f conftest.$ac_objext
27857 if { (ac_try="$ac_compile"
27858 case "(($ac_try" in
27859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27860   *) ac_try_echo=$ac_try;;
27861 esac
27862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27863   (eval "$ac_compile") 2>conftest.er1
27864   ac_status=$?
27865   grep -v '^ *+' conftest.er1 >conftest.err
27866   rm -f conftest.er1
27867   cat conftest.err >&5
27868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27869   (exit $ac_status); } && {
27870          test -z "$ac_c_werror_flag" ||
27871          test ! -s conftest.err
27872        } && test -s conftest.$ac_objext; then
27873   ac_hi=$ac_mid; break
27874 else
27875   echo "$as_me: failed program was:" >&5
27876 sed 's/^/| /' conftest.$ac_ext >&5
27877
27878         ac_lo=`expr $ac_mid + 1`
27879                         if test $ac_lo -le $ac_mid; then
27880                           ac_lo= ac_hi=
27881                           break
27882                         fi
27883                         ac_mid=`expr 2 '*' $ac_mid + 1`
27884 fi
27885
27886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27887   done
27888 else
27889   echo "$as_me: failed program was:" >&5
27890 sed 's/^/| /' conftest.$ac_ext >&5
27891
27892         cat >conftest.$ac_ext <<_ACEOF
27893 /* confdefs.h.  */
27894 _ACEOF
27895 cat confdefs.h >>conftest.$ac_ext
27896 cat >>conftest.$ac_ext <<_ACEOF
27897 /* end confdefs.h.  */
27898 $ac_includes_default
27899    typedef long ac__type_sizeof_;
27900 int
27901 main ()
27902 {
27903 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
27904 test_array @<:@0@:>@ = 0
27905
27906   ;
27907   return 0;
27908 }
27909 _ACEOF
27910 rm -f conftest.$ac_objext
27911 if { (ac_try="$ac_compile"
27912 case "(($ac_try" in
27913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27914   *) ac_try_echo=$ac_try;;
27915 esac
27916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27917   (eval "$ac_compile") 2>conftest.er1
27918   ac_status=$?
27919   grep -v '^ *+' conftest.er1 >conftest.err
27920   rm -f conftest.er1
27921   cat conftest.err >&5
27922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27923   (exit $ac_status); } && {
27924          test -z "$ac_c_werror_flag" ||
27925          test ! -s conftest.err
27926        } && test -s conftest.$ac_objext; then
27927   ac_hi=-1 ac_mid=-1
27928   while :; do
27929     cat >conftest.$ac_ext <<_ACEOF
27930 /* confdefs.h.  */
27931 _ACEOF
27932 cat confdefs.h >>conftest.$ac_ext
27933 cat >>conftest.$ac_ext <<_ACEOF
27934 /* end confdefs.h.  */
27935 $ac_includes_default
27936    typedef long ac__type_sizeof_;
27937 int
27938 main ()
27939 {
27940 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
27941 test_array @<:@0@:>@ = 0
27942
27943   ;
27944   return 0;
27945 }
27946 _ACEOF
27947 rm -f conftest.$ac_objext
27948 if { (ac_try="$ac_compile"
27949 case "(($ac_try" in
27950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27951   *) ac_try_echo=$ac_try;;
27952 esac
27953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27954   (eval "$ac_compile") 2>conftest.er1
27955   ac_status=$?
27956   grep -v '^ *+' conftest.er1 >conftest.err
27957   rm -f conftest.er1
27958   cat conftest.err >&5
27959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27960   (exit $ac_status); } && {
27961          test -z "$ac_c_werror_flag" ||
27962          test ! -s conftest.err
27963        } && test -s conftest.$ac_objext; then
27964   ac_lo=$ac_mid; break
27965 else
27966   echo "$as_me: failed program was:" >&5
27967 sed 's/^/| /' conftest.$ac_ext >&5
27968
27969         ac_hi=`expr '(' $ac_mid ')' - 1`
27970                         if test $ac_mid -le $ac_hi; then
27971                           ac_lo= ac_hi=
27972                           break
27973                         fi
27974                         ac_mid=`expr 2 '*' $ac_mid`
27975 fi
27976
27977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27978   done
27979 else
27980   echo "$as_me: failed program was:" >&5
27981 sed 's/^/| /' conftest.$ac_ext >&5
27982
27983         ac_lo= ac_hi=
27984 fi
27985
27986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27987 fi
27988
27989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27990 # Binary search between lo and hi bounds.
27991 while test "x$ac_lo" != "x$ac_hi"; do
27992   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27993   cat >conftest.$ac_ext <<_ACEOF
27994 /* confdefs.h.  */
27995 _ACEOF
27996 cat confdefs.h >>conftest.$ac_ext
27997 cat >>conftest.$ac_ext <<_ACEOF
27998 /* end confdefs.h.  */
27999 $ac_includes_default
28000    typedef long ac__type_sizeof_;
28001 int
28002 main ()
28003 {
28004 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
28005 test_array @<:@0@:>@ = 0
28006
28007   ;
28008   return 0;
28009 }
28010 _ACEOF
28011 rm -f conftest.$ac_objext
28012 if { (ac_try="$ac_compile"
28013 case "(($ac_try" in
28014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28015   *) ac_try_echo=$ac_try;;
28016 esac
28017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28018   (eval "$ac_compile") 2>conftest.er1
28019   ac_status=$?
28020   grep -v '^ *+' conftest.er1 >conftest.err
28021   rm -f conftest.er1
28022   cat conftest.err >&5
28023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28024   (exit $ac_status); } && {
28025          test -z "$ac_c_werror_flag" ||
28026          test ! -s conftest.err
28027        } && test -s conftest.$ac_objext; then
28028   ac_hi=$ac_mid
28029 else
28030   echo "$as_me: failed program was:" >&5
28031 sed 's/^/| /' conftest.$ac_ext >&5
28032
28033         ac_lo=`expr '(' $ac_mid ')' + 1`
28034 fi
28035
28036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28037 done
28038 case $ac_lo in
28039 ?*) ac_cv_sizeof_long=$ac_lo;;
28040 '') if test "$ac_cv_type_long" = yes; then
28041      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
28042 See \`config.log' for more details." >&5
28043 echo "$as_me: error: cannot compute sizeof (long)
28044 See \`config.log' for more details." >&2;}
28045    { (exit 77); exit 77; }; }
28046    else
28047      ac_cv_sizeof_long=0
28048    fi ;;
28049 esac
28050 else
28051   cat >conftest.$ac_ext <<_ACEOF
28052 /* confdefs.h.  */
28053 _ACEOF
28054 cat confdefs.h >>conftest.$ac_ext
28055 cat >>conftest.$ac_ext <<_ACEOF
28056 /* end confdefs.h.  */
28057 $ac_includes_default
28058    typedef long ac__type_sizeof_;
28059 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28060 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28061 @%:@include <stdio.h>
28062 @%:@include <stdlib.h>
28063 int
28064 main ()
28065 {
28066
28067   FILE *f = fopen ("conftest.val", "w");
28068   if (! f)
28069     return 1;
28070   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
28071     {
28072       long int i = longval ();
28073       if (i != ((long int) (sizeof (ac__type_sizeof_))))
28074         return 1;
28075       fprintf (f, "%ld\n", i);
28076     }
28077   else
28078     {
28079       unsigned long int i = ulongval ();
28080       if (i != ((long int) (sizeof (ac__type_sizeof_))))
28081         return 1;
28082       fprintf (f, "%lu\n", i);
28083     }
28084   return ferror (f) || fclose (f) != 0;
28085
28086   ;
28087   return 0;
28088 }
28089 _ACEOF
28090 rm -f conftest$ac_exeext
28091 if { (ac_try="$ac_link"
28092 case "(($ac_try" in
28093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28094   *) ac_try_echo=$ac_try;;
28095 esac
28096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28097   (eval "$ac_link") 2>&5
28098   ac_status=$?
28099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28100   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28101   { (case "(($ac_try" in
28102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28103   *) ac_try_echo=$ac_try;;
28104 esac
28105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28106   (eval "$ac_try") 2>&5
28107   ac_status=$?
28108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28109   (exit $ac_status); }; }; then
28110   ac_cv_sizeof_long=`cat conftest.val`
28111 else
28112   echo "$as_me: program exited with status $ac_status" >&5
28113 echo "$as_me: failed program was:" >&5
28114 sed 's/^/| /' conftest.$ac_ext >&5
28115
28116 ( exit $ac_status )
28117 if test "$ac_cv_type_long" = yes; then
28118      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
28119 See \`config.log' for more details." >&5
28120 echo "$as_me: error: cannot compute sizeof (long)
28121 See \`config.log' for more details." >&2;}
28122    { (exit 77); exit 77; }; }
28123    else
28124      ac_cv_sizeof_long=0
28125    fi
28126 fi
28127 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28128 fi
28129 rm -f conftest.val
28130 fi
28131 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
28132 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
28133
28134
28135
28136 cat >>confdefs.h <<_ACEOF
28137 @%:@define SIZEOF_LONG $ac_cv_sizeof_long
28138 _ACEOF
28139
28140
28141 { echo "$as_me:$LINENO: checking for size_t" >&5
28142 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
28143 if test "${ac_cv_type_size_t+set}" = set; then
28144   echo $ECHO_N "(cached) $ECHO_C" >&6
28145 else
28146   cat >conftest.$ac_ext <<_ACEOF
28147 /* confdefs.h.  */
28148 _ACEOF
28149 cat confdefs.h >>conftest.$ac_ext
28150 cat >>conftest.$ac_ext <<_ACEOF
28151 /* end confdefs.h.  */
28152 $ac_includes_default
28153 typedef size_t ac__type_new_;
28154 int
28155 main ()
28156 {
28157 if ((ac__type_new_ *) 0)
28158   return 0;
28159 if (sizeof (ac__type_new_))
28160   return 0;
28161   ;
28162   return 0;
28163 }
28164 _ACEOF
28165 rm -f conftest.$ac_objext
28166 if { (ac_try="$ac_compile"
28167 case "(($ac_try" in
28168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28169   *) ac_try_echo=$ac_try;;
28170 esac
28171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28172   (eval "$ac_compile") 2>conftest.er1
28173   ac_status=$?
28174   grep -v '^ *+' conftest.er1 >conftest.err
28175   rm -f conftest.er1
28176   cat conftest.err >&5
28177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28178   (exit $ac_status); } && {
28179          test -z "$ac_c_werror_flag" ||
28180          test ! -s conftest.err
28181        } && test -s conftest.$ac_objext; then
28182   ac_cv_type_size_t=yes
28183 else
28184   echo "$as_me: failed program was:" >&5
28185 sed 's/^/| /' conftest.$ac_ext >&5
28186
28187         ac_cv_type_size_t=no
28188 fi
28189
28190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28191 fi
28192 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
28193 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
28194
28195 # The cast to long int works around a bug in the HP C Compiler
28196 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28197 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28198 # This bug is HP SR number 8606223364.
28199 { echo "$as_me:$LINENO: checking size of size_t" >&5
28200 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
28201 if test "${ac_cv_sizeof_size_t+set}" = set; then
28202   echo $ECHO_N "(cached) $ECHO_C" >&6
28203 else
28204   if test "$cross_compiling" = yes; then
28205   # Depending upon the size, compute the lo and hi bounds.
28206 cat >conftest.$ac_ext <<_ACEOF
28207 /* confdefs.h.  */
28208 _ACEOF
28209 cat confdefs.h >>conftest.$ac_ext
28210 cat >>conftest.$ac_ext <<_ACEOF
28211 /* end confdefs.h.  */
28212 $ac_includes_default
28213    typedef size_t ac__type_sizeof_;
28214 int
28215 main ()
28216 {
28217 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
28218 test_array @<:@0@:>@ = 0
28219
28220   ;
28221   return 0;
28222 }
28223 _ACEOF
28224 rm -f conftest.$ac_objext
28225 if { (ac_try="$ac_compile"
28226 case "(($ac_try" in
28227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28228   *) ac_try_echo=$ac_try;;
28229 esac
28230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28231   (eval "$ac_compile") 2>conftest.er1
28232   ac_status=$?
28233   grep -v '^ *+' conftest.er1 >conftest.err
28234   rm -f conftest.er1
28235   cat conftest.err >&5
28236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28237   (exit $ac_status); } && {
28238          test -z "$ac_c_werror_flag" ||
28239          test ! -s conftest.err
28240        } && test -s conftest.$ac_objext; then
28241   ac_lo=0 ac_mid=0
28242   while :; do
28243     cat >conftest.$ac_ext <<_ACEOF
28244 /* confdefs.h.  */
28245 _ACEOF
28246 cat confdefs.h >>conftest.$ac_ext
28247 cat >>conftest.$ac_ext <<_ACEOF
28248 /* end confdefs.h.  */
28249 $ac_includes_default
28250    typedef size_t ac__type_sizeof_;
28251 int
28252 main ()
28253 {
28254 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
28255 test_array @<:@0@:>@ = 0
28256
28257   ;
28258   return 0;
28259 }
28260 _ACEOF
28261 rm -f conftest.$ac_objext
28262 if { (ac_try="$ac_compile"
28263 case "(($ac_try" in
28264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28265   *) ac_try_echo=$ac_try;;
28266 esac
28267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28268   (eval "$ac_compile") 2>conftest.er1
28269   ac_status=$?
28270   grep -v '^ *+' conftest.er1 >conftest.err
28271   rm -f conftest.er1
28272   cat conftest.err >&5
28273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28274   (exit $ac_status); } && {
28275          test -z "$ac_c_werror_flag" ||
28276          test ! -s conftest.err
28277        } && test -s conftest.$ac_objext; then
28278   ac_hi=$ac_mid; break
28279 else
28280   echo "$as_me: failed program was:" >&5
28281 sed 's/^/| /' conftest.$ac_ext >&5
28282
28283         ac_lo=`expr $ac_mid + 1`
28284                         if test $ac_lo -le $ac_mid; then
28285                           ac_lo= ac_hi=
28286                           break
28287                         fi
28288                         ac_mid=`expr 2 '*' $ac_mid + 1`
28289 fi
28290
28291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28292   done
28293 else
28294   echo "$as_me: failed program was:" >&5
28295 sed 's/^/| /' conftest.$ac_ext >&5
28296
28297         cat >conftest.$ac_ext <<_ACEOF
28298 /* confdefs.h.  */
28299 _ACEOF
28300 cat confdefs.h >>conftest.$ac_ext
28301 cat >>conftest.$ac_ext <<_ACEOF
28302 /* end confdefs.h.  */
28303 $ac_includes_default
28304    typedef size_t ac__type_sizeof_;
28305 int
28306 main ()
28307 {
28308 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
28309 test_array @<:@0@:>@ = 0
28310
28311   ;
28312   return 0;
28313 }
28314 _ACEOF
28315 rm -f conftest.$ac_objext
28316 if { (ac_try="$ac_compile"
28317 case "(($ac_try" in
28318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28319   *) ac_try_echo=$ac_try;;
28320 esac
28321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28322   (eval "$ac_compile") 2>conftest.er1
28323   ac_status=$?
28324   grep -v '^ *+' conftest.er1 >conftest.err
28325   rm -f conftest.er1
28326   cat conftest.err >&5
28327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28328   (exit $ac_status); } && {
28329          test -z "$ac_c_werror_flag" ||
28330          test ! -s conftest.err
28331        } && test -s conftest.$ac_objext; then
28332   ac_hi=-1 ac_mid=-1
28333   while :; do
28334     cat >conftest.$ac_ext <<_ACEOF
28335 /* confdefs.h.  */
28336 _ACEOF
28337 cat confdefs.h >>conftest.$ac_ext
28338 cat >>conftest.$ac_ext <<_ACEOF
28339 /* end confdefs.h.  */
28340 $ac_includes_default
28341    typedef size_t ac__type_sizeof_;
28342 int
28343 main ()
28344 {
28345 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
28346 test_array @<:@0@:>@ = 0
28347
28348   ;
28349   return 0;
28350 }
28351 _ACEOF
28352 rm -f conftest.$ac_objext
28353 if { (ac_try="$ac_compile"
28354 case "(($ac_try" in
28355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28356   *) ac_try_echo=$ac_try;;
28357 esac
28358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28359   (eval "$ac_compile") 2>conftest.er1
28360   ac_status=$?
28361   grep -v '^ *+' conftest.er1 >conftest.err
28362   rm -f conftest.er1
28363   cat conftest.err >&5
28364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28365   (exit $ac_status); } && {
28366          test -z "$ac_c_werror_flag" ||
28367          test ! -s conftest.err
28368        } && test -s conftest.$ac_objext; then
28369   ac_lo=$ac_mid; break
28370 else
28371   echo "$as_me: failed program was:" >&5
28372 sed 's/^/| /' conftest.$ac_ext >&5
28373
28374         ac_hi=`expr '(' $ac_mid ')' - 1`
28375                         if test $ac_mid -le $ac_hi; then
28376                           ac_lo= ac_hi=
28377                           break
28378                         fi
28379                         ac_mid=`expr 2 '*' $ac_mid`
28380 fi
28381
28382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28383   done
28384 else
28385   echo "$as_me: failed program was:" >&5
28386 sed 's/^/| /' conftest.$ac_ext >&5
28387
28388         ac_lo= ac_hi=
28389 fi
28390
28391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28392 fi
28393
28394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28395 # Binary search between lo and hi bounds.
28396 while test "x$ac_lo" != "x$ac_hi"; do
28397   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28398   cat >conftest.$ac_ext <<_ACEOF
28399 /* confdefs.h.  */
28400 _ACEOF
28401 cat confdefs.h >>conftest.$ac_ext
28402 cat >>conftest.$ac_ext <<_ACEOF
28403 /* end confdefs.h.  */
28404 $ac_includes_default
28405    typedef size_t ac__type_sizeof_;
28406 int
28407 main ()
28408 {
28409 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
28410 test_array @<:@0@:>@ = 0
28411
28412   ;
28413   return 0;
28414 }
28415 _ACEOF
28416 rm -f conftest.$ac_objext
28417 if { (ac_try="$ac_compile"
28418 case "(($ac_try" in
28419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28420   *) ac_try_echo=$ac_try;;
28421 esac
28422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28423   (eval "$ac_compile") 2>conftest.er1
28424   ac_status=$?
28425   grep -v '^ *+' conftest.er1 >conftest.err
28426   rm -f conftest.er1
28427   cat conftest.err >&5
28428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28429   (exit $ac_status); } && {
28430          test -z "$ac_c_werror_flag" ||
28431          test ! -s conftest.err
28432        } && test -s conftest.$ac_objext; then
28433   ac_hi=$ac_mid
28434 else
28435   echo "$as_me: failed program was:" >&5
28436 sed 's/^/| /' conftest.$ac_ext >&5
28437
28438         ac_lo=`expr '(' $ac_mid ')' + 1`
28439 fi
28440
28441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28442 done
28443 case $ac_lo in
28444 ?*) ac_cv_sizeof_size_t=$ac_lo;;
28445 '') if test "$ac_cv_type_size_t" = yes; then
28446      { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
28447 See \`config.log' for more details." >&5
28448 echo "$as_me: error: cannot compute sizeof (size_t)
28449 See \`config.log' for more details." >&2;}
28450    { (exit 77); exit 77; }; }
28451    else
28452      ac_cv_sizeof_size_t=0
28453    fi ;;
28454 esac
28455 else
28456   cat >conftest.$ac_ext <<_ACEOF
28457 /* confdefs.h.  */
28458 _ACEOF
28459 cat confdefs.h >>conftest.$ac_ext
28460 cat >>conftest.$ac_ext <<_ACEOF
28461 /* end confdefs.h.  */
28462 $ac_includes_default
28463    typedef size_t ac__type_sizeof_;
28464 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28465 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28466 @%:@include <stdio.h>
28467 @%:@include <stdlib.h>
28468 int
28469 main ()
28470 {
28471
28472   FILE *f = fopen ("conftest.val", "w");
28473   if (! f)
28474     return 1;
28475   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
28476     {
28477       long int i = longval ();
28478       if (i != ((long int) (sizeof (ac__type_sizeof_))))
28479         return 1;
28480       fprintf (f, "%ld\n", i);
28481     }
28482   else
28483     {
28484       unsigned long int i = ulongval ();
28485       if (i != ((long int) (sizeof (ac__type_sizeof_))))
28486         return 1;
28487       fprintf (f, "%lu\n", i);
28488     }
28489   return ferror (f) || fclose (f) != 0;
28490
28491   ;
28492   return 0;
28493 }
28494 _ACEOF
28495 rm -f conftest$ac_exeext
28496 if { (ac_try="$ac_link"
28497 case "(($ac_try" in
28498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28499   *) ac_try_echo=$ac_try;;
28500 esac
28501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28502   (eval "$ac_link") 2>&5
28503   ac_status=$?
28504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28505   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28506   { (case "(($ac_try" in
28507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28508   *) ac_try_echo=$ac_try;;
28509 esac
28510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28511   (eval "$ac_try") 2>&5
28512   ac_status=$?
28513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28514   (exit $ac_status); }; }; then
28515   ac_cv_sizeof_size_t=`cat conftest.val`
28516 else
28517   echo "$as_me: program exited with status $ac_status" >&5
28518 echo "$as_me: failed program was:" >&5
28519 sed 's/^/| /' conftest.$ac_ext >&5
28520
28521 ( exit $ac_status )
28522 if test "$ac_cv_type_size_t" = yes; then
28523      { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
28524 See \`config.log' for more details." >&5
28525 echo "$as_me: error: cannot compute sizeof (size_t)
28526 See \`config.log' for more details." >&2;}
28527    { (exit 77); exit 77; }; }
28528    else
28529      ac_cv_sizeof_size_t=0
28530    fi
28531 fi
28532 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28533 fi
28534 rm -f conftest.val
28535 fi
28536 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
28537 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
28538
28539
28540
28541 cat >>confdefs.h <<_ACEOF
28542 @%:@define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
28543 _ACEOF
28544
28545
28546 { echo "$as_me:$LINENO: checking for socklen_t" >&5
28547 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
28548 if test "${ac_cv_type_socklen_t+set}" = set; then
28549   echo $ECHO_N "(cached) $ECHO_C" >&6
28550 else
28551   cat >conftest.$ac_ext <<_ACEOF
28552 /* confdefs.h.  */
28553 _ACEOF
28554 cat confdefs.h >>conftest.$ac_ext
28555 cat >>conftest.$ac_ext <<_ACEOF
28556 /* end confdefs.h.  */
28557 $ac_includes_default
28558 typedef socklen_t ac__type_new_;
28559 int
28560 main ()
28561 {
28562 if ((ac__type_new_ *) 0)
28563   return 0;
28564 if (sizeof (ac__type_new_))
28565   return 0;
28566   ;
28567   return 0;
28568 }
28569 _ACEOF
28570 rm -f conftest.$ac_objext
28571 if { (ac_try="$ac_compile"
28572 case "(($ac_try" in
28573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28574   *) ac_try_echo=$ac_try;;
28575 esac
28576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28577   (eval "$ac_compile") 2>conftest.er1
28578   ac_status=$?
28579   grep -v '^ *+' conftest.er1 >conftest.err
28580   rm -f conftest.er1
28581   cat conftest.err >&5
28582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28583   (exit $ac_status); } && {
28584          test -z "$ac_c_werror_flag" ||
28585          test ! -s conftest.err
28586        } && test -s conftest.$ac_objext; then
28587   ac_cv_type_socklen_t=yes
28588 else
28589   echo "$as_me: failed program was:" >&5
28590 sed 's/^/| /' conftest.$ac_ext >&5
28591
28592         ac_cv_type_socklen_t=no
28593 fi
28594
28595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28596 fi
28597 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
28598 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
28599
28600 # The cast to long int works around a bug in the HP C Compiler
28601 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28602 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28603 # This bug is HP SR number 8606223364.
28604 { echo "$as_me:$LINENO: checking size of socklen_t" >&5
28605 echo $ECHO_N "checking size of socklen_t... $ECHO_C" >&6; }
28606 if test "${ac_cv_sizeof_socklen_t+set}" = set; then
28607   echo $ECHO_N "(cached) $ECHO_C" >&6
28608 else
28609   if test "$cross_compiling" = yes; then
28610   # Depending upon the size, compute the lo and hi bounds.
28611 cat >conftest.$ac_ext <<_ACEOF
28612 /* confdefs.h.  */
28613 _ACEOF
28614 cat confdefs.h >>conftest.$ac_ext
28615 cat >>conftest.$ac_ext <<_ACEOF
28616 /* end confdefs.h.  */
28617 $ac_includes_default
28618    typedef socklen_t ac__type_sizeof_;
28619 int
28620 main ()
28621 {
28622 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
28623 test_array @<:@0@:>@ = 0
28624
28625   ;
28626   return 0;
28627 }
28628 _ACEOF
28629 rm -f conftest.$ac_objext
28630 if { (ac_try="$ac_compile"
28631 case "(($ac_try" in
28632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28633   *) ac_try_echo=$ac_try;;
28634 esac
28635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28636   (eval "$ac_compile") 2>conftest.er1
28637   ac_status=$?
28638   grep -v '^ *+' conftest.er1 >conftest.err
28639   rm -f conftest.er1
28640   cat conftest.err >&5
28641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28642   (exit $ac_status); } && {
28643          test -z "$ac_c_werror_flag" ||
28644          test ! -s conftest.err
28645        } && test -s conftest.$ac_objext; then
28646   ac_lo=0 ac_mid=0
28647   while :; do
28648     cat >conftest.$ac_ext <<_ACEOF
28649 /* confdefs.h.  */
28650 _ACEOF
28651 cat confdefs.h >>conftest.$ac_ext
28652 cat >>conftest.$ac_ext <<_ACEOF
28653 /* end confdefs.h.  */
28654 $ac_includes_default
28655    typedef socklen_t ac__type_sizeof_;
28656 int
28657 main ()
28658 {
28659 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
28660 test_array @<:@0@:>@ = 0
28661
28662   ;
28663   return 0;
28664 }
28665 _ACEOF
28666 rm -f conftest.$ac_objext
28667 if { (ac_try="$ac_compile"
28668 case "(($ac_try" in
28669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28670   *) ac_try_echo=$ac_try;;
28671 esac
28672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28673   (eval "$ac_compile") 2>conftest.er1
28674   ac_status=$?
28675   grep -v '^ *+' conftest.er1 >conftest.err
28676   rm -f conftest.er1
28677   cat conftest.err >&5
28678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28679   (exit $ac_status); } && {
28680          test -z "$ac_c_werror_flag" ||
28681          test ! -s conftest.err
28682        } && test -s conftest.$ac_objext; then
28683   ac_hi=$ac_mid; break
28684 else
28685   echo "$as_me: failed program was:" >&5
28686 sed 's/^/| /' conftest.$ac_ext >&5
28687
28688         ac_lo=`expr $ac_mid + 1`
28689                         if test $ac_lo -le $ac_mid; then
28690                           ac_lo= ac_hi=
28691                           break
28692                         fi
28693                         ac_mid=`expr 2 '*' $ac_mid + 1`
28694 fi
28695
28696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28697   done
28698 else
28699   echo "$as_me: failed program was:" >&5
28700 sed 's/^/| /' conftest.$ac_ext >&5
28701
28702         cat >conftest.$ac_ext <<_ACEOF
28703 /* confdefs.h.  */
28704 _ACEOF
28705 cat confdefs.h >>conftest.$ac_ext
28706 cat >>conftest.$ac_ext <<_ACEOF
28707 /* end confdefs.h.  */
28708 $ac_includes_default
28709    typedef socklen_t ac__type_sizeof_;
28710 int
28711 main ()
28712 {
28713 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
28714 test_array @<:@0@:>@ = 0
28715
28716   ;
28717   return 0;
28718 }
28719 _ACEOF
28720 rm -f conftest.$ac_objext
28721 if { (ac_try="$ac_compile"
28722 case "(($ac_try" in
28723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28724   *) ac_try_echo=$ac_try;;
28725 esac
28726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28727   (eval "$ac_compile") 2>conftest.er1
28728   ac_status=$?
28729   grep -v '^ *+' conftest.er1 >conftest.err
28730   rm -f conftest.er1
28731   cat conftest.err >&5
28732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28733   (exit $ac_status); } && {
28734          test -z "$ac_c_werror_flag" ||
28735          test ! -s conftest.err
28736        } && test -s conftest.$ac_objext; then
28737   ac_hi=-1 ac_mid=-1
28738   while :; do
28739     cat >conftest.$ac_ext <<_ACEOF
28740 /* confdefs.h.  */
28741 _ACEOF
28742 cat confdefs.h >>conftest.$ac_ext
28743 cat >>conftest.$ac_ext <<_ACEOF
28744 /* end confdefs.h.  */
28745 $ac_includes_default
28746    typedef socklen_t ac__type_sizeof_;
28747 int
28748 main ()
28749 {
28750 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
28751 test_array @<:@0@:>@ = 0
28752
28753   ;
28754   return 0;
28755 }
28756 _ACEOF
28757 rm -f conftest.$ac_objext
28758 if { (ac_try="$ac_compile"
28759 case "(($ac_try" in
28760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28761   *) ac_try_echo=$ac_try;;
28762 esac
28763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28764   (eval "$ac_compile") 2>conftest.er1
28765   ac_status=$?
28766   grep -v '^ *+' conftest.er1 >conftest.err
28767   rm -f conftest.er1
28768   cat conftest.err >&5
28769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28770   (exit $ac_status); } && {
28771          test -z "$ac_c_werror_flag" ||
28772          test ! -s conftest.err
28773        } && test -s conftest.$ac_objext; then
28774   ac_lo=$ac_mid; break
28775 else
28776   echo "$as_me: failed program was:" >&5
28777 sed 's/^/| /' conftest.$ac_ext >&5
28778
28779         ac_hi=`expr '(' $ac_mid ')' - 1`
28780                         if test $ac_mid -le $ac_hi; then
28781                           ac_lo= ac_hi=
28782                           break
28783                         fi
28784                         ac_mid=`expr 2 '*' $ac_mid`
28785 fi
28786
28787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28788   done
28789 else
28790   echo "$as_me: failed program was:" >&5
28791 sed 's/^/| /' conftest.$ac_ext >&5
28792
28793         ac_lo= ac_hi=
28794 fi
28795
28796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28797 fi
28798
28799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28800 # Binary search between lo and hi bounds.
28801 while test "x$ac_lo" != "x$ac_hi"; do
28802   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28803   cat >conftest.$ac_ext <<_ACEOF
28804 /* confdefs.h.  */
28805 _ACEOF
28806 cat confdefs.h >>conftest.$ac_ext
28807 cat >>conftest.$ac_ext <<_ACEOF
28808 /* end confdefs.h.  */
28809 $ac_includes_default
28810    typedef socklen_t ac__type_sizeof_;
28811 int
28812 main ()
28813 {
28814 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
28815 test_array @<:@0@:>@ = 0
28816
28817   ;
28818   return 0;
28819 }
28820 _ACEOF
28821 rm -f conftest.$ac_objext
28822 if { (ac_try="$ac_compile"
28823 case "(($ac_try" in
28824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28825   *) ac_try_echo=$ac_try;;
28826 esac
28827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28828   (eval "$ac_compile") 2>conftest.er1
28829   ac_status=$?
28830   grep -v '^ *+' conftest.er1 >conftest.err
28831   rm -f conftest.er1
28832   cat conftest.err >&5
28833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28834   (exit $ac_status); } && {
28835          test -z "$ac_c_werror_flag" ||
28836          test ! -s conftest.err
28837        } && test -s conftest.$ac_objext; then
28838   ac_hi=$ac_mid
28839 else
28840   echo "$as_me: failed program was:" >&5
28841 sed 's/^/| /' conftest.$ac_ext >&5
28842
28843         ac_lo=`expr '(' $ac_mid ')' + 1`
28844 fi
28845
28846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28847 done
28848 case $ac_lo in
28849 ?*) ac_cv_sizeof_socklen_t=$ac_lo;;
28850 '') if test "$ac_cv_type_socklen_t" = yes; then
28851      { { echo "$as_me:$LINENO: error: cannot compute sizeof (socklen_t)
28852 See \`config.log' for more details." >&5
28853 echo "$as_me: error: cannot compute sizeof (socklen_t)
28854 See \`config.log' for more details." >&2;}
28855    { (exit 77); exit 77; }; }
28856    else
28857      ac_cv_sizeof_socklen_t=0
28858    fi ;;
28859 esac
28860 else
28861   cat >conftest.$ac_ext <<_ACEOF
28862 /* confdefs.h.  */
28863 _ACEOF
28864 cat confdefs.h >>conftest.$ac_ext
28865 cat >>conftest.$ac_ext <<_ACEOF
28866 /* end confdefs.h.  */
28867 $ac_includes_default
28868    typedef socklen_t ac__type_sizeof_;
28869 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28870 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28871 @%:@include <stdio.h>
28872 @%:@include <stdlib.h>
28873 int
28874 main ()
28875 {
28876
28877   FILE *f = fopen ("conftest.val", "w");
28878   if (! f)
28879     return 1;
28880   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
28881     {
28882       long int i = longval ();
28883       if (i != ((long int) (sizeof (ac__type_sizeof_))))
28884         return 1;
28885       fprintf (f, "%ld\n", i);
28886     }
28887   else
28888     {
28889       unsigned long int i = ulongval ();
28890       if (i != ((long int) (sizeof (ac__type_sizeof_))))
28891         return 1;
28892       fprintf (f, "%lu\n", i);
28893     }
28894   return ferror (f) || fclose (f) != 0;
28895
28896   ;
28897   return 0;
28898 }
28899 _ACEOF
28900 rm -f conftest$ac_exeext
28901 if { (ac_try="$ac_link"
28902 case "(($ac_try" in
28903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28904   *) ac_try_echo=$ac_try;;
28905 esac
28906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28907   (eval "$ac_link") 2>&5
28908   ac_status=$?
28909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28910   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28911   { (case "(($ac_try" in
28912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28913   *) ac_try_echo=$ac_try;;
28914 esac
28915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28916   (eval "$ac_try") 2>&5
28917   ac_status=$?
28918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28919   (exit $ac_status); }; }; then
28920   ac_cv_sizeof_socklen_t=`cat conftest.val`
28921 else
28922   echo "$as_me: program exited with status $ac_status" >&5
28923 echo "$as_me: failed program was:" >&5
28924 sed 's/^/| /' conftest.$ac_ext >&5
28925
28926 ( exit $ac_status )
28927 if test "$ac_cv_type_socklen_t" = yes; then
28928      { { echo "$as_me:$LINENO: error: cannot compute sizeof (socklen_t)
28929 See \`config.log' for more details." >&5
28930 echo "$as_me: error: cannot compute sizeof (socklen_t)
28931 See \`config.log' for more details." >&2;}
28932    { (exit 77); exit 77; }; }
28933    else
28934      ac_cv_sizeof_socklen_t=0
28935    fi
28936 fi
28937 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28938 fi
28939 rm -f conftest.val
28940 fi
28941 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_socklen_t" >&5
28942 echo "${ECHO_T}$ac_cv_sizeof_socklen_t" >&6; }
28943
28944
28945
28946 cat >>confdefs.h <<_ACEOF
28947 @%:@define SIZEOF_SOCKLEN_T $ac_cv_sizeof_socklen_t
28948 _ACEOF
28949
28950
28951
28952
28953
28954 cat >>confdefs.h <<_ACEOF
28955 @%:@define NFS_STATEDIR "$statedir"
28956 _ACEOF
28957
28958
28959 if test "x$cross_compiling" = "xno"; then
28960         CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-"$CFLAGS"}
28961         CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-"$CXXFLAGS"}
28962         CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-"$CPPFLAGS"}
28963         LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-"$LDFLAGS"}
28964 else
28965         CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-""}
28966         CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-""}
28967         CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-""}
28968         LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-""}
28969 fi
28970
28971
28972
28973
28974
28975
28976
28977
28978
28979
28980
28981 case $host in
28982   alpha*)
28983     ARCHFLAGS="-mno-fp-regs -ffixed-8" ;;
28984   *)
28985     ARCHFLAGS="" ;;
28986 esac
28987
28988 my_am_cflags="-Wall $ARCHFLAGS -pipe"
28989
28990 AM_CPPFLAGS="-I\${top_srcdir}/support/include -D_FILE_OFFSET_BITS=64"
28991
28992 AM_CFLAGS="$my_am_cflags"
28993
28994
28995 # Make sure that $ACLOCAL_FLAGS are used during a rebuild
28996 ACLOCAL_AMFLAGS="-I $ac_macro_dir \$(ACLOCAL_FLAGS)"
28997
28998
28999 ac_config_files="$ac_config_files Makefile linux-nfs/Makefile support/Makefile support/export/Makefile support/include/nfs/Makefile support/include/rpcsvc/Makefile support/include/sys/fs/Makefile support/include/sys/Makefile support/include/Makefile support/misc/Makefile support/nfs/Makefile tools/Makefile tools/getiversion/Makefile tools/locktest/Makefile tools/nlmtest/Makefile tools/rpcdebug/Makefile tools/rpcgen/Makefile utils/Makefile utils/exportfs/Makefile utils/gssd/Makefile utils/idmapd/Makefile utils/lockd/Makefile utils/mount/Makefile utils/mountd/Makefile utils/nfsd/Makefile utils/nfsstat/Makefile utils/rquotad/Makefile utils/showmount/Makefile utils/statd/Makefile"
29000
29001 cat >confcache <<\_ACEOF
29002 # This file is a shell script that caches the results of configure
29003 # tests run on this system so they can be shared between configure
29004 # scripts and configure runs, see configure's option --config-cache.
29005 # It is not useful on other systems.  If it contains results you don't
29006 # want to keep, you may remove or edit it.
29007 #
29008 # config.status only pays attention to the cache file if you give it
29009 # the --recheck option to rerun configure.
29010 #
29011 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29012 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29013 # following values.
29014
29015 _ACEOF
29016
29017 # The following way of writing the cache mishandles newlines in values,
29018 # but we know of no workaround that is simple, portable, and efficient.
29019 # So, we kill variables containing newlines.
29020 # Ultrix sh set writes to stderr and can't be redirected directly,
29021 # and sets the high bit in the cache file unless we assign to the vars.
29022 (
29023   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29024     eval ac_val=\$$ac_var
29025     case $ac_val in #(
29026     *${as_nl}*)
29027       case $ac_var in #(
29028       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
29029 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
29030       esac
29031       case $ac_var in #(
29032       _ | IFS | as_nl) ;; #(
29033       *) $as_unset $ac_var ;;
29034       esac ;;
29035     esac
29036   done
29037
29038   (set) 2>&1 |
29039     case $as_nl`(ac_space=' '; set) 2>&1` in #(
29040     *${as_nl}ac_space=\ *)
29041       # `set' does not quote correctly, so add quotes (double-quote
29042       # substitution turns \\\\ into \\, and sed turns \\ into \).
29043       sed -n \
29044         "s/'/'\\\\''/g;
29045           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29046       ;; #(
29047     *)
29048       # `set' quotes correctly as required by POSIX, so do not add quotes.
29049       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29050       ;;
29051     esac |
29052     sort
29053 ) |
29054   sed '
29055      /^ac_cv_env_/b end
29056      t clear
29057      :clear
29058      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29059      t end
29060      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29061      :end' >>confcache
29062 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
29063   if test -w "$cache_file"; then
29064     test "x$cache_file" != "x/dev/null" &&
29065       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
29066 echo "$as_me: updating cache $cache_file" >&6;}
29067     cat confcache >$cache_file
29068   else
29069     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
29070 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29071   fi
29072 fi
29073 rm -f confcache
29074
29075 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29076 # Let make expand exec_prefix.
29077 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29078
29079 DEFS=-DHAVE_CONFIG_H
29080
29081 ac_libobjs=
29082 ac_ltlibobjs=
29083 for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
29084   # 1. Remove the extension, and $U if already installed.
29085   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
29086   ac_i=`echo "$ac_i" | sed "$ac_script"`
29087   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
29088   #    will be set to the directory where LIBOBJS objects are built.
29089   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29090   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
29091 done
29092 LIB@&t@OBJS=$ac_libobjs
29093
29094 LTLIBOBJS=$ac_ltlibobjs
29095
29096
29097 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
29098   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
29099 Usually this means the macro was only invoked conditionally." >&5
29100 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
29101 Usually this means the macro was only invoked conditionally." >&2;}
29102    { (exit 1); exit 1; }; }
29103 fi
29104 if test -z "${CONFIG_NFSV4_TRUE}" && test -z "${CONFIG_NFSV4_FALSE}"; then
29105   { { echo "$as_me:$LINENO: error: conditional \"CONFIG_NFSV4\" was never defined.
29106 Usually this means the macro was only invoked conditionally." >&5
29107 echo "$as_me: error: conditional \"CONFIG_NFSV4\" was never defined.
29108 Usually this means the macro was only invoked conditionally." >&2;}
29109    { (exit 1); exit 1; }; }
29110 fi
29111 if test -z "${CONFIG_GSS_TRUE}" && test -z "${CONFIG_GSS_FALSE}"; then
29112   { { echo "$as_me:$LINENO: error: conditional \"CONFIG_GSS\" was never defined.
29113 Usually this means the macro was only invoked conditionally." >&5
29114 echo "$as_me: error: conditional \"CONFIG_GSS\" was never defined.
29115 Usually this means the macro was only invoked conditionally." >&2;}
29116    { (exit 1); exit 1; }; }
29117 fi
29118 if test -z "${CONFIG_RQUOTAD_TRUE}" && test -z "${CONFIG_RQUOTAD_FALSE}"; then
29119   { { echo "$as_me:$LINENO: error: conditional \"CONFIG_RQUOTAD\" was never defined.
29120 Usually this means the macro was only invoked conditionally." >&5
29121 echo "$as_me: error: conditional \"CONFIG_RQUOTAD\" was never defined.
29122 Usually this means the macro was only invoked conditionally." >&2;}
29123    { (exit 1); exit 1; }; }
29124 fi
29125 if test -z "${CONFIG_MOUNT_TRUE}" && test -z "${CONFIG_MOUNT_FALSE}"; then
29126   { { echo "$as_me:$LINENO: error: conditional \"CONFIG_MOUNT\" was never defined.
29127 Usually this means the macro was only invoked conditionally." >&5
29128 echo "$as_me: error: conditional \"CONFIG_MOUNT\" was never defined.
29129 Usually this means the macro was only invoked conditionally." >&2;}
29130    { (exit 1); exit 1; }; }
29131 fi
29132 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
29133   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
29134 Usually this means the macro was only invoked conditionally." >&5
29135 echo "$as_me: error: conditional \"AMDEP\" was never defined.
29136 Usually this means the macro was only invoked conditionally." >&2;}
29137    { (exit 1); exit 1; }; }
29138 fi
29139 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
29140   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
29141 Usually this means the macro was only invoked conditionally." >&5
29142 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
29143 Usually this means the macro was only invoked conditionally." >&2;}
29144    { (exit 1); exit 1; }; }
29145 fi
29146 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
29147   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
29148 Usually this means the macro was only invoked conditionally." >&5
29149 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
29150 Usually this means the macro was only invoked conditionally." >&2;}
29151    { (exit 1); exit 1; }; }
29152 fi
29153 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
29154   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
29155 Usually this means the macro was only invoked conditionally." >&5
29156 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
29157 Usually this means the macro was only invoked conditionally." >&2;}
29158    { (exit 1); exit 1; }; }
29159 fi
29160
29161 : ${CONFIG_STATUS=./config.status}
29162 ac_clean_files_save=$ac_clean_files
29163 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29164 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
29165 echo "$as_me: creating $CONFIG_STATUS" >&6;}
29166 cat >$CONFIG_STATUS <<_ACEOF
29167 #! $SHELL
29168 # Generated by $as_me.
29169 # Run this file to recreate the current configuration.
29170 # Compiler output produced by configure, useful for debugging
29171 # configure, is in config.log if it exists.
29172
29173 debug=false
29174 ac_cs_recheck=false
29175 ac_cs_silent=false
29176 SHELL=\${CONFIG_SHELL-$SHELL}
29177 _ACEOF
29178
29179 cat >>$CONFIG_STATUS <<\_ACEOF
29180 ## --------------------- ##
29181 ## M4sh Initialization.  ##
29182 ## --------------------- ##
29183
29184 # Be more Bourne compatible
29185 DUALCASE=1; export DUALCASE # for MKS sh
29186 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
29187   emulate sh
29188   NULLCMD=:
29189   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
29190   # is contrary to our usage.  Disable this feature.
29191   alias -g '${1+"$@"}'='"$@"'
29192   setopt NO_GLOB_SUBST
29193 else
29194   case `(set -o) 2>/dev/null` in
29195   *posix*) set -o posix ;;
29196 esac
29197
29198 fi
29199
29200
29201
29202
29203 # PATH needs CR
29204 # Avoid depending upon Character Ranges.
29205 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29206 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29207 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29208 as_cr_digits='0123456789'
29209 as_cr_alnum=$as_cr_Letters$as_cr_digits
29210
29211 # The user is always right.
29212 if test "${PATH_SEPARATOR+set}" != set; then
29213   echo "#! /bin/sh" >conf$$.sh
29214   echo  "exit 0"   >>conf$$.sh
29215   chmod +x conf$$.sh
29216   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
29217     PATH_SEPARATOR=';'
29218   else
29219     PATH_SEPARATOR=:
29220   fi
29221   rm -f conf$$.sh
29222 fi
29223
29224 # Support unset when possible.
29225 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29226   as_unset=unset
29227 else
29228   as_unset=false
29229 fi
29230
29231
29232 # IFS
29233 # We need space, tab and new line, in precisely that order.  Quoting is
29234 # there to prevent editors from complaining about space-tab.
29235 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
29236 # splitting by setting IFS to empty value.)
29237 as_nl='
29238 '
29239 IFS=" ""        $as_nl"
29240
29241 # Find who we are.  Look in the path if we contain no directory separator.
29242 case $0 in
29243   *[\\/]* ) as_myself=$0 ;;
29244   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29245 for as_dir in $PATH
29246 do
29247   IFS=$as_save_IFS
29248   test -z "$as_dir" && as_dir=.
29249   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29250 done
29251 IFS=$as_save_IFS
29252
29253      ;;
29254 esac
29255 # We did not find ourselves, most probably we were run as `sh COMMAND'
29256 # in which case we are not to be found in the path.
29257 if test "x$as_myself" = x; then
29258   as_myself=$0
29259 fi
29260 if test ! -f "$as_myself"; then
29261   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29262   { (exit 1); exit 1; }
29263 fi
29264
29265 # Work around bugs in pre-3.0 UWIN ksh.
29266 for as_var in ENV MAIL MAILPATH
29267 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
29268 done
29269 PS1='$ '
29270 PS2='> '
29271 PS4='+ '
29272
29273 # NLS nuisances.
29274 for as_var in \
29275   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
29276   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
29277   LC_TELEPHONE LC_TIME
29278 do
29279   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
29280     eval $as_var=C; export $as_var
29281   else
29282     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
29283   fi
29284 done
29285
29286 # Required to use basename.
29287 if expr a : '\(a\)' >/dev/null 2>&1 &&
29288    test "X`expr 00001 : '.*\(...\)'`" = X001; then
29289   as_expr=expr
29290 else
29291   as_expr=false
29292 fi
29293
29294 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29295   as_basename=basename
29296 else
29297   as_basename=false
29298 fi
29299
29300
29301 # Name of the executable.
29302 as_me=`$as_basename -- "$0" ||
29303 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29304          X"$0" : 'X\(//\)$' \| \
29305          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29306 echo X/"$0" |
29307     sed '/^.*\/\([^/][^/]*\)\/*$/{
29308             s//\1/
29309             q
29310           }
29311           /^X\/\(\/\/\)$/{
29312             s//\1/
29313             q
29314           }
29315           /^X\/\(\/\).*/{
29316             s//\1/
29317             q
29318           }
29319           s/.*/./; q'`
29320
29321 # CDPATH.
29322 $as_unset CDPATH
29323
29324
29325
29326   as_lineno_1=$LINENO
29327   as_lineno_2=$LINENO
29328   test "x$as_lineno_1" != "x$as_lineno_2" &&
29329   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
29330
29331   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
29332   # uniformly replaced by the line number.  The first 'sed' inserts a
29333   # line-number line after each line using $LINENO; the second 'sed'
29334   # does the real work.  The second script uses 'N' to pair each
29335   # line-number line with the line containing $LINENO, and appends
29336   # trailing '-' during substitution so that $LINENO is not a special
29337   # case at line end.
29338   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
29339   # scripts with optimization help from Paolo Bonzini.  Blame Lee
29340   # E. McMahon (1931-1989) for sed's syntax.  :-)
29341   sed -n '
29342     p
29343     /[$]LINENO/=
29344   ' <$as_myself |
29345     sed '
29346       s/[$]LINENO.*/&-/
29347       t lineno
29348       b
29349       :lineno
29350       N
29351       :loop
29352       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
29353       t loop
29354       s/-\n.*//
29355     ' >$as_me.lineno &&
29356   chmod +x "$as_me.lineno" ||
29357     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
29358    { (exit 1); exit 1; }; }
29359
29360   # Don't try to exec as it changes $[0], causing all sort of problems
29361   # (the dirname of $[0] is not the place where we might find the
29362   # original and so on.  Autoconf is especially sensitive to this).
29363   . "./$as_me.lineno"
29364   # Exit status is that of the last command.
29365   exit
29366 }
29367
29368
29369 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
29370   as_dirname=dirname
29371 else
29372   as_dirname=false
29373 fi
29374
29375 ECHO_C= ECHO_N= ECHO_T=
29376 case `echo -n x` in
29377 -n*)
29378   case `echo 'x\c'` in
29379   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
29380   *)   ECHO_C='\c';;
29381   esac;;
29382 *)
29383   ECHO_N='-n';;
29384 esac
29385
29386 if expr a : '\(a\)' >/dev/null 2>&1 &&
29387    test "X`expr 00001 : '.*\(...\)'`" = X001; then
29388   as_expr=expr
29389 else
29390   as_expr=false
29391 fi
29392
29393 rm -f conf$$ conf$$.exe conf$$.file
29394 if test -d conf$$.dir; then
29395   rm -f conf$$.dir/conf$$.file
29396 else
29397   rm -f conf$$.dir
29398   mkdir conf$$.dir
29399 fi
29400 echo >conf$$.file
29401 if ln -s conf$$.file conf$$ 2>/dev/null; then
29402   as_ln_s='ln -s'
29403   # ... but there are two gotchas:
29404   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29405   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29406   # In both cases, we have to default to `cp -p'.
29407   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
29408     as_ln_s='cp -p'
29409 elif ln conf$$.file conf$$ 2>/dev/null; then
29410   as_ln_s=ln
29411 else
29412   as_ln_s='cp -p'
29413 fi
29414 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
29415 rmdir conf$$.dir 2>/dev/null
29416
29417 if mkdir -p . 2>/dev/null; then
29418   as_mkdir_p=:
29419 else
29420   test -d ./-p && rmdir ./-p
29421   as_mkdir_p=false
29422 fi
29423
29424 if test -x / >/dev/null 2>&1; then
29425   as_test_x='test -x'
29426 else
29427   if ls -dL / >/dev/null 2>&1; then
29428     as_ls_L_option=L
29429   else
29430     as_ls_L_option=
29431   fi
29432   as_test_x='
29433     eval sh -c '\''
29434       if test -d "$1"; then
29435         test -d "$1/.";
29436       else
29437         case $1 in
29438         -*)set "./$1";;
29439         esac;
29440         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
29441         ???[sx]*):;;*)false;;esac;fi
29442     '\'' sh
29443   '
29444 fi
29445 as_executable_p=$as_test_x
29446
29447 # Sed expression to map a string onto a valid CPP name.
29448 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29449
29450 # Sed expression to map a string onto a valid variable name.
29451 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29452
29453
29454 exec 6>&1
29455
29456 # Save the log message, to keep $[0] and so on meaningful, and to
29457 # report actual input values of CONFIG_FILES etc. instead of their
29458 # values after options handling.
29459 ac_log="
29460 This file was extended by linux nfs-utils $as_me 1.0.10, which was
29461 generated by GNU Autoconf 2.61.  Invocation command line was
29462
29463   CONFIG_FILES    = $CONFIG_FILES
29464   CONFIG_HEADERS  = $CONFIG_HEADERS
29465   CONFIG_LINKS    = $CONFIG_LINKS
29466   CONFIG_COMMANDS = $CONFIG_COMMANDS
29467   $ $0 $@
29468
29469 on `(hostname || uname -n) 2>/dev/null | sed 1q`
29470 "
29471
29472 _ACEOF
29473
29474 cat >>$CONFIG_STATUS <<_ACEOF
29475 # Files that config.status was made for.
29476 config_files="$ac_config_files"
29477 config_headers="$ac_config_headers"
29478 config_commands="$ac_config_commands"
29479
29480 _ACEOF
29481
29482 cat >>$CONFIG_STATUS <<\_ACEOF
29483 ac_cs_usage="\
29484 \`$as_me' instantiates files from templates according to the
29485 current configuration.
29486
29487 Usage: $0 [OPTIONS] [FILE]...
29488
29489   -h, --help       print this help, then exit
29490   -V, --version    print version number and configuration settings, then exit
29491   -q, --quiet      do not print progress messages
29492   -d, --debug      don't remove temporary files
29493       --recheck    update $as_me by reconfiguring in the same conditions
29494   --file=FILE[:TEMPLATE]
29495                    instantiate the configuration file FILE
29496   --header=FILE[:TEMPLATE]
29497                    instantiate the configuration header FILE
29498
29499 Configuration files:
29500 $config_files
29501
29502 Configuration headers:
29503 $config_headers
29504
29505 Configuration commands:
29506 $config_commands
29507
29508 Report bugs to <bug-autoconf@gnu.org>."
29509
29510 _ACEOF
29511 cat >>$CONFIG_STATUS <<_ACEOF
29512 ac_cs_version="\\
29513 linux nfs-utils config.status 1.0.10
29514 configured by $0, generated by GNU Autoconf 2.61,
29515   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
29516
29517 Copyright (C) 2006 Free Software Foundation, Inc.
29518 This config.status script is free software; the Free Software Foundation
29519 gives unlimited permission to copy, distribute and modify it."
29520
29521 ac_pwd='$ac_pwd'
29522 srcdir='$srcdir'
29523 INSTALL='$INSTALL'
29524 MKDIR_P='$MKDIR_P'
29525 _ACEOF
29526
29527 cat >>$CONFIG_STATUS <<\_ACEOF
29528 # If no file are specified by the user, then we need to provide default
29529 # value.  By we need to know if files were specified by the user.
29530 ac_need_defaults=:
29531 while test $# != 0
29532 do
29533   case $1 in
29534   --*=*)
29535     ac_option=`expr "X$1" : 'X\([^=]*\)='`
29536     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
29537     ac_shift=:
29538     ;;
29539   *)
29540     ac_option=$1
29541     ac_optarg=$2
29542     ac_shift=shift
29543     ;;
29544   esac
29545
29546   case $ac_option in
29547   # Handling of the options.
29548   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29549     ac_cs_recheck=: ;;
29550   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
29551     echo "$ac_cs_version"; exit ;;
29552   --debug | --debu | --deb | --de | --d | -d )
29553     debug=: ;;
29554   --file | --fil | --fi | --f )
29555     $ac_shift
29556     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
29557     ac_need_defaults=false;;
29558   --header | --heade | --head | --hea )
29559     $ac_shift
29560     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
29561     ac_need_defaults=false;;
29562   --he | --h)
29563     # Conflict between --help and --header
29564     { echo "$as_me: error: ambiguous option: $1
29565 Try \`$0 --help' for more information." >&2
29566    { (exit 1); exit 1; }; };;
29567   --help | --hel | -h )
29568     echo "$ac_cs_usage"; exit ;;
29569   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
29570   | -silent | --silent | --silen | --sile | --sil | --si | --s)
29571     ac_cs_silent=: ;;
29572
29573   # This is an error.
29574   -*) { echo "$as_me: error: unrecognized option: $1
29575 Try \`$0 --help' for more information." >&2
29576    { (exit 1); exit 1; }; } ;;
29577
29578   *) ac_config_targets="$ac_config_targets $1"
29579      ac_need_defaults=false ;;
29580
29581   esac
29582   shift
29583 done
29584
29585 ac_configure_extra_args=
29586
29587 if $ac_cs_silent; then
29588   exec 6>/dev/null
29589   ac_configure_extra_args="$ac_configure_extra_args --silent"
29590 fi
29591
29592 _ACEOF
29593 cat >>$CONFIG_STATUS <<_ACEOF
29594 if \$ac_cs_recheck; then
29595   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
29596   CONFIG_SHELL=$SHELL
29597   export CONFIG_SHELL
29598   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29599 fi
29600
29601 _ACEOF
29602 cat >>$CONFIG_STATUS <<\_ACEOF
29603 exec 5>>config.log
29604 {
29605   echo
29606   sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
29607 @%:@@%:@ Running $as_me. @%:@@%:@
29608 _ASBOX
29609   echo "$ac_log"
29610 } >&5
29611
29612 _ACEOF
29613 cat >>$CONFIG_STATUS <<_ACEOF
29614 #
29615 # INIT-COMMANDS
29616 #
29617 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
29618
29619 _ACEOF
29620
29621 cat >>$CONFIG_STATUS <<\_ACEOF
29622
29623 # Handling of arguments.
29624 for ac_config_target in $ac_config_targets
29625 do
29626   case $ac_config_target in
29627     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
29628     "support/include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS support/include/config.h" ;;
29629     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
29630     "linux-nfs/Makefile") CONFIG_FILES="$CONFIG_FILES linux-nfs/Makefile" ;;
29631     "support/Makefile") CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
29632     "support/export/Makefile") CONFIG_FILES="$CONFIG_FILES support/export/Makefile" ;;
29633     "support/include/nfs/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/nfs/Makefile" ;;
29634     "support/include/rpcsvc/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/rpcsvc/Makefile" ;;
29635     "support/include/sys/fs/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/sys/fs/Makefile" ;;
29636     "support/include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/sys/Makefile" ;;
29637     "support/include/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/Makefile" ;;
29638     "support/misc/Makefile") CONFIG_FILES="$CONFIG_FILES support/misc/Makefile" ;;
29639     "support/nfs/Makefile") CONFIG_FILES="$CONFIG_FILES support/nfs/Makefile" ;;
29640     "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
29641     "tools/getiversion/Makefile") CONFIG_FILES="$CONFIG_FILES tools/getiversion/Makefile" ;;
29642     "tools/locktest/Makefile") CONFIG_FILES="$CONFIG_FILES tools/locktest/Makefile" ;;
29643     "tools/nlmtest/Makefile") CONFIG_FILES="$CONFIG_FILES tools/nlmtest/Makefile" ;;
29644     "tools/rpcdebug/Makefile") CONFIG_FILES="$CONFIG_FILES tools/rpcdebug/Makefile" ;;
29645     "tools/rpcgen/Makefile") CONFIG_FILES="$CONFIG_FILES tools/rpcgen/Makefile" ;;
29646     "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
29647     "utils/exportfs/Makefile") CONFIG_FILES="$CONFIG_FILES utils/exportfs/Makefile" ;;
29648     "utils/gssd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/gssd/Makefile" ;;
29649     "utils/idmapd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/idmapd/Makefile" ;;
29650     "utils/lockd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/lockd/Makefile" ;;
29651     "utils/mount/Makefile") CONFIG_FILES="$CONFIG_FILES utils/mount/Makefile" ;;
29652     "utils/mountd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/mountd/Makefile" ;;
29653     "utils/nfsd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/nfsd/Makefile" ;;
29654     "utils/nfsstat/Makefile") CONFIG_FILES="$CONFIG_FILES utils/nfsstat/Makefile" ;;
29655     "utils/rquotad/Makefile") CONFIG_FILES="$CONFIG_FILES utils/rquotad/Makefile" ;;
29656     "utils/showmount/Makefile") CONFIG_FILES="$CONFIG_FILES utils/showmount/Makefile" ;;
29657     "utils/statd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/statd/Makefile" ;;
29658
29659   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
29660 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
29661    { (exit 1); exit 1; }; };;
29662   esac
29663 done
29664
29665
29666 # If the user did not use the arguments to specify the items to instantiate,
29667 # then the envvar interface is used.  Set only those that are not.
29668 # We use the long form for the default assignment because of an extremely
29669 # bizarre bug on SunOS 4.1.3.
29670 if $ac_need_defaults; then
29671   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29672   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29673   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
29674 fi
29675
29676 # Have a temporary directory for convenience.  Make it in the build tree
29677 # simply because there is no reason against having it here, and in addition,
29678 # creating and moving files from /tmp can sometimes cause problems.
29679 # Hook for its removal unless debugging.
29680 # Note that there is a small window in which the directory will not be cleaned:
29681 # after its creation but before its name has been assigned to `$tmp'.
29682 $debug ||
29683 {
29684   tmp=
29685   trap 'exit_status=$?
29686   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
29687 ' 0
29688   trap '{ (exit 1); exit 1; }' 1 2 13 15
29689 }
29690 # Create a (secure) tmp directory for tmp files.
29691
29692 {
29693   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
29694   test -n "$tmp" && test -d "$tmp"
29695 }  ||
29696 {
29697   tmp=./conf$$-$RANDOM
29698   (umask 077 && mkdir "$tmp")
29699 } ||
29700 {
29701    echo "$me: cannot create a temporary directory in ." >&2
29702    { (exit 1); exit 1; }
29703 }
29704
29705 #
29706 # Set up the sed scripts for CONFIG_FILES section.
29707 #
29708
29709 # No need to generate the scripts if there are no CONFIG_FILES.
29710 # This happens for instance when ./config.status config.h
29711 if test -n "$CONFIG_FILES"; then
29712
29713 _ACEOF
29714
29715
29716
29717 ac_delim='%!_!# '
29718 for ac_last_try in false false false false false :; do
29719   cat >conf$$subs.sed <<_ACEOF
29720 SHELL!$SHELL$ac_delim
29721 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
29722 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
29723 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
29724 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
29725 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
29726 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
29727 exec_prefix!$exec_prefix$ac_delim
29728 prefix!$prefix$ac_delim
29729 program_transform_name!$program_transform_name$ac_delim
29730 bindir!$bindir$ac_delim
29731 sbindir!$sbindir$ac_delim
29732 libexecdir!$libexecdir$ac_delim
29733 datarootdir!$datarootdir$ac_delim
29734 datadir!$datadir$ac_delim
29735 sysconfdir!$sysconfdir$ac_delim
29736 sharedstatedir!$sharedstatedir$ac_delim
29737 localstatedir!$localstatedir$ac_delim
29738 includedir!$includedir$ac_delim
29739 oldincludedir!$oldincludedir$ac_delim
29740 docdir!$docdir$ac_delim
29741 infodir!$infodir$ac_delim
29742 htmldir!$htmldir$ac_delim
29743 dvidir!$dvidir$ac_delim
29744 pdfdir!$pdfdir$ac_delim
29745 psdir!$psdir$ac_delim
29746 libdir!$libdir$ac_delim
29747 localedir!$localedir$ac_delim
29748 mandir!$mandir$ac_delim
29749 DEFS!$DEFS$ac_delim
29750 ECHO_C!$ECHO_C$ac_delim
29751 ECHO_N!$ECHO_N$ac_delim
29752 ECHO_T!$ECHO_T$ac_delim
29753 LIBS!$LIBS$ac_delim
29754 build_alias!$build_alias$ac_delim
29755 host_alias!$host_alias$ac_delim
29756 target_alias!$target_alias$ac_delim
29757 build!$build$ac_delim
29758 build_cpu!$build_cpu$ac_delim
29759 build_vendor!$build_vendor$ac_delim
29760 build_os!$build_os$ac_delim
29761 host!$host$ac_delim
29762 host_cpu!$host_cpu$ac_delim
29763 host_vendor!$host_vendor$ac_delim
29764 host_os!$host_os$ac_delim
29765 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
29766 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
29767 INSTALL_DATA!$INSTALL_DATA$ac_delim
29768 am__isrc!$am__isrc$ac_delim
29769 CYGPATH_W!$CYGPATH_W$ac_delim
29770 PACKAGE!$PACKAGE$ac_delim
29771 VERSION!$VERSION$ac_delim
29772 ACLOCAL!$ACLOCAL$ac_delim
29773 AUTOCONF!$AUTOCONF$ac_delim
29774 AUTOMAKE!$AUTOMAKE$ac_delim
29775 AUTOHEADER!$AUTOHEADER$ac_delim
29776 MAKEINFO!$MAKEINFO$ac_delim
29777 install_sh!$install_sh$ac_delim
29778 STRIP!$STRIP$ac_delim
29779 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
29780 mkdir_p!$mkdir_p$ac_delim
29781 AWK!$AWK$ac_delim
29782 SET_MAKE!$SET_MAKE$ac_delim
29783 am__leading_dot!$am__leading_dot$ac_delim
29784 AMTAR!$AMTAR$ac_delim
29785 am__tar!$am__tar$ac_delim
29786 am__untar!$am__untar$ac_delim
29787 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
29788 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
29789 MAINT!$MAINT$ac_delim
29790 RELEASE!$RELEASE$ac_delim
29791 statedir!$statedir$ac_delim
29792 statduser!$statduser$ac_delim
29793 enable_nfsv3!$enable_nfsv3$ac_delim
29794 IDMAPD!$IDMAPD$ac_delim
29795 enable_nfsv4!$enable_nfsv4$ac_delim
29796 CONFIG_NFSV4_TRUE!$CONFIG_NFSV4_TRUE$ac_delim
29797 CONFIG_NFSV4_FALSE!$CONFIG_NFSV4_FALSE$ac_delim
29798 GSSD!$GSSD$ac_delim
29799 SVCGSSD!$SVCGSSD$ac_delim
29800 enable_gss!$enable_gss$ac_delim
29801 CONFIG_GSS_TRUE!$CONFIG_GSS_TRUE$ac_delim
29802 CONFIG_GSS_FALSE!$CONFIG_GSS_FALSE$ac_delim
29803 kprefix!$kprefix$ac_delim
29804 secure_statd!$secure_statd$ac_delim
29805 CONFIG_RQUOTAD_TRUE!$CONFIG_RQUOTAD_TRUE$ac_delim
29806 CONFIG_RQUOTAD_FALSE!$CONFIG_RQUOTAD_FALSE$ac_delim
29807 CONFIG_MOUNT_TRUE!$CONFIG_MOUNT_TRUE$ac_delim
29808 CONFIG_MOUNT_FALSE!$CONFIG_MOUNT_FALSE$ac_delim
29809 CC!$CC$ac_delim
29810 CFLAGS!$CFLAGS$ac_delim
29811 LDFLAGS!$LDFLAGS$ac_delim
29812 CPPFLAGS!$CPPFLAGS$ac_delim
29813 ac_ct_CC!$ac_ct_CC$ac_delim
29814 EXEEXT!$EXEEXT$ac_delim
29815 OBJEXT!$OBJEXT$ac_delim
29816 DEPDIR!$DEPDIR$ac_delim
29817 _ACEOF
29818
29819   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
29820     break
29821   elif $ac_last_try; then
29822     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29823 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29824    { (exit 1); exit 1; }; }
29825   else
29826     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29827   fi
29828 done
29829
29830 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
29831 if test -n "$ac_eof"; then
29832   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
29833   ac_eof=`expr $ac_eof + 1`
29834 fi
29835
29836 cat >>$CONFIG_STATUS <<_ACEOF
29837 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
29838 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29839 _ACEOF
29840 sed '
29841 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
29842 s/^/s,@/; s/!/@,|#_!!_#|/
29843 :n
29844 t n
29845 s/'"$ac_delim"'$/,g/; t
29846 s/$/\\/; p
29847 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
29848 ' >>$CONFIG_STATUS <conf$$subs.sed
29849 rm -f conf$$subs.sed
29850 cat >>$CONFIG_STATUS <<_ACEOF
29851 CEOF$ac_eof
29852 _ACEOF
29853
29854
29855 ac_delim='%!_!# '
29856 for ac_last_try in false false false false false :; do
29857   cat >conf$$subs.sed <<_ACEOF
29858 am__include!$am__include$ac_delim
29859 am__quote!$am__quote$ac_delim
29860 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
29861 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
29862 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
29863 CCDEPMODE!$CCDEPMODE$ac_delim
29864 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
29865 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
29866 LIBWRAP!$LIBWRAP$ac_delim
29867 HAVE_LIBWRAP!$HAVE_LIBWRAP$ac_delim
29868 HAVE_TCP_WRAPPER!$HAVE_TCP_WRAPPER$ac_delim
29869 CXX!$CXX$ac_delim
29870 CXXFLAGS!$CXXFLAGS$ac_delim
29871 ac_ct_CXX!$ac_ct_CXX$ac_delim
29872 CXXDEPMODE!$CXXDEPMODE$ac_delim
29873 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
29874 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
29875 CPP!$CPP$ac_delim
29876 LN_S!$LN_S$ac_delim
29877 GREP!$GREP$ac_delim
29878 EGREP!$EGREP$ac_delim
29879 ECHO!$ECHO$ac_delim
29880 AR!$AR$ac_delim
29881 RANLIB!$RANLIB$ac_delim
29882 CXXCPP!$CXXCPP$ac_delim
29883 F77!$F77$ac_delim
29884 FFLAGS!$FFLAGS$ac_delim
29885 ac_ct_F77!$ac_ct_F77$ac_delim
29886 LIBTOOL!$LIBTOOL$ac_delim
29887 CC_FOR_BUILD!$CC_FOR_BUILD$ac_delim
29888 LD!$LD$ac_delim
29889 LIBNSL!$LIBNSL$ac_delim
29890 PKG_CONFIG!$PKG_CONFIG$ac_delim
29891 RPCSECGSS_CFLAGS!$RPCSECGSS_CFLAGS$ac_delim
29892 RPCSECGSS_LIBS!$RPCSECGSS_LIBS$ac_delim
29893 GSSAPI_CFLAGS!$GSSAPI_CFLAGS$ac_delim
29894 GSSAPI_LIBS!$GSSAPI_LIBS$ac_delim
29895 LIBSOCKET!$LIBSOCKET$ac_delim
29896 LIBCRYPT!$LIBCRYPT$ac_delim
29897 LIBBSD!$LIBBSD$ac_delim
29898 LIBBLKID!$LIBBLKID$ac_delim
29899 KRBDIR!$KRBDIR$ac_delim
29900 KRBLIBS!$KRBLIBS$ac_delim
29901 KRBCFLAGS!$KRBCFLAGS$ac_delim
29902 KRBLDFLAGS!$KRBLDFLAGS$ac_delim
29903 K5VERS!$K5VERS$ac_delim
29904 ALLOCA!$ALLOCA$ac_delim
29905 LIB@&t@OBJS!$LIB@&t@OBJS$ac_delim
29906 CFLAGS_FOR_BUILD!$CFLAGS_FOR_BUILD$ac_delim
29907 CXXFLAGS_FOR_BUILD!$CXXFLAGS_FOR_BUILD$ac_delim
29908 CPPFLAGS_FOR_BUILD!$CPPFLAGS_FOR_BUILD$ac_delim
29909 LDFLAGS_FOR_BUILD!$LDFLAGS_FOR_BUILD$ac_delim
29910 AM_CPPFLAGS!$AM_CPPFLAGS$ac_delim
29911 AM_CFLAGS!$AM_CFLAGS$ac_delim
29912 ACLOCAL_AMFLAGS!$ACLOCAL_AMFLAGS$ac_delim
29913 LTLIBOBJS!$LTLIBOBJS$ac_delim
29914 _ACEOF
29915
29916   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 56; then
29917     break
29918   elif $ac_last_try; then
29919     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29920 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29921    { (exit 1); exit 1; }; }
29922   else
29923     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29924   fi
29925 done
29926
29927 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
29928 if test -n "$ac_eof"; then
29929   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
29930   ac_eof=`expr $ac_eof + 1`
29931 fi
29932
29933 cat >>$CONFIG_STATUS <<_ACEOF
29934 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
29935 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
29936 _ACEOF
29937 sed '
29938 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
29939 s/^/s,@/; s/!/@,|#_!!_#|/
29940 :n
29941 t n
29942 s/'"$ac_delim"'$/,g/; t
29943 s/$/\\/; p
29944 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
29945 ' >>$CONFIG_STATUS <conf$$subs.sed
29946 rm -f conf$$subs.sed
29947 cat >>$CONFIG_STATUS <<_ACEOF
29948 :end
29949 s/|#_!!_#|//g
29950 CEOF$ac_eof
29951 _ACEOF
29952
29953
29954 # VPATH may cause trouble with some makes, so we remove $(srcdir),
29955 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
29956 # trailing colons and then remove the whole line if VPATH becomes empty
29957 # (actually we leave an empty line to preserve line numbers).
29958 if test "x$srcdir" = x.; then
29959   ac_vpsub='/^[  ]*VPATH[        ]*=/{
29960 s/:*\$(srcdir):*/:/
29961 s/:*\${srcdir}:*/:/
29962 s/:*@srcdir@:*/:/
29963 s/^\([^=]*=[     ]*\):*/\1/
29964 s/:*$//
29965 s/^[^=]*=[       ]*$//
29966 }'
29967 fi
29968
29969 cat >>$CONFIG_STATUS <<\_ACEOF
29970 fi # test -n "$CONFIG_FILES"
29971
29972
29973 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
29974 do
29975   case $ac_tag in
29976   :[FHLC]) ac_mode=$ac_tag; continue;;
29977   esac
29978   case $ac_mode$ac_tag in
29979   :[FHL]*:*);;
29980   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
29981 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
29982    { (exit 1); exit 1; }; };;
29983   :[FH]-) ac_tag=-:-;;
29984   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
29985   esac
29986   ac_save_IFS=$IFS
29987   IFS=:
29988   set x $ac_tag
29989   IFS=$ac_save_IFS
29990   shift
29991   ac_file=$1
29992   shift
29993
29994   case $ac_mode in
29995   :L) ac_source=$1;;
29996   :[FH])
29997     ac_file_inputs=
29998     for ac_f
29999     do
30000       case $ac_f in
30001       -) ac_f="$tmp/stdin";;
30002       *) # Look for the file first in the build tree, then in the source tree
30003          # (if the path is not absolute).  The absolute path cannot be DOS-style,
30004          # because $ac_f cannot contain `:'.
30005          test -f "$ac_f" ||
30006            case $ac_f in
30007            [\\/$]*) false;;
30008            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
30009            esac ||
30010            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
30011 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
30012    { (exit 1); exit 1; }; };;
30013       esac
30014       ac_file_inputs="$ac_file_inputs $ac_f"
30015     done
30016
30017     # Let's still pretend it is `configure' which instantiates (i.e., don't
30018     # use $as_me), people would be surprised to read:
30019     #    /* config.h.  Generated by config.status.  */
30020     configure_input="Generated from "`IFS=:
30021           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
30022     if test x"$ac_file" != x-; then
30023       configure_input="$ac_file.  $configure_input"
30024       { echo "$as_me:$LINENO: creating $ac_file" >&5
30025 echo "$as_me: creating $ac_file" >&6;}
30026     fi
30027
30028     case $ac_tag in
30029     *:-:* | *:-) cat >"$tmp/stdin";;
30030     esac
30031     ;;
30032   esac
30033
30034   ac_dir=`$as_dirname -- "$ac_file" ||
30035 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30036          X"$ac_file" : 'X\(//\)[^/]' \| \
30037          X"$ac_file" : 'X\(//\)$' \| \
30038          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30039 echo X"$ac_file" |
30040     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30041             s//\1/
30042             q
30043           }
30044           /^X\(\/\/\)[^/].*/{
30045             s//\1/
30046             q
30047           }
30048           /^X\(\/\/\)$/{
30049             s//\1/
30050             q
30051           }
30052           /^X\(\/\).*/{
30053             s//\1/
30054             q
30055           }
30056           s/.*/./; q'`
30057   { as_dir="$ac_dir"
30058   case $as_dir in #(
30059   -*) as_dir=./$as_dir;;
30060   esac
30061   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
30062     as_dirs=
30063     while :; do
30064       case $as_dir in #(
30065       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
30066       *) as_qdir=$as_dir;;
30067       esac
30068       as_dirs="'$as_qdir' $as_dirs"
30069       as_dir=`$as_dirname -- "$as_dir" ||
30070 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30071          X"$as_dir" : 'X\(//\)[^/]' \| \
30072          X"$as_dir" : 'X\(//\)$' \| \
30073          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30074 echo X"$as_dir" |
30075     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30076             s//\1/
30077             q
30078           }
30079           /^X\(\/\/\)[^/].*/{
30080             s//\1/
30081             q
30082           }
30083           /^X\(\/\/\)$/{
30084             s//\1/
30085             q
30086           }
30087           /^X\(\/\).*/{
30088             s//\1/
30089             q
30090           }
30091           s/.*/./; q'`
30092       test -d "$as_dir" && break
30093     done
30094     test -z "$as_dirs" || eval "mkdir $as_dirs"
30095   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
30096 echo "$as_me: error: cannot create directory $as_dir" >&2;}
30097    { (exit 1); exit 1; }; }; }
30098   ac_builddir=.
30099
30100 case "$ac_dir" in
30101 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
30102 *)
30103   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
30104   # A ".." for each directory in $ac_dir_suffix.
30105   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
30106   case $ac_top_builddir_sub in
30107   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
30108   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
30109   esac ;;
30110 esac
30111 ac_abs_top_builddir=$ac_pwd
30112 ac_abs_builddir=$ac_pwd$ac_dir_suffix
30113 # for backward compatibility:
30114 ac_top_builddir=$ac_top_build_prefix
30115
30116 case $srcdir in
30117   .)  # We are building in place.
30118     ac_srcdir=.
30119     ac_top_srcdir=$ac_top_builddir_sub
30120     ac_abs_top_srcdir=$ac_pwd ;;
30121   [\\/]* | ?:[\\/]* )  # Absolute name.
30122     ac_srcdir=$srcdir$ac_dir_suffix;
30123     ac_top_srcdir=$srcdir
30124     ac_abs_top_srcdir=$srcdir ;;
30125   *) # Relative name.
30126     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
30127     ac_top_srcdir=$ac_top_build_prefix$srcdir
30128     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
30129 esac
30130 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
30131
30132
30133   case $ac_mode in
30134   :F)
30135   #
30136   # CONFIG_FILE
30137   #
30138
30139   case $INSTALL in
30140   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
30141   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
30142   esac
30143   ac_MKDIR_P=$MKDIR_P
30144   case $MKDIR_P in
30145   [\\/$]* | ?:[\\/]* ) ;;
30146   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
30147   esac
30148 _ACEOF
30149
30150 cat >>$CONFIG_STATUS <<\_ACEOF
30151 # If the template does not know about datarootdir, expand it.
30152 # FIXME: This hack should be removed a few years after 2.60.
30153 ac_datarootdir_hack=; ac_datarootdir_seen=
30154
30155 case `sed -n '/datarootdir/ {
30156   p
30157   q
30158 }
30159 /@datadir@/p
30160 /@docdir@/p
30161 /@infodir@/p
30162 /@localedir@/p
30163 /@mandir@/p
30164 ' $ac_file_inputs` in
30165 *datarootdir*) ac_datarootdir_seen=yes;;
30166 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
30167   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30168 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30169 _ACEOF
30170 cat >>$CONFIG_STATUS <<_ACEOF
30171   ac_datarootdir_hack='
30172   s&@datadir@&$datadir&g
30173   s&@docdir@&$docdir&g
30174   s&@infodir@&$infodir&g
30175   s&@localedir@&$localedir&g
30176   s&@mandir@&$mandir&g
30177     s&\\\${datarootdir}&$datarootdir&g' ;;
30178 esac
30179 _ACEOF
30180
30181 # Neutralize VPATH when `$srcdir' = `.'.
30182 # Shell code in configure.ac might set extrasub.
30183 # FIXME: do we really want to maintain this feature?
30184 cat >>$CONFIG_STATUS <<_ACEOF
30185   sed "$ac_vpsub
30186 $extrasub
30187 _ACEOF
30188 cat >>$CONFIG_STATUS <<\_ACEOF
30189 :t
30190 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30191 s&@configure_input@&$configure_input&;t t
30192 s&@top_builddir@&$ac_top_builddir_sub&;t t
30193 s&@srcdir@&$ac_srcdir&;t t
30194 s&@abs_srcdir@&$ac_abs_srcdir&;t t
30195 s&@top_srcdir@&$ac_top_srcdir&;t t
30196 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
30197 s&@builddir@&$ac_builddir&;t t
30198 s&@abs_builddir@&$ac_abs_builddir&;t t
30199 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
30200 s&@INSTALL@&$ac_INSTALL&;t t
30201 s&@MKDIR_P@&$ac_MKDIR_P&;t t
30202 $ac_datarootdir_hack
30203 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
30204
30205 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
30206   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
30207   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
30208   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30209 which seems to be undefined.  Please make sure it is defined." >&5
30210 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30211 which seems to be undefined.  Please make sure it is defined." >&2;}
30212
30213   rm -f "$tmp/stdin"
30214   case $ac_file in
30215   -) cat "$tmp/out"; rm -f "$tmp/out";;
30216   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
30217   esac
30218  ;;
30219   :H)
30220   #
30221   # CONFIG_HEADER
30222   #
30223 _ACEOF
30224
30225 # Transform confdefs.h into a sed script `conftest.defines', that
30226 # substitutes the proper values into config.h.in to produce config.h.
30227 rm -f conftest.defines conftest.tail
30228 # First, append a space to every undef/define line, to ease matching.
30229 echo 's/$/ /' >conftest.defines
30230 # Then, protect against being on the right side of a sed subst, or in
30231 # an unquoted here document, in config.status.  If some macros were
30232 # called several times there might be several #defines for the same
30233 # symbol, which is useless.  But do not sort them, since the last
30234 # AC_DEFINE must be honored.
30235 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30236 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
30237 # NAME is the cpp macro being defined, VALUE is the value it is being given.
30238 # PARAMS is the parameter list in the macro definition--in most cases, it's
30239 # just an empty string.
30240 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
30241 ac_dB='\\)[      (].*,\\1define\\2'
30242 ac_dC=' '
30243 ac_dD=' ,'
30244
30245 uniq confdefs.h |
30246   sed -n '
30247         t rset
30248         :rset
30249         s/^[     ]*#[    ]*define[       ][      ]*//
30250         t ok
30251         d
30252         :ok
30253         s/[\\&,]/\\&/g
30254         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
30255         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
30256   ' >>conftest.defines
30257
30258 # Remove the space that was appended to ease matching.
30259 # Then replace #undef with comments.  This is necessary, for
30260 # example, in the case of _POSIX_SOURCE, which is predefined and required
30261 # on some systems where configure will not decide to define it.
30262 # (The regexp can be short, since the line contains either #define or #undef.)
30263 echo 's/ $//
30264 s,^[     #]*u.*,/* & */,' >>conftest.defines
30265
30266 # Break up conftest.defines:
30267 ac_max_sed_lines=50
30268
30269 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
30270 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
30271 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
30272 # et cetera.
30273 ac_in='$ac_file_inputs'
30274 ac_out='"$tmp/out1"'
30275 ac_nxt='"$tmp/out2"'
30276
30277 while :
30278 do
30279   # Write a here document:
30280     cat >>$CONFIG_STATUS <<_ACEOF
30281     # First, check the format of the line:
30282     cat >"\$tmp/defines.sed" <<\\CEOF
30283 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
30284 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
30285 b
30286 :def
30287 _ACEOF
30288   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
30289   echo 'CEOF
30290     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
30291   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
30292   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
30293   grep . conftest.tail >/dev/null || break
30294   rm -f conftest.defines
30295   mv conftest.tail conftest.defines
30296 done
30297 rm -f conftest.defines conftest.tail
30298
30299 echo "ac_result=$ac_in" >>$CONFIG_STATUS
30300 cat >>$CONFIG_STATUS <<\_ACEOF
30301   if test x"$ac_file" != x-; then
30302     echo "/* $configure_input  */" >"$tmp/config.h"
30303     cat "$ac_result" >>"$tmp/config.h"
30304     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
30305       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
30306 echo "$as_me: $ac_file is unchanged" >&6;}
30307     else
30308       rm -f $ac_file
30309       mv "$tmp/config.h" $ac_file
30310     fi
30311   else
30312     echo "/* $configure_input  */"
30313     cat "$ac_result"
30314   fi
30315   rm -f "$tmp/out12"
30316 # Compute $ac_file's index in $config_headers.
30317 _am_stamp_count=1
30318 for _am_header in $config_headers :; do
30319   case $_am_header in
30320     $ac_file | $ac_file:* )
30321       break ;;
30322     * )
30323       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
30324   esac
30325 done
30326 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
30327 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30328          X$ac_file : 'X\(//\)[^/]' \| \
30329          X$ac_file : 'X\(//\)$' \| \
30330          X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
30331 echo X$ac_file |
30332     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30333             s//\1/
30334             q
30335           }
30336           /^X\(\/\/\)[^/].*/{
30337             s//\1/
30338             q
30339           }
30340           /^X\(\/\/\)$/{
30341             s//\1/
30342             q
30343           }
30344           /^X\(\/\).*/{
30345             s//\1/
30346             q
30347           }
30348           s/.*/./; q'`/stamp-h$_am_stamp_count
30349  ;;
30350   
30351   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
30352 echo "$as_me: executing $ac_file commands" >&6;}
30353  ;;
30354   esac
30355
30356
30357   case $ac_file$ac_mode in
30358     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
30359   # Strip MF so we end up with the name of the file.
30360   mf=`echo "$mf" | sed -e 's/:.*$//'`
30361   # Check whether this is an Automake generated Makefile or not.
30362   # We used to match only the files named `Makefile.in', but
30363   # some people rename them; so instead we look at the file content.
30364   # Grep'ing the first line is not enough: some people post-process
30365   # each Makefile.in and add a new line on top of each file to say so.
30366   # Grep'ing the whole file is not good either: AIX grep has a line
30367   # limit of 2048, but all sed's we know have understand at least 4000.
30368   if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
30369     dirpart=`$as_dirname -- "$mf" ||
30370 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30371          X"$mf" : 'X\(//\)[^/]' \| \
30372          X"$mf" : 'X\(//\)$' \| \
30373          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
30374 echo X"$mf" |
30375     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30376             s//\1/
30377             q
30378           }
30379           /^X\(\/\/\)[^/].*/{
30380             s//\1/
30381             q
30382           }
30383           /^X\(\/\/\)$/{
30384             s//\1/
30385             q
30386           }
30387           /^X\(\/\).*/{
30388             s//\1/
30389             q
30390           }
30391           s/.*/./; q'`
30392   else
30393     continue
30394   fi
30395   # Extract the definition of DEPDIR, am__include, and am__quote
30396   # from the Makefile without running `make'.
30397   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
30398   test -z "$DEPDIR" && continue
30399   am__include=`sed -n 's/^am__include = //p' < "$mf"`
30400   test -z "am__include" && continue
30401   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
30402   # When using ansi2knr, U may be empty or an underscore; expand it
30403   U=`sed -n 's/^U = //p' < "$mf"`
30404   # Find all dependency output files, they are included files with
30405   # $(DEPDIR) in their names.  We invoke sed twice because it is the
30406   # simplest approach to changing $(DEPDIR) to its actual value in the
30407   # expansion.
30408   for file in `sed -n "
30409     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
30410        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
30411     # Make sure the directory exists.
30412     test -f "$dirpart/$file" && continue
30413     fdir=`$as_dirname -- "$file" ||
30414 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30415          X"$file" : 'X\(//\)[^/]' \| \
30416          X"$file" : 'X\(//\)$' \| \
30417          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
30418 echo X"$file" |
30419     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30420             s//\1/
30421             q
30422           }
30423           /^X\(\/\/\)[^/].*/{
30424             s//\1/
30425             q
30426           }
30427           /^X\(\/\/\)$/{
30428             s//\1/
30429             q
30430           }
30431           /^X\(\/\).*/{
30432             s//\1/
30433             q
30434           }
30435           s/.*/./; q'`
30436     { as_dir=$dirpart/$fdir
30437   case $as_dir in #(
30438   -*) as_dir=./$as_dir;;
30439   esac
30440   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
30441     as_dirs=
30442     while :; do
30443       case $as_dir in #(
30444       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
30445       *) as_qdir=$as_dir;;
30446       esac
30447       as_dirs="'$as_qdir' $as_dirs"
30448       as_dir=`$as_dirname -- "$as_dir" ||
30449 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30450          X"$as_dir" : 'X\(//\)[^/]' \| \
30451          X"$as_dir" : 'X\(//\)$' \| \
30452          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30453 echo X"$as_dir" |
30454     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30455             s//\1/
30456             q
30457           }
30458           /^X\(\/\/\)[^/].*/{
30459             s//\1/
30460             q
30461           }
30462           /^X\(\/\/\)$/{
30463             s//\1/
30464             q
30465           }
30466           /^X\(\/\).*/{
30467             s//\1/
30468             q
30469           }
30470           s/.*/./; q'`
30471       test -d "$as_dir" && break
30472     done
30473     test -z "$as_dirs" || eval "mkdir $as_dirs"
30474   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
30475 echo "$as_me: error: cannot create directory $as_dir" >&2;}
30476    { (exit 1); exit 1; }; }; }
30477     # echo "creating $dirpart/$file"
30478     echo '# dummy' > "$dirpart/$file"
30479   done
30480 done
30481  ;;
30482
30483   esac
30484 done # for ac_tag
30485
30486
30487 { (exit 0); exit 0; }
30488 _ACEOF
30489 chmod +x $CONFIG_STATUS
30490 ac_clean_files=$ac_clean_files_save
30491
30492
30493 # configure is writing to config.log, and then calls config.status.
30494 # config.status does its own redirection, appending to config.log.
30495 # Unfortunately, on DOS this fails, as config.log is still kept open
30496 # by configure, so config.status won't be able to write to it; its
30497 # output is simply discarded.  So we exec the FD to /dev/null,
30498 # effectively closing config.log, so it can be properly (re)opened and
30499 # appended to by config.status.  When coming back to configure, we
30500 # need to make the FD available again.
30501 if test "$no_create" != yes; then
30502   ac_cs_success=:
30503   ac_config_status_args=
30504   test "$silent" = yes &&
30505     ac_config_status_args="$ac_config_status_args --quiet"
30506   exec 5>/dev/null
30507   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
30508   exec 5>>config.log
30509   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30510   # would make configure fail if this is the last instruction.
30511   $ac_cs_success || { (exit 1); exit 1; }
30512 fi
30513
30514